annotate configure @ 1854:bddd0ec5d3da

Tweak to 'let' inlining behavior
author Adam Chlipala <adam@chlipala.net>
date Sun, 02 Jun 2013 10:17:52 -0400
parents f405dfe1f1e1
children 2eabe66daef6
rev   line source
adamc@378 1 #! /bin/sh
adamc@378 2 # Guess values for system-dependent variables and create Makefiles.
adam@1851 3 # Generated by GNU Autoconf 2.67 for urweb 20130421.
adamc@1095 4 #
adamc@378 5 #
adam@1826 6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
adam@1826 7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
adam@1826 8 # Foundation, 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
adam@1826 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
adam@1826 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 :
adam@1826 214 # We cannot yet assume a decent shell, so we have to provide a
adam@1826 215 # neutralization value for shells without unset; and this also
adam@1826 216 # works around shells that cannot unset nonexistent variables.
adam@1826 217 BASH_ENV=/dev/null
adam@1826 218 ENV=/dev/null
adam@1826 219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
adam@1826 220 export CONFIG_SHELL
adam@1826 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"
adam@1315 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
adam@1315 359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
adam@1315 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
adam@1315 363 # script with STATUS, using 1 if that was 0.
adamc@1095 364 as_fn_error ()
adamc@1095 365 {
adam@1315 366 as_status=$1; test $as_status -eq 0 && as_status=1
adam@1315 367 if test "$4"; then
adam@1315 368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
adam@1315 369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
adam@1315 370 fi
adam@1315 371 $as_echo "$as_me: error: $2" >&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.
adam@1826 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 ||
adam@1826 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
adam@1826 484 as_ln_s='cp -p'
adam@1826 485 fi
adam@1826 486 else
adam@1826 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
adam@1826 499 if test -x / >/dev/null 2>&1; then
adam@1826 500 as_test_x='test -x'
adam@1826 501 else
adam@1826 502 if ls -dL / >/dev/null 2>&1; then
adam@1826 503 as_ls_L_option=L
adam@1826 504 else
adam@1826 505 as_ls_L_option=
adam@1826 506 fi
adam@1826 507 as_test_x='
adam@1826 508 eval sh -c '\''
adam@1826 509 if test -d "$1"; then
adam@1826 510 test -d "$1/.";
adam@1826 511 else
adam@1826 512 case $1 in #(
adam@1826 513 -*)set "./$1";;
adam@1826 514 esac;
adam@1826 515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
adam@1826 516 ???[sx]*):;;*)false;;esac;fi
adam@1826 517 '\'' sh
adam@1826 518 '
adam@1826 519 fi
adam@1826 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
adam@1826 528
adam@1826 529
adam@1826 530 # Check that we are running under the correct shell.
adamc@1132 531 SHELL=${CONFIG_SHELL-/bin/sh}
adamc@1132 532
adam@1826 533 case X$lt_ECHO in
adam@1826 534 X*--fallback-echo)
adam@1826 535 # Remove one level of quotation (which was required for Make).
adam@1826 536 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
adam@1826 537 ;;
adam@1826 538 esac
adam@1826 539
adam@1826 540 ECHO=${lt_ECHO-echo}
adam@1826 541 if test "X$1" = X--no-reexec; then
adam@1826 542 # Discard the --no-reexec flag, and continue.
adam@1826 543 shift
adam@1826 544 elif test "X$1" = X--fallback-echo; then
adam@1826 545 # Avoid inline document here, it may be left over
adam@1826 546 :
adam@1826 547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
adam@1826 548 # Yippee, $ECHO works!
adam@1826 549 :
adam@1826 550 else
adam@1826 551 # Restart under the correct shell.
adam@1826 552 exec $SHELL "$0" --no-reexec ${1+"$@"}
adam@1826 553 fi
adam@1826 554
adam@1826 555 if test "X$1" = X--fallback-echo; then
adam@1826 556 # used as fallback echo
adam@1826 557 shift
adam@1826 558 cat <<_LT_EOF
adam@1826 559 $*
adam@1826 560 _LT_EOF
adam@1826 561 exit 0
adam@1826 562 fi
adam@1826 563
adam@1826 564 # The HP-UX ksh and POSIX shell print the target directory to stdout
adam@1826 565 # if CDPATH is set.
adam@1826 566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
adam@1826 567
adam@1826 568 if test -z "$lt_ECHO"; then
adam@1826 569 if test "X${echo_test_string+set}" != Xset; then
adam@1826 570 # find a string as large as possible, as long as the shell can cope with it
adam@1826 571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
adam@1826 572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
adam@1826 573 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
adam@1826 574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
adam@1826 575 then
adam@1826 576 break
adam@1826 577 fi
adam@1826 578 done
adam@1826 579 fi
adam@1826 580
adam@1826 581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
adam@1826 582 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
adam@1826 583 test "X$echo_testing_string" = "X$echo_test_string"; then
adam@1826 584 :
adam@1826 585 else
adam@1826 586 # The Solaris, AIX, and Digital Unix default echo programs unquote
adam@1826 587 # backslashes. This makes it impossible to quote backslashes using
adam@1826 588 # echo "$something" | sed 's/\\/\\\\/g'
adam@1826 589 #
adam@1826 590 # So, first we look for a working echo in the user's PATH.
adam@1826 591
adam@1826 592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
adam@1826 593 for dir in $PATH /usr/ucb; do
adam@1826 594 IFS="$lt_save_ifs"
adam@1826 595 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
adam@1826 596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
adam@1826 597 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
adam@1826 598 test "X$echo_testing_string" = "X$echo_test_string"; then
adam@1826 599 ECHO="$dir/echo"
adam@1826 600 break
adam@1826 601 fi
adam@1826 602 done
adam@1826 603 IFS="$lt_save_ifs"
adam@1826 604
adam@1826 605 if test "X$ECHO" = Xecho; then
adam@1826 606 # We didn't find a better echo, so look for alternatives.
adam@1826 607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
adam@1826 608 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
adam@1826 609 test "X$echo_testing_string" = "X$echo_test_string"; then
adam@1826 610 # This shell has a builtin print -r that does the trick.
adam@1826 611 ECHO='print -r'
adam@1826 612 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
adam@1826 613 test "X$CONFIG_SHELL" != X/bin/ksh; then
adam@1826 614 # If we have ksh, try running configure again with it.
adam@1826 615 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
adam@1826 616 export ORIGINAL_CONFIG_SHELL
adam@1826 617 CONFIG_SHELL=/bin/ksh
adam@1826 618 export CONFIG_SHELL
adam@1826 619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
adam@1826 620 else
adam@1826 621 # Try using printf.
adam@1826 622 ECHO='printf %s\n'
adam@1826 623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
adam@1826 624 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
adam@1826 625 test "X$echo_testing_string" = "X$echo_test_string"; then
adam@1826 626 # Cool, printf works
adam@1826 627 :
adam@1826 628 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
adam@1826 629 test "X$echo_testing_string" = 'X\t' &&
adam@1826 630 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
adam@1826 631 test "X$echo_testing_string" = "X$echo_test_string"; then
adam@1826 632 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
adam@1826 633 export CONFIG_SHELL
adam@1826 634 SHELL="$CONFIG_SHELL"
adam@1826 635 export SHELL
adam@1826 636 ECHO="$CONFIG_SHELL $0 --fallback-echo"
adam@1826 637 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
adam@1826 638 test "X$echo_testing_string" = 'X\t' &&
adam@1826 639 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
adam@1826 640 test "X$echo_testing_string" = "X$echo_test_string"; then
adam@1826 641 ECHO="$CONFIG_SHELL $0 --fallback-echo"
adam@1826 642 else
adam@1826 643 # maybe with a smaller string...
adam@1826 644 prev=:
adam@1826 645
adam@1826 646 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
adam@1826 647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
adam@1826 648 then
adam@1826 649 break
adam@1826 650 fi
adam@1826 651 prev="$cmd"
adam@1826 652 done
adam@1826 653
adam@1826 654 if test "$prev" != 'sed 50q "$0"'; then
adam@1826 655 echo_test_string=`eval $prev`
adam@1826 656 export echo_test_string
adam@1826 657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
adam@1826 658 else
adam@1826 659 # Oops. We lost completely, so just stick with echo.
adam@1826 660 ECHO=echo
adam@1826 661 fi
adam@1826 662 fi
adam@1826 663 fi
adam@1826 664 fi
adam@1826 665 fi
adam@1826 666 fi
adam@1826 667
adam@1826 668 # Copy echo and quote the copy suitably for passing to libtool from
adam@1826 669 # the Makefile, instead of quoting the original, which is used later.
adam@1826 670 lt_ECHO=$ECHO
adam@1826 671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
adam@1826 672 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
adam@1826 673 fi
adam@1826 674
adam@1826 675
adam@1826 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.
adam@1315 682 # hostname on some systems (SVR3.2, old GNU/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'
adam@1851 701 PACKAGE_VERSION='20130421'
adam@1851 702 PACKAGE_STRING='urweb 20130421'
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
adam@1464 746 SQHEADER
adam@1464 747 MSHEADER
adam@1464 748 PGHEADER
adam@1838 749 MLTONARGS
adam@1523 750 CCARGS
adamc@1095 751 SITELISP
adamc@1095 752 INCLUDE
adam@1740 753 SRCLIB
adamc@1095 754 LIB
adamc@1095 755 BIN
adam@1441 756 USE_EMACS_FALSE
adam@1441 757 USE_EMACS_TRUE
adamc@1165 758 MLYACC
adamc@1165 759 MLLEX
adamc@1165 760 MLTON
adam@1368 761 OPENSSL_LDFLAGS
adam@1368 762 OPENSSL_LIBS
adam@1368 763 OPENSSL_INCLUDES
adam@1368 764 PKG_CONFIG
adam@1528 765 PTHREAD_CFLAGS
adam@1528 766 PTHREAD_LIBS
adam@1528 767 PTHREAD_CC
adam@1528 768 ax_pthread_config
adamc@1132 769 OTOOL64
adamc@1132 770 OTOOL
adamc@1132 771 LIPO
adamc@1132 772 NMEDIT
adamc@1132 773 DSYMUTIL
adam@1826 774 lt_ECHO
adamc@1132 775 RANLIB
adam@1826 776 AR
adamc@1132 777 OBJDUMP
adamc@1132 778 LN_S
adamc@1132 779 NM
adamc@1132 780 ac_ct_DUMPBIN
adamc@1132 781 DUMPBIN
adamc@1132 782 LD
adamc@1132 783 FGREP
adamc@1132 784 SED
adamc@1132 785 host_os
adamc@1132 786 host_vendor
adamc@1132 787 host_cpu
adamc@1132 788 host
adamc@1132 789 build_os
adamc@1132 790 build_vendor
adamc@1132 791 build_cpu
adamc@1132 792 build
adamc@1132 793 LIBTOOL
adamc@1132 794 am__fastdepCC_FALSE
adamc@1132 795 am__fastdepCC_TRUE
adamc@1132 796 CCDEPMODE
adamc@1132 797 AMDEPBACKSLASH
adamc@1132 798 AMDEP_FALSE
adamc@1132 799 AMDEP_TRUE
adamc@1132 800 am__quote
adamc@1132 801 am__include
adamc@1132 802 DEPDIR
adamc@1132 803 am__untar
adamc@1132 804 am__tar
adamc@1132 805 AMTAR
adamc@1132 806 am__leading_dot
adamc@1132 807 SET_MAKE
adamc@1132 808 AWK
adamc@1132 809 mkdir_p
adamc@1132 810 MKDIR_P
adamc@1132 811 INSTALL_STRIP_PROGRAM
adamc@1132 812 STRIP
adamc@1132 813 install_sh
adamc@1132 814 MAKEINFO
adamc@1132 815 AUTOHEADER
adamc@1132 816 AUTOMAKE
adamc@1132 817 AUTOCONF
adamc@1132 818 ACLOCAL
adamc@1132 819 VERSION
adamc@1132 820 PACKAGE
adamc@1132 821 CYGPATH_W
adamc@1132 822 am__isrc
adamc@1132 823 INSTALL_DATA
adamc@1132 824 INSTALL_SCRIPT
adamc@1132 825 INSTALL_PROGRAM
adamc@1149 826 EGREP
adamc@1149 827 GREP
adamc@1149 828 CPP
adamc@1149 829 OBJEXT
adamc@1149 830 EXEEXT
adamc@1149 831 ac_ct_CC
adamc@1149 832 CPPFLAGS
adamc@1149 833 LDFLAGS
adamc@1149 834 CFLAGS
adamc@1149 835 CC
adamc@1095 836 target_alias
adamc@1095 837 host_alias
adamc@1095 838 build_alias
adamc@1095 839 LIBS
adamc@1095 840 ECHO_T
adamc@1095 841 ECHO_N
adamc@1095 842 ECHO_C
adamc@1095 843 DEFS
adamc@1095 844 mandir
adamc@1095 845 localedir
adamc@1095 846 libdir
adamc@1095 847 psdir
adamc@1095 848 pdfdir
adamc@1095 849 dvidir
adamc@1095 850 htmldir
adamc@1095 851 infodir
adamc@1095 852 docdir
adamc@1095 853 oldincludedir
adamc@1095 854 includedir
adamc@1095 855 localstatedir
adamc@1095 856 sharedstatedir
adamc@1095 857 sysconfdir
adamc@1095 858 datadir
adamc@1095 859 datarootdir
adamc@1095 860 libexecdir
adamc@1095 861 sbindir
adamc@1095 862 bindir
adamc@1095 863 program_transform_name
adamc@1095 864 prefix
adamc@1095 865 exec_prefix
adamc@1095 866 PACKAGE_URL
adamc@1095 867 PACKAGE_BUGREPORT
adamc@1095 868 PACKAGE_STRING
adamc@1095 869 PACKAGE_VERSION
adamc@1095 870 PACKAGE_TARNAME
adamc@1095 871 PACKAGE_NAME
adamc@378 872 PATH_SEPARATOR
adamc@1095 873 SHELL'
adamc@378 874 ac_subst_files=''
adamc@1095 875 ac_user_opts='
adamc@1095 876 enable_option_checking
adamc@1132 877 enable_dependency_tracking
adamc@1132 878 enable_shared
adamc@1132 879 enable_static
adamc@1132 880 with_pic
adamc@1132 881 enable_fast_install
adamc@1132 882 with_gnu_ld
adamc@1132 883 enable_libtool_lock
adam@1368 884 with_openssl
adam@1441 885 with_emacs
adamc@1095 886 '
adamc@378 887 ac_precious_vars='build_alias
adamc@378 888 host_alias
adamc@1132 889 target_alias
adamc@1132 890 CC
adamc@1132 891 CFLAGS
adamc@1132 892 LDFLAGS
adamc@1132 893 LIBS
adamc@1132 894 CPPFLAGS
adamc@1132 895 CPP'
adamc@378 896
adamc@378 897
adamc@378 898 # Initialize some variables set by options.
adamc@378 899 ac_init_help=
adamc@378 900 ac_init_version=false
adamc@1095 901 ac_unrecognized_opts=
adamc@1095 902 ac_unrecognized_sep=
adamc@378 903 # The variables have the same names as the options, with
adamc@378 904 # dashes changed to underlines.
adamc@378 905 cache_file=/dev/null
adamc@378 906 exec_prefix=NONE
adamc@378 907 no_create=
adamc@378 908 no_recursion=
adamc@378 909 prefix=NONE
adamc@378 910 program_prefix=NONE
adamc@378 911 program_suffix=NONE
adamc@378 912 program_transform_name=s,x,x,
adamc@378 913 silent=
adamc@378 914 site=
adamc@378 915 srcdir=
adamc@378 916 verbose=
adamc@378 917 x_includes=NONE
adamc@378 918 x_libraries=NONE
adamc@378 919
adamc@378 920 # Installation directory options.
adamc@378 921 # These are left unexpanded so users can "make install exec_prefix=/foo"
adamc@378 922 # and all the variables that are supposed to be based on exec_prefix
adamc@378 923 # by default will actually change.
adamc@378 924 # Use braces instead of parens because sh, perl, etc. also accept them.
adamc@378 925 # (The list follows the same order as the GNU Coding Standards.)
adamc@378 926 bindir='${exec_prefix}/bin'
adamc@378 927 sbindir='${exec_prefix}/sbin'
adamc@378 928 libexecdir='${exec_prefix}/libexec'
adamc@378 929 datarootdir='${prefix}/share'
adamc@378 930 datadir='${datarootdir}'
adamc@378 931 sysconfdir='${prefix}/etc'
adamc@378 932 sharedstatedir='${prefix}/com'
adamc@378 933 localstatedir='${prefix}/var'
adamc@378 934 includedir='${prefix}/include'
adamc@378 935 oldincludedir='/usr/include'
adamc@1132 936 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
adamc@378 937 infodir='${datarootdir}/info'
adamc@378 938 htmldir='${docdir}'
adamc@378 939 dvidir='${docdir}'
adamc@378 940 pdfdir='${docdir}'
adamc@378 941 psdir='${docdir}'
adamc@378 942 libdir='${exec_prefix}/lib'
adamc@378 943 localedir='${datarootdir}/locale'
adamc@378 944 mandir='${datarootdir}/man'
adamc@378 945
adamc@378 946 ac_prev=
adamc@378 947 ac_dashdash=
adamc@378 948 for ac_option
adamc@378 949 do
adamc@378 950 # If the previous option needs an argument, assign it.
adamc@378 951 if test -n "$ac_prev"; then
adamc@378 952 eval $ac_prev=\$ac_option
adamc@378 953 ac_prev=
adamc@378 954 continue
adamc@378 955 fi
adamc@378 956
adamc@378 957 case $ac_option in
adam@1315 958 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
adam@1315 959 *=) ac_optarg= ;;
adam@1315 960 *) ac_optarg=yes ;;
adamc@378 961 esac
adamc@378 962
adamc@378 963 # Accept the important Cygnus configure options, so we can diagnose typos.
adamc@378 964
adamc@378 965 case $ac_dashdash$ac_option in
adamc@378 966 --)
adamc@378 967 ac_dashdash=yes ;;
adamc@378 968
adamc@378 969 -bindir | --bindir | --bindi | --bind | --bin | --bi)
adamc@378 970 ac_prev=bindir ;;
adamc@378 971 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
adamc@378 972 bindir=$ac_optarg ;;
adamc@378 973
adamc@378 974 -build | --build | --buil | --bui | --bu)
adamc@378 975 ac_prev=build_alias ;;
adamc@378 976 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
adamc@378 977 build_alias=$ac_optarg ;;
adamc@378 978
adamc@378 979 -cache-file | --cache-file | --cache-fil | --cache-fi \
adamc@378 980 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
adamc@378 981 ac_prev=cache_file ;;
adamc@378 982 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
adamc@378 983 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
adamc@378 984 cache_file=$ac_optarg ;;
adamc@378 985
adamc@378 986 --config-cache | -C)
adamc@378 987 cache_file=config.cache ;;
adamc@378 988
adamc@378 989 -datadir | --datadir | --datadi | --datad)
adamc@378 990 ac_prev=datadir ;;
adamc@378 991 -datadir=* | --datadir=* | --datadi=* | --datad=*)
adamc@378 992 datadir=$ac_optarg ;;
adamc@378 993
adamc@378 994 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
adamc@378 995 | --dataroo | --dataro | --datar)
adamc@378 996 ac_prev=datarootdir ;;
adamc@378 997 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
adamc@378 998 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
adamc@378 999 datarootdir=$ac_optarg ;;
adamc@378 1000
adamc@378 1001 -disable-* | --disable-*)
adamc@1095 1002 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
adamc@378 1003 # Reject names that are not valid shell variable names.
adamc@1095 1004 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
adam@1315 1005 as_fn_error $? "invalid feature name: $ac_useropt"
adamc@1095 1006 ac_useropt_orig=$ac_useropt
adamc@1095 1007 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
adamc@1095 1008 case $ac_user_opts in
adamc@1095 1009 *"
adamc@1095 1010 "enable_$ac_useropt"
adamc@1095 1011 "*) ;;
adamc@1095 1012 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
adamc@1095 1013 ac_unrecognized_sep=', ';;
adamc@1095 1014 esac
adamc@1095 1015 eval enable_$ac_useropt=no ;;
adamc@378 1016
adamc@378 1017 -docdir | --docdir | --docdi | --doc | --do)
adamc@378 1018 ac_prev=docdir ;;
adamc@378 1019 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
adamc@378 1020 docdir=$ac_optarg ;;
adamc@378 1021
adamc@378 1022 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
adamc@378 1023 ac_prev=dvidir ;;
adamc@378 1024 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
adamc@378 1025 dvidir=$ac_optarg ;;
adamc@378 1026
adamc@378 1027 -enable-* | --enable-*)
adamc@1095 1028 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
adamc@378 1029 # Reject names that are not valid shell variable names.
adamc@1095 1030 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
adam@1315 1031 as_fn_error $? "invalid feature name: $ac_useropt"
adamc@1095 1032 ac_useropt_orig=$ac_useropt
adamc@1095 1033 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
adamc@1095 1034 case $ac_user_opts in
adamc@1095 1035 *"
adamc@1095 1036 "enable_$ac_useropt"
adamc@1095 1037 "*) ;;
adamc@1095 1038 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
adamc@1095 1039 ac_unrecognized_sep=', ';;
adamc@1095 1040 esac
adamc@1095 1041 eval enable_$ac_useropt=\$ac_optarg ;;
adamc@378 1042
adamc@378 1043 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
adamc@378 1044 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
adamc@378 1045 | --exec | --exe | --ex)
adamc@378 1046 ac_prev=exec_prefix ;;
adamc@378 1047 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
adamc@378 1048 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
adamc@378 1049 | --exec=* | --exe=* | --ex=*)
adamc@378 1050 exec_prefix=$ac_optarg ;;
adamc@378 1051
adamc@378 1052 -gas | --gas | --ga | --g)
adamc@378 1053 # Obsolete; use --with-gas.
adamc@378 1054 with_gas=yes ;;
adamc@378 1055
adamc@378 1056 -help | --help | --hel | --he | -h)
adamc@378 1057 ac_init_help=long ;;
adamc@378 1058 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
adamc@378 1059 ac_init_help=recursive ;;
adamc@378 1060 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
adamc@378 1061 ac_init_help=short ;;
adamc@378 1062
adamc@378 1063 -host | --host | --hos | --ho)
adamc@378 1064 ac_prev=host_alias ;;
adamc@378 1065 -host=* | --host=* | --hos=* | --ho=*)
adamc@378 1066 host_alias=$ac_optarg ;;
adamc@378 1067
adamc@378 1068 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
adamc@378 1069 ac_prev=htmldir ;;
adamc@378 1070 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
adamc@378 1071 | --ht=*)
adamc@378 1072 htmldir=$ac_optarg ;;
adamc@378 1073
adamc@378 1074 -includedir | --includedir | --includedi | --included | --include \
adamc@378 1075 | --includ | --inclu | --incl | --inc)
adamc@378 1076 ac_prev=includedir ;;
adamc@378 1077 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
adamc@378 1078 | --includ=* | --inclu=* | --incl=* | --inc=*)
adamc@378 1079 includedir=$ac_optarg ;;
adamc@378 1080
adamc@378 1081 -infodir | --infodir | --infodi | --infod | --info | --inf)
adamc@378 1082 ac_prev=infodir ;;
adamc@378 1083 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
adamc@378 1084 infodir=$ac_optarg ;;
adamc@378 1085
adamc@378 1086 -libdir | --libdir | --libdi | --libd)
adamc@378 1087 ac_prev=libdir ;;
adamc@378 1088 -libdir=* | --libdir=* | --libdi=* | --libd=*)
adamc@378 1089 libdir=$ac_optarg ;;
adamc@378 1090
adamc@378 1091 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
adamc@378 1092 | --libexe | --libex | --libe)
adamc@378 1093 ac_prev=libexecdir ;;
adamc@378 1094 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
adamc@378 1095 | --libexe=* | --libex=* | --libe=*)
adamc@378 1096 libexecdir=$ac_optarg ;;
adamc@378 1097
adamc@378 1098 -localedir | --localedir | --localedi | --localed | --locale)
adamc@378 1099 ac_prev=localedir ;;
adamc@378 1100 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
adamc@378 1101 localedir=$ac_optarg ;;
adamc@378 1102
adamc@378 1103 -localstatedir | --localstatedir | --localstatedi | --localstated \
adamc@378 1104 | --localstate | --localstat | --localsta | --localst | --locals)
adamc@378 1105 ac_prev=localstatedir ;;
adamc@378 1106 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
adamc@378 1107 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
adamc@378 1108 localstatedir=$ac_optarg ;;
adamc@378 1109
adamc@378 1110 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
adamc@378 1111 ac_prev=mandir ;;
adamc@378 1112 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
adamc@378 1113 mandir=$ac_optarg ;;
adamc@378 1114
adamc@378 1115 -nfp | --nfp | --nf)
adamc@378 1116 # Obsolete; use --without-fp.
adamc@378 1117 with_fp=no ;;
adamc@378 1118
adamc@378 1119 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
adamc@378 1120 | --no-cr | --no-c | -n)
adamc@378 1121 no_create=yes ;;
adamc@378 1122
adamc@378 1123 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
adamc@378 1124 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
adamc@378 1125 no_recursion=yes ;;
adamc@378 1126
adamc@378 1127 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
adamc@378 1128 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
adamc@378 1129 | --oldin | --oldi | --old | --ol | --o)
adamc@378 1130 ac_prev=oldincludedir ;;
adamc@378 1131 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
adamc@378 1132 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
adamc@378 1133 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
adamc@378 1134 oldincludedir=$ac_optarg ;;
adamc@378 1135
adamc@378 1136 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
adamc@378 1137 ac_prev=prefix ;;
adamc@378 1138 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
adamc@378 1139 prefix=$ac_optarg ;;
adamc@378 1140
adamc@378 1141 -program-prefix | --program-prefix | --program-prefi | --program-pref \
adamc@378 1142 | --program-pre | --program-pr | --program-p)
adamc@378 1143 ac_prev=program_prefix ;;
adamc@378 1144 -program-prefix=* | --program-prefix=* | --program-prefi=* \
adamc@378 1145 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
adamc@378 1146 program_prefix=$ac_optarg ;;
adamc@378 1147
adamc@378 1148 -program-suffix | --program-suffix | --program-suffi | --program-suff \
adamc@378 1149 | --program-suf | --program-su | --program-s)
adamc@378 1150 ac_prev=program_suffix ;;
adamc@378 1151 -program-suffix=* | --program-suffix=* | --program-suffi=* \
adamc@378 1152 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
adamc@378 1153 program_suffix=$ac_optarg ;;
adamc@378 1154
adamc@378 1155 -program-transform-name | --program-transform-name \
adamc@378 1156 | --program-transform-nam | --program-transform-na \
adamc@378 1157 | --program-transform-n | --program-transform- \
adamc@378 1158 | --program-transform | --program-transfor \
adamc@378 1159 | --program-transfo | --program-transf \
adamc@378 1160 | --program-trans | --program-tran \
adamc@378 1161 | --progr-tra | --program-tr | --program-t)
adamc@378 1162 ac_prev=program_transform_name ;;
adamc@378 1163 -program-transform-name=* | --program-transform-name=* \
adamc@378 1164 | --program-transform-nam=* | --program-transform-na=* \
adamc@378 1165 | --program-transform-n=* | --program-transform-=* \
adamc@378 1166 | --program-transform=* | --program-transfor=* \
adamc@378 1167 | --program-transfo=* | --program-transf=* \
adamc@378 1168 | --program-trans=* | --program-tran=* \
adamc@378 1169 | --progr-tra=* | --program-tr=* | --program-t=*)
adamc@378 1170 program_transform_name=$ac_optarg ;;
adamc@378 1171
adamc@378 1172 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
adamc@378 1173 ac_prev=pdfdir ;;
adamc@378 1174 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
adamc@378 1175 pdfdir=$ac_optarg ;;
adamc@378 1176
adamc@378 1177 -psdir | --psdir | --psdi | --psd | --ps)
adamc@378 1178 ac_prev=psdir ;;
adamc@378 1179 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
adamc@378 1180 psdir=$ac_optarg ;;
adamc@378 1181
adamc@378 1182 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
adamc@378 1183 | -silent | --silent | --silen | --sile | --sil)
adamc@378 1184 silent=yes ;;
adamc@378 1185
adamc@378 1186 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
adamc@378 1187 ac_prev=sbindir ;;
adamc@378 1188 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
adamc@378 1189 | --sbi=* | --sb=*)
adamc@378 1190 sbindir=$ac_optarg ;;
adamc@378 1191
adamc@378 1192 -sharedstatedir | --sharedstatedir | --sharedstatedi \
adamc@378 1193 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
adamc@378 1194 | --sharedst | --shareds | --shared | --share | --shar \
adamc@378 1195 | --sha | --sh)
adamc@378 1196 ac_prev=sharedstatedir ;;
adamc@378 1197 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
adamc@378 1198 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
adamc@378 1199 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
adamc@378 1200 | --sha=* | --sh=*)
adamc@378 1201 sharedstatedir=$ac_optarg ;;
adamc@378 1202
adamc@378 1203 -site | --site | --sit)
adamc@378 1204 ac_prev=site ;;
adamc@378 1205 -site=* | --site=* | --sit=*)
adamc@378 1206 site=$ac_optarg ;;
adamc@378 1207
adamc@378 1208 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
adamc@378 1209 ac_prev=srcdir ;;
adamc@378 1210 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
adamc@378 1211 srcdir=$ac_optarg ;;
adamc@378 1212
adamc@378 1213 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
adamc@378 1214 | --syscon | --sysco | --sysc | --sys | --sy)
adamc@378 1215 ac_prev=sysconfdir ;;
adamc@378 1216 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
adamc@378 1217 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
adamc@378 1218 sysconfdir=$ac_optarg ;;
adamc@378 1219
adamc@378 1220 -target | --target | --targe | --targ | --tar | --ta | --t)
adamc@378 1221 ac_prev=target_alias ;;
adamc@378 1222 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
adamc@378 1223 target_alias=$ac_optarg ;;
adamc@378 1224
adamc@378 1225 -v | -verbose | --verbose | --verbos | --verbo | --verb)
adamc@378 1226 verbose=yes ;;
adamc@378 1227
adamc@378 1228 -version | --version | --versio | --versi | --vers | -V)
adamc@378 1229 ac_init_version=: ;;
adamc@378 1230
adamc@378 1231 -with-* | --with-*)
adamc@1095 1232 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
adamc@378 1233 # Reject names that are not valid shell variable names.
adamc@1095 1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
adam@1315 1235 as_fn_error $? "invalid package name: $ac_useropt"
adamc@1095 1236 ac_useropt_orig=$ac_useropt
adamc@1095 1237 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
adamc@1095 1238 case $ac_user_opts in
adamc@1095 1239 *"
adamc@1095 1240 "with_$ac_useropt"
adamc@1095 1241 "*) ;;
adamc@1095 1242 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
adamc@1095 1243 ac_unrecognized_sep=', ';;
adamc@1095 1244 esac
adamc@1095 1245 eval with_$ac_useropt=\$ac_optarg ;;
adamc@378 1246
adamc@378 1247 -without-* | --without-*)
adamc@1095 1248 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
adamc@378 1249 # Reject names that are not valid shell variable names.
adamc@1095 1250 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
adam@1315 1251 as_fn_error $? "invalid package name: $ac_useropt"
adamc@1095 1252 ac_useropt_orig=$ac_useropt
adamc@1095 1253 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
adamc@1095 1254 case $ac_user_opts in
adamc@1095 1255 *"
adamc@1095 1256 "with_$ac_useropt"
adamc@1095 1257 "*) ;;
adamc@1095 1258 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
adamc@1095 1259 ac_unrecognized_sep=', ';;
adamc@1095 1260 esac
adamc@1095 1261 eval with_$ac_useropt=no ;;
adamc@378 1262
adamc@378 1263 --x)
adamc@378 1264 # Obsolete; use --with-x.
adamc@378 1265 with_x=yes ;;
adamc@378 1266
adamc@378 1267 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
adamc@378 1268 | --x-incl | --x-inc | --x-in | --x-i)
adamc@378 1269 ac_prev=x_includes ;;
adamc@378 1270 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
adamc@378 1271 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
adamc@378 1272 x_includes=$ac_optarg ;;
adamc@378 1273
adamc@378 1274 -x-libraries | --x-libraries | --x-librarie | --x-librari \
adamc@378 1275 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
adamc@378 1276 ac_prev=x_libraries ;;
adamc@378 1277 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
adamc@378 1278 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
adamc@378 1279 x_libraries=$ac_optarg ;;
adamc@378 1280
adam@1315 1281 -*) as_fn_error $? "unrecognized option: \`$ac_option'
adam@1315 1282 Try \`$0 --help' for more information"
adamc@378 1283 ;;
adamc@378 1284
adamc@378 1285 *=*)
adamc@378 1286 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
adamc@378 1287 # Reject names that are not valid shell variable names.
adamc@1095 1288 case $ac_envvar in #(
adamc@1095 1289 '' | [0-9]* | *[!_$as_cr_alnum]* )
adam@1315 1290 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
adamc@1095 1291 esac
adamc@378 1292 eval $ac_envvar=\$ac_optarg
adamc@378 1293 export $ac_envvar ;;
adamc@378 1294
adamc@378 1295 *)
adamc@378 1296 # FIXME: should be removed in autoconf 3.0.
adamc@1095 1297 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
adamc@378 1298 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
adamc@1095 1299 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
adam@1826 1300 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
adamc@378 1301 ;;
adamc@378 1302
adamc@378 1303 esac
adamc@378 1304 done
adamc@378 1305
adamc@378 1306 if test -n "$ac_prev"; then
adamc@378 1307 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
adam@1315 1308 as_fn_error $? "missing argument to $ac_option"
adamc@378 1309 fi
adamc@378 1310
adamc@1095 1311 if test -n "$ac_unrecognized_opts"; then
adamc@1095 1312 case $enable_option_checking in
adamc@1095 1313 no) ;;
adam@1315 1314 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
adamc@1095 1315 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
adamc@1095 1316 esac
adamc@1095 1317 fi
adamc@1095 1318
adamc@1095 1319 # Check all directory arguments for consistency.
adamc@378 1320 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
adamc@378 1321 datadir sysconfdir sharedstatedir localstatedir includedir \
adamc@378 1322 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
adamc@378 1323 libdir localedir mandir
adamc@378 1324 do
adamc@378 1325 eval ac_val=\$$ac_var
adamc@1095 1326 # Remove trailing slashes.
adamc@1095 1327 case $ac_val in
adamc@1095 1328 */ )
adamc@1095 1329 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
adamc@1095 1330 eval $ac_var=\$ac_val;;
adamc@1095 1331 esac
adamc@1095 1332 # Be sure to have absolute directory names.
adamc@378 1333 case $ac_val in
adamc@378 1334 [\\/$]* | ?:[\\/]* ) continue;;
adamc@378 1335 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
adamc@378 1336 esac
adam@1315 1337 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
adamc@378 1338 done
adamc@378 1339
adamc@378 1340 # There might be people who depend on the old broken behavior: `$host'
adamc@378 1341 # used to hold the argument of --host etc.
adamc@378 1342 # FIXME: To remove some day.
adamc@378 1343 build=$build_alias
adamc@378 1344 host=$host_alias
adamc@378 1345 target=$target_alias
adamc@378 1346
adamc@378 1347 # FIXME: To remove some day.
adamc@378 1348 if test "x$host_alias" != x; then
adamc@378 1349 if test "x$build_alias" = x; then
adamc@378 1350 cross_compiling=maybe
adam@1826 1351 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
adam@1826 1352 If a cross compiler is detected then cross compile mode will be used" >&2
adamc@378 1353 elif test "x$build_alias" != "x$host_alias"; then
adamc@378 1354 cross_compiling=yes
adamc@378 1355 fi
adamc@378 1356 fi
adamc@378 1357
adamc@378 1358 ac_tool_prefix=
adamc@378 1359 test -n "$host_alias" && ac_tool_prefix=$host_alias-
adamc@378 1360
adamc@378 1361 test "$silent" = yes && exec 6>/dev/null
adamc@378 1362
adamc@378 1363
adamc@378 1364 ac_pwd=`pwd` && test -n "$ac_pwd" &&
adamc@378 1365 ac_ls_di=`ls -di .` &&
adamc@378 1366 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
adam@1315 1367 as_fn_error $? "working directory cannot be determined"
adamc@378 1368 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
adam@1315 1369 as_fn_error $? "pwd does not report name of working directory"
adamc@378 1370
adamc@378 1371
adamc@378 1372 # Find the source files, if location was not specified.
adamc@378 1373 if test -z "$srcdir"; then
adamc@378 1374 ac_srcdir_defaulted=yes
adamc@378 1375 # Try the directory containing this script, then the parent directory.
adamc@1095 1376 ac_confdir=`$as_dirname -- "$as_myself" ||
adamc@1095 1377 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
adamc@1095 1378 X"$as_myself" : 'X\(//\)[^/]' \| \
adamc@1095 1379 X"$as_myself" : 'X\(//\)$' \| \
adamc@1095 1380 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
adamc@1095 1381 $as_echo X"$as_myself" |
adamc@378 1382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
adamc@378 1383 s//\1/
adamc@378 1384 q
adamc@378 1385 }
adamc@378 1386 /^X\(\/\/\)[^/].*/{
adamc@378 1387 s//\1/
adamc@378 1388 q
adamc@378 1389 }
adamc@378 1390 /^X\(\/\/\)$/{
adamc@378 1391 s//\1/
adamc@378 1392 q
adamc@378 1393 }
adamc@378 1394 /^X\(\/\).*/{
adamc@378 1395 s//\1/
adamc@378 1396 q
adamc@378 1397 }
adamc@378 1398 s/.*/./; q'`
adamc@378 1399 srcdir=$ac_confdir
adamc@378 1400 if test ! -r "$srcdir/$ac_unique_file"; then
adamc@378 1401 srcdir=..
adamc@378 1402 fi
adamc@378 1403 else
adamc@378 1404 ac_srcdir_defaulted=no
adamc@378 1405 fi
adamc@378 1406 if test ! -r "$srcdir/$ac_unique_file"; then
adamc@378 1407 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
adam@1315 1408 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
adamc@378 1409 fi
adamc@378 1410 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
adamc@378 1411 ac_abs_confdir=`(
adam@1315 1412 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
adamc@378 1413 pwd)`
adamc@378 1414 # When building in place, set srcdir=.
adamc@378 1415 if test "$ac_abs_confdir" = "$ac_pwd"; then
adamc@378 1416 srcdir=.
adamc@378 1417 fi
adamc@378 1418 # Remove unnecessary trailing slashes from srcdir.
adamc@378 1419 # Double slashes in file names in object file debugging info
adamc@378 1420 # mess up M-x gdb in Emacs.
adamc@378 1421 case $srcdir in
adamc@378 1422 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
adamc@378 1423 esac
adamc@378 1424 for ac_var in $ac_precious_vars; do
adamc@378 1425 eval ac_env_${ac_var}_set=\${${ac_var}+set}
adamc@378 1426 eval ac_env_${ac_var}_value=\$${ac_var}
adamc@378 1427 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
adamc@378 1428 eval ac_cv_env_${ac_var}_value=\$${ac_var}
adamc@378 1429 done
adamc@378 1430
adamc@378 1431 #
adamc@378 1432 # Report the --help message.
adamc@378 1433 #
adamc@378 1434 if test "$ac_init_help" = "long"; then
adamc@378 1435 # Omit some internal or obsolete options to make the list less imposing.
adamc@378 1436 # This message is too long to be a string in the A/UX 3.1 sh.
adamc@378 1437 cat <<_ACEOF
adam@1851 1438 \`configure' configures urweb 20130421 to adapt to many kinds of systems.
adamc@378 1439
adamc@378 1440 Usage: $0 [OPTION]... [VAR=VALUE]...
adamc@378 1441
adamc@378 1442 To assign environment variables (e.g., CC, CFLAGS...), specify them as
adamc@378 1443 VAR=VALUE. See below for descriptions of some of the useful variables.
adamc@378 1444
adamc@378 1445 Defaults for the options are specified in brackets.
adamc@378 1446
adamc@378 1447 Configuration:
adamc@378 1448 -h, --help display this help and exit
adamc@378 1449 --help=short display options specific to this package
adamc@378 1450 --help=recursive display the short help of all the included packages
adamc@378 1451 -V, --version display version information and exit
adam@1315 1452 -q, --quiet, --silent do not print \`checking ...' messages
adamc@378 1453 --cache-file=FILE cache test results in FILE [disabled]
adamc@378 1454 -C, --config-cache alias for \`--cache-file=config.cache'
adamc@378 1455 -n, --no-create do not create output files
adamc@378 1456 --srcdir=DIR find the sources in DIR [configure dir or \`..']
adamc@378 1457
adamc@378 1458 Installation directories:
adamc@378 1459 --prefix=PREFIX install architecture-independent files in PREFIX
adamc@1095 1460 [$ac_default_prefix]
adamc@378 1461 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
adamc@1095 1462 [PREFIX]
adamc@378 1463
adamc@378 1464 By default, \`make install' will install all the files in
adamc@378 1465 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
adamc@378 1466 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
adamc@378 1467 for instance \`--prefix=\$HOME'.
adamc@378 1468
adamc@378 1469 For better control, use the options below.
adamc@378 1470
adamc@378 1471 Fine tuning of the installation directories:
adamc@1095 1472 --bindir=DIR user executables [EPREFIX/bin]
adamc@1095 1473 --sbindir=DIR system admin executables [EPREFIX/sbin]
adamc@1095 1474 --libexecdir=DIR program executables [EPREFIX/libexec]
adamc@1095 1475 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
adamc@1095 1476 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
adamc@1095 1477 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
adamc@1095 1478 --libdir=DIR object code libraries [EPREFIX/lib]
adamc@1095 1479 --includedir=DIR C header files [PREFIX/include]
adamc@1095 1480 --oldincludedir=DIR C header files for non-gcc [/usr/include]
adamc@1095 1481 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
adamc@1095 1482 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
adamc@1095 1483 --infodir=DIR info documentation [DATAROOTDIR/info]
adamc@1095 1484 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
adamc@1095 1485 --mandir=DIR man documentation [DATAROOTDIR/man]
adamc@1132 1486 --docdir=DIR documentation root [DATAROOTDIR/doc/urweb]
adamc@1095 1487 --htmldir=DIR html documentation [DOCDIR]
adamc@1095 1488 --dvidir=DIR dvi documentation [DOCDIR]
adamc@1095 1489 --pdfdir=DIR pdf documentation [DOCDIR]
adamc@1095 1490 --psdir=DIR ps documentation [DOCDIR]
adamc@378 1491 _ACEOF
adamc@378 1492
adamc@378 1493 cat <<\_ACEOF
adamc@1132 1494
adamc@1132 1495 Program names:
adamc@1132 1496 --program-prefix=PREFIX prepend PREFIX to installed program names
adamc@1132 1497 --program-suffix=SUFFIX append SUFFIX to installed program names
adamc@1132 1498 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
adamc@1132 1499
adamc@1132 1500 System types:
adamc@1132 1501 --build=BUILD configure for building on BUILD [guessed]
adamc@1132 1502 --host=HOST cross-compile to build programs to run on HOST [BUILD]
adamc@378 1503 _ACEOF
adamc@378 1504 fi
adamc@378 1505
adamc@378 1506 if test -n "$ac_init_help"; then
adamc@1132 1507 case $ac_init_help in
adam@1851 1508 short | recursive ) echo "Configuration of urweb 20130421:";;
adamc@1132 1509 esac
adamc@378 1510 cat <<\_ACEOF
adamc@378 1511
adamc@1132 1512 Optional Features:
adamc@1132 1513 --disable-option-checking ignore unrecognized --enable/--with options
adamc@1132 1514 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
adamc@1132 1515 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
adamc@1132 1516 --disable-dependency-tracking speeds up one-time build
adamc@1132 1517 --enable-dependency-tracking do not reject slow dependency extractors
adamc@1132 1518 --enable-shared[=PKGS] build shared libraries [default=yes]
adamc@1132 1519 --enable-static[=PKGS] build static libraries [default=yes]
adamc@1132 1520 --enable-fast-install[=PKGS]
adamc@1132 1521 optimize for fast installation [default=yes]
adamc@1132 1522 --disable-libtool-lock avoid locking (might break parallel builds)
adamc@1132 1523
adamc@1132 1524 Optional Packages:
adamc@1132 1525 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
adamc@1132 1526 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
adam@1826 1527 --with-pic try to use only PIC/non-PIC objects [default=use
adamc@1132 1528 both]
adamc@1132 1529 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
adam@1368 1530 --with-openssl=DIR root of the OpenSSL directory
adam@1441 1531 --without-emacs disable installation of Emacs mode
adamc@1132 1532
adamc@1132 1533 Some influential environment variables:
adamc@1132 1534 CC C compiler command
adamc@1132 1535 CFLAGS C compiler flags
adamc@1132 1536 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
adamc@1132 1537 nonstandard directory <lib dir>
adamc@1132 1538 LIBS libraries to pass to the linker, e.g. -l<library>
adamc@1132 1539 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
adamc@1132 1540 you have headers in a nonstandard directory <include dir>
adamc@1132 1541 CPP C preprocessor
adamc@1132 1542
adamc@1132 1543 Use these variables to override the choices made by `configure' or to help
adamc@1132 1544 it to find libraries and programs with nonstandard names/locations.
adamc@1132 1545
adamc@1095 1546 Report bugs to the package provider.
adamc@378 1547 _ACEOF
adamc@378 1548 ac_status=$?
adamc@378 1549 fi
adamc@378 1550
adamc@378 1551 if test "$ac_init_help" = "recursive"; then
adamc@378 1552 # If there are subdirs, report their specific --help.
adamc@378 1553 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
adamc@1095 1554 test -d "$ac_dir" ||
adamc@1095 1555 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
adamc@1095 1556 continue
adamc@378 1557 ac_builddir=.
adamc@378 1558
adamc@378 1559 case "$ac_dir" in
adamc@378 1560 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
adamc@378 1561 *)
adamc@1095 1562 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
adamc@378 1563 # A ".." for each directory in $ac_dir_suffix.
adamc@1095 1564 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
adamc@378 1565 case $ac_top_builddir_sub in
adamc@378 1566 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
adamc@378 1567 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
adamc@378 1568 esac ;;
adamc@378 1569 esac
adamc@378 1570 ac_abs_top_builddir=$ac_pwd
adamc@378 1571 ac_abs_builddir=$ac_pwd$ac_dir_suffix
adamc@378 1572 # for backward compatibility:
adamc@378 1573 ac_top_builddir=$ac_top_build_prefix
adamc@378 1574
adamc@378 1575 case $srcdir in
adamc@378 1576 .) # We are building in place.
adamc@378 1577 ac_srcdir=.
adamc@378 1578 ac_top_srcdir=$ac_top_builddir_sub
adamc@378 1579 ac_abs_top_srcdir=$ac_pwd ;;
adamc@378 1580 [\\/]* | ?:[\\/]* ) # Absolute name.
adamc@378 1581 ac_srcdir=$srcdir$ac_dir_suffix;
adamc@378 1582 ac_top_srcdir=$srcdir
adamc@378 1583 ac_abs_top_srcdir=$srcdir ;;
adamc@378 1584 *) # Relative name.
adamc@378 1585 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
adamc@378 1586 ac_top_srcdir=$ac_top_build_prefix$srcdir
adamc@378 1587 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
adamc@378 1588 esac
adamc@378 1589 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
adamc@378 1590
adamc@378 1591 cd "$ac_dir" || { ac_status=$?; continue; }
adamc@378 1592 # Check for guested configure.
adamc@378 1593 if test -f "$ac_srcdir/configure.gnu"; then
adamc@378 1594 echo &&
adamc@378 1595 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
adamc@378 1596 elif test -f "$ac_srcdir/configure"; then
adamc@378 1597 echo &&
adamc@378 1598 $SHELL "$ac_srcdir/configure" --help=recursive
adamc@378 1599 else
adamc@1095 1600 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
adamc@378 1601 fi || ac_status=$?
adamc@378 1602 cd "$ac_pwd" || { ac_status=$?; break; }
adamc@378 1603 done
adamc@378 1604 fi
adamc@378 1605
adamc@378 1606 test -n "$ac_init_help" && exit $ac_status
adamc@378 1607 if $ac_init_version; then
adamc@378 1608 cat <<\_ACEOF
adam@1851 1609 urweb configure 20130421
adam@1826 1610 generated by GNU Autoconf 2.67
adam@1826 1611
adam@1826 1612 Copyright (C) 2010 Free Software Foundation, Inc.
adamc@378 1613 This configure script is free software; the Free Software Foundation
adamc@378 1614 gives unlimited permission to copy, distribute and modify it.
adamc@378 1615 _ACEOF
adamc@378 1616 exit
adamc@378 1617 fi
adamc@1095 1618
adamc@1095 1619 ## ------------------------ ##
adamc@1095 1620 ## Autoconf initialization. ##
adamc@1095 1621 ## ------------------------ ##
adamc@1132 1622
adamc@1132 1623 # ac_fn_c_try_compile LINENO
adamc@1132 1624 # --------------------------
adamc@1132 1625 # Try to compile conftest.$ac_ext, and return whether this succeeded.
adamc@1132 1626 ac_fn_c_try_compile ()
adamc@1132 1627 {
adamc@1132 1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
adamc@1132 1629 rm -f conftest.$ac_objext
adamc@1132 1630 if { { ac_try="$ac_compile"
adamc@1132 1631 case "(($ac_try" in
adamc@1132 1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1132 1633 *) ac_try_echo=$ac_try;;
adamc@1132 1634 esac
adamc@1132 1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1132 1636 $as_echo "$ac_try_echo"; } >&5
adamc@1132 1637 (eval "$ac_compile") 2>conftest.err
adamc@1132 1638 ac_status=$?
adamc@1132 1639 if test -s conftest.err; then
adamc@1132 1640 grep -v '^ *+' conftest.err >conftest.er1
adamc@1132 1641 cat conftest.er1 >&5
adamc@1132 1642 mv -f conftest.er1 conftest.err
adamc@1132 1643 fi
adamc@1132 1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 1645 test $ac_status = 0; } && {
adamc@1132 1646 test -z "$ac_c_werror_flag" ||
adamc@1132 1647 test ! -s conftest.err
adamc@1132 1648 } && test -s conftest.$ac_objext; then :
adamc@1132 1649 ac_retval=0
adamc@1132 1650 else
adamc@1132 1651 $as_echo "$as_me: failed program was:" >&5
adamc@1132 1652 sed 's/^/| /' conftest.$ac_ext >&5
adamc@1132 1653
adamc@1132 1654 ac_retval=1
adamc@1132 1655 fi
adam@1826 1656 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
adamc@1132 1657 as_fn_set_status $ac_retval
adamc@1132 1658
adamc@1132 1659 } # ac_fn_c_try_compile
adamc@1132 1660
adamc@1149 1661 # ac_fn_c_try_cpp LINENO
adamc@1149 1662 # ----------------------
adamc@1149 1663 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
adamc@1149 1664 ac_fn_c_try_cpp ()
adamc@1149 1665 {
adamc@1149 1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
adamc@1149 1667 if { { ac_try="$ac_cpp conftest.$ac_ext"
adamc@1149 1668 case "(($ac_try" in
adamc@1149 1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1149 1670 *) ac_try_echo=$ac_try;;
adamc@1149 1671 esac
adamc@1149 1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1149 1673 $as_echo "$ac_try_echo"; } >&5
adamc@1149 1674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
adamc@1149 1675 ac_status=$?
adamc@1149 1676 if test -s conftest.err; then
adamc@1149 1677 grep -v '^ *+' conftest.err >conftest.er1
adamc@1149 1678 cat conftest.er1 >&5
adamc@1149 1679 mv -f conftest.er1 conftest.err
adamc@1149 1680 fi
adamc@1149 1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adam@1315 1682 test $ac_status = 0; } > conftest.i && {
adamc@1149 1683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
adamc@1149 1684 test ! -s conftest.err
adamc@1149 1685 }; then :
adamc@1149 1686 ac_retval=0
adamc@1149 1687 else
adamc@1149 1688 $as_echo "$as_me: failed program was:" >&5
adamc@1149 1689 sed 's/^/| /' conftest.$ac_ext >&5
adamc@1149 1690
adamc@1149 1691 ac_retval=1
adamc@1149 1692 fi
adam@1826 1693 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
adamc@1149 1694 as_fn_set_status $ac_retval
adamc@1149 1695
adamc@1149 1696 } # ac_fn_c_try_cpp
adamc@1149 1697
adamc@1149 1698 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
adamc@1149 1699 # -------------------------------------------------------
adamc@1149 1700 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
adamc@1149 1701 # the include files in INCLUDES and setting the cache variable VAR
adamc@1149 1702 # accordingly.
adamc@1149 1703 ac_fn_c_check_header_mongrel ()
adamc@1149 1704 {
adamc@1149 1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
adam@1826 1706 if eval "test \"\${$3+set}\"" = set; then :
adamc@1149 1707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
adamc@1149 1708 $as_echo_n "checking for $2... " >&6; }
adam@1826 1709 if eval "test \"\${$3+set}\"" = set; then :
adamc@1149 1710 $as_echo_n "(cached) " >&6
adamc@1149 1711 fi
adamc@1149 1712 eval ac_res=\$$3
adamc@1149 1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
adamc@1149 1714 $as_echo "$ac_res" >&6; }
adamc@1149 1715 else
adamc@1149 1716 # Is the header compilable?
adamc@1149 1717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
adamc@1149 1718 $as_echo_n "checking $2 usability... " >&6; }
adamc@1149 1719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 1720 /* end confdefs.h. */
adamc@1149 1721 $4
adamc@1149 1722 #include <$2>
adamc@1149 1723 _ACEOF
adamc@1149 1724 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1149 1725 ac_header_compiler=yes
adamc@1149 1726 else
adamc@1149 1727 ac_header_compiler=no
adamc@1149 1728 fi
adamc@1149 1729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
adamc@1149 1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
adamc@1149 1731 $as_echo "$ac_header_compiler" >&6; }
adamc@1149 1732
adamc@1149 1733 # Is the header present?
adamc@1149 1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
adamc@1149 1735 $as_echo_n "checking $2 presence... " >&6; }
adamc@1149 1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 1737 /* end confdefs.h. */
adamc@1149 1738 #include <$2>
adamc@1149 1739 _ACEOF
adamc@1149 1740 if ac_fn_c_try_cpp "$LINENO"; then :
adamc@1149 1741 ac_header_preproc=yes
adamc@1149 1742 else
adamc@1149 1743 ac_header_preproc=no
adamc@1149 1744 fi
adam@1315 1745 rm -f conftest.err conftest.i conftest.$ac_ext
adamc@1149 1746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
adamc@1149 1747 $as_echo "$ac_header_preproc" >&6; }
adamc@1149 1748
adamc@1149 1749 # So? What about this header?
adamc@1149 1750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
adamc@1149 1751 yes:no: )
adamc@1149 1752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
adamc@1149 1753 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
adamc@1149 1754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
adamc@1149 1755 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
adamc@1149 1756 ;;
adamc@1149 1757 no:yes:* )
adamc@1149 1758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
adamc@1149 1759 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
adamc@1149 1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
adamc@1149 1761 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
adamc@1149 1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
adamc@1149 1763 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
adamc@1149 1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
adamc@1149 1765 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
adamc@1149 1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
adamc@1149 1767 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
adamc@1149 1768 ;;
adamc@1149 1769 esac
adamc@1149 1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
adamc@1149 1771 $as_echo_n "checking for $2... " >&6; }
adam@1826 1772 if eval "test \"\${$3+set}\"" = set; then :
adamc@1149 1773 $as_echo_n "(cached) " >&6
adamc@1149 1774 else
adamc@1149 1775 eval "$3=\$ac_header_compiler"
adamc@1149 1776 fi
adamc@1149 1777 eval ac_res=\$$3
adamc@1149 1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
adamc@1149 1779 $as_echo "$ac_res" >&6; }
adamc@1149 1780 fi
adam@1826 1781 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
adamc@1149 1782
adamc@1149 1783 } # ac_fn_c_check_header_mongrel
adamc@1149 1784
adamc@1149 1785 # ac_fn_c_try_run LINENO
adamc@1149 1786 # ----------------------
adamc@1149 1787 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
adamc@1149 1788 # that executables *can* be run.
adamc@1149 1789 ac_fn_c_try_run ()
adamc@1149 1790 {
adamc@1149 1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
adamc@1149 1792 if { { ac_try="$ac_link"
adamc@1149 1793 case "(($ac_try" in
adamc@1149 1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1149 1795 *) ac_try_echo=$ac_try;;
adamc@1149 1796 esac
adamc@1149 1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1149 1798 $as_echo "$ac_try_echo"; } >&5
adamc@1149 1799 (eval "$ac_link") 2>&5
adamc@1149 1800 ac_status=$?
adamc@1149 1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1149 1802 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
adamc@1149 1803 { { case "(($ac_try" in
adamc@1149 1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1149 1805 *) ac_try_echo=$ac_try;;
adamc@1149 1806 esac
adamc@1149 1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1149 1808 $as_echo "$ac_try_echo"; } >&5
adamc@1149 1809 (eval "$ac_try") 2>&5
adamc@1149 1810 ac_status=$?
adamc@1149 1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1149 1812 test $ac_status = 0; }; }; then :
adamc@1149 1813 ac_retval=0
adamc@1149 1814 else
adamc@1149 1815 $as_echo "$as_me: program exited with status $ac_status" >&5
adamc@1149 1816 $as_echo "$as_me: failed program was:" >&5
adamc@1149 1817 sed 's/^/| /' conftest.$ac_ext >&5
adamc@1149 1818
adamc@1149 1819 ac_retval=$ac_status
adamc@1149 1820 fi
adamc@1149 1821 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
adam@1826 1822 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
adamc@1149 1823 as_fn_set_status $ac_retval
adamc@1149 1824
adamc@1149 1825 } # ac_fn_c_try_run
adamc@1149 1826
adamc@1149 1827 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
adamc@1149 1828 # -------------------------------------------------------
adamc@1149 1829 # Tests whether HEADER exists and can be compiled using the include files in
adamc@1149 1830 # INCLUDES, setting the cache variable VAR accordingly.
adamc@1149 1831 ac_fn_c_check_header_compile ()
adamc@1149 1832 {
adamc@1149 1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
adamc@1149 1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
adamc@1149 1835 $as_echo_n "checking for $2... " >&6; }
adam@1826 1836 if eval "test \"\${$3+set}\"" = set; then :
adamc@1149 1837 $as_echo_n "(cached) " >&6
adamc@1149 1838 else
adamc@1149 1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 1840 /* end confdefs.h. */
adamc@1149 1841 $4
adamc@1149 1842 #include <$2>
adamc@1149 1843 _ACEOF
adamc@1149 1844 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1149 1845 eval "$3=yes"
adamc@1149 1846 else
adamc@1149 1847 eval "$3=no"
adamc@1149 1848 fi
adamc@1149 1849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
adamc@1149 1850 fi
adamc@1149 1851 eval ac_res=\$$3
adamc@1149 1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
adamc@1149 1853 $as_echo "$ac_res" >&6; }
adam@1826 1854 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
adamc@1149 1855
adamc@1149 1856 } # ac_fn_c_check_header_compile
adamc@1149 1857
adamc@1132 1858 # ac_fn_c_try_link LINENO
adamc@1132 1859 # -----------------------
adamc@1132 1860 # Try to link conftest.$ac_ext, and return whether this succeeded.
adamc@1132 1861 ac_fn_c_try_link ()
adamc@1132 1862 {
adamc@1132 1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
adamc@1132 1864 rm -f conftest.$ac_objext conftest$ac_exeext
adamc@1132 1865 if { { ac_try="$ac_link"
adamc@1132 1866 case "(($ac_try" in
adamc@1132 1867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1132 1868 *) ac_try_echo=$ac_try;;
adamc@1132 1869 esac
adamc@1132 1870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1132 1871 $as_echo "$ac_try_echo"; } >&5
adamc@1132 1872 (eval "$ac_link") 2>conftest.err
adamc@1132 1873 ac_status=$?
adamc@1132 1874 if test -s conftest.err; then
adamc@1132 1875 grep -v '^ *+' conftest.err >conftest.er1
adamc@1132 1876 cat conftest.er1 >&5
adamc@1132 1877 mv -f conftest.er1 conftest.err
adamc@1132 1878 fi
adamc@1132 1879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 1880 test $ac_status = 0; } && {
adamc@1132 1881 test -z "$ac_c_werror_flag" ||
adamc@1132 1882 test ! -s conftest.err
adamc@1132 1883 } && test -s conftest$ac_exeext && {
adamc@1132 1884 test "$cross_compiling" = yes ||
adam@1826 1885 $as_test_x conftest$ac_exeext
adamc@1132 1886 }; then :
adamc@1132 1887 ac_retval=0
adamc@1132 1888 else
adamc@1132 1889 $as_echo "$as_me: failed program was:" >&5
adamc@1132 1890 sed 's/^/| /' conftest.$ac_ext >&5
adamc@1132 1891
adamc@1132 1892 ac_retval=1
adamc@1132 1893 fi
adamc@1132 1894 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
adamc@1132 1895 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
adamc@1132 1896 # interfere with the next link command; also delete a directory that is
adamc@1132 1897 # left behind by Apple's compiler. We do this before executing the actions.
adamc@1132 1898 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
adam@1826 1899 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
adamc@1132 1900 as_fn_set_status $ac_retval
adamc@1132 1901
adamc@1132 1902 } # ac_fn_c_try_link
adamc@1132 1903
adamc@1132 1904 # ac_fn_c_check_func LINENO FUNC VAR
adamc@1132 1905 # ----------------------------------
adamc@1132 1906 # Tests whether FUNC exists, setting the cache variable VAR accordingly
adamc@1132 1907 ac_fn_c_check_func ()
adamc@1132 1908 {
adamc@1132 1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
adamc@1132 1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
adamc@1132 1911 $as_echo_n "checking for $2... " >&6; }
adam@1826 1912 if eval "test \"\${$3+set}\"" = set; then :
adamc@1132 1913 $as_echo_n "(cached) " >&6
adamc@1132 1914 else
adamc@1132 1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 1916 /* end confdefs.h. */
adamc@1132 1917 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
adamc@1132 1918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
adamc@1132 1919 #define $2 innocuous_$2
adamc@1132 1920
adamc@1132 1921 /* System header to define __stub macros and hopefully few prototypes,
adamc@1132 1922 which can conflict with char $2 (); below.
adamc@1132 1923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
adamc@1132 1924 <limits.h> exists even on freestanding compilers. */
adamc@1132 1925
adamc@1132 1926 #ifdef __STDC__
adamc@1132 1927 # include <limits.h>
adamc@1132 1928 #else
adamc@1132 1929 # include <assert.h>
adamc@1132 1930 #endif
adamc@1132 1931
adamc@1132 1932 #undef $2
adamc@1132 1933
adamc@1132 1934 /* Override any GCC internal prototype to avoid an error.
adamc@1132 1935 Use char because int might match the return type of a GCC
adamc@1132 1936 builtin and then its argument prototype would still apply. */
adamc@1132 1937 #ifdef __cplusplus
adamc@1132 1938 extern "C"
adamc@1132 1939 #endif
adamc@1132 1940 char $2 ();
adamc@1132 1941 /* The GNU C library defines this for functions which it implements
adamc@1132 1942 to always fail with ENOSYS. Some functions are actually named
adamc@1132 1943 something starting with __ and the normal name is an alias. */
adamc@1132 1944 #if defined __stub_$2 || defined __stub___$2
adamc@1132 1945 choke me
adamc@1132 1946 #endif
adamc@1132 1947
adamc@1132 1948 int
adamc@1132 1949 main ()
adamc@1132 1950 {
adamc@1132 1951 return $2 ();
adamc@1132 1952 ;
adamc@1132 1953 return 0;
adamc@1132 1954 }
adamc@1132 1955 _ACEOF
adamc@1132 1956 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 1957 eval "$3=yes"
adamc@1132 1958 else
adamc@1132 1959 eval "$3=no"
adamc@1132 1960 fi
adamc@1132 1961 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 1962 conftest$ac_exeext conftest.$ac_ext
adamc@1132 1963 fi
adamc@1132 1964 eval ac_res=\$$3
adamc@1132 1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
adamc@1132 1966 $as_echo "$ac_res" >&6; }
adam@1826 1967 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
adamc@1132 1968
adamc@1132 1969 } # ac_fn_c_check_func
adamc@378 1970 cat >config.log <<_ACEOF
adamc@378 1971 This file contains any messages produced by compilers while
adamc@378 1972 running configure, to aid debugging if configure makes a mistake.
adamc@378 1973
adam@1851 1974 It was created by urweb $as_me 20130421, which was
adam@1826 1975 generated by GNU Autoconf 2.67. Invocation command line was
adamc@378 1976
adamc@378 1977 $ $0 $@
adamc@378 1978
adamc@378 1979 _ACEOF
adamc@378 1980 exec 5>>config.log
adamc@378 1981 {
adamc@378 1982 cat <<_ASUNAME
adamc@378 1983 ## --------- ##
adamc@378 1984 ## Platform. ##
adamc@378 1985 ## --------- ##
adamc@378 1986
adamc@378 1987 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
adamc@378 1988 uname -m = `(uname -m) 2>/dev/null || echo unknown`
adamc@378 1989 uname -r = `(uname -r) 2>/dev/null || echo unknown`
adamc@378 1990 uname -s = `(uname -s) 2>/dev/null || echo unknown`
adamc@378 1991 uname -v = `(uname -v) 2>/dev/null || echo unknown`
adamc@378 1992
adamc@378 1993 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
adamc@378 1994 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
adamc@378 1995
adamc@378 1996 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
adamc@378 1997 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
adamc@378 1998 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
adamc@378 1999 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
adamc@378 2000 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
adamc@378 2001 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
adamc@378 2002 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
adamc@378 2003
adamc@378 2004 _ASUNAME
adamc@378 2005
adamc@378 2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@378 2007 for as_dir in $PATH
adamc@378 2008 do
adamc@378 2009 IFS=$as_save_IFS
adamc@378 2010 test -z "$as_dir" && as_dir=.
adamc@1095 2011 $as_echo "PATH: $as_dir"
adamc@1095 2012 done
adamc@378 2013 IFS=$as_save_IFS
adamc@378 2014
adamc@378 2015 } >&5
adamc@378 2016
adamc@378 2017 cat >&5 <<_ACEOF
adamc@378 2018
adamc@378 2019
adamc@378 2020 ## ----------- ##
adamc@378 2021 ## Core tests. ##
adamc@378 2022 ## ----------- ##
adamc@378 2023
adamc@378 2024 _ACEOF
adamc@378 2025
adamc@378 2026
adamc@378 2027 # Keep a trace of the command line.
adamc@378 2028 # Strip out --no-create and --no-recursion so they do not pile up.
adamc@378 2029 # Strip out --silent because we don't want to record it for future runs.
adamc@378 2030 # Also quote any args containing shell meta-characters.
adamc@378 2031 # Make two passes to allow for proper duplicate-argument suppression.
adamc@378 2032 ac_configure_args=
adamc@378 2033 ac_configure_args0=
adamc@378 2034 ac_configure_args1=
adamc@378 2035 ac_must_keep_next=false
adamc@378 2036 for ac_pass in 1 2
adamc@378 2037 do
adamc@378 2038 for ac_arg
adamc@378 2039 do
adamc@378 2040 case $ac_arg in
adamc@378 2041 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
adamc@378 2042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
adamc@378 2043 | -silent | --silent | --silen | --sile | --sil)
adamc@378 2044 continue ;;
adamc@378 2045 *\'*)
adamc@1095 2046 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
adamc@378 2047 esac
adamc@378 2048 case $ac_pass in
adamc@1095 2049 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
adamc@378 2050 2)
adamc@1095 2051 as_fn_append ac_configure_args1 " '$ac_arg'"
adamc@378 2052 if test $ac_must_keep_next = true; then
adamc@378 2053 ac_must_keep_next=false # Got value, back to normal.
adamc@378 2054 else
adamc@378 2055 case $ac_arg in
adamc@378 2056 *=* | --config-cache | -C | -disable-* | --disable-* \
adamc@378 2057 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
adamc@378 2058 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
adamc@378 2059 | -with-* | --with-* | -without-* | --without-* | --x)
adamc@378 2060 case "$ac_configure_args0 " in
adamc@378 2061 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
adamc@378 2062 esac
adamc@378 2063 ;;
adamc@378 2064 -* ) ac_must_keep_next=true ;;
adamc@378 2065 esac
adamc@378 2066 fi
adamc@1095 2067 as_fn_append ac_configure_args " '$ac_arg'"
adamc@378 2068 ;;
adamc@378 2069 esac
adamc@378 2070 done
adamc@378 2071 done
adamc@1095 2072 { ac_configure_args0=; unset ac_configure_args0;}
adamc@1095 2073 { ac_configure_args1=; unset ac_configure_args1;}
adamc@378 2074
adamc@378 2075 # When interrupted or exit'd, cleanup temporary files, and complete
adamc@378 2076 # config.log. We remove comments because anyway the quotes in there
adamc@378 2077 # would cause problems or look ugly.
adamc@378 2078 # WARNING: Use '\'' to represent an apostrophe within the trap.
adamc@378 2079 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
adamc@378 2080 trap 'exit_status=$?
adamc@378 2081 # Save into config.log some information that might help in debugging.
adamc@378 2082 {
adamc@378 2083 echo
adamc@378 2084
adam@1315 2085 $as_echo "## ---------------- ##
adamc@378 2086 ## Cache variables. ##
adam@1315 2087 ## ---------------- ##"
adamc@378 2088 echo
adamc@378 2089 # The following way of writing the cache mishandles newlines in values,
adamc@378 2090 (
adamc@378 2091 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
adamc@378 2092 eval ac_val=\$$ac_var
adamc@378 2093 case $ac_val in #(
adamc@378 2094 *${as_nl}*)
adamc@378 2095 case $ac_var in #(
adamc@1095 2096 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
adamc@1095 2097 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
adamc@378 2098 esac
adamc@378 2099 case $ac_var in #(
adamc@378 2100 _ | IFS | as_nl) ;; #(
adamc@1095 2101 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
adamc@1095 2102 *) { eval $ac_var=; unset $ac_var;} ;;
adamc@378 2103 esac ;;
adamc@378 2104 esac
adamc@378 2105 done
adamc@378 2106 (set) 2>&1 |
adamc@378 2107 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
adamc@378 2108 *${as_nl}ac_space=\ *)
adamc@378 2109 sed -n \
adamc@378 2110 "s/'\''/'\''\\\\'\'''\''/g;
adamc@378 2111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
adamc@378 2112 ;; #(
adamc@378 2113 *)
adamc@378 2114 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
adamc@378 2115 ;;
adamc@378 2116 esac |
adamc@378 2117 sort
adamc@378 2118 )
adamc@378 2119 echo
adamc@378 2120
adam@1315 2121 $as_echo "## ----------------- ##
adamc@378 2122 ## Output variables. ##
adam@1315 2123 ## ----------------- ##"
adamc@378 2124 echo
adamc@378 2125 for ac_var in $ac_subst_vars
adamc@378 2126 do
adamc@378 2127 eval ac_val=\$$ac_var
adamc@378 2128 case $ac_val in
adamc@1095 2129 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
adamc@378 2130 esac
adamc@1095 2131 $as_echo "$ac_var='\''$ac_val'\''"
adamc@378 2132 done | sort
adamc@378 2133 echo
adamc@378 2134
adamc@378 2135 if test -n "$ac_subst_files"; then
adam@1315 2136 $as_echo "## ------------------- ##
adamc@378 2137 ## File substitutions. ##
adam@1315 2138 ## ------------------- ##"
adamc@378 2139 echo
adamc@378 2140 for ac_var in $ac_subst_files
adamc@378 2141 do
adamc@378 2142 eval ac_val=\$$ac_var
adamc@378 2143 case $ac_val in
adamc@1095 2144 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
adamc@378 2145 esac
adamc@1095 2146 $as_echo "$ac_var='\''$ac_val'\''"
adamc@378 2147 done | sort
adamc@378 2148 echo
adamc@378 2149 fi
adamc@378 2150
adamc@378 2151 if test -s confdefs.h; then
adam@1315 2152 $as_echo "## ----------- ##
adamc@378 2153 ## confdefs.h. ##
adam@1315 2154 ## ----------- ##"
adamc@378 2155 echo
adamc@378 2156 cat confdefs.h
adamc@378 2157 echo
adamc@378 2158 fi
adamc@378 2159 test "$ac_signal" != 0 &&
adamc@1095 2160 $as_echo "$as_me: caught signal $ac_signal"
adamc@1095 2161 $as_echo "$as_me: exit $exit_status"
adamc@378 2162 } >&5
adamc@378 2163 rm -f core *.core core.conftest.* &&
adamc@378 2164 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
adamc@378 2165 exit $exit_status
adamc@378 2166 ' 0
adamc@378 2167 for ac_signal in 1 2 13 15; do
adamc@1095 2168 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
adamc@378 2169 done
adamc@378 2170 ac_signal=0
adamc@378 2171
adamc@378 2172 # confdefs.h avoids OS command line length limits that DEFS can exceed.
adamc@378 2173 rm -f -r conftest* confdefs.h
adamc@378 2174
adamc@1095 2175 $as_echo "/* confdefs.h */" > confdefs.h
adamc@1095 2176
adamc@378 2177 # Predefined preprocessor variables.
adamc@378 2178
adamc@378 2179 cat >>confdefs.h <<_ACEOF
adamc@378 2180 #define PACKAGE_NAME "$PACKAGE_NAME"
adamc@378 2181 _ACEOF
adamc@378 2182
adamc@378 2183 cat >>confdefs.h <<_ACEOF
adamc@378 2184 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
adamc@378 2185 _ACEOF
adamc@378 2186
adamc@378 2187 cat >>confdefs.h <<_ACEOF
adamc@378 2188 #define PACKAGE_VERSION "$PACKAGE_VERSION"
adamc@378 2189 _ACEOF
adamc@378 2190
adamc@378 2191 cat >>confdefs.h <<_ACEOF
adamc@378 2192 #define PACKAGE_STRING "$PACKAGE_STRING"
adamc@378 2193 _ACEOF
adamc@378 2194
adamc@378 2195 cat >>confdefs.h <<_ACEOF
adamc@378 2196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
adamc@378 2197 _ACEOF
adamc@378 2198
adamc@1095 2199 cat >>confdefs.h <<_ACEOF
adamc@1095 2200 #define PACKAGE_URL "$PACKAGE_URL"
adamc@1095 2201 _ACEOF
adamc@1095 2202
adamc@378 2203
adamc@378 2204 # Let the site file select an alternate cache file if it wants to.
adamc@1095 2205 # Prefer an explicitly selected file to automatically selected ones.
adamc@1095 2206 ac_site_file1=NONE
adamc@1095 2207 ac_site_file2=NONE
adamc@378 2208 if test -n "$CONFIG_SITE"; then
adam@1315 2209 # We do not want a PATH search for config.site.
adam@1315 2210 case $CONFIG_SITE in #((
adam@1315 2211 -*) ac_site_file1=./$CONFIG_SITE;;
adam@1315 2212 */*) ac_site_file1=$CONFIG_SITE;;
adam@1315 2213 *) ac_site_file1=./$CONFIG_SITE;;
adam@1315 2214 esac
adamc@378 2215 elif test "x$prefix" != xNONE; then
adamc@1095 2216 ac_site_file1=$prefix/share/config.site
adamc@1095 2217 ac_site_file2=$prefix/etc/config.site
adamc@378 2218 else
adamc@1095 2219 ac_site_file1=$ac_default_prefix/share/config.site
adamc@1095 2220 ac_site_file2=$ac_default_prefix/etc/config.site
adamc@378 2221 fi
adamc@1095 2222 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
adamc@378 2223 do
adamc@1095 2224 test "x$ac_site_file" = xNONE && continue
adamc@1095 2225 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
adamc@1095 2226 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
adamc@1095 2227 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
adamc@378 2228 sed 's/^/| /' "$ac_site_file" >&5
adam@1315 2229 . "$ac_site_file" \
adam@1315 2230 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
adam@1315 2231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
adam@1315 2232 as_fn_error $? "failed to load site script $ac_site_file
adam@1826 2233 See \`config.log' for more details" "$LINENO" 5 ; }
adamc@378 2234 fi
adamc@378 2235 done
adamc@378 2236
adamc@378 2237 if test -r "$cache_file"; then
adamc@1095 2238 # Some versions of bash will fail to source /dev/null (special files
adamc@1095 2239 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
adamc@1095 2240 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
adamc@1095 2241 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
adamc@1095 2242 $as_echo "$as_me: loading cache $cache_file" >&6;}
adamc@378 2243 case $cache_file in
adamc@378 2244 [\\/]* | ?:[\\/]* ) . "$cache_file";;
adamc@378 2245 *) . "./$cache_file";;
adamc@378 2246 esac
adamc@378 2247 fi
adamc@378 2248 else
adamc@1095 2249 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
adamc@1095 2250 $as_echo "$as_me: creating cache $cache_file" >&6;}
adamc@378 2251 >$cache_file
adamc@378 2252 fi
adamc@378 2253
adamc@378 2254 # Check that the precious variables saved in the cache have kept the same
adamc@378 2255 # value.
adamc@378 2256 ac_cache_corrupted=false
adamc@378 2257 for ac_var in $ac_precious_vars; do
adamc@378 2258 eval ac_old_set=\$ac_cv_env_${ac_var}_set
adamc@378 2259 eval ac_new_set=\$ac_env_${ac_var}_set
adamc@378 2260 eval ac_old_val=\$ac_cv_env_${ac_var}_value
adamc@378 2261 eval ac_new_val=\$ac_env_${ac_var}_value
adamc@378 2262 case $ac_old_set,$ac_new_set in
adamc@378 2263 set,)
adamc@1095 2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
adamc@1095 2265 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
adamc@378 2266 ac_cache_corrupted=: ;;
adamc@378 2267 ,set)
adamc@1095 2268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
adamc@1095 2269 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
adamc@378 2270 ac_cache_corrupted=: ;;
adamc@378 2271 ,);;
adamc@378 2272 *)
adamc@378 2273 if test "x$ac_old_val" != "x$ac_new_val"; then
adamc@1095 2274 # differences in whitespace do not lead to failure.
adamc@1095 2275 ac_old_val_w=`echo x $ac_old_val`
adamc@1095 2276 ac_new_val_w=`echo x $ac_new_val`
adamc@1095 2277 if test "$ac_old_val_w" != "$ac_new_val_w"; then
adamc@1095 2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
adamc@1095 2279 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
adamc@1095 2280 ac_cache_corrupted=:
adamc@1095 2281 else
adamc@1095 2282 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
adamc@1095 2283 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
adamc@1095 2284 eval $ac_var=\$ac_old_val
adamc@1095 2285 fi
adamc@1095 2286 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
adamc@1095 2287 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
adamc@1095 2288 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
adamc@1095 2289 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
adamc@378 2290 fi;;
adamc@378 2291 esac
adamc@378 2292 # Pass precious variables to config.status.
adamc@378 2293 if test "$ac_new_set" = set; then
adamc@378 2294 case $ac_new_val in
adamc@1095 2295 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
adamc@378 2296 *) ac_arg=$ac_var=$ac_new_val ;;
adamc@378 2297 esac
adamc@378 2298 case " $ac_configure_args " in
adamc@378 2299 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
adamc@1095 2300 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
adamc@378 2301 esac
adamc@378 2302 fi
adamc@378 2303 done
adamc@378 2304 if $ac_cache_corrupted; then
adamc@1095 2305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
adamc@1095 2306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
adamc@1095 2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
adamc@1095 2308 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
adam@1315 2309 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
adamc@378 2310 fi
adamc@1095 2311 ## -------------------- ##
adamc@1095 2312 ## Main body of script. ##
adamc@1095 2313 ## -------------------- ##
adamc@378 2314
adamc@378 2315 ac_ext=c
adamc@378 2316 ac_cpp='$CPP $CPPFLAGS'
adamc@378 2317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adamc@378 2318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adamc@378 2319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adamc@378 2320
adamc@378 2321
adam@1853 2322 WORKING_VERSION=1
adamc@1149 2323 ac_ext=c
adamc@1149 2324 ac_cpp='$CPP $CPPFLAGS'
adamc@1149 2325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adamc@1149 2326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adamc@1149 2327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adamc@1149 2328 if test -n "$ac_tool_prefix"; then
adamc@1149 2329 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
adamc@1149 2330 set dummy ${ac_tool_prefix}gcc; ac_word=$2
adamc@1149 2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1149 2332 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 2333 if test "${ac_cv_prog_CC+set}" = set; then :
adamc@1149 2334 $as_echo_n "(cached) " >&6
adamc@1149 2335 else
adamc@1149 2336 if test -n "$CC"; then
adamc@1149 2337 ac_cv_prog_CC="$CC" # Let the user override the test.
adamc@1149 2338 else
adamc@1149 2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1149 2340 for as_dir in $PATH
adamc@1149 2341 do
adamc@1149 2342 IFS=$as_save_IFS
adamc@1149 2343 test -z "$as_dir" && as_dir=.
adamc@1149 2344 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 2345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1149 2346 ac_cv_prog_CC="${ac_tool_prefix}gcc"
adamc@1149 2347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1149 2348 break 2
adamc@1149 2349 fi
adamc@1149 2350 done
adamc@1149 2351 done
adamc@1149 2352 IFS=$as_save_IFS
adamc@1149 2353
adamc@1149 2354 fi
adamc@1149 2355 fi
adamc@1149 2356 CC=$ac_cv_prog_CC
adamc@1149 2357 if test -n "$CC"; then
adamc@1149 2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
adamc@1149 2359 $as_echo "$CC" >&6; }
adamc@1149 2360 else
adamc@1149 2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1149 2362 $as_echo "no" >&6; }
adamc@1149 2363 fi
adamc@1149 2364
adamc@1149 2365
adamc@1149 2366 fi
adamc@1149 2367 if test -z "$ac_cv_prog_CC"; then
adamc@1149 2368 ac_ct_CC=$CC
adamc@1149 2369 # Extract the first word of "gcc", so it can be a program name with args.
adamc@1149 2370 set dummy gcc; ac_word=$2
adamc@1149 2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1149 2372 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 2373 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
adamc@1149 2374 $as_echo_n "(cached) " >&6
adamc@1149 2375 else
adamc@1149 2376 if test -n "$ac_ct_CC"; then
adamc@1149 2377 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
adamc@1149 2378 else
adamc@1149 2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1149 2380 for as_dir in $PATH
adamc@1149 2381 do
adamc@1149 2382 IFS=$as_save_IFS
adamc@1149 2383 test -z "$as_dir" && as_dir=.
adamc@1149 2384 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 2385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1149 2386 ac_cv_prog_ac_ct_CC="gcc"
adamc@1149 2387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1149 2388 break 2
adamc@1149 2389 fi
adamc@1149 2390 done
adamc@1149 2391 done
adamc@1149 2392 IFS=$as_save_IFS
adamc@1149 2393
adamc@1149 2394 fi
adamc@1149 2395 fi
adamc@1149 2396 ac_ct_CC=$ac_cv_prog_ac_ct_CC
adamc@1149 2397 if test -n "$ac_ct_CC"; then
adamc@1149 2398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
adamc@1149 2399 $as_echo "$ac_ct_CC" >&6; }
adamc@1149 2400 else
adamc@1149 2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1149 2402 $as_echo "no" >&6; }
adamc@1149 2403 fi
adamc@1149 2404
adamc@1149 2405 if test "x$ac_ct_CC" = x; then
adamc@1149 2406 CC=""
adamc@1149 2407 else
adamc@1149 2408 case $cross_compiling:$ac_tool_warned in
adamc@1149 2409 yes:)
adamc@1149 2410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1149 2411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1149 2412 ac_tool_warned=yes ;;
adamc@1149 2413 esac
adamc@1149 2414 CC=$ac_ct_CC
adamc@1149 2415 fi
adamc@1149 2416 else
adamc@1149 2417 CC="$ac_cv_prog_CC"
adamc@1149 2418 fi
adamc@1149 2419
adamc@1149 2420 if test -z "$CC"; then
adamc@1149 2421 if test -n "$ac_tool_prefix"; then
adamc@1149 2422 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
adamc@1149 2423 set dummy ${ac_tool_prefix}cc; ac_word=$2
adamc@1149 2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1149 2425 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 2426 if test "${ac_cv_prog_CC+set}" = set; then :
adamc@1149 2427 $as_echo_n "(cached) " >&6
adamc@1149 2428 else
adamc@1149 2429 if test -n "$CC"; then
adamc@1149 2430 ac_cv_prog_CC="$CC" # Let the user override the test.
adamc@1149 2431 else
adamc@1149 2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1149 2433 for as_dir in $PATH
adamc@1149 2434 do
adamc@1149 2435 IFS=$as_save_IFS
adamc@1149 2436 test -z "$as_dir" && as_dir=.
adamc@1149 2437 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 2438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1149 2439 ac_cv_prog_CC="${ac_tool_prefix}cc"
adamc@1149 2440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1149 2441 break 2
adamc@1149 2442 fi
adamc@1149 2443 done
adamc@1149 2444 done
adamc@1149 2445 IFS=$as_save_IFS
adamc@1149 2446
adamc@1149 2447 fi
adamc@1149 2448 fi
adamc@1149 2449 CC=$ac_cv_prog_CC
adamc@1149 2450 if test -n "$CC"; then
adamc@1149 2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
adamc@1149 2452 $as_echo "$CC" >&6; }
adamc@1149 2453 else
adamc@1149 2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1149 2455 $as_echo "no" >&6; }
adamc@1149 2456 fi
adamc@1149 2457
adamc@1149 2458
adamc@1149 2459 fi
adamc@1149 2460 fi
adamc@1149 2461 if test -z "$CC"; then
adamc@1149 2462 # Extract the first word of "cc", so it can be a program name with args.
adamc@1149 2463 set dummy cc; ac_word=$2
adamc@1149 2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1149 2465 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 2466 if test "${ac_cv_prog_CC+set}" = set; then :
adamc@1149 2467 $as_echo_n "(cached) " >&6
adamc@1149 2468 else
adamc@1149 2469 if test -n "$CC"; then
adamc@1149 2470 ac_cv_prog_CC="$CC" # Let the user override the test.
adamc@1149 2471 else
adamc@1149 2472 ac_prog_rejected=no
adamc@1149 2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1149 2474 for as_dir in $PATH
adamc@1149 2475 do
adamc@1149 2476 IFS=$as_save_IFS
adamc@1149 2477 test -z "$as_dir" && as_dir=.
adamc@1149 2478 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1149 2480 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
adamc@1149 2481 ac_prog_rejected=yes
adamc@1149 2482 continue
adamc@1149 2483 fi
adamc@1149 2484 ac_cv_prog_CC="cc"
adamc@1149 2485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1149 2486 break 2
adamc@1149 2487 fi
adamc@1149 2488 done
adamc@1149 2489 done
adamc@1149 2490 IFS=$as_save_IFS
adamc@1149 2491
adamc@1149 2492 if test $ac_prog_rejected = yes; then
adamc@1149 2493 # We found a bogon in the path, so make sure we never use it.
adamc@1149 2494 set dummy $ac_cv_prog_CC
adamc@1149 2495 shift
adamc@1149 2496 if test $# != 0; then
adamc@1149 2497 # We chose a different compiler from the bogus one.
adamc@1149 2498 # However, it has the same basename, so the bogon will be chosen
adamc@1149 2499 # first if we set CC to just the basename; use the full file name.
adamc@1149 2500 shift
adamc@1149 2501 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
adamc@1149 2502 fi
adamc@1149 2503 fi
adamc@1149 2504 fi
adamc@1149 2505 fi
adamc@1149 2506 CC=$ac_cv_prog_CC
adamc@1149 2507 if test -n "$CC"; then
adamc@1149 2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
adamc@1149 2509 $as_echo "$CC" >&6; }
adamc@1149 2510 else
adamc@1149 2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1149 2512 $as_echo "no" >&6; }
adamc@1149 2513 fi
adamc@1149 2514
adamc@1149 2515
adamc@1149 2516 fi
adamc@1149 2517 if test -z "$CC"; then
adamc@1149 2518 if test -n "$ac_tool_prefix"; then
adamc@1149 2519 for ac_prog in cl.exe
adamc@1149 2520 do
adamc@1149 2521 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
adamc@1149 2522 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
adamc@1149 2523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1149 2524 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 2525 if test "${ac_cv_prog_CC+set}" = set; then :
adamc@1149 2526 $as_echo_n "(cached) " >&6
adamc@1149 2527 else
adamc@1149 2528 if test -n "$CC"; then
adamc@1149 2529 ac_cv_prog_CC="$CC" # Let the user override the test.
adamc@1149 2530 else
adamc@1149 2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1149 2532 for as_dir in $PATH
adamc@1149 2533 do
adamc@1149 2534 IFS=$as_save_IFS
adamc@1149 2535 test -z "$as_dir" && as_dir=.
adamc@1149 2536 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 2537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1149 2538 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
adamc@1149 2539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1149 2540 break 2
adamc@1149 2541 fi
adamc@1149 2542 done
adamc@1149 2543 done
adamc@1149 2544 IFS=$as_save_IFS
adamc@1149 2545
adamc@1149 2546 fi
adamc@1149 2547 fi
adamc@1149 2548 CC=$ac_cv_prog_CC
adamc@1149 2549 if test -n "$CC"; then
adamc@1149 2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
adamc@1149 2551 $as_echo "$CC" >&6; }
adamc@1149 2552 else
adamc@1149 2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1149 2554 $as_echo "no" >&6; }
adamc@1149 2555 fi
adamc@1149 2556
adamc@1149 2557
adamc@1149 2558 test -n "$CC" && break
adamc@1149 2559 done
adamc@1149 2560 fi
adamc@1149 2561 if test -z "$CC"; then
adamc@1149 2562 ac_ct_CC=$CC
adamc@1149 2563 for ac_prog in cl.exe
adamc@1149 2564 do
adamc@1149 2565 # Extract the first word of "$ac_prog", so it can be a program name with args.
adamc@1149 2566 set dummy $ac_prog; ac_word=$2
adamc@1149 2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1149 2568 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 2569 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
adamc@1149 2570 $as_echo_n "(cached) " >&6
adamc@1149 2571 else
adamc@1149 2572 if test -n "$ac_ct_CC"; then
adamc@1149 2573 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
adamc@1149 2574 else
adamc@1149 2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1149 2576 for as_dir in $PATH
adamc@1149 2577 do
adamc@1149 2578 IFS=$as_save_IFS
adamc@1149 2579 test -z "$as_dir" && as_dir=.
adamc@1149 2580 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 2581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1149 2582 ac_cv_prog_ac_ct_CC="$ac_prog"
adamc@1149 2583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1149 2584 break 2
adamc@1149 2585 fi
adamc@1149 2586 done
adamc@1149 2587 done
adamc@1149 2588 IFS=$as_save_IFS
adamc@1149 2589
adamc@1149 2590 fi
adamc@1149 2591 fi
adamc@1149 2592 ac_ct_CC=$ac_cv_prog_ac_ct_CC
adamc@1149 2593 if test -n "$ac_ct_CC"; then
adamc@1149 2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
adamc@1149 2595 $as_echo "$ac_ct_CC" >&6; }
adamc@1149 2596 else
adamc@1149 2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1149 2598 $as_echo "no" >&6; }
adamc@1149 2599 fi
adamc@1149 2600
adamc@1149 2601
adamc@1149 2602 test -n "$ac_ct_CC" && break
adamc@1149 2603 done
adamc@1149 2604
adamc@1149 2605 if test "x$ac_ct_CC" = x; then
adamc@1149 2606 CC=""
adamc@1149 2607 else
adamc@1149 2608 case $cross_compiling:$ac_tool_warned in
adamc@1149 2609 yes:)
adamc@1149 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1149 2611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1149 2612 ac_tool_warned=yes ;;
adamc@1149 2613 esac
adamc@1149 2614 CC=$ac_ct_CC
adamc@1149 2615 fi
adamc@1149 2616 fi
adamc@1149 2617
adamc@1149 2618 fi
adamc@1149 2619
adamc@1149 2620
adamc@1149 2621 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
adamc@1149 2622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
adam@1315 2623 as_fn_error $? "no acceptable C compiler found in \$PATH
adam@1826 2624 See \`config.log' for more details" "$LINENO" 5 ; }
adamc@1149 2625
adamc@1149 2626 # Provide some information about the compiler.
adamc@1149 2627 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
adamc@1149 2628 set X $ac_compile
adamc@1149 2629 ac_compiler=$2
adamc@1149 2630 for ac_option in --version -v -V -qversion; do
adamc@1149 2631 { { ac_try="$ac_compiler $ac_option >&5"
adamc@1149 2632 case "(($ac_try" in
adamc@1149 2633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1149 2634 *) ac_try_echo=$ac_try;;
adamc@1149 2635 esac
adamc@1149 2636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1149 2637 $as_echo "$ac_try_echo"; } >&5
adamc@1149 2638 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
adamc@1149 2639 ac_status=$?
adamc@1149 2640 if test -s conftest.err; then
adamc@1149 2641 sed '10a\
adamc@1149 2642 ... rest of stderr output deleted ...
adamc@1149 2643 10q' conftest.err >conftest.er1
adamc@1149 2644 cat conftest.er1 >&5
adamc@1149 2645 fi
adamc@1149 2646 rm -f conftest.er1 conftest.err
adamc@1149 2647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1149 2648 test $ac_status = 0; }
adamc@1149 2649 done
adamc@1149 2650
adamc@1149 2651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 2652 /* end confdefs.h. */
adamc@1149 2653
adamc@1149 2654 int
adamc@1149 2655 main ()
adamc@1149 2656 {
adamc@1149 2657
adamc@1149 2658 ;
adamc@1149 2659 return 0;
adamc@1149 2660 }
adamc@1149 2661 _ACEOF
adamc@1149 2662 ac_clean_files_save=$ac_clean_files
adamc@1149 2663 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
adamc@1149 2664 # Try to create an executable without -o first, disregard a.out.
adamc@1149 2665 # It will help us diagnose broken compilers, and finding out an intuition
adamc@1149 2666 # of exeext.
adamc@1149 2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
adamc@1149 2668 $as_echo_n "checking whether the C compiler works... " >&6; }
adamc@1149 2669 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
adamc@1149 2670
adamc@1149 2671 # The possible output files:
adamc@1149 2672 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
adamc@1149 2673
adamc@1149 2674 ac_rmfiles=
adamc@1149 2675 for ac_file in $ac_files
adamc@1149 2676 do
adamc@1149 2677 case $ac_file in
adamc@1149 2678 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
adamc@1149 2679 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
adamc@1149 2680 esac
adamc@1149 2681 done
adamc@1149 2682 rm -f $ac_rmfiles
adamc@1149 2683
adamc@1149 2684 if { { ac_try="$ac_link_default"
adamc@1149 2685 case "(($ac_try" in
adamc@1149 2686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1149 2687 *) ac_try_echo=$ac_try;;
adamc@1149 2688 esac
adamc@1149 2689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1149 2690 $as_echo "$ac_try_echo"; } >&5
adamc@1149 2691 (eval "$ac_link_default") 2>&5
adamc@1149 2692 ac_status=$?
adamc@1149 2693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1149 2694 test $ac_status = 0; }; then :
adamc@1149 2695 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
adamc@1149 2696 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
adamc@1149 2697 # in a Makefile. We should not override ac_cv_exeext if it was cached,
adamc@1149 2698 # so that the user can short-circuit this test for compilers unknown to
adamc@1149 2699 # Autoconf.
adamc@1149 2700 for ac_file in $ac_files ''
adamc@1149 2701 do
adamc@1149 2702 test -f "$ac_file" || continue
adamc@1149 2703 case $ac_file in
adamc@1149 2704 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
adamc@1149 2705 ;;
adamc@1149 2706 [ab].out )
adamc@1149 2707 # We found the default executable, but exeext='' is most
adamc@1149 2708 # certainly right.
adamc@1149 2709 break;;
adamc@1149 2710 *.* )
adamc@1149 2711 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
adamc@1149 2712 then :; else
adamc@1149 2713 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
adamc@1149 2714 fi
adamc@1149 2715 # We set ac_cv_exeext here because the later test for it is not
adamc@1149 2716 # safe: cross compilers may not add the suffix if given an `-o'
adamc@1149 2717 # argument, so we may need to know it at that point already.
adamc@1149 2718 # Even if this section looks crufty: it has the advantage of
adamc@1149 2719 # actually working.
adamc@1149 2720 break;;
adamc@1149 2721 * )
adamc@1149 2722 break;;
adamc@1149 2723 esac
adamc@1149 2724 done
adamc@1149 2725 test "$ac_cv_exeext" = no && ac_cv_exeext=
adamc@1149 2726
adamc@1149 2727 else
adamc@1149 2728 ac_file=''
adamc@1149 2729 fi
adamc@1149 2730 if test -z "$ac_file"; then :
adamc@1149 2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1149 2732 $as_echo "no" >&6; }
adamc@1149 2733 $as_echo "$as_me: failed program was:" >&5
adamc@1149 2734 sed 's/^/| /' conftest.$ac_ext >&5
adamc@1149 2735
adamc@1149 2736 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
adamc@1149 2737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
adam@1315 2738 as_fn_error 77 "C compiler cannot create executables
adam@1826 2739 See \`config.log' for more details" "$LINENO" 5 ; }
adamc@1149 2740 else
adamc@1149 2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
adamc@1149 2742 $as_echo "yes" >&6; }
adamc@1149 2743 fi
adamc@1149 2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
adamc@1149 2745 $as_echo_n "checking for C compiler default output file name... " >&6; }
adamc@1149 2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
adamc@1149 2747 $as_echo "$ac_file" >&6; }
adamc@1149 2748 ac_exeext=$ac_cv_exeext
adamc@1149 2749
adamc@1149 2750 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
adamc@1149 2751 ac_clean_files=$ac_clean_files_save
adamc@1149 2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
adamc@1149 2753 $as_echo_n "checking for suffix of executables... " >&6; }
adamc@1149 2754 if { { ac_try="$ac_link"
adamc@1149 2755 case "(($ac_try" in
adamc@1149 2756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1149 2757 *) ac_try_echo=$ac_try;;
adamc@1149 2758 esac
adamc@1149 2759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1149 2760 $as_echo "$ac_try_echo"; } >&5
adamc@1149 2761 (eval "$ac_link") 2>&5
adamc@1149 2762 ac_status=$?
adamc@1149 2763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1149 2764 test $ac_status = 0; }; then :
adamc@1149 2765 # If both `conftest.exe' and `conftest' are `present' (well, observable)
adamc@1149 2766 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
adamc@1149 2767 # work properly (i.e., refer to `conftest.exe'), while it won't with
adamc@1149 2768 # `rm'.
adamc@1149 2769 for ac_file in conftest.exe conftest conftest.*; do
adamc@1149 2770 test -f "$ac_file" || continue
adamc@1149 2771 case $ac_file in
adamc@1149 2772 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
adamc@1149 2773 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
adamc@1149 2774 break;;
adamc@1149 2775 * ) break;;
adamc@1149 2776 esac
adamc@1149 2777 done
adamc@1149 2778 else
adamc@1149 2779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
adamc@1149 2780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
adam@1315 2781 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
adam@1826 2782 See \`config.log' for more details" "$LINENO" 5 ; }
adamc@1149 2783 fi
adamc@1149 2784 rm -f conftest conftest$ac_cv_exeext
adamc@1149 2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
adamc@1149 2786 $as_echo "$ac_cv_exeext" >&6; }
adamc@1149 2787
adamc@1149 2788 rm -f conftest.$ac_ext
adamc@1149 2789 EXEEXT=$ac_cv_exeext
adamc@1149 2790 ac_exeext=$EXEEXT
adamc@1149 2791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 2792 /* end confdefs.h. */
adamc@1149 2793 #include <stdio.h>
adamc@1149 2794 int
adamc@1149 2795 main ()
adamc@1149 2796 {
adamc@1149 2797 FILE *f = fopen ("conftest.out", "w");
adamc@1149 2798 return ferror (f) || fclose (f) != 0;
adamc@1149 2799
adamc@1149 2800 ;
adamc@1149 2801 return 0;
adamc@1149 2802 }
adamc@1149 2803 _ACEOF
adamc@1149 2804 ac_clean_files="$ac_clean_files conftest.out"
adamc@1149 2805 # Check that the compiler produces executables we can run. If not, either
adamc@1149 2806 # the compiler is broken, or we cross compile.
adamc@1149 2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
adamc@1149 2808 $as_echo_n "checking whether we are cross compiling... " >&6; }
adamc@1149 2809 if test "$cross_compiling" != yes; then
adamc@1149 2810 { { ac_try="$ac_link"
adamc@1149 2811 case "(($ac_try" in
adamc@1149 2812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1149 2813 *) ac_try_echo=$ac_try;;
adamc@1149 2814 esac
adamc@1149 2815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1149 2816 $as_echo "$ac_try_echo"; } >&5
adamc@1149 2817 (eval "$ac_link") 2>&5
adamc@1149 2818 ac_status=$?
adamc@1149 2819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1149 2820 test $ac_status = 0; }
adamc@1149 2821 if { ac_try='./conftest$ac_cv_exeext'
adamc@1149 2822 { { case "(($ac_try" in
adamc@1149 2823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1149 2824 *) ac_try_echo=$ac_try;;
adamc@1149 2825 esac
adamc@1149 2826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1149 2827 $as_echo "$ac_try_echo"; } >&5
adamc@1149 2828 (eval "$ac_try") 2>&5
adamc@1149 2829 ac_status=$?
adamc@1149 2830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1149 2831 test $ac_status = 0; }; }; then
adamc@1149 2832 cross_compiling=no
adamc@1149 2833 else
adamc@1149 2834 if test "$cross_compiling" = maybe; then
adamc@1149 2835 cross_compiling=yes
adamc@1149 2836 else
adamc@1149 2837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
adamc@1149 2838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
adam@1315 2839 as_fn_error $? "cannot run C compiled programs.
adamc@1149 2840 If you meant to cross compile, use \`--host'.
adam@1826 2841 See \`config.log' for more details" "$LINENO" 5 ; }
adamc@1149 2842 fi
adamc@1149 2843 fi
adamc@1149 2844 fi
adamc@1149 2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
adamc@1149 2846 $as_echo "$cross_compiling" >&6; }
adamc@1149 2847
adamc@1149 2848 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
adamc@1149 2849 ac_clean_files=$ac_clean_files_save
adamc@1149 2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
adamc@1149 2851 $as_echo_n "checking for suffix of object files... " >&6; }
adam@1826 2852 if test "${ac_cv_objext+set}" = set; then :
adamc@1149 2853 $as_echo_n "(cached) " >&6
adamc@1149 2854 else
adamc@1149 2855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 2856 /* end confdefs.h. */
adamc@1149 2857
adamc@1149 2858 int
adamc@1149 2859 main ()
adamc@1149 2860 {
adamc@1149 2861
adamc@1149 2862 ;
adamc@1149 2863 return 0;
adamc@1149 2864 }
adamc@1149 2865 _ACEOF
adamc@1149 2866 rm -f conftest.o conftest.obj
adamc@1149 2867 if { { ac_try="$ac_compile"
adamc@1149 2868 case "(($ac_try" in
adamc@1149 2869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1149 2870 *) ac_try_echo=$ac_try;;
adamc@1149 2871 esac
adamc@1149 2872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1149 2873 $as_echo "$ac_try_echo"; } >&5
adamc@1149 2874 (eval "$ac_compile") 2>&5
adamc@1149 2875 ac_status=$?
adamc@1149 2876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1149 2877 test $ac_status = 0; }; then :
adamc@1149 2878 for ac_file in conftest.o conftest.obj conftest.*; do
adamc@1149 2879 test -f "$ac_file" || continue;
adamc@1149 2880 case $ac_file in
adamc@1149 2881 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
adamc@1149 2882 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
adamc@1149 2883 break;;
adamc@1149 2884 esac
adamc@1149 2885 done
adamc@1149 2886 else
adamc@1149 2887 $as_echo "$as_me: failed program was:" >&5
adamc@1149 2888 sed 's/^/| /' conftest.$ac_ext >&5
adamc@1149 2889
adamc@1149 2890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
adamc@1149 2891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
adam@1315 2892 as_fn_error $? "cannot compute suffix of object files: cannot compile
adam@1826 2893 See \`config.log' for more details" "$LINENO" 5 ; }
adamc@1149 2894 fi
adamc@1149 2895 rm -f conftest.$ac_cv_objext conftest.$ac_ext
adamc@1149 2896 fi
adamc@1149 2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
adamc@1149 2898 $as_echo "$ac_cv_objext" >&6; }
adamc@1149 2899 OBJEXT=$ac_cv_objext
adamc@1149 2900 ac_objext=$OBJEXT
adamc@1149 2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
adamc@1149 2902 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
adam@1826 2903 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
adamc@1149 2904 $as_echo_n "(cached) " >&6
adamc@1149 2905 else
adamc@1149 2906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 2907 /* end confdefs.h. */
adamc@1149 2908
adamc@1149 2909 int
adamc@1149 2910 main ()
adamc@1149 2911 {
adamc@1149 2912 #ifndef __GNUC__
adamc@1149 2913 choke me
adamc@1149 2914 #endif
adamc@1149 2915
adamc@1149 2916 ;
adamc@1149 2917 return 0;
adamc@1149 2918 }
adamc@1149 2919 _ACEOF
adamc@1149 2920 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1149 2921 ac_compiler_gnu=yes
adamc@1149 2922 else
adamc@1149 2923 ac_compiler_gnu=no
adamc@1149 2924 fi
adamc@1149 2925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
adamc@1149 2926 ac_cv_c_compiler_gnu=$ac_compiler_gnu
adamc@1149 2927
adamc@1149 2928 fi
adamc@1149 2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
adamc@1149 2930 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
adamc@1149 2931 if test $ac_compiler_gnu = yes; then
adamc@1149 2932 GCC=yes
adamc@1149 2933 else
adamc@1149 2934 GCC=
adamc@1149 2935 fi
adamc@1149 2936 ac_test_CFLAGS=${CFLAGS+set}
adamc@1149 2937 ac_save_CFLAGS=$CFLAGS
adamc@1149 2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
adamc@1149 2939 $as_echo_n "checking whether $CC accepts -g... " >&6; }
adam@1826 2940 if test "${ac_cv_prog_cc_g+set}" = set; then :
adamc@1149 2941 $as_echo_n "(cached) " >&6
adamc@1149 2942 else
adamc@1149 2943 ac_save_c_werror_flag=$ac_c_werror_flag
adamc@1149 2944 ac_c_werror_flag=yes
adamc@1149 2945 ac_cv_prog_cc_g=no
adamc@1149 2946 CFLAGS="-g"
adamc@1149 2947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 2948 /* end confdefs.h. */
adamc@1149 2949
adamc@1149 2950 int
adamc@1149 2951 main ()
adamc@1149 2952 {
adamc@1149 2953
adamc@1149 2954 ;
adamc@1149 2955 return 0;
adamc@1149 2956 }
adamc@1149 2957 _ACEOF
adamc@1149 2958 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1149 2959 ac_cv_prog_cc_g=yes
adamc@1149 2960 else
adamc@1149 2961 CFLAGS=""
adamc@1149 2962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 2963 /* end confdefs.h. */
adamc@1149 2964
adamc@1149 2965 int
adamc@1149 2966 main ()
adamc@1149 2967 {
adamc@1149 2968
adamc@1149 2969 ;
adamc@1149 2970 return 0;
adamc@1149 2971 }
adamc@1149 2972 _ACEOF
adamc@1149 2973 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1149 2974
adamc@1149 2975 else
adamc@1149 2976 ac_c_werror_flag=$ac_save_c_werror_flag
adamc@1149 2977 CFLAGS="-g"
adamc@1149 2978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 2979 /* end confdefs.h. */
adamc@1149 2980
adamc@1149 2981 int
adamc@1149 2982 main ()
adamc@1149 2983 {
adamc@1149 2984
adamc@1149 2985 ;
adamc@1149 2986 return 0;
adamc@1149 2987 }
adamc@1149 2988 _ACEOF
adamc@1149 2989 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1149 2990 ac_cv_prog_cc_g=yes
adamc@1149 2991 fi
adamc@1149 2992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
adamc@1149 2993 fi
adamc@1149 2994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
adamc@1149 2995 fi
adamc@1149 2996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
adamc@1149 2997 ac_c_werror_flag=$ac_save_c_werror_flag
adamc@1149 2998 fi
adamc@1149 2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
adamc@1149 3000 $as_echo "$ac_cv_prog_cc_g" >&6; }
adamc@1149 3001 if test "$ac_test_CFLAGS" = set; then
adamc@1149 3002 CFLAGS=$ac_save_CFLAGS
adamc@1149 3003 elif test $ac_cv_prog_cc_g = yes; then
adamc@1149 3004 if test "$GCC" = yes; then
adamc@1149 3005 CFLAGS="-g -O2"
adamc@1149 3006 else
adamc@1149 3007 CFLAGS="-g"
adamc@1149 3008 fi
adamc@1149 3009 else
adamc@1149 3010 if test "$GCC" = yes; then
adamc@1149 3011 CFLAGS="-O2"
adamc@1149 3012 else
adamc@1149 3013 CFLAGS=
adamc@1149 3014 fi
adamc@1149 3015 fi
adamc@1149 3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
adamc@1149 3017 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
adam@1826 3018 if test "${ac_cv_prog_cc_c89+set}" = set; then :
adamc@1149 3019 $as_echo_n "(cached) " >&6
adamc@1149 3020 else
adamc@1149 3021 ac_cv_prog_cc_c89=no
adamc@1149 3022 ac_save_CC=$CC
adamc@1149 3023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 3024 /* end confdefs.h. */
adamc@1149 3025 #include <stdarg.h>
adamc@1149 3026 #include <stdio.h>
adam@1826 3027 #include <sys/types.h>
adam@1826 3028 #include <sys/stat.h>
adamc@1149 3029 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
adamc@1149 3030 struct buf { int x; };
adamc@1149 3031 FILE * (*rcsopen) (struct buf *, struct stat *, int);
adamc@1149 3032 static char *e (p, i)
adamc@1149 3033 char **p;
adamc@1149 3034 int i;
adamc@1149 3035 {
adamc@1149 3036 return p[i];
adamc@1149 3037 }
adamc@1149 3038 static char *f (char * (*g) (char **, int), char **p, ...)
adamc@1149 3039 {
adamc@1149 3040 char *s;
adamc@1149 3041 va_list v;
adamc@1149 3042 va_start (v,p);
adamc@1149 3043 s = g (p, va_arg (v,int));
adamc@1149 3044 va_end (v);
adamc@1149 3045 return s;
adamc@1149 3046 }
adamc@1149 3047
adamc@1149 3048 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
adamc@1149 3049 function prototypes and stuff, but not '\xHH' hex character constants.
adamc@1149 3050 These don't provoke an error unfortunately, instead are silently treated
adamc@1149 3051 as 'x'. The following induces an error, until -std is added to get
adamc@1149 3052 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
adamc@1149 3053 array size at least. It's necessary to write '\x00'==0 to get something
adamc@1149 3054 that's true only with -std. */
adamc@1149 3055 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
adamc@1149 3056
adamc@1149 3057 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
adamc@1149 3058 inside strings and character constants. */
adamc@1149 3059 #define FOO(x) 'x'
adamc@1149 3060 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
adamc@1149 3061
adamc@1149 3062 int test (int i, double x);
adamc@1149 3063 struct s1 {int (*f) (int a);};
adamc@1149 3064 struct s2 {int (*f) (double a);};
adamc@1149 3065 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
adamc@1149 3066 int argc;
adamc@1149 3067 char **argv;
adamc@1149 3068 int
adamc@1149 3069 main ()
adamc@1149 3070 {
adamc@1149 3071 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
adamc@1149 3072 ;
adamc@1149 3073 return 0;
adamc@1149 3074 }
adamc@1149 3075 _ACEOF
adamc@1149 3076 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
adamc@1149 3077 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
adamc@1149 3078 do
adamc@1149 3079 CC="$ac_save_CC $ac_arg"
adamc@1149 3080 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1149 3081 ac_cv_prog_cc_c89=$ac_arg
adamc@1149 3082 fi
adamc@1149 3083 rm -f core conftest.err conftest.$ac_objext
adamc@1149 3084 test "x$ac_cv_prog_cc_c89" != "xno" && break
adamc@1149 3085 done
adamc@1149 3086 rm -f conftest.$ac_ext
adamc@1149 3087 CC=$ac_save_CC
adamc@1149 3088
adamc@1149 3089 fi
adamc@1149 3090 # AC_CACHE_VAL
adamc@1149 3091 case "x$ac_cv_prog_cc_c89" in
adamc@1149 3092 x)
adamc@1149 3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
adamc@1149 3094 $as_echo "none needed" >&6; } ;;
adamc@1149 3095 xno)
adamc@1149 3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
adamc@1149 3097 $as_echo "unsupported" >&6; } ;;
adamc@1149 3098 *)
adamc@1149 3099 CC="$CC $ac_cv_prog_cc_c89"
adamc@1149 3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
adamc@1149 3101 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
adamc@1149 3102 esac
adamc@1149 3103 if test "x$ac_cv_prog_cc_c89" != xno; then :
adamc@1149 3104
adamc@1149 3105 fi
adamc@1149 3106
adamc@1149 3107 ac_ext=c
adamc@1149 3108 ac_cpp='$CPP $CPPFLAGS'
adamc@1149 3109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adamc@1149 3110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adamc@1149 3111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adamc@1149 3112
adamc@1149 3113
adamc@1149 3114 ac_ext=c
adamc@1149 3115 ac_cpp='$CPP $CPPFLAGS'
adamc@1149 3116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adamc@1149 3117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adamc@1149 3118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adamc@1149 3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
adamc@1149 3120 $as_echo_n "checking how to run the C preprocessor... " >&6; }
adamc@1149 3121 # On Suns, sometimes $CPP names a directory.
adamc@1149 3122 if test -n "$CPP" && test -d "$CPP"; then
adamc@1149 3123 CPP=
adamc@1149 3124 fi
adamc@1149 3125 if test -z "$CPP"; then
adam@1826 3126 if test "${ac_cv_prog_CPP+set}" = set; then :
adamc@1149 3127 $as_echo_n "(cached) " >&6
adamc@1149 3128 else
adamc@1149 3129 # Double quotes because CPP needs to be expanded
adamc@1149 3130 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
adamc@1149 3131 do
adamc@1149 3132 ac_preproc_ok=false
adamc@1149 3133 for ac_c_preproc_warn_flag in '' yes
adamc@1149 3134 do
adamc@1149 3135 # Use a header file that comes with gcc, so configuring glibc
adamc@1149 3136 # with a fresh cross-compiler works.
adamc@1149 3137 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
adamc@1149 3138 # <limits.h> exists even on freestanding compilers.
adamc@1149 3139 # On the NeXT, cc -E runs the code through the compiler's parser,
adamc@1149 3140 # not just through cpp. "Syntax error" is here to catch this case.
adamc@1149 3141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 3142 /* end confdefs.h. */
adamc@1149 3143 #ifdef __STDC__
adamc@1149 3144 # include <limits.h>
adamc@1149 3145 #else
adamc@1149 3146 # include <assert.h>
adamc@1149 3147 #endif
adamc@1149 3148 Syntax error
adamc@1149 3149 _ACEOF
adamc@1149 3150 if ac_fn_c_try_cpp "$LINENO"; then :
adamc@1149 3151
adamc@1149 3152 else
adamc@1149 3153 # Broken: fails on valid input.
adamc@1149 3154 continue
adamc@1149 3155 fi
adam@1315 3156 rm -f conftest.err conftest.i conftest.$ac_ext
adamc@1149 3157
adamc@1149 3158 # OK, works on sane cases. Now check whether nonexistent headers
adamc@1149 3159 # can be detected and how.
adamc@1149 3160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 3161 /* end confdefs.h. */
adamc@1149 3162 #include <ac_nonexistent.h>
adamc@1149 3163 _ACEOF
adamc@1149 3164 if ac_fn_c_try_cpp "$LINENO"; then :
adamc@1149 3165 # Broken: success on invalid input.
adamc@1149 3166 continue
adamc@1149 3167 else
adamc@1149 3168 # Passes both tests.
adamc@1149 3169 ac_preproc_ok=:
adamc@1149 3170 break
adamc@1149 3171 fi
adam@1315 3172 rm -f conftest.err conftest.i conftest.$ac_ext
adamc@1149 3173
adamc@1149 3174 done
adamc@1149 3175 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
adam@1315 3176 rm -f conftest.i conftest.err conftest.$ac_ext
adamc@1149 3177 if $ac_preproc_ok; then :
adamc@1149 3178 break
adamc@1149 3179 fi
adamc@1149 3180
adamc@1149 3181 done
adamc@1149 3182 ac_cv_prog_CPP=$CPP
adamc@1149 3183
adamc@1149 3184 fi
adamc@1149 3185 CPP=$ac_cv_prog_CPP
adamc@1149 3186 else
adamc@1149 3187 ac_cv_prog_CPP=$CPP
adamc@1149 3188 fi
adamc@1149 3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
adamc@1149 3190 $as_echo "$CPP" >&6; }
adamc@1149 3191 ac_preproc_ok=false
adamc@1149 3192 for ac_c_preproc_warn_flag in '' yes
adamc@1149 3193 do
adamc@1149 3194 # Use a header file that comes with gcc, so configuring glibc
adamc@1149 3195 # with a fresh cross-compiler works.
adamc@1149 3196 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
adamc@1149 3197 # <limits.h> exists even on freestanding compilers.
adamc@1149 3198 # On the NeXT, cc -E runs the code through the compiler's parser,
adamc@1149 3199 # not just through cpp. "Syntax error" is here to catch this case.
adamc@1149 3200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 3201 /* end confdefs.h. */
adamc@1149 3202 #ifdef __STDC__
adamc@1149 3203 # include <limits.h>
adamc@1149 3204 #else
adamc@1149 3205 # include <assert.h>
adamc@1149 3206 #endif
adamc@1149 3207 Syntax error
adamc@1149 3208 _ACEOF
adamc@1149 3209 if ac_fn_c_try_cpp "$LINENO"; then :
adamc@1149 3210
adamc@1149 3211 else
adamc@1149 3212 # Broken: fails on valid input.
adamc@1149 3213 continue
adamc@1149 3214 fi
adam@1315 3215 rm -f conftest.err conftest.i conftest.$ac_ext
adamc@1149 3216
adamc@1149 3217 # OK, works on sane cases. Now check whether nonexistent headers
adamc@1149 3218 # can be detected and how.
adamc@1149 3219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 3220 /* end confdefs.h. */
adamc@1149 3221 #include <ac_nonexistent.h>
adamc@1149 3222 _ACEOF
adamc@1149 3223 if ac_fn_c_try_cpp "$LINENO"; then :
adamc@1149 3224 # Broken: success on invalid input.
adamc@1149 3225 continue
adamc@1149 3226 else
adamc@1149 3227 # Passes both tests.
adamc@1149 3228 ac_preproc_ok=:
adamc@1149 3229 break
adamc@1149 3230 fi
adam@1315 3231 rm -f conftest.err conftest.i conftest.$ac_ext
adamc@1149 3232
adamc@1149 3233 done
adamc@1149 3234 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
adam@1315 3235 rm -f conftest.i conftest.err conftest.$ac_ext
adamc@1149 3236 if $ac_preproc_ok; then :
adamc@1149 3237
adamc@1149 3238 else
adamc@1149 3239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
adamc@1149 3240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
adam@1315 3241 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
adam@1826 3242 See \`config.log' for more details" "$LINENO" 5 ; }
adamc@1149 3243 fi
adamc@1149 3244
adamc@1149 3245 ac_ext=c
adamc@1149 3246 ac_cpp='$CPP $CPPFLAGS'
adamc@1149 3247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adamc@1149 3248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adamc@1149 3249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adamc@1149 3250
adamc@1149 3251
adamc@1149 3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
adamc@1149 3253 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
adam@1826 3254 if test "${ac_cv_path_GREP+set}" = set; then :
adamc@1149 3255 $as_echo_n "(cached) " >&6
adamc@1149 3256 else
adamc@1149 3257 if test -z "$GREP"; then
adamc@1149 3258 ac_path_GREP_found=false
adamc@1149 3259 # Loop through the user's path and test for each of PROGNAME-LIST
adamc@1149 3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1149 3261 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
adamc@1149 3262 do
adamc@1149 3263 IFS=$as_save_IFS
adamc@1149 3264 test -z "$as_dir" && as_dir=.
adamc@1149 3265 for ac_prog in grep ggrep; do
adamc@1149 3266 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1149 3267 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
adam@1826 3268 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
adamc@1149 3269 # Check for GNU ac_path_GREP and select it if it is found.
adamc@1149 3270 # Check for GNU $ac_path_GREP
adamc@1149 3271 case `"$ac_path_GREP" --version 2>&1` in
adamc@1149 3272 *GNU*)
adamc@1149 3273 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
adamc@1149 3274 *)
adamc@1149 3275 ac_count=0
adamc@1149 3276 $as_echo_n 0123456789 >"conftest.in"
adamc@1149 3277 while :
adamc@1149 3278 do
adamc@1149 3279 cat "conftest.in" "conftest.in" >"conftest.tmp"
adamc@1149 3280 mv "conftest.tmp" "conftest.in"
adamc@1149 3281 cp "conftest.in" "conftest.nl"
adamc@1149 3282 $as_echo 'GREP' >> "conftest.nl"
adamc@1149 3283 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
adamc@1149 3284 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
adamc@1149 3285 as_fn_arith $ac_count + 1 && ac_count=$as_val
adamc@1149 3286 if test $ac_count -gt ${ac_path_GREP_max-0}; then
adamc@1149 3287 # Best one so far, save it but keep looking for a better one
adamc@1149 3288 ac_cv_path_GREP="$ac_path_GREP"
adamc@1149 3289 ac_path_GREP_max=$ac_count
adamc@1149 3290 fi
adamc@1149 3291 # 10*(2^10) chars as input seems more than enough
adamc@1149 3292 test $ac_count -gt 10 && break
adamc@1149 3293 done
adamc@1149 3294 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
adamc@1149 3295 esac
adamc@1149 3296
adamc@1149 3297 $ac_path_GREP_found && break 3
adamc@1149 3298 done
adamc@1149 3299 done
adamc@1149 3300 done
adamc@1149 3301 IFS=$as_save_IFS
adamc@1149 3302 if test -z "$ac_cv_path_GREP"; then
adam@1315 3303 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
adamc@1149 3304 fi
adamc@1149 3305 else
adamc@1149 3306 ac_cv_path_GREP=$GREP
adamc@1149 3307 fi
adamc@1149 3308
adamc@1149 3309 fi
adamc@1149 3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
adamc@1149 3311 $as_echo "$ac_cv_path_GREP" >&6; }
adamc@1149 3312 GREP="$ac_cv_path_GREP"
adamc@1149 3313
adamc@1149 3314
adamc@1149 3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
adamc@1149 3316 $as_echo_n "checking for egrep... " >&6; }
adam@1826 3317 if test "${ac_cv_path_EGREP+set}" = set; then :
adamc@1149 3318 $as_echo_n "(cached) " >&6
adamc@1149 3319 else
adamc@1149 3320 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
adamc@1149 3321 then ac_cv_path_EGREP="$GREP -E"
adamc@1149 3322 else
adamc@1149 3323 if test -z "$EGREP"; then
adamc@1149 3324 ac_path_EGREP_found=false
adamc@1149 3325 # Loop through the user's path and test for each of PROGNAME-LIST
adamc@1149 3326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1149 3327 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
adamc@1149 3328 do
adamc@1149 3329 IFS=$as_save_IFS
adamc@1149 3330 test -z "$as_dir" && as_dir=.
adamc@1149 3331 for ac_prog in egrep; do
adamc@1149 3332 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1149 3333 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
adam@1826 3334 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
adamc@1149 3335 # Check for GNU ac_path_EGREP and select it if it is found.
adamc@1149 3336 # Check for GNU $ac_path_EGREP
adamc@1149 3337 case `"$ac_path_EGREP" --version 2>&1` in
adamc@1149 3338 *GNU*)
adamc@1149 3339 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
adamc@1149 3340 *)
adamc@1149 3341 ac_count=0
adamc@1149 3342 $as_echo_n 0123456789 >"conftest.in"
adamc@1149 3343 while :
adamc@1149 3344 do
adamc@1149 3345 cat "conftest.in" "conftest.in" >"conftest.tmp"
adamc@1149 3346 mv "conftest.tmp" "conftest.in"
adamc@1149 3347 cp "conftest.in" "conftest.nl"
adamc@1149 3348 $as_echo 'EGREP' >> "conftest.nl"
adamc@1149 3349 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
adamc@1149 3350 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
adamc@1149 3351 as_fn_arith $ac_count + 1 && ac_count=$as_val
adamc@1149 3352 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
adamc@1149 3353 # Best one so far, save it but keep looking for a better one
adamc@1149 3354 ac_cv_path_EGREP="$ac_path_EGREP"
adamc@1149 3355 ac_path_EGREP_max=$ac_count
adamc@1149 3356 fi
adamc@1149 3357 # 10*(2^10) chars as input seems more than enough
adamc@1149 3358 test $ac_count -gt 10 && break
adamc@1149 3359 done
adamc@1149 3360 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
adamc@1149 3361 esac
adamc@1149 3362
adamc@1149 3363 $ac_path_EGREP_found && break 3
adamc@1149 3364 done
adamc@1149 3365 done
adamc@1149 3366 done
adamc@1149 3367 IFS=$as_save_IFS
adamc@1149 3368 if test -z "$ac_cv_path_EGREP"; then
adam@1315 3369 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
adamc@1149 3370 fi
adamc@1149 3371 else
adamc@1149 3372 ac_cv_path_EGREP=$EGREP
adamc@1149 3373 fi
adamc@1149 3374
adamc@1149 3375 fi
adamc@1149 3376 fi
adamc@1149 3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
adamc@1149 3378 $as_echo "$ac_cv_path_EGREP" >&6; }
adamc@1149 3379 EGREP="$ac_cv_path_EGREP"
adamc@1149 3380
adamc@1149 3381
adamc@1149 3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
adamc@1149 3383 $as_echo_n "checking for ANSI C header files... " >&6; }
adam@1826 3384 if test "${ac_cv_header_stdc+set}" = set; then :
adamc@1149 3385 $as_echo_n "(cached) " >&6
adamc@1149 3386 else
adamc@1149 3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 3388 /* end confdefs.h. */
adamc@1149 3389 #include <stdlib.h>
adamc@1149 3390 #include <stdarg.h>
adamc@1149 3391 #include <string.h>
adamc@1149 3392 #include <float.h>
adamc@1149 3393
adamc@1149 3394 int
adamc@1149 3395 main ()
adamc@1149 3396 {
adamc@1149 3397
adamc@1149 3398 ;
adamc@1149 3399 return 0;
adamc@1149 3400 }
adamc@1149 3401 _ACEOF
adamc@1149 3402 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1149 3403 ac_cv_header_stdc=yes
adamc@1149 3404 else
adamc@1149 3405 ac_cv_header_stdc=no
adamc@1149 3406 fi
adamc@1149 3407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
adamc@1149 3408
adamc@1149 3409 if test $ac_cv_header_stdc = yes; then
adamc@1149 3410 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
adamc@1149 3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 3412 /* end confdefs.h. */
adamc@1149 3413 #include <string.h>
adamc@1149 3414
adamc@1149 3415 _ACEOF
adamc@1149 3416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
adamc@1149 3417 $EGREP "memchr" >/dev/null 2>&1; then :
adamc@1149 3418
adamc@1149 3419 else
adamc@1149 3420 ac_cv_header_stdc=no
adamc@1149 3421 fi
adamc@1149 3422 rm -f conftest*
adamc@1149 3423
adamc@1149 3424 fi
adamc@1149 3425
adamc@1149 3426 if test $ac_cv_header_stdc = yes; then
adamc@1149 3427 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
adamc@1149 3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 3429 /* end confdefs.h. */
adamc@1149 3430 #include <stdlib.h>
adamc@1149 3431
adamc@1149 3432 _ACEOF
adamc@1149 3433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
adamc@1149 3434 $EGREP "free" >/dev/null 2>&1; then :
adamc@1149 3435
adamc@1149 3436 else
adamc@1149 3437 ac_cv_header_stdc=no
adamc@1149 3438 fi
adamc@1149 3439 rm -f conftest*
adamc@1149 3440
adamc@1149 3441 fi
adamc@1149 3442
adamc@1149 3443 if test $ac_cv_header_stdc = yes; then
adamc@1149 3444 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
adamc@1149 3445 if test "$cross_compiling" = yes; then :
adamc@1149 3446 :
adamc@1149 3447 else
adamc@1149 3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 3449 /* end confdefs.h. */
adamc@1149 3450 #include <ctype.h>
adamc@1149 3451 #include <stdlib.h>
adamc@1149 3452 #if ((' ' & 0x0FF) == 0x020)
adamc@1149 3453 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
adamc@1149 3454 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
adamc@1149 3455 #else
adamc@1149 3456 # define ISLOWER(c) \
adamc@1149 3457 (('a' <= (c) && (c) <= 'i') \
adamc@1149 3458 || ('j' <= (c) && (c) <= 'r') \
adamc@1149 3459 || ('s' <= (c) && (c) <= 'z'))
adamc@1149 3460 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
adamc@1149 3461 #endif
adamc@1149 3462
adamc@1149 3463 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
adamc@1149 3464 int
adamc@1149 3465 main ()
adamc@1149 3466 {
adamc@1149 3467 int i;
adamc@1149 3468 for (i = 0; i < 256; i++)
adamc@1149 3469 if (XOR (islower (i), ISLOWER (i))
adamc@1149 3470 || toupper (i) != TOUPPER (i))
adamc@1149 3471 return 2;
adamc@1149 3472 return 0;
adamc@1149 3473 }
adamc@1149 3474 _ACEOF
adamc@1149 3475 if ac_fn_c_try_run "$LINENO"; then :
adamc@1149 3476
adamc@1149 3477 else
adamc@1149 3478 ac_cv_header_stdc=no
adamc@1149 3479 fi
adamc@1149 3480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
adamc@1149 3481 conftest.$ac_objext conftest.beam conftest.$ac_ext
adamc@1149 3482 fi
adamc@1149 3483
adamc@1149 3484 fi
adamc@1149 3485 fi
adamc@1149 3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
adamc@1149 3487 $as_echo "$ac_cv_header_stdc" >&6; }
adamc@1149 3488 if test $ac_cv_header_stdc = yes; then
adamc@1149 3489
adamc@1149 3490 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
adamc@1149 3491
adamc@1149 3492 fi
adamc@1149 3493
adamc@1149 3494 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
adamc@1149 3495 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
adamc@1149 3496 inttypes.h stdint.h unistd.h
adamc@1149 3497 do :
adamc@1149 3498 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
adamc@1149 3499 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
adamc@1149 3500 "
adam@1315 3501 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
adamc@1149 3502 cat >>confdefs.h <<_ACEOF
adamc@1149 3503 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
adamc@1149 3504 _ACEOF
adamc@1149 3505
adamc@1149 3506 fi
adamc@1149 3507
adamc@1149 3508 done
adamc@1149 3509
adamc@1149 3510
adamc@1149 3511
adamc@1149 3512 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
adam@1826 3513 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
adamc@1149 3514 MINIX=yes
adamc@1149 3515 else
adamc@1149 3516 MINIX=
adamc@1149 3517 fi
adamc@1149 3518
adamc@1149 3519
adamc@1149 3520 if test "$MINIX" = yes; then
adamc@1149 3521
adamc@1149 3522 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
adamc@1149 3523
adamc@1149 3524
adamc@1149 3525 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
adamc@1149 3526
adamc@1149 3527
adamc@1149 3528 $as_echo "#define _MINIX 1" >>confdefs.h
adamc@1149 3529
adamc@1149 3530 fi
adamc@1149 3531
adamc@1149 3532
adamc@1149 3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
adamc@1149 3534 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
adam@1826 3535 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
adamc@1149 3536 $as_echo_n "(cached) " >&6
adamc@1149 3537 else
adamc@1149 3538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 3539 /* end confdefs.h. */
adamc@1149 3540
adam@1826 3541 # define __EXTENSIONS__ 1
adam@1826 3542 $ac_includes_default
adamc@1149 3543 int
adamc@1149 3544 main ()
adamc@1149 3545 {
adamc@1149 3546
adamc@1149 3547 ;
adamc@1149 3548 return 0;
adamc@1149 3549 }
adamc@1149 3550 _ACEOF
adamc@1149 3551 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1149 3552 ac_cv_safe_to_define___extensions__=yes
adamc@1149 3553 else
adamc@1149 3554 ac_cv_safe_to_define___extensions__=no
adamc@1149 3555 fi
adamc@1149 3556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
adamc@1149 3557 fi
adamc@1149 3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
adamc@1149 3559 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
adamc@1149 3560 test $ac_cv_safe_to_define___extensions__ = yes &&
adamc@1149 3561 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
adamc@1149 3562
adamc@1149 3563 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
adamc@1149 3564
adamc@1149 3565 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
adamc@1149 3566
adamc@1149 3567 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
adamc@1149 3568
adamc@1149 3569 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
adamc@1149 3570
adamc@1149 3571
adam@1760 3572
adam@1760 3573 # automake 1.12 requires this, but automake 1.11 doesn't recognize it
adam@1760 3574
adam@1760 3575
adamc@1132 3576 am__api_version='1.11'
adamc@1132 3577
adamc@1132 3578 ac_aux_dir=
adamc@1132 3579 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
adam@1315 3580 if test -f "$ac_dir/install-sh"; then
adam@1315 3581 ac_aux_dir=$ac_dir
adam@1315 3582 ac_install_sh="$ac_aux_dir/install-sh -c"
adam@1315 3583 break
adam@1315 3584 elif test -f "$ac_dir/install.sh"; then
adam@1315 3585 ac_aux_dir=$ac_dir
adam@1315 3586 ac_install_sh="$ac_aux_dir/install.sh -c"
adam@1315 3587 break
adam@1315 3588 elif test -f "$ac_dir/shtool"; then
adam@1315 3589 ac_aux_dir=$ac_dir
adam@1315 3590 ac_install_sh="$ac_aux_dir/shtool install -c"
adam@1315 3591 break
adam@1315 3592 fi
adamc@1132 3593 done
adamc@1132 3594 if test -z "$ac_aux_dir"; then
adam@1315 3595 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
adamc@1132 3596 fi
adamc@1132 3597
adamc@1132 3598 # These three variables are undocumented and unsupported,
adamc@1132 3599 # and are intended to be withdrawn in a future Autoconf release.
adamc@1132 3600 # They can cause serious problems if a builder's source tree is in a directory
adamc@1132 3601 # whose full name contains unusual characters.
adamc@1132 3602 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
adamc@1132 3603 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
adamc@1132 3604 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
adamc@1132 3605
adamc@1132 3606
adamc@1132 3607 # Find a good install program. We prefer a C program (faster),
adamc@1132 3608 # so one script is as good as another. But avoid the broken or
adamc@1132 3609 # incompatible versions:
adamc@1132 3610 # SysV /etc/install, /usr/sbin/install
adamc@1132 3611 # SunOS /usr/etc/install
adamc@1132 3612 # IRIX /sbin/install
adamc@1132 3613 # AIX /bin/install
adamc@1132 3614 # AmigaOS /C/install, which installs bootblocks on floppy discs
adamc@1132 3615 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
adamc@1132 3616 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
adamc@1132 3617 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
adamc@1132 3618 # OS/2's system install, which has a completely different semantic
adamc@1132 3619 # ./install, which can be erroneously created by make from ./install.sh.
adamc@1132 3620 # Reject install programs that cannot install multiple files.
adamc@1132 3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
adamc@1132 3622 $as_echo_n "checking for a BSD-compatible install... " >&6; }
adamc@1132 3623 if test -z "$INSTALL"; then
adam@1826 3624 if test "${ac_cv_path_install+set}" = set; then :
adamc@1132 3625 $as_echo_n "(cached) " >&6
adamc@1132 3626 else
adamc@1132 3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 3628 for as_dir in $PATH
adamc@1132 3629 do
adamc@1132 3630 IFS=$as_save_IFS
adamc@1132 3631 test -z "$as_dir" && as_dir=.
adamc@1132 3632 # Account for people who put trailing slashes in PATH elements.
adamc@1132 3633 case $as_dir/ in #((
adamc@1132 3634 ./ | .// | /[cC]/* | \
adamc@1132 3635 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
adamc@1132 3636 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
adamc@1132 3637 /usr/ucb/* ) ;;
adamc@1132 3638 *)
adamc@1132 3639 # OSF1 and SCO ODT 3.0 have their own names for install.
adamc@1132 3640 # Don't use installbsd from OSF since it installs stuff as root
adamc@1132 3641 # by default.
adamc@1132 3642 for ac_prog in ginstall scoinst install; do
adamc@1132 3643 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 3644 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
adamc@1132 3645 if test $ac_prog = install &&
adamc@1132 3646 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
adamc@1132 3647 # AIX install. It has an incompatible calling convention.
adamc@1132 3648 :
adamc@1132 3649 elif test $ac_prog = install &&
adamc@1132 3650 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
adamc@1132 3651 # program-specific install script used by HP pwplus--don't use.
adamc@1132 3652 :
adamc@1132 3653 else
adamc@1132 3654 rm -rf conftest.one conftest.two conftest.dir
adamc@1132 3655 echo one > conftest.one
adamc@1132 3656 echo two > conftest.two
adamc@1132 3657 mkdir conftest.dir
adamc@1132 3658 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
adamc@1132 3659 test -s conftest.one && test -s conftest.two &&
adamc@1132 3660 test -s conftest.dir/conftest.one &&
adamc@1132 3661 test -s conftest.dir/conftest.two
adamc@1132 3662 then
adamc@1132 3663 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
adamc@1132 3664 break 3
adamc@1132 3665 fi
adamc@1132 3666 fi
adamc@1132 3667 fi
adamc@1132 3668 done
adamc@1132 3669 done
adamc@1132 3670 ;;
adamc@1132 3671 esac
adamc@1132 3672
adamc@1132 3673 done
adamc@1132 3674 IFS=$as_save_IFS
adamc@1132 3675
adamc@1132 3676 rm -rf conftest.one conftest.two conftest.dir
adamc@1132 3677
adamc@1132 3678 fi
adamc@1132 3679 if test "${ac_cv_path_install+set}" = set; then
adamc@1132 3680 INSTALL=$ac_cv_path_install
adamc@1132 3681 else
adamc@1132 3682 # As a last resort, use the slow shell script. Don't cache a
adamc@1132 3683 # value for INSTALL within a source directory, because that will
adamc@1132 3684 # break other packages using the cache if that directory is
adamc@1132 3685 # removed, or if the value is a relative name.
adamc@1132 3686 INSTALL=$ac_install_sh
adamc@1132 3687 fi
adamc@1132 3688 fi
adamc@1132 3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
adamc@1132 3690 $as_echo "$INSTALL" >&6; }
adamc@1132 3691
adamc@1132 3692 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
adamc@1132 3693 # It thinks the first close brace ends the variable substitution.
adamc@1132 3694 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
adamc@1132 3695
adamc@1132 3696 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
adamc@1132 3697
adamc@1132 3698 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
adamc@1132 3699
adamc@1132 3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
adamc@1132 3701 $as_echo_n "checking whether build environment is sane... " >&6; }
adamc@1132 3702 # Just in case
adamc@1132 3703 sleep 1
adamc@1132 3704 echo timestamp > conftest.file
adamc@1132 3705 # Reject unsafe characters in $srcdir or the absolute working directory
adamc@1132 3706 # name. Accept space and tab only in the latter.
adamc@1132 3707 am_lf='
adamc@1132 3708 '
adamc@1132 3709 case `pwd` in
adamc@1132 3710 *[\\\"\#\$\&\'\`$am_lf]*)
adam@1826 3711 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
adamc@1132 3712 esac
adamc@1132 3713 case $srcdir in
adamc@1132 3714 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
adam@1826 3715 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
adamc@1132 3716 esac
adamc@1132 3717
adamc@1132 3718 # Do `set' in a subshell so we don't clobber the current shell's
adamc@1132 3719 # arguments. Must try -L first in case configure is actually a
adamc@1132 3720 # symlink; some systems play weird games with the mod time of symlinks
adamc@1132 3721 # (eg FreeBSD returns the mod time of the symlink's containing
adamc@1132 3722 # directory).
adamc@1132 3723 if (
adamc@1132 3724 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
adamc@1132 3725 if test "$*" = "X"; then
adamc@1132 3726 # -L didn't work.
adamc@1132 3727 set X `ls -t "$srcdir/configure" conftest.file`
adamc@1132 3728 fi
adamc@1132 3729 rm -f conftest.file
adamc@1132 3730 if test "$*" != "X $srcdir/configure conftest.file" \
adamc@1132 3731 && test "$*" != "X conftest.file $srcdir/configure"; then
adamc@1132 3732
adamc@1132 3733 # If neither matched, then we have a broken ls. This can happen
adamc@1132 3734 # if, for instance, CONFIG_SHELL is bash and it inherits a
adamc@1132 3735 # broken ls alias from the environment. This has actually
adamc@1132 3736 # happened. Such a system could not be considered "sane".
adam@1315 3737 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
adamc@1132 3738 alias in your environment" "$LINENO" 5
adamc@1132 3739 fi
adamc@1132 3740
adamc@1132 3741 test "$2" = conftest.file
adamc@1132 3742 )
adamc@1132 3743 then
adamc@1132 3744 # Ok.
adamc@1132 3745 :
adamc@1132 3746 else
adam@1315 3747 as_fn_error $? "newly created file is older than distributed files!
adamc@1132 3748 Check your system clock" "$LINENO" 5
adamc@1132 3749 fi
adamc@1132 3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
adamc@1132 3751 $as_echo "yes" >&6; }
adamc@1132 3752 test "$program_prefix" != NONE &&
adamc@1132 3753 program_transform_name="s&^&$program_prefix&;$program_transform_name"
adamc@1132 3754 # Use a double $ so make ignores it.
adamc@1132 3755 test "$program_suffix" != NONE &&
adamc@1132 3756 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
adamc@1132 3757 # Double any \ or $.
adamc@1132 3758 # By default was `s,x,x', remove it if useless.
adamc@1132 3759 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
adamc@1132 3760 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
adamc@1132 3761
adam@1826 3762 # expand $ac_aux_dir to an absolute path
adam@1826 3763 am_aux_dir=`cd $ac_aux_dir && pwd`
adam@1826 3764
adamc@1132 3765 if test x"${MISSING+set}" != xset; then
adamc@1132 3766 case $am_aux_dir in
adamc@1132 3767 *\ * | *\ *)
adamc@1132 3768 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
adamc@1132 3769 *)
adamc@1132 3770 MISSING="\${SHELL} $am_aux_dir/missing" ;;
adamc@1132 3771 esac
adamc@1132 3772 fi
adamc@1132 3773 # Use eval to expand $SHELL
adamc@1132 3774 if eval "$MISSING --run true"; then
adamc@1132 3775 am_missing_run="$MISSING --run "
adamc@1132 3776 else
adamc@1132 3777 am_missing_run=
adamc@1132 3778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
adamc@1132 3779 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
adamc@1132 3780 fi
adamc@1132 3781
adamc@1132 3782 if test x"${install_sh}" != xset; then
adamc@1132 3783 case $am_aux_dir in
adamc@1132 3784 *\ * | *\ *)
adamc@1132 3785 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
adamc@1132 3786 *)
adamc@1132 3787 install_sh="\${SHELL} $am_aux_dir/install-sh"
adamc@1132 3788 esac
adamc@1132 3789 fi
adamc@1132 3790
adamc@1132 3791 # Installed binaries are usually stripped using `strip' when the user
adamc@1132 3792 # run `make install-strip'. However `strip' might not be the right
adamc@1132 3793 # tool to use in cross-compilation environments, therefore Automake
adamc@1132 3794 # will honor the `STRIP' environment variable to overrule this program.
adamc@1132 3795 if test "$cross_compiling" != no; then
adamc@1132 3796 if test -n "$ac_tool_prefix"; then
adamc@1132 3797 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
adamc@1132 3798 set dummy ${ac_tool_prefix}strip; ac_word=$2
adamc@1132 3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 3800 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 3801 if test "${ac_cv_prog_STRIP+set}" = set; then :
adamc@1132 3802 $as_echo_n "(cached) " >&6
adamc@1132 3803 else
adamc@1132 3804 if test -n "$STRIP"; then
adamc@1132 3805 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
adamc@1132 3806 else
adamc@1132 3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 3808 for as_dir in $PATH
adamc@1132 3809 do
adamc@1132 3810 IFS=$as_save_IFS
adamc@1132 3811 test -z "$as_dir" && as_dir=.
adamc@1132 3812 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 3813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 3814 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
adamc@1132 3815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 3816 break 2
adamc@1132 3817 fi
adamc@1132 3818 done
adamc@1132 3819 done
adamc@1132 3820 IFS=$as_save_IFS
adamc@1132 3821
adamc@1132 3822 fi
adamc@1132 3823 fi
adamc@1132 3824 STRIP=$ac_cv_prog_STRIP
adamc@1132 3825 if test -n "$STRIP"; then
adamc@1132 3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
adamc@1132 3827 $as_echo "$STRIP" >&6; }
adamc@1132 3828 else
adamc@1132 3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 3830 $as_echo "no" >&6; }
adamc@1132 3831 fi
adamc@1132 3832
adamc@1132 3833
adamc@1132 3834 fi
adamc@1132 3835 if test -z "$ac_cv_prog_STRIP"; then
adamc@1132 3836 ac_ct_STRIP=$STRIP
adamc@1132 3837 # Extract the first word of "strip", so it can be a program name with args.
adamc@1132 3838 set dummy strip; ac_word=$2
adamc@1132 3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 3840 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 3841 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
adamc@1132 3842 $as_echo_n "(cached) " >&6
adamc@1132 3843 else
adamc@1132 3844 if test -n "$ac_ct_STRIP"; then
adamc@1132 3845 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
adamc@1132 3846 else
adamc@1132 3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 3848 for as_dir in $PATH
adamc@1132 3849 do
adamc@1132 3850 IFS=$as_save_IFS
adamc@1132 3851 test -z "$as_dir" && as_dir=.
adamc@1132 3852 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 3853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 3854 ac_cv_prog_ac_ct_STRIP="strip"
adamc@1132 3855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 3856 break 2
adamc@1132 3857 fi
adamc@1132 3858 done
adamc@1132 3859 done
adamc@1132 3860 IFS=$as_save_IFS
adamc@1132 3861
adamc@1132 3862 fi
adamc@1132 3863 fi
adamc@1132 3864 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
adamc@1132 3865 if test -n "$ac_ct_STRIP"; then
adamc@1132 3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
adamc@1132 3867 $as_echo "$ac_ct_STRIP" >&6; }
adamc@1132 3868 else
adamc@1132 3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 3870 $as_echo "no" >&6; }
adamc@1132 3871 fi
adamc@1132 3872
adamc@1132 3873 if test "x$ac_ct_STRIP" = x; then
adamc@1132 3874 STRIP=":"
adamc@1132 3875 else
adamc@1132 3876 case $cross_compiling:$ac_tool_warned in
adamc@1132 3877 yes:)
adamc@1132 3878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 3879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 3880 ac_tool_warned=yes ;;
adamc@1132 3881 esac
adamc@1132 3882 STRIP=$ac_ct_STRIP
adamc@1132 3883 fi
adamc@1132 3884 else
adamc@1132 3885 STRIP="$ac_cv_prog_STRIP"
adamc@1132 3886 fi
adamc@1132 3887
adamc@1132 3888 fi
adamc@1132 3889 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
adamc@1132 3890
adamc@1132 3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
adamc@1132 3892 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
adamc@1132 3893 if test -z "$MKDIR_P"; then
adam@1826 3894 if test "${ac_cv_path_mkdir+set}" = set; then :
adamc@1132 3895 $as_echo_n "(cached) " >&6
adamc@1132 3896 else
adamc@1132 3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 3898 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
adamc@1132 3899 do
adamc@1132 3900 IFS=$as_save_IFS
adamc@1132 3901 test -z "$as_dir" && as_dir=.
adamc@1132 3902 for ac_prog in mkdir gmkdir; do
adamc@1132 3903 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 3904 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
adamc@1132 3905 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
adamc@1132 3906 'mkdir (GNU coreutils) '* | \
adamc@1132 3907 'mkdir (coreutils) '* | \
adamc@1132 3908 'mkdir (fileutils) '4.1*)
adamc@1132 3909 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
adamc@1132 3910 break 3;;
adamc@1132 3911 esac
adamc@1132 3912 done
adamc@1132 3913 done
adamc@1132 3914 done
adamc@1132 3915 IFS=$as_save_IFS
adamc@1132 3916
adamc@1132 3917 fi
adamc@1132 3918
adamc@1132 3919 test -d ./--version && rmdir ./--version
adamc@1132 3920 if test "${ac_cv_path_mkdir+set}" = set; then
adamc@1132 3921 MKDIR_P="$ac_cv_path_mkdir -p"
adamc@1132 3922 else
adamc@1132 3923 # As a last resort, use the slow shell script. Don't cache a
adamc@1132 3924 # value for MKDIR_P within a source directory, because that will
adamc@1132 3925 # break other packages using the cache if that directory is
adamc@1132 3926 # removed, or if the value is a relative name.
adamc@1132 3927 MKDIR_P="$ac_install_sh -d"
adamc@1132 3928 fi
adamc@1132 3929 fi
adamc@1132 3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
adamc@1132 3931 $as_echo "$MKDIR_P" >&6; }
adamc@1132 3932
adamc@1132 3933 mkdir_p="$MKDIR_P"
adamc@1132 3934 case $mkdir_p in
adamc@1132 3935 [\\/$]* | ?:[\\/]*) ;;
adamc@1132 3936 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
adamc@1132 3937 esac
adamc@1132 3938
adamc@1132 3939 for ac_prog in gawk mawk nawk awk
adamc@1132 3940 do
adamc@1132 3941 # Extract the first word of "$ac_prog", so it can be a program name with args.
adamc@1132 3942 set dummy $ac_prog; ac_word=$2
adamc@1132 3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 3944 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 3945 if test "${ac_cv_prog_AWK+set}" = set; then :
adamc@1132 3946 $as_echo_n "(cached) " >&6
adamc@1132 3947 else
adamc@1132 3948 if test -n "$AWK"; then
adamc@1132 3949 ac_cv_prog_AWK="$AWK" # Let the user override the test.
adamc@1132 3950 else
adamc@1132 3951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 3952 for as_dir in $PATH
adamc@1132 3953 do
adamc@1132 3954 IFS=$as_save_IFS
adamc@1132 3955 test -z "$as_dir" && as_dir=.
adamc@1132 3956 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 3957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 3958 ac_cv_prog_AWK="$ac_prog"
adamc@1132 3959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 3960 break 2
adamc@1132 3961 fi
adamc@1132 3962 done
adamc@1132 3963 done
adamc@1132 3964 IFS=$as_save_IFS
adamc@1132 3965
adamc@1132 3966 fi
adamc@1132 3967 fi
adamc@1132 3968 AWK=$ac_cv_prog_AWK
adamc@1132 3969 if test -n "$AWK"; then
adamc@1132 3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
adamc@1132 3971 $as_echo "$AWK" >&6; }
adamc@1132 3972 else
adamc@1132 3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 3974 $as_echo "no" >&6; }
adamc@1132 3975 fi
adamc@1132 3976
adamc@1132 3977
adamc@1132 3978 test -n "$AWK" && break
adamc@1132 3979 done
adamc@1132 3980
adamc@1132 3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
adamc@1132 3982 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
adamc@1132 3983 set x ${MAKE-make}
adamc@1132 3984 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
adam@1826 3985 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
adamc@1132 3986 $as_echo_n "(cached) " >&6
adamc@1132 3987 else
adamc@1132 3988 cat >conftest.make <<\_ACEOF
adamc@1132 3989 SHELL = /bin/sh
adamc@1132 3990 all:
adamc@1132 3991 @echo '@@@%%%=$(MAKE)=@@@%%%'
adamc@1132 3992 _ACEOF
adam@1315 3993 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
adamc@1132 3994 case `${MAKE-make} -f conftest.make 2>/dev/null` in
adamc@1132 3995 *@@@%%%=?*=@@@%%%*)
adamc@1132 3996 eval ac_cv_prog_make_${ac_make}_set=yes;;
adamc@1132 3997 *)
adamc@1132 3998 eval ac_cv_prog_make_${ac_make}_set=no;;
adamc@1132 3999 esac
adamc@1132 4000 rm -f conftest.make
adamc@1132 4001 fi
adamc@1132 4002 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
adamc@1132 4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
adamc@1132 4004 $as_echo "yes" >&6; }
adamc@1132 4005 SET_MAKE=
adamc@1132 4006 else
adamc@1132 4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 4008 $as_echo "no" >&6; }
adamc@1132 4009 SET_MAKE="MAKE=${MAKE-make}"
adamc@1132 4010 fi
adamc@1132 4011
adamc@1132 4012 rm -rf .tst 2>/dev/null
adamc@1132 4013 mkdir .tst 2>/dev/null
adamc@1132 4014 if test -d .tst; then
adamc@1132 4015 am__leading_dot=.
adamc@1132 4016 else
adamc@1132 4017 am__leading_dot=_
adamc@1132 4018 fi
adamc@1132 4019 rmdir .tst 2>/dev/null
adamc@1132 4020
adamc@1132 4021 DEPDIR="${am__leading_dot}deps"
adamc@1132 4022
adamc@1132 4023 ac_config_commands="$ac_config_commands depfiles"
adamc@1132 4024
adamc@1132 4025
adamc@1132 4026 am_make=${MAKE-make}
adamc@1132 4027 cat > confinc << 'END'
adamc@1132 4028 am__doit:
adamc@1132 4029 @echo this is the am__doit target
adamc@1132 4030 .PHONY: am__doit
adamc@1132 4031 END
adamc@1132 4032 # If we don't find an include directive, just comment out the code.
adamc@1132 4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
adamc@1132 4034 $as_echo_n "checking for style of include used by $am_make... " >&6; }
adamc@1132 4035 am__include="#"
adamc@1132 4036 am__quote=
adamc@1132 4037 _am_result=none
adamc@1132 4038 # First try GNU make style include.
adamc@1132 4039 echo "include confinc" > confmf
adamc@1132 4040 # Ignore all kinds of additional output from `make'.
adamc@1132 4041 case `$am_make -s -f confmf 2> /dev/null` in #(
adamc@1132 4042 *the\ am__doit\ target*)
adamc@1132 4043 am__include=include
adamc@1132 4044 am__quote=
adamc@1132 4045 _am_result=GNU
adamc@1132 4046 ;;
adamc@1132 4047 esac
adamc@1132 4048 # Now try BSD make style include.
adamc@1132 4049 if test "$am__include" = "#"; then
adamc@1132 4050 echo '.include "confinc"' > confmf
adamc@1132 4051 case `$am_make -s -f confmf 2> /dev/null` in #(
adamc@1132 4052 *the\ am__doit\ target*)
adamc@1132 4053 am__include=.include
adamc@1132 4054 am__quote="\""
adamc@1132 4055 _am_result=BSD
adamc@1132 4056 ;;
adamc@1132 4057 esac
adamc@1132 4058 fi
adamc@1132 4059
adamc@1132 4060
adamc@1132 4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
adamc@1132 4062 $as_echo "$_am_result" >&6; }
adamc@1132 4063 rm -f confinc confmf
adamc@1132 4064
adamc@1132 4065 # Check whether --enable-dependency-tracking was given.
adamc@1132 4066 if test "${enable_dependency_tracking+set}" = set; then :
adamc@1132 4067 enableval=$enable_dependency_tracking;
adamc@1132 4068 fi
adamc@1132 4069
adamc@1132 4070 if test "x$enable_dependency_tracking" != xno; then
adamc@1132 4071 am_depcomp="$ac_aux_dir/depcomp"
adamc@1132 4072 AMDEPBACKSLASH='\'
adamc@1132 4073 fi
adamc@1132 4074 if test "x$enable_dependency_tracking" != xno; then
adamc@1132 4075 AMDEP_TRUE=
adamc@1132 4076 AMDEP_FALSE='#'
adamc@1132 4077 else
adamc@1132 4078 AMDEP_TRUE='#'
adamc@1132 4079 AMDEP_FALSE=
adamc@1132 4080 fi
adamc@1132 4081
adamc@1132 4082
adamc@1149 4083 if test "`cd $srcdir && pwd`" != "`pwd`"; then
adamc@1149 4084 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
adamc@1149 4085 # is not polluted with repeated "-I."
adamc@1149 4086 am__isrc=' -I$(srcdir)'
adamc@1149 4087 # test to see if srcdir already configured
adamc@1149 4088 if test -f $srcdir/config.status; then
adam@1315 4089 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
adamc@1149 4090 fi
adamc@1149 4091 fi
adamc@1149 4092
adamc@1149 4093 # test whether we have cygpath
adamc@1149 4094 if test -z "$CYGPATH_W"; then
adamc@1149 4095 if (cygpath --version) >/dev/null 2>/dev/null; then
adamc@1149 4096 CYGPATH_W='cygpath -w'
adamc@1149 4097 else
adamc@1149 4098 CYGPATH_W=echo
adamc@1149 4099 fi
adamc@1149 4100 fi
adamc@1149 4101
adamc@1149 4102
adamc@1149 4103 # Define the identity of the package.
adamc@1149 4104 PACKAGE='urweb'
adam@1851 4105 VERSION='20130421'
adamc@1149 4106
adamc@1149 4107
adamc@1149 4108 # Some tools Automake needs.
adamc@1149 4109
adamc@1149 4110 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
adamc@1149 4111
adamc@1149 4112
adamc@1149 4113 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
adamc@1149 4114
adamc@1149 4115
adamc@1149 4116 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
adamc@1149 4117
adamc@1149 4118
adamc@1149 4119 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
adamc@1149 4120
adamc@1149 4121
adamc@1149 4122 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
adamc@1149 4123
adamc@1149 4124 # We need awk for the "check" target. The system "awk" is bad on
adamc@1149 4125 # some platforms.
adam@1826 4126 # Always define AMTAR for backward compatibility.
adam@1826 4127
adam@1826 4128 AMTAR=${AMTAR-"${am_missing_run}tar"}
adam@1826 4129
adam@1826 4130 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
adamc@1149 4131
adamc@1149 4132
adamc@1149 4133
adamc@1132 4134
adamc@1132 4135 depcc="$CC" am_compiler_list=
adamc@1132 4136
adamc@1132 4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
adamc@1132 4138 $as_echo_n "checking dependency style of $depcc... " >&6; }
adam@1826 4139 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
adamc@1132 4140 $as_echo_n "(cached) " >&6
adamc@1132 4141 else
adamc@1132 4142 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
adamc@1132 4143 # We make a subdir and do the tests there. Otherwise we can end up
adamc@1132 4144 # making bogus files that we don't know about and never remove. For
adamc@1132 4145 # instance it was reported that on HP-UX the gcc test will end up
adamc@1132 4146 # making a dummy file named `D' -- because `-MD' means `put the output
adamc@1132 4147 # in D'.
adamc@1132 4148 mkdir conftest.dir
adamc@1132 4149 # Copy depcomp to subdir because otherwise we won't find it if we're
adamc@1132 4150 # using a relative directory.
adamc@1132 4151 cp "$am_depcomp" conftest.dir
adamc@1132 4152 cd conftest.dir
adamc@1132 4153 # We will build objects and dependencies in a subdirectory because
adamc@1132 4154 # it helps to detect inapplicable dependency modes. For instance
adamc@1132 4155 # both Tru64's cc and ICC support -MD to output dependencies as a
adamc@1132 4156 # side effect of compilation, but ICC will put the dependencies in
adamc@1132 4157 # the current directory while Tru64 will put them in the object
adamc@1132 4158 # directory.
adamc@1132 4159 mkdir sub
adamc@1132 4160
adamc@1132 4161 am_cv_CC_dependencies_compiler_type=none
adamc@1132 4162 if test "$am_compiler_list" = ""; then
adamc@1132 4163 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
adamc@1132 4164 fi
adamc@1132 4165 am__universal=false
adamc@1132 4166 case " $depcc " in #(
adamc@1132 4167 *\ -arch\ *\ -arch\ *) am__universal=true ;;
adamc@1132 4168 esac
adamc@1132 4169
adamc@1132 4170 for depmode in $am_compiler_list; do
adamc@1132 4171 # Setup a source with many dependencies, because some compilers
adamc@1132 4172 # like to wrap large dependency lists on column 80 (with \), and
adamc@1132 4173 # we should not choose a depcomp mode which is confused by this.
adamc@1132 4174 #
adamc@1132 4175 # We need to recreate these files for each test, as the compiler may
adamc@1132 4176 # overwrite some of them when testing with obscure command lines.
adamc@1132 4177 # This happens at least with the AIX C compiler.
adamc@1132 4178 : > sub/conftest.c
adamc@1132 4179 for i in 1 2 3 4 5 6; do
adamc@1132 4180 echo '#include "conftst'$i'.h"' >> sub/conftest.c
adamc@1132 4181 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
adamc@1132 4182 # Solaris 8's {/usr,}/bin/sh.
adamc@1132 4183 touch sub/conftst$i.h
adamc@1132 4184 done
adamc@1132 4185 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
adamc@1132 4186
adamc@1132 4187 # We check with `-c' and `-o' for the sake of the "dashmstdout"
adamc@1132 4188 # mode. It turns out that the SunPro C++ compiler does not properly
adamc@1132 4189 # handle `-M -o', and we need to detect this. Also, some Intel
adamc@1132 4190 # versions had trouble with output in subdirs
adamc@1132 4191 am__obj=sub/conftest.${OBJEXT-o}
adamc@1132 4192 am__minus_obj="-o $am__obj"
adamc@1132 4193 case $depmode in
adamc@1132 4194 gcc)
adamc@1132 4195 # This depmode causes a compiler race in universal mode.
adamc@1132 4196 test "$am__universal" = false || continue
adamc@1132 4197 ;;
adamc@1132 4198 nosideeffect)
adamc@1132 4199 # after this tag, mechanisms are not by side-effect, so they'll
adamc@1132 4200 # only be used when explicitly requested
adamc@1132 4201 if test "x$enable_dependency_tracking" = xyes; then
adamc@1132 4202 continue
adamc@1132 4203 else
adamc@1132 4204 break
adamc@1132 4205 fi
adamc@1132 4206 ;;
adam@1826 4207 msvisualcpp | msvcmsys)
adamc@1132 4208 # This compiler won't grok `-c -o', but also, the minuso test has
adamc@1132 4209 # not run yet. These depmodes are late enough in the game, and
adamc@1132 4210 # so weak that their functioning should not be impacted.
adamc@1132 4211 am__obj=conftest.${OBJEXT-o}
adamc@1132 4212 am__minus_obj=
adamc@1132 4213 ;;
adamc@1132 4214 none) break ;;
adamc@1132 4215 esac
adamc@1132 4216 if depmode=$depmode \
adamc@1132 4217 source=sub/conftest.c object=$am__obj \
adamc@1132 4218 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
adamc@1132 4219 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
adamc@1132 4220 >/dev/null 2>conftest.err &&
adamc@1132 4221 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
adamc@1132 4222 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
adamc@1132 4223 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
adamc@1132 4224 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
adamc@1132 4225 # icc doesn't choke on unknown options, it will just issue warnings
adamc@1132 4226 # or remarks (even with -Werror). So we grep stderr for any message
adamc@1132 4227 # that says an option was ignored or not supported.
adamc@1132 4228 # When given -MP, icc 7.0 and 7.1 complain thusly:
adamc@1132 4229 # icc: Command line warning: ignoring option '-M'; no argument required
adamc@1132 4230 # The diagnosis changed in icc 8.0:
adamc@1132 4231 # icc: Command line remark: option '-MP' not supported
adamc@1132 4232 if (grep 'ignoring option' conftest.err ||
adamc@1132 4233 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
adamc@1132 4234 am_cv_CC_dependencies_compiler_type=$depmode
adamc@1132 4235 break
adamc@1132 4236 fi
adamc@1132 4237 fi
adamc@1132 4238 done
adamc@1132 4239
adamc@1132 4240 cd ..
adamc@1132 4241 rm -rf conftest.dir
adamc@1132 4242 else
adamc@1132 4243 am_cv_CC_dependencies_compiler_type=none
adamc@1132 4244 fi
adamc@1132 4245
adamc@1132 4246 fi
adamc@1132 4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
adamc@1132 4248 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
adamc@1132 4249 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
adamc@1132 4250
adamc@1132 4251 if
adamc@1132 4252 test "x$enable_dependency_tracking" != xno \
adamc@1132 4253 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
adamc@1132 4254 am__fastdepCC_TRUE=
adamc@1132 4255 am__fastdepCC_FALSE='#'
adamc@1132 4256 else
adamc@1132 4257 am__fastdepCC_TRUE='#'
adamc@1132 4258 am__fastdepCC_FALSE=
adamc@1132 4259 fi
adamc@1132 4260
adamc@1132 4261
adamc@1149 4262
adamc@1149 4263 ac_ext=c
adamc@1149 4264 ac_cpp='$CPP $CPPFLAGS'
adamc@1149 4265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adamc@1149 4266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adamc@1149 4267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adamc@1149 4268 if test -n "$ac_tool_prefix"; then
adamc@1149 4269 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
adamc@1149 4270 set dummy ${ac_tool_prefix}gcc; ac_word=$2
adamc@1149 4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1149 4272 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 4273 if test "${ac_cv_prog_CC+set}" = set; then :
adamc@1149 4274 $as_echo_n "(cached) " >&6
adamc@1149 4275 else
adamc@1149 4276 if test -n "$CC"; then
adamc@1149 4277 ac_cv_prog_CC="$CC" # Let the user override the test.
adamc@1149 4278 else
adamc@1149 4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1149 4280 for as_dir in $PATH
adamc@1149 4281 do
adamc@1149 4282 IFS=$as_save_IFS
adamc@1149 4283 test -z "$as_dir" && as_dir=.
adamc@1149 4284 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 4285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1149 4286 ac_cv_prog_CC="${ac_tool_prefix}gcc"
adamc@1149 4287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1149 4288 break 2
adamc@1149 4289 fi
adamc@1149 4290 done
adamc@1149 4291 done
adamc@1149 4292 IFS=$as_save_IFS
adamc@1149 4293
adamc@1149 4294 fi
adamc@1149 4295 fi
adamc@1149 4296 CC=$ac_cv_prog_CC
adamc@1149 4297 if test -n "$CC"; then
adamc@1149 4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
adamc@1149 4299 $as_echo "$CC" >&6; }
adamc@1149 4300 else
adamc@1149 4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1149 4302 $as_echo "no" >&6; }
adamc@1149 4303 fi
adamc@1149 4304
adamc@1149 4305
adamc@1149 4306 fi
adamc@1149 4307 if test -z "$ac_cv_prog_CC"; then
adamc@1149 4308 ac_ct_CC=$CC
adamc@1149 4309 # Extract the first word of "gcc", so it can be a program name with args.
adamc@1149 4310 set dummy gcc; ac_word=$2
adamc@1149 4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1149 4312 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 4313 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
adamc@1149 4314 $as_echo_n "(cached) " >&6
adamc@1149 4315 else
adamc@1149 4316 if test -n "$ac_ct_CC"; then
adamc@1149 4317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
adamc@1149 4318 else
adamc@1149 4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1149 4320 for as_dir in $PATH
adamc@1149 4321 do
adamc@1149 4322 IFS=$as_save_IFS
adamc@1149 4323 test -z "$as_dir" && as_dir=.
adamc@1149 4324 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 4325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1149 4326 ac_cv_prog_ac_ct_CC="gcc"
adamc@1149 4327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1149 4328 break 2
adamc@1149 4329 fi
adamc@1149 4330 done
adamc@1149 4331 done
adamc@1149 4332 IFS=$as_save_IFS
adamc@1149 4333
adamc@1149 4334 fi
adamc@1149 4335 fi
adamc@1149 4336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
adamc@1149 4337 if test -n "$ac_ct_CC"; then
adamc@1149 4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
adamc@1149 4339 $as_echo "$ac_ct_CC" >&6; }
adamc@1149 4340 else
adamc@1149 4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1149 4342 $as_echo "no" >&6; }
adamc@1149 4343 fi
adamc@1149 4344
adamc@1149 4345 if test "x$ac_ct_CC" = x; then
adamc@1149 4346 CC=""
adamc@1149 4347 else
adamc@1149 4348 case $cross_compiling:$ac_tool_warned in
adamc@1149 4349 yes:)
adamc@1149 4350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1149 4351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1149 4352 ac_tool_warned=yes ;;
adamc@1149 4353 esac
adamc@1149 4354 CC=$ac_ct_CC
adamc@1149 4355 fi
adamc@1149 4356 else
adamc@1149 4357 CC="$ac_cv_prog_CC"
adamc@1149 4358 fi
adamc@1149 4359
adamc@1149 4360 if test -z "$CC"; then
adamc@1149 4361 if test -n "$ac_tool_prefix"; then
adamc@1149 4362 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
adamc@1149 4363 set dummy ${ac_tool_prefix}cc; ac_word=$2
adamc@1149 4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1149 4365 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 4366 if test "${ac_cv_prog_CC+set}" = set; then :
adamc@1149 4367 $as_echo_n "(cached) " >&6
adamc@1149 4368 else
adamc@1149 4369 if test -n "$CC"; then
adamc@1149 4370 ac_cv_prog_CC="$CC" # Let the user override the test.
adamc@1149 4371 else
adamc@1149 4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1149 4373 for as_dir in $PATH
adamc@1149 4374 do
adamc@1149 4375 IFS=$as_save_IFS
adamc@1149 4376 test -z "$as_dir" && as_dir=.
adamc@1149 4377 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 4378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1149 4379 ac_cv_prog_CC="${ac_tool_prefix}cc"
adamc@1149 4380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1149 4381 break 2
adamc@1149 4382 fi
adamc@1149 4383 done
adamc@1149 4384 done
adamc@1149 4385 IFS=$as_save_IFS
adamc@1149 4386
adamc@1149 4387 fi
adamc@1149 4388 fi
adamc@1149 4389 CC=$ac_cv_prog_CC
adamc@1149 4390 if test -n "$CC"; then
adamc@1149 4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
adamc@1149 4392 $as_echo "$CC" >&6; }
adamc@1149 4393 else
adamc@1149 4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1149 4395 $as_echo "no" >&6; }
adamc@1149 4396 fi
adamc@1149 4397
adamc@1149 4398
adamc@1149 4399 fi
adamc@1149 4400 fi
adamc@1149 4401 if test -z "$CC"; then
adamc@1149 4402 # Extract the first word of "cc", so it can be a program name with args.
adamc@1149 4403 set dummy cc; ac_word=$2
adamc@1149 4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1149 4405 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 4406 if test "${ac_cv_prog_CC+set}" = set; then :
adamc@1149 4407 $as_echo_n "(cached) " >&6
adamc@1149 4408 else
adamc@1149 4409 if test -n "$CC"; then
adamc@1149 4410 ac_cv_prog_CC="$CC" # Let the user override the test.
adamc@1149 4411 else
adamc@1149 4412 ac_prog_rejected=no
adamc@1149 4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1149 4414 for as_dir in $PATH
adamc@1149 4415 do
adamc@1149 4416 IFS=$as_save_IFS
adamc@1149 4417 test -z "$as_dir" && as_dir=.
adamc@1149 4418 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 4419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1149 4420 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
adamc@1149 4421 ac_prog_rejected=yes
adamc@1149 4422 continue
adamc@1149 4423 fi
adamc@1149 4424 ac_cv_prog_CC="cc"
adamc@1149 4425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1149 4426 break 2
adamc@1149 4427 fi
adamc@1149 4428 done
adamc@1149 4429 done
adamc@1149 4430 IFS=$as_save_IFS
adamc@1149 4431
adamc@1149 4432 if test $ac_prog_rejected = yes; then
adamc@1149 4433 # We found a bogon in the path, so make sure we never use it.
adamc@1149 4434 set dummy $ac_cv_prog_CC
adamc@1149 4435 shift
adamc@1149 4436 if test $# != 0; then
adamc@1149 4437 # We chose a different compiler from the bogus one.
adamc@1149 4438 # However, it has the same basename, so the bogon will be chosen
adamc@1149 4439 # first if we set CC to just the basename; use the full file name.
adamc@1149 4440 shift
adamc@1149 4441 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
adamc@1149 4442 fi
adamc@1149 4443 fi
adamc@1149 4444 fi
adamc@1149 4445 fi
adamc@1149 4446 CC=$ac_cv_prog_CC
adamc@1149 4447 if test -n "$CC"; then
adamc@1149 4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
adamc@1149 4449 $as_echo "$CC" >&6; }
adamc@1149 4450 else
adamc@1149 4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1149 4452 $as_echo "no" >&6; }
adamc@1149 4453 fi
adamc@1149 4454
adamc@1149 4455
adamc@1149 4456 fi
adamc@1149 4457 if test -z "$CC"; then
adamc@1149 4458 if test -n "$ac_tool_prefix"; then
adamc@1149 4459 for ac_prog in cl.exe
adamc@1149 4460 do
adamc@1149 4461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
adamc@1149 4462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
adamc@1149 4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1149 4464 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 4465 if test "${ac_cv_prog_CC+set}" = set; then :
adamc@1149 4466 $as_echo_n "(cached) " >&6
adamc@1149 4467 else
adamc@1149 4468 if test -n "$CC"; then
adamc@1149 4469 ac_cv_prog_CC="$CC" # Let the user override the test.
adamc@1149 4470 else
adamc@1149 4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1149 4472 for as_dir in $PATH
adamc@1149 4473 do
adamc@1149 4474 IFS=$as_save_IFS
adamc@1149 4475 test -z "$as_dir" && as_dir=.
adamc@1149 4476 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 4477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1149 4478 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
adamc@1149 4479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1149 4480 break 2
adamc@1149 4481 fi
adamc@1149 4482 done
adamc@1149 4483 done
adamc@1149 4484 IFS=$as_save_IFS
adamc@1149 4485
adamc@1149 4486 fi
adamc@1149 4487 fi
adamc@1149 4488 CC=$ac_cv_prog_CC
adamc@1149 4489 if test -n "$CC"; then
adamc@1149 4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
adamc@1149 4491 $as_echo "$CC" >&6; }
adamc@1149 4492 else
adamc@1149 4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1149 4494 $as_echo "no" >&6; }
adamc@1149 4495 fi
adamc@1149 4496
adamc@1149 4497
adamc@1149 4498 test -n "$CC" && break
adamc@1149 4499 done
adamc@1149 4500 fi
adamc@1149 4501 if test -z "$CC"; then
adamc@1149 4502 ac_ct_CC=$CC
adamc@1149 4503 for ac_prog in cl.exe
adamc@1149 4504 do
adamc@1149 4505 # Extract the first word of "$ac_prog", so it can be a program name with args.
adamc@1149 4506 set dummy $ac_prog; ac_word=$2
adamc@1149 4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1149 4508 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 4509 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
adamc@1149 4510 $as_echo_n "(cached) " >&6
adamc@1149 4511 else
adamc@1149 4512 if test -n "$ac_ct_CC"; then
adamc@1149 4513 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
adamc@1149 4514 else
adamc@1149 4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1149 4516 for as_dir in $PATH
adamc@1149 4517 do
adamc@1149 4518 IFS=$as_save_IFS
adamc@1149 4519 test -z "$as_dir" && as_dir=.
adamc@1149 4520 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 4521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1149 4522 ac_cv_prog_ac_ct_CC="$ac_prog"
adamc@1149 4523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1149 4524 break 2
adamc@1149 4525 fi
adamc@1149 4526 done
adamc@1149 4527 done
adamc@1149 4528 IFS=$as_save_IFS
adamc@1149 4529
adamc@1149 4530 fi
adamc@1149 4531 fi
adamc@1149 4532 ac_ct_CC=$ac_cv_prog_ac_ct_CC
adamc@1149 4533 if test -n "$ac_ct_CC"; then
adamc@1149 4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
adamc@1149 4535 $as_echo "$ac_ct_CC" >&6; }
adamc@1149 4536 else
adamc@1149 4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1149 4538 $as_echo "no" >&6; }
adamc@1149 4539 fi
adamc@1149 4540
adamc@1149 4541
adamc@1149 4542 test -n "$ac_ct_CC" && break
adamc@1149 4543 done
adamc@1149 4544
adamc@1149 4545 if test "x$ac_ct_CC" = x; then
adamc@1149 4546 CC=""
adamc@1149 4547 else
adamc@1149 4548 case $cross_compiling:$ac_tool_warned in
adamc@1149 4549 yes:)
adamc@1149 4550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1149 4551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1149 4552 ac_tool_warned=yes ;;
adamc@1149 4553 esac
adamc@1149 4554 CC=$ac_ct_CC
adamc@1149 4555 fi
adamc@1149 4556 fi
adamc@1149 4557
adamc@1149 4558 fi
adamc@1149 4559
adamc@1149 4560
adamc@1149 4561 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
adamc@1149 4562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
adam@1315 4563 as_fn_error $? "no acceptable C compiler found in \$PATH
adam@1826 4564 See \`config.log' for more details" "$LINENO" 5 ; }
adamc@1149 4565
adamc@1149 4566 # Provide some information about the compiler.
adamc@1149 4567 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
adamc@1149 4568 set X $ac_compile
adamc@1149 4569 ac_compiler=$2
adamc@1149 4570 for ac_option in --version -v -V -qversion; do
adamc@1149 4571 { { ac_try="$ac_compiler $ac_option >&5"
adamc@1149 4572 case "(($ac_try" in
adamc@1149 4573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
adamc@1149 4574 *) ac_try_echo=$ac_try;;
adamc@1149 4575 esac
adamc@1149 4576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
adamc@1149 4577 $as_echo "$ac_try_echo"; } >&5
adamc@1149 4578 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
adamc@1149 4579 ac_status=$?
adamc@1149 4580 if test -s conftest.err; then
adamc@1149 4581 sed '10a\
adamc@1149 4582 ... rest of stderr output deleted ...
adamc@1149 4583 10q' conftest.err >conftest.er1
adamc@1149 4584 cat conftest.er1 >&5
adamc@1149 4585 fi
adamc@1149 4586 rm -f conftest.er1 conftest.err
adamc@1149 4587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1149 4588 test $ac_status = 0; }
adamc@1149 4589 done
adamc@1149 4590
adamc@1149 4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
adamc@1149 4592 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
adam@1826 4593 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
adamc@1149 4594 $as_echo_n "(cached) " >&6
adamc@1149 4595 else
adamc@1149 4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 4597 /* end confdefs.h. */
adamc@1149 4598
adamc@1149 4599 int
adamc@1149 4600 main ()
adamc@1149 4601 {
adamc@1149 4602 #ifndef __GNUC__
adamc@1149 4603 choke me
adamc@1149 4604 #endif
adamc@1149 4605
adamc@1149 4606 ;
adamc@1149 4607 return 0;
adamc@1149 4608 }
adamc@1149 4609 _ACEOF
adamc@1149 4610 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1149 4611 ac_compiler_gnu=yes
adamc@1149 4612 else
adamc@1149 4613 ac_compiler_gnu=no
adamc@1149 4614 fi
adamc@1149 4615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
adamc@1149 4616 ac_cv_c_compiler_gnu=$ac_compiler_gnu
adamc@1149 4617
adamc@1149 4618 fi
adamc@1149 4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
adamc@1149 4620 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
adamc@1149 4621 if test $ac_compiler_gnu = yes; then
adamc@1149 4622 GCC=yes
adamc@1149 4623 else
adamc@1149 4624 GCC=
adamc@1149 4625 fi
adamc@1149 4626 ac_test_CFLAGS=${CFLAGS+set}
adamc@1149 4627 ac_save_CFLAGS=$CFLAGS
adamc@1149 4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
adamc@1149 4629 $as_echo_n "checking whether $CC accepts -g... " >&6; }
adam@1826 4630 if test "${ac_cv_prog_cc_g+set}" = set; then :
adamc@1149 4631 $as_echo_n "(cached) " >&6
adamc@1149 4632 else
adamc@1149 4633 ac_save_c_werror_flag=$ac_c_werror_flag
adamc@1149 4634 ac_c_werror_flag=yes
adamc@1149 4635 ac_cv_prog_cc_g=no
adamc@1149 4636 CFLAGS="-g"
adamc@1149 4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 4638 /* end confdefs.h. */
adamc@1149 4639
adamc@1149 4640 int
adamc@1149 4641 main ()
adamc@1149 4642 {
adamc@1149 4643
adamc@1149 4644 ;
adamc@1149 4645 return 0;
adamc@1149 4646 }
adamc@1149 4647 _ACEOF
adamc@1149 4648 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1149 4649 ac_cv_prog_cc_g=yes
adamc@1149 4650 else
adamc@1149 4651 CFLAGS=""
adamc@1149 4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 4653 /* end confdefs.h. */
adamc@1149 4654
adamc@1149 4655 int
adamc@1149 4656 main ()
adamc@1149 4657 {
adamc@1149 4658
adamc@1149 4659 ;
adamc@1149 4660 return 0;
adamc@1149 4661 }
adamc@1149 4662 _ACEOF
adamc@1149 4663 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1149 4664
adamc@1149 4665 else
adamc@1149 4666 ac_c_werror_flag=$ac_save_c_werror_flag
adamc@1149 4667 CFLAGS="-g"
adamc@1149 4668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 4669 /* end confdefs.h. */
adamc@1149 4670
adamc@1149 4671 int
adamc@1149 4672 main ()
adamc@1149 4673 {
adamc@1149 4674
adamc@1149 4675 ;
adamc@1149 4676 return 0;
adamc@1149 4677 }
adamc@1149 4678 _ACEOF
adamc@1149 4679 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1149 4680 ac_cv_prog_cc_g=yes
adamc@1149 4681 fi
adamc@1149 4682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
adamc@1149 4683 fi
adamc@1149 4684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
adamc@1149 4685 fi
adamc@1149 4686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
adamc@1149 4687 ac_c_werror_flag=$ac_save_c_werror_flag
adamc@1149 4688 fi
adamc@1149 4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
adamc@1149 4690 $as_echo "$ac_cv_prog_cc_g" >&6; }
adamc@1149 4691 if test "$ac_test_CFLAGS" = set; then
adamc@1149 4692 CFLAGS=$ac_save_CFLAGS
adamc@1149 4693 elif test $ac_cv_prog_cc_g = yes; then
adamc@1149 4694 if test "$GCC" = yes; then
adamc@1149 4695 CFLAGS="-g -O2"
adamc@1149 4696 else
adamc@1149 4697 CFLAGS="-g"
adamc@1149 4698 fi
adamc@1149 4699 else
adamc@1149 4700 if test "$GCC" = yes; then
adamc@1149 4701 CFLAGS="-O2"
adamc@1149 4702 else
adamc@1149 4703 CFLAGS=
adamc@1149 4704 fi
adamc@1149 4705 fi
adamc@1149 4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
adamc@1149 4707 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
adam@1826 4708 if test "${ac_cv_prog_cc_c89+set}" = set; then :
adamc@1149 4709 $as_echo_n "(cached) " >&6
adamc@1149 4710 else
adamc@1149 4711 ac_cv_prog_cc_c89=no
adamc@1149 4712 ac_save_CC=$CC
adamc@1149 4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1149 4714 /* end confdefs.h. */
adamc@1149 4715 #include <stdarg.h>
adamc@1149 4716 #include <stdio.h>
adam@1826 4717 #include <sys/types.h>
adam@1826 4718 #include <sys/stat.h>
adamc@1149 4719 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
adamc@1149 4720 struct buf { int x; };
adamc@1149 4721 FILE * (*rcsopen) (struct buf *, struct stat *, int);
adamc@1149 4722 static char *e (p, i)
adamc@1149 4723 char **p;
adamc@1149 4724 int i;
adamc@1149 4725 {
adamc@1149 4726 return p[i];
adamc@1149 4727 }
adamc@1149 4728 static char *f (char * (*g) (char **, int), char **p, ...)
adamc@1149 4729 {
adamc@1149 4730 char *s;
adamc@1149 4731 va_list v;
adamc@1149 4732 va_start (v,p);
adamc@1149 4733 s = g (p, va_arg (v,int));
adamc@1149 4734 va_end (v);
adamc@1149 4735 return s;
adamc@1149 4736 }
adamc@1149 4737
adamc@1149 4738 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
adamc@1149 4739 function prototypes and stuff, but not '\xHH' hex character constants.
adamc@1149 4740 These don't provoke an error unfortunately, instead are silently treated
adamc@1149 4741 as 'x'. The following induces an error, until -std is added to get
adamc@1149 4742 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
adamc@1149 4743 array size at least. It's necessary to write '\x00'==0 to get something
adamc@1149 4744 that's true only with -std. */
adamc@1149 4745 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
adamc@1149 4746
adamc@1149 4747 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
adamc@1149 4748 inside strings and character constants. */
adamc@1149 4749 #define FOO(x) 'x'
adamc@1149 4750 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
adamc@1149 4751
adamc@1149 4752 int test (int i, double x);
adamc@1149 4753 struct s1 {int (*f) (int a);};
adamc@1149 4754 struct s2 {int (*f) (double a);};
adamc@1149 4755 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
adamc@1149 4756 int argc;
adamc@1149 4757 char **argv;
adamc@1149 4758 int
adamc@1149 4759 main ()
adamc@1149 4760 {
adamc@1149 4761 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
adamc@1149 4762 ;
adamc@1149 4763 return 0;
adamc@1149 4764 }
adamc@1149 4765 _ACEOF
adamc@1149 4766 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
adamc@1149 4767 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
adamc@1149 4768 do
adamc@1149 4769 CC="$ac_save_CC $ac_arg"
adamc@1149 4770 if ac_fn_c_try_compile "$LINENO"; then :
adamc@1149 4771 ac_cv_prog_cc_c89=$ac_arg
adamc@1149 4772 fi
adamc@1149 4773 rm -f core conftest.err conftest.$ac_objext
adamc@1149 4774 test "x$ac_cv_prog_cc_c89" != "xno" && break
adamc@1149 4775 done
adamc@1149 4776 rm -f conftest.$ac_ext
adamc@1149 4777 CC=$ac_save_CC
adamc@1149 4778
adamc@1149 4779 fi
adamc@1149 4780 # AC_CACHE_VAL
adamc@1149 4781 case "x$ac_cv_prog_cc_c89" in
adamc@1149 4782 x)
adamc@1149 4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
adamc@1149 4784 $as_echo "none needed" >&6; } ;;
adamc@1149 4785 xno)
adamc@1149 4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
adamc@1149 4787 $as_echo "unsupported" >&6; } ;;
adamc@1149 4788 *)
adamc@1149 4789 CC="$CC $ac_cv_prog_cc_c89"
adamc@1149 4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
adamc@1149 4791 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
adamc@1149 4792 esac
adamc@1149 4793 if test "x$ac_cv_prog_cc_c89" != xno; then :
adamc@1149 4794
adamc@1149 4795 fi
adamc@1149 4796
adamc@1149 4797 ac_ext=c
adamc@1149 4798 ac_cpp='$CPP $CPPFLAGS'
adamc@1149 4799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adamc@1149 4800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adamc@1149 4801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adamc@1149 4802
adamc@1132 4803 case `pwd` in
adamc@1132 4804 *\ * | *\ *)
adamc@1132 4805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
adamc@1132 4806 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
adamc@1132 4807 esac
adamc@1132 4808
adamc@1132 4809
adamc@1132 4810
adam@1826 4811 macro_version='2.2.6b'
adam@1826 4812 macro_revision='1.3017'
adamc@1132 4813
adamc@1132 4814
adamc@1132 4815
adamc@1132 4816
adamc@1132 4817
adamc@1132 4818
adamc@1132 4819
adamc@1132 4820
adamc@1132 4821
adamc@1132 4822
adamc@1132 4823
adamc@1132 4824
adamc@1132 4825
adamc@1132 4826 ltmain="$ac_aux_dir/ltmain.sh"
adamc@1132 4827
adamc@1132 4828 # Make sure we can run config.sub.
adamc@1132 4829 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
adam@1315 4830 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
adamc@1132 4831
adamc@1132 4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
adamc@1132 4833 $as_echo_n "checking build system type... " >&6; }
adam@1826 4834 if test "${ac_cv_build+set}" = set; then :
adamc@1132 4835 $as_echo_n "(cached) " >&6
adamc@1132 4836 else
adamc@1132 4837 ac_build_alias=$build_alias
adamc@1132 4838 test "x$ac_build_alias" = x &&
adamc@1132 4839 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
adamc@1132 4840 test "x$ac_build_alias" = x &&
adam@1315 4841 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
adamc@1132 4842 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
adam@1315 4843 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
adamc@1132 4844
adamc@1132 4845 fi
adamc@1132 4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
adamc@1132 4847 $as_echo "$ac_cv_build" >&6; }
adamc@1132 4848 case $ac_cv_build in
adamc@1132 4849 *-*-*) ;;
adam@1826 4850 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
adamc@1132 4851 esac
adamc@1132 4852 build=$ac_cv_build
adamc@1132 4853 ac_save_IFS=$IFS; IFS='-'
adamc@1132 4854 set x $ac_cv_build
adamc@1132 4855 shift
adamc@1132 4856 build_cpu=$1
adamc@1132 4857 build_vendor=$2
adamc@1132 4858 shift; shift
adamc@1132 4859 # Remember, the first character of IFS is used to create $*,
adamc@1132 4860 # except with old shells:
adamc@1132 4861 build_os=$*
adamc@1132 4862 IFS=$ac_save_IFS
adamc@1132 4863 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
adamc@1132 4864
adamc@1132 4865
adamc@1132 4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
adamc@1132 4867 $as_echo_n "checking host system type... " >&6; }
adam@1826 4868 if test "${ac_cv_host+set}" = set; then :
adamc@1132 4869 $as_echo_n "(cached) " >&6
adamc@1132 4870 else
adamc@1132 4871 if test "x$host_alias" = x; then
adamc@1132 4872 ac_cv_host=$ac_cv_build
adamc@1132 4873 else
adamc@1132 4874 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
adam@1315 4875 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
adamc@1132 4876 fi
adamc@1132 4877
adamc@1132 4878 fi
adamc@1132 4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
adamc@1132 4880 $as_echo "$ac_cv_host" >&6; }
adamc@1132 4881 case $ac_cv_host in
adamc@1132 4882 *-*-*) ;;
adam@1826 4883 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
adamc@1132 4884 esac
adamc@1132 4885 host=$ac_cv_host
adamc@1132 4886 ac_save_IFS=$IFS; IFS='-'
adamc@1132 4887 set x $ac_cv_host
adamc@1132 4888 shift
adamc@1132 4889 host_cpu=$1
adamc@1132 4890 host_vendor=$2
adamc@1132 4891 shift; shift
adamc@1132 4892 # Remember, the first character of IFS is used to create $*,
adamc@1132 4893 # except with old shells:
adamc@1132 4894 host_os=$*
adamc@1132 4895 IFS=$ac_save_IFS
adamc@1132 4896 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
adamc@1132 4897
adamc@1132 4898
adamc@1132 4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
adamc@1132 4900 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
adam@1826 4901 if test "${ac_cv_path_SED+set}" = set; then :
adamc@1132 4902 $as_echo_n "(cached) " >&6
adamc@1132 4903 else
adamc@1132 4904 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
adamc@1132 4905 for ac_i in 1 2 3 4 5 6 7; do
adamc@1132 4906 ac_script="$ac_script$as_nl$ac_script"
adamc@1132 4907 done
adamc@1132 4908 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
adamc@1132 4909 { ac_script=; unset ac_script;}
adamc@1132 4910 if test -z "$SED"; then
adamc@1132 4911 ac_path_SED_found=false
adamc@1132 4912 # Loop through the user's path and test for each of PROGNAME-LIST
adamc@1132 4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 4914 for as_dir in $PATH
adamc@1132 4915 do
adamc@1132 4916 IFS=$as_save_IFS
adamc@1132 4917 test -z "$as_dir" && as_dir=.
adamc@1132 4918 for ac_prog in sed gsed; do
adamc@1132 4919 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 4920 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
adam@1826 4921 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
adamc@1132 4922 # Check for GNU ac_path_SED and select it if it is found.
adamc@1132 4923 # Check for GNU $ac_path_SED
adamc@1132 4924 case `"$ac_path_SED" --version 2>&1` in
adamc@1132 4925 *GNU*)
adamc@1132 4926 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
adamc@1132 4927 *)
adamc@1132 4928 ac_count=0
adamc@1132 4929 $as_echo_n 0123456789 >"conftest.in"
adamc@1132 4930 while :
adamc@1132 4931 do
adamc@1132 4932 cat "conftest.in" "conftest.in" >"conftest.tmp"
adamc@1132 4933 mv "conftest.tmp" "conftest.in"
adamc@1132 4934 cp "conftest.in" "conftest.nl"
adamc@1132 4935 $as_echo '' >> "conftest.nl"
adamc@1132 4936 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
adamc@1132 4937 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
adamc@1132 4938 as_fn_arith $ac_count + 1 && ac_count=$as_val
adamc@1132 4939 if test $ac_count -gt ${ac_path_SED_max-0}; then
adamc@1132 4940 # Best one so far, save it but keep looking for a better one
adamc@1132 4941 ac_cv_path_SED="$ac_path_SED"
adamc@1132 4942 ac_path_SED_max=$ac_count
adamc@1132 4943 fi
adamc@1132 4944 # 10*(2^10) chars as input seems more than enough
adamc@1132 4945 test $ac_count -gt 10 && break
adamc@1132 4946 done
adamc@1132 4947 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
adamc@1132 4948 esac
adamc@1132 4949
adamc@1132 4950 $ac_path_SED_found && break 3
adamc@1132 4951 done
adamc@1132 4952 done
adamc@1132 4953 done
adamc@1132 4954 IFS=$as_save_IFS
adamc@1132 4955 if test -z "$ac_cv_path_SED"; then
adam@1315 4956 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
adamc@1132 4957 fi
adamc@1132 4958 else
adamc@1132 4959 ac_cv_path_SED=$SED
adamc@1132 4960 fi
adamc@1132 4961
adamc@1132 4962 fi
adamc@1132 4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
adamc@1132 4964 $as_echo "$ac_cv_path_SED" >&6; }
adamc@1132 4965 SED="$ac_cv_path_SED"
adamc@1132 4966 rm -f conftest.sed
adamc@1132 4967
adamc@1132 4968 test -z "$SED" && SED=sed
adamc@1132 4969 Xsed="$SED -e 1s/^X//"
adamc@1132 4970
adamc@1132 4971
adamc@1132 4972
adamc@1132 4973
adamc@1132 4974
adamc@1132 4975
adamc@1132 4976
adamc@1132 4977
adamc@1132 4978
adamc@1132 4979
adamc@1132 4980
adamc@1132 4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
adamc@1132 4982 $as_echo_n "checking for fgrep... " >&6; }
adam@1826 4983 if test "${ac_cv_path_FGREP+set}" = set; then :
adamc@1132 4984 $as_echo_n "(cached) " >&6
adamc@1132 4985 else
adamc@1132 4986 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
adamc@1132 4987 then ac_cv_path_FGREP="$GREP -F"
adamc@1132 4988 else
adamc@1132 4989 if test -z "$FGREP"; then
adamc@1132 4990 ac_path_FGREP_found=false
adamc@1132 4991 # Loop through the user's path and test for each of PROGNAME-LIST
adamc@1132 4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 4993 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
adamc@1132 4994 do
adamc@1132 4995 IFS=$as_save_IFS
adamc@1132 4996 test -z "$as_dir" && as_dir=.
adamc@1132 4997 for ac_prog in fgrep; do
adamc@1132 4998 for ac_exec_ext in '' $ac_executable_extensions; do
adamc@1132 4999 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
adam@1826 5000 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
adamc@1132 5001 # Check for GNU ac_path_FGREP and select it if it is found.
adamc@1132 5002 # Check for GNU $ac_path_FGREP
adamc@1132 5003 case `"$ac_path_FGREP" --version 2>&1` in
adamc@1132 5004 *GNU*)
adamc@1132 5005 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
adamc@1132 5006 *)
adamc@1132 5007 ac_count=0
adamc@1132 5008 $as_echo_n 0123456789 >"conftest.in"
adamc@1132 5009 while :
adamc@1132 5010 do
adamc@1132 5011 cat "conftest.in" "conftest.in" >"conftest.tmp"
adamc@1132 5012 mv "conftest.tmp" "conftest.in"
adamc@1132 5013 cp "conftest.in" "conftest.nl"
adamc@1132 5014 $as_echo 'FGREP' >> "conftest.nl"
adamc@1132 5015 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
adamc@1132 5016 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
adamc@1132 5017 as_fn_arith $ac_count + 1 && ac_count=$as_val
adamc@1132 5018 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
adamc@1132 5019 # Best one so far, save it but keep looking for a better one
adamc@1132 5020 ac_cv_path_FGREP="$ac_path_FGREP"
adamc@1132 5021 ac_path_FGREP_max=$ac_count
adamc@1132 5022 fi
adamc@1132 5023 # 10*(2^10) chars as input seems more than enough
adamc@1132 5024 test $ac_count -gt 10 && break
adamc@1132 5025 done
adamc@1132 5026 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
adamc@1132 5027 esac
adamc@1132 5028
adamc@1132 5029 $ac_path_FGREP_found && break 3
adamc@1132 5030 done
adamc@1132 5031 done
adamc@1132 5032 done
adamc@1132 5033 IFS=$as_save_IFS
adamc@1132 5034 if test -z "$ac_cv_path_FGREP"; then
adam@1315 5035 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
adamc@1132 5036 fi
adamc@1132 5037 else
adamc@1132 5038 ac_cv_path_FGREP=$FGREP
adamc@1132 5039 fi
adamc@1132 5040
adamc@1132 5041 fi
adamc@1132 5042 fi
adamc@1132 5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
adamc@1132 5044 $as_echo "$ac_cv_path_FGREP" >&6; }
adamc@1132 5045 FGREP="$ac_cv_path_FGREP"
adamc@1132 5046
adamc@1132 5047
adamc@1132 5048 test -z "$GREP" && GREP=grep
adamc@1132 5049
adamc@1132 5050
adamc@1132 5051
adamc@1132 5052
adamc@1132 5053
adamc@1132 5054
adamc@1132 5055
adamc@1132 5056
adamc@1132 5057
adamc@1132 5058
adamc@1132 5059
adamc@1132 5060
adamc@1132 5061
adamc@1132 5062
adamc@1132 5063
adamc@1132 5064
adamc@1132 5065
adamc@1132 5066
adamc@1132 5067
adamc@1132 5068 # Check whether --with-gnu-ld was given.
adamc@1132 5069 if test "${with_gnu_ld+set}" = set; then :
adamc@1132 5070 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
adamc@1132 5071 else
adamc@1132 5072 with_gnu_ld=no
adamc@1132 5073 fi
adamc@1132 5074
adamc@1132 5075 ac_prog=ld
adamc@1132 5076 if test "$GCC" = yes; then
adamc@1132 5077 # Check if gcc -print-prog-name=ld gives a path.
adamc@1132 5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
adamc@1132 5079 $as_echo_n "checking for ld used by $CC... " >&6; }
adamc@1132 5080 case $host in
adamc@1132 5081 *-*-mingw*)
adamc@1132 5082 # gcc leaves a trailing carriage return which upsets mingw
adamc@1132 5083 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
adamc@1132 5084 *)
adamc@1132 5085 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
adamc@1132 5086 esac
adamc@1132 5087 case $ac_prog in
adamc@1132 5088 # Accept absolute paths.
adamc@1132 5089 [\\/]* | ?:[\\/]*)
adamc@1132 5090 re_direlt='/[^/][^/]*/\.\./'
adamc@1132 5091 # Canonicalize the pathname of ld
adamc@1132 5092 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
adamc@1132 5093 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
adamc@1132 5094 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
adamc@1132 5095 done
adamc@1132 5096 test -z "$LD" && LD="$ac_prog"
adamc@1132 5097 ;;
adamc@1132 5098 "")
adamc@1132 5099 # If it fails, then pretend we aren't using GCC.
adamc@1132 5100 ac_prog=ld
adamc@1132 5101 ;;
adamc@1132 5102 *)
adamc@1132 5103 # If it is relative, then search for the first ld in PATH.
adamc@1132 5104 with_gnu_ld=unknown
adamc@1132 5105 ;;
adamc@1132 5106 esac
adamc@1132 5107 elif test "$with_gnu_ld" = yes; then
adamc@1132 5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
adamc@1132 5109 $as_echo_n "checking for GNU ld... " >&6; }
adamc@1132 5110 else
adamc@1132 5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
adamc@1132 5112 $as_echo_n "checking for non-GNU ld... " >&6; }
adamc@1132 5113 fi
adam@1826 5114 if test "${lt_cv_path_LD+set}" = set; then :
adamc@1132 5115 $as_echo_n "(cached) " >&6
adamc@1132 5116 else
adamc@1132 5117 if test -z "$LD"; then
adamc@1132 5118 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
adamc@1132 5119 for ac_dir in $PATH; do
adamc@1132 5120 IFS="$lt_save_ifs"
adamc@1132 5121 test -z "$ac_dir" && ac_dir=.
adamc@1132 5122 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
adamc@1132 5123 lt_cv_path_LD="$ac_dir/$ac_prog"
adamc@1132 5124 # Check to see if the program is GNU ld. I'd rather use --version,
adamc@1132 5125 # but apparently some variants of GNU ld only accept -v.
adamc@1132 5126 # Break only if it was the GNU/non-GNU ld that we prefer.
adamc@1132 5127 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
adamc@1132 5128 *GNU* | *'with BFD'*)
adamc@1132 5129 test "$with_gnu_ld" != no && break
adamc@1132 5130 ;;
adamc@1132 5131 *)
adamc@1132 5132 test "$with_gnu_ld" != yes && break
adamc@1132 5133 ;;
adamc@1132 5134 esac
adamc@1132 5135 fi
adamc@1132 5136 done
adamc@1132 5137 IFS="$lt_save_ifs"
adamc@1132 5138 else
adamc@1132 5139 lt_cv_path_LD="$LD" # Let the user override the test with a path.
adamc@1132 5140 fi
adamc@1132 5141 fi
adamc@1132 5142
adamc@1132 5143 LD="$lt_cv_path_LD"
adamc@1132 5144 if test -n "$LD"; then
adamc@1132 5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
adamc@1132 5146 $as_echo "$LD" >&6; }
adamc@1132 5147 else
adamc@1132 5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 5149 $as_echo "no" >&6; }
adamc@1132 5150 fi
adam@1315 5151 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
adamc@1132 5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
adamc@1132 5153 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
adam@1826 5154 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
adamc@1132 5155 $as_echo_n "(cached) " >&6
adamc@1132 5156 else
adamc@1132 5157 # I'd rather use --version here, but apparently some GNU lds only accept -v.
adamc@1132 5158 case `$LD -v 2>&1 </dev/null` in
adamc@1132 5159 *GNU* | *'with BFD'*)
adamc@1132 5160 lt_cv_prog_gnu_ld=yes
adamc@1132 5161 ;;
adamc@1132 5162 *)
adamc@1132 5163 lt_cv_prog_gnu_ld=no
adamc@1132 5164 ;;
adamc@1132 5165 esac
adamc@1132 5166 fi
adamc@1132 5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
adamc@1132 5168 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
adamc@1132 5169 with_gnu_ld=$lt_cv_prog_gnu_ld
adamc@1132 5170
adamc@1132 5171
adamc@1132 5172
adamc@1132 5173
adamc@1132 5174
adamc@1132 5175
adamc@1132 5176
adamc@1132 5177
adamc@1132 5178
adamc@1132 5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
adamc@1132 5180 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
adam@1826 5181 if test "${lt_cv_path_NM+set}" = set; then :
adamc@1132 5182 $as_echo_n "(cached) " >&6
adamc@1132 5183 else
adamc@1132 5184 if test -n "$NM"; then
adamc@1132 5185 # Let the user override the test.
adamc@1132 5186 lt_cv_path_NM="$NM"
adamc@1132 5187 else
adamc@1132 5188 lt_nm_to_check="${ac_tool_prefix}nm"
adamc@1132 5189 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
adamc@1132 5190 lt_nm_to_check="$lt_nm_to_check nm"
adamc@1132 5191 fi
adamc@1132 5192 for lt_tmp_nm in $lt_nm_to_check; do
adamc@1132 5193 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
adamc@1132 5194 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
adamc@1132 5195 IFS="$lt_save_ifs"
adamc@1132 5196 test -z "$ac_dir" && ac_dir=.
adamc@1132 5197 tmp_nm="$ac_dir/$lt_tmp_nm"
adamc@1132 5198 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
adamc@1132 5199 # Check to see if the nm accepts a BSD-compat flag.
adamc@1132 5200 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
adamc@1132 5201 # nm: unknown option "B" ignored
adamc@1132 5202 # Tru64's nm complains that /dev/null is an invalid object file
adamc@1132 5203 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
adamc@1132 5204 */dev/null* | *'Invalid file or object type'*)
adamc@1132 5205 lt_cv_path_NM="$tmp_nm -B"
adamc@1132 5206 break
adamc@1132 5207 ;;
adamc@1132 5208 *)
adamc@1132 5209 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
adamc@1132 5210 */dev/null*)
adamc@1132 5211 lt_cv_path_NM="$tmp_nm -p"
adamc@1132 5212 break
adamc@1132 5213 ;;
adamc@1132 5214 *)
adamc@1132 5215 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
adamc@1132 5216 continue # so that we can try to find one that supports BSD flags
adamc@1132 5217 ;;
adamc@1132 5218 esac
adamc@1132 5219 ;;
adamc@1132 5220 esac
adamc@1132 5221 fi
adamc@1132 5222 done
adamc@1132 5223 IFS="$lt_save_ifs"
adamc@1132 5224 done
adamc@1132 5225 : ${lt_cv_path_NM=no}
adamc@1132 5226 fi
adamc@1132 5227 fi
adamc@1132 5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
adamc@1132 5229 $as_echo "$lt_cv_path_NM" >&6; }
adamc@1132 5230 if test "$lt_cv_path_NM" != "no"; then
adamc@1132 5231 NM="$lt_cv_path_NM"
adamc@1132 5232 else
adamc@1132 5233 # Didn't find any BSD compatible name lister, look for dumpbin.
adam@1826 5234 if test -n "$ac_tool_prefix"; then
adam@1826 5235 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
adamc@1132 5236 do
adamc@1132 5237 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
adamc@1132 5238 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
adamc@1132 5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 5240 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 5241 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
adamc@1132 5242 $as_echo_n "(cached) " >&6
adamc@1132 5243 else
adamc@1132 5244 if test -n "$DUMPBIN"; then
adamc@1132 5245 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
adamc@1132 5246 else
adamc@1132 5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 5248 for as_dir in $PATH
adamc@1132 5249 do
adamc@1132 5250 IFS=$as_save_IFS
adamc@1132 5251 test -z "$as_dir" && as_dir=.
adamc@1132 5252 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 5253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 5254 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
adamc@1132 5255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 5256 break 2
adamc@1132 5257 fi
adamc@1132 5258 done
adamc@1132 5259 done
adamc@1132 5260 IFS=$as_save_IFS
adamc@1132 5261
adamc@1132 5262 fi
adamc@1132 5263 fi
adamc@1132 5264 DUMPBIN=$ac_cv_prog_DUMPBIN
adamc@1132 5265 if test -n "$DUMPBIN"; then
adamc@1132 5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
adamc@1132 5267 $as_echo "$DUMPBIN" >&6; }
adamc@1132 5268 else
adamc@1132 5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 5270 $as_echo "no" >&6; }
adamc@1132 5271 fi
adamc@1132 5272
adamc@1132 5273
adamc@1132 5274 test -n "$DUMPBIN" && break
adamc@1132 5275 done
adamc@1132 5276 fi
adamc@1132 5277 if test -z "$DUMPBIN"; then
adamc@1132 5278 ac_ct_DUMPBIN=$DUMPBIN
adam@1826 5279 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
adamc@1132 5280 do
adamc@1132 5281 # Extract the first word of "$ac_prog", so it can be a program name with args.
adamc@1132 5282 set dummy $ac_prog; ac_word=$2
adamc@1132 5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 5284 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 5285 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
adamc@1132 5286 $as_echo_n "(cached) " >&6
adamc@1132 5287 else
adamc@1132 5288 if test -n "$ac_ct_DUMPBIN"; then
adamc@1132 5289 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
adamc@1132 5290 else
adamc@1132 5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 5292 for as_dir in $PATH
adamc@1132 5293 do
adamc@1132 5294 IFS=$as_save_IFS
adamc@1132 5295 test -z "$as_dir" && as_dir=.
adamc@1132 5296 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 5297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 5298 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
adamc@1132 5299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 5300 break 2
adamc@1132 5301 fi
adamc@1132 5302 done
adamc@1132 5303 done
adamc@1132 5304 IFS=$as_save_IFS
adamc@1132 5305
adamc@1132 5306 fi
adamc@1132 5307 fi
adamc@1132 5308 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
adamc@1132 5309 if test -n "$ac_ct_DUMPBIN"; then
adamc@1132 5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
adamc@1132 5311 $as_echo "$ac_ct_DUMPBIN" >&6; }
adamc@1132 5312 else
adamc@1132 5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 5314 $as_echo "no" >&6; }
adamc@1132 5315 fi
adamc@1132 5316
adamc@1132 5317
adamc@1132 5318 test -n "$ac_ct_DUMPBIN" && break
adamc@1132 5319 done
adamc@1132 5320
adamc@1132 5321 if test "x$ac_ct_DUMPBIN" = x; then
adamc@1132 5322 DUMPBIN=":"
adamc@1132 5323 else
adamc@1132 5324 case $cross_compiling:$ac_tool_warned in
adamc@1132 5325 yes:)
adamc@1132 5326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 5327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 5328 ac_tool_warned=yes ;;
adamc@1132 5329 esac
adamc@1132 5330 DUMPBIN=$ac_ct_DUMPBIN
adamc@1132 5331 fi
adamc@1132 5332 fi
adamc@1132 5333
adamc@1132 5334
adamc@1132 5335 if test "$DUMPBIN" != ":"; then
adamc@1132 5336 NM="$DUMPBIN"
adamc@1132 5337 fi
adamc@1132 5338 fi
adamc@1132 5339 test -z "$NM" && NM=nm
adamc@1132 5340
adamc@1132 5341
adamc@1132 5342
adamc@1132 5343
adamc@1132 5344
adamc@1132 5345
adamc@1132 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
adamc@1132 5347 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
adam@1826 5348 if test "${lt_cv_nm_interface+set}" = set; then :
adamc@1132 5349 $as_echo_n "(cached) " >&6
adamc@1132 5350 else
adamc@1132 5351 lt_cv_nm_interface="BSD nm"
adamc@1132 5352 echo "int some_variable = 0;" > conftest.$ac_ext
adam@1838 5353 (eval echo "\"\$as_me:5353: $ac_compile\"" >&5)
adamc@1132 5354 (eval "$ac_compile" 2>conftest.err)
adamc@1132 5355 cat conftest.err >&5
adam@1838 5356 (eval echo "\"\$as_me:5356: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
adamc@1132 5357 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
adamc@1132 5358 cat conftest.err >&5
adam@1838 5359 (eval echo "\"\$as_me:5359: output\"" >&5)
adamc@1132 5360 cat conftest.out >&5
adamc@1132 5361 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
adamc@1132 5362 lt_cv_nm_interface="MS dumpbin"
adamc@1132 5363 fi
adamc@1132 5364 rm -f conftest*
adamc@1132 5365 fi
adamc@1132 5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
adamc@1132 5367 $as_echo "$lt_cv_nm_interface" >&6; }
adamc@1132 5368
adamc@1132 5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
adamc@1132 5370 $as_echo_n "checking whether ln -s works... " >&6; }
adamc@1132 5371 LN_S=$as_ln_s
adamc@1132 5372 if test "$LN_S" = "ln -s"; then
adamc@1132 5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
adamc@1132 5374 $as_echo "yes" >&6; }
adamc@1132 5375 else
adamc@1132 5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
adamc@1132 5377 $as_echo "no, using $LN_S" >&6; }
adamc@1132 5378 fi
adamc@1132 5379
adamc@1132 5380 # find the maximum length of command line arguments
adamc@1132 5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
adamc@1132 5382 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
adam@1826 5383 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
adamc@1132 5384 $as_echo_n "(cached) " >&6
adamc@1132 5385 else
adamc@1132 5386 i=0
adamc@1132 5387 teststring="ABCD"
adamc@1132 5388
adamc@1132 5389 case $build_os in
adamc@1132 5390 msdosdjgpp*)
adamc@1132 5391 # On DJGPP, this test can blow up pretty badly due to problems in libc
adamc@1132 5392 # (any single argument exceeding 2000 bytes causes a buffer overrun
adamc@1132 5393 # during glob expansion). Even if it were fixed, the result of this
adamc@1132 5394 # check would be larger than it should be.
adamc@1132 5395 lt_cv_sys_max_cmd_len=12288; # 12K is about right
adamc@1132 5396 ;;
adamc@1132 5397
adamc@1132 5398 gnu*)
adamc@1132 5399 # Under GNU Hurd, this test is not required because there is
adamc@1132 5400 # no limit to the length of command line arguments.
adamc@1132 5401 # Libtool will interpret -1 as no limit whatsoever
adamc@1132 5402 lt_cv_sys_max_cmd_len=-1;
adamc@1132 5403 ;;
adamc@1132 5404
adamc@1132 5405 cygwin* | mingw* | cegcc*)
adamc@1132 5406 # On Win9x/ME, this test blows up -- it succeeds, but takes
adamc@1132 5407 # about 5 minutes as the teststring grows exponentially.
adamc@1132 5408 # Worse, since 9x/ME are not pre-emptively multitasking,
adamc@1132 5409 # you end up with a "frozen" computer, even though with patience
adamc@1132 5410 # the test eventually succeeds (with a max line length of 256k).
adamc@1132 5411 # Instead, let's just punt: use the minimum linelength reported by
adamc@1132 5412 # all of the supported platforms: 8192 (on NT/2K/XP).
adamc@1132 5413 lt_cv_sys_max_cmd_len=8192;
adamc@1132 5414 ;;
adamc@1132 5415
adamc@1132 5416 amigaos*)
adamc@1132 5417 # On AmigaOS with pdksh, this test takes hours, literally.
adamc@1132 5418 # So we just punt and use a minimum line length of 8192.
adamc@1132 5419 lt_cv_sys_max_cmd_len=8192;
adamc@1132 5420 ;;
adamc@1132 5421
adamc@1132 5422 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
adamc@1132 5423 # This has been around since 386BSD, at least. Likely further.
adamc@1132 5424 if test -x /sbin/sysctl; then
adamc@1132 5425 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
adamc@1132 5426 elif test -x /usr/sbin/sysctl; then
adamc@1132 5427 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
adamc@1132 5428 else
adamc@1132 5429 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
adamc@1132 5430 fi
adamc@1132 5431 # And add a safety zone
adamc@1132 5432 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
adamc@1132 5433 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
adamc@1132 5434 ;;
adamc@1132 5435
adamc@1132 5436 interix*)
adamc@1132 5437 # We know the value 262144 and hardcode it with a safety zone (like BSD)
adamc@1132 5438 lt_cv_sys_max_cmd_len=196608
adamc@1132 5439 ;;
adamc@1132 5440
adamc@1132 5441 osf*)
adamc@1132 5442 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
adamc@1132 5443 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
adamc@1132 5444 # nice to cause kernel panics so lets avoid the loop below.
adamc@1132 5445 # First set a reasonable default.
adamc@1132 5446 lt_cv_sys_max_cmd_len=16384
adamc@1132 5447 #
adamc@1132 5448 if test -x /sbin/sysconfig; then
adamc@1132 5449 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
adamc@1132 5450 *1*) lt_cv_sys_max_cmd_len=-1 ;;
adamc@1132 5451 esac
adamc@1132 5452 fi
adamc@1132 5453 ;;
adamc@1132 5454 sco3.2v5*)
adamc@1132 5455 lt_cv_sys_max_cmd_len=102400
adamc@1132 5456 ;;
adamc@1132 5457 sysv5* | sco5v6* | sysv4.2uw2*)
adamc@1132 5458 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
adamc@1132 5459 if test -n "$kargmax"; then
adamc@1132 5460 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
adamc@1132 5461 else
adamc@1132 5462 lt_cv_sys_max_cmd_len=32768
adamc@1132 5463 fi
adamc@1132 5464 ;;
adamc@1132 5465 *)
adamc@1132 5466 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
adamc@1132 5467 if test -n "$lt_cv_sys_max_cmd_len"; then
adamc@1132 5468 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
adamc@1132 5469 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
adamc@1132 5470 else
adamc@1132 5471 # Make teststring a little bigger before we do anything with it.
adamc@1132 5472 # a 1K string should be a reasonable start.
adamc@1132 5473 for i in 1 2 3 4 5 6 7 8 ; do
adamc@1132 5474 teststring=$teststring$teststring
adamc@1132 5475 done
adamc@1132 5476 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
adamc@1132 5477 # If test is not a shell built-in, we'll probably end up computing a
adamc@1132 5478 # maximum length that is only half of the actual maximum length, but
adamc@1132 5479 # we can't tell.
adam@1826 5480 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
adam@1826 5481 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
adamc@1132 5482 test $i != 17 # 1/2 MB should be enough
adamc@1132 5483 do
adamc@1132 5484 i=`expr $i + 1`
adamc@1132 5485 teststring=$teststring$teststring
adamc@1132 5486 done
adamc@1132 5487 # Only check the string length outside the loop.
adamc@1132 5488 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
adamc@1132 5489 teststring=
adamc@1132 5490 # Add a significant safety factor because C++ compilers can tack on
adamc@1132 5491 # massive amounts of additional arguments before passing them to the
adamc@1132 5492 # linker. It appears as though 1/2 is a usable value.
adamc@1132 5493 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
adamc@1132 5494 fi
adamc@1132 5495 ;;
adamc@1132 5496 esac
adamc@1132 5497
adamc@1132 5498 fi
adamc@1132 5499
adamc@1132 5500 if test -n $lt_cv_sys_max_cmd_len ; then
adamc@1132 5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
adamc@1132 5502 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
adamc@1132 5503 else
adamc@1132 5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
adamc@1132 5505 $as_echo "none" >&6; }
adamc@1132 5506 fi
adamc@1132 5507 max_cmd_len=$lt_cv_sys_max_cmd_len
adamc@1132 5508
adamc@1132 5509
adamc@1132 5510
adamc@1132 5511
adamc@1132 5512
adamc@1132 5513
adamc@1132 5514 : ${CP="cp -f"}
adamc@1132 5515 : ${MV="mv -f"}
adamc@1132 5516 : ${RM="rm -f"}
adamc@1132 5517
adamc@1132 5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
adamc@1132 5519 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
adamc@1132 5520 # Try some XSI features
adamc@1132 5521 xsi_shell=no
adamc@1132 5522 ( _lt_dummy="a/b/c"
adam@1826 5523 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
adam@1826 5524 = c,a/b,, \
adamc@1132 5525 && eval 'test $(( 1 + 1 )) -eq 2 \
adamc@1132 5526 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
adamc@1132 5527 && xsi_shell=yes
adamc@1132 5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
adamc@1132 5529 $as_echo "$xsi_shell" >&6; }
adamc@1132 5530
adamc@1132 5531
adamc@1132 5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
adamc@1132 5533 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
adamc@1132 5534 lt_shell_append=no
adamc@1132 5535 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
adamc@1132 5536 >/dev/null 2>&1 \
adamc@1132 5537 && lt_shell_append=yes
adamc@1132 5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
adamc@1132 5539 $as_echo "$lt_shell_append" >&6; }
adamc@1132 5540
adamc@1132 5541
adamc@1132 5542 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
adamc@1132 5543 lt_unset=unset
adamc@1132 5544 else
adamc@1132 5545 lt_unset=false
adamc@1132 5546 fi
adamc@1132 5547
adamc@1132 5548
adamc@1132 5549
adamc@1132 5550
adamc@1132 5551
adamc@1132 5552 # test EBCDIC or ASCII
adamc@1132 5553 case `echo X|tr X '\101'` in
adamc@1132 5554 A) # ASCII based system
adamc@1132 5555 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
adamc@1132 5556 lt_SP2NL='tr \040 \012'
adamc@1132 5557 lt_NL2SP='tr \015\012 \040\040'
adamc@1132 5558 ;;
adamc@1132 5559 *) # EBCDIC based system
adamc@1132 5560 lt_SP2NL='tr \100 \n'
adamc@1132 5561 lt_NL2SP='tr \r\n \100\100'
adamc@1132 5562 ;;
adamc@1132 5563 esac
adamc@1132 5564
adamc@1132 5565
adamc@1132 5566
adamc@1132 5567
adamc@1132 5568
adamc@1132 5569
adamc@1132 5570
adamc@1132 5571
adamc@1132 5572
adamc@1132 5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
adamc@1132 5574 $as_echo_n "checking for $LD option to reload object files... " >&6; }
adam@1826 5575 if test "${lt_cv_ld_reload_flag+set}" = set; then :
adamc@1132 5576 $as_echo_n "(cached) " >&6
adamc@1132 5577 else
adamc@1132 5578 lt_cv_ld_reload_flag='-r'
adamc@1132 5579 fi
adamc@1132 5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
adamc@1132 5581 $as_echo "$lt_cv_ld_reload_flag" >&6; }
adamc@1132 5582 reload_flag=$lt_cv_ld_reload_flag
adamc@1132 5583 case $reload_flag in
adamc@1132 5584 "" | " "*) ;;
adamc@1132 5585 *) reload_flag=" $reload_flag" ;;
adamc@1132 5586 esac
adamc@1132 5587 reload_cmds='$LD$reload_flag -o $output$reload_objs'
adamc@1132 5588 case $host_os in
adamc@1132 5589 darwin*)
adamc@1132 5590 if test "$GCC" = yes; then
adamc@1132 5591 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
adamc@1132 5592 else
adamc@1132 5593 reload_cmds='$LD$reload_flag -o $output$reload_objs'
adamc@1132 5594 fi
adamc@1132 5595 ;;
adamc@1132 5596 esac
adamc@1132 5597
adamc@1132 5598
adamc@1132 5599
adamc@1132 5600
adamc@1132 5601
adamc@1132 5602
adamc@1132 5603
adamc@1132 5604
adamc@1132 5605
adamc@1132 5606 if test -n "$ac_tool_prefix"; then
adamc@1132 5607 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
adamc@1132 5608 set dummy ${ac_tool_prefix}objdump; ac_word=$2
adamc@1132 5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 5610 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 5611 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
adamc@1132 5612 $as_echo_n "(cached) " >&6
adamc@1132 5613 else
adamc@1132 5614 if test -n "$OBJDUMP"; then
adamc@1132 5615 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
adamc@1132 5616 else
adamc@1132 5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 5618 for as_dir in $PATH
adamc@1132 5619 do
adamc@1132 5620 IFS=$as_save_IFS
adamc@1132 5621 test -z "$as_dir" && as_dir=.
adamc@1132 5622 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 5623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 5624 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
adamc@1132 5625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 5626 break 2
adamc@1132 5627 fi
adamc@1132 5628 done
adamc@1132 5629 done
adamc@1132 5630 IFS=$as_save_IFS
adamc@1132 5631
adamc@1132 5632 fi
adamc@1132 5633 fi
adamc@1132 5634 OBJDUMP=$ac_cv_prog_OBJDUMP
adamc@1132 5635 if test -n "$OBJDUMP"; then
adamc@1132 5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
adamc@1132 5637 $as_echo "$OBJDUMP" >&6; }
adamc@1132 5638 else
adamc@1132 5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 5640 $as_echo "no" >&6; }
adamc@1132 5641 fi
adamc@1132 5642
adamc@1132 5643
adamc@1132 5644 fi
adamc@1132 5645 if test -z "$ac_cv_prog_OBJDUMP"; then
adamc@1132 5646 ac_ct_OBJDUMP=$OBJDUMP
adamc@1132 5647 # Extract the first word of "objdump", so it can be a program name with args.
adamc@1132 5648 set dummy objdump; ac_word=$2
adamc@1132 5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 5650 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 5651 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
adamc@1132 5652 $as_echo_n "(cached) " >&6
adamc@1132 5653 else
adamc@1132 5654 if test -n "$ac_ct_OBJDUMP"; then
adamc@1132 5655 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
adamc@1132 5656 else
adamc@1132 5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 5658 for as_dir in $PATH
adamc@1132 5659 do
adamc@1132 5660 IFS=$as_save_IFS
adamc@1132 5661 test -z "$as_dir" && as_dir=.
adamc@1132 5662 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 5663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 5664 ac_cv_prog_ac_ct_OBJDUMP="objdump"
adamc@1132 5665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 5666 break 2
adamc@1132 5667 fi
adamc@1132 5668 done
adamc@1132 5669 done
adamc@1132 5670 IFS=$as_save_IFS
adamc@1132 5671
adamc@1132 5672 fi
adamc@1132 5673 fi
adamc@1132 5674 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
adamc@1132 5675 if test -n "$ac_ct_OBJDUMP"; then
adamc@1132 5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
adamc@1132 5677 $as_echo "$ac_ct_OBJDUMP" >&6; }
adamc@1132 5678 else
adamc@1132 5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 5680 $as_echo "no" >&6; }
adamc@1132 5681 fi
adamc@1132 5682
adamc@1132 5683 if test "x$ac_ct_OBJDUMP" = x; then
adamc@1132 5684 OBJDUMP="false"
adamc@1132 5685 else
adamc@1132 5686 case $cross_compiling:$ac_tool_warned in
adamc@1132 5687 yes:)
adamc@1132 5688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 5689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 5690 ac_tool_warned=yes ;;
adamc@1132 5691 esac
adamc@1132 5692 OBJDUMP=$ac_ct_OBJDUMP
adamc@1132 5693 fi
adamc@1132 5694 else
adamc@1132 5695 OBJDUMP="$ac_cv_prog_OBJDUMP"
adamc@1132 5696 fi
adamc@1132 5697
adamc@1132 5698 test -z "$OBJDUMP" && OBJDUMP=objdump
adamc@1132 5699
adamc@1132 5700
adamc@1132 5701
adamc@1132 5702
adamc@1132 5703
adamc@1132 5704
adamc@1132 5705
adamc@1132 5706
adamc@1132 5707
adamc@1132 5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
adamc@1132 5709 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
adam@1826 5710 if test "${lt_cv_deplibs_check_method+set}" = set; then :
adamc@1132 5711 $as_echo_n "(cached) " >&6
adamc@1132 5712 else
adamc@1132 5713 lt_cv_file_magic_cmd='$MAGIC_CMD'
adamc@1132 5714 lt_cv_file_magic_test_file=
adamc@1132 5715 lt_cv_deplibs_check_method='unknown'
adamc@1132 5716 # Need to set the preceding variable on all platforms that support
adamc@1132 5717 # interlibrary dependencies.
adamc@1132 5718 # 'none' -- dependencies not supported.
adamc@1132 5719 # `unknown' -- same as none, but documents that we really don't know.
adamc@1132 5720 # 'pass_all' -- all dependencies passed with no checks.
adamc@1132 5721 # 'test_compile' -- check by making test program.
adamc@1132 5722 # 'file_magic [[regex]]' -- check by looking for files in library path
adamc@1132 5723 # which responds to the $file_magic_cmd with a given extended regex.
adamc@1132 5724 # If you have `file' or equivalent on your system and you're not sure
adamc@1132 5725 # whether `pass_all' will *always* work, you probably want this one.
adamc@1132 5726
adamc@1132 5727 case $host_os in
adamc@1132 5728 aix[4-9]*)
adamc@1132 5729 lt_cv_deplibs_check_method=pass_all
adamc@1132 5730 ;;
adamc@1132 5731
adamc@1132 5732 beos*)
adamc@1132 5733 lt_cv_deplibs_check_method=pass_all
adamc@1132 5734 ;;
adamc@1132 5735
adamc@1132 5736 bsdi[45]*)
adamc@1132 5737 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
adamc@1132 5738 lt_cv_file_magic_cmd='/usr/bin/file -L'
adamc@1132 5739 lt_cv_file_magic_test_file=/shlib/libc.so
adamc@1132 5740 ;;
adamc@1132 5741
adamc@1132 5742 cygwin*)
adamc@1132 5743 # func_win32_libid is a shell function defined in ltmain.sh
adamc@1132 5744 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
adamc@1132 5745 lt_cv_file_magic_cmd='func_win32_libid'
adamc@1132 5746 ;;
adamc@1132 5747
adamc@1132 5748 mingw* | pw32*)
adamc@1132 5749 # Base MSYS/MinGW do not provide the 'file' command needed by
adamc@1132 5750 # func_win32_libid shell function, so use a weaker test based on 'objdump',
adamc@1132 5751 # unless we find 'file', for example because we are cross-compiling.
adam@1826 5752 if ( file / ) >/dev/null 2>&1; then
adamc@1132 5753 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
adamc@1132 5754 lt_cv_file_magic_cmd='func_win32_libid'
adamc@1132 5755 else
adam@1826 5756 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
adamc@1132 5757 lt_cv_file_magic_cmd='$OBJDUMP -f'
adamc@1132 5758 fi
adamc@1132 5759 ;;
adamc@1132 5760
adam@1826 5761 cegcc)
adamc@1132 5762 # use the weaker test based on 'objdump'. See mingw*.
adamc@1132 5763 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
adamc@1132 5764 lt_cv_file_magic_cmd='$OBJDUMP -f'
adamc@1132 5765 ;;
adamc@1132 5766
adamc@1132 5767 darwin* | rhapsody*)
adamc@1132 5768 lt_cv_deplibs_check_method=pass_all
adamc@1132 5769 ;;
adamc@1132 5770
adamc@1132 5771 freebsd* | dragonfly*)
adamc@1132 5772 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
adamc@1132 5773 case $host_cpu in
adamc@1132 5774 i*86 )
adamc@1132 5775 # Not sure whether the presence of OpenBSD here was a mistake.
adamc@1132 5776 # Let's accept both of them until this is cleared up.
adamc@1132 5777 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
adamc@1132 5778 lt_cv_file_magic_cmd=/usr/bin/file
adamc@1132 5779 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
adamc@1132 5780 ;;
adamc@1132 5781 esac
adamc@1132 5782 else
adamc@1132 5783 lt_cv_deplibs_check_method=pass_all
adamc@1132 5784 fi
adamc@1132 5785 ;;
adamc@1132 5786
adam@1826 5787 gnu*)
adam@1459 5788 lt_cv_deplibs_check_method=pass_all
adam@1459 5789 ;;
adam@1459 5790
adamc@1132 5791 hpux10.20* | hpux11*)
adamc@1132 5792 lt_cv_file_magic_cmd=/usr/bin/file
adamc@1132 5793 case $host_cpu in
adamc@1132 5794 ia64*)
adamc@1132 5795 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 5796 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
adamc@1132 5797 ;;
adamc@1132 5798 hppa*64*)
adam@1826 5799 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 5800 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
adamc@1132 5801 ;;
adamc@1132 5802 *)
adam@1826 5803 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
adamc@1132 5804 lt_cv_file_magic_test_file=/usr/lib/libc.sl
adamc@1132 5805 ;;
adamc@1132 5806 esac
adamc@1132 5807 ;;
adamc@1132 5808
adamc@1132 5809 interix[3-9]*)
adamc@1132 5810 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
adamc@1132 5811 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
adamc@1132 5812 ;;
adamc@1132 5813
adamc@1132 5814 irix5* | irix6* | nonstopux*)
adamc@1132 5815 case $LD in
adamc@1132 5816 *-32|*"-32 ") libmagic=32-bit;;
adamc@1132 5817 *-n32|*"-n32 ") libmagic=N32;;
adamc@1132 5818 *-64|*"-64 ") libmagic=64-bit;;
adamc@1132 5819 *) libmagic=never-match;;
adamc@1132 5820 esac
adamc@1132 5821 lt_cv_deplibs_check_method=pass_all
adamc@1132 5822 ;;
adamc@1132 5823
adam@1826 5824 # This must be Linux ELF.
adam@1826 5825 linux* | k*bsd*-gnu | kopensolaris*-gnu)
adamc@1132 5826 lt_cv_deplibs_check_method=pass_all
adamc@1132 5827 ;;
adamc@1132 5828
adamc@1132 5829 netbsd* | netbsdelf*-gnu)
adamc@1132 5830 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
adamc@1132 5831 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
adamc@1132 5832 else
adamc@1132 5833 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
adamc@1132 5834 fi
adamc@1132 5835 ;;
adamc@1132 5836
adamc@1132 5837 newos6*)
adamc@1132 5838 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
adamc@1132 5839 lt_cv_file_magic_cmd=/usr/bin/file
adamc@1132 5840 lt_cv_file_magic_test_file=/usr/lib/libnls.so
adamc@1132 5841 ;;
adamc@1132 5842
adamc@1132 5843 *nto* | *qnx*)
adamc@1132 5844 lt_cv_deplibs_check_method=pass_all
adamc@1132 5845 ;;
adamc@1132 5846
adamc@1132 5847 openbsd*)
adamc@1132 5848 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
adamc@1132 5849 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
adamc@1132 5850 else
adamc@1132 5851 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
adamc@1132 5852 fi
adamc@1132 5853 ;;
adamc@1132 5854
adamc@1132 5855 osf3* | osf4* | osf5*)
adamc@1132 5856 lt_cv_deplibs_check_method=pass_all
adamc@1132 5857 ;;
adamc@1132 5858
adamc@1132 5859 rdos*)
adamc@1132 5860 lt_cv_deplibs_check_method=pass_all
adamc@1132 5861 ;;
adamc@1132 5862
adamc@1132 5863 solaris*)
adamc@1132 5864 lt_cv_deplibs_check_method=pass_all
adamc@1132 5865 ;;
adamc@1132 5866
adamc@1132 5867 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
adamc@1132 5868 lt_cv_deplibs_check_method=pass_all
adamc@1132 5869 ;;
adamc@1132 5870
adamc@1132 5871 sysv4 | sysv4.3*)
adamc@1132 5872 case $host_vendor in
adamc@1132 5873 motorola)
adamc@1132 5874 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 5875 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
adamc@1132 5876 ;;
adamc@1132 5877 ncr)
adamc@1132 5878 lt_cv_deplibs_check_method=pass_all
adamc@1132 5879 ;;
adamc@1132 5880 sequent)
adamc@1132 5881 lt_cv_file_magic_cmd='/bin/file'
adamc@1132 5882 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
adamc@1132 5883 ;;
adamc@1132 5884 sni)
adamc@1132 5885 lt_cv_file_magic_cmd='/bin/file'
adamc@1132 5886 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
adamc@1132 5887 lt_cv_file_magic_test_file=/lib/libc.so
adamc@1132 5888 ;;
adamc@1132 5889 siemens)
adamc@1132 5890 lt_cv_deplibs_check_method=pass_all
adamc@1132 5891 ;;
adamc@1132 5892 pc)
adamc@1132 5893 lt_cv_deplibs_check_method=pass_all
adamc@1132 5894 ;;
adamc@1132 5895 esac
adamc@1132 5896 ;;
adamc@1132 5897
adamc@1132 5898 tpf*)
adamc@1132 5899 lt_cv_deplibs_check_method=pass_all
adamc@1132 5900 ;;
adamc@1132 5901 esac
adamc@1132 5902
adamc@1132 5903 fi
adamc@1132 5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
adamc@1132 5905 $as_echo "$lt_cv_deplibs_check_method" >&6; }
adamc@1132 5906 file_magic_cmd=$lt_cv_file_magic_cmd
adamc@1132 5907 deplibs_check_method=$lt_cv_deplibs_check_method
adamc@1132 5908 test -z "$deplibs_check_method" && deplibs_check_method=unknown
adamc@1132 5909
adamc@1132 5910
adamc@1132 5911
adamc@1132 5912
adamc@1132 5913
adamc@1132 5914
adamc@1132 5915
adamc@1132 5916
adamc@1132 5917
adamc@1132 5918
adamc@1132 5919
adamc@1132 5920
adamc@1132 5921 if test -n "$ac_tool_prefix"; then
adam@1826 5922 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
adam@1826 5923 set dummy ${ac_tool_prefix}ar; ac_word=$2
adamc@1132 5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 5925 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 5926 if test "${ac_cv_prog_AR+set}" = set; then :
adam@1826 5927 $as_echo_n "(cached) " >&6
adam@1826 5928 else
adam@1826 5929 if test -n "$AR"; then
adam@1826 5930 ac_cv_prog_AR="$AR" # Let the user override the test.
adamc@1132 5931 else
adamc@1132 5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 5933 for as_dir in $PATH
adamc@1132 5934 do
adamc@1132 5935 IFS=$as_save_IFS
adamc@1132 5936 test -z "$as_dir" && as_dir=.
adamc@1132 5937 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 5938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adam@1826 5939 ac_cv_prog_AR="${ac_tool_prefix}ar"
adam@1459 5940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adam@1459 5941 break 2
adam@1459 5942 fi
adam@1459 5943 done
adam@1459 5944 done
adam@1459 5945 IFS=$as_save_IFS
adam@1459 5946
adam@1459 5947 fi
adam@1459 5948 fi
adam@1826 5949 AR=$ac_cv_prog_AR
adam@1826 5950 if test -n "$AR"; then
adam@1826 5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
adam@1826 5952 $as_echo "$AR" >&6; }
adam@1459 5953 else
adam@1459 5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adam@1459 5955 $as_echo "no" >&6; }
adam@1459 5956 fi
adam@1459 5957
adam@1459 5958
adam@1459 5959 fi
adam@1826 5960 if test -z "$ac_cv_prog_AR"; then
adam@1826 5961 ac_ct_AR=$AR
adam@1826 5962 # Extract the first word of "ar", so it can be a program name with args.
adam@1826 5963 set dummy ar; ac_word=$2
adam@1459 5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adam@1459 5965 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 5966 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
adam@1826 5967 $as_echo_n "(cached) " >&6
adam@1826 5968 else
adam@1826 5969 if test -n "$ac_ct_AR"; then
adam@1826 5970 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
adam@1459 5971 else
adam@1459 5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adam@1459 5973 for as_dir in $PATH
adam@1459 5974 do
adam@1459 5975 IFS=$as_save_IFS
adam@1459 5976 test -z "$as_dir" && as_dir=.
adam@1459 5977 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 5978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adam@1826 5979 ac_cv_prog_ac_ct_AR="ar"
adamc@1132 5980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 5981 break 2
adamc@1132 5982 fi
adamc@1132 5983 done
adamc@1132 5984 done
adamc@1132 5985 IFS=$as_save_IFS
adamc@1132 5986
adamc@1132 5987 fi
adamc@1132 5988 fi
adamc@1132 5989 ac_ct_AR=$ac_cv_prog_ac_ct_AR
adamc@1132 5990 if test -n "$ac_ct_AR"; then
adamc@1132 5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
adamc@1132 5992 $as_echo "$ac_ct_AR" >&6; }
adamc@1132 5993 else
adamc@1132 5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 5995 $as_echo "no" >&6; }
adamc@1132 5996 fi
adamc@1132 5997
adamc@1132 5998 if test "x$ac_ct_AR" = x; then
adamc@1132 5999 AR="false"
adamc@1132 6000 else
adamc@1132 6001 case $cross_compiling:$ac_tool_warned in
adamc@1132 6002 yes:)
adamc@1132 6003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 6004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 6005 ac_tool_warned=yes ;;
adamc@1132 6006 esac
adamc@1132 6007 AR=$ac_ct_AR
adamc@1132 6008 fi
adam@1826 6009 else
adam@1826 6010 AR="$ac_cv_prog_AR"
adam@1826 6011 fi
adam@1826 6012
adam@1826 6013 test -z "$AR" && AR=ar
adam@1826 6014 test -z "$AR_FLAGS" && AR_FLAGS=cru
adam@1826 6015
adam@1826 6016
adam@1826 6017
adam@1826 6018
adamc@1132 6019
adamc@1132 6020
adamc@1132 6021
adamc@1132 6022
adamc@1132 6023
adamc@1132 6024
adamc@1132 6025
adamc@1132 6026 if test -n "$ac_tool_prefix"; then
adamc@1132 6027 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
adamc@1132 6028 set dummy ${ac_tool_prefix}strip; ac_word=$2
adamc@1132 6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 6030 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 6031 if test "${ac_cv_prog_STRIP+set}" = set; then :
adamc@1132 6032 $as_echo_n "(cached) " >&6
adamc@1132 6033 else
adamc@1132 6034 if test -n "$STRIP"; then
adamc@1132 6035 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
adamc@1132 6036 else
adamc@1132 6037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 6038 for as_dir in $PATH
adamc@1132 6039 do
adamc@1132 6040 IFS=$as_save_IFS
adamc@1132 6041 test -z "$as_dir" && as_dir=.
adamc@1132 6042 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 6043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 6044 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
adamc@1132 6045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 6046 break 2
adamc@1132 6047 fi
adamc@1132 6048 done
adamc@1132 6049 done
adamc@1132 6050 IFS=$as_save_IFS
adamc@1132 6051
adamc@1132 6052 fi
adamc@1132 6053 fi
adamc@1132 6054 STRIP=$ac_cv_prog_STRIP
adamc@1132 6055 if test -n "$STRIP"; then
adamc@1132 6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
adamc@1132 6057 $as_echo "$STRIP" >&6; }
adamc@1132 6058 else
adamc@1132 6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 6060 $as_echo "no" >&6; }
adamc@1132 6061 fi
adamc@1132 6062
adamc@1132 6063
adamc@1132 6064 fi
adamc@1132 6065 if test -z "$ac_cv_prog_STRIP"; then
adamc@1132 6066 ac_ct_STRIP=$STRIP
adamc@1132 6067 # Extract the first word of "strip", so it can be a program name with args.
adamc@1132 6068 set dummy strip; ac_word=$2
adamc@1132 6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 6070 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 6071 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
adamc@1132 6072 $as_echo_n "(cached) " >&6
adamc@1132 6073 else
adamc@1132 6074 if test -n "$ac_ct_STRIP"; then
adamc@1132 6075 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
adamc@1132 6076 else
adamc@1132 6077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 6078 for as_dir in $PATH
adamc@1132 6079 do
adamc@1132 6080 IFS=$as_save_IFS
adamc@1132 6081 test -z "$as_dir" && as_dir=.
adamc@1132 6082 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 6083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 6084 ac_cv_prog_ac_ct_STRIP="strip"
adamc@1132 6085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 6086 break 2
adamc@1132 6087 fi
adamc@1132 6088 done
adamc@1132 6089 done
adamc@1132 6090 IFS=$as_save_IFS
adamc@1132 6091
adamc@1132 6092 fi
adamc@1132 6093 fi
adamc@1132 6094 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
adamc@1132 6095 if test -n "$ac_ct_STRIP"; then
adamc@1132 6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
adamc@1132 6097 $as_echo "$ac_ct_STRIP" >&6; }
adamc@1132 6098 else
adamc@1132 6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 6100 $as_echo "no" >&6; }
adamc@1132 6101 fi
adamc@1132 6102
adamc@1132 6103 if test "x$ac_ct_STRIP" = x; then
adamc@1132 6104 STRIP=":"
adamc@1132 6105 else
adamc@1132 6106 case $cross_compiling:$ac_tool_warned in
adamc@1132 6107 yes:)
adamc@1132 6108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 6109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 6110 ac_tool_warned=yes ;;
adamc@1132 6111 esac
adamc@1132 6112 STRIP=$ac_ct_STRIP
adamc@1132 6113 fi
adamc@1132 6114 else
adamc@1132 6115 STRIP="$ac_cv_prog_STRIP"
adamc@1132 6116 fi
adamc@1132 6117
adamc@1132 6118 test -z "$STRIP" && STRIP=:
adamc@1132 6119
adamc@1132 6120
adamc@1132 6121
adamc@1132 6122
adamc@1132 6123
adamc@1132 6124
adamc@1132 6125 if test -n "$ac_tool_prefix"; then
adamc@1132 6126 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
adamc@1132 6127 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
adamc@1132 6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 6129 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 6130 if test "${ac_cv_prog_RANLIB+set}" = set; then :
adamc@1132 6131 $as_echo_n "(cached) " >&6
adamc@1132 6132 else
adamc@1132 6133 if test -n "$RANLIB"; then
adamc@1132 6134 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
adamc@1132 6135 else
adamc@1132 6136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 6137 for as_dir in $PATH
adamc@1132 6138 do
adamc@1132 6139 IFS=$as_save_IFS
adamc@1132 6140 test -z "$as_dir" && as_dir=.
adamc@1132 6141 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 6142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 6143 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
adamc@1132 6144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 6145 break 2
adamc@1132 6146 fi
adamc@1132 6147 done
adamc@1132 6148 done
adamc@1132 6149 IFS=$as_save_IFS
adamc@1132 6150
adamc@1132 6151 fi
adamc@1132 6152 fi
adamc@1132 6153 RANLIB=$ac_cv_prog_RANLIB
adamc@1132 6154 if test -n "$RANLIB"; then
adamc@1132 6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
adamc@1132 6156 $as_echo "$RANLIB" >&6; }
adamc@1132 6157 else
adamc@1132 6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 6159 $as_echo "no" >&6; }
adamc@1132 6160 fi
adamc@1132 6161
adamc@1132 6162
adamc@1132 6163 fi
adamc@1132 6164 if test -z "$ac_cv_prog_RANLIB"; then
adamc@1132 6165 ac_ct_RANLIB=$RANLIB
adamc@1132 6166 # Extract the first word of "ranlib", so it can be a program name with args.
adamc@1132 6167 set dummy ranlib; ac_word=$2
adamc@1132 6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 6169 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 6170 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
adamc@1132 6171 $as_echo_n "(cached) " >&6
adamc@1132 6172 else
adamc@1132 6173 if test -n "$ac_ct_RANLIB"; then
adamc@1132 6174 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
adamc@1132 6175 else
adamc@1132 6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 6177 for as_dir in $PATH
adamc@1132 6178 do
adamc@1132 6179 IFS=$as_save_IFS
adamc@1132 6180 test -z "$as_dir" && as_dir=.
adamc@1132 6181 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 6182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 6183 ac_cv_prog_ac_ct_RANLIB="ranlib"
adamc@1132 6184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 6185 break 2
adamc@1132 6186 fi
adamc@1132 6187 done
adamc@1132 6188 done
adamc@1132 6189 IFS=$as_save_IFS
adamc@1132 6190
adamc@1132 6191 fi
adamc@1132 6192 fi
adamc@1132 6193 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
adamc@1132 6194 if test -n "$ac_ct_RANLIB"; then
adamc@1132 6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
adamc@1132 6196 $as_echo "$ac_ct_RANLIB" >&6; }
adamc@1132 6197 else
adamc@1132 6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 6199 $as_echo "no" >&6; }
adamc@1132 6200 fi
adamc@1132 6201
adamc@1132 6202 if test "x$ac_ct_RANLIB" = x; then
adamc@1132 6203 RANLIB=":"
adamc@1132 6204 else
adamc@1132 6205 case $cross_compiling:$ac_tool_warned in
adamc@1132 6206 yes:)
adamc@1132 6207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 6208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 6209 ac_tool_warned=yes ;;
adamc@1132 6210 esac
adamc@1132 6211 RANLIB=$ac_ct_RANLIB
adamc@1132 6212 fi
adamc@1132 6213 else
adamc@1132 6214 RANLIB="$ac_cv_prog_RANLIB"
adamc@1132 6215 fi
adamc@1132 6216
adamc@1132 6217 test -z "$RANLIB" && RANLIB=:
adamc@1132 6218
adamc@1132 6219
adamc@1132 6220
adamc@1132 6221
adamc@1132 6222
adamc@1132 6223
adamc@1132 6224 # Determine commands to create old-style static archives.
adamc@1132 6225 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
adamc@1132 6226 old_postinstall_cmds='chmod 644 $oldlib'
adamc@1132 6227 old_postuninstall_cmds=
adamc@1132 6228
adamc@1132 6229 if test -n "$RANLIB"; then
adamc@1132 6230 case $host_os in
adamc@1132 6231 openbsd*)
adam@1826 6232 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
adamc@1132 6233 ;;
adamc@1132 6234 *)
adam@1826 6235 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
adamc@1132 6236 ;;
adamc@1132 6237 esac
adam@1826 6238 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
adam@1826 6239 fi
adam@1459 6240
adamc@1132 6241
adamc@1132 6242
adamc@1132 6243
adamc@1132 6244
adamc@1132 6245
adamc@1132 6246
adamc@1132 6247
adamc@1132 6248
adamc@1132 6249
adamc@1132 6250
adamc@1132 6251
adamc@1132 6252
adamc@1132 6253
adamc@1132 6254
adamc@1132 6255
adamc@1132 6256
adamc@1132 6257
adamc@1132 6258
adamc@1132 6259
adamc@1132 6260
adamc@1132 6261
adamc@1132 6262
adamc@1132 6263
adamc@1132 6264
adamc@1132 6265
adamc@1132 6266
adamc@1132 6267
adamc@1132 6268
adamc@1132 6269
adamc@1132 6270
adamc@1132 6271
adamc@1132 6272
adamc@1132 6273
adamc@1132 6274 # If no C compiler was specified, use CC.
adamc@1132 6275 LTCC=${LTCC-"$CC"}
adamc@1132 6276
adamc@1132 6277 # If no C compiler flags were specified, use CFLAGS.
adamc@1132 6278 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
adamc@1132 6279
adamc@1132 6280 # Allow CC to be a program name with arguments.
adamc@1132 6281 compiler=$CC
adamc@1132 6282
adamc@1132 6283
adamc@1132 6284 # Check for command to grab the raw symbol name followed by C symbol from nm.
adamc@1132 6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
adamc@1132 6286 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
adam@1826 6287 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
adamc@1132 6288 $as_echo_n "(cached) " >&6
adamc@1132 6289 else
adamc@1132 6290
adamc@1132 6291 # These are sane defaults that work on at least a few old systems.
adamc@1132 6292 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
adamc@1132 6293
adamc@1132 6294 # Character class describing NM global symbol codes.
adamc@1132 6295 symcode='[BCDEGRST]'
adamc@1132 6296
adamc@1132 6297 # Regexp to match symbols that can be accessed directly from C.
adamc@1132 6298 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
adamc@1132 6299
adamc@1132 6300 # Define system-specific variables.
adamc@1132 6301 case $host_os in
adamc@1132 6302 aix*)
adamc@1132 6303 symcode='[BCDT]'
adamc@1132 6304 ;;
adamc@1132 6305 cygwin* | mingw* | pw32* | cegcc*)
adamc@1132 6306 symcode='[ABCDGISTW]'
adamc@1132 6307 ;;
adamc@1132 6308 hpux*)
adamc@1132 6309 if test "$host_cpu" = ia64; then
adamc@1132 6310 symcode='[ABCDEGRST]'
adamc@1132 6311 fi
adamc@1132 6312 ;;
adamc@1132 6313 irix* | nonstopux*)
adamc@1132 6314 symcode='[BCDEGRST]'
adamc@1132 6315 ;;
adamc@1132 6316 osf*)
adamc@1132 6317 symcode='[BCDEGQRST]'
adamc@1132 6318 ;;
adamc@1132 6319 solaris*)
adamc@1132 6320 symcode='[BDRT]'
adamc@1132 6321 ;;
adamc@1132 6322 sco3.2v5*)
adamc@1132 6323 symcode='[DT]'
adamc@1132 6324 ;;
adamc@1132 6325 sysv4.2uw2*)
adamc@1132 6326 symcode='[DT]'
adamc@1132 6327 ;;
adamc@1132 6328 sysv5* | sco5v6* | unixware* | OpenUNIX*)
adamc@1132 6329 symcode='[ABDT]'
adamc@1132 6330 ;;
adamc@1132 6331 sysv4)
adamc@1132 6332 symcode='[DFNSTU]'
adamc@1132 6333 ;;
adamc@1132 6334 esac
adamc@1132 6335
adamc@1132 6336 # If we're using GNU nm, then use its standard symbol codes.
adamc@1132 6337 case `$NM -V 2>&1` in
adamc@1132 6338 *GNU* | *'with BFD'*)
adamc@1132 6339 symcode='[ABCDGIRSTW]' ;;
adamc@1132 6340 esac
adamc@1132 6341
adamc@1132 6342 # Transform an extracted symbol line into a proper C declaration.
adamc@1132 6343 # Some systems (esp. on ia64) link data and code symbols differently,
adamc@1132 6344 # so use this general approach.
adamc@1132 6345 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 6346
adamc@1132 6347 # Transform an extracted symbol line into symbol name and symbol address
adam@1826 6348 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
adam@1826 6349 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 6350
adamc@1132 6351 # Handle CRLF in mingw tool chain
adamc@1132 6352 opt_cr=
adamc@1132 6353 case $build_os in
adamc@1132 6354 mingw*)
adamc@1132 6355 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
adamc@1132 6356 ;;
adamc@1132 6357 esac
adamc@1132 6358
adamc@1132 6359 # Try without a prefix underscore, then with it.
adamc@1132 6360 for ac_symprfx in "" "_"; do
adamc@1132 6361
adamc@1132 6362 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
adamc@1132 6363 symxfrm="\\1 $ac_symprfx\\2 \\2"
adamc@1132 6364
adamc@1132 6365 # Write the raw and C identifiers.
adamc@1132 6366 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
adamc@1132 6367 # Fake it for dumpbin and say T for any non-static function
adamc@1132 6368 # and D for any global variable.
adamc@1132 6369 # Also find C++ and __fastcall symbols from MSVC++,
adamc@1132 6370 # which start with @ or ?.
adamc@1132 6371 lt_cv_sys_global_symbol_pipe="$AWK '"\
adamc@1132 6372 " {last_section=section; section=\$ 3};"\
adamc@1132 6373 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
adamc@1132 6374 " \$ 0!~/External *\|/{next};"\
adamc@1132 6375 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
adamc@1132 6376 " {if(hide[section]) next};"\
adamc@1132 6377 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
adamc@1132 6378 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
adamc@1132 6379 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
adamc@1132 6380 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
adamc@1132 6381 " ' prfx=^$ac_symprfx"
adamc@1132 6382 else
adamc@1132 6383 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
adamc@1132 6384 fi
adamc@1132 6385
adamc@1132 6386 # Check to see that the pipe works correctly.
adamc@1132 6387 pipe_works=no
adamc@1132 6388
adamc@1132 6389 rm -f conftest*
adamc@1132 6390 cat > conftest.$ac_ext <<_LT_EOF
adamc@1132 6391 #ifdef __cplusplus
adamc@1132 6392 extern "C" {
adamc@1132 6393 #endif
adamc@1132 6394 char nm_test_var;
adamc@1132 6395 void nm_test_func(void);
adamc@1132 6396 void nm_test_func(void){}
adamc@1132 6397 #ifdef __cplusplus
adamc@1132 6398 }
adamc@1132 6399 #endif
adamc@1132 6400 int main(){nm_test_var='a';nm_test_func();return(0);}
adamc@1132 6401 _LT_EOF
adamc@1132 6402
adamc@1132 6403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
adamc@1132 6404 (eval $ac_compile) 2>&5
adamc@1132 6405 ac_status=$?
adamc@1132 6406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 6407 test $ac_status = 0; }; then
adamc@1132 6408 # Now try to grab the symbols.
adamc@1132 6409 nlist=conftest.nm
adam@1826 6410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
adam@1826 6411 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
adamc@1132 6412 ac_status=$?
adamc@1132 6413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 6414 test $ac_status = 0; } && test -s "$nlist"; then
adamc@1132 6415 # Try sorting and uniquifying the output.
adamc@1132 6416 if sort "$nlist" | uniq > "$nlist"T; then
adamc@1132 6417 mv -f "$nlist"T "$nlist"
adamc@1132 6418 else
adamc@1132 6419 rm -f "$nlist"T
adamc@1132 6420 fi
adamc@1132 6421
adamc@1132 6422 # Make sure that we snagged all the symbols we need.
adamc@1132 6423 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
adamc@1132 6424 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
adamc@1132 6425 cat <<_LT_EOF > conftest.$ac_ext
adamc@1132 6426 #ifdef __cplusplus
adamc@1132 6427 extern "C" {
adamc@1132 6428 #endif
adamc@1132 6429
adamc@1132 6430 _LT_EOF
adamc@1132 6431 # Now generate the symbol file.
adamc@1132 6432 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
adamc@1132 6433
adamc@1132 6434 cat <<_LT_EOF >> conftest.$ac_ext
adamc@1132 6435
adamc@1132 6436 /* The mapping between symbol names and symbols. */
adam@1826 6437 const struct {
adamc@1132 6438 const char *name;
adamc@1132 6439 void *address;
adamc@1132 6440 }
adamc@1132 6441 lt__PROGRAM__LTX_preloaded_symbols[] =
adamc@1132 6442 {
adamc@1132 6443 { "@PROGRAM@", (void *) 0 },
adamc@1132 6444 _LT_EOF
adamc@1132 6445 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
adamc@1132 6446 cat <<\_LT_EOF >> conftest.$ac_ext
adamc@1132 6447 {0, (void *) 0}
adamc@1132 6448 };
adamc@1132 6449
adamc@1132 6450 /* This works around a problem in FreeBSD linker */
adamc@1132 6451 #ifdef FREEBSD_WORKAROUND
adamc@1132 6452 static const void *lt_preloaded_setup() {
adamc@1132 6453 return lt__PROGRAM__LTX_preloaded_symbols;
adamc@1132 6454 }
adamc@1132 6455 #endif
adamc@1132 6456
adamc@1132 6457 #ifdef __cplusplus
adamc@1132 6458 }
adamc@1132 6459 #endif
adamc@1132 6460 _LT_EOF
adamc@1132 6461 # Now try linking the two files.
adamc@1132 6462 mv conftest.$ac_objext conftstm.$ac_objext
adam@1826 6463 lt_save_LIBS="$LIBS"
adam@1826 6464 lt_save_CFLAGS="$CFLAGS"
adamc@1132 6465 LIBS="conftstm.$ac_objext"
adamc@1132 6466 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
adamc@1132 6467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
adamc@1132 6468 (eval $ac_link) 2>&5
adamc@1132 6469 ac_status=$?
adamc@1132 6470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 6471 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
adamc@1132 6472 pipe_works=yes
adamc@1132 6473 fi
adam@1826 6474 LIBS="$lt_save_LIBS"
adam@1826 6475 CFLAGS="$lt_save_CFLAGS"
adamc@1132 6476 else
adamc@1132 6477 echo "cannot find nm_test_func in $nlist" >&5
adamc@1132 6478 fi
adamc@1132 6479 else
adamc@1132 6480 echo "cannot find nm_test_var in $nlist" >&5
adamc@1132 6481 fi
adamc@1132 6482 else
adamc@1132 6483 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
adamc@1132 6484 fi
adamc@1132 6485 else
adamc@1132 6486 echo "$progname: failed program was:" >&5
adamc@1132 6487 cat conftest.$ac_ext >&5
adamc@1132 6488 fi
adamc@1132 6489 rm -rf conftest* conftst*
adamc@1132 6490
adamc@1132 6491 # Do not use the global_symbol_pipe unless it works.
adamc@1132 6492 if test "$pipe_works" = yes; then
adamc@1132 6493 break
adamc@1132 6494 else
adamc@1132 6495 lt_cv_sys_global_symbol_pipe=
adamc@1132 6496 fi
adamc@1132 6497 done
adamc@1132 6498
adamc@1132 6499 fi
adamc@1132 6500
adamc@1132 6501 if test -z "$lt_cv_sys_global_symbol_pipe"; then
adamc@1132 6502 lt_cv_sys_global_symbol_to_cdecl=
adamc@1132 6503 fi
adamc@1132 6504 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
adamc@1132 6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
adamc@1132 6506 $as_echo "failed" >&6; }
adamc@1132 6507 else
adamc@1132 6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
adamc@1132 6509 $as_echo "ok" >&6; }
adamc@1132 6510 fi
adamc@1132 6511
adam@1826 6512
adam@1826 6513
adam@1826 6514
adam@1826 6515
adam@1826 6516
adam@1826 6517
adam@1826 6518
adam@1826 6519
adam@1826 6520
adam@1826 6521
adam@1826 6522
adam@1826 6523
adam@1826 6524
adam@1826 6525
adam@1826 6526
adam@1826 6527
adamc@1132 6528
adamc@1132 6529
adamc@1132 6530
adamc@1132 6531
adamc@1132 6532
adamc@1132 6533 # Check whether --enable-libtool-lock was given.
adamc@1132 6534 if test "${enable_libtool_lock+set}" = set; then :
adamc@1132 6535 enableval=$enable_libtool_lock;
adamc@1132 6536 fi
adamc@1132 6537
adamc@1132 6538 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
adamc@1132 6539
adamc@1132 6540 # Some flags need to be propagated to the compiler or linker for good
adamc@1132 6541 # libtool support.
adamc@1132 6542 case $host in
adamc@1132 6543 ia64-*-hpux*)
adamc@1132 6544 # Find out which ABI we are using.
adamc@1132 6545 echo 'int i;' > conftest.$ac_ext
adamc@1132 6546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
adamc@1132 6547 (eval $ac_compile) 2>&5
adamc@1132 6548 ac_status=$?
adamc@1132 6549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 6550 test $ac_status = 0; }; then
adamc@1132 6551 case `/usr/bin/file conftest.$ac_objext` in
adamc@1132 6552 *ELF-32*)
adamc@1132 6553 HPUX_IA64_MODE="32"
adamc@1132 6554 ;;
adamc@1132 6555 *ELF-64*)
adamc@1132 6556 HPUX_IA64_MODE="64"
adamc@1132 6557 ;;
adamc@1132 6558 esac
adamc@1132 6559 fi
adamc@1132 6560 rm -rf conftest*
adamc@1132 6561 ;;
adamc@1132 6562 *-*-irix6*)
adamc@1132 6563 # Find out which ABI we are using.
adam@1838 6564 echo '#line 6564 "configure"' > conftest.$ac_ext
adamc@1132 6565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
adamc@1132 6566 (eval $ac_compile) 2>&5
adamc@1132 6567 ac_status=$?
adamc@1132 6568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 6569 test $ac_status = 0; }; then
adamc@1132 6570 if test "$lt_cv_prog_gnu_ld" = yes; then
adamc@1132 6571 case `/usr/bin/file conftest.$ac_objext` in
adamc@1132 6572 *32-bit*)
adamc@1132 6573 LD="${LD-ld} -melf32bsmip"
adamc@1132 6574 ;;
adamc@1132 6575 *N32*)
adamc@1132 6576 LD="${LD-ld} -melf32bmipn32"
adamc@1132 6577 ;;
adamc@1132 6578 *64-bit*)
adamc@1132 6579 LD="${LD-ld} -melf64bmip"
adamc@1132 6580 ;;
adamc@1132 6581 esac
adamc@1132 6582 else
adamc@1132 6583 case `/usr/bin/file conftest.$ac_objext` in
adamc@1132 6584 *32-bit*)
adamc@1132 6585 LD="${LD-ld} -32"
adamc@1132 6586 ;;
adamc@1132 6587 *N32*)
adamc@1132 6588 LD="${LD-ld} -n32"
adamc@1132 6589 ;;
adamc@1132 6590 *64-bit*)
adamc@1132 6591 LD="${LD-ld} -64"
adamc@1132 6592 ;;
adamc@1132 6593 esac
adamc@1132 6594 fi
adamc@1132 6595 fi
adamc@1132 6596 rm -rf conftest*
adamc@1132 6597 ;;
adamc@1132 6598
adamc@1132 6599 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
adamc@1132 6600 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
adamc@1132 6601 # Find out which ABI we are using.
adamc@1132 6602 echo 'int i;' > conftest.$ac_ext
adamc@1132 6603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
adamc@1132 6604 (eval $ac_compile) 2>&5
adamc@1132 6605 ac_status=$?
adamc@1132 6606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 6607 test $ac_status = 0; }; then
adamc@1132 6608 case `/usr/bin/file conftest.o` in
adamc@1132 6609 *32-bit*)
adamc@1132 6610 case $host in
adamc@1132 6611 x86_64-*kfreebsd*-gnu)
adamc@1132 6612 LD="${LD-ld} -m elf_i386_fbsd"
adamc@1132 6613 ;;
adamc@1132 6614 x86_64-*linux*)
adamc@1132 6615 LD="${LD-ld} -m elf_i386"
adamc@1132 6616 ;;
adamc@1132 6617 ppc64-*linux*|powerpc64-*linux*)
adamc@1132 6618 LD="${LD-ld} -m elf32ppclinux"
adamc@1132 6619 ;;
adamc@1132 6620 s390x-*linux*)
adamc@1132 6621 LD="${LD-ld} -m elf_s390"
adamc@1132 6622 ;;
adamc@1132 6623 sparc64-*linux*)
adamc@1132 6624 LD="${LD-ld} -m elf32_sparc"
adamc@1132 6625 ;;
adamc@1132 6626 esac
adamc@1132 6627 ;;
adamc@1132 6628 *64-bit*)
adamc@1132 6629 case $host in
adamc@1132 6630 x86_64-*kfreebsd*-gnu)
adamc@1132 6631 LD="${LD-ld} -m elf_x86_64_fbsd"
adamc@1132 6632 ;;
adamc@1132 6633 x86_64-*linux*)
adamc@1132 6634 LD="${LD-ld} -m elf_x86_64"
adamc@1132 6635 ;;
adamc@1132 6636 ppc*-*linux*|powerpc*-*linux*)
adamc@1132 6637 LD="${LD-ld} -m elf64ppc"
adamc@1132 6638 ;;
adamc@1132 6639 s390*-*linux*|s390*-*tpf*)
adamc@1132 6640 LD="${LD-ld} -m elf64_s390"
adamc@1132 6641 ;;
adamc@1132 6642 sparc*-*linux*)
adamc@1132 6643 LD="${LD-ld} -m elf64_sparc"
adamc@1132 6644 ;;
adamc@1132 6645 esac
adamc@1132 6646 ;;
adamc@1132 6647 esac
adamc@1132 6648 fi
adamc@1132 6649 rm -rf conftest*
adamc@1132 6650 ;;
adamc@1132 6651
adamc@1132 6652 *-*-sco3.2v5*)
adamc@1132 6653 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
adamc@1132 6654 SAVE_CFLAGS="$CFLAGS"
adamc@1132 6655 CFLAGS="$CFLAGS -belf"
adamc@1132 6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
adamc@1132 6657 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
adam@1826 6658 if test "${lt_cv_cc_needs_belf+set}" = set; then :
adamc@1132 6659 $as_echo_n "(cached) " >&6
adamc@1132 6660 else
adamc@1132 6661 ac_ext=c
adamc@1132 6662 ac_cpp='$CPP $CPPFLAGS'
adamc@1132 6663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adamc@1132 6664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adamc@1132 6665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adamc@1132 6666
adamc@1132 6667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 6668 /* end confdefs.h. */
adamc@1132 6669
adamc@1132 6670 int
adamc@1132 6671 main ()
adamc@1132 6672 {
adamc@1132 6673
adamc@1132 6674 ;
adamc@1132 6675 return 0;
adamc@1132 6676 }
adamc@1132 6677 _ACEOF
adamc@1132 6678 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 6679 lt_cv_cc_needs_belf=yes
adamc@1132 6680 else
adamc@1132 6681 lt_cv_cc_needs_belf=no
adamc@1132 6682 fi
adamc@1132 6683 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 6684 conftest$ac_exeext conftest.$ac_ext
adamc@1132 6685 ac_ext=c
adamc@1132 6686 ac_cpp='$CPP $CPPFLAGS'
adamc@1132 6687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adamc@1132 6688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adamc@1132 6689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adamc@1132 6690
adamc@1132 6691 fi
adamc@1132 6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
adamc@1132 6693 $as_echo "$lt_cv_cc_needs_belf" >&6; }
adamc@1132 6694 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
adamc@1132 6695 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
adamc@1132 6696 CFLAGS="$SAVE_CFLAGS"
adamc@1132 6697 fi
adamc@1132 6698 ;;
adam@1826 6699 sparc*-*solaris*)
adamc@1132 6700 # Find out which ABI we are using.
adamc@1132 6701 echo 'int i;' > conftest.$ac_ext
adamc@1132 6702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
adamc@1132 6703 (eval $ac_compile) 2>&5
adamc@1132 6704 ac_status=$?
adamc@1132 6705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 6706 test $ac_status = 0; }; then
adamc@1132 6707 case `/usr/bin/file conftest.o` in
adamc@1132 6708 *64-bit*)
adamc@1132 6709 case $lt_cv_prog_gnu_ld in
adam@1826 6710 yes*) LD="${LD-ld} -m elf64_sparc" ;;
adamc@1132 6711 *)
adamc@1132 6712 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
adamc@1132 6713 LD="${LD-ld} -64"
adamc@1132 6714 fi
adamc@1132 6715 ;;
adamc@1132 6716 esac
adamc@1132 6717 ;;
adamc@1132 6718 esac
adamc@1132 6719 fi
adamc@1132 6720 rm -rf conftest*
adamc@1132 6721 ;;
adamc@1132 6722 esac
adamc@1132 6723
adamc@1132 6724 need_locks="$enable_libtool_lock"
adamc@1132 6725
adamc@1132 6726
adamc@1132 6727 case $host_os in
adamc@1132 6728 rhapsody* | darwin*)
adamc@1132 6729 if test -n "$ac_tool_prefix"; then
adamc@1132 6730 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
adamc@1132 6731 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
adamc@1132 6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 6733 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 6734 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
adamc@1132 6735 $as_echo_n "(cached) " >&6
adamc@1132 6736 else
adamc@1132 6737 if test -n "$DSYMUTIL"; then
adamc@1132 6738 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
adamc@1132 6739 else
adamc@1132 6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 6741 for as_dir in $PATH
adamc@1132 6742 do
adamc@1132 6743 IFS=$as_save_IFS
adamc@1132 6744 test -z "$as_dir" && as_dir=.
adamc@1132 6745 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 6746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 6747 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
adamc@1132 6748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 6749 break 2
adamc@1132 6750 fi
adamc@1132 6751 done
adamc@1132 6752 done
adamc@1132 6753 IFS=$as_save_IFS
adamc@1132 6754
adamc@1132 6755 fi
adamc@1132 6756 fi
adamc@1132 6757 DSYMUTIL=$ac_cv_prog_DSYMUTIL
adamc@1132 6758 if test -n "$DSYMUTIL"; then
adamc@1132 6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
adamc@1132 6760 $as_echo "$DSYMUTIL" >&6; }
adamc@1132 6761 else
adamc@1132 6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 6763 $as_echo "no" >&6; }
adamc@1132 6764 fi
adamc@1132 6765
adamc@1132 6766
adamc@1132 6767 fi
adamc@1132 6768 if test -z "$ac_cv_prog_DSYMUTIL"; then
adamc@1132 6769 ac_ct_DSYMUTIL=$DSYMUTIL
adamc@1132 6770 # Extract the first word of "dsymutil", so it can be a program name with args.
adamc@1132 6771 set dummy dsymutil; ac_word=$2
adamc@1132 6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 6773 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 6774 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
adamc@1132 6775 $as_echo_n "(cached) " >&6
adamc@1132 6776 else
adamc@1132 6777 if test -n "$ac_ct_DSYMUTIL"; then
adamc@1132 6778 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
adamc@1132 6779 else
adamc@1132 6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 6781 for as_dir in $PATH
adamc@1132 6782 do
adamc@1132 6783 IFS=$as_save_IFS
adamc@1132 6784 test -z "$as_dir" && as_dir=.
adamc@1132 6785 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 6786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 6787 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
adamc@1132 6788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 6789 break 2
adamc@1132 6790 fi
adamc@1132 6791 done
adamc@1132 6792 done
adamc@1132 6793 IFS=$as_save_IFS
adamc@1132 6794
adamc@1132 6795 fi
adamc@1132 6796 fi
adamc@1132 6797 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
adamc@1132 6798 if test -n "$ac_ct_DSYMUTIL"; then
adamc@1132 6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
adamc@1132 6800 $as_echo "$ac_ct_DSYMUTIL" >&6; }
adamc@1132 6801 else
adamc@1132 6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 6803 $as_echo "no" >&6; }
adamc@1132 6804 fi
adamc@1132 6805
adamc@1132 6806 if test "x$ac_ct_DSYMUTIL" = x; then
adamc@1132 6807 DSYMUTIL=":"
adamc@1132 6808 else
adamc@1132 6809 case $cross_compiling:$ac_tool_warned in
adamc@1132 6810 yes:)
adamc@1132 6811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 6812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 6813 ac_tool_warned=yes ;;
adamc@1132 6814 esac
adamc@1132 6815 DSYMUTIL=$ac_ct_DSYMUTIL
adamc@1132 6816 fi
adamc@1132 6817 else
adamc@1132 6818 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
adamc@1132 6819 fi
adamc@1132 6820
adamc@1132 6821 if test -n "$ac_tool_prefix"; then
adamc@1132 6822 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
adamc@1132 6823 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
adamc@1132 6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 6825 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 6826 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
adamc@1132 6827 $as_echo_n "(cached) " >&6
adamc@1132 6828 else
adamc@1132 6829 if test -n "$NMEDIT"; then
adamc@1132 6830 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
adamc@1132 6831 else
adamc@1132 6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 6833 for as_dir in $PATH
adamc@1132 6834 do
adamc@1132 6835 IFS=$as_save_IFS
adamc@1132 6836 test -z "$as_dir" && as_dir=.
adamc@1132 6837 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 6839 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
adamc@1132 6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 6841 break 2
adamc@1132 6842 fi
adamc@1132 6843 done
adamc@1132 6844 done
adamc@1132 6845 IFS=$as_save_IFS
adamc@1132 6846
adamc@1132 6847 fi
adamc@1132 6848 fi
adamc@1132 6849 NMEDIT=$ac_cv_prog_NMEDIT
adamc@1132 6850 if test -n "$NMEDIT"; then
adamc@1132 6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
adamc@1132 6852 $as_echo "$NMEDIT" >&6; }
adamc@1132 6853 else
adamc@1132 6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 6855 $as_echo "no" >&6; }
adamc@1132 6856 fi
adamc@1132 6857
adamc@1132 6858
adamc@1132 6859 fi
adamc@1132 6860 if test -z "$ac_cv_prog_NMEDIT"; then
adamc@1132 6861 ac_ct_NMEDIT=$NMEDIT
adamc@1132 6862 # Extract the first word of "nmedit", so it can be a program name with args.
adamc@1132 6863 set dummy nmedit; ac_word=$2
adamc@1132 6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 6865 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 6866 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
adamc@1132 6867 $as_echo_n "(cached) " >&6
adamc@1132 6868 else
adamc@1132 6869 if test -n "$ac_ct_NMEDIT"; then
adamc@1132 6870 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
adamc@1132 6871 else
adamc@1132 6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 6873 for as_dir in $PATH
adamc@1132 6874 do
adamc@1132 6875 IFS=$as_save_IFS
adamc@1132 6876 test -z "$as_dir" && as_dir=.
adamc@1132 6877 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 6878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 6879 ac_cv_prog_ac_ct_NMEDIT="nmedit"
adamc@1132 6880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 6881 break 2
adamc@1132 6882 fi
adamc@1132 6883 done
adamc@1132 6884 done
adamc@1132 6885 IFS=$as_save_IFS
adamc@1132 6886
adamc@1132 6887 fi
adamc@1132 6888 fi
adamc@1132 6889 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
adamc@1132 6890 if test -n "$ac_ct_NMEDIT"; then
adamc@1132 6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
adamc@1132 6892 $as_echo "$ac_ct_NMEDIT" >&6; }
adamc@1132 6893 else
adamc@1132 6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 6895 $as_echo "no" >&6; }
adamc@1132 6896 fi
adamc@1132 6897
adamc@1132 6898 if test "x$ac_ct_NMEDIT" = x; then
adamc@1132 6899 NMEDIT=":"
adamc@1132 6900 else
adamc@1132 6901 case $cross_compiling:$ac_tool_warned in
adamc@1132 6902 yes:)
adamc@1132 6903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 6904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 6905 ac_tool_warned=yes ;;
adamc@1132 6906 esac
adamc@1132 6907 NMEDIT=$ac_ct_NMEDIT
adamc@1132 6908 fi
adamc@1132 6909 else
adamc@1132 6910 NMEDIT="$ac_cv_prog_NMEDIT"
adamc@1132 6911 fi
adamc@1132 6912
adamc@1132 6913 if test -n "$ac_tool_prefix"; then
adamc@1132 6914 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
adamc@1132 6915 set dummy ${ac_tool_prefix}lipo; ac_word=$2
adamc@1132 6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 6917 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 6918 if test "${ac_cv_prog_LIPO+set}" = set; then :
adamc@1132 6919 $as_echo_n "(cached) " >&6
adamc@1132 6920 else
adamc@1132 6921 if test -n "$LIPO"; then
adamc@1132 6922 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
adamc@1132 6923 else
adamc@1132 6924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 6925 for as_dir in $PATH
adamc@1132 6926 do
adamc@1132 6927 IFS=$as_save_IFS
adamc@1132 6928 test -z "$as_dir" && as_dir=.
adamc@1132 6929 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 6930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 6931 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
adamc@1132 6932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 6933 break 2
adamc@1132 6934 fi
adamc@1132 6935 done
adamc@1132 6936 done
adamc@1132 6937 IFS=$as_save_IFS
adamc@1132 6938
adamc@1132 6939 fi
adamc@1132 6940 fi
adamc@1132 6941 LIPO=$ac_cv_prog_LIPO
adamc@1132 6942 if test -n "$LIPO"; then
adamc@1132 6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
adamc@1132 6944 $as_echo "$LIPO" >&6; }
adamc@1132 6945 else
adamc@1132 6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 6947 $as_echo "no" >&6; }
adamc@1132 6948 fi
adamc@1132 6949
adamc@1132 6950
adamc@1132 6951 fi
adamc@1132 6952 if test -z "$ac_cv_prog_LIPO"; then
adamc@1132 6953 ac_ct_LIPO=$LIPO
adamc@1132 6954 # Extract the first word of "lipo", so it can be a program name with args.
adamc@1132 6955 set dummy lipo; ac_word=$2
adamc@1132 6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 6957 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 6958 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
adamc@1132 6959 $as_echo_n "(cached) " >&6
adamc@1132 6960 else
adamc@1132 6961 if test -n "$ac_ct_LIPO"; then
adamc@1132 6962 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
adamc@1132 6963 else
adamc@1132 6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 6965 for as_dir in $PATH
adamc@1132 6966 do
adamc@1132 6967 IFS=$as_save_IFS
adamc@1132 6968 test -z "$as_dir" && as_dir=.
adamc@1132 6969 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 6970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 6971 ac_cv_prog_ac_ct_LIPO="lipo"
adamc@1132 6972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 6973 break 2
adamc@1132 6974 fi
adamc@1132 6975 done
adamc@1132 6976 done
adamc@1132 6977 IFS=$as_save_IFS
adamc@1132 6978
adamc@1132 6979 fi
adamc@1132 6980 fi
adamc@1132 6981 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
adamc@1132 6982 if test -n "$ac_ct_LIPO"; then
adamc@1132 6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
adamc@1132 6984 $as_echo "$ac_ct_LIPO" >&6; }
adamc@1132 6985 else
adamc@1132 6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 6987 $as_echo "no" >&6; }
adamc@1132 6988 fi
adamc@1132 6989
adamc@1132 6990 if test "x$ac_ct_LIPO" = x; then
adamc@1132 6991 LIPO=":"
adamc@1132 6992 else
adamc@1132 6993 case $cross_compiling:$ac_tool_warned in
adamc@1132 6994 yes:)
adamc@1132 6995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 6996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 6997 ac_tool_warned=yes ;;
adamc@1132 6998 esac
adamc@1132 6999 LIPO=$ac_ct_LIPO
adamc@1132 7000 fi
adamc@1132 7001 else
adamc@1132 7002 LIPO="$ac_cv_prog_LIPO"
adamc@1132 7003 fi
adamc@1132 7004
adamc@1132 7005 if test -n "$ac_tool_prefix"; then
adamc@1132 7006 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
adamc@1132 7007 set dummy ${ac_tool_prefix}otool; ac_word=$2
adamc@1132 7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 7009 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 7010 if test "${ac_cv_prog_OTOOL+set}" = set; then :
adamc@1132 7011 $as_echo_n "(cached) " >&6
adamc@1132 7012 else
adamc@1132 7013 if test -n "$OTOOL"; then
adamc@1132 7014 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
adamc@1132 7015 else
adamc@1132 7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 7017 for as_dir in $PATH
adamc@1132 7018 do
adamc@1132 7019 IFS=$as_save_IFS
adamc@1132 7020 test -z "$as_dir" && as_dir=.
adamc@1132 7021 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 7022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 7023 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
adamc@1132 7024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 7025 break 2
adamc@1132 7026 fi
adamc@1132 7027 done
adamc@1132 7028 done
adamc@1132 7029 IFS=$as_save_IFS
adamc@1132 7030
adamc@1132 7031 fi
adamc@1132 7032 fi
adamc@1132 7033 OTOOL=$ac_cv_prog_OTOOL
adamc@1132 7034 if test -n "$OTOOL"; then
adamc@1132 7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
adamc@1132 7036 $as_echo "$OTOOL" >&6; }
adamc@1132 7037 else
adamc@1132 7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 7039 $as_echo "no" >&6; }
adamc@1132 7040 fi
adamc@1132 7041
adamc@1132 7042
adamc@1132 7043 fi
adamc@1132 7044 if test -z "$ac_cv_prog_OTOOL"; then
adamc@1132 7045 ac_ct_OTOOL=$OTOOL
adamc@1132 7046 # Extract the first word of "otool", so it can be a program name with args.
adamc@1132 7047 set dummy otool; ac_word=$2
adamc@1132 7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 7049 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 7050 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
adamc@1132 7051 $as_echo_n "(cached) " >&6
adamc@1132 7052 else
adamc@1132 7053 if test -n "$ac_ct_OTOOL"; then
adamc@1132 7054 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
adamc@1132 7055 else
adamc@1132 7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 7057 for as_dir in $PATH
adamc@1132 7058 do
adamc@1132 7059 IFS=$as_save_IFS
adamc@1132 7060 test -z "$as_dir" && as_dir=.
adamc@1132 7061 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 7062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 7063 ac_cv_prog_ac_ct_OTOOL="otool"
adamc@1132 7064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 7065 break 2
adamc@1132 7066 fi
adamc@1132 7067 done
adamc@1132 7068 done
adamc@1132 7069 IFS=$as_save_IFS
adamc@1132 7070
adamc@1132 7071 fi
adamc@1132 7072 fi
adamc@1132 7073 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
adamc@1132 7074 if test -n "$ac_ct_OTOOL"; then
adamc@1132 7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
adamc@1132 7076 $as_echo "$ac_ct_OTOOL" >&6; }
adamc@1132 7077 else
adamc@1132 7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 7079 $as_echo "no" >&6; }
adamc@1132 7080 fi
adamc@1132 7081
adamc@1132 7082 if test "x$ac_ct_OTOOL" = x; then
adamc@1132 7083 OTOOL=":"
adamc@1132 7084 else
adamc@1132 7085 case $cross_compiling:$ac_tool_warned in
adamc@1132 7086 yes:)
adamc@1132 7087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 7088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 7089 ac_tool_warned=yes ;;
adamc@1132 7090 esac
adamc@1132 7091 OTOOL=$ac_ct_OTOOL
adamc@1132 7092 fi
adamc@1132 7093 else
adamc@1132 7094 OTOOL="$ac_cv_prog_OTOOL"
adamc@1132 7095 fi
adamc@1132 7096
adamc@1132 7097 if test -n "$ac_tool_prefix"; then
adamc@1132 7098 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
adamc@1132 7099 set dummy ${ac_tool_prefix}otool64; ac_word=$2
adamc@1132 7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 7101 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 7102 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
adamc@1132 7103 $as_echo_n "(cached) " >&6
adamc@1132 7104 else
adamc@1132 7105 if test -n "$OTOOL64"; then
adamc@1132 7106 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
adamc@1132 7107 else
adamc@1132 7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 7109 for as_dir in $PATH
adamc@1132 7110 do
adamc@1132 7111 IFS=$as_save_IFS
adamc@1132 7112 test -z "$as_dir" && as_dir=.
adamc@1132 7113 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 7114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 7115 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
adamc@1132 7116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 7117 break 2
adamc@1132 7118 fi
adamc@1132 7119 done
adamc@1132 7120 done
adamc@1132 7121 IFS=$as_save_IFS
adamc@1132 7122
adamc@1132 7123 fi
adamc@1132 7124 fi
adamc@1132 7125 OTOOL64=$ac_cv_prog_OTOOL64
adamc@1132 7126 if test -n "$OTOOL64"; then
adamc@1132 7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
adamc@1132 7128 $as_echo "$OTOOL64" >&6; }
adamc@1132 7129 else
adamc@1132 7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 7131 $as_echo "no" >&6; }
adamc@1132 7132 fi
adamc@1132 7133
adamc@1132 7134
adamc@1132 7135 fi
adamc@1132 7136 if test -z "$ac_cv_prog_OTOOL64"; then
adamc@1132 7137 ac_ct_OTOOL64=$OTOOL64
adamc@1132 7138 # Extract the first word of "otool64", so it can be a program name with args.
adamc@1132 7139 set dummy otool64; ac_word=$2
adamc@1132 7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1132 7141 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 7142 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
adamc@1132 7143 $as_echo_n "(cached) " >&6
adamc@1132 7144 else
adamc@1132 7145 if test -n "$ac_ct_OTOOL64"; then
adamc@1132 7146 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
adamc@1132 7147 else
adamc@1132 7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1132 7149 for as_dir in $PATH
adamc@1132 7150 do
adamc@1132 7151 IFS=$as_save_IFS
adamc@1132 7152 test -z "$as_dir" && as_dir=.
adamc@1132 7153 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1132 7155 ac_cv_prog_ac_ct_OTOOL64="otool64"
adamc@1132 7156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1132 7157 break 2
adamc@1132 7158 fi
adamc@1132 7159 done
adamc@1132 7160 done
adamc@1132 7161 IFS=$as_save_IFS
adamc@1132 7162
adamc@1132 7163 fi
adamc@1132 7164 fi
adamc@1132 7165 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
adamc@1132 7166 if test -n "$ac_ct_OTOOL64"; then
adamc@1132 7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
adamc@1132 7168 $as_echo "$ac_ct_OTOOL64" >&6; }
adamc@1132 7169 else
adamc@1132 7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 7171 $as_echo "no" >&6; }
adamc@1132 7172 fi
adamc@1132 7173
adamc@1132 7174 if test "x$ac_ct_OTOOL64" = x; then
adamc@1132 7175 OTOOL64=":"
adamc@1132 7176 else
adamc@1132 7177 case $cross_compiling:$ac_tool_warned in
adamc@1132 7178 yes:)
adamc@1132 7179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
adamc@1132 7180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
adamc@1132 7181 ac_tool_warned=yes ;;
adamc@1132 7182 esac
adamc@1132 7183 OTOOL64=$ac_ct_OTOOL64
adamc@1132 7184 fi
adamc@1132 7185 else
adamc@1132 7186 OTOOL64="$ac_cv_prog_OTOOL64"
adamc@1132 7187 fi
adamc@1132 7188
adamc@1132 7189
adamc@1132 7190
adamc@1132 7191
adamc@1132 7192
adamc@1132 7193
adamc@1132 7194
adamc@1132 7195
adamc@1132 7196
adamc@1132 7197
adamc@1132 7198
adamc@1132 7199
adamc@1132 7200
adamc@1132 7201
adamc@1132 7202
adamc@1132 7203
adamc@1132 7204
adamc@1132 7205
adamc@1132 7206
adamc@1132 7207
adamc@1132 7208
adamc@1132 7209
adamc@1132 7210
adamc@1132 7211
adamc@1132 7212
adamc@1132 7213
adamc@1132 7214
adamc@1132 7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
adamc@1132 7216 $as_echo_n "checking for -single_module linker flag... " >&6; }
adam@1826 7217 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
adamc@1132 7218 $as_echo_n "(cached) " >&6
adamc@1132 7219 else
adamc@1132 7220 lt_cv_apple_cc_single_mod=no
adamc@1132 7221 if test -z "${LT_MULTI_MODULE}"; then
adamc@1132 7222 # By default we will add the -single_module flag. You can override
adamc@1132 7223 # by either setting the environment variable LT_MULTI_MODULE
adamc@1132 7224 # non-empty at configure time, or by adding -multi_module to the
adamc@1132 7225 # link flags.
adamc@1132 7226 rm -rf libconftest.dylib*
adamc@1132 7227 echo "int foo(void){return 1;}" > conftest.c
adamc@1132 7228 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
adamc@1132 7229 -dynamiclib -Wl,-single_module conftest.c" >&5
adamc@1132 7230 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
adamc@1132 7231 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
adamc@1132 7232 _lt_result=$?
adam@1826 7233 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
adamc@1132 7234 lt_cv_apple_cc_single_mod=yes
adamc@1132 7235 else
adamc@1132 7236 cat conftest.err >&5
adamc@1132 7237 fi
adamc@1132 7238 rm -rf libconftest.dylib*
adamc@1132 7239 rm -f conftest.*
adamc@1132 7240 fi
adamc@1132 7241 fi
adamc@1132 7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
adamc@1132 7243 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
adamc@1132 7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
adamc@1132 7245 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
adam@1826 7246 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
adamc@1132 7247 $as_echo_n "(cached) " >&6
adamc@1132 7248 else
adamc@1132 7249 lt_cv_ld_exported_symbols_list=no
adamc@1132 7250 save_LDFLAGS=$LDFLAGS
adamc@1132 7251 echo "_main" > conftest.sym
adamc@1132 7252 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
adamc@1132 7253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 7254 /* end confdefs.h. */
adamc@1132 7255
adamc@1132 7256 int
adamc@1132 7257 main ()
adamc@1132 7258 {
adamc@1132 7259
adamc@1132 7260 ;
adamc@1132 7261 return 0;
adamc@1132 7262 }
adamc@1132 7263 _ACEOF
adamc@1132 7264 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 7265 lt_cv_ld_exported_symbols_list=yes
adamc@1132 7266 else
adamc@1132 7267 lt_cv_ld_exported_symbols_list=no
adamc@1132 7268 fi
adamc@1132 7269 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 7270 conftest$ac_exeext conftest.$ac_ext
adamc@1132 7271 LDFLAGS="$save_LDFLAGS"
adamc@1132 7272
adamc@1132 7273 fi
adamc@1132 7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
adamc@1132 7275 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
adamc@1132 7276 case $host_os in
adamc@1132 7277 rhapsody* | darwin1.[012])
adamc@1132 7278 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
adamc@1132 7279 darwin1.*)
adamc@1132 7280 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
adamc@1132 7281 darwin*) # darwin 5.x on
adamc@1132 7282 # if running on 10.5 or later, the deployment target defaults
adamc@1132 7283 # to the OS version, if on x86, and 10.4, the deployment
adamc@1132 7284 # target defaults to 10.4. Don't you love it?
adamc@1132 7285 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
adamc@1132 7286 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
adamc@1132 7287 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
adamc@1132 7288 10.[012]*)
adamc@1132 7289 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
adamc@1132 7290 10.*)
adamc@1132 7291 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
adamc@1132 7292 esac
adamc@1132 7293 ;;
adamc@1132 7294 esac
adamc@1132 7295 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
adamc@1132 7296 _lt_dar_single_mod='$single_module'
adamc@1132 7297 fi
adamc@1132 7298 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
adamc@1132 7299 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
adamc@1132 7300 else
adamc@1132 7301 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
adamc@1132 7302 fi
adam@1826 7303 if test "$DSYMUTIL" != ":"; then
adamc@1132 7304 _lt_dsymutil='~$DSYMUTIL $lib || :'
adamc@1132 7305 else
adamc@1132 7306 _lt_dsymutil=
adamc@1132 7307 fi
adamc@1132 7308 ;;
adamc@1132 7309 esac
adamc@1132 7310
adamc@1132 7311 for ac_header in dlfcn.h
adamc@1132 7312 do :
adamc@1132 7313 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
adamc@1132 7314 "
adam@1826 7315 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
adamc@1132 7316 cat >>confdefs.h <<_ACEOF
adamc@1132 7317 #define HAVE_DLFCN_H 1
adamc@1132 7318 _ACEOF
adamc@1132 7319
adamc@1132 7320 fi
adamc@1132 7321
adamc@1132 7322 done
adamc@1132 7323
adamc@1132 7324
adamc@1132 7325
adamc@1132 7326 # Set options
adamc@1132 7327
adamc@1132 7328
adamc@1132 7329
adamc@1132 7330 enable_dlopen=no
adamc@1132 7331
adamc@1132 7332
adamc@1132 7333 enable_win32_dll=no
adamc@1132 7334
adamc@1132 7335
adamc@1132 7336 # Check whether --enable-shared was given.
adamc@1132 7337 if test "${enable_shared+set}" = set; then :
adamc@1132 7338 enableval=$enable_shared; p=${PACKAGE-default}
adamc@1132 7339 case $enableval in
adamc@1132 7340 yes) enable_shared=yes ;;
adamc@1132 7341 no) enable_shared=no ;;
adamc@1132 7342 *)
adamc@1132 7343 enable_shared=no
adamc@1132 7344 # Look at the argument we got. We use all the common list separators.
adamc@1132 7345 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
adamc@1132 7346 for pkg in $enableval; do
adamc@1132 7347 IFS="$lt_save_ifs"
adamc@1132 7348 if test "X$pkg" = "X$p"; then
adamc@1132 7349 enable_shared=yes
adamc@1132 7350 fi
adamc@1132 7351 done
adamc@1132 7352 IFS="$lt_save_ifs"
adamc@1132 7353 ;;
adamc@1132 7354 esac
adamc@1132 7355 else
adamc@1132 7356 enable_shared=yes
adamc@1132 7357 fi
adamc@1132 7358
adamc@1132 7359
adamc@1132 7360
adamc@1132 7361
adamc@1132 7362
adamc@1132 7363
adamc@1132 7364
adamc@1132 7365
adamc@1132 7366
adamc@1132 7367 # Check whether --enable-static was given.
adamc@1132 7368 if test "${enable_static+set}" = set; then :
adamc@1132 7369 enableval=$enable_static; p=${PACKAGE-default}
adamc@1132 7370 case $enableval in
adamc@1132 7371 yes) enable_static=yes ;;
adamc@1132 7372 no) enable_static=no ;;
adamc@1132 7373 *)
adamc@1132 7374 enable_static=no
adamc@1132 7375 # Look at the argument we got. We use all the common list separators.
adamc@1132 7376 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
adamc@1132 7377 for pkg in $enableval; do
adamc@1132 7378 IFS="$lt_save_ifs"
adamc@1132 7379 if test "X$pkg" = "X$p"; then
adamc@1132 7380 enable_static=yes
adamc@1132 7381 fi
adamc@1132 7382 done
adamc@1132 7383 IFS="$lt_save_ifs"
adamc@1132 7384 ;;
adamc@1132 7385 esac
adamc@1132 7386 else
adamc@1132 7387 enable_static=yes
adamc@1132 7388 fi
adamc@1132 7389
adamc@1132 7390
adamc@1132 7391
adamc@1132 7392
adamc@1132 7393
adamc@1132 7394
adamc@1132 7395
adamc@1132 7396
adamc@1132 7397
adamc@1132 7398
adamc@1132 7399 # Check whether --with-pic was given.
adamc@1132 7400 if test "${with_pic+set}" = set; then :
adam@1826 7401 withval=$with_pic; pic_mode="$withval"
adamc@1132 7402 else
adamc@1132 7403 pic_mode=default
adamc@1132 7404 fi
adamc@1132 7405
adamc@1132 7406
adamc@1132 7407 test -z "$pic_mode" && pic_mode=default
adamc@1132 7408
adamc@1132 7409
adamc@1132 7410
adamc@1132 7411
adamc@1132 7412
adamc@1132 7413
adamc@1132 7414
adamc@1132 7415 # Check whether --enable-fast-install was given.
adamc@1132 7416 if test "${enable_fast_install+set}" = set; then :
adamc@1132 7417 enableval=$enable_fast_install; p=${PACKAGE-default}
adamc@1132 7418 case $enableval in
adamc@1132 7419 yes) enable_fast_install=yes ;;
adamc@1132 7420 no) enable_fast_install=no ;;
adamc@1132 7421 *)
adamc@1132 7422 enable_fast_install=no
adamc@1132 7423 # Look at the argument we got. We use all the common list separators.
adamc@1132 7424 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
adamc@1132 7425 for pkg in $enableval; do
adamc@1132 7426 IFS="$lt_save_ifs"
adamc@1132 7427 if test "X$pkg" = "X$p"; then
adamc@1132 7428 enable_fast_install=yes
adamc@1132 7429 fi
adamc@1132 7430 done
adamc@1132 7431 IFS="$lt_save_ifs"
adamc@1132 7432 ;;
adamc@1132 7433 esac
adamc@1132 7434 else
adamc@1132 7435 enable_fast_install=yes
adamc@1132 7436 fi
adamc@1132 7437
adamc@1132 7438
adamc@1132 7439
adamc@1132 7440
adamc@1132 7441
adamc@1132 7442
adamc@1132 7443
adamc@1132 7444
adamc@1132 7445
adamc@1132 7446
adamc@1132 7447
adamc@1132 7448 # This can be used to rebuild libtool when needed
adamc@1132 7449 LIBTOOL_DEPS="$ltmain"
adamc@1132 7450
adamc@1132 7451 # Always use our own libtool.
adamc@1132 7452 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
adamc@1132 7453
adamc@1132 7454
adamc@1132 7455
adamc@1132 7456
adamc@1132 7457
adamc@1132 7458
adamc@1132 7459
adamc@1132 7460
adamc@1132 7461
adamc@1132 7462
adamc@1132 7463
adamc@1132 7464
adamc@1132 7465
adamc@1132 7466
adamc@1132 7467
adamc@1132 7468
adamc@1132 7469
adamc@1132 7470
adamc@1132 7471
adamc@1132 7472
adamc@1132 7473
adamc@1132 7474
adamc@1132 7475
adamc@1132 7476
adamc@1132 7477
adamc@1132 7478 test -z "$LN_S" && LN_S="ln -s"
adamc@1132 7479
adamc@1132 7480
adamc@1132 7481
adamc@1132 7482
adamc@1132 7483
adamc@1132 7484
adamc@1132 7485
adamc@1132 7486
adamc@1132 7487
adamc@1132 7488
adamc@1132 7489
adamc@1132 7490
adamc@1132 7491
adamc@1132 7492
adamc@1132 7493 if test -n "${ZSH_VERSION+set}" ; then
adamc@1132 7494 setopt NO_GLOB_SUBST
adamc@1132 7495 fi
adamc@1132 7496
adamc@1132 7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
adamc@1132 7498 $as_echo_n "checking for objdir... " >&6; }
adam@1826 7499 if test "${lt_cv_objdir+set}" = set; then :
adamc@1132 7500 $as_echo_n "(cached) " >&6
adamc@1132 7501 else
adamc@1132 7502 rm -f .libs 2>/dev/null
adamc@1132 7503 mkdir .libs 2>/dev/null
adamc@1132 7504 if test -d .libs; then
adamc@1132 7505 lt_cv_objdir=.libs
adamc@1132 7506 else
adamc@1132 7507 # MS-DOS does not allow filenames that begin with a dot.
adamc@1132 7508 lt_cv_objdir=_libs
adamc@1132 7509 fi
adamc@1132 7510 rmdir .libs 2>/dev/null
adamc@1132 7511 fi
adamc@1132 7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
adamc@1132 7513 $as_echo "$lt_cv_objdir" >&6; }
adamc@1132 7514 objdir=$lt_cv_objdir
adamc@1132 7515
adamc@1132 7516
adamc@1132 7517
adamc@1132 7518
adamc@1132 7519
adamc@1132 7520 cat >>confdefs.h <<_ACEOF
adamc@1132 7521 #define LT_OBJDIR "$lt_cv_objdir/"
adamc@1132 7522 _ACEOF
adamc@1132 7523
adamc@1132 7524
adamc@1132 7525
adamc@1132 7526
adam@1826 7527
adam@1826 7528
adam@1826 7529
adam@1826 7530
adam@1826 7531
adam@1826 7532
adam@1826 7533
adam@1826 7534
adam@1826 7535
adam@1826 7536
adam@1826 7537
adam@1826 7538
adam@1826 7539
adamc@1132 7540 case $host_os in
adamc@1132 7541 aix3*)
adamc@1132 7542 # AIX sometimes has problems with the GCC collect2 program. For some
adamc@1132 7543 # reason, if we set the COLLECT_NAMES environment variable, the problems
adamc@1132 7544 # vanish in a puff of smoke.
adamc@1132 7545 if test "X${COLLECT_NAMES+set}" != Xset; then
adamc@1132 7546 COLLECT_NAMES=
adamc@1132 7547 export COLLECT_NAMES
adamc@1132 7548 fi
adamc@1132 7549 ;;
adamc@1132 7550 esac
adamc@1132 7551
adam@1826 7552 # Sed substitution that helps us do robust quoting. It backslashifies
adam@1826 7553 # metacharacters that are still active within double-quoted strings.
adam@1826 7554 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
adam@1826 7555
adam@1826 7556 # Same as above, but do not quote variable references.
adam@1826 7557 double_quote_subst='s/\(["`\\]\)/\\\1/g'
adam@1826 7558
adam@1826 7559 # Sed substitution to delay expansion of an escaped shell variable in a
adam@1826 7560 # double_quote_subst'ed string.
adam@1826 7561 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
adam@1826 7562
adam@1826 7563 # Sed substitution to delay expansion of an escaped single quote.
adam@1826 7564 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
adam@1826 7565
adam@1826 7566 # Sed substitution to avoid accidental globbing in evaled expressions
adam@1826 7567 no_glob_subst='s/\*/\\\*/g'
adam@1826 7568
adamc@1132 7569 # Global variables:
adamc@1132 7570 ofile=libtool
adamc@1132 7571 can_build_shared=yes
adamc@1132 7572
adamc@1132 7573 # All known linkers require a `.a' archive for static linking (except MSVC,
adamc@1132 7574 # which needs '.lib').
adamc@1132 7575 libext=a
adamc@1132 7576
adamc@1132 7577 with_gnu_ld="$lt_cv_prog_gnu_ld"
adamc@1132 7578
adamc@1132 7579 old_CC="$CC"
adamc@1132 7580 old_CFLAGS="$CFLAGS"
adamc@1132 7581
adamc@1132 7582 # Set sane defaults for various variables
adamc@1132 7583 test -z "$CC" && CC=cc
adamc@1132 7584 test -z "$LTCC" && LTCC=$CC
adamc@1132 7585 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
adamc@1132 7586 test -z "$LD" && LD=ld
adamc@1132 7587 test -z "$ac_objext" && ac_objext=o
adamc@1132 7588
adamc@1132 7589 for cc_temp in $compiler""; do
adamc@1132 7590 case $cc_temp in
adamc@1132 7591 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
adamc@1132 7592 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
adamc@1132 7593 \-*) ;;
adamc@1132 7594 *) break;;
adamc@1132 7595 esac
adamc@1132 7596 done
adam@1826 7597 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
adamc@1132 7598
adamc@1132 7599
adamc@1132 7600 # Only perform the check for file, if the check method requires it
adamc@1132 7601 test -z "$MAGIC_CMD" && MAGIC_CMD=file
adamc@1132 7602 case $deplibs_check_method in
adamc@1132 7603 file_magic*)
adamc@1132 7604 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
adamc@1132 7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
adamc@1132 7606 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
adam@1826 7607 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
adamc@1132 7608 $as_echo_n "(cached) " >&6
adamc@1132 7609 else
adamc@1132 7610 case $MAGIC_CMD in
adamc@1132 7611 [\\/*] | ?:[\\/]*)
adamc@1132 7612 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
adamc@1132 7613 ;;
adamc@1132 7614 *)
adamc@1132 7615 lt_save_MAGIC_CMD="$MAGIC_CMD"
adamc@1132 7616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
adamc@1132 7617 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
adamc@1132 7618 for ac_dir in $ac_dummy; do
adamc@1132 7619 IFS="$lt_save_ifs"
adamc@1132 7620 test -z "$ac_dir" && ac_dir=.
adamc@1132 7621 if test -f $ac_dir/${ac_tool_prefix}file; then
adamc@1132 7622 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
adamc@1132 7623 if test -n "$file_magic_test_file"; then
adamc@1132 7624 case $deplibs_check_method in
adamc@1132 7625 "file_magic "*)
adamc@1132 7626 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
adamc@1132 7627 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
adamc@1132 7628 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
adamc@1132 7629 $EGREP "$file_magic_regex" > /dev/null; then
adamc@1132 7630 :
adamc@1132 7631 else
adamc@1132 7632 cat <<_LT_EOF 1>&2
adamc@1132 7633
adamc@1132 7634 *** Warning: the command libtool uses to detect shared libraries,
adamc@1132 7635 *** $file_magic_cmd, produces output that libtool cannot recognize.
adamc@1132 7636 *** The result is that libtool may fail to recognize shared libraries
adamc@1132 7637 *** as such. This will affect the creation of libtool libraries that
adamc@1132 7638 *** depend on shared libraries, but programs linked with such libtool
adamc@1132 7639 *** libraries will work regardless of this problem. Nevertheless, you
adamc@1132 7640 *** may want to report the problem to your system manager and/or to
adamc@1132 7641 *** bug-libtool@gnu.org
adamc@1132 7642
adamc@1132 7643 _LT_EOF
adamc@1132 7644 fi ;;
adamc@1132 7645 esac
adamc@1132 7646 fi
adamc@1132 7647 break
adamc@1132 7648 fi
adamc@1132 7649 done
adamc@1132 7650 IFS="$lt_save_ifs"
adamc@1132 7651 MAGIC_CMD="$lt_save_MAGIC_CMD"
adamc@1132 7652 ;;
adamc@1132 7653 esac
adamc@1132 7654 fi
adamc@1132 7655
adamc@1132 7656 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
adamc@1132 7657 if test -n "$MAGIC_CMD"; then
adamc@1132 7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
adamc@1132 7659 $as_echo "$MAGIC_CMD" >&6; }
adamc@1132 7660 else
adamc@1132 7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 7662 $as_echo "no" >&6; }
adamc@1132 7663 fi
adamc@1132 7664
adamc@1132 7665
adamc@1132 7666
adamc@1132 7667
adamc@1132 7668
adamc@1132 7669 if test -z "$lt_cv_path_MAGIC_CMD"; then
adamc@1132 7670 if test -n "$ac_tool_prefix"; then
adamc@1132 7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
adamc@1132 7672 $as_echo_n "checking for file... " >&6; }
adam@1826 7673 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
adamc@1132 7674 $as_echo_n "(cached) " >&6
adamc@1132 7675 else
adamc@1132 7676 case $MAGIC_CMD in
adamc@1132 7677 [\\/*] | ?:[\\/]*)
adamc@1132 7678 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
adamc@1132 7679 ;;
adamc@1132 7680 *)
adamc@1132 7681 lt_save_MAGIC_CMD="$MAGIC_CMD"
adamc@1132 7682 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
adamc@1132 7683 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
adamc@1132 7684 for ac_dir in $ac_dummy; do
adamc@1132 7685 IFS="$lt_save_ifs"
adamc@1132 7686 test -z "$ac_dir" && ac_dir=.
adamc@1132 7687 if test -f $ac_dir/file; then
adamc@1132 7688 lt_cv_path_MAGIC_CMD="$ac_dir/file"
adamc@1132 7689 if test -n "$file_magic_test_file"; then
adamc@1132 7690 case $deplibs_check_method in
adamc@1132 7691 "file_magic "*)
adamc@1132 7692 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
adamc@1132 7693 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
adamc@1132 7694 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
adamc@1132 7695 $EGREP "$file_magic_regex" > /dev/null; then
adamc@1132 7696 :
adamc@1132 7697 else
adamc@1132 7698 cat <<_LT_EOF 1>&2
adamc@1132 7699
adamc@1132 7700 *** Warning: the command libtool uses to detect shared libraries,
adamc@1132 7701 *** $file_magic_cmd, produces output that libtool cannot recognize.
adamc@1132 7702 *** The result is that libtool may fail to recognize shared libraries
adamc@1132 7703 *** as such. This will affect the creation of libtool libraries that
adamc@1132 7704 *** depend on shared libraries, but programs linked with such libtool
adamc@1132 7705 *** libraries will work regardless of this problem. Nevertheless, you
adamc@1132 7706 *** may want to report the problem to your system manager and/or to
adamc@1132 7707 *** bug-libtool@gnu.org
adamc@1132 7708
adamc@1132 7709 _LT_EOF
adamc@1132 7710 fi ;;
adamc@1132 7711 esac
adamc@1132 7712 fi
adamc@1132 7713 break
adamc@1132 7714 fi
adamc@1132 7715 done
adamc@1132 7716 IFS="$lt_save_ifs"
adamc@1132 7717 MAGIC_CMD="$lt_save_MAGIC_CMD"
adamc@1132 7718 ;;
adamc@1132 7719 esac
adamc@1132 7720 fi
adamc@1132 7721
adamc@1132 7722 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
adamc@1132 7723 if test -n "$MAGIC_CMD"; then
adamc@1132 7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
adamc@1132 7725 $as_echo "$MAGIC_CMD" >&6; }
adamc@1132 7726 else
adamc@1132 7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 7728 $as_echo "no" >&6; }
adamc@1132 7729 fi
adamc@1132 7730
adamc@1132 7731
adamc@1132 7732 else
adamc@1132 7733 MAGIC_CMD=:
adamc@1132 7734 fi
adamc@1132 7735 fi
adamc@1132 7736
adamc@1132 7737 fi
adamc@1132 7738 ;;
adamc@1132 7739 esac
adamc@1132 7740
adamc@1132 7741 # Use C for the default configuration in the libtool script
adamc@1132 7742
adamc@1132 7743 lt_save_CC="$CC"
adamc@1132 7744 ac_ext=c
adamc@1132 7745 ac_cpp='$CPP $CPPFLAGS'
adamc@1132 7746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adamc@1132 7747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adamc@1132 7748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adamc@1132 7749
adamc@1132 7750
adamc@1132 7751 # Source file extension for C test sources.
adamc@1132 7752 ac_ext=c
adamc@1132 7753
adamc@1132 7754 # Object file extension for compiled C test sources.
adamc@1132 7755 objext=o
adamc@1132 7756 objext=$objext
adamc@1132 7757
adamc@1132 7758 # Code to be used in simple compile tests
adamc@1132 7759 lt_simple_compile_test_code="int some_variable = 0;"
adamc@1132 7760
adamc@1132 7761 # Code to be used in simple link tests
adamc@1132 7762 lt_simple_link_test_code='int main(){return(0);}'
adamc@1132 7763
adamc@1132 7764
adamc@1132 7765
adamc@1132 7766
adamc@1132 7767
adamc@1132 7768
adamc@1132 7769
adamc@1132 7770 # If no C compiler was specified, use CC.
adamc@1132 7771 LTCC=${LTCC-"$CC"}
adamc@1132 7772
adamc@1132 7773 # If no C compiler flags were specified, use CFLAGS.
adamc@1132 7774 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
adamc@1132 7775
adamc@1132 7776 # Allow CC to be a program name with arguments.
adamc@1132 7777 compiler=$CC
adamc@1132 7778
adamc@1132 7779 # Save the default compiler, since it gets overwritten when the other
adamc@1132 7780 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
adamc@1132 7781 compiler_DEFAULT=$CC
adamc@1132 7782
adamc@1132 7783 # save warnings/boilerplate of simple test code
adamc@1132 7784 ac_outfile=conftest.$ac_objext
adamc@1132 7785 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
adamc@1132 7786 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
adamc@1132 7787 _lt_compiler_boilerplate=`cat conftest.err`
adamc@1132 7788 $RM conftest*
adamc@1132 7789
adamc@1132 7790 ac_outfile=conftest.$ac_objext
adamc@1132 7791 echo "$lt_simple_link_test_code" >conftest.$ac_ext
adamc@1132 7792 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
adamc@1132 7793 _lt_linker_boilerplate=`cat conftest.err`
adamc@1132 7794 $RM -r conftest*
adamc@1132 7795
adamc@1132 7796
adamc@1141 7797 ## CAVEAT EMPTOR:
adamc@1141 7798 ## There is no encapsulation within the following macros, do not change
adamc@1141 7799 ## the running order or otherwise move them around unless you know exactly
adamc@1141 7800 ## what you are doing...
adamc@1132 7801 if test -n "$compiler"; then
adamc@1132 7802
adamc@1132 7803 lt_prog_compiler_no_builtin_flag=
adamc@1132 7804
adamc@1132 7805 if test "$GCC" = yes; then
adam@1826 7806 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
adamc@1132 7807
adamc@1132 7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
adamc@1132 7809 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
adam@1826 7810 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
adamc@1132 7811 $as_echo_n "(cached) " >&6
adamc@1132 7812 else
adamc@1132 7813 lt_cv_prog_compiler_rtti_exceptions=no
adamc@1132 7814 ac_outfile=conftest.$ac_objext
adamc@1132 7815 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
adamc@1132 7816 lt_compiler_flag="-fno-rtti -fno-exceptions"
adamc@1132 7817 # Insert the option either (1) after the last *FLAGS variable, or
adamc@1132 7818 # (2) before a word containing "conftest.", or (3) at the end.
adamc@1132 7819 # Note that $ac_compile itself does not contain backslashes and begins
adamc@1132 7820 # with a dollar sign (not a hyphen), so the echo should work correctly.
adamc@1132 7821 # The option is referenced via a variable to avoid confusing sed.
adamc@1132 7822 lt_compile=`echo "$ac_compile" | $SED \
adamc@1132 7823 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
adamc@1132 7824 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
adamc@1132 7825 -e 's:$: $lt_compiler_flag:'`
adam@1838 7826 (eval echo "\"\$as_me:7826: $lt_compile\"" >&5)
adamc@1132 7827 (eval "$lt_compile" 2>conftest.err)
adamc@1132 7828 ac_status=$?
adamc@1132 7829 cat conftest.err >&5
adam@1838 7830 echo "$as_me:7830: \$? = $ac_status" >&5
adamc@1132 7831 if (exit $ac_status) && test -s "$ac_outfile"; then
adamc@1132 7832 # The compiler can only warn and ignore the option if not recognized
adamc@1132 7833 # So say no if there are warnings other than the usual output.
adam@1826 7834 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
adamc@1132 7835 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
adamc@1132 7836 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
adamc@1132 7837 lt_cv_prog_compiler_rtti_exceptions=yes
adamc@1132 7838 fi
adamc@1132 7839 fi
adamc@1132 7840 $RM conftest*
adamc@1132 7841
adamc@1132 7842 fi
adamc@1132 7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
adamc@1132 7844 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
adamc@1132 7845
adamc@1132 7846 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
adamc@1132 7847 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
adamc@1132 7848 else
adamc@1132 7849 :
adamc@1132 7850 fi
adamc@1132 7851
adamc@1132 7852 fi
adamc@1132 7853
adamc@1132 7854
adamc@1132 7855
adamc@1132 7856
adamc@1132 7857
adamc@1132 7858
adamc@1132 7859 lt_prog_compiler_wl=
adamc@1132 7860 lt_prog_compiler_pic=
adamc@1132 7861 lt_prog_compiler_static=
adamc@1132 7862
adam@1826 7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
adam@1826 7864 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
adamc@1132 7865
adamc@1132 7866 if test "$GCC" = yes; then
adamc@1132 7867 lt_prog_compiler_wl='-Wl,'
adamc@1132 7868 lt_prog_compiler_static='-static'
adamc@1132 7869
adamc@1132 7870 case $host_os in
adamc@1132 7871 aix*)
adamc@1132 7872 # All AIX code is PIC.
adamc@1132 7873 if test "$host_cpu" = ia64; then
adamc@1132 7874 # AIX 5 now supports IA64 processor
adamc@1132 7875 lt_prog_compiler_static='-Bstatic'
adamc@1132 7876 fi
adamc@1132 7877 ;;
adamc@1132 7878
adamc@1132 7879 amigaos*)
adamc@1132 7880 case $host_cpu in
adamc@1132 7881 powerpc)
adamc@1132 7882 # see comment about AmigaOS4 .so support
adamc@1132 7883 lt_prog_compiler_pic='-fPIC'
adamc@1132 7884 ;;
adamc@1132 7885 m68k)
adamc@1132 7886 # FIXME: we need at least 68020 code to build shared libraries, but
adamc@1132 7887 # adding the `-m68020' flag to GCC prevents building anything better,
adamc@1132 7888 # like `-m68040'.
adamc@1132 7889 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
adamc@1132 7890 ;;
adamc@1132 7891 esac
adamc@1132 7892 ;;
adamc@1132 7893
adamc@1132 7894 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
adamc@1132 7895 # PIC is the default for these OSes.
adamc@1132 7896 ;;
adamc@1132 7897
adamc@1132 7898 mingw* | cygwin* | pw32* | os2* | cegcc*)
adamc@1132 7899 # This hack is so that the source file can tell whether it is being
adamc@1132 7900 # built for inclusion in a dll (and should export symbols for example).
adamc@1132 7901 # Although the cygwin gcc ignores -fPIC, still need this for old-style
adamc@1132 7902 # (--disable-auto-import) libraries
adamc@1132 7903 lt_prog_compiler_pic='-DDLL_EXPORT'
adamc@1132 7904 ;;
adamc@1132 7905
adamc@1132 7906 darwin* | rhapsody*)
adamc@1132 7907 # PIC is the default on this platform
adamc@1132 7908 # Common symbols not allowed in MH_DYLIB files
adamc@1132 7909 lt_prog_compiler_pic='-fno-common'
adamc@1132 7910 ;;
adamc@1132 7911
adamc@1132 7912 hpux*)
adamc@1132 7913 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
adamc@1132 7914 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
adamc@1132 7915 # sets the default TLS model and affects inlining.
adamc@1132 7916 case $host_cpu in
adamc@1132 7917 hppa*64*)
adamc@1132 7918 # +Z the default
adamc@1132 7919 ;;
adamc@1132 7920 *)
adamc@1132 7921 lt_prog_compiler_pic='-fPIC'
adamc@1132 7922 ;;
adamc@1132 7923 esac
adamc@1132 7924 ;;
adamc@1132 7925
adamc@1132 7926 interix[3-9]*)
adamc@1132 7927 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
adamc@1132 7928 # Instead, we relocate shared libraries at runtime.
adamc@1132 7929 ;;
adamc@1132 7930
adamc@1132 7931 msdosdjgpp*)
adamc@1132 7932 # Just because we use GCC doesn't mean we suddenly get shared libraries
adamc@1132 7933 # on systems that don't support them.
adamc@1132 7934 lt_prog_compiler_can_build_shared=no
adamc@1132 7935 enable_shared=no
adamc@1132 7936 ;;
adamc@1132 7937
adamc@1132 7938 *nto* | *qnx*)
adamc@1132 7939 # QNX uses GNU C++, but need to define -shared option too, otherwise
adamc@1132 7940 # it will coredump.
adamc@1132 7941 lt_prog_compiler_pic='-fPIC -shared'
adamc@1132 7942 ;;
adamc@1132 7943
adamc@1132 7944 sysv4*MP*)
adamc@1132 7945 if test -d /usr/nec; then
adamc@1132 7946 lt_prog_compiler_pic=-Kconform_pic
adamc@1132 7947 fi
adamc@1132 7948 ;;
adamc@1132 7949
adamc@1132 7950 *)
adamc@1132 7951 lt_prog_compiler_pic='-fPIC'
adamc@1132 7952 ;;
adamc@1132 7953 esac
adamc@1132 7954 else
adamc@1132 7955 # PORTME Check for flag to pass linker flags through the system compiler.
adamc@1132 7956 case $host_os in
adamc@1132 7957 aix*)
adamc@1132 7958 lt_prog_compiler_wl='-Wl,'
adamc@1132 7959 if test "$host_cpu" = ia64; then
adamc@1132 7960 # AIX 5 now supports IA64 processor
adamc@1132 7961 lt_prog_compiler_static='-Bstatic'
adamc@1132 7962 else
adamc@1132 7963 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
adamc@1132 7964 fi
adamc@1132 7965 ;;
adamc@1132 7966
adamc@1132 7967 mingw* | cygwin* | pw32* | os2* | cegcc*)
adamc@1132 7968 # This hack is so that the source file can tell whether it is being
adamc@1132 7969 # built for inclusion in a dll (and should export symbols for example).
adamc@1132 7970 lt_prog_compiler_pic='-DDLL_EXPORT'
adamc@1132 7971 ;;
adamc@1132 7972
adamc@1132 7973 hpux9* | hpux10* | hpux11*)
adamc@1132 7974 lt_prog_compiler_wl='-Wl,'
adamc@1132 7975 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
adamc@1132 7976 # not for PA HP-UX.
adamc@1132 7977 case $host_cpu in
adamc@1132 7978 hppa*64*|ia64*)
adamc@1132 7979 # +Z the default
adamc@1132 7980 ;;
adamc@1132 7981 *)
adamc@1132 7982 lt_prog_compiler_pic='+Z'
adamc@1132 7983 ;;
adamc@1132 7984 esac
adamc@1132 7985 # Is there a better lt_prog_compiler_static that works with the bundled CC?
adamc@1132 7986 lt_prog_compiler_static='${wl}-a ${wl}archive'
adamc@1132 7987 ;;
adamc@1132 7988
adamc@1132 7989 irix5* | irix6* | nonstopux*)
adamc@1132 7990 lt_prog_compiler_wl='-Wl,'
adamc@1132 7991 # PIC (with -KPIC) is the default.
adamc@1132 7992 lt_prog_compiler_static='-non_shared'
adamc@1132 7993 ;;
adamc@1132 7994
adam@1826 7995 linux* | k*bsd*-gnu | kopensolaris*-gnu)
adamc@1132 7996 case $cc_basename in
adamc@1132 7997 # old Intel for x86_64 which still supported -KPIC.
adamc@1132 7998 ecc*)
adamc@1132 7999 lt_prog_compiler_wl='-Wl,'
adamc@1132 8000 lt_prog_compiler_pic='-KPIC'
adamc@1132 8001 lt_prog_compiler_static='-static'
adamc@1132 8002 ;;
adamc@1132 8003 # icc used to be incompatible with GCC.
adamc@1132 8004 # ICC 10 doesn't accept -KPIC any more.
adamc@1132 8005 icc* | ifort*)
adamc@1132 8006 lt_prog_compiler_wl='-Wl,'
adamc@1132 8007 lt_prog_compiler_pic='-fPIC'
adamc@1132 8008 lt_prog_compiler_static='-static'
adamc@1132 8009 ;;
adamc@1132 8010 # Lahey Fortran 8.1.
adamc@1132 8011 lf95*)
adamc@1132 8012 lt_prog_compiler_wl='-Wl,'
adamc@1132 8013 lt_prog_compiler_pic='--shared'
adamc@1132 8014 lt_prog_compiler_static='--static'
adamc@1132 8015 ;;
adam@1826 8016 pgcc* | pgf77* | pgf90* | pgf95*)
adamc@1132 8017 # Portland Group compilers (*not* the Pentium gcc compiler,
adamc@1132 8018 # which looks to be a dead project)
adamc@1132 8019 lt_prog_compiler_wl='-Wl,'
adamc@1132 8020 lt_prog_compiler_pic='-fpic'
adamc@1132 8021 lt_prog_compiler_static='-Bstatic'
adamc@1132 8022 ;;
adamc@1132 8023 ccc*)
adamc@1132 8024 lt_prog_compiler_wl='-Wl,'
adamc@1132 8025 # All Alpha code is PIC.
adamc@1132 8026 lt_prog_compiler_static='-non_shared'
adamc@1132 8027 ;;
adam@1826 8028 xl*)
adam@1826 8029 # IBM XL C 8.0/Fortran 10.1 on PPC
adamc@1132 8030 lt_prog_compiler_wl='-Wl,'
adamc@1132 8031 lt_prog_compiler_pic='-qpic'
adamc@1132 8032 lt_prog_compiler_static='-qstaticlink'
adamc@1132 8033 ;;
adamc@1132 8034 *)
adamc@1132 8035 case `$CC -V 2>&1 | sed 5q` in
adamc@1132 8036 *Sun\ C*)
adamc@1132 8037 # Sun C 5.9
adamc@1132 8038 lt_prog_compiler_pic='-KPIC'
adamc@1132 8039 lt_prog_compiler_static='-Bstatic'
adamc@1132 8040 lt_prog_compiler_wl='-Wl,'
adamc@1132 8041 ;;
adam@1826 8042 *Sun\ F*)
adam@1826 8043 # Sun Fortran 8.3 passes all unrecognized flags to the linker
adam@1826 8044 lt_prog_compiler_pic='-KPIC'
adam@1599 8045 lt_prog_compiler_static='-Bstatic'
adam@1826 8046 lt_prog_compiler_wl=''
adam@1599 8047 ;;
adamc@1132 8048 esac
adamc@1132 8049 ;;
adamc@1132 8050 esac
adamc@1132 8051 ;;
adamc@1132 8052
adamc@1132 8053 newsos6)
adamc@1132 8054 lt_prog_compiler_pic='-KPIC'
adamc@1132 8055 lt_prog_compiler_static='-Bstatic'
adamc@1132 8056 ;;
adamc@1132 8057
adamc@1132 8058 *nto* | *qnx*)
adamc@1132 8059 # QNX uses GNU C++, but need to define -shared option too, otherwise
adamc@1132 8060 # it will coredump.
adamc@1132 8061 lt_prog_compiler_pic='-fPIC -shared'
adamc@1132 8062 ;;
adamc@1132 8063
adamc@1132 8064 osf3* | osf4* | osf5*)
adamc@1132 8065 lt_prog_compiler_wl='-Wl,'
adamc@1132 8066 # All OSF/1 code is PIC.
adamc@1132 8067 lt_prog_compiler_static='-non_shared'
adamc@1132 8068 ;;
adamc@1132 8069
adamc@1132 8070 rdos*)
adamc@1132 8071 lt_prog_compiler_static='-non_shared'
adamc@1132 8072 ;;
adamc@1132 8073
adamc@1132 8074 solaris*)
adamc@1132 8075 lt_prog_compiler_pic='-KPIC'
adamc@1132 8076 lt_prog_compiler_static='-Bstatic'
adamc@1132 8077 case $cc_basename in
adam@1826 8078 f77* | f90* | f95*)
adamc@1132 8079 lt_prog_compiler_wl='-Qoption ld ';;
adamc@1132 8080 *)
adamc@1132 8081 lt_prog_compiler_wl='-Wl,';;
adamc@1132 8082 esac
adamc@1132 8083 ;;
adamc@1132 8084
adamc@1132 8085 sunos4*)
adamc@1132 8086 lt_prog_compiler_wl='-Qoption ld '
adamc@1132 8087 lt_prog_compiler_pic='-PIC'
adamc@1132 8088 lt_prog_compiler_static='-Bstatic'
adamc@1132 8089 ;;
adamc@1132 8090
adamc@1132 8091 sysv4 | sysv4.2uw2* | sysv4.3*)
adamc@1132 8092 lt_prog_compiler_wl='-Wl,'
adamc@1132 8093 lt_prog_compiler_pic='-KPIC'
adamc@1132 8094 lt_prog_compiler_static='-Bstatic'
adamc@1132 8095 ;;
adamc@1132 8096
adamc@1132 8097 sysv4*MP*)
adamc@1132 8098 if test -d /usr/nec ;then
adamc@1132 8099 lt_prog_compiler_pic='-Kconform_pic'
adamc@1132 8100 lt_prog_compiler_static='-Bstatic'
adamc@1132 8101 fi
adamc@1132 8102 ;;
adamc@1132 8103
adamc@1132 8104 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
adamc@1132 8105 lt_prog_compiler_wl='-Wl,'
adamc@1132 8106 lt_prog_compiler_pic='-KPIC'
adamc@1132 8107 lt_prog_compiler_static='-Bstatic'
adamc@1132 8108 ;;
adamc@1132 8109
adamc@1132 8110 unicos*)
adamc@1132 8111 lt_prog_compiler_wl='-Wl,'
adamc@1132 8112 lt_prog_compiler_can_build_shared=no
adamc@1132 8113 ;;
adamc@1132 8114
adamc@1132 8115 uts4*)
adamc@1132 8116 lt_prog_compiler_pic='-pic'
adamc@1132 8117 lt_prog_compiler_static='-Bstatic'
adamc@1132 8118 ;;
adamc@1132 8119
adamc@1132 8120 *)
adamc@1132 8121 lt_prog_compiler_can_build_shared=no
adamc@1132 8122 ;;
adamc@1132 8123 esac
adamc@1132 8124 fi
adamc@1132 8125
adamc@1132 8126 case $host_os in
adamc@1132 8127 # For platforms which do not support PIC, -DPIC is meaningless:
adamc@1132 8128 *djgpp*)
adamc@1132 8129 lt_prog_compiler_pic=
adamc@1132 8130 ;;
adamc@1132 8131 *)
adamc@1132 8132 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
adamc@1132 8133 ;;
adamc@1132 8134 esac
adam@1826 8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
adam@1826 8136 $as_echo "$lt_prog_compiler_pic" >&6; }
adam@1826 8137
adam@1826 8138
adam@1826 8139
adam@1826 8140
adam@1826 8141
adamc@1132 8142
adamc@1132 8143 #
adamc@1132 8144 # Check to make sure the PIC flag actually works.
adamc@1132 8145 #
adamc@1132 8146 if test -n "$lt_prog_compiler_pic"; then
adamc@1132 8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
adamc@1132 8148 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
adam@1826 8149 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
adamc@1132 8150 $as_echo_n "(cached) " >&6
adamc@1132 8151 else
adamc@1132 8152 lt_cv_prog_compiler_pic_works=no
adamc@1132 8153 ac_outfile=conftest.$ac_objext
adamc@1132 8154 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
adamc@1132 8155 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
adamc@1132 8156 # Insert the option either (1) after the last *FLAGS variable, or
adamc@1132 8157 # (2) before a word containing "conftest.", or (3) at the end.
adamc@1132 8158 # Note that $ac_compile itself does not contain backslashes and begins
adamc@1132 8159 # with a dollar sign (not a hyphen), so the echo should work correctly.
adamc@1132 8160 # The option is referenced via a variable to avoid confusing sed.
adamc@1132 8161 lt_compile=`echo "$ac_compile" | $SED \
adamc@1132 8162 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
adamc@1132 8163 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
adamc@1132 8164 -e 's:$: $lt_compiler_flag:'`
adam@1838 8165 (eval echo "\"\$as_me:8165: $lt_compile\"" >&5)
adamc@1132 8166 (eval "$lt_compile" 2>conftest.err)
adamc@1132 8167 ac_status=$?
adamc@1132 8168 cat conftest.err >&5
adam@1838 8169 echo "$as_me:8169: \$? = $ac_status" >&5
adamc@1132 8170 if (exit $ac_status) && test -s "$ac_outfile"; then
adamc@1132 8171 # The compiler can only warn and ignore the option if not recognized
adamc@1132 8172 # So say no if there are warnings other than the usual output.
adam@1826 8173 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
adamc@1132 8174 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
adamc@1132 8175 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
adamc@1132 8176 lt_cv_prog_compiler_pic_works=yes
adamc@1132 8177 fi
adamc@1132 8178 fi
adamc@1132 8179 $RM conftest*
adamc@1132 8180
adamc@1132 8181 fi
adamc@1132 8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
adamc@1132 8183 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
adamc@1132 8184
adamc@1132 8185 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
adamc@1132 8186 case $lt_prog_compiler_pic in
adamc@1132 8187 "" | " "*) ;;
adamc@1132 8188 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
adamc@1132 8189 esac
adamc@1132 8190 else
adamc@1132 8191 lt_prog_compiler_pic=
adamc@1132 8192 lt_prog_compiler_can_build_shared=no
adamc@1132 8193 fi
adamc@1132 8194
adamc@1132 8195 fi
adamc@1132 8196
adamc@1132 8197
adamc@1132 8198
adamc@1132 8199
adamc@1132 8200
adamc@1132 8201
adamc@1132 8202 #
adamc@1132 8203 # Check to make sure the static flag actually works.
adamc@1132 8204 #
adamc@1132 8205 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
adamc@1132 8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
adamc@1132 8207 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
adam@1826 8208 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
adamc@1132 8209 $as_echo_n "(cached) " >&6
adamc@1132 8210 else
adamc@1132 8211 lt_cv_prog_compiler_static_works=no
adamc@1132 8212 save_LDFLAGS="$LDFLAGS"
adamc@1132 8213 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
adamc@1132 8214 echo "$lt_simple_link_test_code" > conftest.$ac_ext
adamc@1132 8215 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
adamc@1132 8216 # The linker can only warn and ignore the option if not recognized
adamc@1132 8217 # So say no if there are warnings
adamc@1132 8218 if test -s conftest.err; then
adamc@1132 8219 # Append any errors to the config.log.
adamc@1132 8220 cat conftest.err 1>&5
adam@1826 8221 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
adamc@1132 8222 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
adamc@1132 8223 if diff conftest.exp conftest.er2 >/dev/null; then
adamc@1132 8224 lt_cv_prog_compiler_static_works=yes
adamc@1132 8225 fi
adamc@1132 8226 else
adamc@1132 8227 lt_cv_prog_compiler_static_works=yes
adamc@1132 8228 fi
adamc@1132 8229 fi
adamc@1132 8230 $RM -r conftest*
adamc@1132 8231 LDFLAGS="$save_LDFLAGS"
adamc@1132 8232
adamc@1132 8233 fi
adamc@1132 8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
adamc@1132 8235 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
adamc@1132 8236
adamc@1132 8237 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
adamc@1132 8238 :
adamc@1132 8239 else
adamc@1132 8240 lt_prog_compiler_static=
adamc@1132 8241 fi
adamc@1132 8242
adamc@1132 8243
adamc@1132 8244
adamc@1132 8245
adamc@1132 8246
adamc@1132 8247
adamc@1132 8248
adamc@1132 8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
adamc@1132 8250 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
adam@1826 8251 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
adamc@1132 8252 $as_echo_n "(cached) " >&6
adamc@1132 8253 else
adamc@1132 8254 lt_cv_prog_compiler_c_o=no
adamc@1132 8255 $RM -r conftest 2>/dev/null
adamc@1132 8256 mkdir conftest
adamc@1132 8257 cd conftest
adamc@1132 8258 mkdir out
adamc@1132 8259 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
adamc@1132 8260
adamc@1132 8261 lt_compiler_flag="-o out/conftest2.$ac_objext"
adamc@1132 8262 # Insert the option either (1) after the last *FLAGS variable, or
adamc@1132 8263 # (2) before a word containing "conftest.", or (3) at the end.
adamc@1132 8264 # Note that $ac_compile itself does not contain backslashes and begins
adamc@1132 8265 # with a dollar sign (not a hyphen), so the echo should work correctly.
adamc@1132 8266 lt_compile=`echo "$ac_compile" | $SED \
adamc@1132 8267 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
adamc@1132 8268 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
adamc@1132 8269 -e 's:$: $lt_compiler_flag:'`
adam@1838 8270 (eval echo "\"\$as_me:8270: $lt_compile\"" >&5)
adamc@1132 8271 (eval "$lt_compile" 2>out/conftest.err)
adamc@1132 8272 ac_status=$?
adamc@1132 8273 cat out/conftest.err >&5
adam@1838 8274 echo "$as_me:8274: \$? = $ac_status" >&5
adamc@1132 8275 if (exit $ac_status) && test -s out/conftest2.$ac_objext
adamc@1132 8276 then
adamc@1132 8277 # The compiler can only warn and ignore the option if not recognized
adamc@1132 8278 # So say no if there are warnings
adam@1826 8279 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
adamc@1132 8280 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
adamc@1132 8281 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
adamc@1132 8282 lt_cv_prog_compiler_c_o=yes
adamc@1132 8283 fi
adamc@1132 8284 fi
adamc@1132 8285 chmod u+w . 2>&5
adamc@1132 8286 $RM conftest*
adamc@1132 8287 # SGI C++ compiler will create directory out/ii_files/ for
adamc@1132 8288 # template instantiation
adamc@1132 8289 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
adamc@1132 8290 $RM out/* && rmdir out
adamc@1132 8291 cd ..
adamc@1132 8292 $RM -r conftest
adamc@1132 8293 $RM conftest*
adamc@1132 8294
adamc@1132 8295 fi
adamc@1132 8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
adamc@1132 8297 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
adamc@1132 8298
adamc@1132 8299
adamc@1132 8300
adamc@1132 8301
adamc@1132 8302
adamc@1132 8303
adamc@1132 8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
adamc@1132 8305 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
adam@1826 8306 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
adamc@1132 8307 $as_echo_n "(cached) " >&6
adamc@1132 8308 else
adamc@1132 8309 lt_cv_prog_compiler_c_o=no
adamc@1132 8310 $RM -r conftest 2>/dev/null
adamc@1132 8311 mkdir conftest
adamc@1132 8312 cd conftest
adamc@1132 8313 mkdir out
adamc@1132 8314 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
adamc@1132 8315
adamc@1132 8316 lt_compiler_flag="-o out/conftest2.$ac_objext"
adamc@1132 8317 # Insert the option either (1) after the last *FLAGS variable, or
adamc@1132 8318 # (2) before a word containing "conftest.", or (3) at the end.
adamc@1132 8319 # Note that $ac_compile itself does not contain backslashes and begins
adamc@1132 8320 # with a dollar sign (not a hyphen), so the echo should work correctly.
adamc@1132 8321 lt_compile=`echo "$ac_compile" | $SED \
adamc@1132 8322 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
adamc@1132 8323 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
adamc@1132 8324 -e 's:$: $lt_compiler_flag:'`
adam@1838 8325 (eval echo "\"\$as_me:8325: $lt_compile\"" >&5)
adamc@1132 8326 (eval "$lt_compile" 2>out/conftest.err)
adamc@1132 8327 ac_status=$?
adamc@1132 8328 cat out/conftest.err >&5
adam@1838 8329 echo "$as_me:8329: \$? = $ac_status" >&5
adamc@1132 8330 if (exit $ac_status) && test -s out/conftest2.$ac_objext
adamc@1132 8331 then
adamc@1132 8332 # The compiler can only warn and ignore the option if not recognized
adamc@1132 8333 # So say no if there are warnings
adam@1826 8334 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
adamc@1132 8335 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
adamc@1132 8336 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
adamc@1132 8337 lt_cv_prog_compiler_c_o=yes
adamc@1132 8338 fi
adamc@1132 8339 fi
adamc@1132 8340 chmod u+w . 2>&5
adamc@1132 8341 $RM conftest*
adamc@1132 8342 # SGI C++ compiler will create directory out/ii_files/ for
adamc@1132 8343 # template instantiation
adamc@1132 8344 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
adamc@1132 8345 $RM out/* && rmdir out
adamc@1132 8346 cd ..
adamc@1132 8347 $RM -r conftest
adamc@1132 8348 $RM conftest*
adamc@1132 8349
adamc@1132 8350 fi
adamc@1132 8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
adamc@1132 8352 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
adamc@1132 8353
adamc@1132 8354
adamc@1132 8355
adamc@1132 8356
adamc@1132 8357 hard_links="nottested"
adamc@1132 8358 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
adamc@1132 8359 # do not overwrite the value of need_locks provided by the user
adamc@1132 8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
adamc@1132 8361 $as_echo_n "checking if we can lock with hard links... " >&6; }
adamc@1132 8362 hard_links=yes
adamc@1132 8363 $RM conftest*
adamc@1132 8364 ln conftest.a conftest.b 2>/dev/null && hard_links=no
adamc@1132 8365 touch conftest.a
adamc@1132 8366 ln conftest.a conftest.b 2>&5 || hard_links=no
adamc@1132 8367 ln conftest.a conftest.b 2>/dev/null && hard_links=no
adamc@1132 8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
adamc@1132 8369 $as_echo "$hard_links" >&6; }
adamc@1132 8370 if test "$hard_links" = no; then
adamc@1132 8371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
adamc@1132 8372 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
adamc@1132 8373 need_locks=warn
adamc@1132 8374 fi
adamc@1132 8375 else
adamc@1132 8376 need_locks=no
adamc@1132 8377 fi
adamc@1132 8378
adamc@1132 8379
adamc@1132 8380
adamc@1132 8381
adamc@1132 8382
adamc@1132 8383
adamc@1132 8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
adamc@1132 8385 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
adamc@1132 8386
adamc@1132 8387 runpath_var=
adamc@1132 8388 allow_undefined_flag=
adamc@1132 8389 always_export_symbols=no
adamc@1132 8390 archive_cmds=
adamc@1132 8391 archive_expsym_cmds=
adamc@1132 8392 compiler_needs_object=no
adamc@1132 8393 enable_shared_with_static_runtimes=no
adamc@1132 8394 export_dynamic_flag_spec=
adamc@1132 8395 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
adamc@1132 8396 hardcode_automatic=no
adamc@1132 8397 hardcode_direct=no
adamc@1132 8398 hardcode_direct_absolute=no
adamc@1132 8399 hardcode_libdir_flag_spec=
adam@1826 8400 hardcode_libdir_flag_spec_ld=
adamc@1132 8401 hardcode_libdir_separator=
adamc@1132 8402 hardcode_minus_L=no
adamc@1132 8403 hardcode_shlibpath_var=unsupported
adamc@1132 8404 inherit_rpath=no
adamc@1132 8405 link_all_deplibs=unknown
adamc@1132 8406 module_cmds=
adamc@1132 8407 module_expsym_cmds=
adamc@1132 8408 old_archive_from_new_cmds=
adamc@1132 8409 old_archive_from_expsyms_cmds=
adamc@1132 8410 thread_safe_flag_spec=
adamc@1132 8411 whole_archive_flag_spec=
adamc@1132 8412 # include_expsyms should be a list of space-separated symbols to be *always*
adamc@1132 8413 # included in the symbol list
adamc@1132 8414 include_expsyms=
adamc@1132 8415 # exclude_expsyms can be an extended regexp of symbols to exclude
adamc@1132 8416 # it will be wrapped by ` (' and `)$', so one must not match beginning or
adamc@1132 8417 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
adamc@1132 8418 # as well as any symbol that contains `d'.
adamc@1132 8419 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
adamc@1132 8420 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
adamc@1132 8421 # platforms (ab)use it in PIC code, but their linkers get confused if
adamc@1132 8422 # the symbol is explicitly referenced. Since portable code cannot
adamc@1132 8423 # rely on this symbol name, it's probably fine to never include it in
adamc@1132 8424 # preloaded symbol tables.
adamc@1132 8425 # Exclude shared library initialization/finalization symbols.
adamc@1132 8426 extract_expsyms_cmds=
adamc@1132 8427
adamc@1132 8428 case $host_os in
adamc@1132 8429 cygwin* | mingw* | pw32* | cegcc*)
adamc@1132 8430 # FIXME: the MSVC++ port hasn't been tested in a loooong time
adamc@1132 8431 # When not using gcc, we currently assume that we are using
adamc@1132 8432 # Microsoft Visual C++.
adamc@1132 8433 if test "$GCC" != yes; then
adamc@1132 8434 with_gnu_ld=no
adamc@1132 8435 fi
adamc@1132 8436 ;;
adamc@1132 8437 interix*)
adamc@1132 8438 # we just hope/assume this is gcc and not c89 (= MSVC++)
adamc@1132 8439 with_gnu_ld=yes
adamc@1132 8440 ;;
adamc@1132 8441 openbsd*)
adamc@1132 8442 with_gnu_ld=no
adamc@1132 8443 ;;
adam@1826 8444 linux* | k*bsd*-gnu)
adamc@1132 8445 link_all_deplibs=no
adamc@1132 8446 ;;
adamc@1132 8447 esac
adamc@1132 8448
adamc@1132 8449 ld_shlibs=yes
adamc@1132 8450 if test "$with_gnu_ld" = yes; then
adamc@1132 8451 # If archive_cmds runs LD, not CC, wlarc should be empty
adamc@1132 8452 wlarc='${wl}'
adamc@1132 8453
adamc@1132 8454 # Set some defaults for GNU ld with shared library support. These
adamc@1132 8455 # are reset later if shared libraries are not supported. Putting them
adamc@1132 8456 # here allows them to be overridden if necessary.
adamc@1132 8457 runpath_var=LD_RUN_PATH
adamc@1132 8458 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
adamc@1132 8459 export_dynamic_flag_spec='${wl}--export-dynamic'
adamc@1132 8460 # ancient GNU ld didn't support --whole-archive et. al.
adamc@1132 8461 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
adamc@1132 8462 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
adamc@1132 8463 else
adamc@1132 8464 whole_archive_flag_spec=
adamc@1132 8465 fi
adamc@1132 8466 supports_anon_versioning=no
adamc@1132 8467 case `$LD -v 2>&1` in
adamc@1132 8468 *GNU\ gold*) supports_anon_versioning=yes ;;
adamc@1132 8469 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
adamc@1132 8470 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
adamc@1132 8471 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
adamc@1132 8472 *\ 2.11.*) ;; # other 2.11 versions
adamc@1132 8473 *) supports_anon_versioning=yes ;;
adamc@1132 8474 esac
adamc@1132 8475
adamc@1132 8476 # See if GNU ld supports shared libraries.
adamc@1132 8477 case $host_os in
adamc@1132 8478 aix[3-9]*)
adamc@1132 8479 # On AIX/PPC, the GNU linker is very broken
adamc@1132 8480 if test "$host_cpu" != ia64; then
adamc@1132 8481 ld_shlibs=no
adamc@1132 8482 cat <<_LT_EOF 1>&2
adamc@1132 8483
adam@1826 8484 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
adamc@1132 8485 *** to be unable to reliably create shared libraries on AIX.
adamc@1132 8486 *** Therefore, libtool is disabling shared libraries support. If you
adam@1826 8487 *** really care for shared libraries, you may want to modify your PATH
adam@1826 8488 *** so that a non-GNU linker is found, and then restart.
adamc@1132 8489
adamc@1132 8490 _LT_EOF
adamc@1132 8491 fi
adamc@1132 8492 ;;
adamc@1132 8493
adamc@1132 8494 amigaos*)
adamc@1132 8495 case $host_cpu in
adamc@1132 8496 powerpc)
adamc@1132 8497 # see comment about AmigaOS4 .so support
adamc@1132 8498 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
adamc@1132 8499 archive_expsym_cmds=''
adamc@1132 8500 ;;
adamc@1132 8501 m68k)
adamc@1132 8502 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 8503 hardcode_libdir_flag_spec='-L$libdir'
adamc@1132 8504 hardcode_minus_L=yes
adamc@1132 8505 ;;
adamc@1132 8506 esac
adamc@1132 8507 ;;
adamc@1132 8508
adamc@1132 8509 beos*)
adamc@1132 8510 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
adamc@1132 8511 allow_undefined_flag=unsupported
adamc@1132 8512 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
adamc@1132 8513 # support --undefined. This deserves some investigation. FIXME
adamc@1132 8514 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
adamc@1132 8515 else
adamc@1132 8516 ld_shlibs=no
adamc@1132 8517 fi
adamc@1132 8518 ;;
adamc@1132 8519
adamc@1132 8520 cygwin* | mingw* | pw32* | cegcc*)
adamc@1132 8521 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
adamc@1132 8522 # as there is no search path for DLLs.
adamc@1132 8523 hardcode_libdir_flag_spec='-L$libdir'
adamc@1132 8524 allow_undefined_flag=unsupported
adamc@1132 8525 always_export_symbols=no
adamc@1132 8526 enable_shared_with_static_runtimes=yes
adam@1826 8527 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 8528
adamc@1132 8529 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
adamc@1132 8530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
adamc@1132 8531 # If the export-symbols file already is a .def file (1st line
adamc@1132 8532 # is EXPORTS), use it as is; otherwise, prepend...
adamc@1132 8533 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
adamc@1132 8534 cp $export_symbols $output_objdir/$soname.def;
adamc@1132 8535 else
adamc@1132 8536 echo EXPORTS > $output_objdir/$soname.def;
adamc@1132 8537 cat $export_symbols >> $output_objdir/$soname.def;
adamc@1132 8538 fi~
adamc@1132 8539 $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 8540 else
adamc@1132 8541 ld_shlibs=no
adamc@1132 8542 fi
adamc@1132 8543 ;;
adamc@1132 8544
adamc@1132 8545 interix[3-9]*)
adamc@1132 8546 hardcode_direct=no
adamc@1132 8547 hardcode_shlibpath_var=no
adamc@1132 8548 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
adamc@1132 8549 export_dynamic_flag_spec='${wl}-E'
adamc@1132 8550 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
adamc@1132 8551 # Instead, shared libraries are loaded at an image base (0x10000000 by
adamc@1132 8552 # default) and relocated if they conflict, which is a slow very memory
adamc@1132 8553 # consuming and fragmenting process. To avoid this, we pick a random,
adamc@1132 8554 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
adamc@1132 8555 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
adamc@1132 8556 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 8557 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 8558 ;;
adamc@1132 8559
adamc@1132 8560 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
adamc@1132 8561 tmp_diet=no
adamc@1132 8562 if test "$host_os" = linux-dietlibc; then
adamc@1132 8563 case $cc_basename in
adamc@1132 8564 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
adamc@1132 8565 esac
adamc@1132 8566 fi
adamc@1132 8567 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
adamc@1132 8568 && test "$tmp_diet" = no
adamc@1132 8569 then
adam@1826 8570 tmp_addflag=
adamc@1132 8571 tmp_sharedflag='-shared'
adamc@1132 8572 case $cc_basename,$host_cpu in
adamc@1132 8573 pgcc*) # Portland Group C compiler
adam@1826 8574 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 8575 tmp_addflag=' $pic_flag'
adamc@1132 8576 ;;
adam@1826 8577 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
adam@1826 8578 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 8579 tmp_addflag=' $pic_flag -Mnomain' ;;
adamc@1132 8580 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
adamc@1132 8581 tmp_addflag=' -i_dynamic' ;;
adamc@1132 8582 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
adamc@1132 8583 tmp_addflag=' -i_dynamic -nofor_main' ;;
adamc@1132 8584 ifc* | ifort*) # Intel Fortran compiler
adamc@1132 8585 tmp_addflag=' -nofor_main' ;;
adamc@1132 8586 lf95*) # Lahey Fortran 8.1
adamc@1132 8587 whole_archive_flag_spec=
adamc@1132 8588 tmp_sharedflag='--shared' ;;
adam@1826 8589 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
adamc@1132 8590 tmp_sharedflag='-qmkshrobj'
adamc@1132 8591 tmp_addflag= ;;
adamc@1132 8592 esac
adamc@1132 8593 case `$CC -V 2>&1 | sed 5q` in
adamc@1132 8594 *Sun\ C*) # Sun C 5.9
adam@1826 8595 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 8596 compiler_needs_object=yes
adamc@1132 8597 tmp_sharedflag='-G' ;;
adamc@1132 8598 *Sun\ F*) # Sun Fortran 8.3
adamc@1132 8599 tmp_sharedflag='-G' ;;
adamc@1132 8600 esac
adamc@1132 8601 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
adamc@1132 8602
adamc@1132 8603 if test "x$supports_anon_versioning" = xyes; then
adamc@1132 8604 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
adamc@1132 8605 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
adamc@1132 8606 echo "local: *; };" >> $output_objdir/$libname.ver~
adamc@1132 8607 $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 8608 fi
adamc@1132 8609
adamc@1132 8610 case $cc_basename in
adam@1826 8611 xlf*)
adamc@1132 8612 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
adamc@1132 8613 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
adam@1826 8614 hardcode_libdir_flag_spec=
adam@1826 8615 hardcode_libdir_flag_spec_ld='-rpath $libdir'
adam@1826 8616 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
adamc@1132 8617 if test "x$supports_anon_versioning" = xyes; then
adamc@1132 8618 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
adamc@1132 8619 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
adamc@1132 8620 echo "local: *; };" >> $output_objdir/$libname.ver~
adam@1826 8621 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
adamc@1132 8622 fi
adamc@1132 8623 ;;
adamc@1132 8624 esac
adamc@1132 8625 else
adamc@1132 8626 ld_shlibs=no
adamc@1132 8627 fi
adamc@1132 8628 ;;
adamc@1132 8629
adamc@1132 8630 netbsd* | netbsdelf*-gnu)
adamc@1132 8631 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
adamc@1132 8632 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
adamc@1132 8633 wlarc=
adamc@1132 8634 else
adam@1826 8635 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
adam@1826 8636 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
adamc@1132 8637 fi
adamc@1132 8638 ;;
adamc@1132 8639
adamc@1132 8640 solaris*)
adamc@1132 8641 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
adamc@1132 8642 ld_shlibs=no
adamc@1132 8643 cat <<_LT_EOF 1>&2
adamc@1132 8644
adamc@1132 8645 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
adamc@1132 8646 *** create shared libraries on Solaris systems. Therefore, libtool
adamc@1132 8647 *** is disabling shared libraries support. We urge you to upgrade GNU
adamc@1132 8648 *** binutils to release 2.9.1 or newer. Another option is to modify
adamc@1132 8649 *** your PATH or compiler configuration so that the native linker is
adamc@1132 8650 *** used, and then restart.
adamc@1132 8651
adamc@1132 8652 _LT_EOF
adamc@1132 8653 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
adam@1826 8654 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
adam@1826 8655 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
adamc@1132 8656 else
adamc@1132 8657 ld_shlibs=no
adamc@1132 8658 fi
adamc@1132 8659 ;;
adamc@1132 8660
adamc@1132 8661 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
adamc@1132 8662 case `$LD -v 2>&1` in
adamc@1132 8663 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
adamc@1132 8664 ld_shlibs=no
adamc@1132 8665 cat <<_LT_EOF 1>&2
adamc@1132 8666
adamc@1132 8667 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
adamc@1132 8668 *** reliably create shared libraries on SCO systems. Therefore, libtool
adamc@1132 8669 *** is disabling shared libraries support. We urge you to upgrade GNU
adamc@1132 8670 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
adamc@1132 8671 *** your PATH or compiler configuration so that the native linker is
adamc@1132 8672 *** used, and then restart.
adamc@1132 8673
adamc@1132 8674 _LT_EOF
adamc@1132 8675 ;;
adamc@1132 8676 *)
adamc@1132 8677 # For security reasons, it is highly recommended that you always
adamc@1132 8678 # use absolute paths for naming shared libraries, and exclude the
adamc@1132 8679 # DT_RUNPATH tag from executables and libraries. But doing so
adamc@1132 8680 # requires that you compile everything twice, which is a pain.
adamc@1132 8681 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
adamc@1132 8682 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
adamc@1132 8683 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
adamc@1132 8684 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
adamc@1132 8685 else
adamc@1132 8686 ld_shlibs=no
adamc@1132 8687 fi
adamc@1132 8688 ;;
adamc@1132 8689 esac
adamc@1132 8690 ;;
adamc@1132 8691
adamc@1132 8692 sunos4*)
adamc@1132 8693 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 8694 wlarc=
adamc@1132 8695 hardcode_direct=yes
adamc@1132 8696 hardcode_shlibpath_var=no
adamc@1132 8697 ;;
adamc@1132 8698
adamc@1132 8699 *)
adamc@1132 8700 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
adam@1826 8701 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
adam@1826 8702 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
adamc@1132 8703 else
adamc@1132 8704 ld_shlibs=no
adamc@1132 8705 fi
adamc@1132 8706 ;;
adamc@1132 8707 esac
adamc@1132 8708
adamc@1132 8709 if test "$ld_shlibs" = no; then
adamc@1132 8710 runpath_var=
adamc@1132 8711 hardcode_libdir_flag_spec=
adamc@1132 8712 export_dynamic_flag_spec=
adamc@1132 8713 whole_archive_flag_spec=
adamc@1132 8714 fi
adamc@1132 8715 else
adamc@1132 8716 # PORTME fill in a description of your system's linker (not GNU ld)
adamc@1132 8717 case $host_os in
adamc@1132 8718 aix3*)
adamc@1132 8719 allow_undefined_flag=unsupported
adamc@1132 8720 always_export_symbols=yes
adamc@1132 8721 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 8722 # Note: this linker hardcodes the directories in LIBPATH if there
adamc@1132 8723 # are no directories specified by -L.
adamc@1132 8724 hardcode_minus_L=yes
adamc@1132 8725 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
adamc@1132 8726 # Neither direct hardcoding nor static linking is supported with a
adamc@1132 8727 # broken collect2.
adamc@1132 8728 hardcode_direct=unsupported
adamc@1132 8729 fi
adamc@1132 8730 ;;
adamc@1132 8731
adamc@1132 8732 aix[4-9]*)
adamc@1132 8733 if test "$host_cpu" = ia64; then
adamc@1132 8734 # On IA64, the linker does run time linking by default, so we don't
adamc@1132 8735 # have to do anything special.
adamc@1132 8736 aix_use_runtimelinking=no
adamc@1132 8737 exp_sym_flag='-Bexport'
adamc@1132 8738 no_entry_flag=""
adamc@1132 8739 else
adamc@1132 8740 # If we're using GNU nm, then we don't want the "-C" option.
adamc@1132 8741 # -C means demangle to AIX nm, but means don't demangle with GNU nm
adamc@1132 8742 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
adam@1826 8743 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 8744 else
adamc@1132 8745 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 8746 fi
adamc@1132 8747 aix_use_runtimelinking=no
adamc@1132 8748
adamc@1132 8749 # Test if we are trying to use run time linking or normal
adamc@1132 8750 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
adamc@1132 8751 # need to do runtime linking.
adamc@1132 8752 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
adamc@1132 8753 for ld_flag in $LDFLAGS; do
adamc@1132 8754 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
adamc@1132 8755 aix_use_runtimelinking=yes
adamc@1132 8756 break
adamc@1132 8757 fi
adamc@1132 8758 done
adamc@1132 8759 ;;
adamc@1132 8760 esac
adamc@1132 8761
adamc@1132 8762 exp_sym_flag='-bexport'
adamc@1132 8763 no_entry_flag='-bnoentry'
adamc@1132 8764 fi
adamc@1132 8765
adamc@1132 8766 # When large executables or shared objects are built, AIX ld can
adamc@1132 8767 # have problems creating the table of contents. If linking a library
adamc@1132 8768 # or program results in "error TOC overflow" add -mminimal-toc to
adamc@1132 8769 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
adamc@1132 8770 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
adamc@1132 8771
adamc@1132 8772 archive_cmds=''
adamc@1132 8773 hardcode_direct=yes
adamc@1132 8774 hardcode_direct_absolute=yes
adamc@1132 8775 hardcode_libdir_separator=':'
adamc@1132 8776 link_all_deplibs=yes
adamc@1132 8777 file_list_spec='${wl}-f,'
adamc@1132 8778
adamc@1132 8779 if test "$GCC" = yes; then
adamc@1132 8780 case $host_os in aix4.[012]|aix4.[012].*)
adamc@1132 8781 # We only want to do this on AIX 4.2 and lower, the check
adamc@1132 8782 # below for broken collect2 doesn't work under 4.3+
adamc@1132 8783 collect2name=`${CC} -print-prog-name=collect2`
adamc@1132 8784 if test -f "$collect2name" &&
adamc@1132 8785 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
adamc@1132 8786 then
adamc@1132 8787 # We have reworked collect2
adamc@1132 8788 :
adamc@1132 8789 else
adamc@1132 8790 # We have old collect2
adamc@1132 8791 hardcode_direct=unsupported
adamc@1132 8792 # It fails to find uninstalled libraries when the uninstalled
adamc@1132 8793 # path is not listed in the libpath. Setting hardcode_minus_L
adamc@1132 8794 # to unsupported forces relinking
adamc@1132 8795 hardcode_minus_L=yes
adamc@1132 8796 hardcode_libdir_flag_spec='-L$libdir'
adamc@1132 8797 hardcode_libdir_separator=
adamc@1132 8798 fi
adamc@1132 8799 ;;
adamc@1132 8800 esac
adamc@1132 8801 shared_flag='-shared'
adamc@1132 8802 if test "$aix_use_runtimelinking" = yes; then
adamc@1132 8803 shared_flag="$shared_flag "'${wl}-G'
adamc@1132 8804 fi
adamc@1132 8805 link_all_deplibs=no
adamc@1132 8806 else
adamc@1132 8807 # not using gcc
adamc@1132 8808 if test "$host_cpu" = ia64; then
adamc@1132 8809 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
adamc@1132 8810 # chokes on -Wl,-G. The following line is correct:
adamc@1132 8811 shared_flag='-G'
adamc@1132 8812 else
adamc@1132 8813 if test "$aix_use_runtimelinking" = yes; then
adamc@1132 8814 shared_flag='${wl}-G'
adamc@1132 8815 else
adamc@1132 8816 shared_flag='${wl}-bM:SRE'
adamc@1132 8817 fi
adamc@1132 8818 fi
adamc@1132 8819 fi
adamc@1132 8820
adamc@1132 8821 export_dynamic_flag_spec='${wl}-bexpall'
adamc@1132 8822 # It seems that -bexpall does not export symbols beginning with
adamc@1132 8823 # underscore (_), so it is better to generate a list of symbols to export.
adamc@1132 8824 always_export_symbols=yes
adamc@1132 8825 if test "$aix_use_runtimelinking" = yes; then
adamc@1132 8826 # Warning - without using the other runtime loading flags (-brtl),
adamc@1132 8827 # -berok will link without error, but may produce a broken library.
adamc@1132 8828 allow_undefined_flag='-berok'
adamc@1132 8829 # Determine the default libpath from the value encoded in an
adamc@1132 8830 # empty executable.
adam@1826 8831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 8832 /* end confdefs.h. */
adamc@1132 8833
adamc@1132 8834 int
adamc@1132 8835 main ()
adamc@1132 8836 {
adamc@1132 8837
adamc@1132 8838 ;
adamc@1132 8839 return 0;
adamc@1132 8840 }
adamc@1132 8841 _ACEOF
adamc@1132 8842 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 8843
adam@1826 8844 lt_aix_libpath_sed='
adam@1826 8845 /Import File Strings/,/^$/ {
adam@1826 8846 /^0/ {
adam@1826 8847 s/^0 *\(.*\)$/\1/
adam@1826 8848 p
adam@1826 8849 }
adam@1826 8850 }'
adam@1826 8851 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
adam@1826 8852 # Check for a 64-bit object if we didn't find anything.
adam@1826 8853 if test -z "$aix_libpath"; then
adam@1826 8854 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
adam@1826 8855 fi
adamc@1132 8856 fi
adamc@1132 8857 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 8858 conftest$ac_exeext conftest.$ac_ext
adam@1826 8859 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
adamc@1132 8860
adamc@1132 8861 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
adam@1826 8862 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 8863 else
adamc@1132 8864 if test "$host_cpu" = ia64; then
adamc@1132 8865 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
adamc@1132 8866 allow_undefined_flag="-z nodefs"
adamc@1132 8867 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 8868 else
adamc@1132 8869 # Determine the default libpath from the value encoded in an
adamc@1132 8870 # empty executable.
adam@1826 8871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 8872 /* end confdefs.h. */
adamc@1132 8873
adamc@1132 8874 int
adamc@1132 8875 main ()
adamc@1132 8876 {
adamc@1132 8877
adamc@1132 8878 ;
adamc@1132 8879 return 0;
adamc@1132 8880 }
adamc@1132 8881 _ACEOF
adamc@1132 8882 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 8883
adam@1826 8884 lt_aix_libpath_sed='
adam@1826 8885 /Import File Strings/,/^$/ {
adam@1826 8886 /^0/ {
adam@1826 8887 s/^0 *\(.*\)$/\1/
adam@1826 8888 p
adam@1826 8889 }
adam@1826 8890 }'
adam@1826 8891 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
adam@1826 8892 # Check for a 64-bit object if we didn't find anything.
adam@1826 8893 if test -z "$aix_libpath"; then
adam@1826 8894 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
adam@1826 8895 fi
adamc@1132 8896 fi
adamc@1132 8897 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 8898 conftest$ac_exeext conftest.$ac_ext
adam@1826 8899 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
adamc@1132 8900
adamc@1132 8901 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
adamc@1132 8902 # Warning - without using the other run time loading flags,
adamc@1132 8903 # -berok will link without error, but may produce a broken library.
adamc@1132 8904 no_undefined_flag=' ${wl}-bernotok'
adamc@1132 8905 allow_undefined_flag=' ${wl}-berok'
adam@1826 8906 # Exported symbols can be pulled into shared objects from archives
adam@1826 8907 whole_archive_flag_spec='$convenience'
adamc@1132 8908 archive_cmds_need_lc=yes
adamc@1132 8909 # This is similar to how AIX traditionally builds its shared libraries.
adamc@1132 8910 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 8911 fi
adamc@1132 8912 fi
adamc@1132 8913 ;;
adamc@1132 8914
adamc@1132 8915 amigaos*)
adamc@1132 8916 case $host_cpu in
adamc@1132 8917 powerpc)
adamc@1132 8918 # see comment about AmigaOS4 .so support
adamc@1132 8919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
adamc@1132 8920 archive_expsym_cmds=''
adamc@1132 8921 ;;
adamc@1132 8922 m68k)
adamc@1132 8923 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 8924 hardcode_libdir_flag_spec='-L$libdir'
adamc@1132 8925 hardcode_minus_L=yes
adamc@1132 8926 ;;
adamc@1132 8927 esac
adamc@1132 8928 ;;
adamc@1132 8929
adamc@1132 8930 bsdi[45]*)
adamc@1132 8931 export_dynamic_flag_spec=-rdynamic
adamc@1132 8932 ;;
adamc@1132 8933
adamc@1132 8934 cygwin* | mingw* | pw32* | cegcc*)
adamc@1132 8935 # When not using gcc, we currently assume that we are using
adamc@1132 8936 # Microsoft Visual C++.
adamc@1132 8937 # hardcode_libdir_flag_spec is actually meaningless, as there is
adamc@1132 8938 # no search path for DLLs.
adam@1826 8939 hardcode_libdir_flag_spec=' '
adam@1826 8940 allow_undefined_flag=unsupported
adam@1826 8941 # Tell ltmain to make .lib files, not .a files.
adam@1826 8942 libext=lib
adam@1826 8943 # Tell ltmain to make .dll files, not .so files.
adam@1826 8944 shrext_cmds=".dll"
adam@1826 8945 # FIXME: Setting linknames here is a bad hack.
adam@1826 8946 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
adam@1826 8947 # The linker will automatically build a .lib file if we build a DLL.
adam@1826 8948 old_archive_from_new_cmds='true'
adam@1826 8949 # FIXME: Should let the user specify the lib program.
adam@1826 8950 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
adam@1826 8951 fix_srcfile_path='`cygpath -w "$srcfile"`'
adam@1826 8952 enable_shared_with_static_runtimes=yes
adamc@1132 8953 ;;
adamc@1132 8954
adamc@1132 8955 darwin* | rhapsody*)
adamc@1132 8956
adamc@1132 8957
adamc@1132 8958 archive_cmds_need_lc=no
adamc@1132 8959 hardcode_direct=no
adamc@1132 8960 hardcode_automatic=yes
adamc@1132 8961 hardcode_shlibpath_var=unsupported
adam@1826 8962 whole_archive_flag_spec=''
adamc@1132 8963 link_all_deplibs=yes
adamc@1132 8964 allow_undefined_flag="$_lt_dar_allow_undefined"
adamc@1132 8965 case $cc_basename in
adamc@1132 8966 ifort*) _lt_dar_can_shared=yes ;;
adamc@1132 8967 *) _lt_dar_can_shared=$GCC ;;
adamc@1132 8968 esac
adamc@1132 8969 if test "$_lt_dar_can_shared" = "yes"; then
adam@1826 8970 output_verbose_link_cmd=echo
adamc@1132 8971 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 8972 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
adamc@1132 8973 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 8974 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 8975
adamc@1132 8976 else
adamc@1132 8977 ld_shlibs=no
adamc@1132 8978 fi
adamc@1132 8979
adamc@1132 8980 ;;
adamc@1132 8981
adamc@1132 8982 dgux*)
adamc@1132 8983 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 8984 hardcode_libdir_flag_spec='-L$libdir'
adamc@1132 8985 hardcode_shlibpath_var=no
adamc@1132 8986 ;;
adamc@1132 8987
adam@1826 8988 freebsd1*)
adam@1826 8989 ld_shlibs=no
adam@1826 8990 ;;
adam@1826 8991
adamc@1132 8992 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
adamc@1132 8993 # support. Future versions do this automatically, but an explicit c++rt0.o
adamc@1132 8994 # does not break anything, and helps significantly (at the cost of a little
adamc@1132 8995 # extra space).
adamc@1132 8996 freebsd2.2*)
adamc@1132 8997 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
adamc@1132 8998 hardcode_libdir_flag_spec='-R$libdir'
adamc@1132 8999 hardcode_direct=yes
adamc@1132 9000 hardcode_shlibpath_var=no
adamc@1132 9001 ;;
adamc@1132 9002
adamc@1132 9003 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
adam@1826 9004 freebsd2*)
adamc@1132 9005 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 9006 hardcode_direct=yes
adamc@1132 9007 hardcode_minus_L=yes
adamc@1132 9008 hardcode_shlibpath_var=no
adamc@1132 9009 ;;
adamc@1132 9010
adamc@1132 9011 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
adamc@1132 9012 freebsd* | dragonfly*)
adam@1826 9013 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 9014 hardcode_libdir_flag_spec='-R$libdir'
adamc@1132 9015 hardcode_direct=yes
adamc@1132 9016 hardcode_shlibpath_var=no
adamc@1132 9017 ;;
adamc@1132 9018
adamc@1132 9019 hpux9*)
adamc@1132 9020 if test "$GCC" = yes; then
adam@1826 9021 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 9022 else
adamc@1132 9023 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 9024 fi
adamc@1132 9025 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
adamc@1132 9026 hardcode_libdir_separator=:
adamc@1132 9027 hardcode_direct=yes
adamc@1132 9028
adamc@1132 9029 # hardcode_minus_L: Not really in the search PATH,
adamc@1132 9030 # but as the default location of the library.
adamc@1132 9031 hardcode_minus_L=yes
adamc@1132 9032 export_dynamic_flag_spec='${wl}-E'
adamc@1132 9033 ;;
adamc@1132 9034
adamc@1132 9035 hpux10*)
adam@1826 9036 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
adam@1826 9037 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 9038 else
adamc@1132 9039 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 9040 fi
adamc@1132 9041 if test "$with_gnu_ld" = no; then
adamc@1132 9042 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
adam@1826 9043 hardcode_libdir_flag_spec_ld='+b $libdir'
adamc@1132 9044 hardcode_libdir_separator=:
adamc@1132 9045 hardcode_direct=yes
adamc@1132 9046 hardcode_direct_absolute=yes
adamc@1132 9047 export_dynamic_flag_spec='${wl}-E'
adamc@1132 9048 # hardcode_minus_L: Not really in the search PATH,
adamc@1132 9049 # but as the default location of the library.
adamc@1132 9050 hardcode_minus_L=yes
adamc@1132 9051 fi
adamc@1132 9052 ;;
adamc@1132 9053
adamc@1132 9054 hpux11*)
adam@1826 9055 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
adamc@1132 9056 case $host_cpu in
adamc@1132 9057 hppa*64*)
adamc@1132 9058 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 9059 ;;
adamc@1132 9060 ia64*)
adam@1826 9061 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 9062 ;;
adamc@1132 9063 *)
adam@1826 9064 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 9065 ;;
adamc@1132 9066 esac
adamc@1132 9067 else
adamc@1132 9068 case $host_cpu in
adamc@1132 9069 hppa*64*)
adamc@1132 9070 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 9071 ;;
adamc@1132 9072 ia64*)
adamc@1132 9073 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 9074 ;;
adamc@1132 9075 *)
adam@1826 9076 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 9077 ;;
adamc@1132 9078 esac
adamc@1132 9079 fi
adamc@1132 9080 if test "$with_gnu_ld" = no; then
adamc@1132 9081 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
adamc@1132 9082 hardcode_libdir_separator=:
adamc@1132 9083
adamc@1132 9084 case $host_cpu in
adamc@1132 9085 hppa*64*|ia64*)
adamc@1132 9086 hardcode_direct=no
adamc@1132 9087 hardcode_shlibpath_var=no
adamc@1132 9088 ;;
adamc@1132 9089 *)
adamc@1132 9090 hardcode_direct=yes
adamc@1132 9091 hardcode_direct_absolute=yes
adamc@1132 9092 export_dynamic_flag_spec='${wl}-E'
adamc@1132 9093
adamc@1132 9094 # hardcode_minus_L: Not really in the search PATH,
adamc@1132 9095 # but as the default location of the library.
adamc@1132 9096 hardcode_minus_L=yes
adamc@1132 9097 ;;
adamc@1132 9098 esac
adamc@1132 9099 fi
adamc@1132 9100 ;;
adamc@1132 9101
adamc@1132 9102 irix5* | irix6* | nonstopux*)
adamc@1132 9103 if test "$GCC" = yes; then
adam@1826 9104 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 9105 # Try to use the -exported_symbol ld option, if it does not
adamc@1132 9106 # work, assume that -exports_file does not work either and
adamc@1132 9107 # implicitly export all symbols.
adam@1826 9108 save_LDFLAGS="$LDFLAGS"
adam@1826 9109 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
adam@1826 9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 9111 /* end confdefs.h. */
adam@1826 9112 int foo(void) {}
adamc@1132 9113 _ACEOF
adamc@1132 9114 if ac_fn_c_try_link "$LINENO"; then :
adam@1826 9115 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'
adam@1826 9116
adamc@1132 9117 fi
adamc@1132 9118 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 9119 conftest$ac_exeext conftest.$ac_ext
adam@1826 9120 LDFLAGS="$save_LDFLAGS"
adamc@1132 9121 else
adam@1826 9122 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'
adam@1826 9123 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 9124 fi
adamc@1132 9125 archive_cmds_need_lc='no'
adamc@1132 9126 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
adamc@1132 9127 hardcode_libdir_separator=:
adamc@1132 9128 inherit_rpath=yes
adamc@1132 9129 link_all_deplibs=yes
adamc@1132 9130 ;;
adamc@1132 9131
adamc@1132 9132 netbsd* | netbsdelf*-gnu)
adamc@1132 9133 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
adamc@1132 9134 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
adamc@1132 9135 else
adamc@1132 9136 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
adamc@1132 9137 fi
adamc@1132 9138 hardcode_libdir_flag_spec='-R$libdir'
adamc@1132 9139 hardcode_direct=yes
adamc@1132 9140 hardcode_shlibpath_var=no
adamc@1132 9141 ;;
adamc@1132 9142
adamc@1132 9143 newsos6)
adamc@1132 9144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 9145 hardcode_direct=yes
adamc@1132 9146 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
adamc@1132 9147 hardcode_libdir_separator=:
adamc@1132 9148 hardcode_shlibpath_var=no
adamc@1132 9149 ;;
adamc@1132 9150
adamc@1132 9151 *nto* | *qnx*)
adamc@1132 9152 ;;
adamc@1132 9153
adamc@1132 9154 openbsd*)
adamc@1132 9155 if test -f /usr/libexec/ld.so; then
adamc@1132 9156 hardcode_direct=yes
adamc@1132 9157 hardcode_shlibpath_var=no
adamc@1132 9158 hardcode_direct_absolute=yes
adamc@1132 9159 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
adamc@1132 9160 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 9161 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
adamc@1132 9162 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
adamc@1132 9163 export_dynamic_flag_spec='${wl}-E'
adamc@1132 9164 else
adamc@1132 9165 case $host_os in
adamc@1132 9166 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
adamc@1132 9167 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 9168 hardcode_libdir_flag_spec='-R$libdir'
adamc@1132 9169 ;;
adamc@1132 9170 *)
adamc@1132 9171 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 9172 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
adamc@1132 9173 ;;
adamc@1132 9174 esac
adamc@1132 9175 fi
adamc@1132 9176 else
adamc@1132 9177 ld_shlibs=no
adamc@1132 9178 fi
adamc@1132 9179 ;;
adamc@1132 9180
adamc@1132 9181 os2*)
adamc@1132 9182 hardcode_libdir_flag_spec='-L$libdir'
adamc@1132 9183 hardcode_minus_L=yes
adamc@1132 9184 allow_undefined_flag=unsupported
adam@1826 9185 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 9186 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
adamc@1132 9187 ;;
adamc@1132 9188
adamc@1132 9189 osf3*)
adamc@1132 9190 if test "$GCC" = yes; then
adamc@1132 9191 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
adam@1826 9192 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 9193 else
adamc@1132 9194 allow_undefined_flag=' -expect_unresolved \*'
adam@1826 9195 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 9196 fi
adamc@1132 9197 archive_cmds_need_lc='no'
adamc@1132 9198 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
adamc@1132 9199 hardcode_libdir_separator=:
adamc@1132 9200 ;;
adamc@1132 9201
adamc@1132 9202 osf4* | osf5*) # as osf3* with the addition of -msym flag
adamc@1132 9203 if test "$GCC" = yes; then
adamc@1132 9204 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
adam@1826 9205 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 9206 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
adamc@1132 9207 else
adamc@1132 9208 allow_undefined_flag=' -expect_unresolved \*'
adam@1826 9209 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 9210 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~
adam@1826 9211 $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 9212
adamc@1132 9213 # Both c and cxx compiler support -rpath directly
adamc@1132 9214 hardcode_libdir_flag_spec='-rpath $libdir'
adamc@1132 9215 fi
adamc@1132 9216 archive_cmds_need_lc='no'
adamc@1132 9217 hardcode_libdir_separator=:
adamc@1132 9218 ;;
adamc@1132 9219
adamc@1132 9220 solaris*)
adamc@1132 9221 no_undefined_flag=' -z defs'
adamc@1132 9222 if test "$GCC" = yes; then
adamc@1132 9223 wlarc='${wl}'
adam@1826 9224 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 9225 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
adam@1826 9226 $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 9227 else
adamc@1132 9228 case `$CC -V 2>&1` in
adamc@1132 9229 *"Compilers 5.0"*)
adamc@1132 9230 wlarc=''
adamc@1132 9231 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 9232 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
adamc@1132 9233 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
adamc@1132 9234 ;;
adamc@1132 9235 *)
adamc@1132 9236 wlarc='${wl}'
adamc@1132 9237 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 9238 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
adamc@1132 9239 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
adamc@1132 9240 ;;
adamc@1132 9241 esac
adamc@1132 9242 fi
adamc@1132 9243 hardcode_libdir_flag_spec='-R$libdir'
adamc@1132 9244 hardcode_shlibpath_var=no
adamc@1132 9245 case $host_os in
adamc@1132 9246 solaris2.[0-5] | solaris2.[0-5].*) ;;
adamc@1132 9247 *)
adamc@1132 9248 # The compiler driver will combine and reorder linker options,
adamc@1132 9249 # but understands `-z linker_flag'. GCC discards it without `$wl',
adamc@1132 9250 # but is careful enough not to reorder.
adamc@1132 9251 # Supported since Solaris 2.6 (maybe 2.5.1?)
adamc@1132 9252 if test "$GCC" = yes; then
adamc@1132 9253 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
adamc@1132 9254 else
adamc@1132 9255 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
adamc@1132 9256 fi
adamc@1132 9257 ;;
adamc@1132 9258 esac
adamc@1132 9259 link_all_deplibs=yes
adamc@1132 9260 ;;
adamc@1132 9261
adamc@1132 9262 sunos4*)
adamc@1132 9263 if test "x$host_vendor" = xsequent; then
adamc@1132 9264 # Use $CC to link under sequent, because it throws in some extra .o
adamc@1132 9265 # files that make .init and .fini sections work.
adamc@1132 9266 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 9267 else
adamc@1132 9268 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 9269 fi
adamc@1132 9270 hardcode_libdir_flag_spec='-L$libdir'
adamc@1132 9271 hardcode_direct=yes
adamc@1132 9272 hardcode_minus_L=yes
adamc@1132 9273 hardcode_shlibpath_var=no
adamc@1132 9274 ;;
adamc@1132 9275
adamc@1132 9276 sysv4)
adamc@1132 9277 case $host_vendor in
adamc@1132 9278 sni)
adamc@1132 9279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 9280 hardcode_direct=yes # is this really true???
adamc@1132 9281 ;;
adamc@1132 9282 siemens)
adamc@1132 9283 ## LD is ld it makes a PLAMLIB
adamc@1132 9284 ## CC just makes a GrossModule.
adamc@1132 9285 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 9286 reload_cmds='$CC -r -o $output$reload_objs'
adamc@1132 9287 hardcode_direct=no
adamc@1132 9288 ;;
adamc@1132 9289 motorola)
adamc@1132 9290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 9291 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
adamc@1132 9292 ;;
adamc@1132 9293 esac
adamc@1132 9294 runpath_var='LD_RUN_PATH'
adamc@1132 9295 hardcode_shlibpath_var=no
adamc@1132 9296 ;;
adamc@1132 9297
adamc@1132 9298 sysv4.3*)
adamc@1132 9299 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 9300 hardcode_shlibpath_var=no
adamc@1132 9301 export_dynamic_flag_spec='-Bexport'
adamc@1132 9302 ;;
adamc@1132 9303
adamc@1132 9304 sysv4*MP*)
adamc@1132 9305 if test -d /usr/nec; then
adamc@1132 9306 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 9307 hardcode_shlibpath_var=no
adamc@1132 9308 runpath_var=LD_RUN_PATH
adamc@1132 9309 hardcode_runpath_var=yes
adamc@1132 9310 ld_shlibs=yes
adamc@1132 9311 fi
adamc@1132 9312 ;;
adamc@1132 9313
adamc@1132 9314 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
adamc@1132 9315 no_undefined_flag='${wl}-z,text'
adamc@1132 9316 archive_cmds_need_lc=no
adamc@1132 9317 hardcode_shlibpath_var=no
adamc@1132 9318 runpath_var='LD_RUN_PATH'
adamc@1132 9319
adamc@1132 9320 if test "$GCC" = yes; then
adamc@1132 9321 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 9322 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 9323 else
adamc@1132 9324 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 9325 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 9326 fi
adamc@1132 9327 ;;
adamc@1132 9328
adamc@1132 9329 sysv5* | sco3.2v5* | sco5v6*)
adamc@1132 9330 # Note: We can NOT use -z defs as we might desire, because we do not
adamc@1132 9331 # link with -lc, and that would cause any symbols used from libc to
adamc@1132 9332 # always be unresolved, which means just about no library would
adamc@1132 9333 # ever link correctly. If we're not using GNU ld we use -z text
adamc@1132 9334 # though, which does catch some bad symbols but isn't as heavy-handed
adamc@1132 9335 # as -z defs.
adamc@1132 9336 no_undefined_flag='${wl}-z,text'
adamc@1132 9337 allow_undefined_flag='${wl}-z,nodefs'
adamc@1132 9338 archive_cmds_need_lc=no
adamc@1132 9339 hardcode_shlibpath_var=no
adamc@1132 9340 hardcode_libdir_flag_spec='${wl}-R,$libdir'
adamc@1132 9341 hardcode_libdir_separator=':'
adamc@1132 9342 link_all_deplibs=yes
adamc@1132 9343 export_dynamic_flag_spec='${wl}-Bexport'
adamc@1132 9344 runpath_var='LD_RUN_PATH'
adamc@1132 9345
adamc@1132 9346 if test "$GCC" = yes; then
adamc@1132 9347 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 9348 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 9349 else
adamc@1132 9350 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 9351 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
adamc@1132 9352 fi
adamc@1132 9353 ;;
adamc@1132 9354
adamc@1132 9355 uts4*)
adamc@1132 9356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
adamc@1132 9357 hardcode_libdir_flag_spec='-L$libdir'
adamc@1132 9358 hardcode_shlibpath_var=no
adamc@1132 9359 ;;
adamc@1132 9360
adamc@1132 9361 *)
adamc@1132 9362 ld_shlibs=no
adamc@1132 9363 ;;
adamc@1132 9364 esac
adamc@1132 9365
adamc@1132 9366 if test x$host_vendor = xsni; then
adamc@1132 9367 case $host in
adamc@1132 9368 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
adamc@1132 9369 export_dynamic_flag_spec='${wl}-Blargedynsym'
adamc@1132 9370 ;;
adamc@1132 9371 esac
adamc@1132 9372 fi
adamc@1132 9373 fi
adamc@1132 9374
adamc@1132 9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
adamc@1132 9376 $as_echo "$ld_shlibs" >&6; }
adamc@1132 9377 test "$ld_shlibs" = no && can_build_shared=no
adamc@1132 9378
adamc@1132 9379 with_gnu_ld=$with_gnu_ld
adamc@1132 9380
adamc@1132 9381
adamc@1132 9382
adamc@1132 9383
adamc@1132 9384
adamc@1132 9385
adamc@1132 9386
adamc@1132 9387
adamc@1132 9388
adamc@1132 9389
adamc@1132 9390
adamc@1132 9391
adamc@1132 9392
adamc@1132 9393
adamc@1132 9394
adamc@1132 9395 #
adamc@1132 9396 # Do we need to explicitly link libc?
adamc@1132 9397 #
adamc@1132 9398 case "x$archive_cmds_need_lc" in
adamc@1132 9399 x|xyes)
adamc@1132 9400 # Assume -lc should be added
adamc@1132 9401 archive_cmds_need_lc=yes
adamc@1132 9402
adamc@1132 9403 if test "$enable_shared" = yes && test "$GCC" = yes; then
adamc@1132 9404 case $archive_cmds in
adamc@1132 9405 *'~'*)
adamc@1132 9406 # FIXME: we may have to deal with multi-command sequences.
adamc@1132 9407 ;;
adamc@1132 9408 '$CC '*)
adamc@1132 9409 # Test whether the compiler implicitly links with -lc since on some
adamc@1132 9410 # systems, -lgcc has to come before -lc. If gcc already passes -lc
adamc@1132 9411 # to ld, don't add -lc before -lgcc.
adamc@1132 9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
adamc@1132 9413 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
adam@1826 9414 $RM conftest*
adam@1826 9415 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
adam@1826 9416
adam@1826 9417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
adamc@1132 9418 (eval $ac_compile) 2>&5
adamc@1132 9419 ac_status=$?
adamc@1132 9420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 9421 test $ac_status = 0; } 2>conftest.err; then
adam@1826 9422 soname=conftest
adam@1826 9423 lib=conftest
adam@1826 9424 libobjs=conftest.$ac_objext
adam@1826 9425 deplibs=
adam@1826 9426 wl=$lt_prog_compiler_wl
adam@1826 9427 pic_flag=$lt_prog_compiler_pic
adam@1826 9428 compiler_flags=-v
adam@1826 9429 linker_flags=-v
adam@1826 9430 verstring=
adam@1826 9431 output_objdir=.
adam@1826 9432 libname=conftest
adam@1826 9433 lt_save_allow_undefined_flag=$allow_undefined_flag
adam@1826 9434 allow_undefined_flag=
adam@1826 9435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
adamc@1132 9436 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
adamc@1132 9437 ac_status=$?
adamc@1132 9438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 9439 test $ac_status = 0; }
adam@1826 9440 then
adam@1826 9441 archive_cmds_need_lc=no
adam@1826 9442 else
adam@1826 9443 archive_cmds_need_lc=yes
adam@1826 9444 fi
adam@1826 9445 allow_undefined_flag=$lt_save_allow_undefined_flag
adam@1826 9446 else
adam@1826 9447 cat conftest.err 1>&5
adam@1826 9448 fi
adam@1826 9449 $RM conftest*
adam@1826 9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
adam@1826 9451 $as_echo "$archive_cmds_need_lc" >&6; }
adamc@1132 9452 ;;
adamc@1132 9453 esac
adamc@1132 9454 fi
adamc@1132 9455 ;;
adamc@1132 9456 esac
adamc@1132 9457
adamc@1132 9458
adamc@1132 9459
adamc@1132 9460
adamc@1132 9461
adamc@1132 9462
adamc@1132 9463
adamc@1132 9464
adamc@1132 9465
adamc@1132 9466
adamc@1132 9467
adamc@1132 9468
adamc@1132 9469
adamc@1132 9470
adamc@1132 9471
adamc@1132 9472
adamc@1132 9473
adamc@1132 9474
adamc@1132 9475
adamc@1132 9476
adamc@1132 9477
adamc@1132 9478
adamc@1132 9479
adamc@1132 9480
adamc@1132 9481
adamc@1132 9482
adamc@1132 9483
adamc@1132 9484
adamc@1132 9485
adamc@1132 9486
adamc@1132 9487
adamc@1132 9488
adamc@1132 9489
adamc@1132 9490
adamc@1132 9491
adamc@1132 9492
adamc@1132 9493
adamc@1132 9494
adamc@1132 9495
adamc@1132 9496
adamc@1132 9497
adamc@1132 9498
adamc@1132 9499
adamc@1132 9500
adamc@1132 9501
adamc@1132 9502
adamc@1132 9503
adamc@1132 9504
adamc@1132 9505
adamc@1132 9506
adamc@1132 9507
adamc@1132 9508
adamc@1132 9509
adamc@1132 9510
adamc@1132 9511
adamc@1132 9512
adamc@1132 9513
adamc@1132 9514
adamc@1132 9515
adamc@1132 9516
adamc@1132 9517
adamc@1132 9518
adamc@1132 9519
adamc@1132 9520
adamc@1132 9521
adamc@1132 9522
adamc@1132 9523
adamc@1132 9524
adamc@1132 9525
adamc@1132 9526
adamc@1132 9527
adamc@1132 9528
adamc@1132 9529
adamc@1132 9530
adamc@1132 9531
adamc@1132 9532
adamc@1132 9533
adamc@1132 9534
adamc@1132 9535
adamc@1132 9536
adamc@1132 9537
adamc@1132 9538
adamc@1132 9539
adamc@1132 9540
adamc@1132 9541
adamc@1132 9542
adamc@1132 9543
adamc@1132 9544
adamc@1132 9545
adamc@1132 9546
adamc@1132 9547
adamc@1132 9548
adamc@1132 9549
adamc@1132 9550
adamc@1132 9551
adamc@1132 9552
adamc@1132 9553
adamc@1132 9554
adamc@1132 9555
adamc@1132 9556
adamc@1132 9557
adamc@1132 9558
adamc@1132 9559
adamc@1132 9560
adamc@1132 9561
adamc@1132 9562
adamc@1132 9563
adamc@1132 9564
adamc@1132 9565
adamc@1132 9566
adamc@1132 9567
adamc@1132 9568
adamc@1132 9569
adamc@1132 9570
adamc@1132 9571
adamc@1132 9572
adamc@1132 9573
adamc@1132 9574
adamc@1132 9575
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
adam@1826 9609
adam@1826 9610
adam@1826 9611
adam@1826 9612
adam@1826 9613
adamc@1132 9614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
adamc@1132 9615 $as_echo_n "checking dynamic linker characteristics... " >&6; }
adamc@1132 9616
adamc@1132 9617 if test "$GCC" = yes; then
adamc@1132 9618 case $host_os in
adamc@1132 9619 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
adamc@1132 9620 *) lt_awk_arg="/^libraries:/" ;;
adamc@1132 9621 esac
adam@1826 9622 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
adam@1826 9623 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
adamc@1132 9624 # if the path contains ";" then we assume it to be the separator
adamc@1132 9625 # otherwise default to the standard path separator (i.e. ":") - it is
adamc@1132 9626 # assumed that no part of a normal pathname contains ";" but that should
adamc@1132 9627 # okay in the real world where ";" in dirpaths is itself problematic.
adam@1826 9628 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
adam@1826 9629 else
adam@1826 9630 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
adam@1826 9631 fi
adamc@1132 9632 # Ok, now we have the path, separated by spaces, we can step through it
adamc@1132 9633 # and add multilib dir if necessary.
adamc@1132 9634 lt_tmp_lt_search_path_spec=
adamc@1132 9635 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
adamc@1132 9636 for lt_sys_path in $lt_search_path_spec; do
adamc@1132 9637 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
adamc@1132 9638 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
adamc@1132 9639 else
adamc@1132 9640 test -d "$lt_sys_path" && \
adamc@1132 9641 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
adamc@1132 9642 fi
adamc@1132 9643 done
adam@1826 9644 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
adamc@1132 9645 BEGIN {RS=" "; FS="/|\n";} {
adamc@1132 9646 lt_foo="";
adamc@1132 9647 lt_count=0;
adamc@1132 9648 for (lt_i = NF; lt_i > 0; lt_i--) {
adamc@1132 9649 if ($lt_i != "" && $lt_i != ".") {
adamc@1132 9650 if ($lt_i == "..") {
adamc@1132 9651 lt_count++;
adamc@1132 9652 } else {
adamc@1132 9653 if (lt_count == 0) {
adamc@1132 9654 lt_foo="/" $lt_i lt_foo;
adamc@1132 9655 } else {
adamc@1132 9656 lt_count--;
adamc@1132 9657 }
adamc@1132 9658 }
adamc@1132 9659 }
adamc@1132 9660 }
adamc@1132 9661 if (lt_foo != "") { lt_freq[lt_foo]++; }
adamc@1132 9662 if (lt_freq[lt_foo] == 1) { print lt_foo; }
adamc@1132 9663 }'`
adam@1826 9664 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
adamc@1132 9665 else
adamc@1132 9666 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
adamc@1132 9667 fi
adamc@1132 9668 library_names_spec=
adamc@1132 9669 libname_spec='lib$name'
adamc@1132 9670 soname_spec=
adamc@1132 9671 shrext_cmds=".so"
adamc@1132 9672 postinstall_cmds=
adamc@1132 9673 postuninstall_cmds=
adamc@1132 9674 finish_cmds=
adamc@1132 9675 finish_eval=
adamc@1132 9676 shlibpath_var=
adamc@1132 9677 shlibpath_overrides_runpath=unknown
adamc@1132 9678 version_type=none
adamc@1132 9679 dynamic_linker="$host_os ld.so"
adamc@1132 9680 sys_lib_dlsearch_path_spec="/lib /usr/lib"
adamc@1132 9681 need_lib_prefix=unknown
adamc@1132 9682 hardcode_into_libs=no
adamc@1132 9683
adamc@1132 9684 # when you set need_version to no, make sure it does not cause -set_version
adamc@1132 9685 # flags to be left without arguments
adamc@1132 9686 need_version=unknown
adamc@1132 9687
adamc@1132 9688 case $host_os in
adamc@1132 9689 aix3*)
adam@1826 9690 version_type=linux
adamc@1132 9691 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
adamc@1132 9692 shlibpath_var=LIBPATH
adamc@1132 9693
adamc@1132 9694 # AIX 3 has no versioning support, so we append a major version to the name.
adamc@1132 9695 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 9696 ;;
adamc@1132 9697
adamc@1132 9698 aix[4-9]*)
adam@1826 9699 version_type=linux
adamc@1132 9700 need_lib_prefix=no
adamc@1132 9701 need_version=no
adamc@1132 9702 hardcode_into_libs=yes
adamc@1132 9703 if test "$host_cpu" = ia64; then
adamc@1132 9704 # AIX 5 supports IA64
adamc@1132 9705 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
adamc@1132 9706 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 9707 else
adamc@1132 9708 # With GCC up to 2.95.x, collect2 would create an import file
adamc@1132 9709 # for dependence libraries. The import file would start with
adamc@1132 9710 # the line `#! .'. This would cause the generated library to
adamc@1132 9711 # depend on `.', always an invalid library. This was fixed in
adamc@1132 9712 # development snapshots of GCC prior to 3.0.
adamc@1132 9713 case $host_os in
adamc@1132 9714 aix4 | aix4.[01] | aix4.[01].*)
adamc@1132 9715 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
adamc@1132 9716 echo ' yes '
adamc@1132 9717 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
adamc@1132 9718 :
adamc@1132 9719 else
adamc@1132 9720 can_build_shared=no
adamc@1132 9721 fi
adamc@1132 9722 ;;
adamc@1132 9723 esac
adamc@1132 9724 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
adamc@1132 9725 # soname into executable. Probably we can add versioning support to
adamc@1132 9726 # collect2, so additional links can be useful in future.
adamc@1132 9727 if test "$aix_use_runtimelinking" = yes; then
adamc@1132 9728 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
adamc@1132 9729 # instead of lib<name>.a to let people know that these are not
adamc@1132 9730 # typical AIX shared libraries.
adamc@1132 9731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 9732 else
adamc@1132 9733 # We preserve .a as extension for shared libraries through AIX4.2
adamc@1132 9734 # and later when we are not doing run time linking.
adamc@1132 9735 library_names_spec='${libname}${release}.a $libname.a'
adamc@1132 9736 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 9737 fi
adamc@1132 9738 shlibpath_var=LIBPATH
adamc@1132 9739 fi
adamc@1132 9740 ;;
adamc@1132 9741
adamc@1132 9742 amigaos*)
adamc@1132 9743 case $host_cpu in
adamc@1132 9744 powerpc)
adamc@1132 9745 # Since July 2007 AmigaOS4 officially supports .so libraries.
adamc@1132 9746 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
adamc@1132 9747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 9748 ;;
adamc@1132 9749 m68k)
adamc@1132 9750 library_names_spec='$libname.ixlibrary $libname.a'
adamc@1132 9751 # Create ${libname}_ixlibrary.a entries in /sys/libs.
adam@1826 9752 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 9753 ;;
adamc@1132 9754 esac
adamc@1132 9755 ;;
adamc@1132 9756
adamc@1132 9757 beos*)
adamc@1132 9758 library_names_spec='${libname}${shared_ext}'
adamc@1132 9759 dynamic_linker="$host_os ld.so"
adamc@1132 9760 shlibpath_var=LIBRARY_PATH
adamc@1132 9761 ;;
adamc@1132 9762
adamc@1132 9763 bsdi[45]*)
adam@1826 9764 version_type=linux
adamc@1132 9765 need_version=no
adamc@1132 9766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 9767 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 9768 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
adamc@1132 9769 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 9770 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
adamc@1132 9771 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
adamc@1132 9772 # the default ld.so.conf also contains /usr/contrib/lib and
adamc@1132 9773 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
adamc@1132 9774 # libtool to hard-code these into programs
adamc@1132 9775 ;;
adamc@1132 9776
adamc@1132 9777 cygwin* | mingw* | pw32* | cegcc*)
adamc@1132 9778 version_type=windows
adamc@1132 9779 shrext_cmds=".dll"
adamc@1132 9780 need_version=no
adamc@1132 9781 need_lib_prefix=no
adamc@1132 9782
adam@1826 9783 case $GCC,$host_os in
adam@1826 9784 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
adamc@1132 9785 library_names_spec='$libname.dll.a'
adamc@1132 9786 # DLL is installed to $(libdir)/../bin by postinstall_cmds
adamc@1132 9787 postinstall_cmds='base_file=`basename \${file}`~
adamc@1132 9788 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
adamc@1132 9789 dldir=$destdir/`dirname \$dlpath`~
adamc@1132 9790 test -d \$dldir || mkdir -p \$dldir~
adamc@1132 9791 $install_prog $dir/$dlname \$dldir/$dlname~
adamc@1132 9792 chmod a+x \$dldir/$dlname~
adamc@1132 9793 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
adamc@1132 9794 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
adamc@1132 9795 fi'
adamc@1132 9796 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
adamc@1132 9797 dlpath=$dir/\$dldll~
adamc@1132 9798 $RM \$dlpath'
adamc@1132 9799 shlibpath_overrides_runpath=yes
adamc@1132 9800
adamc@1132 9801 case $host_os in
adamc@1132 9802 cygwin*)
adamc@1132 9803 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
adamc@1132 9804 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
adam@1826 9805 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
adamc@1132 9806 ;;
adamc@1132 9807 mingw* | cegcc*)
adamc@1132 9808 # MinGW DLLs use traditional 'lib' prefix
adamc@1132 9809 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
adam@1826 9810 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
adam@1826 9811 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
adam@1826 9812 # It is most probably a Windows format PATH printed by
adam@1826 9813 # mingw gcc, but we are running on Cygwin. Gcc prints its search
adam@1826 9814 # path with ; separators, and with drive letters. We can handle the
adam@1826 9815 # drive letters (cygwin fileutils understands them), so leave them,
adam@1826 9816 # especially as we might pass files found there to a mingw objdump,
adam@1826 9817 # which wouldn't understand a cygwinified path. Ahh.
adam@1826 9818 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
adam@1826 9819 else
adam@1826 9820 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
adam@1826 9821 fi
adamc@1132 9822 ;;
adamc@1132 9823 pw32*)
adamc@1132 9824 # pw32 DLLs use 'pw' prefix rather than 'lib'
adamc@1132 9825 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
adamc@1132 9826 ;;
adamc@1132 9827 esac
adam@1459 9828 ;;
adam@1459 9829
adamc@1132 9830 *)
adamc@1132 9831 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
adamc@1132 9832 ;;
adamc@1132 9833 esac
adam@1826 9834 dynamic_linker='Win32 ld.exe'
adamc@1132 9835 # FIXME: first we should search . and the directory the executable is in
adamc@1132 9836 shlibpath_var=PATH
adamc@1132 9837 ;;
adamc@1132 9838
adamc@1132 9839 darwin* | rhapsody*)
adamc@1132 9840 dynamic_linker="$host_os dyld"
adamc@1132 9841 version_type=darwin
adamc@1132 9842 need_lib_prefix=no
adamc@1132 9843 need_version=no
adamc@1132 9844 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
adamc@1132 9845 soname_spec='${libname}${release}${major}$shared_ext'
adamc@1132 9846 shlibpath_overrides_runpath=yes
adamc@1132 9847 shlibpath_var=DYLD_LIBRARY_PATH
adamc@1132 9848 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
adamc@1132 9849
adamc@1132 9850 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
adamc@1132 9851 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
adamc@1132 9852 ;;
adamc@1132 9853
adamc@1132 9854 dgux*)
adam@1826 9855 version_type=linux
adamc@1132 9856 need_lib_prefix=no
adamc@1132 9857 need_version=no
adamc@1132 9858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
adamc@1132 9859 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 9860 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 9861 ;;
adamc@1132 9862
adam@1826 9863 freebsd1*)
adam@1826 9864 dynamic_linker=no
adam@1826 9865 ;;
adam@1826 9866
adamc@1132 9867 freebsd* | dragonfly*)
adamc@1132 9868 # DragonFly does not have aout. When/if they implement a new
adamc@1132 9869 # versioning mechanism, adjust this.
adamc@1132 9870 if test -x /usr/bin/objformat; then
adamc@1132 9871 objformat=`/usr/bin/objformat`
adamc@1132 9872 else
adamc@1132 9873 case $host_os in
adam@1826 9874 freebsd[123]*) objformat=aout ;;
adamc@1132 9875 *) objformat=elf ;;
adamc@1132 9876 esac
adamc@1132 9877 fi
adamc@1132 9878 version_type=freebsd-$objformat
adamc@1132 9879 case $version_type in
adamc@1132 9880 freebsd-elf*)
adamc@1132 9881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
adamc@1132 9882 need_version=no
adamc@1132 9883 need_lib_prefix=no
adamc@1132 9884 ;;
adamc@1132 9885 freebsd-*)
adamc@1132 9886 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
adamc@1132 9887 need_version=yes
adamc@1132 9888 ;;
adamc@1132 9889 esac
adamc@1132 9890 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 9891 case $host_os in
adam@1826 9892 freebsd2*)
adamc@1132 9893 shlibpath_overrides_runpath=yes
adamc@1132 9894 ;;
adamc@1132 9895 freebsd3.[01]* | freebsdelf3.[01]*)
adamc@1132 9896 shlibpath_overrides_runpath=yes
adamc@1132 9897 hardcode_into_libs=yes
adamc@1132 9898 ;;
adamc@1132 9899 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
adamc@1132 9900 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
adamc@1132 9901 shlibpath_overrides_runpath=no
adamc@1132 9902 hardcode_into_libs=yes
adamc@1132 9903 ;;
adamc@1132 9904 *) # from 4.6 on, and DragonFly
adamc@1132 9905 shlibpath_overrides_runpath=yes
adamc@1132 9906 hardcode_into_libs=yes
adamc@1132 9907 ;;
adamc@1132 9908 esac
adamc@1132 9909 ;;
adamc@1132 9910
adam@1826 9911 gnu*)
adam@1826 9912 version_type=linux
adam@1459 9913 need_lib_prefix=no
adam@1459 9914 need_version=no
adam@1459 9915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
adam@1459 9916 soname_spec='${libname}${release}${shared_ext}$major'
adam@1826 9917 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 9918 hardcode_into_libs=yes
adamc@1132 9919 ;;
adamc@1132 9920
adamc@1132 9921 hpux9* | hpux10* | hpux11*)
adamc@1132 9922 # Give a soname corresponding to the major version so that dld.sl refuses to
adamc@1132 9923 # link against other versions.
adamc@1132 9924 version_type=sunos
adamc@1132 9925 need_lib_prefix=no
adamc@1132 9926 need_version=no
adamc@1132 9927 case $host_cpu in
adamc@1132 9928 ia64*)
adamc@1132 9929 shrext_cmds='.so'
adamc@1132 9930 hardcode_into_libs=yes
adamc@1132 9931 dynamic_linker="$host_os dld.so"
adamc@1132 9932 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 9933 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
adamc@1132 9934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 9935 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 9936 if test "X$HPUX_IA64_MODE" = X32; then
adamc@1132 9937 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
adamc@1132 9938 else
adamc@1132 9939 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
adamc@1132 9940 fi
adamc@1132 9941 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
adamc@1132 9942 ;;
adamc@1132 9943 hppa*64*)
adamc@1132 9944 shrext_cmds='.sl'
adamc@1132 9945 hardcode_into_libs=yes
adamc@1132 9946 dynamic_linker="$host_os dld.sl"
adamc@1132 9947 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
adamc@1132 9948 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
adamc@1132 9949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 9950 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 9951 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
adamc@1132 9952 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
adamc@1132 9953 ;;
adamc@1132 9954 *)
adamc@1132 9955 shrext_cmds='.sl'
adamc@1132 9956 dynamic_linker="$host_os dld.sl"
adamc@1132 9957 shlibpath_var=SHLIB_PATH
adamc@1132 9958 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
adamc@1132 9959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 9960 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 9961 ;;
adamc@1132 9962 esac
adam@1826 9963 # HP-UX runs *really* slowly unless shared libraries are mode 555.
adamc@1132 9964 postinstall_cmds='chmod 555 $lib'
adamc@1132 9965 ;;
adamc@1132 9966
adamc@1132 9967 interix[3-9]*)
adam@1826 9968 version_type=linux
adamc@1132 9969 need_lib_prefix=no
adamc@1132 9970 need_version=no
adamc@1132 9971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
adamc@1132 9972 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 9973 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
adamc@1132 9974 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 9975 shlibpath_overrides_runpath=no
adamc@1132 9976 hardcode_into_libs=yes
adamc@1132 9977 ;;
adamc@1132 9978
adamc@1132 9979 irix5* | irix6* | nonstopux*)
adamc@1132 9980 case $host_os in
adamc@1132 9981 nonstopux*) version_type=nonstopux ;;
adamc@1132 9982 *)
adamc@1132 9983 if test "$lt_cv_prog_gnu_ld" = yes; then
adam@1826 9984 version_type=linux
adamc@1132 9985 else
adamc@1132 9986 version_type=irix
adamc@1132 9987 fi ;;
adamc@1132 9988 esac
adamc@1132 9989 need_lib_prefix=no
adamc@1132 9990 need_version=no
adamc@1132 9991 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 9992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
adamc@1132 9993 case $host_os in
adamc@1132 9994 irix5* | nonstopux*)
adamc@1132 9995 libsuff= shlibsuff=
adamc@1132 9996 ;;
adamc@1132 9997 *)
adamc@1132 9998 case $LD in # libtool.m4 will add one of these switches to LD
adamc@1132 9999 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
adamc@1132 10000 libsuff= shlibsuff= libmagic=32-bit;;
adamc@1132 10001 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
adamc@1132 10002 libsuff=32 shlibsuff=N32 libmagic=N32;;
adamc@1132 10003 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
adamc@1132 10004 libsuff=64 shlibsuff=64 libmagic=64-bit;;
adamc@1132 10005 *) libsuff= shlibsuff= libmagic=never-match;;
adamc@1132 10006 esac
adamc@1132 10007 ;;
adamc@1132 10008 esac
adamc@1132 10009 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
adamc@1132 10010 shlibpath_overrides_runpath=no
adamc@1132 10011 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
adamc@1132 10012 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
adamc@1132 10013 hardcode_into_libs=yes
adamc@1132 10014 ;;
adamc@1132 10015
adamc@1132 10016 # No shared lib support for Linux oldld, aout, or coff.
adamc@1132 10017 linux*oldld* | linux*aout* | linux*coff*)
adamc@1132 10018 dynamic_linker=no
adamc@1132 10019 ;;
adamc@1132 10020
adam@1826 10021 # This must be Linux ELF.
adam@1826 10022 linux* | k*bsd*-gnu | kopensolaris*-gnu)
adam@1826 10023 version_type=linux
adamc@1132 10024 need_lib_prefix=no
adamc@1132 10025 need_version=no
adamc@1132 10026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 10027 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 10028 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
adamc@1132 10029 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 10030 shlibpath_overrides_runpath=no
adamc@1132 10031 # Some binutils ld are patched to set DT_RUNPATH
adam@1826 10032 save_LDFLAGS=$LDFLAGS
adam@1826 10033 save_libdir=$libdir
adam@1826 10034 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
adam@1826 10035 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
adam@1826 10036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 10037 /* end confdefs.h. */
adamc@1132 10038
adamc@1132 10039 int
adamc@1132 10040 main ()
adamc@1132 10041 {
adamc@1132 10042
adamc@1132 10043 ;
adamc@1132 10044 return 0;
adamc@1132 10045 }
adamc@1132 10046 _ACEOF
adamc@1132 10047 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 10048 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
adam@1826 10049 shlibpath_overrides_runpath=yes
adamc@1132 10050 fi
adamc@1132 10051 fi
adamc@1132 10052 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 10053 conftest$ac_exeext conftest.$ac_ext
adam@1826 10054 LDFLAGS=$save_LDFLAGS
adam@1826 10055 libdir=$save_libdir
adamc@1132 10056
adamc@1132 10057 # This implies no fast_install, which is unacceptable.
adamc@1132 10058 # Some rework will be needed to allow for fast_install
adamc@1132 10059 # before this can be enabled.
adamc@1132 10060 hardcode_into_libs=yes
adamc@1132 10061
adamc@1132 10062 # Append ld.so.conf contents to the search path
adamc@1132 10063 if test -f /etc/ld.so.conf; then
adam@1826 10064 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 10065 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
adamc@1132 10066 fi
adamc@1132 10067
adamc@1132 10068 # We used to test for /lib/ld.so.1 and disable shared libraries on
adamc@1132 10069 # powerpc, because MkLinux only supported shared libraries with the
adamc@1132 10070 # GNU dynamic linker. Since this was broken with cross compilers,
adamc@1132 10071 # most powerpc-linux boxes support dynamic linking these days and
adamc@1132 10072 # people can always --disable-shared, the test was removed, and we
adamc@1132 10073 # assume the GNU/Linux dynamic linker is in use.
adamc@1132 10074 dynamic_linker='GNU/Linux ld.so'
adamc@1132 10075 ;;
adamc@1132 10076
adamc@1132 10077 netbsdelf*-gnu)
adamc@1132 10078 version_type=linux
adamc@1132 10079 need_lib_prefix=no
adamc@1132 10080 need_version=no
adamc@1132 10081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
adamc@1132 10082 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 10083 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 10084 shlibpath_overrides_runpath=no
adamc@1132 10085 hardcode_into_libs=yes
adamc@1132 10086 dynamic_linker='NetBSD ld.elf_so'
adamc@1132 10087 ;;
adamc@1132 10088
adamc@1132 10089 netbsd*)
adamc@1132 10090 version_type=sunos
adamc@1132 10091 need_lib_prefix=no
adamc@1132 10092 need_version=no
adamc@1132 10093 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
adamc@1132 10094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
adamc@1132 10095 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
adamc@1132 10096 dynamic_linker='NetBSD (a.out) ld.so'
adamc@1132 10097 else
adamc@1132 10098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
adamc@1132 10099 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 10100 dynamic_linker='NetBSD ld.elf_so'
adamc@1132 10101 fi
adamc@1132 10102 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 10103 shlibpath_overrides_runpath=yes
adamc@1132 10104 hardcode_into_libs=yes
adamc@1132 10105 ;;
adamc@1132 10106
adamc@1132 10107 newsos6)
adam@1826 10108 version_type=linux
adamc@1132 10109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 10110 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 10111 shlibpath_overrides_runpath=yes
adamc@1132 10112 ;;
adamc@1132 10113
adamc@1132 10114 *nto* | *qnx*)
adamc@1132 10115 version_type=qnx
adamc@1132 10116 need_lib_prefix=no
adamc@1132 10117 need_version=no
adamc@1132 10118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 10119 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 10120 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 10121 shlibpath_overrides_runpath=no
adamc@1132 10122 hardcode_into_libs=yes
adamc@1132 10123 dynamic_linker='ldqnx.so'
adamc@1132 10124 ;;
adamc@1132 10125
adamc@1132 10126 openbsd*)
adamc@1132 10127 version_type=sunos
adamc@1132 10128 sys_lib_dlsearch_path_spec="/usr/lib"
adamc@1132 10129 need_lib_prefix=no
adamc@1132 10130 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
adamc@1132 10131 case $host_os in
adamc@1132 10132 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
adamc@1132 10133 *) need_version=no ;;
adamc@1132 10134 esac
adamc@1132 10135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
adamc@1132 10136 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
adamc@1132 10137 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 10138 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
adamc@1132 10139 case $host_os in
adamc@1132 10140 openbsd2.[89] | openbsd2.[89].*)
adamc@1132 10141 shlibpath_overrides_runpath=no
adamc@1132 10142 ;;
adamc@1132 10143 *)
adamc@1132 10144 shlibpath_overrides_runpath=yes
adamc@1132 10145 ;;
adamc@1132 10146 esac
adamc@1132 10147 else
adamc@1132 10148 shlibpath_overrides_runpath=yes
adamc@1132 10149 fi
adamc@1132 10150 ;;
adamc@1132 10151
adamc@1132 10152 os2*)
adamc@1132 10153 libname_spec='$name'
adamc@1132 10154 shrext_cmds=".dll"
adamc@1132 10155 need_lib_prefix=no
adamc@1132 10156 library_names_spec='$libname${shared_ext} $libname.a'
adamc@1132 10157 dynamic_linker='OS/2 ld.exe'
adamc@1132 10158 shlibpath_var=LIBPATH
adamc@1132 10159 ;;
adamc@1132 10160
adamc@1132 10161 osf3* | osf4* | osf5*)
adamc@1132 10162 version_type=osf
adamc@1132 10163 need_lib_prefix=no
adamc@1132 10164 need_version=no
adamc@1132 10165 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 10166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 10167 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 10168 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
adamc@1132 10169 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
adamc@1132 10170 ;;
adamc@1132 10171
adamc@1132 10172 rdos*)
adamc@1132 10173 dynamic_linker=no
adamc@1132 10174 ;;
adamc@1132 10175
adamc@1132 10176 solaris*)
adam@1826 10177 version_type=linux
adamc@1132 10178 need_lib_prefix=no
adamc@1132 10179 need_version=no
adamc@1132 10180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 10181 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 10182 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 10183 shlibpath_overrides_runpath=yes
adamc@1132 10184 hardcode_into_libs=yes
adamc@1132 10185 # ldd complains unless libraries are executable
adamc@1132 10186 postinstall_cmds='chmod +x $lib'
adamc@1132 10187 ;;
adamc@1132 10188
adamc@1132 10189 sunos4*)
adamc@1132 10190 version_type=sunos
adamc@1132 10191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
adamc@1132 10192 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
adamc@1132 10193 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 10194 shlibpath_overrides_runpath=yes
adamc@1132 10195 if test "$with_gnu_ld" = yes; then
adamc@1132 10196 need_lib_prefix=no
adamc@1132 10197 fi
adamc@1132 10198 need_version=yes
adamc@1132 10199 ;;
adamc@1132 10200
adamc@1132 10201 sysv4 | sysv4.3*)
adam@1826 10202 version_type=linux
adamc@1132 10203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 10204 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 10205 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 10206 case $host_vendor in
adamc@1132 10207 sni)
adamc@1132 10208 shlibpath_overrides_runpath=no
adamc@1132 10209 need_lib_prefix=no
adamc@1132 10210 runpath_var=LD_RUN_PATH
adamc@1132 10211 ;;
adamc@1132 10212 siemens)
adamc@1132 10213 need_lib_prefix=no
adamc@1132 10214 ;;
adamc@1132 10215 motorola)
adamc@1132 10216 need_lib_prefix=no
adamc@1132 10217 need_version=no
adamc@1132 10218 shlibpath_overrides_runpath=no
adamc@1132 10219 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
adamc@1132 10220 ;;
adamc@1132 10221 esac
adamc@1132 10222 ;;
adamc@1132 10223
adamc@1132 10224 sysv4*MP*)
adamc@1132 10225 if test -d /usr/nec ;then
adam@1826 10226 version_type=linux
adamc@1132 10227 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
adamc@1132 10228 soname_spec='$libname${shared_ext}.$major'
adamc@1132 10229 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 10230 fi
adamc@1132 10231 ;;
adamc@1132 10232
adamc@1132 10233 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
adamc@1132 10234 version_type=freebsd-elf
adamc@1132 10235 need_lib_prefix=no
adamc@1132 10236 need_version=no
adamc@1132 10237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
adamc@1132 10238 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 10239 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 10240 shlibpath_overrides_runpath=yes
adamc@1132 10241 hardcode_into_libs=yes
adamc@1132 10242 if test "$with_gnu_ld" = yes; then
adamc@1132 10243 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
adamc@1132 10244 else
adamc@1132 10245 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
adamc@1132 10246 case $host_os in
adamc@1132 10247 sco3.2v5*)
adamc@1132 10248 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
adamc@1132 10249 ;;
adamc@1132 10250 esac
adamc@1132 10251 fi
adamc@1132 10252 sys_lib_dlsearch_path_spec='/usr/lib'
adamc@1132 10253 ;;
adamc@1132 10254
adamc@1132 10255 tpf*)
adamc@1132 10256 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
adam@1826 10257 version_type=linux
adamc@1132 10258 need_lib_prefix=no
adamc@1132 10259 need_version=no
adamc@1132 10260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 10261 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 10262 shlibpath_overrides_runpath=no
adamc@1132 10263 hardcode_into_libs=yes
adamc@1132 10264 ;;
adamc@1132 10265
adamc@1132 10266 uts4*)
adam@1826 10267 version_type=linux
adamc@1132 10268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
adamc@1132 10269 soname_spec='${libname}${release}${shared_ext}$major'
adamc@1132 10270 shlibpath_var=LD_LIBRARY_PATH
adamc@1132 10271 ;;
adamc@1132 10272
adamc@1132 10273 *)
adamc@1132 10274 dynamic_linker=no
adamc@1132 10275 ;;
adamc@1132 10276 esac
adamc@1132 10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
adamc@1132 10278 $as_echo "$dynamic_linker" >&6; }
adamc@1132 10279 test "$dynamic_linker" = no && can_build_shared=no
adamc@1132 10280
adamc@1132 10281 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
adamc@1132 10282 if test "$GCC" = yes; then
adamc@1132 10283 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
adamc@1132 10284 fi
adamc@1132 10285
adamc@1132 10286 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
adamc@1132 10287 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
adamc@1132 10288 fi
adamc@1132 10289 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
adamc@1132 10290 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
adamc@1132 10291 fi
adamc@1132 10292
adamc@1132 10293
adamc@1132 10294
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
adamc@1132 10309
adamc@1132 10310
adamc@1132 10311
adamc@1132 10312
adamc@1132 10313
adamc@1132 10314
adamc@1132 10315
adamc@1132 10316
adamc@1132 10317
adamc@1132 10318
adamc@1132 10319
adamc@1132 10320
adamc@1132 10321
adamc@1132 10322
adamc@1132 10323
adamc@1132 10324
adamc@1132 10325
adamc@1132 10326
adamc@1132 10327
adamc@1132 10328
adamc@1132 10329
adamc@1132 10330
adamc@1132 10331
adamc@1132 10332
adamc@1132 10333
adamc@1132 10334
adamc@1132 10335
adamc@1132 10336
adamc@1132 10337
adamc@1132 10338
adamc@1132 10339
adamc@1132 10340
adamc@1132 10341
adamc@1132 10342
adamc@1132 10343
adamc@1132 10344
adamc@1132 10345
adamc@1132 10346
adamc@1132 10347
adamc@1132 10348
adamc@1132 10349
adamc@1132 10350
adamc@1132 10351
adamc@1132 10352
adamc@1132 10353
adamc@1132 10354
adamc@1132 10355
adamc@1132 10356
adamc@1132 10357
adamc@1132 10358
adamc@1132 10359
adamc@1132 10360
adamc@1132 10361
adamc@1132 10362
adamc@1132 10363
adamc@1132 10364
adamc@1132 10365
adamc@1132 10366
adamc@1132 10367
adamc@1132 10368
adamc@1132 10369
adamc@1132 10370
adamc@1132 10371
adamc@1132 10372
adamc@1132 10373
adamc@1132 10374
adamc@1132 10375
adamc@1132 10376
adamc@1132 10377
adamc@1132 10378
adamc@1132 10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
adamc@1132 10380 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
adamc@1132 10381 hardcode_action=
adamc@1132 10382 if test -n "$hardcode_libdir_flag_spec" ||
adamc@1132 10383 test -n "$runpath_var" ||
adamc@1132 10384 test "X$hardcode_automatic" = "Xyes" ; then
adamc@1132 10385
adamc@1132 10386 # We can hardcode non-existent directories.
adamc@1132 10387 if test "$hardcode_direct" != no &&
adamc@1132 10388 # If the only mechanism to avoid hardcoding is shlibpath_var, we
adamc@1132 10389 # have to relink, otherwise we might link with an installed library
adamc@1132 10390 # when we should be linking with a yet-to-be-installed one
adamc@1132 10391 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
adamc@1132 10392 test "$hardcode_minus_L" != no; then
adamc@1132 10393 # Linking always hardcodes the temporary library directory.
adamc@1132 10394 hardcode_action=relink
adamc@1132 10395 else
adamc@1132 10396 # We can link without hardcoding, and we can hardcode nonexisting dirs.
adamc@1132 10397 hardcode_action=immediate
adamc@1132 10398 fi
adamc@1132 10399 else
adamc@1132 10400 # We cannot hardcode anything, or else we can only hardcode existing
adamc@1132 10401 # directories.
adamc@1132 10402 hardcode_action=unsupported
adamc@1132 10403 fi
adamc@1132 10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
adamc@1132 10405 $as_echo "$hardcode_action" >&6; }
adamc@1132 10406
adamc@1132 10407 if test "$hardcode_action" = relink ||
adamc@1132 10408 test "$inherit_rpath" = yes; then
adamc@1132 10409 # Fast installation is not supported
adamc@1132 10410 enable_fast_install=no
adamc@1132 10411 elif test "$shlibpath_overrides_runpath" = yes ||
adamc@1132 10412 test "$enable_shared" = no; then
adamc@1132 10413 # Fast installation is not necessary
adamc@1132 10414 enable_fast_install=needless
adamc@1132 10415 fi
adamc@1132 10416
adamc@1132 10417
adamc@1132 10418
adamc@1132 10419
adamc@1132 10420
adamc@1132 10421
adamc@1132 10422 if test "x$enable_dlopen" != xyes; then
adamc@1132 10423 enable_dlopen=unknown
adamc@1132 10424 enable_dlopen_self=unknown
adamc@1132 10425 enable_dlopen_self_static=unknown
adamc@1132 10426 else
adamc@1132 10427 lt_cv_dlopen=no
adamc@1132 10428 lt_cv_dlopen_libs=
adamc@1132 10429
adamc@1132 10430 case $host_os in
adamc@1132 10431 beos*)
adamc@1132 10432 lt_cv_dlopen="load_add_on"
adamc@1132 10433 lt_cv_dlopen_libs=
adamc@1132 10434 lt_cv_dlopen_self=yes
adamc@1132 10435 ;;
adamc@1132 10436
adamc@1132 10437 mingw* | pw32* | cegcc*)
adamc@1132 10438 lt_cv_dlopen="LoadLibrary"
adamc@1132 10439 lt_cv_dlopen_libs=
adamc@1132 10440 ;;
adamc@1132 10441
adamc@1132 10442 cygwin*)
adamc@1132 10443 lt_cv_dlopen="dlopen"
adamc@1132 10444 lt_cv_dlopen_libs=
adamc@1132 10445 ;;
adamc@1132 10446
adamc@1132 10447 darwin*)
adamc@1132 10448 # if libdl is installed we need to link against it
adamc@1132 10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
adamc@1132 10450 $as_echo_n "checking for dlopen in -ldl... " >&6; }
adam@1826 10451 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
adamc@1132 10452 $as_echo_n "(cached) " >&6
adamc@1132 10453 else
adamc@1132 10454 ac_check_lib_save_LIBS=$LIBS
adamc@1132 10455 LIBS="-ldl $LIBS"
adamc@1132 10456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 10457 /* end confdefs.h. */
adamc@1132 10458
adamc@1132 10459 /* Override any GCC internal prototype to avoid an error.
adamc@1132 10460 Use char because int might match the return type of a GCC
adamc@1132 10461 builtin and then its argument prototype would still apply. */
adamc@1132 10462 #ifdef __cplusplus
adamc@1132 10463 extern "C"
adamc@1132 10464 #endif
adamc@1132 10465 char dlopen ();
adamc@1132 10466 int
adamc@1132 10467 main ()
adamc@1132 10468 {
adamc@1132 10469 return dlopen ();
adamc@1132 10470 ;
adamc@1132 10471 return 0;
adamc@1132 10472 }
adamc@1132 10473 _ACEOF
adamc@1132 10474 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 10475 ac_cv_lib_dl_dlopen=yes
adamc@1132 10476 else
adamc@1132 10477 ac_cv_lib_dl_dlopen=no
adamc@1132 10478 fi
adamc@1132 10479 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 10480 conftest$ac_exeext conftest.$ac_ext
adamc@1132 10481 LIBS=$ac_check_lib_save_LIBS
adamc@1132 10482 fi
adamc@1132 10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
adamc@1132 10484 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
adam@1826 10485 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
adamc@1132 10486 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
adamc@1132 10487 else
adamc@1132 10488
adamc@1132 10489 lt_cv_dlopen="dyld"
adamc@1132 10490 lt_cv_dlopen_libs=
adamc@1132 10491 lt_cv_dlopen_self=yes
adamc@1132 10492
adamc@1132 10493 fi
adamc@1132 10494
adamc@1132 10495 ;;
adamc@1132 10496
adamc@1132 10497 *)
adamc@1132 10498 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
adam@1826 10499 if test "x$ac_cv_func_shl_load" = x""yes; then :
adamc@1132 10500 lt_cv_dlopen="shl_load"
adamc@1132 10501 else
adamc@1132 10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
adamc@1132 10503 $as_echo_n "checking for shl_load in -ldld... " >&6; }
adam@1826 10504 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
adamc@1132 10505 $as_echo_n "(cached) " >&6
adamc@1132 10506 else
adamc@1132 10507 ac_check_lib_save_LIBS=$LIBS
adamc@1132 10508 LIBS="-ldld $LIBS"
adamc@1132 10509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 10510 /* end confdefs.h. */
adamc@1132 10511
adamc@1132 10512 /* Override any GCC internal prototype to avoid an error.
adamc@1132 10513 Use char because int might match the return type of a GCC
adamc@1132 10514 builtin and then its argument prototype would still apply. */
adamc@1132 10515 #ifdef __cplusplus
adamc@1132 10516 extern "C"
adamc@1132 10517 #endif
adamc@1132 10518 char shl_load ();
adamc@1132 10519 int
adamc@1132 10520 main ()
adamc@1132 10521 {
adamc@1132 10522 return shl_load ();
adamc@1132 10523 ;
adamc@1132 10524 return 0;
adamc@1132 10525 }
adamc@1132 10526 _ACEOF
adamc@1132 10527 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 10528 ac_cv_lib_dld_shl_load=yes
adamc@1132 10529 else
adamc@1132 10530 ac_cv_lib_dld_shl_load=no
adamc@1132 10531 fi
adamc@1132 10532 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 10533 conftest$ac_exeext conftest.$ac_ext
adamc@1132 10534 LIBS=$ac_check_lib_save_LIBS
adamc@1132 10535 fi
adamc@1132 10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
adamc@1132 10537 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
adam@1826 10538 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
adamc@1132 10539 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
adamc@1132 10540 else
adamc@1132 10541 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
adam@1826 10542 if test "x$ac_cv_func_dlopen" = x""yes; then :
adamc@1132 10543 lt_cv_dlopen="dlopen"
adamc@1132 10544 else
adamc@1132 10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
adamc@1132 10546 $as_echo_n "checking for dlopen in -ldl... " >&6; }
adam@1826 10547 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
adamc@1132 10548 $as_echo_n "(cached) " >&6
adamc@1132 10549 else
adamc@1132 10550 ac_check_lib_save_LIBS=$LIBS
adamc@1132 10551 LIBS="-ldl $LIBS"
adamc@1132 10552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 10553 /* end confdefs.h. */
adamc@1132 10554
adamc@1132 10555 /* Override any GCC internal prototype to avoid an error.
adamc@1132 10556 Use char because int might match the return type of a GCC
adamc@1132 10557 builtin and then its argument prototype would still apply. */
adamc@1132 10558 #ifdef __cplusplus
adamc@1132 10559 extern "C"
adamc@1132 10560 #endif
adamc@1132 10561 char dlopen ();
adamc@1132 10562 int
adamc@1132 10563 main ()
adamc@1132 10564 {
adamc@1132 10565 return dlopen ();
adamc@1132 10566 ;
adamc@1132 10567 return 0;
adamc@1132 10568 }
adamc@1132 10569 _ACEOF
adamc@1132 10570 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 10571 ac_cv_lib_dl_dlopen=yes
adamc@1132 10572 else
adamc@1132 10573 ac_cv_lib_dl_dlopen=no
adamc@1132 10574 fi
adamc@1132 10575 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 10576 conftest$ac_exeext conftest.$ac_ext
adamc@1132 10577 LIBS=$ac_check_lib_save_LIBS
adamc@1132 10578 fi
adamc@1132 10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
adamc@1132 10580 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
adam@1826 10581 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
adamc@1132 10582 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
adamc@1132 10583 else
adamc@1132 10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
adamc@1132 10585 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
adam@1826 10586 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
adamc@1132 10587 $as_echo_n "(cached) " >&6
adamc@1132 10588 else
adamc@1132 10589 ac_check_lib_save_LIBS=$LIBS
adamc@1132 10590 LIBS="-lsvld $LIBS"
adamc@1132 10591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 10592 /* end confdefs.h. */
adamc@1132 10593
adamc@1132 10594 /* Override any GCC internal prototype to avoid an error.
adamc@1132 10595 Use char because int might match the return type of a GCC
adamc@1132 10596 builtin and then its argument prototype would still apply. */
adamc@1132 10597 #ifdef __cplusplus
adamc@1132 10598 extern "C"
adamc@1132 10599 #endif
adamc@1132 10600 char dlopen ();
adamc@1132 10601 int
adamc@1132 10602 main ()
adamc@1132 10603 {
adamc@1132 10604 return dlopen ();
adamc@1132 10605 ;
adamc@1132 10606 return 0;
adamc@1132 10607 }
adamc@1132 10608 _ACEOF
adamc@1132 10609 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 10610 ac_cv_lib_svld_dlopen=yes
adamc@1132 10611 else
adamc@1132 10612 ac_cv_lib_svld_dlopen=no
adamc@1132 10613 fi
adamc@1132 10614 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 10615 conftest$ac_exeext conftest.$ac_ext
adamc@1132 10616 LIBS=$ac_check_lib_save_LIBS
adamc@1132 10617 fi
adamc@1132 10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
adamc@1132 10619 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
adam@1826 10620 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
adamc@1132 10621 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
adamc@1132 10622 else
adamc@1132 10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
adamc@1132 10624 $as_echo_n "checking for dld_link in -ldld... " >&6; }
adam@1826 10625 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
adamc@1132 10626 $as_echo_n "(cached) " >&6
adamc@1132 10627 else
adamc@1132 10628 ac_check_lib_save_LIBS=$LIBS
adamc@1132 10629 LIBS="-ldld $LIBS"
adamc@1132 10630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1132 10631 /* end confdefs.h. */
adamc@1132 10632
adamc@1132 10633 /* Override any GCC internal prototype to avoid an error.
adamc@1132 10634 Use char because int might match the return type of a GCC
adamc@1132 10635 builtin and then its argument prototype would still apply. */
adamc@1132 10636 #ifdef __cplusplus
adamc@1132 10637 extern "C"
adamc@1132 10638 #endif
adamc@1132 10639 char dld_link ();
adamc@1132 10640 int
adamc@1132 10641 main ()
adamc@1132 10642 {
adamc@1132 10643 return dld_link ();
adamc@1132 10644 ;
adamc@1132 10645 return 0;
adamc@1132 10646 }
adamc@1132 10647 _ACEOF
adamc@1132 10648 if ac_fn_c_try_link "$LINENO"; then :
adamc@1132 10649 ac_cv_lib_dld_dld_link=yes
adamc@1132 10650 else
adamc@1132 10651 ac_cv_lib_dld_dld_link=no
adamc@1132 10652 fi
adamc@1132 10653 rm -f core conftest.err conftest.$ac_objext \
adamc@1132 10654 conftest$ac_exeext conftest.$ac_ext
adamc@1132 10655 LIBS=$ac_check_lib_save_LIBS
adamc@1132 10656 fi
adamc@1132 10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
adamc@1132 10658 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
adam@1826 10659 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
adamc@1132 10660 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
adamc@1132 10661 fi
adamc@1132 10662
adamc@1132 10663
adamc@1132 10664 fi
adamc@1132 10665
adamc@1132 10666
adamc@1132 10667 fi
adamc@1132 10668
adamc@1132 10669
adamc@1132 10670 fi
adamc@1132 10671
adamc@1132 10672
adamc@1132 10673 fi
adamc@1132 10674
adamc@1132 10675
adamc@1132 10676 fi
adamc@1132 10677
adamc@1132 10678 ;;
adamc@1132 10679 esac
adamc@1132 10680
adamc@1132 10681 if test "x$lt_cv_dlopen" != xno; then
adamc@1132 10682 enable_dlopen=yes
adamc@1132 10683 else
adamc@1132 10684 enable_dlopen=no
adamc@1132 10685 fi
adamc@1132 10686
adamc@1132 10687 case $lt_cv_dlopen in
adamc@1132 10688 dlopen)
adamc@1132 10689 save_CPPFLAGS="$CPPFLAGS"
adamc@1132 10690 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
adamc@1132 10691
adamc@1132 10692 save_LDFLAGS="$LDFLAGS"
adamc@1132 10693 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
adamc@1132 10694
adamc@1132 10695 save_LIBS="$LIBS"
adamc@1132 10696 LIBS="$lt_cv_dlopen_libs $LIBS"
adamc@1132 10697
adamc@1132 10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
adamc@1132 10699 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
adam@1826 10700 if test "${lt_cv_dlopen_self+set}" = set; then :
adamc@1132 10701 $as_echo_n "(cached) " >&6
adamc@1132 10702 else
adamc@1132 10703 if test "$cross_compiling" = yes; then :
adamc@1132 10704 lt_cv_dlopen_self=cross
adamc@1132 10705 else
adamc@1132 10706 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
adamc@1132 10707 lt_status=$lt_dlunknown
adamc@1132 10708 cat > conftest.$ac_ext <<_LT_EOF
adam@1838 10709 #line 10709 "configure"
adamc@1132 10710 #include "confdefs.h"
adamc@1132 10711
adamc@1132 10712 #if HAVE_DLFCN_H
adamc@1132 10713 #include <dlfcn.h>
adamc@1132 10714 #endif
adamc@1132 10715
adamc@1132 10716 #include <stdio.h>
adamc@1132 10717
adamc@1132 10718 #ifdef RTLD_GLOBAL
adamc@1132 10719 # define LT_DLGLOBAL RTLD_GLOBAL
adamc@1132 10720 #else
adamc@1132 10721 # ifdef DL_GLOBAL
adamc@1132 10722 # define LT_DLGLOBAL DL_GLOBAL
adamc@1132 10723 # else
adamc@1132 10724 # define LT_DLGLOBAL 0
adamc@1132 10725 # endif
adamc@1132 10726 #endif
adamc@1132 10727
adamc@1132 10728 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
adamc@1132 10729 find out it does not work in some platform. */
adamc@1132 10730 #ifndef LT_DLLAZY_OR_NOW
adamc@1132 10731 # ifdef RTLD_LAZY
adamc@1132 10732 # define LT_DLLAZY_OR_NOW RTLD_LAZY
adamc@1132 10733 # else
adamc@1132 10734 # ifdef DL_LAZY
adamc@1132 10735 # define LT_DLLAZY_OR_NOW DL_LAZY
adamc@1132 10736 # else
adamc@1132 10737 # ifdef RTLD_NOW
adamc@1132 10738 # define LT_DLLAZY_OR_NOW RTLD_NOW
adamc@1132 10739 # else
adamc@1132 10740 # ifdef DL_NOW
adamc@1132 10741 # define LT_DLLAZY_OR_NOW DL_NOW
adamc@1132 10742 # else
adamc@1132 10743 # define LT_DLLAZY_OR_NOW 0
adamc@1132 10744 # endif
adamc@1132 10745 # endif
adamc@1132 10746 # endif
adamc@1132 10747 # endif
adamc@1132 10748 #endif
adamc@1132 10749
adam@1826 10750 void fnord() { int i=42;}
adamc@1132 10751 int main ()
adamc@1132 10752 {
adamc@1132 10753 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
adamc@1132 10754 int status = $lt_dlunknown;
adamc@1132 10755
adamc@1132 10756 if (self)
adamc@1132 10757 {
adamc@1132 10758 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
adam@1826 10759 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
adamc@1132 10760 /* dlclose (self); */
adamc@1132 10761 }
adamc@1132 10762 else
adamc@1132 10763 puts (dlerror ());
adamc@1132 10764
adamc@1132 10765 return status;
adamc@1132 10766 }
adamc@1132 10767 _LT_EOF
adamc@1132 10768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
adamc@1132 10769 (eval $ac_link) 2>&5
adamc@1132 10770 ac_status=$?
adamc@1132 10771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 10772 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
adamc@1132 10773 (./conftest; exit; ) >&5 2>/dev/null
adamc@1132 10774 lt_status=$?
adamc@1132 10775 case x$lt_status in
adamc@1132 10776 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
adamc@1132 10777 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
adamc@1132 10778 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
adamc@1132 10779 esac
adamc@1132 10780 else :
adamc@1132 10781 # compilation failed
adamc@1132 10782 lt_cv_dlopen_self=no
adamc@1132 10783 fi
adamc@1132 10784 fi
adamc@1132 10785 rm -fr conftest*
adamc@1132 10786
adamc@1132 10787
adamc@1132 10788 fi
adamc@1132 10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
adamc@1132 10790 $as_echo "$lt_cv_dlopen_self" >&6; }
adamc@1132 10791
adamc@1132 10792 if test "x$lt_cv_dlopen_self" = xyes; then
adamc@1132 10793 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
adamc@1132 10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
adamc@1132 10795 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
adam@1826 10796 if test "${lt_cv_dlopen_self_static+set}" = set; then :
adamc@1132 10797 $as_echo_n "(cached) " >&6
adamc@1132 10798 else
adamc@1132 10799 if test "$cross_compiling" = yes; then :
adamc@1132 10800 lt_cv_dlopen_self_static=cross
adamc@1132 10801 else
adamc@1132 10802 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
adamc@1132 10803 lt_status=$lt_dlunknown
adamc@1132 10804 cat > conftest.$ac_ext <<_LT_EOF
adam@1838 10805 #line 10805 "configure"
adamc@1132 10806 #include "confdefs.h"
adamc@1132 10807
adamc@1132 10808 #if HAVE_DLFCN_H
adamc@1132 10809 #include <dlfcn.h>
adamc@1132 10810 #endif
adamc@1132 10811
adamc@1132 10812 #include <stdio.h>
adamc@1132 10813
adamc@1132 10814 #ifdef RTLD_GLOBAL
adamc@1132 10815 # define LT_DLGLOBAL RTLD_GLOBAL
adamc@1132 10816 #else
adamc@1132 10817 # ifdef DL_GLOBAL
adamc@1132 10818 # define LT_DLGLOBAL DL_GLOBAL
adamc@1132 10819 # else
adamc@1132 10820 # define LT_DLGLOBAL 0
adamc@1132 10821 # endif
adamc@1132 10822 #endif
adamc@1132 10823
adamc@1132 10824 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
adamc@1132 10825 find out it does not work in some platform. */
adamc@1132 10826 #ifndef LT_DLLAZY_OR_NOW
adamc@1132 10827 # ifdef RTLD_LAZY
adamc@1132 10828 # define LT_DLLAZY_OR_NOW RTLD_LAZY
adamc@1132 10829 # else
adamc@1132 10830 # ifdef DL_LAZY
adamc@1132 10831 # define LT_DLLAZY_OR_NOW DL_LAZY
adamc@1132 10832 # else
adamc@1132 10833 # ifdef RTLD_NOW
adamc@1132 10834 # define LT_DLLAZY_OR_NOW RTLD_NOW
adamc@1132 10835 # else
adamc@1132 10836 # ifdef DL_NOW
adamc@1132 10837 # define LT_DLLAZY_OR_NOW DL_NOW
adamc@1132 10838 # else
adamc@1132 10839 # define LT_DLLAZY_OR_NOW 0
adamc@1132 10840 # endif
adamc@1132 10841 # endif
adamc@1132 10842 # endif
adamc@1132 10843 # endif
adamc@1132 10844 #endif
adamc@1132 10845
adam@1826 10846 void fnord() { int i=42;}
adamc@1132 10847 int main ()
adamc@1132 10848 {
adamc@1132 10849 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
adamc@1132 10850 int status = $lt_dlunknown;
adamc@1132 10851
adamc@1132 10852 if (self)
adamc@1132 10853 {
adamc@1132 10854 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
adam@1826 10855 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
adamc@1132 10856 /* dlclose (self); */
adamc@1132 10857 }
adamc@1132 10858 else
adamc@1132 10859 puts (dlerror ());
adamc@1132 10860
adamc@1132 10861 return status;
adamc@1132 10862 }
adamc@1132 10863 _LT_EOF
adamc@1132 10864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
adamc@1132 10865 (eval $ac_link) 2>&5
adamc@1132 10866 ac_status=$?
adamc@1132 10867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
adamc@1132 10868 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
adamc@1132 10869 (./conftest; exit; ) >&5 2>/dev/null
adamc@1132 10870 lt_status=$?
adamc@1132 10871 case x$lt_status in
adamc@1132 10872 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
adamc@1132 10873 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
adamc@1132 10874 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
adamc@1132 10875 esac
adamc@1132 10876 else :
adamc@1132 10877 # compilation failed
adamc@1132 10878 lt_cv_dlopen_self_static=no
adamc@1132 10879 fi
adamc@1132 10880 fi
adamc@1132 10881 rm -fr conftest*
adamc@1132 10882
adamc@1132 10883
adamc@1132 10884 fi
adamc@1132 10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
adamc@1132 10886 $as_echo "$lt_cv_dlopen_self_static" >&6; }
adamc@1132 10887 fi
adamc@1132 10888
adamc@1132 10889 CPPFLAGS="$save_CPPFLAGS"
adamc@1132 10890 LDFLAGS="$save_LDFLAGS"
adamc@1132 10891 LIBS="$save_LIBS"
adamc@1132 10892 ;;
adamc@1132 10893 esac
adamc@1132 10894
adamc@1132 10895 case $lt_cv_dlopen_self in
adamc@1132 10896 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
adamc@1132 10897 *) enable_dlopen_self=unknown ;;
adamc@1132 10898 esac
adamc@1132 10899
adamc@1132 10900 case $lt_cv_dlopen_self_static in
adamc@1132 10901 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
adamc@1132 10902 *) enable_dlopen_self_static=unknown ;;
adamc@1132 10903 esac
adamc@1132 10904 fi
adamc@1132 10905
adamc@1132 10906
adamc@1132 10907
adamc@1132 10908
adamc@1132 10909
adamc@1132 10910
adamc@1132 10911
adamc@1132 10912
adamc@1132 10913
adamc@1132 10914
adamc@1132 10915
adamc@1132 10916
adamc@1132 10917
adamc@1132 10918
adamc@1132 10919
adamc@1132 10920
adamc@1132 10921
adamc@1132 10922 striplib=
adamc@1132 10923 old_striplib=
adamc@1132 10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
adamc@1132 10925 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
adamc@1132 10926 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
adamc@1132 10927 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
adamc@1132 10928 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
adamc@1132 10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
adamc@1132 10930 $as_echo "yes" >&6; }
adamc@1132 10931 else
adamc@1132 10932 # FIXME - insert some real tests, host_os isn't really good enough
adamc@1132 10933 case $host_os in
adamc@1132 10934 darwin*)
adamc@1132 10935 if test -n "$STRIP" ; then
adamc@1132 10936 striplib="$STRIP -x"
adamc@1132 10937 old_striplib="$STRIP -S"
adamc@1132 10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
adamc@1132 10939 $as_echo "yes" >&6; }
adamc@1132 10940 else
adamc@1132 10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 10942 $as_echo "no" >&6; }
adamc@1132 10943 fi
adamc@1132 10944 ;;
adamc@1132 10945 *)
adamc@1132 10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1132 10947 $as_echo "no" >&6; }
adamc@1132 10948 ;;
adamc@1132 10949 esac
adamc@1132 10950 fi
adamc@1132 10951
adamc@1132 10952
adamc@1132 10953
adamc@1132 10954
adamc@1132 10955
adamc@1132 10956
adamc@1132 10957
adamc@1132 10958
adamc@1132 10959
adamc@1132 10960
adamc@1132 10961
adamc@1132 10962
adamc@1132 10963 # Report which library types will actually be built
adamc@1132 10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
adamc@1132 10965 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
adamc@1132 10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
adamc@1132 10967 $as_echo "$can_build_shared" >&6; }
adamc@1132 10968
adamc@1132 10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
adamc@1132 10970 $as_echo_n "checking whether to build shared libraries... " >&6; }
adamc@1132 10971 test "$can_build_shared" = "no" && enable_shared=no
adamc@1132 10972
adamc@1132 10973 # On AIX, shared libraries and static libraries use the same namespace, and
adamc@1132 10974 # are all built from PIC.
adamc@1132 10975 case $host_os in
adamc@1132 10976 aix3*)
adamc@1132 10977 test "$enable_shared" = yes && enable_static=no
adamc@1132 10978 if test -n "$RANLIB"; then
adamc@1132 10979 archive_cmds="$archive_cmds~\$RANLIB \$lib"
adamc@1132 10980 postinstall_cmds='$RANLIB $lib'
adamc@1132 10981 fi
adamc@1132 10982 ;;
adamc@1132 10983
adamc@1132 10984 aix[4-9]*)
adamc@1132 10985 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
adamc@1132 10986 test "$enable_shared" = yes && enable_static=no
adamc@1132 10987 fi
adamc@1132 10988 ;;
adamc@1132 10989 esac
adamc@1132 10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
adamc@1132 10991 $as_echo "$enable_shared" >&6; }
adamc@1132 10992
adamc@1132 10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
adamc@1132 10994 $as_echo_n "checking whether to build static libraries... " >&6; }
adamc@1132 10995 # Make sure either enable_shared or enable_static is yes.
adamc@1132 10996 test "$enable_shared" = yes || enable_static=yes
adamc@1132 10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
adamc@1132 10998 $as_echo "$enable_static" >&6; }
adamc@1132 10999
adamc@1132 11000
adamc@1132 11001
adamc@1132 11002
adamc@1132 11003 fi
adamc@1132 11004 ac_ext=c
adamc@1132 11005 ac_cpp='$CPP $CPPFLAGS'
adamc@1132 11006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adamc@1132 11007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adamc@1132 11008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adamc@1132 11009
adamc@1132 11010 CC="$lt_save_CC"
adamc@1132 11011
adamc@1132 11012
adamc@1132 11013
adamc@1132 11014
adamc@1132 11015
adamc@1132 11016
adamc@1132 11017
adamc@1132 11018
adamc@1132 11019
adamc@1132 11020
adamc@1132 11021
adamc@1132 11022
adamc@1132 11023
adamc@1132 11024 ac_config_commands="$ac_config_commands libtool"
adamc@1132 11025
adamc@1132 11026
adamc@1132 11027
adamc@1132 11028
adamc@1132 11029 # Only expand once:
adamc@1132 11030
adamc@1132 11031
adamc@378 11032
adam@1740 11033 ac_config_headers="$ac_config_headers include/urweb/config.h"
adamc@1263 11034
adamc@1141 11035
adam@1317 11036
adam@1528 11037
adam@1528 11038 ac_ext=c
adam@1528 11039 ac_cpp='$CPP $CPPFLAGS'
adam@1528 11040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adam@1528 11041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adam@1528 11042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adam@1528 11043
adam@1528 11044 ax_pthread_ok=no
adam@1528 11045
adam@1528 11046 # We used to check for pthread.h first, but this fails if pthread.h
adam@1528 11047 # requires special compiler flags (e.g. on True64 or Sequent).
adam@1528 11048 # It gets checked for in the link test anyway.
adam@1528 11049
adam@1528 11050 # First of all, check if the user has set any of the PTHREAD_LIBS,
adam@1528 11051 # etcetera environment variables, and if threads linking works using
adam@1528 11052 # them:
adam@1528 11053 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
adam@1528 11054 save_CFLAGS="$CFLAGS"
adam@1528 11055 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
adam@1528 11056 save_LIBS="$LIBS"
adam@1528 11057 LIBS="$PTHREAD_LIBS $LIBS"
adam@1528 11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
adam@1528 11059 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
adam@1528 11060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adam@1528 11061 /* end confdefs.h. */
adam@1528 11062
adam@1528 11063 /* Override any GCC internal prototype to avoid an error.
adam@1528 11064 Use char because int might match the return type of a GCC
adam@1528 11065 builtin and then its argument prototype would still apply. */
adam@1528 11066 #ifdef __cplusplus
adam@1528 11067 extern "C"
adam@1528 11068 #endif
adam@1528 11069 char pthread_join ();
adam@1528 11070 int
adam@1528 11071 main ()
adam@1528 11072 {
adam@1528 11073 return pthread_join ();
adam@1528 11074 ;
adam@1528 11075 return 0;
adam@1528 11076 }
adam@1528 11077 _ACEOF
adam@1528 11078 if ac_fn_c_try_link "$LINENO"; then :
adam@1528 11079 ax_pthread_ok=yes
adam@1528 11080 fi
adam@1528 11081 rm -f core conftest.err conftest.$ac_objext \
adam@1528 11082 conftest$ac_exeext conftest.$ac_ext
adam@1528 11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
adam@1528 11084 $as_echo "$ax_pthread_ok" >&6; }
adam@1528 11085 if test x"$ax_pthread_ok" = xno; then
adam@1528 11086 PTHREAD_LIBS=""
adam@1528 11087 PTHREAD_CFLAGS=""
adam@1528 11088 fi
adam@1528 11089 LIBS="$save_LIBS"
adam@1528 11090 CFLAGS="$save_CFLAGS"
adam@1528 11091 fi
adam@1528 11092
adam@1528 11093 # We must check for the threads library under a number of different
adam@1528 11094 # names; the ordering is very important because some systems
adam@1528 11095 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
adam@1528 11096 # libraries is broken (non-POSIX).
adam@1528 11097
adam@1528 11098 # Create a list of thread flags to try. Items starting with a "-" are
adam@1528 11099 # C compiler flags, and other items are library names, except for "none"
adam@1528 11100 # which indicates that we try without any flags at all, and "pthread-config"
adam@1528 11101 # which is a program returning the flags for the Pth emulation library.
adam@1528 11102
adam@1528 11103 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
adam@1528 11104
adam@1528 11105 # The ordering *is* (sometimes) important. Some notes on the
adam@1528 11106 # individual items follow:
adam@1528 11107
adam@1528 11108 # pthreads: AIX (must check this before -lpthread)
adam@1528 11109 # none: in case threads are in libc; should be tried before -Kthread and
adam@1528 11110 # other compiler flags to prevent continual compiler warnings
adam@1528 11111 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
adam@1528 11112 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
adam@1528 11113 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
adam@1528 11114 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
adam@1528 11115 # -pthreads: Solaris/gcc
adam@1528 11116 # -mthreads: Mingw32/gcc, Lynx/gcc
adam@1528 11117 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
adam@1528 11118 # doesn't hurt to check since this sometimes defines pthreads too;
adam@1528 11119 # also defines -D_REENTRANT)
adam@1528 11120 # ... -mt is also the pthreads flag for HP/aCC
adam@1528 11121 # pthread: Linux, etcetera
adam@1528 11122 # --thread-safe: KAI C++
adam@1528 11123 # pthread-config: use pthread-config program (for GNU Pth library)
adam@1528 11124
adam@1528 11125 case "${host_cpu}-${host_os}" in
adam@1528 11126 *solaris*)
adam@1528 11127
adam@1528 11128 # On Solaris (at least, for some versions), libc contains stubbed
adam@1528 11129 # (non-functional) versions of the pthreads routines, so link-based
adam@1528 11130 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
adam@1528 11131 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
adam@1528 11132 # a function called by this macro, so we could check for that, but
adam@1528 11133 # who knows whether they'll stub that too in a future libc.) So,
adam@1528 11134 # we'll just look for -pthreads and -lpthread first:
adam@1528 11135
adam@1528 11136 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
adam@1528 11137 ;;
adam@1528 11138
adam@1528 11139 *-darwin*)
adam@1528 11140 ax_pthread_flags="-pthread $ax_pthread_flags"
adam@1528 11141 ;;
adam@1528 11142 esac
adam@1528 11143
adam@1528 11144 if test x"$ax_pthread_ok" = xno; then
adam@1528 11145 for flag in $ax_pthread_flags; do
adam@1528 11146
adam@1528 11147 case $flag in
adam@1528 11148 none)
adam@1528 11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
adam@1528 11150 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
adam@1528 11151 ;;
adam@1528 11152
adam@1528 11153 -*)
adam@1528 11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
adam@1528 11155 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
adam@1528 11156 PTHREAD_CFLAGS="$flag"
adam@1528 11157 ;;
adam@1528 11158
adam@1528 11159 pthread-config)
adam@1528 11160 # Extract the first word of "pthread-config", so it can be a program name with args.
adam@1528 11161 set dummy pthread-config; ac_word=$2
adam@1528 11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adam@1528 11163 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 11164 if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
adam@1528 11165 $as_echo_n "(cached) " >&6
adam@1528 11166 else
adam@1528 11167 if test -n "$ax_pthread_config"; then
adam@1528 11168 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
adam@1528 11169 else
adam@1528 11170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adam@1528 11171 for as_dir in $PATH
adam@1528 11172 do
adam@1528 11173 IFS=$as_save_IFS
adam@1528 11174 test -z "$as_dir" && as_dir=.
adam@1528 11175 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 11176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adam@1528 11177 ac_cv_prog_ax_pthread_config="yes"
adam@1528 11178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adam@1528 11179 break 2
adam@1528 11180 fi
adam@1528 11181 done
adam@1528 11182 done
adam@1528 11183 IFS=$as_save_IFS
adam@1528 11184
adam@1528 11185 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
adam@1528 11186 fi
adam@1528 11187 fi
adam@1528 11188 ax_pthread_config=$ac_cv_prog_ax_pthread_config
adam@1528 11189 if test -n "$ax_pthread_config"; then
adam@1528 11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
adam@1528 11191 $as_echo "$ax_pthread_config" >&6; }
adam@1528 11192 else
adam@1528 11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adam@1528 11194 $as_echo "no" >&6; }
adam@1528 11195 fi
adam@1528 11196
adam@1528 11197
adam@1528 11198 if test x"$ax_pthread_config" = xno; then continue; fi
adam@1528 11199 PTHREAD_CFLAGS="`pthread-config --cflags`"
adam@1528 11200 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
adam@1528 11201 ;;
adam@1528 11202
adam@1528 11203 *)
adam@1528 11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
adam@1528 11205 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
adam@1528 11206 PTHREAD_LIBS="-l$flag"
adam@1528 11207 ;;
adam@1528 11208 esac
adam@1528 11209
adam@1528 11210 save_LIBS="$LIBS"
adam@1528 11211 save_CFLAGS="$CFLAGS"
adam@1528 11212 LIBS="$PTHREAD_LIBS $LIBS"
adam@1528 11213 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
adam@1528 11214
adam@1528 11215 # Check for various functions. We must include pthread.h,
adam@1528 11216 # since some functions may be macros. (On the Sequent, we
adam@1528 11217 # need a special flag -Kthread to make this header compile.)
adam@1528 11218 # We check for pthread_join because it is in -lpthread on IRIX
adam@1528 11219 # while pthread_create is in libc. We check for pthread_attr_init
adam@1528 11220 # due to DEC craziness with -lpthreads. We check for
adam@1528 11221 # pthread_cleanup_push because it is one of the few pthread
adam@1528 11222 # functions on Solaris that doesn't have a non-functional libc stub.
adam@1528 11223 # We try pthread_create on general principles.
adam@1528 11224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adam@1528 11225 /* end confdefs.h. */
adam@1528 11226 #include <pthread.h>
adam@1528 11227 static void routine(void *a) { a = 0; }
adam@1528 11228 static void *start_routine(void *a) { return a; }
adam@1528 11229 int
adam@1528 11230 main ()
adam@1528 11231 {
adam@1528 11232 pthread_t th; pthread_attr_t attr;
adam@1528 11233 pthread_create(&th, 0, start_routine, 0);
adam@1528 11234 pthread_join(th, 0);
adam@1528 11235 pthread_attr_init(&attr);
adam@1528 11236 pthread_cleanup_push(routine, 0);
adam@1528 11237 pthread_cleanup_pop(0) /* ; */
adam@1528 11238 ;
adam@1528 11239 return 0;
adam@1528 11240 }
adam@1528 11241 _ACEOF
adam@1528 11242 if ac_fn_c_try_link "$LINENO"; then :
adam@1528 11243 ax_pthread_ok=yes
adam@1528 11244 fi
adam@1528 11245 rm -f core conftest.err conftest.$ac_objext \
adam@1528 11246 conftest$ac_exeext conftest.$ac_ext
adam@1528 11247
adam@1528 11248 LIBS="$save_LIBS"
adam@1528 11249 CFLAGS="$save_CFLAGS"
adam@1528 11250
adam@1528 11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
adam@1528 11252 $as_echo "$ax_pthread_ok" >&6; }
adam@1528 11253 if test "x$ax_pthread_ok" = xyes; then
adam@1528 11254 break;
adam@1528 11255 fi
adam@1528 11256
adam@1528 11257 PTHREAD_LIBS=""
adam@1528 11258 PTHREAD_CFLAGS=""
adam@1528 11259 done
adam@1528 11260 fi
adam@1528 11261
adam@1528 11262 # Various other checks:
adam@1528 11263 if test "x$ax_pthread_ok" = xyes; then
adam@1528 11264 save_LIBS="$LIBS"
adam@1528 11265 LIBS="$PTHREAD_LIBS $LIBS"
adam@1528 11266 save_CFLAGS="$CFLAGS"
adam@1528 11267 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
adam@1528 11268
adam@1528 11269 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
adam@1528 11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
adam@1528 11271 $as_echo_n "checking for joinable pthread attribute... " >&6; }
adam@1528 11272 attr_name=unknown
adam@1528 11273 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
adam@1528 11274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adam@1528 11275 /* end confdefs.h. */
adam@1528 11276 #include <pthread.h>
adam@1528 11277 int
adam@1528 11278 main ()
adam@1528 11279 {
adam@1528 11280 int attr = $attr; return attr /* ; */
adam@1528 11281 ;
adam@1528 11282 return 0;
adam@1528 11283 }
adam@1528 11284 _ACEOF
adam@1528 11285 if ac_fn_c_try_link "$LINENO"; then :
adam@1528 11286 attr_name=$attr; break
adam@1528 11287 fi
adam@1528 11288 rm -f core conftest.err conftest.$ac_objext \
adam@1528 11289 conftest$ac_exeext conftest.$ac_ext
adam@1528 11290 done
adam@1528 11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
adam@1528 11292 $as_echo "$attr_name" >&6; }
adam@1528 11293 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
adam@1528 11294
adam@1528 11295 cat >>confdefs.h <<_ACEOF
adam@1528 11296 #define PTHREAD_CREATE_JOINABLE $attr_name
adam@1528 11297 _ACEOF
adam@1528 11298
adam@1528 11299 fi
adam@1528 11300
adam@1528 11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
adam@1528 11302 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
adam@1528 11303 flag=no
adam@1528 11304 case "${host_cpu}-${host_os}" in
adam@1528 11305 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
adam@1528 11306 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
adam@1528 11307 esac
adam@1528 11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
adam@1528 11309 $as_echo "${flag}" >&6; }
adam@1528 11310 if test "x$flag" != xno; then
adam@1528 11311 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
adam@1528 11312 fi
adam@1528 11313
adam@1528 11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
adam@1528 11315 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
adam@1826 11316 if test "${ax_cv_PTHREAD_PRIO_INHERIT+set}" = set; then :
adam@1528 11317 $as_echo_n "(cached) " >&6
adam@1528 11318 else
adam@1528 11319
adam@1528 11320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adam@1528 11321 /* end confdefs.h. */
adam@1528 11322
adam@1528 11323 #include <pthread.h>
adam@1528 11324 int
adam@1528 11325 main ()
adam@1528 11326 {
adam@1528 11327 int i = PTHREAD_PRIO_INHERIT;
adam@1528 11328 ;
adam@1528 11329 return 0;
adam@1528 11330 }
adam@1528 11331 _ACEOF
adam@1528 11332 if ac_fn_c_try_link "$LINENO"; then :
adam@1528 11333 ax_cv_PTHREAD_PRIO_INHERIT=yes
adam@1528 11334 else
adam@1528 11335 ax_cv_PTHREAD_PRIO_INHERIT=no
adam@1528 11336 fi
adam@1528 11337 rm -f core conftest.err conftest.$ac_objext \
adam@1528 11338 conftest$ac_exeext conftest.$ac_ext
adam@1528 11339
adam@1528 11340 fi
adam@1528 11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
adam@1528 11342 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
adam@1528 11343 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
adam@1528 11344
adam@1528 11345 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
adam@1528 11346
adam@1528 11347 fi
adam@1528 11348
adam@1528 11349 LIBS="$save_LIBS"
adam@1528 11350 CFLAGS="$save_CFLAGS"
adam@1528 11351
adam@1528 11352 # More AIX lossage: must compile with xlc_r or cc_r
adam@1528 11353 if test x"$GCC" != xyes; then
adam@1528 11354 for ac_prog in xlc_r cc_r
adam@1528 11355 do
adam@1528 11356 # Extract the first word of "$ac_prog", so it can be a program name with args.
adam@1528 11357 set dummy $ac_prog; ac_word=$2
adam@1528 11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adam@1528 11359 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 11360 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
adam@1528 11361 $as_echo_n "(cached) " >&6
adam@1528 11362 else
adam@1528 11363 if test -n "$PTHREAD_CC"; then
adam@1528 11364 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
adam@1528 11365 else
adam@1528 11366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adam@1528 11367 for as_dir in $PATH
adam@1528 11368 do
adam@1528 11369 IFS=$as_save_IFS
adam@1528 11370 test -z "$as_dir" && as_dir=.
adam@1528 11371 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 11372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adam@1528 11373 ac_cv_prog_PTHREAD_CC="$ac_prog"
adam@1528 11374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adam@1528 11375 break 2
adam@1528 11376 fi
adam@1528 11377 done
adam@1528 11378 done
adam@1528 11379 IFS=$as_save_IFS
adam@1528 11380
adam@1528 11381 fi
adam@1528 11382 fi
adam@1528 11383 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
adam@1528 11384 if test -n "$PTHREAD_CC"; then
adam@1528 11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
adam@1528 11386 $as_echo "$PTHREAD_CC" >&6; }
adam@1528 11387 else
adam@1528 11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adam@1528 11389 $as_echo "no" >&6; }
adam@1528 11390 fi
adam@1528 11391
adam@1528 11392
adam@1528 11393 test -n "$PTHREAD_CC" && break
adam@1528 11394 done
adam@1528 11395 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
adam@1528 11396
adam@1528 11397 else
adam@1528 11398 PTHREAD_CC=$CC
adam@1528 11399 fi
adam@1528 11400 else
adam@1528 11401 PTHREAD_CC="$CC"
adam@1528 11402 fi
adam@1528 11403
adam@1528 11404
adam@1528 11405
adam@1528 11406
adam@1528 11407
adam@1528 11408 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
adam@1528 11409 if test x"$ax_pthread_ok" = xyes; then
adam@1528 11410 echo >/dev/null
adam@1528 11411 :
adam@1528 11412 else
adam@1528 11413 ax_pthread_ok=no
adam@1528 11414 echo "Your C compiler does not support POSIX threads."; exit 1
adam@1528 11415 fi
adam@1528 11416 ac_ext=c
adam@1528 11417 ac_cpp='$CPP $CPPFLAGS'
adam@1528 11418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
adam@1528 11419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
adam@1528 11420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
adam@1528 11421
adam@1528 11422
adam@1528 11423
adam@1528 11424
adam@1368 11425 found=false
adam@1368 11426
adam@1368 11427 # Check whether --with-openssl was given.
adam@1368 11428 if test "${with_openssl+set}" = set; then :
adam@1368 11429 withval=$with_openssl;
adam@1368 11430 case "$withval" in
adam@1368 11431 "" | y | ye | yes | n | no)
adam@1368 11432 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
adam@1368 11433 ;;
adam@1368 11434 *) ssldirs="$withval"
adam@1368 11435 ;;
adam@1368 11436 esac
adam@1368 11437
adam@1368 11438 else
adam@1368 11439
adam@1368 11440 # if pkg-config is installed and openssl has installed a .pc file,
adam@1368 11441 # then use that information and don't search ssldirs
adam@1368 11442 # Extract the first word of "pkg-config", so it can be a program name with args.
adam@1368 11443 set dummy pkg-config; ac_word=$2
adam@1368 11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adam@1368 11445 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 11446 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
adam@1368 11447 $as_echo_n "(cached) " >&6
adam@1368 11448 else
adam@1368 11449 case $PKG_CONFIG in
adam@1368 11450 [\\/]* | ?:[\\/]*)
adam@1368 11451 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
adam@1368 11452 ;;
adam@1368 11453 *)
adam@1368 11454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adam@1368 11455 for as_dir in $PATH
adam@1368 11456 do
adam@1368 11457 IFS=$as_save_IFS
adam@1368 11458 test -z "$as_dir" && as_dir=.
adam@1368 11459 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 11460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adam@1368 11461 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
adam@1368 11462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adam@1368 11463 break 2
adam@1368 11464 fi
adam@1368 11465 done
adam@1368 11466 done
adam@1368 11467 IFS=$as_save_IFS
adam@1368 11468
adam@1368 11469 ;;
adam@1368 11470 esac
adam@1368 11471 fi
adam@1368 11472 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
adam@1368 11473 if test -n "$PKG_CONFIG"; then
adam@1368 11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
adam@1368 11475 $as_echo "$PKG_CONFIG" >&6; }
adam@1368 11476 else
adam@1368 11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adam@1368 11478 $as_echo "no" >&6; }
adam@1368 11479 fi
adam@1368 11480
adam@1368 11481
adam@1368 11482 if test x"$PKG_CONFIG" != x""; then
adam@1368 11483 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
adam@1368 11484 if test $? = 0; then
adam@1368 11485 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
adam@1368 11486 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
adam@1368 11487 found=true
adam@1368 11488 fi
adam@1368 11489 fi
adam@1368 11490
adam@1368 11491 # no such luck; use some default ssldirs
adam@1368 11492 if ! $found; then
adam@1368 11493 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
adam@1368 11494 fi
adam@1368 11495
adam@1368 11496
adam@1368 11497 fi
adam@1368 11498
adam@1368 11499
adam@1368 11500
adam@1368 11501 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
adam@1368 11502 # an 'openssl' subdirectory
adam@1368 11503
adam@1368 11504 if ! $found; then
adam@1368 11505 OPENSSL_INCLUDES=
adam@1368 11506 for ssldir in $ssldirs; do
adam@1368 11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
adam@1368 11508 $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
adam@1368 11509 if test -f "$ssldir/include/openssl/ssl.h"; then
adam@1368 11510 OPENSSL_INCLUDES="-I$ssldir/include"
adam@1368 11511 OPENSSL_LDFLAGS="-L$ssldir/lib"
adam@1666 11512 OPENSSL_LIBS="-lssl -lcrypto"
adam@1368 11513 found=true
adam@1368 11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
adam@1368 11515 $as_echo "yes" >&6; }
adam@1368 11516 break
adam@1368 11517 else
adam@1368 11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adam@1368 11519 $as_echo "no" >&6; }
adam@1368 11520 fi
adam@1368 11521 done
adam@1368 11522
adam@1368 11523 # if the file wasn't found, well, go ahead and try the link anyway -- maybe
adam@1368 11524 # it will just work!
adam@1368 11525 fi
adam@1368 11526
adam@1368 11527 # try the preprocessor and linker with our new flags,
adam@1368 11528 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
adam@1368 11529
adam@1368 11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
adam@1368 11531 $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
adam@1368 11532 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
adam@1368 11533 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
adam@1368 11534
adam@1368 11535 save_LIBS="$LIBS"
adam@1368 11536 save_LDFLAGS="$LDFLAGS"
adam@1368 11537 save_CPPFLAGS="$CPPFLAGS"
adam@1368 11538 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
adam@1368 11539 LIBS="$OPENSSL_LIBS $LIBS"
adam@1368 11540 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
adam@1368 11541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adamc@1165 11542 /* end confdefs.h. */
adam@1368 11543 #include <openssl/ssl.h>
adamc@1165 11544 int
adamc@1165 11545 main ()
adamc@1165 11546 {
adam@1368 11547 SSL_new(NULL)
adamc@1165 11548 ;
adamc@1165 11549 return 0;
adamc@1165 11550 }
adamc@1165 11551 _ACEOF
adamc@1165 11552 if ac_fn_c_try_link "$LINENO"; then :
adam@1368 11553
adam@1368 11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
adam@1368 11555 $as_echo "yes" >&6; }
adam@1368 11556 echo >/dev/null
adam@1368 11557
adam@1368 11558 else
adam@1368 11559
adam@1368 11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adam@1368 11561 $as_echo "no" >&6; }
adam@1369 11562 echo "You must install OpenSSL development files."; exit 1
adam@1368 11563
adamc@1165 11564 fi
adamc@1165 11565 rm -f core conftest.err conftest.$ac_objext \
adamc@1165 11566 conftest$ac_exeext conftest.$ac_ext
adam@1368 11567 CPPFLAGS="$save_CPPFLAGS"
adam@1368 11568 LDFLAGS="$save_LDFLAGS"
adam@1368 11569 LIBS="$save_LIBS"
adam@1368 11570
adam@1368 11571
adam@1368 11572
adamc@1165 11573
adamc@1165 11574
adamc@1165 11575
adamc@1165 11576 # Extract the first word of "mlton", so it can be a program name with args.
adamc@1165 11577 set dummy mlton; ac_word=$2
adamc@1165 11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1165 11579 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 11580 if test "${ac_cv_prog_MLTON+set}" = set; then :
adamc@1165 11581 $as_echo_n "(cached) " >&6
adamc@1165 11582 else
adamc@1165 11583 if test -n "$MLTON"; then
adamc@1165 11584 ac_cv_prog_MLTON="$MLTON" # Let the user override the test.
adamc@1165 11585 else
adamc@1165 11586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1165 11587 for as_dir in $PATH
adamc@1165 11588 do
adamc@1165 11589 IFS=$as_save_IFS
adamc@1165 11590 test -z "$as_dir" && as_dir=.
adamc@1165 11591 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 11592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1165 11593 ac_cv_prog_MLTON="yes"
adamc@1165 11594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1165 11595 break 2
adamc@1165 11596 fi
adamc@1165 11597 done
adamc@1165 11598 done
adamc@1165 11599 IFS=$as_save_IFS
adamc@1165 11600
adamc@1165 11601 fi
adamc@1165 11602 fi
adamc@1165 11603 MLTON=$ac_cv_prog_MLTON
adamc@1165 11604 if test -n "$MLTON"; then
adamc@1165 11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MLTON" >&5
adamc@1165 11606 $as_echo "$MLTON" >&6; }
adamc@1165 11607 else
adamc@1165 11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1165 11609 $as_echo "no" >&6; }
adamc@1165 11610 fi
adamc@1165 11611
adamc@1165 11612
adamc@1165 11613
adamc@1165 11614 if test -z $MLTON; then
adamc@1165 11615 echo "You must install MLton."
adamc@1165 11616 exit 1
adamc@1165 11617 fi
adamc@1165 11618
adamc@1165 11619 # Extract the first word of "mllex", so it can be a program name with args.
adamc@1165 11620 set dummy mllex; ac_word=$2
adamc@1165 11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1165 11622 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 11623 if test "${ac_cv_prog_MLLEX+set}" = set; then :
adamc@1165 11624 $as_echo_n "(cached) " >&6
adamc@1165 11625 else
adamc@1165 11626 if test -n "$MLLEX"; then
adamc@1165 11627 ac_cv_prog_MLLEX="$MLLEX" # Let the user override the test.
adamc@1165 11628 else
adamc@1165 11629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1165 11630 for as_dir in $PATH
adamc@1165 11631 do
adamc@1165 11632 IFS=$as_save_IFS
adamc@1165 11633 test -z "$as_dir" && as_dir=.
adamc@1165 11634 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 11635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1165 11636 ac_cv_prog_MLLEX="yes"
adamc@1165 11637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1165 11638 break 2
adamc@1165 11639 fi
adamc@1165 11640 done
adamc@1165 11641 done
adamc@1165 11642 IFS=$as_save_IFS
adamc@1165 11643
adamc@1165 11644 fi
adamc@1165 11645 fi
adamc@1165 11646 MLLEX=$ac_cv_prog_MLLEX
adamc@1165 11647 if test -n "$MLLEX"; then
adamc@1165 11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MLLEX" >&5
adamc@1165 11649 $as_echo "$MLLEX" >&6; }
adamc@1165 11650 else
adamc@1165 11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1165 11652 $as_echo "no" >&6; }
adamc@1165 11653 fi
adamc@1165 11654
adamc@1165 11655
adamc@1165 11656
adamc@1165 11657 if test -z $MLLEX; then
adamc@1165 11658 echo "You must install MLton (to get mllex)."
adamc@1165 11659 exit 1
adamc@1165 11660 fi
adamc@1165 11661
adamc@1165 11662 # Extract the first word of "mlyacc", so it can be a program name with args.
adamc@1165 11663 set dummy mlyacc; ac_word=$2
adamc@1165 11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
adamc@1165 11665 $as_echo_n "checking for $ac_word... " >&6; }
adam@1826 11666 if test "${ac_cv_prog_MLYACC+set}" = set; then :
adamc@1165 11667 $as_echo_n "(cached) " >&6
adamc@1165 11668 else
adamc@1165 11669 if test -n "$MLYACC"; then
adamc@1165 11670 ac_cv_prog_MLYACC="$MLYACC" # Let the user override the test.
adamc@1165 11671 else
adamc@1165 11672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@1165 11673 for as_dir in $PATH
adamc@1165 11674 do
adamc@1165 11675 IFS=$as_save_IFS
adamc@1165 11676 test -z "$as_dir" && as_dir=.
adamc@1165 11677 for ac_exec_ext in '' $ac_executable_extensions; do
adam@1826 11678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
adamc@1165 11679 ac_cv_prog_MLYACC="yes"
adamc@1165 11680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
adamc@1165 11681 break 2
adamc@1165 11682 fi
adamc@1165 11683 done
adamc@1165 11684 done
adamc@1165 11685 IFS=$as_save_IFS
adamc@1165 11686
adamc@1165 11687 fi
adamc@1165 11688 fi
adamc@1165 11689 MLYACC=$ac_cv_prog_MLYACC
adamc@1165 11690 if test -n "$MLYACC"; then
adamc@1165 11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MLYACC" >&5
adamc@1165 11692 $as_echo "$MLYACC" >&6; }
adamc@1165 11693 else
adamc@1165 11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
adamc@1165 11695 $as_echo "no" >&6; }
adamc@1165 11696 fi
adamc@1165 11697
adamc@1165 11698
adamc@1165 11699
adamc@1165 11700 if test -z $MLYACC; then
adamc@1165 11701 echo "You must install MLton (to get mlyacc)."
adamc@1165 11702 exit 1
adamc@1165 11703 fi
adamc@1165 11704
adamc@429 11705 if test $prefix = "NONE"; then
adamc@429 11706 prefix=/usr/local
adamc@429 11707 fi
adamc@429 11708
adamc@378 11709 if test -z $BIN; then
adamc@429 11710 BIN=$prefix/bin
adamc@378 11711 fi
adamc@378 11712
adamc@378 11713 if test -z $LIB; then
adam@1740 11714 LIB=$prefix/lib
adam@1740 11715 fi
adam@1740 11716
adam@1740 11717 if test -z $SRCLIB; then
adam@1740 11718 SRCLIB=$prefix/lib/urweb
adamc@378 11719 fi
adamc@378 11720
adamc@378 11721 if test -z $INCLUDE; then
adamc@429 11722 INCLUDE=$prefix/include/urweb
adamc@378 11723 fi
adamc@378 11724
adamc@378 11725 if test -z $SITELISP; then
adamc@429 11726 SITELISP=$prefix/share/emacs/site-lisp/urweb-mode
adamc@378 11727 fi
adamc@378 11728
adamc@378 11729
adam@1441 11730 # Check whether --with-emacs was given.
adam@1441 11731 if test "${with_emacs+set}" = set; then :
adam@1441 11732 withval=$with_emacs;
adam@1441 11733 else
adam@1441 11734 with_emacs=yes
adam@1441 11735 fi
adam@1441 11736
adam@1441 11737
adam@1441 11738 if test "x$with_emacs" = xyes; then
adam@1441 11739 USE_EMACS_TRUE=
adam@1441 11740 USE_EMACS_FALSE='#'
adam@1441 11741 else
adam@1441 11742 USE_EMACS_TRUE='#'
adam@1441 11743 USE_EMACS_FALSE=
adam@1441 11744 fi
adam@1441 11745
adam@1441 11746
adam@1464 11747 if test -z $PGHEADER; then
adam@1464 11748 for ac_header in postgresql/libpq-fe.h
adam@1464 11749 do :
adam@1464 11750 ac_fn_c_check_header_mongrel "$LINENO" "postgresql/libpq-fe.h" "ac_cv_header_postgresql_libpq_fe_h" "$ac_includes_default"
adam@1826 11751 if test "x$ac_cv_header_postgresql_libpq_fe_h" = x""yes; then :
adam@1464 11752 cat >>confdefs.h <<_ACEOF
adam@1464 11753 #define HAVE_POSTGRESQL_LIBPQ_FE_H 1
adam@1464 11754 _ACEOF
adam@1464 11755 PGHEADER=postgresql/libpq-fe.h
adam@1464 11756 fi
adam@1464 11757
adam@1464 11758 done
adam@1464 11759
adam@1464 11760 fi
adam@1464 11761
adam@1464 11762 if test -z $PGHEADER; then
adam@1464 11763 PGHEADER=libpq-fe.h
adam@1464 11764 fi
adam@1464 11765
adam@1464 11766 if test -z $MSHEADER; then
adam@1464 11767 for ac_header in mysql/mysql.h
adam@1464 11768 do :
adam@1464 11769 ac_fn_c_check_header_mongrel "$LINENO" "mysql/mysql.h" "ac_cv_header_mysql_mysql_h" "$ac_includes_default"
adam@1826 11770 if test "x$ac_cv_header_mysql_mysql_h" = x""yes; then :
adam@1464 11771 cat >>confdefs.h <<_ACEOF
adam@1464 11772 #define HAVE_MYSQL_MYSQL_H 1
adam@1464 11773 _ACEOF
adam@1464 11774 MSHEADER=mysql/mysql.h
adam@1464 11775 fi
adam@1464 11776
adam@1464 11777 done
adam@1464 11778
adam@1464 11779 fi
adam@1464 11780
adam@1464 11781 if test -z $MSHEADER; then
adam@1464 11782 MSHEADER=mysql.h
adam@1464 11783 fi
adam@1464 11784
adam@1464 11785 if test -z $SQHEADER; then
adam@1464 11786 SQHEADER=sqlite3.h
adam@1464 11787 fi
adam@1464 11788
adam@1520 11789 if test $WORKING_VERSION = "1"; then
adam@1526 11790 VERSION="$VERSION + `hg identify || (cat .hg_archival.txt | grep 'node\:') || echo ?`"
adam@1520 11791 fi
adam@1520 11792
adam@1826 11793 # Clang does not like being passed -pthread, since it's implicit on OS X.
adam@1826 11794 # So let's get rid of that! Here's to hoping it doesn't break Clang
adam@1826 11795 # on other platforms.
adam@1826 11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiling with clang" >&5
adam@1826 11797 $as_echo_n "checking if compiling with clang... " >&6; }
adam@1826 11798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
adam@1826 11799 /* end confdefs.h. */
adam@1826 11800
adam@1826 11801 int
adam@1826 11802 main ()
adam@1826 11803 {
adam@1826 11804
adam@1826 11805 #ifndef __clang__
adam@1826 11806 not clang
adam@1826 11807 #endif
adam@1826 11808
adam@1826 11809 ;
adam@1826 11810 return 0;
adam@1826 11811 }
adam@1826 11812 _ACEOF
adam@1826 11813 if ac_fn_c_try_compile "$LINENO"; then :
adam@1826 11814 CLANG=yes
adam@1826 11815 else
adam@1826 11816 CLANG=no
adam@1826 11817 fi
adam@1826 11818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
adam@1826 11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
adam@1826 11820 $as_echo "$CLANG" >&6; }
adam@1826 11821
adam@1826 11822 if test $CLANG = "yes"; then
adam@1826 11823 PTHREAD_CFLAGS=""
adam@1826 11824 PTHREAD_LIBS=""
adam@1826 11825 fi
adam@1826 11826
adam@1520 11827
adam@1464 11828
adam@1464 11829
adam@1464 11830
adam@1441 11831
adamc@1132 11832
adamc@1132 11833
adamc@1132 11834
adamc@1132 11835
adamc@1132 11836
adam@1474 11837
adam@1528 11838
adam@1528 11839
adam@1740 11840
adam@1838 11841
adamc@1132 11842 ac_config_files="$ac_config_files Makefile src/c/Makefile src/config.sml"
adamc@1132 11843
adamc@378 11844
adamc@378 11845 cat >confcache <<\_ACEOF
adamc@378 11846 # This file is a shell script that caches the results of configure
adamc@378 11847 # tests run on this system so they can be shared between configure
adamc@378 11848 # scripts and configure runs, see configure's option --config-cache.
adamc@378 11849 # It is not useful on other systems. If it contains results you don't
adamc@378 11850 # want to keep, you may remove or edit it.
adamc@378 11851 #
adamc@378 11852 # config.status only pays attention to the cache file if you give it
adamc@378 11853 # the --recheck option to rerun configure.
adamc@378 11854 #
adamc@378 11855 # `ac_cv_env_foo' variables (set or unset) will be overridden when
adamc@378 11856 # loading this file, other *unset* `ac_cv_foo' will be assigned the
adamc@378 11857 # following values.
adamc@378 11858
adamc@378 11859 _ACEOF
adamc@378 11860
adamc@378 11861 # The following way of writing the cache mishandles newlines in values,
adamc@378 11862 # but we know of no workaround that is simple, portable, and efficient.
adamc@378 11863 # So, we kill variables containing newlines.
adamc@378 11864 # Ultrix sh set writes to stderr and can't be redirected directly,
adamc@378 11865 # and sets the high bit in the cache file unless we assign to the vars.
adamc@378 11866 (
adamc@378 11867 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
adamc@378 11868 eval ac_val=\$$ac_var
adamc@378 11869 case $ac_val in #(
adamc@378 11870 *${as_nl}*)
adamc@378 11871 case $ac_var in #(
adamc@1095 11872 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
adamc@1095 11873 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
adamc@378 11874 esac
adamc@378 11875 case $ac_var in #(
adamc@378 11876 _ | IFS | as_nl) ;; #(
adamc@1095 11877 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
adamc@1095 11878 *) { eval $ac_var=; unset $ac_var;} ;;
adamc@378 11879 esac ;;
adamc@378 11880 esac
adamc@378 11881 done
adamc@378 11882
adamc@378 11883 (set) 2>&1 |
adamc@378 11884 case $as_nl`(ac_space=' '; set) 2>&1` in #(
adamc@378 11885 *${as_nl}ac_space=\ *)
adamc@1095 11886 # `set' does not quote correctly, so add quotes: double-quote
adamc@1095 11887 # substitution turns \\\\ into \\, and sed turns \\ into \.
adamc@378 11888 sed -n \
adamc@378 11889 "s/'/'\\\\''/g;
adamc@378 11890 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
adamc@378 11891 ;; #(
adamc@378 11892 *)
adamc@378 11893 # `set' quotes correctly as required by POSIX, so do not add quotes.
adamc@378 11894 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
adamc@378 11895 ;;
adamc@378 11896 esac |
adamc@378 11897 sort
adamc@378 11898 ) |
adamc@378 11899 sed '
adamc@378 11900 /^ac_cv_env_/b end
adamc@378 11901 t clear
adamc@378 11902 :clear
adamc@378 11903 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
adamc@378 11904 t end
adamc@378 11905 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
adamc@378 11906 :end' >>confcache
adamc@378 11907 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
adamc@378 11908 if test -w "$cache_file"; then
adam@1826 11909 test "x$cache_file" != "x/dev/null" &&
adamc@1095 11910 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
adamc@1095 11911 $as_echo "$as_me: updating cache $cache_file" >&6;}
adam@1826 11912 cat confcache >$cache_file
adamc@378 11913 else
adamc@1095 11914 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
adamc@1095 11915 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
adamc@378 11916 fi
adamc@378 11917 fi
adamc@378 11918 rm -f confcache
adamc@378 11919
adamc@378 11920 test "x$prefix" = xNONE && prefix=$ac_default_prefix
adamc@378 11921 # Let make expand exec_prefix.
adamc@378 11922 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
adamc@378 11923
adamc@1263 11924 DEFS=-DHAVE_CONFIG_H
adamc@378 11925
adamc@378 11926 ac_libobjs=
adamc@378 11927 ac_ltlibobjs=
adam@1315 11928 U=
adamc@378 11929 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
adamc@378 11930 # 1. Remove the extension, and $U if already installed.
adamc@378 11931 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
adamc@1095 11932 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
adamc@378 11933 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
adamc@378 11934 # will be set to the directory where LIBOBJS objects are built.
adamc@1095 11935 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
adamc@1095 11936 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
adamc@378 11937 done
adamc@378 11938 LIBOBJS=$ac_libobjs
adamc@378 11939
adamc@378 11940 LTLIBOBJS=$ac_ltlibobjs
adamc@378 11941
adamc@378 11942
adamc@1149 11943 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
adam@1315 11944 as_fn_error $? "conditional \"AMDEP\" was never defined.
adamc@1149 11945 Usually this means the macro was only invoked conditionally." "$LINENO" 5
adamc@1149 11946 fi
adamc@1149 11947 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
adam@1315 11948 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
adamc@1149 11949 Usually this means the macro was only invoked conditionally." "$LINENO" 5
adamc@1149 11950 fi
adamc@1132 11951 if test -n "$EXEEXT"; then
adamc@1132 11952 am__EXEEXT_TRUE=
adamc@1132 11953 am__EXEEXT_FALSE='#'
adamc@1132 11954 else
adamc@1132 11955 am__EXEEXT_TRUE='#'
adamc@1132 11956 am__EXEEXT_FALSE=
adamc@1132 11957 fi
adamc@1132 11958
adam@1441 11959 if test -z "${USE_EMACS_TRUE}" && test -z "${USE_EMACS_FALSE}"; then
adam@1441 11960 as_fn_error $? "conditional \"USE_EMACS\" was never defined.
adam@1441 11961 Usually this means the macro was only invoked conditionally." "$LINENO" 5
adam@1441 11962 fi
adamc@378 11963
adam@1826 11964 : ${CONFIG_STATUS=./config.status}
adamc@1095 11965 ac_write_fail=0
adamc@378 11966 ac_clean_files_save=$ac_clean_files
adamc@378 11967 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
adamc@1095 11968 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
adamc@1095 11969 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
adamc@1095 11970 as_write_fail=0
adamc@1095 11971 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
adamc@378 11972 #! $SHELL
adamc@378 11973 # Generated by $as_me.
adamc@378 11974 # Run this file to recreate the current configuration.
adamc@378 11975 # Compiler output produced by configure, useful for debugging
adamc@378 11976 # configure, is in config.log if it exists.
adamc@378 11977
adamc@378 11978 debug=false
adamc@378 11979 ac_cs_recheck=false
adamc@378 11980 ac_cs_silent=false
adamc@1095 11981
adamc@378 11982 SHELL=\${CONFIG_SHELL-$SHELL}
adamc@1095 11983 export SHELL
adamc@1095 11984 _ASEOF
adamc@1095 11985 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
adamc@1095 11986 ## -------------------- ##
adamc@1095 11987 ## M4sh Initialization. ##
adamc@1095 11988 ## -------------------- ##
adamc@378 11989
adamc@378 11990 # Be more Bourne compatible
adamc@378 11991 DUALCASE=1; export DUALCASE # for MKS sh
adamc@1095 11992 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
adamc@378 11993 emulate sh
adamc@378 11994 NULLCMD=:
adamc@1095 11995 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
adamc@378 11996 # is contrary to our usage. Disable this feature.
adamc@378 11997 alias -g '${1+"$@"}'='"$@"'
adamc@378 11998 setopt NO_GLOB_SUBST
adamc@378 11999 else
adamc@1095 12000 case `(set -o) 2>/dev/null` in #(
adamc@1095 12001 *posix*) :
adamc@1095 12002 set -o posix ;; #(
adamc@1095 12003 *) :
adamc@1095 12004 ;;
adamc@378 12005 esac
adamc@378 12006 fi
adamc@378 12007
adamc@378 12008
adamc@1095 12009 as_nl='
adamc@1095 12010 '
adamc@1095 12011 export as_nl
adamc@1095 12012 # Printing a long string crashes Solaris 7 /usr/bin/printf.
adamc@1095 12013 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
adamc@1095 12014 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
adamc@1095 12015 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
adamc@1095 12016 # Prefer a ksh shell builtin over an external printf program on Solaris,
adamc@1095 12017 # but without wasting forks for bash or zsh.
adamc@1095 12018 if test -z "$BASH_VERSION$ZSH_VERSION" \
adamc@1095 12019 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
adamc@1095 12020 as_echo='print -r --'
adamc@1095 12021 as_echo_n='print -rn --'
adamc@1095 12022 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
adamc@1095 12023 as_echo='printf %s\n'
adamc@1095 12024 as_echo_n='printf %s'
adamc@1095 12025 else
adamc@1095 12026 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
adamc@1095 12027 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
adamc@1095 12028 as_echo_n='/usr/ucb/echo -n'
adamc@1095 12029 else
adamc@1095 12030 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
adamc@1095 12031 as_echo_n_body='eval
adamc@1095 12032 arg=$1;
adamc@1095 12033 case $arg in #(
adamc@1095 12034 *"$as_nl"*)
adamc@1095 12035 expr "X$arg" : "X\\(.*\\)$as_nl";
adamc@1095 12036 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
adamc@1095 12037 esac;
adamc@1095 12038 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
adamc@1095 12039 '
adamc@1095 12040 export as_echo_n_body
adamc@1095 12041 as_echo_n='sh -c $as_echo_n_body as_echo'
adamc@1095 12042 fi
adamc@1095 12043 export as_echo_body
adamc@1095 12044 as_echo='sh -c $as_echo_body as_echo'
adamc@1095 12045 fi
adamc@378 12046
adamc@378 12047 # The user is always right.
adamc@378 12048 if test "${PATH_SEPARATOR+set}" != set; then
adamc@1095 12049 PATH_SEPARATOR=:
adamc@1095 12050 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
adamc@1095 12051 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
adamc@1095 12052 PATH_SEPARATOR=';'
adamc@1095 12053 }
adamc@378 12054 fi
adamc@378 12055
adamc@378 12056
adamc@378 12057 # IFS
adamc@378 12058 # We need space, tab and new line, in precisely that order. Quoting is
adamc@378 12059 # there to prevent editors from complaining about space-tab.
adamc@378 12060 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
adamc@378 12061 # splitting by setting IFS to empty value.)
adamc@378 12062 IFS=" "" $as_nl"
adamc@378 12063
adamc@378 12064 # Find who we are. Look in the path if we contain no directory separator.
adamc@1095 12065 case $0 in #((
adamc@378 12066 *[\\/]* ) as_myself=$0 ;;
adamc@378 12067 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adamc@378 12068 for as_dir in $PATH
adamc@378 12069 do
adamc@378 12070 IFS=$as_save_IFS
adamc@378 12071 test -z "$as_dir" && as_dir=.
adamc@1095 12072 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
adamc@1095 12073 done
adamc@378 12074 IFS=$as_save_IFS
adamc@378 12075
adamc@378 12076 ;;
adamc@378 12077 esac
adamc@378 12078 # We did not find ourselves, most probably we were run as `sh COMMAND'
adamc@378 12079 # in which case we are not to be found in the path.
adamc@378 12080 if test "x$as_myself" = x; then
adamc@378 12081 as_myself=$0
adamc@378 12082 fi
adamc@378 12083 if test ! -f "$as_myself"; then
adamc@1095 12084 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
adamc@1095 12085 exit 1
adamc@378 12086 fi
adamc@378 12087
adamc@1095 12088 # Unset variables that we do not need and which cause bugs (e.g. in
adamc@1095 12089 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
adamc@1095 12090 # suppresses any "Segmentation fault" message there. '((' could
adamc@1095 12091 # trigger a bug in pdksh 5.2.14.
adamc@1095 12092 for as_var in BASH_ENV ENV MAIL MAILPATH
adamc@1095 12093 do eval test x\${$as_var+set} = xset \
adamc@1095 12094 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
adamc@378 12095 done
adamc@378 12096 PS1='$ '
adamc@378 12097 PS2='> '
adamc@378 12098 PS4='+ '
adamc@378 12099
adamc@378 12100 # NLS nuisances.
adamc@1095 12101 LC_ALL=C
adamc@1095 12102 export LC_ALL
adamc@1095 12103 LANGUAGE=C
adamc@1095 12104 export LANGUAGE
adamc@1095 12105
adamc@1095 12106 # CDPATH.
adamc@1095 12107 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
adamc@1095 12108
adamc@1095 12109
adam@1315 12110 # as_fn_error STATUS ERROR [LINENO LOG_FD]
adam@1315 12111 # ----------------------------------------
adamc@1095 12112 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
adamc@1095 12113 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
adam@1315 12114 # script with STATUS, using 1 if that was 0.
adamc@1095 12115 as_fn_error ()
adamc@1095 12116 {
adam@1315 12117 as_status=$1; test $as_status -eq 0 && as_status=1
adam@1315 12118 if test "$4"; then
adam@1315 12119 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
adam@1315 12120 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
adam@1315 12121 fi
adam@1315 12122 $as_echo "$as_me: error: $2" >&2
adamc@1095 12123 as_fn_exit $as_status
adamc@1095 12124 } # as_fn_error
adamc@378 12125
adamc@1095 12126
adamc@1095 12127 # as_fn_set_status STATUS
adamc@1095 12128 # -----------------------
adamc@1095 12129 # Set $? to STATUS, without forking.
adamc@1095 12130 as_fn_set_status ()
adamc@1095 12131 {
adamc@1095 12132 return $1
adamc@1095 12133 } # as_fn_set_status
adamc@1095 12134
adamc@1095 12135 # as_fn_exit STATUS
adamc@1095 12136 # -----------------
adamc@1095 12137 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
adamc@1095 12138 as_fn_exit ()
adamc@1095 12139 {
adamc@1095 12140 set +e
adamc@1095 12141 as_fn_set_status $1
adamc@1095 12142 exit $1
adamc@1095 12143 } # as_fn_exit
adamc@1095 12144
adamc@1095 12145 # as_fn_unset VAR
adamc@1095 12146 # ---------------
adamc@1095 12147 # Portably unset VAR.
adamc@1095 12148 as_fn_unset ()
adamc@1095 12149 {
adamc@1095 12150 { eval $1=; unset $1;}
adamc@1095 12151 }
adamc@1095 12152 as_unset=as_fn_unset
adamc@1095 12153 # as_fn_append VAR VALUE
adamc@1095 12154 # ----------------------
adamc@1095 12155 # Append the text in VALUE to the end of the definition contained in VAR. Take
adamc@1095 12156 # advantage of any shell optimizations that allow amortized linear growth over
adamc@1095 12157 # repeated appends, instead of the typical quadratic growth present in naive
adamc@1095 12158 # implementations.
adamc@1095 12159 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
adamc@1095 12160 eval 'as_fn_append ()
adamc@1095 12161 {
adamc@1095 12162 eval $1+=\$2
adamc@1095 12163 }'
adamc@1095 12164 else
adamc@1095 12165 as_fn_append ()
adamc@1095 12166 {
adamc@1095 12167 eval $1=\$$1\$2
adamc@1095 12168 }
adamc@1095 12169 fi # as_fn_append
adamc@1095 12170
adamc@1095 12171 # as_fn_arith ARG...
adamc@1095 12172 # ------------------
adamc@1095 12173 # Perform arithmetic evaluation on the ARGs, and store the result in the
adamc@1095 12174 # global $as_val. Take advantage of shells that can avoid forks. The arguments
adamc@1095 12175 # must be portable across $(()) and expr.
adamc@1095 12176 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
adamc@1095 12177 eval 'as_fn_arith ()
adamc@1095 12178 {
adamc@1095 12179 as_val=$(( $* ))
adamc@1095 12180 }'
adamc@1095 12181 else
adamc@1095 12182 as_fn_arith ()
adamc@1095 12183 {
adamc@1095 12184 as_val=`expr "$@" || test $? -eq 1`
adamc@1095 12185 }
adamc@1095 12186 fi # as_fn_arith
adamc@1095 12187
adamc@1095 12188
adamc@378 12189 if expr a : '\(a\)' >/dev/null 2>&1 &&
adamc@378 12190 test "X`expr 00001 : '.*\(...\)'`" = X001; then
adamc@378 12191 as_expr=expr
adamc@378 12192 else
adamc@378 12193 as_expr=false
adamc@378 12194 fi
adamc@378 12195
adamc@378 12196 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
adamc@378 12197 as_basename=basename
adamc@378 12198 else
adamc@378 12199 as_basename=false
adamc@378 12200 fi
adamc@378 12201
adamc@1095 12202 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
adamc@1095 12203 as_dirname=dirname
adamc@1095 12204 else
adamc@1095 12205 as_dirname=false
adamc@1095 12206 fi
adamc@378 12207
adamc@378 12208 as_me=`$as_basename -- "$0" ||
adamc@378 12209 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
adamc@378 12210 X"$0" : 'X\(//\)$' \| \
adamc@378 12211 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
adamc@1095 12212 $as_echo X/"$0" |
adamc@378 12213 sed '/^.*\/\([^/][^/]*\)\/*$/{
adamc@378 12214 s//\1/
adamc@378 12215 q
adamc@378 12216 }
adamc@378 12217 /^X\/\(\/\/\)$/{
adamc@378 12218 s//\1/
adamc@378 12219 q
adamc@378 12220 }
adamc@378 12221 /^X\/\(\/\).*/{
adamc@378 12222 s//\1/
adamc@378 12223 q
adamc@378 12224 }
adamc@378 12225 s/.*/./; q'`
adamc@378 12226
adamc@1095 12227 # Avoid depending upon Character Ranges.
adamc@1095 12228 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
adamc@1095 12229 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
adamc@1095 12230 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
adamc@1095 12231 as_cr_digits='0123456789'
adamc@1095 12232 as_cr_alnum=$as_cr_Letters$as_cr_digits
adamc@378 12233
adamc@378 12234 ECHO_C= ECHO_N= ECHO_T=
adamc@1095 12235 case `echo -n x` in #(((((
adamc@378 12236 -n*)
adamc@1095 12237 case `echo 'xy\c'` in
adamc@378 12238 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
adamc@1095 12239 xy) ECHO_C='\c';;
adamc@1095 12240 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
adamc@1095 12241 ECHO_T=' ';;
adamc@378 12242 esac;;
adamc@378 12243 *)
adamc@378 12244 ECHO_N='-n';;
adamc@378 12245 esac
adamc@378 12246
adamc@378 12247 rm -f conf$$ conf$$.exe conf$$.file
adamc@378 12248 if test -d conf$$.dir; then
adamc@378 12249 rm -f conf$$.dir/conf$$.file
adamc@378 12250 else
adamc@378 12251 rm -f conf$$.dir
adamc@1095 12252 mkdir conf$$.dir 2>/dev/null
adamc@378 12253 fi
adamc@1095 12254 if (echo >conf$$.file) 2>/dev/null; then
adamc@1095 12255 if ln -s conf$$.file conf$$ 2>/dev/null; then
adamc@1095 12256 as_ln_s='ln -s'
adamc@1095 12257 # ... but there are two gotchas:
adamc@1095 12258 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
adamc@1095 12259 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
adam@1826 12260 # In both cases, we have to default to `cp -p'.
adamc@1095 12261 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
adam@1826 12262 as_ln_s='cp -p'
adamc@1095 12263 elif ln conf$$.file conf$$ 2>/dev/null; then
adamc@1095 12264 as_ln_s=ln
adamc@1095 12265 else
adam@1826 12266 as_ln_s='cp -p'
adam@1826 12267 fi
adam@1826 12268 else
adam@1826 12269 as_ln_s='cp -p'
adamc@378 12270 fi
adamc@378 12271 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
adamc@378 12272 rmdir conf$$.dir 2>/dev/null
adamc@378 12273
adamc@1095 12274
adamc@1095 12275 # as_fn_mkdir_p
adamc@1095 12276 # -------------
adamc@1095 12277 # Create "$as_dir" as a directory, including parents if necessary.
adamc@1095 12278 as_fn_mkdir_p ()
adamc@1095 12279 {
adamc@1095 12280
adamc@1095 12281 case $as_dir in #(
adamc@1095 12282 -*) as_dir=./$as_dir;;
adamc@1095 12283 esac
adamc@1095 12284 test -d "$as_dir" || eval $as_mkdir_p || {
adamc@1095 12285 as_dirs=
adamc@1095 12286 while :; do
adamc@1095 12287 case $as_dir in #(
adamc@1095 12288 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
adamc@1095 12289 *) as_qdir=$as_dir;;
adamc@1095 12290 esac
adamc@1095 12291 as_dirs="'$as_qdir' $as_dirs"
adamc@1095 12292 as_dir=`$as_dirname -- "$as_dir" ||
adamc@1095 12293 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
adamc@1095 12294 X"$as_dir" : 'X\(//\)[^/]' \| \
adamc@1095 12295 X"$as_dir" : 'X\(//\)$' \| \
adamc@1095 12296 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
adamc@1095 12297 $as_echo X"$as_dir" |
adamc@1095 12298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
adamc@1095 12299 s//\1/
adamc@1095 12300 q
adamc@1095 12301 }
adamc@1095 12302 /^X\(\/\/\)[^/].*/{
adamc@1095 12303 s//\1/
adamc@1095 12304 q
adamc@1095 12305 }
adamc@1095 12306 /^X\(\/\/\)$/{
adamc@1095 12307 s//\1/
adamc@1095 12308 q
adamc@1095 12309 }
adamc@1095 12310 /^X\(\/\).*/{
adamc@1095 12311 s//\1/
adamc@1095 12312 q
adamc@1095 12313 }
adamc@1095 12314 s/.*/./; q'`
adamc@1095 12315 test -d "$as_dir" && break
adamc@1095 12316 done
adamc@1095 12317 test -z "$as_dirs" || eval "mkdir $as_dirs"
adam@1315 12318 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
adamc@1095 12319
adamc@1095 12320
adamc@1095 12321 } # as_fn_mkdir_p
adamc@378 12322 if mkdir -p . 2>/dev/null; then
adamc@1095 12323 as_mkdir_p='mkdir -p "$as_dir"'
adamc@378 12324 else
adamc@378 12325 test -d ./-p && rmdir ./-p
adamc@378 12326 as_mkdir_p=false
adamc@378 12327 fi
adamc@378 12328
adam@1826 12329 if test -x / >/dev/null 2>&1; then
adam@1826 12330 as_test_x='test -x'
adam@1826 12331 else
adam@1826 12332 if ls -dL / >/dev/null 2>&1; then
adam@1826 12333 as_ls_L_option=L
adam@1826 12334 else
adam@1826 12335 as_ls_L_option=
adam@1826 12336 fi
adam@1826 12337 as_test_x='
adam@1826 12338 eval sh -c '\''
adam@1826 12339 if test -d "$1"; then
adam@1826 12340 test -d "$1/.";
adam@1826 12341 else
adam@1826 12342 case $1 in #(
adam@1826 12343 -*)set "./$1";;
adam@1826 12344 esac;
adam@1826 12345 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
adam@1826 12346 ???[sx]*):;;*)false;;esac;fi
adam@1826 12347 '\'' sh
adam@1826 12348 '
adam@1826 12349 fi
adam@1826 12350 as_executable_p=$as_test_x
adamc@378 12351
adamc@378 12352 # Sed expression to map a string onto a valid CPP name.
adamc@378 12353 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
adamc@378 12354
adamc@378 12355 # Sed expression to map a string onto a valid variable name.
adamc@378 12356 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
adamc@378 12357
adamc@378 12358
adamc@378 12359 exec 6>&1
adamc@1095 12360 ## ----------------------------------- ##
adamc@1095 12361 ## Main body of $CONFIG_STATUS script. ##
adamc@1095 12362 ## ----------------------------------- ##
adamc@1095 12363 _ASEOF
adamc@1095 12364 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
adamc@378 12365
adamc@1095 12366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@1095 12367 # Save the log message, to keep $0 and so on meaningful, and to
adamc@378 12368 # report actual input values of CONFIG_FILES etc. instead of their
adamc@378 12369 # values after options handling.
adamc@378 12370 ac_log="
adam@1851 12371 This file was extended by urweb $as_me 20130421, which was
adam@1826 12372 generated by GNU Autoconf 2.67. Invocation command line was
adamc@378 12373
adamc@378 12374 CONFIG_FILES = $CONFIG_FILES
adamc@378 12375 CONFIG_HEADERS = $CONFIG_HEADERS
adamc@378 12376 CONFIG_LINKS = $CONFIG_LINKS
adamc@378 12377 CONFIG_COMMANDS = $CONFIG_COMMANDS
adamc@378 12378 $ $0 $@
adamc@378 12379
adamc@378 12380 on `(hostname || uname -n) 2>/dev/null | sed 1q`
adamc@378 12381 "
adamc@378 12382
adamc@378 12383 _ACEOF
adamc@378 12384
adamc@1095 12385 case $ac_config_files in *"
adamc@1095 12386 "*) set x $ac_config_files; shift; ac_config_files=$*;;
adamc@1095 12387 esac
adamc@1095 12388
adamc@1263 12389 case $ac_config_headers in *"
adamc@1263 12390 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
adamc@1263 12391 esac
adamc@1095 12392
adamc@1095 12393
adamc@1095 12394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adamc@378 12395 # Files that config.status was made for.
adamc@378 12396 config_files="$ac_config_files"
adamc@1263 12397 config_headers="$ac_config_headers"
adamc@1132 12398 config_commands="$ac_config_commands"
adamc@378 12399
adamc@378 12400 _ACEOF
adamc@378 12401
adamc@1095 12402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@378 12403 ac_cs_usage="\
adamc@1095 12404 \`$as_me' instantiates files and other configuration actions
adamc@1095 12405 from templates according to the current configuration. Unless the files
adamc@1095 12406 and actions are specified as TAGs, all are instantiated by default.
adamc@378 12407
adamc@1095 12408 Usage: $0 [OPTION]... [TAG]...
adamc@378 12409
adamc@378 12410 -h, --help print this help, then exit
adamc@378 12411 -V, --version print version number and configuration settings, then exit
adamc@1095 12412 --config print configuration, then exit
adamc@1095 12413 -q, --quiet, --silent
adamc@1095 12414 do not print progress messages
adamc@378 12415 -d, --debug don't remove temporary files
adamc@378 12416 --recheck update $as_me by reconfiguring in the same conditions
adamc@1095 12417 --file=FILE[:TEMPLATE]
adamc@1095 12418 instantiate the configuration file FILE
adamc@1263 12419 --header=FILE[:TEMPLATE]
adamc@1263 12420 instantiate the configuration header FILE
adamc@378 12421
adamc@378 12422 Configuration files:
adamc@378 12423 $config_files
adamc@378 12424
adamc@1263 12425 Configuration headers:
adamc@1263 12426 $config_headers
adamc@1263 12427
adamc@1132 12428 Configuration commands:
adamc@1132 12429 $config_commands
adamc@1132 12430
adamc@1095 12431 Report bugs to the package provider."
adamc@378 12432
adamc@378 12433 _ACEOF
adamc@1095 12434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adamc@1095 12435 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
adamc@378 12436 ac_cs_version="\\
adam@1851 12437 urweb config.status 20130421
adam@1826 12438 configured by $0, generated by GNU Autoconf 2.67,
adamc@1095 12439 with options \\"\$ac_cs_config\\"
adamc@378 12440
adam@1826 12441 Copyright (C) 2010 Free Software Foundation, Inc.
adamc@378 12442 This config.status script is free software; the Free Software Foundation
adamc@378 12443 gives unlimited permission to copy, distribute and modify it."
adamc@378 12444
adamc@378 12445 ac_pwd='$ac_pwd'
adamc@378 12446 srcdir='$srcdir'
adamc@1132 12447 INSTALL='$INSTALL'
adamc@1132 12448 MKDIR_P='$MKDIR_P'
adamc@1132 12449 AWK='$AWK'
adamc@1095 12450 test -n "\$AWK" || AWK=awk
adamc@378 12451 _ACEOF
adamc@378 12452
adamc@1095 12453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@1095 12454 # The default lists apply if the user does not specify any file.
adamc@378 12455 ac_need_defaults=:
adamc@378 12456 while test $# != 0
adamc@378 12457 do
adamc@378 12458 case $1 in
adam@1315 12459 --*=?*)
adamc@378 12460 ac_option=`expr "X$1" : 'X\([^=]*\)='`
adamc@378 12461 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
adamc@378 12462 ac_shift=:
adamc@378 12463 ;;
adam@1315 12464 --*=)
adam@1315 12465 ac_option=`expr "X$1" : 'X\([^=]*\)='`
adam@1315 12466 ac_optarg=
adam@1315 12467 ac_shift=:
adam@1315 12468 ;;
adamc@378 12469 *)
adamc@378 12470 ac_option=$1
adamc@378 12471 ac_optarg=$2
adamc@378 12472 ac_shift=shift
adamc@378 12473 ;;
adamc@378 12474 esac
adamc@378 12475
adamc@378 12476 case $ac_option in
adamc@378 12477 # Handling of the options.
adamc@378 12478 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
adamc@378 12479 ac_cs_recheck=: ;;
adamc@378 12480 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
adamc@1095 12481 $as_echo "$ac_cs_version"; exit ;;
adamc@1095 12482 --config | --confi | --conf | --con | --co | --c )
adamc@1095 12483 $as_echo "$ac_cs_config"; exit ;;
adamc@378 12484 --debug | --debu | --deb | --de | --d | -d )
adamc@378 12485 debug=: ;;
adamc@378 12486 --file | --fil | --fi | --f )
adamc@378 12487 $ac_shift
adamc@1095 12488 case $ac_optarg in
adamc@1095 12489 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
adam@1315 12490 '') as_fn_error $? "missing file argument" ;;
adamc@1095 12491 esac
adamc@1095 12492 as_fn_append CONFIG_FILES " '$ac_optarg'"
adamc@378 12493 ac_need_defaults=false;;
adamc@1263 12494 --header | --heade | --head | --hea )
adamc@1263 12495 $ac_shift
adamc@1263 12496 case $ac_optarg in
adamc@1263 12497 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
adamc@1263 12498 esac
adamc@1263 12499 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
adamc@1263 12500 ac_need_defaults=false;;
adamc@1263 12501 --he | --h)
adamc@1263 12502 # Conflict between --help and --header
adam@1315 12503 as_fn_error $? "ambiguous option: \`$1'
adamc@1263 12504 Try \`$0 --help' for more information.";;
adamc@1263 12505 --help | --hel | -h )
adamc@1095 12506 $as_echo "$ac_cs_usage"; exit ;;
adamc@378 12507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
adamc@378 12508 | -silent | --silent | --silen | --sile | --sil | --si | --s)
adamc@378 12509 ac_cs_silent=: ;;
adamc@378 12510
adamc@378 12511 # This is an error.
adam@1315 12512 -*) as_fn_error $? "unrecognized option: \`$1'
adamc@1095 12513 Try \`$0 --help' for more information." ;;
adamc@378 12514
adamc@1095 12515 *) as_fn_append ac_config_targets " $1"
adamc@378 12516 ac_need_defaults=false ;;
adamc@378 12517
adamc@378 12518 esac
adamc@378 12519 shift
adamc@378 12520 done
adamc@378 12521
adamc@378 12522 ac_configure_extra_args=
adamc@378 12523
adamc@378 12524 if $ac_cs_silent; then
adamc@378 12525 exec 6>/dev/null
adamc@378 12526 ac_configure_extra_args="$ac_configure_extra_args --silent"
adamc@378 12527 fi
adamc@378 12528
adamc@378 12529 _ACEOF
adamc@1095 12530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adamc@378 12531 if \$ac_cs_recheck; then
adam@1826 12532 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
adamc@1095 12533 shift
adamc@1095 12534 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
adamc@1095 12535 CONFIG_SHELL='$SHELL'
adamc@378 12536 export CONFIG_SHELL
adamc@1095 12537 exec "\$@"
adamc@378 12538 fi
adamc@378 12539
adamc@378 12540 _ACEOF
adamc@1095 12541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@378 12542 exec 5>>config.log
adamc@378 12543 {
adamc@378 12544 echo
adamc@378 12545 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
adamc@378 12546 ## Running $as_me. ##
adamc@378 12547 _ASBOX
adamc@1095 12548 $as_echo "$ac_log"
adamc@378 12549 } >&5
adamc@378 12550
adamc@378 12551 _ACEOF
adamc@1095 12552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adamc@1132 12553 #
adamc@1132 12554 # INIT-COMMANDS
adamc@1132 12555 #
adamc@1132 12556 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
adamc@1132 12557
adamc@1132 12558
adamc@1132 12559 # The HP-UX ksh and POSIX shell print the target directory to stdout
adamc@1132 12560 # if CDPATH is set.
adamc@1132 12561 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
adamc@1132 12562
adamc@1132 12563 sed_quote_subst='$sed_quote_subst'
adamc@1132 12564 double_quote_subst='$double_quote_subst'
adamc@1132 12565 delay_variable_subst='$delay_variable_subst'
adam@1826 12566 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12567 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12568 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12569 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12570 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12571 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12572 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12573 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12574 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12575 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12576 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12577 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12578 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12579 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12580 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12581 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12582 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12583 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12584 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12585 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12586 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12587 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12588 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12589 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12590 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12591 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12592 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12593 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12594 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12595 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12596 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12597 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12598 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12599 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12600 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12601 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12602 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12603 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12604 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12605 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12606 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12607 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12608 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12609 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12610 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"`'
adam@1826 12611 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"`'
adam@1826 12612 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12613 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12614 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12615 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12616 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12617 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12618 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12619 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12620 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12621 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12622 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12623 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12624 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12625 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12626 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12627 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12628 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12629 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12630 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12631 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12632 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12633 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12634 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12635 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12636 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12637 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12638 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12639 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12640 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12641 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12642 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12643 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12644 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12645 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12646 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12647 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12648 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12649 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12650 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12651 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12652 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12653 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12654 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12655 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12656 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12657 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12658 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12659 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12660 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12661 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12662 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12663 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12664 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12665 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12666 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12667 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12668 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12669 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12670 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12671 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12672 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12673 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12674 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12675 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12676 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12677 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12678 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12679 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12680 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12681 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12682 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
adam@1826 12683 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
adamc@1132 12684
adamc@1132 12685 LTCC='$LTCC'
adamc@1132 12686 LTCFLAGS='$LTCFLAGS'
adamc@1132 12687 compiler='$compiler_DEFAULT'
adamc@1132 12688
adamc@1132 12689 # Quote evaled strings.
adam@1826 12690 for var in SED \
adamc@1132 12691 GREP \
adamc@1132 12692 EGREP \
adamc@1132 12693 FGREP \
adamc@1132 12694 LD \
adamc@1132 12695 NM \
adamc@1132 12696 LN_S \
adamc@1132 12697 lt_SP2NL \
adamc@1132 12698 lt_NL2SP \
adamc@1132 12699 reload_flag \
adamc@1132 12700 OBJDUMP \
adamc@1132 12701 deplibs_check_method \
adamc@1132 12702 file_magic_cmd \
adamc@1132 12703 AR \
adamc@1132 12704 AR_FLAGS \
adamc@1132 12705 STRIP \
adamc@1132 12706 RANLIB \
adamc@1132 12707 CC \
adamc@1132 12708 CFLAGS \
adamc@1132 12709 compiler \
adamc@1132 12710 lt_cv_sys_global_symbol_pipe \
adamc@1132 12711 lt_cv_sys_global_symbol_to_cdecl \
adamc@1132 12712 lt_cv_sys_global_symbol_to_c_name_address \
adamc@1132 12713 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
adam@1826 12714 SHELL \
adam@1826 12715 ECHO \
adamc@1132 12716 lt_prog_compiler_no_builtin_flag \
adam@1826 12717 lt_prog_compiler_wl \
adam@1459 12718 lt_prog_compiler_pic \
adamc@1132 12719 lt_prog_compiler_static \
adamc@1132 12720 lt_cv_prog_compiler_c_o \
adamc@1132 12721 need_locks \
adamc@1132 12722 DSYMUTIL \
adamc@1132 12723 NMEDIT \
adamc@1132 12724 LIPO \
adamc@1132 12725 OTOOL \
adamc@1132 12726 OTOOL64 \
adamc@1132 12727 shrext_cmds \
adamc@1132 12728 export_dynamic_flag_spec \
adamc@1132 12729 whole_archive_flag_spec \
adamc@1132 12730 compiler_needs_object \
adamc@1132 12731 with_gnu_ld \
adamc@1132 12732 allow_undefined_flag \
adamc@1132 12733 no_undefined_flag \
adamc@1132 12734 hardcode_libdir_flag_spec \
adam@1826 12735 hardcode_libdir_flag_spec_ld \
adamc@1132 12736 hardcode_libdir_separator \
adam@1826 12737 fix_srcfile_path \
adamc@1132 12738 exclude_expsyms \
adamc@1132 12739 include_expsyms \
adamc@1132 12740 file_list_spec \
adamc@1132 12741 variables_saved_for_relink \
adamc@1132 12742 libname_spec \
adamc@1132 12743 library_names_spec \
adamc@1132 12744 soname_spec \
adamc@1132 12745 finish_eval \
adamc@1132 12746 old_striplib \
adamc@1132 12747 striplib; do
adam@1826 12748 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
adamc@1132 12749 *[\\\\\\\`\\"\\\$]*)
adam@1826 12750 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
adamc@1132 12751 ;;
adamc@1132 12752 *)
adamc@1132 12753 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
adamc@1132 12754 ;;
adamc@1132 12755 esac
adamc@1132 12756 done
adamc@1132 12757
adamc@1132 12758 # Double-quote double-evaled strings.
adamc@1132 12759 for var in reload_cmds \
adamc@1132 12760 old_postinstall_cmds \
adamc@1132 12761 old_postuninstall_cmds \
adamc@1132 12762 old_archive_cmds \
adamc@1132 12763 extract_expsyms_cmds \
adamc@1132 12764 old_archive_from_new_cmds \
adamc@1132 12765 old_archive_from_expsyms_cmds \
adamc@1132 12766 archive_cmds \
adamc@1132 12767 archive_expsym_cmds \
adamc@1132 12768 module_cmds \
adamc@1132 12769 module_expsym_cmds \
adamc@1132 12770 export_symbols_cmds \
adamc@1132 12771 prelink_cmds \
adamc@1132 12772 postinstall_cmds \
adamc@1132 12773 postuninstall_cmds \
adamc@1132 12774 finish_cmds \
adamc@1132 12775 sys_lib_search_path_spec \
adamc@1132 12776 sys_lib_dlsearch_path_spec; do
adam@1826 12777 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
adamc@1132 12778 *[\\\\\\\`\\"\\\$]*)
adam@1826 12779 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
adamc@1132 12780 ;;
adamc@1132 12781 *)
adamc@1132 12782 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
adamc@1132 12783 ;;
adamc@1132 12784 esac
adamc@1132 12785 done
adamc@1132 12786
adam@1826 12787 # Fix-up fallback echo if it was mangled by the above quoting rules.
adam@1826 12788 case \$lt_ECHO in
adam@1826 12789 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
adam@1826 12790 ;;
adam@1826 12791 esac
adam@1826 12792
adamc@1132 12793 ac_aux_dir='$ac_aux_dir'
adamc@1132 12794 xsi_shell='$xsi_shell'
adamc@1132 12795 lt_shell_append='$lt_shell_append'
adamc@1132 12796
adamc@1132 12797 # See if we are running on zsh, and set the options which allow our
adamc@1132 12798 # commands through without removal of \ escapes INIT.
adamc@1132 12799 if test -n "\${ZSH_VERSION+set}" ; then
adamc@1132 12800 setopt NO_GLOB_SUBST
adamc@1132 12801 fi
adamc@1132 12802
adamc@1132 12803
adamc@1132 12804 PACKAGE='$PACKAGE'
adamc@1132 12805 VERSION='$VERSION'
adamc@1132 12806 TIMESTAMP='$TIMESTAMP'
adamc@1132 12807 RM='$RM'
adamc@1132 12808 ofile='$ofile'
adamc@1132 12809
adamc@1132 12810
adamc@1132 12811
adamc@1132 12812
adamc@378 12813 _ACEOF
adamc@378 12814
adamc@1095 12815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@378 12816
adamc@378 12817 # Handling of arguments.
adamc@378 12818 for ac_config_target in $ac_config_targets
adamc@378 12819 do
adamc@378 12820 case $ac_config_target in
adamc@1132 12821 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
adamc@1132 12822 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
adam@1740 12823 "include/urweb/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/urweb/config.h" ;;
adamc@378 12824 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
adamc@1132 12825 "src/c/Makefile") CONFIG_FILES="$CONFIG_FILES src/c/Makefile" ;;
adamc@378 12826 "src/config.sml") CONFIG_FILES="$CONFIG_FILES src/config.sml" ;;
adamc@378 12827
adam@1826 12828 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
adamc@378 12829 esac
adamc@378 12830 done
adamc@378 12831
adamc@378 12832
adamc@378 12833 # If the user did not use the arguments to specify the items to instantiate,
adamc@378 12834 # then the envvar interface is used. Set only those that are not.
adamc@378 12835 # We use the long form for the default assignment because of an extremely
adamc@378 12836 # bizarre bug on SunOS 4.1.3.
adamc@378 12837 if $ac_need_defaults; then
adamc@378 12838 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
adamc@1263 12839 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
adamc@1132 12840 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
adamc@378 12841 fi
adamc@378 12842
adamc@378 12843 # Have a temporary directory for convenience. Make it in the build tree
adamc@378 12844 # simply because there is no reason against having it here, and in addition,
adamc@378 12845 # creating and moving files from /tmp can sometimes cause problems.
adamc@378 12846 # Hook for its removal unless debugging.
adamc@378 12847 # Note that there is a small window in which the directory will not be cleaned:
adamc@378 12848 # after its creation but before its name has been assigned to `$tmp'.
adamc@378 12849 $debug ||
adamc@378 12850 {
adam@1826 12851 tmp=
adamc@378 12852 trap 'exit_status=$?
adam@1826 12853 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
adamc@378 12854 ' 0
adamc@1095 12855 trap 'as_fn_exit 1' 1 2 13 15
adamc@378 12856 }
adamc@378 12857 # Create a (secure) tmp directory for tmp files.
adamc@378 12858
adamc@378 12859 {
adamc@378 12860 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
adam@1826 12861 test -n "$tmp" && test -d "$tmp"
adamc@378 12862 } ||
adamc@378 12863 {
adamc@378 12864 tmp=./conf$$-$RANDOM
adamc@378 12865 (umask 077 && mkdir "$tmp")
adam@1315 12866 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
adamc@378 12867
adamc@1095 12868 # Set up the scripts for CONFIG_FILES section.
adamc@1095 12869 # No need to generate them if there are no CONFIG_FILES.
adamc@1095 12870 # This happens for instance with `./config.status config.h'.
adamc@378 12871 if test -n "$CONFIG_FILES"; then
adamc@378 12872
adamc@1095 12873
adamc@1095 12874 ac_cr=`echo X | tr X '\015'`
adamc@1095 12875 # On cygwin, bash can eat \r inside `` if the user requested igncr.
adamc@1095 12876 # But we know of no other shell where ac_cr would be empty at this
adamc@1095 12877 # point, so we can use a bashism as a fallback.
adamc@1095 12878 if test "x$ac_cr" = x; then
adamc@1095 12879 eval ac_cr=\$\'\\r\'
adamc@1095 12880 fi
adamc@1095 12881 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
adamc@1095 12882 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
adam@1315 12883 ac_cs_awk_cr='\\r'
adamc@1095 12884 else
adamc@1095 12885 ac_cs_awk_cr=$ac_cr
adamc@1095 12886 fi
adamc@1095 12887
adam@1826 12888 echo 'BEGIN {' >"$tmp/subs1.awk" &&
adamc@378 12889 _ACEOF
adamc@378 12890
adamc@378 12891
adamc@1095 12892 {
adamc@1095 12893 echo "cat >conf$$subs.awk <<_ACEOF" &&
adamc@1095 12894 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
adamc@1095 12895 echo "_ACEOF"
adamc@1095 12896 } >conf$$subs.sh ||
adam@1315 12897 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
adam@1315 12898 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
adamc@378 12899 ac_delim='%!_!# '
adamc@378 12900 for ac_last_try in false false false false false :; do
adamc@1095 12901 . ./conf$$subs.sh ||
adam@1315 12902 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
adamc@378 12903
adamc@1095 12904 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
adamc@1095 12905 if test $ac_delim_n = $ac_delim_num; then
adamc@378 12906 break
adamc@378 12907 elif $ac_last_try; then
adam@1315 12908 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
adamc@378 12909 else
adamc@378 12910 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
adamc@378 12911 fi
adamc@378 12912 done
adamc@1095 12913 rm -f conf$$subs.sh
adamc@378 12914
adamc@1095 12915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adam@1826 12916 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
adamc@1095 12917 _ACEOF
adamc@1095 12918 sed -n '
adamc@1095 12919 h
adamc@1095 12920 s/^/S["/; s/!.*/"]=/
adamc@1095 12921 p
adamc@1095 12922 g
adamc@1095 12923 s/^[^!]*!//
adamc@1095 12924 :repl
adamc@1095 12925 t repl
adamc@1095 12926 s/'"$ac_delim"'$//
adamc@1095 12927 t delim
adamc@1095 12928 :nl
adamc@1095 12929 h
adamc@1095 12930 s/\(.\{148\}\)..*/\1/
adamc@1095 12931 t more1
adamc@1095 12932 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
adamc@1095 12933 p
adamc@1095 12934 n
adamc@1095 12935 b repl
adamc@1095 12936 :more1
adamc@1095 12937 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
adamc@1095 12938 p
adamc@1095 12939 g
adamc@1095 12940 s/.\{148\}//
adamc@1095 12941 t nl
adamc@1095 12942 :delim
adamc@1095 12943 h
adamc@1095 12944 s/\(.\{148\}\)..*/\1/
adamc@1095 12945 t more2
adamc@1095 12946 s/["\\]/\\&/g; s/^/"/; s/$/"/
adamc@1095 12947 p
adamc@1095 12948 b
adamc@1095 12949 :more2
adamc@1095 12950 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
adamc@1095 12951 p
adamc@1095 12952 g
adamc@1095 12953 s/.\{148\}//
adamc@1095 12954 t delim
adamc@1095 12955 ' <conf$$subs.awk | sed '
adamc@1095 12956 /^[^""]/{
adamc@1095 12957 N
adamc@1095 12958 s/\n//
adamc@1095 12959 }
adamc@1095 12960 ' >>$CONFIG_STATUS || ac_write_fail=1
adamc@1095 12961 rm -f conf$$subs.awk
adamc@1095 12962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adamc@1095 12963 _ACAWK
adam@1826 12964 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
adamc@1095 12965 for (key in S) S_is_set[key] = 1
adamc@1095 12966 FS = ""
adamc@378 12967
adamc@1095 12968 }
adamc@1095 12969 {
adamc@1095 12970 line = $ 0
adamc@1095 12971 nfields = split(line, field, "@")
adamc@1095 12972 substed = 0
adamc@1095 12973 len = length(field[1])
adamc@1095 12974 for (i = 2; i < nfields; i++) {
adamc@1095 12975 key = field[i]
adamc@1095 12976 keylen = length(key)
adamc@1095 12977 if (S_is_set[key]) {
adamc@1095 12978 value = S[key]
adamc@1095 12979 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
adamc@1095 12980 len += length(value) + length(field[++i])
adamc@1095 12981 substed = 1
adamc@1095 12982 } else
adamc@1095 12983 len += 1 + keylen
adamc@1095 12984 }
adamc@1095 12985
adamc@1095 12986 print line
adamc@1095 12987 }
adamc@1095 12988
adamc@1095 12989 _ACAWK
adamc@378 12990 _ACEOF
adamc@1095 12991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@1095 12992 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
adamc@1095 12993 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
adamc@1095 12994 else
adamc@1095 12995 cat
adam@1826 12996 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
adam@1315 12997 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
adam@1315 12998 _ACEOF
adam@1315 12999
adam@1315 13000 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
adam@1315 13001 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
adamc@378 13002 # trailing colons and then remove the whole line if VPATH becomes empty
adamc@378 13003 # (actually we leave an empty line to preserve line numbers).
adamc@378 13004 if test "x$srcdir" = x.; then
adam@1315 13005 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
adam@1315 13006 h
adam@1315 13007 s///
adam@1315 13008 s/^/:/
adam@1315 13009 s/[ ]*$/:/
adam@1315 13010 s/:\$(srcdir):/:/g
adam@1315 13011 s/:\${srcdir}:/:/g
adam@1315 13012 s/:@srcdir@:/:/g
adam@1315 13013 s/^:*//
adamc@378 13014 s/:*$//
adam@1315 13015 x
adam@1315 13016 s/\(=[ ]*\).*/\1/
adam@1315 13017 G
adam@1315 13018 s/\n//
adamc@378 13019 s/^[^=]*=[ ]*$//
adamc@378 13020 }'
adamc@378 13021 fi
adamc@378 13022
adamc@1095 13023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@378 13024 fi # test -n "$CONFIG_FILES"
adamc@378 13025
adamc@1263 13026 # Set up the scripts for CONFIG_HEADERS section.
adamc@1263 13027 # No need to generate them if there are no CONFIG_HEADERS.
adamc@1263 13028 # This happens for instance with `./config.status Makefile'.
adamc@1263 13029 if test -n "$CONFIG_HEADERS"; then
adam@1826 13030 cat >"$tmp/defines.awk" <<\_ACAWK ||
adamc@1263 13031 BEGIN {
adamc@1263 13032 _ACEOF
adamc@1263 13033
adamc@1263 13034 # Transform confdefs.h into an awk script `defines.awk', embedded as
adamc@1263 13035 # here-document in config.status, that substitutes the proper values into
adamc@1263 13036 # config.h.in to produce config.h.
adamc@1263 13037
adamc@1263 13038 # Create a delimiter string that does not exist in confdefs.h, to ease
adamc@1263 13039 # handling of long lines.
adamc@1263 13040 ac_delim='%!_!# '
adamc@1263 13041 for ac_last_try in false false :; do
adam@1826 13042 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
adam@1826 13043 if test -z "$ac_t"; then
adamc@1263 13044 break
adamc@1263 13045 elif $ac_last_try; then
adam@1315 13046 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
adamc@1263 13047 else
adamc@1263 13048 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
adamc@1263 13049 fi
adamc@1263 13050 done
adamc@1263 13051
adamc@1263 13052 # For the awk script, D is an array of macro values keyed by name,
adamc@1263 13053 # likewise P contains macro parameters if any. Preserve backslash
adamc@1263 13054 # newline sequences.
adamc@1263 13055
adamc@1263 13056 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
adamc@1263 13057 sed -n '
adamc@1263 13058 s/.\{148\}/&'"$ac_delim"'/g
adamc@1263 13059 t rset
adamc@1263 13060 :rset
adamc@1263 13061 s/^[ ]*#[ ]*define[ ][ ]*/ /
adamc@1263 13062 t def
adamc@1263 13063 d
adamc@1263 13064 :def
adamc@1263 13065 s/\\$//
adamc@1263 13066 t bsnl
adamc@1263 13067 s/["\\]/\\&/g
adamc@1263 13068 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
adamc@1263 13069 D["\1"]=" \3"/p
adamc@1263 13070 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
adamc@1263 13071 d
adamc@1263 13072 :bsnl
adamc@1263 13073 s/["\\]/\\&/g
adamc@1263 13074 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
adamc@1263 13075 D["\1"]=" \3\\\\\\n"\\/p
adamc@1263 13076 t cont
adamc@1263 13077 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
adamc@1263 13078 t cont
adamc@1263 13079 d
adamc@1263 13080 :cont
adamc@1263 13081 n
adamc@1263 13082 s/.\{148\}/&'"$ac_delim"'/g
adamc@1263 13083 t clear
adamc@1263 13084 :clear
adamc@1263 13085 s/\\$//
adamc@1263 13086 t bsnlc
adamc@1263 13087 s/["\\]/\\&/g; s/^/"/; s/$/"/p
adamc@1263 13088 d
adamc@1263 13089 :bsnlc
adamc@1263 13090 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
adamc@1263 13091 b cont
adamc@1263 13092 ' <confdefs.h | sed '
adamc@1263 13093 s/'"$ac_delim"'/"\\\
adamc@1263 13094 "/g' >>$CONFIG_STATUS || ac_write_fail=1
adamc@1263 13095
adamc@1263 13096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adamc@1263 13097 for (key in D) D_is_set[key] = 1
adamc@1263 13098 FS = ""
adamc@1263 13099 }
adamc@1263 13100 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
adamc@1263 13101 line = \$ 0
adamc@1263 13102 split(line, arg, " ")
adamc@1263 13103 if (arg[1] == "#") {
adamc@1263 13104 defundef = arg[2]
adamc@1263 13105 mac1 = arg[3]
adamc@1263 13106 } else {
adamc@1263 13107 defundef = substr(arg[1], 2)
adamc@1263 13108 mac1 = arg[2]
adamc@1263 13109 }
adamc@1263 13110 split(mac1, mac2, "(") #)
adamc@1263 13111 macro = mac2[1]
adamc@1263 13112 prefix = substr(line, 1, index(line, defundef) - 1)
adamc@1263 13113 if (D_is_set[macro]) {
adamc@1263 13114 # Preserve the white space surrounding the "#".
adamc@1263 13115 print prefix "define", macro P[macro] D[macro]
adamc@1263 13116 next
adamc@1263 13117 } else {
adamc@1263 13118 # Replace #undef with comments. This is necessary, for example,
adamc@1263 13119 # in the case of _POSIX_SOURCE, which is predefined and required
adamc@1263 13120 # on some systems where configure will not decide to define it.
adamc@1263 13121 if (defundef == "undef") {
adamc@1263 13122 print "/*", prefix defundef, macro, "*/"
adamc@1263 13123 next
adamc@1263 13124 }
adamc@1263 13125 }
adamc@1263 13126 }
adamc@1263 13127 { print }
adamc@1263 13128 _ACAWK
adamc@1263 13129 _ACEOF
adamc@1263 13130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adam@1315 13131 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
adamc@1263 13132 fi # test -n "$CONFIG_HEADERS"
adamc@1263 13133
adamc@1263 13134
adamc@1263 13135 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
adamc@1095 13136 shift
adamc@1095 13137 for ac_tag
adamc@378 13138 do
adamc@378 13139 case $ac_tag in
adamc@378 13140 :[FHLC]) ac_mode=$ac_tag; continue;;
adamc@378 13141 esac
adamc@378 13142 case $ac_mode$ac_tag in
adamc@378 13143 :[FHL]*:*);;
adam@1826 13144 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
adamc@378 13145 :[FH]-) ac_tag=-:-;;
adamc@378 13146 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
adamc@378 13147 esac
adamc@378 13148 ac_save_IFS=$IFS
adamc@378 13149 IFS=:
adamc@378 13150 set x $ac_tag
adamc@378 13151 IFS=$ac_save_IFS
adamc@378 13152 shift
adamc@378 13153 ac_file=$1
adamc@378 13154 shift
adamc@378 13155
adamc@378 13156 case $ac_mode in
adamc@378 13157 :L) ac_source=$1;;
adamc@378 13158 :[FH])
adamc@378 13159 ac_file_inputs=
adamc@378 13160 for ac_f
adamc@378 13161 do
adamc@378 13162 case $ac_f in
adam@1826 13163 -) ac_f="$tmp/stdin";;
adamc@378 13164 *) # Look for the file first in the build tree, then in the source tree
adamc@378 13165 # (if the path is not absolute). The absolute path cannot be DOS-style,
adamc@378 13166 # because $ac_f cannot contain `:'.
adamc@378 13167 test -f "$ac_f" ||
adamc@378 13168 case $ac_f in
adamc@378 13169 [\\/$]*) false;;
adamc@378 13170 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
adamc@378 13171 esac ||
adam@1826 13172 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
adamc@378 13173 esac
adamc@1095 13174 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
adamc@1095 13175 as_fn_append ac_file_inputs " '$ac_f'"
adamc@378 13176 done
adamc@378 13177
adamc@378 13178 # Let's still pretend it is `configure' which instantiates (i.e., don't
adamc@378 13179 # use $as_me), people would be surprised to read:
adamc@378 13180 # /* config.h. Generated by config.status. */
adamc@1095 13181 configure_input='Generated from '`
adamc@1095 13182 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
adamc@1095 13183 `' by configure.'
adamc@378 13184 if test x"$ac_file" != x-; then
adamc@378 13185 configure_input="$ac_file. $configure_input"
adamc@1095 13186 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
adamc@1095 13187 $as_echo "$as_me: creating $ac_file" >&6;}
adamc@378 13188 fi
adamc@1095 13189 # Neutralize special characters interpreted by sed in replacement strings.
adamc@1095 13190 case $configure_input in #(
adamc@1095 13191 *\&* | *\|* | *\\* )
adamc@1095 13192 ac_sed_conf_input=`$as_echo "$configure_input" |
adamc@1095 13193 sed 's/[\\\\&|]/\\\\&/g'`;; #(
adamc@1095 13194 *) ac_sed_conf_input=$configure_input;;
adamc@1095 13195 esac
adamc@378 13196
adamc@378 13197 case $ac_tag in
adam@1826 13198 *:-:* | *:-) cat >"$tmp/stdin" \
adam@1826 13199 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
adamc@378 13200 esac
adamc@378 13201 ;;
adamc@378 13202 esac
adamc@378 13203
adamc@378 13204 ac_dir=`$as_dirname -- "$ac_file" ||
adamc@378 13205 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
adamc@378 13206 X"$ac_file" : 'X\(//\)[^/]' \| \
adamc@378 13207 X"$ac_file" : 'X\(//\)$' \| \
adamc@378 13208 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
adamc@1095 13209 $as_echo X"$ac_file" |
adamc@378 13210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
adamc@378 13211 s//\1/
adamc@378 13212 q
adamc@378 13213 }
adamc@378 13214 /^X\(\/\/\)[^/].*/{
adamc@378 13215 s//\1/
adamc@378 13216 q
adamc@378 13217 }
adamc@378 13218 /^X\(\/\/\)$/{
adamc@378 13219 s//\1/
adamc@378 13220 q
adamc@378 13221 }
adamc@378 13222 /^X\(\/\).*/{
adamc@378 13223 s//\1/
adamc@378 13224 q
adamc@378 13225 }
adamc@378 13226 s/.*/./; q'`
adamc@1095 13227 as_dir="$ac_dir"; as_fn_mkdir_p
adamc@378 13228 ac_builddir=.
adamc@378 13229
adamc@378 13230 case "$ac_dir" in
adamc@378 13231 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
adamc@378 13232 *)
adamc@1095 13233 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
adamc@378 13234 # A ".." for each directory in $ac_dir_suffix.
adamc@1095 13235 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
adamc@378 13236 case $ac_top_builddir_sub in
adamc@378 13237 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
adamc@378 13238 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
adamc@378 13239 esac ;;
adamc@378 13240 esac
adamc@378 13241 ac_abs_top_builddir=$ac_pwd
adamc@378 13242 ac_abs_builddir=$ac_pwd$ac_dir_suffix
adamc@378 13243 # for backward compatibility:
adamc@378 13244 ac_top_builddir=$ac_top_build_prefix
adamc@378 13245
adamc@378 13246 case $srcdir in
adamc@378 13247 .) # We are building in place.
adamc@378 13248 ac_srcdir=.
adamc@378 13249 ac_top_srcdir=$ac_top_builddir_sub
adamc@378 13250 ac_abs_top_srcdir=$ac_pwd ;;
adamc@378 13251 [\\/]* | ?:[\\/]* ) # Absolute name.
adamc@378 13252 ac_srcdir=$srcdir$ac_dir_suffix;
adamc@378 13253 ac_top_srcdir=$srcdir
adamc@378 13254 ac_abs_top_srcdir=$srcdir ;;
adamc@378 13255 *) # Relative name.
adamc@378 13256 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
adamc@378 13257 ac_top_srcdir=$ac_top_build_prefix$srcdir
adamc@378 13258 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
adamc@378 13259 esac
adamc@378 13260 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
adamc@378 13261
adamc@378 13262
adamc@378 13263 case $ac_mode in
adamc@378 13264 :F)
adamc@378 13265 #
adamc@378 13266 # CONFIG_FILE
adamc@378 13267 #
adamc@378 13268
adamc@1132 13269 case $INSTALL in
adamc@1132 13270 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
adamc@1132 13271 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
adamc@1132 13272 esac
adamc@1132 13273 ac_MKDIR_P=$MKDIR_P
adamc@1132 13274 case $MKDIR_P in
adamc@1132 13275 [\\/$]* | ?:[\\/]* ) ;;
adamc@1132 13276 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
adamc@1132 13277 esac
adamc@378 13278 _ACEOF
adamc@378 13279
adamc@1095 13280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@378 13281 # If the template does not know about datarootdir, expand it.
adamc@378 13282 # FIXME: This hack should be removed a few years after 2.60.
adamc@378 13283 ac_datarootdir_hack=; ac_datarootdir_seen=
adamc@1095 13284 ac_sed_dataroot='
adamc@1095 13285 /datarootdir/ {
adamc@378 13286 p
adamc@378 13287 q
adamc@378 13288 }
adamc@378 13289 /@datadir@/p
adamc@378 13290 /@docdir@/p
adamc@378 13291 /@infodir@/p
adamc@378 13292 /@localedir@/p
adamc@1095 13293 /@mandir@/p'
adamc@1095 13294 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
adamc@378 13295 *datarootdir*) ac_datarootdir_seen=yes;;
adamc@378 13296 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
adamc@1095 13297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
adamc@1095 13298 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
adamc@378 13299 _ACEOF
adamc@1095 13300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adamc@378 13301 ac_datarootdir_hack='
adamc@378 13302 s&@datadir@&$datadir&g
adamc@378 13303 s&@docdir@&$docdir&g
adamc@378 13304 s&@infodir@&$infodir&g
adamc@378 13305 s&@localedir@&$localedir&g
adamc@378 13306 s&@mandir@&$mandir&g
adamc@1095 13307 s&\\\${datarootdir}&$datarootdir&g' ;;
adamc@378 13308 esac
adamc@378 13309 _ACEOF
adamc@378 13310
adamc@378 13311 # Neutralize VPATH when `$srcdir' = `.'.
adamc@378 13312 # Shell code in configure.ac might set extrasub.
adamc@378 13313 # FIXME: do we really want to maintain this feature?
adamc@1095 13314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
adamc@1095 13315 ac_sed_extra="$ac_vpsub
adamc@378 13316 $extrasub
adamc@378 13317 _ACEOF
adamc@1095 13318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
adamc@378 13319 :t
adamc@378 13320 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
adamc@1095 13321 s|@configure_input@|$ac_sed_conf_input|;t t
adamc@378 13322 s&@top_builddir@&$ac_top_builddir_sub&;t t
adamc@1095 13323 s&@top_build_prefix@&$ac_top_build_prefix&;t t
adamc@378 13324 s&@srcdir@&$ac_srcdir&;t t
adamc@378 13325 s&@abs_srcdir@&$ac_abs_srcdir&;t t
adamc@378 13326 s&@top_srcdir@&$ac_top_srcdir&;t t
adamc@378 13327 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
adamc@378 13328 s&@builddir@&$ac_builddir&;t t
adamc@378 13329 s&@abs_builddir@&$ac_abs_builddir&;t t
adamc@378 13330 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
adamc@1132 13331 s&@INSTALL@&$ac_INSTALL&;t t
adamc@1132 13332 s&@MKDIR_P@&$ac_MKDIR_P&;t t
adamc@378 13333 $ac_datarootdir_hack
adamc@1095 13334 "
adam@1826 13335 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
adam@1826 13336 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
adamc@378 13337
adamc@378 13338 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
adam@1826 13339 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
adam@1826 13340 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
adamc@1095 13341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
adam@1315 13342 which seems to be undefined. Please make sure it is defined" >&5
adamc@1095 13343 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
adam@1315 13344 which seems to be undefined. Please make sure it is defined" >&2;}
adamc@378 13345
adam@1826 13346 rm -f "$tmp/stdin"
adamc@378 13347 case $ac_file in
adam@1826 13348 -) cat "$tmp/out" && rm -f "$tmp/out";;
adam@1826 13349 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
adamc@1095 13350 esac \
adam@1315 13351 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
adamc@378 13352 ;;
adamc@1263 13353 :H)
adamc@1263 13354 #
adamc@1263 13355 # CONFIG_HEADER
adamc@1263 13356 #
adamc@1263 13357 if test x"$ac_file" != x-; then
adamc@1263 13358 {
adamc@1263 13359 $as_echo "/* $configure_input */" \
adam@1826 13360 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
adam@1826 13361 } >"$tmp/config.h" \
adam@1315 13362 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
adam@1826 13363 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
adamc@1263 13364 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
adamc@1263 13365 $as_echo "$as_me: $ac_file is unchanged" >&6;}
adamc@1263 13366 else
adamc@1263 13367 rm -f "$ac_file"
adam@1826 13368 mv "$tmp/config.h" "$ac_file" \
adam@1315 13369 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
adamc@1263 13370 fi
adamc@1263 13371 else
adamc@1263 13372 $as_echo "/* $configure_input */" \
adam@1826 13373 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
adam@1315 13374 || as_fn_error $? "could not create -" "$LINENO" 5
adamc@1263 13375 fi
adamc@1263 13376 # Compute "$ac_file"'s index in $config_headers.
adamc@1263 13377 _am_arg="$ac_file"
adamc@1263 13378 _am_stamp_count=1
adamc@1263 13379 for _am_header in $config_headers :; do
adamc@1263 13380 case $_am_header in
adamc@1263 13381 $_am_arg | $_am_arg:* )
adamc@1263 13382 break ;;
adamc@1263 13383 * )
adamc@1263 13384 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
adamc@1263 13385 esac
adamc@1263 13386 done
adamc@1263 13387 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
adamc@1263 13388 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
adamc@1263 13389 X"$_am_arg" : 'X\(//\)[^/]' \| \
adamc@1263 13390 X"$_am_arg" : 'X\(//\)$' \| \
adamc@1263 13391 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
adamc@1263 13392 $as_echo X"$_am_arg" |
adamc@1263 13393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
adamc@1263 13394 s//\1/
adamc@1263 13395 q
adamc@1263 13396 }
adamc@1263 13397 /^X\(\/\/\)[^/].*/{
adamc@1263 13398 s//\1/
adamc@1263 13399 q
adamc@1263 13400 }
adamc@1263 13401 /^X\(\/\/\)$/{
adamc@1263 13402 s//\1/
adamc@1263 13403 q
adamc@1263 13404 }
adamc@1263 13405 /^X\(\/\).*/{
adamc@1263 13406 s//\1/
adamc@1263 13407 q
adamc@1263 13408 }
adamc@1263 13409 s/.*/./; q'`/stamp-h$_am_stamp_count
adamc@1263 13410 ;;
adamc@378 13411
adamc@1132 13412 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
adamc@1132 13413 $as_echo "$as_me: executing $ac_file commands" >&6;}
adamc@1132 13414 ;;
adamc@378 13415 esac
adamc@378 13416
adamc@378 13417
adamc@378 13418 case $ac_file$ac_mode in
adamc@1132 13419 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
adamc@1132 13420 # Autoconf 2.62 quotes --file arguments for eval, but not when files
adamc@1132 13421 # are listed without --file. Let's play safe and only enable the eval
adamc@1132 13422 # if we detect the quoting.
adamc@1132 13423 case $CONFIG_FILES in
adamc@1132 13424 *\'*) eval set x "$CONFIG_FILES" ;;
adamc@1132 13425 *) set x $CONFIG_FILES ;;
adamc@1132 13426 esac
adamc@1132 13427 shift
adamc@1132 13428 for mf
adamc@1132 13429 do
adamc@1132 13430 # Strip MF so we end up with the name of the file.
adamc@1132 13431 mf=`echo "$mf" | sed -e 's/:.*$//'`
adamc@1132 13432 # Check whether this is an Automake generated Makefile or not.
adamc@1132 13433 # We used to match only the files named `Makefile.in', but
adamc@1132 13434 # some people rename them; so instead we look at the file content.
adamc@1132 13435 # Grep'ing the first line is not enough: some people post-process
adamc@1132 13436 # each Makefile.in and add a new line on top of each file to say so.
adamc@1132 13437 # Grep'ing the whole file is not good either: AIX grep has a line
adamc@1132 13438 # limit of 2048, but all sed's we know have understand at least 4000.
adamc@1132 13439 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
adamc@1132 13440 dirpart=`$as_dirname -- "$mf" ||
adamc@1132 13441 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
adamc@1132 13442 X"$mf" : 'X\(//\)[^/]' \| \
adamc@1132 13443 X"$mf" : 'X\(//\)$' \| \
adamc@1132 13444 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
adamc@1132 13445 $as_echo X"$mf" |
adamc@1132 13446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
adamc@1132 13447 s//\1/
adamc@1132 13448 q
adamc@1132 13449 }
adamc@1132 13450 /^X\(\/\/\)[^/].*/{
adamc@1132 13451 s//\1/
adamc@1132 13452 q
adamc@1132 13453 }
adamc@1132 13454 /^X\(\/\/\)$/{
adamc@1132 13455 s//\1/
adamc@1132 13456 q
adamc@1132 13457 }
adamc@1132 13458 /^X\(\/\).*/{
adamc@1132 13459 s//\1/
adamc@1132 13460 q
adamc@1132 13461 }
adamc@1132 13462 s/.*/./; q'`
adamc@1132 13463 else
adamc@1132 13464 continue
adamc@1132 13465 fi
adamc@1132 13466 # Extract the definition of DEPDIR, am__include, and am__quote
adamc@1132 13467 # from the Makefile without running `make'.
adamc@1132 13468 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
adamc@1132 13469 test -z "$DEPDIR" && continue
adamc@1132 13470 am__include=`sed -n 's/^am__include = //p' < "$mf"`
adamc@1132 13471 test -z "am__include" && continue
adamc@1132 13472 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
adamc@1132 13473 # When using ansi2knr, U may be empty or an underscore; expand it
adamc@1132 13474 U=`sed -n 's/^U = //p' < "$mf"`
adamc@1132 13475 # Find all dependency output files, they are included files with
adamc@1132 13476 # $(DEPDIR) in their names. We invoke sed twice because it is the
adamc@1132 13477 # simplest approach to changing $(DEPDIR) to its actual value in the
adamc@1132 13478 # expansion.
adamc@1132 13479 for file in `sed -n "
adamc@1132 13480 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
adamc@1132 13481 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
adamc@1132 13482 # Make sure the directory exists.
adamc@1132 13483 test -f "$dirpart/$file" && continue
adamc@1132 13484 fdir=`$as_dirname -- "$file" ||
adamc@1132 13485 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
adamc@1132 13486 X"$file" : 'X\(//\)[^/]' \| \
adamc@1132 13487 X"$file" : 'X\(//\)$' \| \
adamc@1132 13488 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
adamc@1132 13489 $as_echo X"$file" |
adamc@1132 13490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
adamc@1132 13491 s//\1/
adamc@1132 13492 q
adamc@1132 13493 }
adamc@1132 13494 /^X\(\/\/\)[^/].*/{
adamc@1132 13495 s//\1/
adamc@1132 13496 q
adamc@1132 13497 }
adamc@1132 13498 /^X\(\/\/\)$/{
adamc@1132 13499 s//\1/
adamc@1132 13500 q
adamc@1132 13501 }
adamc@1132 13502 /^X\(\/\).*/{
adamc@1132 13503 s//\1/
adamc@1132 13504 q
adamc@1132 13505 }
adamc@1132 13506 s/.*/./; q'`
adamc@1132 13507 as_dir=$dirpart/$fdir; as_fn_mkdir_p
adamc@1132 13508 # echo "creating $dirpart/$file"
adamc@1132 13509 echo '# dummy' > "$dirpart/$file"
adamc@1132 13510 done
adamc@1132 13511 done
adamc@1132 13512 }
adamc@1132 13513 ;;
adamc@1132 13514 "libtool":C)
adamc@1132 13515
adamc@1132 13516 # See if we are running on zsh, and set the options which allow our
adamc@1132 13517 # commands through without removal of \ escapes.
adamc@1132 13518 if test -n "${ZSH_VERSION+set}" ; then
adamc@1132 13519 setopt NO_GLOB_SUBST
adamc@1132 13520 fi
adamc@1132 13521
adamc@1132 13522 cfgfile="${ofile}T"
adamc@1132 13523 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
adamc@1132 13524 $RM "$cfgfile"
adamc@1132 13525
adamc@1132 13526 cat <<_LT_EOF >> "$cfgfile"
adamc@1132 13527 #! $SHELL
adamc@1132 13528
adamc@1132 13529 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
adamc@1132 13530 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
adamc@1132 13531 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
adamc@1132 13532 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
adamc@1132 13533 #
adamc@1132 13534 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
adam@1826 13535 # 2006, 2007, 2008 Free Software Foundation, Inc.
adamc@1132 13536 # Written by Gordon Matzigkeit, 1996
adamc@1132 13537 #
adamc@1132 13538 # This file is part of GNU Libtool.
adamc@1132 13539 #
adamc@1132 13540 # GNU Libtool is free software; you can redistribute it and/or
adamc@1132 13541 # modify it under the terms of the GNU General Public License as
adamc@1132 13542 # published by the Free Software Foundation; either version 2 of
adamc@1132 13543 # the License, or (at your option) any later version.
adamc@1132 13544 #
adamc@1132 13545 # As a special exception to the GNU General Public License,
adamc@1132 13546 # if you distribute this file as part of a program or library that
adamc@1132 13547 # is built using GNU Libtool, you may include this file under the
adamc@1132 13548 # same distribution terms that you use for the rest of that program.
adamc@1132 13549 #
adamc@1132 13550 # GNU Libtool is distributed in the hope that it will be useful,
adamc@1132 13551 # but WITHOUT ANY WARRANTY; without even the implied warranty of
adamc@1132 13552 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
adamc@1132 13553 # GNU General Public License for more details.
adamc@1132 13554 #
adamc@1132 13555 # You should have received a copy of the GNU General Public License
adamc@1132 13556 # along with GNU Libtool; see the file COPYING. If not, a copy
adamc@1132 13557 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
adamc@1132 13558 # obtained by writing to the Free Software Foundation, Inc.,
adamc@1132 13559 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
adamc@1132 13560
adamc@1132 13561
adamc@1132 13562 # The names of the tagged configurations supported by this script.
adamc@1132 13563 available_tags=""
adamc@1132 13564
adamc@1132 13565 # ### BEGIN LIBTOOL CONFIG
adamc@1132 13566
adamc@1132 13567 # Which release of libtool.m4 was used?
adamc@1132 13568 macro_version=$macro_version
adamc@1132 13569 macro_revision=$macro_revision
adamc@1132 13570
adamc@1132 13571 # Whether or not to build shared libraries.
adamc@1132 13572 build_libtool_libs=$enable_shared
adamc@1132 13573
adamc@1132 13574 # Whether or not to build static libraries.
adamc@1132 13575 build_old_libs=$enable_static
adamc@1132 13576
adamc@1132 13577 # What type of objects to build.
adamc@1132 13578 pic_mode=$pic_mode
adamc@1132 13579
adamc@1132 13580 # Whether or not to optimize for fast installation.
adamc@1132 13581 fast_install=$enable_fast_install
adamc@1132 13582
adamc@1132 13583 # The host system.
adamc@1132 13584 host_alias=$host_alias
adamc@1132 13585 host=$host
adamc@1132 13586 host_os=$host_os
adamc@1132 13587
adamc@1132 13588 # The build system.
adamc@1132 13589 build_alias=$build_alias
adamc@1132 13590 build=$build
adamc@1132 13591 build_os=$build_os
adamc@1132 13592
adamc@1132 13593 # A sed program that does not truncate output.
adamc@1132 13594 SED=$lt_SED
adamc@1132 13595
adamc@1132 13596 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
adamc@1132 13597 Xsed="\$SED -e 1s/^X//"
adamc@1132 13598
adamc@1132 13599 # A grep program that handles long lines.
adamc@1132 13600 GREP=$lt_GREP
adamc@1132 13601
adamc@1132 13602 # An ERE matcher.
adamc@1132 13603 EGREP=$lt_EGREP
adamc@1132 13604
adamc@1132 13605 # A literal string matcher.
adamc@1132 13606 FGREP=$lt_FGREP
adamc@1132 13607
adamc@1132 13608 # A BSD- or MS-compatible name lister.
adamc@1132 13609 NM=$lt_NM
adamc@1132 13610
adamc@1132 13611 # Whether we need soft or hard links.
adamc@1132 13612 LN_S=$lt_LN_S
adamc@1132 13613
adamc@1132 13614 # What is the maximum length of a command?
adamc@1132 13615 max_cmd_len=$max_cmd_len
adamc@1132 13616
adamc@1132 13617 # Object file suffix (normally "o").
adamc@1132 13618 objext=$ac_objext
adamc@1132 13619
adamc@1132 13620 # Executable file suffix (normally "").
adamc@1132 13621 exeext=$exeext
adamc@1132 13622
adamc@1132 13623 # whether the shell understands "unset".
adamc@1132 13624 lt_unset=$lt_unset
adamc@1132 13625
adamc@1132 13626 # turn spaces into newlines.
adamc@1132 13627 SP2NL=$lt_lt_SP2NL
adamc@1132 13628
adamc@1132 13629 # turn newlines into spaces.
adamc@1132 13630 NL2SP=$lt_lt_NL2SP
adamc@1132 13631
adam@1826 13632 # How to create reloadable object files.
adam@1826 13633 reload_flag=$lt_reload_flag
adam@1826 13634 reload_cmds=$lt_reload_cmds
adamc@1132 13635
adamc@1132 13636 # An object symbol dumper.
adamc@1132 13637 OBJDUMP=$lt_OBJDUMP
adamc@1132 13638
adamc@1132 13639 # Method to check whether dependent libraries are shared objects.
adamc@1132 13640 deplibs_check_method=$lt_deplibs_check_method
adamc@1132 13641
adam@1826 13642 # Command to use when deplibs_check_method == "file_magic".
adamc@1132 13643 file_magic_cmd=$lt_file_magic_cmd
adamc@1132 13644
adamc@1132 13645 # The archiver.
adamc@1132 13646 AR=$lt_AR
adamc@1132 13647 AR_FLAGS=$lt_AR_FLAGS
adamc@1132 13648
adamc@1132 13649 # A symbol stripping program.
adamc@1132 13650 STRIP=$lt_STRIP
adamc@1132 13651
adamc@1132 13652 # Commands used to install an old-style archive.
adamc@1132 13653 RANLIB=$lt_RANLIB
adamc@1132 13654 old_postinstall_cmds=$lt_old_postinstall_cmds
adamc@1132 13655 old_postuninstall_cmds=$lt_old_postuninstall_cmds
adamc@1132 13656
adamc@1132 13657 # A C compiler.
adamc@1132 13658 LTCC=$lt_CC
adamc@1132 13659
adamc@1132 13660 # LTCC compiler flags.
adamc@1132 13661 LTCFLAGS=$lt_CFLAGS
adamc@1132 13662
adamc@1132 13663 # Take the output of nm and produce a listing of raw symbols and C names.
adamc@1132 13664 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
adamc@1132 13665
adamc@1132 13666 # Transform the output of nm in a proper C declaration.
adamc@1132 13667 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
adamc@1132 13668
adamc@1132 13669 # Transform the output of nm in a C name address pair.
adamc@1132 13670 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
adamc@1132 13671
adamc@1132 13672 # Transform the output of nm in a C name address pair when lib prefix is needed.
adamc@1132 13673 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
adamc@1132 13674
adamc@1132 13675 # The name of the directory that contains temporary libtool files.
adamc@1132 13676 objdir=$objdir
adamc@1132 13677
adam@1826 13678 # Shell to use when invoking shell scripts.
adam@1826 13679 SHELL=$lt_SHELL
adam@1826 13680
adam@1826 13681 # An echo program that does not interpret backslashes.
adam@1826 13682 ECHO=$lt_ECHO
adam@1826 13683
adamc@1132 13684 # Used to examine libraries when file_magic_cmd begins with "file".
adamc@1132 13685 MAGIC_CMD=$MAGIC_CMD
adamc@1132 13686
adamc@1132 13687 # Must we lock files when doing compilation?
adamc@1132 13688 need_locks=$lt_need_locks
adamc@1132 13689
adamc@1132 13690 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
adamc@1132 13691 DSYMUTIL=$lt_DSYMUTIL
adamc@1132 13692
adamc@1132 13693 # Tool to change global to local symbols on Mac OS X.
adamc@1132 13694 NMEDIT=$lt_NMEDIT
adamc@1132 13695
adamc@1132 13696 # Tool to manipulate fat objects and archives on Mac OS X.
adamc@1132 13697 LIPO=$lt_LIPO
adamc@1132 13698
adamc@1132 13699 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
adamc@1132 13700 OTOOL=$lt_OTOOL
adamc@1132 13701
adamc@1132 13702 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
adamc@1132 13703 OTOOL64=$lt_OTOOL64
adamc@1132 13704
adamc@1132 13705 # Old archive suffix (normally "a").
adamc@1132 13706 libext=$libext
adamc@1132 13707
adamc@1132 13708 # Shared library suffix (normally ".so").
adamc@1132 13709 shrext_cmds=$lt_shrext_cmds
adamc@1132 13710
adamc@1132 13711 # The commands to extract the exported symbol list from a shared archive.
adamc@1132 13712 extract_expsyms_cmds=$lt_extract_expsyms_cmds
adamc@1132 13713
adamc@1132 13714 # Variables whose values should be saved in libtool wrapper scripts and
adamc@1132 13715 # restored at link time.
adamc@1132 13716 variables_saved_for_relink=$lt_variables_saved_for_relink
adamc@1132 13717
adamc@1132 13718 # Do we need the "lib" prefix for modules?
adamc@1132 13719 need_lib_prefix=$need_lib_prefix
adamc@1132 13720
adamc@1132 13721 # Do we need a version for libraries?
adamc@1132 13722 need_version=$need_version
adamc@1132 13723
adamc@1132 13724 # Library versioning type.
adamc@1132 13725 version_type=$version_type
adamc@1132 13726
adamc@1132 13727 # Shared library runtime path variable.
adamc@1132 13728 runpath_var=$runpath_var
adamc@1132 13729
adamc@1132 13730 # Shared library path variable.
adamc@1132 13731 shlibpath_var=$shlibpath_var
adamc@1132 13732
adamc@1132 13733 # Is shlibpath searched before the hard-coded library search path?
adamc@1132 13734 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
adamc@1132 13735
adamc@1132 13736 # Format of library name prefix.
adamc@1132 13737 libname_spec=$lt_libname_spec
adamc@1132 13738
adamc@1132 13739 # List of archive names. First name is the real one, the rest are links.
adamc@1132 13740 # The last name is the one that the linker finds with -lNAME
adamc@1132 13741 library_names_spec=$lt_library_names_spec
adamc@1132 13742
adamc@1132 13743 # The coded name of the library, if different from the real name.
adamc@1132 13744 soname_spec=$lt_soname_spec
adamc@1132 13745
adamc@1132 13746 # Command to use after installation of a shared archive.
adamc@1132 13747 postinstall_cmds=$lt_postinstall_cmds
adamc@1132 13748
adamc@1132 13749 # Command to use after uninstallation of a shared archive.
adamc@1132 13750 postuninstall_cmds=$lt_postuninstall_cmds
adamc@1132 13751
adamc@1132 13752 # Commands used to finish a libtool library installation in a directory.
adamc@1132 13753 finish_cmds=$lt_finish_cmds
adamc@1132 13754
adamc@1132 13755 # As "finish_cmds", except a single script fragment to be evaled but
adamc@1132 13756 # not shown.
adamc@1132 13757 finish_eval=$lt_finish_eval
adamc@1132 13758
adamc@1132 13759 # Whether we should hardcode library paths into libraries.
adamc@1132 13760 hardcode_into_libs=$hardcode_into_libs
adamc@1132 13761
adamc@1132 13762 # Compile-time system search path for libraries.
adamc@1132 13763 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
adamc@1132 13764
adamc@1132 13765 # Run-time system search path for libraries.
adamc@1132 13766 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
adamc@1132 13767
adamc@1132 13768 # Whether dlopen is supported.
adamc@1132 13769 dlopen_support=$enable_dlopen
adamc@1132 13770
adamc@1132 13771 # Whether dlopen of programs is supported.
adamc@1132 13772 dlopen_self=$enable_dlopen_self
adamc@1132 13773
adamc@1132 13774 # Whether dlopen of statically linked programs is supported.
adamc@1132 13775 dlopen_self_static=$enable_dlopen_self_static
adamc@1132 13776
adamc@1132 13777 # Commands to strip libraries.
adamc@1132 13778 old_striplib=$lt_old_striplib
adamc@1132 13779 striplib=$lt_striplib
adamc@1132 13780
adamc@1132 13781
adamc@1132 13782 # The linker used to build libraries.
adamc@1132 13783 LD=$lt_LD
adamc@1132 13784
adamc@1132 13785 # Commands used to build an old-style archive.
adamc@1132 13786 old_archive_cmds=$lt_old_archive_cmds
adamc@1132 13787
adamc@1132 13788 # A language specific compiler.
adamc@1132 13789 CC=$lt_compiler
adamc@1132 13790
adamc@1132 13791 # Is the compiler the GNU compiler?
adamc@1132 13792 with_gcc=$GCC
adamc@1132 13793
adamc@1132 13794 # Compiler flag to turn off builtin functions.
adamc@1132 13795 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
adamc@1132 13796
adam@1826 13797 # How to pass a linker flag through the compiler.
adam@1826 13798 wl=$lt_lt_prog_compiler_wl
adam@1826 13799
adam@1459 13800 # Additional compiler flags for building library objects.
adam@1459 13801 pic_flag=$lt_lt_prog_compiler_pic
adam@1459 13802
adamc@1132 13803 # Compiler flag to prevent dynamic linking.
adamc@1132 13804 link_static_flag=$lt_lt_prog_compiler_static
adamc@1132 13805
adamc@1132 13806 # Does compiler simultaneously support -c and -o options?
adamc@1132 13807 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
adamc@1132 13808
adamc@1132 13809 # Whether or not to add -lc for building shared libraries.
adamc@1132 13810 build_libtool_need_lc=$archive_cmds_need_lc
adamc@1132 13811
adamc@1132 13812 # Whether or not to disallow shared libs when runtime libs are static.
adamc@1132 13813 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
adamc@1132 13814
adamc@1132 13815 # Compiler flag to allow reflexive dlopens.
adamc@1132 13816 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
adamc@1132 13817
adamc@1132 13818 # Compiler flag to generate shared objects directly from archives.
adamc@1132 13819 whole_archive_flag_spec=$lt_whole_archive_flag_spec
adamc@1132 13820
adamc@1132 13821 # Whether the compiler copes with passing no objects directly.
adamc@1132 13822 compiler_needs_object=$lt_compiler_needs_object
adamc@1132 13823
adamc@1132 13824 # Create an old-style archive from a shared archive.
adamc@1132 13825 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
adamc@1132 13826
adamc@1132 13827 # Create a temporary old-style archive to link instead of a shared archive.
adamc@1132 13828 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
adamc@1132 13829
adamc@1132 13830 # Commands used to build a shared archive.
adamc@1132 13831 archive_cmds=$lt_archive_cmds
adamc@1132 13832 archive_expsym_cmds=$lt_archive_expsym_cmds
adamc@1132 13833
adamc@1132 13834 # Commands used to build a loadable module if different from building
adamc@1132 13835 # a shared archive.
adamc@1132 13836 module_cmds=$lt_module_cmds
adamc@1132 13837 module_expsym_cmds=$lt_module_expsym_cmds
adamc@1132 13838
adamc@1132 13839 # Whether we are building with GNU ld or not.
adamc@1132 13840 with_gnu_ld=$lt_with_gnu_ld
adamc@1132 13841
adamc@1132 13842 # Flag that allows shared libraries with undefined symbols to be built.
adamc@1132 13843 allow_undefined_flag=$lt_allow_undefined_flag
adamc@1132 13844
adamc@1132 13845 # Flag that enforces no undefined symbols.
adamc@1132 13846 no_undefined_flag=$lt_no_undefined_flag
adamc@1132 13847
adamc@1132 13848 # Flag to hardcode \$libdir into a binary during linking.
adamc@1132 13849 # This must work even if \$libdir does not exist
adamc@1132 13850 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
adamc@1132 13851
adam@1826 13852 # If ld is used when linking, flag to hardcode \$libdir into a binary
adam@1826 13853 # during linking. This must work even if \$libdir does not exist.
adam@1826 13854 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
adam@1826 13855
adamc@1132 13856 # Whether we need a single "-rpath" flag with a separated argument.
adamc@1132 13857 hardcode_libdir_separator=$lt_hardcode_libdir_separator
adamc@1132 13858
adamc@1132 13859 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
adamc@1132 13860 # DIR into the resulting binary.
adamc@1132 13861 hardcode_direct=$hardcode_direct
adamc@1132 13862
adamc@1132 13863 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
adamc@1132 13864 # DIR into the resulting binary and the resulting library dependency is
adamc@1132 13865 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
adamc@1132 13866 # library is relocated.
adamc@1132 13867 hardcode_direct_absolute=$hardcode_direct_absolute
adamc@1132 13868
adamc@1132 13869 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
adamc@1132 13870 # into the resulting binary.
adamc@1132 13871 hardcode_minus_L=$hardcode_minus_L
adamc@1132 13872
adamc@1132 13873 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
adamc@1132 13874 # into the resulting binary.
adamc@1132 13875 hardcode_shlibpath_var=$hardcode_shlibpath_var
adamc@1132 13876
adamc@1132 13877 # Set to "yes" if building a shared library automatically hardcodes DIR
adamc@1132 13878 # into the library and all subsequent libraries and executables linked
adamc@1132 13879 # against it.
adamc@1132 13880 hardcode_automatic=$hardcode_automatic
adamc@1132 13881
adamc@1132 13882 # Set to yes if linker adds runtime paths of dependent libraries
adamc@1132 13883 # to runtime path list.
adamc@1132 13884 inherit_rpath=$inherit_rpath
adamc@1132 13885
adamc@1132 13886 # Whether libtool must link a program against all its dependency libraries.
adamc@1132 13887 link_all_deplibs=$link_all_deplibs
adamc@1132 13888
adam@1826 13889 # Fix the shell variable \$srcfile for the compiler.
adam@1826 13890 fix_srcfile_path=$lt_fix_srcfile_path
adam@1826 13891
adamc@1132 13892 # Set to "yes" if exported symbols are required.
adamc@1132 13893 always_export_symbols=$always_export_symbols
adamc@1132 13894
adamc@1132 13895 # The commands to list exported symbols.
adamc@1132 13896 export_symbols_cmds=$lt_export_symbols_cmds
adamc@1132 13897
adamc@1132 13898 # Symbols that should not be listed in the preloaded symbols.
adamc@1132 13899 exclude_expsyms=$lt_exclude_expsyms
adamc@1132 13900
adamc@1132 13901 # Symbols that must always be exported.
adamc@1132 13902 include_expsyms=$lt_include_expsyms
adamc@1132 13903
adamc@1132 13904 # Commands necessary for linking programs (against libraries) with templates.
adamc@1132 13905 prelink_cmds=$lt_prelink_cmds
adamc@1132 13906
adamc@1132 13907 # Specify filename containing input files.
adamc@1132 13908 file_list_spec=$lt_file_list_spec
adamc@1132 13909
adamc@1132 13910 # How to hardcode a shared library path into an executable.
adamc@1132 13911 hardcode_action=$hardcode_action
adamc@1132 13912
adamc@1132 13913 # ### END LIBTOOL CONFIG
adamc@1132 13914
adamc@1132 13915 _LT_EOF
adamc@1132 13916
adamc@1132 13917 case $host_os in
adamc@1132 13918 aix3*)
adamc@1132 13919 cat <<\_LT_EOF >> "$cfgfile"
adamc@1132 13920 # AIX sometimes has problems with the GCC collect2 program. For some
adamc@1132 13921 # reason, if we set the COLLECT_NAMES environment variable, the problems
adamc@1132 13922 # vanish in a puff of smoke.
adamc@1132 13923 if test "X${COLLECT_NAMES+set}" != Xset; then
adamc@1132 13924 COLLECT_NAMES=
adamc@1132 13925 export COLLECT_NAMES
adamc@1132 13926 fi
adamc@1132 13927 _LT_EOF
adamc@1132 13928 ;;
adamc@1132 13929 esac
adamc@1132 13930
adamc@1132 13931
adamc@1132 13932 ltmain="$ac_aux_dir/ltmain.sh"
adamc@1132 13933
adamc@1132 13934
adamc@1132 13935 # We use sed instead of cat because bash on DJGPP gets confused if
adamc@1132 13936 # if finds mixed CR/LF and LF-only lines. Since sed operates in
adamc@1132 13937 # text mode, it properly converts lines to CR/LF. This bash problem
adamc@1132 13938 # is reportedly fixed, but why not run on old versions too?
adam@1826 13939 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
adam@1826 13940 || (rm -f "$cfgfile"; exit 1)
adam@1826 13941
adam@1826 13942 case $xsi_shell in
adam@1826 13943 yes)
adam@1826 13944 cat << \_LT_EOF >> "$cfgfile"
adam@1826 13945
adam@1826 13946 # func_dirname file append nondir_replacement
adam@1826 13947 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
adam@1826 13948 # otherwise set result to NONDIR_REPLACEMENT.
adam@1826 13949 func_dirname ()
adam@1826 13950 {
adam@1826 13951 case ${1} in
adam@1826 13952 */*) func_dirname_result="${1%/*}${2}" ;;
adam@1826 13953 * ) func_dirname_result="${3}" ;;
adam@1826 13954 esac
adam@1826 13955 }
adam@1826 13956
adam@1826 13957 # func_basename file
adam@1826 13958 func_basename ()
adam@1826 13959 {
adam@1826 13960 func_basename_result="${1##*/}"
adam@1826 13961 }
adam@1826 13962
adam@1826 13963 # func_dirname_and_basename file append nondir_replacement
adam@1826 13964 # perform func_basename and func_dirname in a single function
adam@1826 13965 # call:
adam@1826 13966 # dirname: Compute the dirname of FILE. If nonempty,
adam@1826 13967 # add APPEND to the result, otherwise set result
adam@1826 13968 # to NONDIR_REPLACEMENT.
adam@1826 13969 # value returned in "$func_dirname_result"
adam@1826 13970 # basename: Compute filename of FILE.
adam@1826 13971 # value retuned in "$func_basename_result"
adam@1826 13972 # Implementation must be kept synchronized with func_dirname
adam@1826 13973 # and func_basename. For efficiency, we do not delegate to
adam@1826 13974 # those functions but instead duplicate the functionality here.
adam@1826 13975 func_dirname_and_basename ()
adam@1826 13976 {
adam@1826 13977 case ${1} in
adam@1826 13978 */*) func_dirname_result="${1%/*}${2}" ;;
adam@1826 13979 * ) func_dirname_result="${3}" ;;
adam@1826 13980 esac
adam@1826 13981 func_basename_result="${1##*/}"
adam@1826 13982 }
adam@1826 13983
adam@1826 13984 # func_stripname prefix suffix name
adam@1826 13985 # strip PREFIX and SUFFIX off of NAME.
adam@1826 13986 # PREFIX and SUFFIX must not contain globbing or regex special
adam@1826 13987 # characters, hashes, percent signs, but SUFFIX may contain a leading
adam@1826 13988 # dot (in which case that matches only a dot).
adam@1826 13989 func_stripname ()
adam@1826 13990 {
adam@1826 13991 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
adam@1826 13992 # positional parameters, so assign one to ordinary parameter first.
adam@1826 13993 func_stripname_result=${3}
adam@1826 13994 func_stripname_result=${func_stripname_result#"${1}"}
adam@1826 13995 func_stripname_result=${func_stripname_result%"${2}"}
adam@1826 13996 }
adam@1826 13997
adam@1826 13998 # func_opt_split
adam@1826 13999 func_opt_split ()
adam@1826 14000 {
adam@1826 14001 func_opt_split_opt=${1%%=*}
adam@1826 14002 func_opt_split_arg=${1#*=}
adam@1826 14003 }
adam@1826 14004
adam@1826 14005 # func_lo2o object
adam@1826 14006 func_lo2o ()
adam@1826 14007 {
adam@1826 14008 case ${1} in
adam@1826 14009 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
adam@1826 14010 *) func_lo2o_result=${1} ;;
adam@1826 14011 esac
adam@1826 14012 }
adam@1826 14013
adam@1826 14014 # func_xform libobj-or-source
adam@1826 14015 func_xform ()
adam@1826 14016 {
adam@1826 14017 func_xform_result=${1%.*}.lo
adam@1826 14018 }
adam@1826 14019
adam@1826 14020 # func_arith arithmetic-term...
adam@1826 14021 func_arith ()
adam@1826 14022 {
adam@1826 14023 func_arith_result=$(( $* ))
adam@1826 14024 }
adam@1826 14025
adam@1826 14026 # func_len string
adam@1826 14027 # STRING may not start with a hyphen.
adam@1826 14028 func_len ()
adam@1826 14029 {
adam@1826 14030 func_len_result=${#1}
adam@1826 14031 }
adam@1826 14032
adam@1826 14033 _LT_EOF
adam@1826 14034 ;;
adam@1826 14035 *) # Bourne compatible functions.
adam@1826 14036 cat << \_LT_EOF >> "$cfgfile"
adam@1826 14037
adam@1826 14038 # func_dirname file append nondir_replacement
adam@1826 14039 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
adam@1826 14040 # otherwise set result to NONDIR_REPLACEMENT.
adam@1826 14041 func_dirname ()
adam@1826 14042 {
adam@1826 14043 # Extract subdirectory from the argument.
adam@1826 14044 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
adam@1826 14045 if test "X$func_dirname_result" = "X${1}"; then
adam@1826 14046 func_dirname_result="${3}"
adam@1826 14047 else
adam@1826 14048 func_dirname_result="$func_dirname_result${2}"
adam@1826 14049 fi
adam@1826 14050 }
adam@1826 14051
adam@1826 14052 # func_basename file
adam@1826 14053 func_basename ()
adam@1826 14054 {
adam@1826 14055 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
adam@1826 14056 }
adam@1826 14057
adam@1826 14058
adam@1826 14059 # func_stripname prefix suffix name
adam@1826 14060 # strip PREFIX and SUFFIX off of NAME.
adam@1826 14061 # PREFIX and SUFFIX must not contain globbing or regex special
adam@1826 14062 # characters, hashes, percent signs, but SUFFIX may contain a leading
adam@1826 14063 # dot (in which case that matches only a dot).
adam@1826 14064 # func_strip_suffix prefix name
adam@1826 14065 func_stripname ()
adam@1826 14066 {
adam@1826 14067 case ${2} in
adam@1826 14068 .*) func_stripname_result=`$ECHO "X${3}" \
adam@1826 14069 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
adam@1826 14070 *) func_stripname_result=`$ECHO "X${3}" \
adam@1826 14071 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
adam@1826 14072 esac
adam@1826 14073 }
adam@1826 14074
adam@1826 14075 # sed scripts:
adam@1826 14076 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
adam@1826 14077 my_sed_long_arg='1s/^-[^=]*=//'
adam@1826 14078
adam@1826 14079 # func_opt_split
adam@1826 14080 func_opt_split ()
adam@1826 14081 {
adam@1826 14082 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
adam@1826 14083 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
adam@1826 14084 }
adam@1826 14085
adam@1826 14086 # func_lo2o object
adam@1826 14087 func_lo2o ()
adam@1826 14088 {
adam@1826 14089 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
adam@1826 14090 }
adam@1826 14091
adam@1826 14092 # func_xform libobj-or-source
adam@1826 14093 func_xform ()
adam@1826 14094 {
adam@1826 14095 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
adam@1826 14096 }
adam@1826 14097
adam@1826 14098 # func_arith arithmetic-term...
adam@1826 14099 func_arith ()
adam@1826 14100 {
adam@1826 14101 func_arith_result=`expr "$@"`
adam@1826 14102 }
adam@1826 14103
adam@1826 14104 # func_len string
adam@1826 14105 # STRING may not start with a hyphen.
adam@1826 14106 func_len ()
adam@1826 14107 {
adam@1826 14108 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
adam@1826 14109 }
adam@1826 14110
adam@1826 14111 _LT_EOF
adam@1826 14112 esac
adam@1826 14113
adam@1826 14114 case $lt_shell_append in
adam@1826 14115 yes)
adam@1826 14116 cat << \_LT_EOF >> "$cfgfile"
adam@1826 14117
adam@1826 14118 # func_append var value
adam@1826 14119 # Append VALUE to the end of shell variable VAR.
adam@1826 14120 func_append ()
adam@1826 14121 {
adam@1826 14122 eval "$1+=\$2"
adam@1826 14123 }
adam@1826 14124 _LT_EOF
adam@1826 14125 ;;
adam@1826 14126 *)
adam@1826 14127 cat << \_LT_EOF >> "$cfgfile"
adam@1826 14128
adam@1826 14129 # func_append var value
adam@1826 14130 # Append VALUE to the end of shell variable VAR.
adam@1826 14131 func_append ()
adam@1826 14132 {
adam@1826 14133 eval "$1=\$$1\$2"
adam@1826 14134 }
adam@1826 14135
adam@1826 14136 _LT_EOF
adam@1826 14137 ;;
adam@1826 14138 esac
adam@1826 14139
adam@1826 14140
adam@1826 14141 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
adam@1826 14142 || (rm -f "$cfgfile"; exit 1)
adam@1826 14143
adam@1826 14144 mv -f "$cfgfile" "$ofile" ||
adamc@1132 14145 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
adamc@1132 14146 chmod +x "$ofile"
adamc@1132 14147
adamc@1132 14148 ;;
adamc@378 14149
adamc@378 14150 esac
adamc@378 14151 done # for ac_tag
adamc@378 14152
adamc@378 14153
adamc@1095 14154 as_fn_exit 0
adamc@378 14155 _ACEOF
adamc@378 14156 ac_clean_files=$ac_clean_files_save
adamc@378 14157
adamc@1095 14158 test $ac_write_fail = 0 ||
adam@1315 14159 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
adamc@1095 14160
adamc@378 14161
adamc@378 14162 # configure is writing to config.log, and then calls config.status.
adamc@378 14163 # config.status does its own redirection, appending to config.log.
adamc@378 14164 # Unfortunately, on DOS this fails, as config.log is still kept open
adamc@378 14165 # by configure, so config.status won't be able to write to it; its
adamc@378 14166 # output is simply discarded. So we exec the FD to /dev/null,
adamc@378 14167 # effectively closing config.log, so it can be properly (re)opened and
adamc@378 14168 # appended to by config.status. When coming back to configure, we
adamc@378 14169 # need to make the FD available again.
adamc@378 14170 if test "$no_create" != yes; then
adamc@378 14171 ac_cs_success=:
adamc@378 14172 ac_config_status_args=
adamc@378 14173 test "$silent" = yes &&
adamc@378 14174 ac_config_status_args="$ac_config_status_args --quiet"
adamc@378 14175 exec 5>/dev/null
adamc@378 14176 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
adamc@378 14177 exec 5>>config.log
adamc@378 14178 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
adamc@378 14179 # would make configure fail if this is the last instruction.
adam@1315 14180 $ac_cs_success || as_fn_exit 1
adamc@1095 14181 fi
adamc@1095 14182 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
adamc@1095 14183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
adamc@1095 14184 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
adamc@378 14185 fi
adamc@378 14186
adamc@378 14187
adamc@378 14188 cat <<EOF
adamc@378 14189
adamc@378 14190 Ur/Web configuration:
adam@1317 14191 bin directory: BIN $BIN
adam@1317 14192 lib directory: LIB $LIB
adam@1740 14193 src lib directory: SRCLIB $SRCLIB
adam@1317 14194 include directory: INCLUDE $INCLUDE
adam@1317 14195 site-lisp directory: SITELISP $SITELISP
adam@1474 14196 C compiler: CC $CC
adam@1523 14197 Extra CC args: CCARGS $CCARGS
adam@1838 14198 Extra MLTON args: MLTONARGS $MLTONARGS
adam@1464 14199 Postgres C header: PGHEADER $PGHEADER
adam@1464 14200 MySQL C header: MSHEADER $MSHEADER
adam@1464 14201 SQLite C header: SQHEADER $SQHEADER
adam@1661 14202 OpenSSL: OPENSSL_LIBS $OPENSSL_LIBS
adam@1826 14203 pthreads: PTHREAD_CFLAGS $PTHREAD_CFLAGS
adam@1826 14204 PTHREAD_LIBS $PTHREAD_LIBS
adam@1520 14205
adam@1520 14206 Version: $VERSION
adamc@378 14207 EOF