mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.54. |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4 | # |
| 5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 6 | # Free Software Foundation, Inc. |
| 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
| 9 | ## --------------------- ## |
| 10 | ## M4sh Initialization. ## |
| 11 | ## --------------------- ## |
| 12 | |
| 13 | # Be Bourne compatible |
| 14 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15 | emulate sh |
| 16 | NULLCMD=: |
| 17 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 18 | # is contrary to our usage. Disable this feature. |
| 19 | alias -g '${1+"$@"}'='"$@"' |
| 20 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 21 | set -o posix |
| 22 | fi |
| 23 | |
| 24 | # Support unset when possible. |
| 25 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 26 | as_unset=unset |
| 27 | else |
| 28 | as_unset=false |
| 29 | fi |
| 30 | |
| 31 | |
| 32 | # Work around bugs in pre-3.0 UWIN ksh. |
| 33 | $as_unset ENV MAIL MAILPATH |
| 34 | PS1='$ ' |
| 35 | PS2='> ' |
| 36 | PS4='+ ' |
| 37 | |
| 38 | # NLS nuisances. |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 39 | for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 40 | do |
| 41 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 42 | eval $as_var=C; export $as_var |
| 43 | else |
| 44 | $as_unset $as_var |
| 45 | fi |
| 46 | done |
| 47 | |
| 48 | # Required to use basename. |
| 49 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 50 | as_expr=expr |
| 51 | else |
| 52 | as_expr=false |
| 53 | fi |
| 54 | |
| 55 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 56 | as_basename=basename |
| 57 | else |
| 58 | as_basename=false |
| 59 | fi |
| 60 | |
| 61 | |
| 62 | # Name of the executable. |
| 63 | as_me=`$as_basename "$0" || |
| 64 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 65 | X"$0" : 'X\(//\)$' \| \ |
| 66 | X"$0" : 'X\(/\)$' \| \ |
| 67 | . : '\(.\)' 2>/dev/null || |
| 68 | echo X/"$0" | |
| 69 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 70 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 71 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 72 | s/.*/./; q'` |
| 73 | |
| 74 | |
| 75 | # PATH needs CR, and LINENO needs CR and PATH. |
| 76 | # Avoid depending upon Character Ranges. |
| 77 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 78 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 79 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 80 | as_cr_digits='0123456789' |
| 81 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 82 | |
| 83 | # The user is always right. |
| 84 | if test "${PATH_SEPARATOR+set}" != set; then |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 85 | echo "#! /bin/sh" >conftest.sh |
| 86 | echo "exit 0" >>conftest.sh |
| 87 | chmod +x conftest.sh |
| 88 | if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 89 | PATH_SEPARATOR=';' |
| 90 | else |
| 91 | PATH_SEPARATOR=: |
| 92 | fi |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 93 | rm -f conftest.sh |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 94 | fi |
| 95 | |
| 96 | |
| 97 | as_lineno_1=$LINENO |
| 98 | as_lineno_2=$LINENO |
| 99 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 100 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 101 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 102 | # Find who we are. Look in the path if we contain no path at all |
| 103 | # relative or not. |
| 104 | case $0 in |
| 105 | *[\\/]* ) as_myself=$0 ;; |
| 106 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 107 | for as_dir in $PATH |
| 108 | do |
| 109 | IFS=$as_save_IFS |
| 110 | test -z "$as_dir" && as_dir=. |
| 111 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 112 | done |
| 113 | |
| 114 | ;; |
| 115 | esac |
| 116 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 117 | # in which case we are not to be found in the path. |
| 118 | if test "x$as_myself" = x; then |
| 119 | as_myself=$0 |
| 120 | fi |
| 121 | if test ! -f "$as_myself"; then |
| 122 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 123 | { (exit 1); exit 1; }; } |
| 124 | fi |
| 125 | case $CONFIG_SHELL in |
| 126 | '') |
| 127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 128 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 129 | do |
| 130 | IFS=$as_save_IFS |
| 131 | test -z "$as_dir" && as_dir=. |
| 132 | for as_base in sh bash ksh sh5; do |
| 133 | case $as_dir in |
| 134 | /*) |
| 135 | if ("$as_dir/$as_base" -c ' |
| 136 | as_lineno_1=$LINENO |
| 137 | as_lineno_2=$LINENO |
| 138 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 139 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 140 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 141 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 142 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 143 | CONFIG_SHELL=$as_dir/$as_base |
| 144 | export CONFIG_SHELL |
| 145 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 146 | fi;; |
| 147 | esac |
| 148 | done |
| 149 | done |
| 150 | ;; |
| 151 | esac |
| 152 | |
| 153 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 154 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 155 | # line-number line before each line; the second 'sed' does the real |
| 156 | # work. The second script uses 'N' to pair each line-number line |
| 157 | # with the numbered line, and appends trailing '-' during |
| 158 | # substitution so that $LINENO is not a special case at line end. |
| 159 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 160 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 161 | sed '=' <$as_myself | |
| 162 | sed ' |
| 163 | N |
| 164 | s,$,-, |
| 165 | : loop |
| 166 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 167 | t loop |
| 168 | s,-$,, |
| 169 | s,^['$as_cr_digits']*\n,, |
| 170 | ' >$as_me.lineno && |
| 171 | chmod +x $as_me.lineno || |
| 172 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 173 | { (exit 1); exit 1; }; } |
| 174 | |
| 175 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 176 | # (the dirname of $[0] is not the place where we might find the |
| 177 | # original and so on. Autoconf is especially sensible to this). |
| 178 | . ./$as_me.lineno |
| 179 | # Exit status is that of the last command. |
| 180 | exit |
| 181 | } |
| 182 | |
| 183 | |
| 184 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 185 | *c*,-n*) ECHO_N= ECHO_C=' |
| 186 | ' ECHO_T=' ' ;; |
| 187 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 188 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 189 | esac |
| 190 | |
| 191 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 192 | as_expr=expr |
| 193 | else |
| 194 | as_expr=false |
| 195 | fi |
| 196 | |
| 197 | rm -f conf$$ conf$$.exe conf$$.file |
| 198 | echo >conf$$.file |
| 199 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 200 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 201 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 202 | if test -f conf$$.exe; then |
| 203 | # Don't use ln at all; we don't have any links |
| 204 | as_ln_s='cp -p' |
| 205 | else |
| 206 | as_ln_s='ln -s' |
| 207 | fi |
| 208 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 209 | as_ln_s=ln |
| 210 | else |
| 211 | as_ln_s='cp -p' |
| 212 | fi |
| 213 | rm -f conf$$ conf$$.exe conf$$.file |
| 214 | |
| 215 | if mkdir -p . 2>/dev/null; then |
| 216 | as_mkdir_p=: |
| 217 | else |
| 218 | as_mkdir_p=false |
| 219 | fi |
| 220 | |
| 221 | as_executable_p="test -f" |
| 222 | |
| 223 | # Sed expression to map a string onto a valid CPP name. |
| 224 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 225 | |
| 226 | # Sed expression to map a string onto a valid variable name. |
| 227 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 228 | |
| 229 | |
| 230 | # IFS |
| 231 | # We need space, tab and new line, in precisely that order. |
| 232 | as_nl=' |
| 233 | ' |
| 234 | IFS=" $as_nl" |
| 235 | |
| 236 | # CDPATH. |
| 237 | $as_unset CDPATH |
| 238 | |
| 239 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 240 | # Find the correct PATH separator. Usually this is `:', but |
| 241 | # DJGPP uses `;' like DOS. |
| 242 | if test "X${PATH_SEPARATOR+set}" != Xset; then |
| 243 | UNAME=${UNAME-`uname 2>/dev/null`} |
| 244 | case X$UNAME in |
| 245 | *-DOS) lt_cv_sys_path_separator=';' ;; |
| 246 | *) lt_cv_sys_path_separator=':' ;; |
| 247 | esac |
| 248 | PATH_SEPARATOR=$lt_cv_sys_path_separator |
| 249 | fi |
| 250 | |
| 251 | |
| 252 | # Check that we are running under the correct shell. |
| 253 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 254 | |
| 255 | case X$ECHO in |
| 256 | X*--fallback-echo) |
| 257 | # Remove one level of quotation (which was required for Make). |
| 258 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 259 | ;; |
| 260 | esac |
| 261 | |
| 262 | echo=${ECHO-echo} |
| 263 | if test "X$1" = X--no-reexec; then |
| 264 | # Discard the --no-reexec flag, and continue. |
| 265 | shift |
| 266 | elif test "X$1" = X--fallback-echo; then |
| 267 | # Avoid inline document here, it may be left over |
| 268 | : |
| 269 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then |
| 270 | # Yippee, $echo works! |
| 271 | : |
| 272 | else |
| 273 | # Restart under the correct shell. |
| 274 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 275 | fi |
| 276 | |
| 277 | if test "X$1" = X--fallback-echo; then |
| 278 | # used as fallback echo |
| 279 | shift |
| 280 | cat <<EOF |
| 281 | |
| 282 | EOF |
| 283 | exit 0 |
| 284 | fi |
| 285 | |
| 286 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 287 | # if CDPATH is set. |
| 288 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 289 | |
| 290 | if test -z "$ECHO"; then |
| 291 | if test "X${echo_test_string+set}" != Xset; then |
| 292 | # find a string as large as possible, as long as the shell can cope with it |
| 293 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 294 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 295 | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
| 296 | echo_test_string="`eval $cmd`" && |
| 297 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 298 | then |
| 299 | break |
| 300 | fi |
| 301 | done |
| 302 | fi |
| 303 | |
| 304 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 305 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 306 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 307 | : |
| 308 | else |
| 309 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 310 | # backslashes. This makes it impossible to quote backslashes using |
| 311 | # echo "$something" | sed 's/\\/\\\\/g' |
| 312 | # |
| 313 | # So, first we look for a working echo in the user's PATH. |
| 314 | |
| 315 | IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 316 | for dir in $PATH /usr/ucb; do |
| 317 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 318 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 319 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 320 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 321 | echo="$dir/echo" |
| 322 | break |
| 323 | fi |
| 324 | done |
| 325 | IFS="$save_ifs" |
| 326 | |
| 327 | if test "X$echo" = Xecho; then |
| 328 | # We didn't find a better echo, so look for alternatives. |
| 329 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 330 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 331 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 332 | # This shell has a builtin print -r that does the trick. |
| 333 | echo='print -r' |
| 334 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 335 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 336 | # If we have ksh, try running configure again with it. |
| 337 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 338 | export ORIGINAL_CONFIG_SHELL |
| 339 | CONFIG_SHELL=/bin/ksh |
| 340 | export CONFIG_SHELL |
| 341 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 342 | else |
| 343 | # Try using printf. |
| 344 | echo='printf %s\n' |
| 345 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 346 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 347 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 348 | # Cool, printf works |
| 349 | : |
| 350 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 351 | test "X$echo_testing_string" = 'X\t' && |
| 352 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 353 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 354 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 355 | export CONFIG_SHELL |
| 356 | SHELL="$CONFIG_SHELL" |
| 357 | export SHELL |
| 358 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 359 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 360 | test "X$echo_testing_string" = 'X\t' && |
| 361 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 362 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 363 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 364 | else |
| 365 | # maybe with a smaller string... |
| 366 | prev=: |
| 367 | |
| 368 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 369 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 370 | then |
| 371 | break |
| 372 | fi |
| 373 | prev="$cmd" |
| 374 | done |
| 375 | |
| 376 | if test "$prev" != 'sed 50q "$0"'; then |
| 377 | echo_test_string=`eval $prev` |
| 378 | export echo_test_string |
| 379 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 380 | else |
| 381 | # Oops. We lost completely, so just stick with echo. |
| 382 | echo=echo |
| 383 | fi |
| 384 | fi |
| 385 | fi |
| 386 | fi |
| 387 | fi |
| 388 | fi |
| 389 | |
| 390 | # Copy echo and quote the copy suitably for passing to libtool from |
| 391 | # the Makefile, instead of quoting the original, which is used later. |
| 392 | ECHO=$echo |
| 393 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 394 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 395 | fi |
| 396 | |
| 397 | |
| 398 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 399 | # Name of the host. |
| 400 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 401 | # so uname gets run too. |
| 402 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 403 | |
| 404 | exec 6>&1 |
| 405 | |
| 406 | # |
| 407 | # Initializations. |
| 408 | # |
| 409 | ac_default_prefix=/usr/local |
| 410 | ac_config_libobj_dir=. |
| 411 | cross_compiling=no |
| 412 | subdirs= |
| 413 | MFLAGS= |
| 414 | MAKEFLAGS= |
| 415 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 416 | |
| 417 | # Maximum number of lines to put in a shell here document. |
| 418 | # This variable seems obsolete. It should probably be removed, and |
| 419 | # only ac_max_sed_lines should be used. |
| 420 | : ${ac_max_here_lines=38} |
| 421 | |
| 422 | # Identity of this package. |
| 423 | PACKAGE_NAME= |
| 424 | PACKAGE_TARNAME= |
| 425 | PACKAGE_VERSION= |
| 426 | PACKAGE_STRING= |
| 427 | PACKAGE_BUGREPORT= |
| 428 | |
| 429 | ac_unique_file="src/backtrace.c" |
| 430 | # Factoring default headers for most tests. |
| 431 | ac_includes_default="\ |
| 432 | #include <stdio.h> |
| 433 | #if HAVE_SYS_TYPES_H |
| 434 | # include <sys/types.h> |
| 435 | #endif |
| 436 | #if HAVE_SYS_STAT_H |
| 437 | # include <sys/stat.h> |
| 438 | #endif |
| 439 | #if STDC_HEADERS |
| 440 | # include <stdlib.h> |
| 441 | # include <stddef.h> |
| 442 | #else |
| 443 | # if HAVE_STDLIB_H |
| 444 | # include <stdlib.h> |
| 445 | # endif |
| 446 | #endif |
| 447 | #if HAVE_STRING_H |
| 448 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 449 | # include <memory.h> |
| 450 | # endif |
| 451 | # include <string.h> |
| 452 | #endif |
| 453 | #if HAVE_STRINGS_H |
| 454 | # include <strings.h> |
| 455 | #endif |
| 456 | #if HAVE_INTTYPES_H |
| 457 | # include <inttypes.h> |
| 458 | #else |
| 459 | # if HAVE_STDINT_H |
| 460 | # include <stdint.h> |
| 461 | # endif |
| 462 | #endif |
| 463 | #if HAVE_UNISTD_H |
| 464 | # include <unistd.h> |
| 465 | #endif" |
| 466 | |
mostang.com!davidm | 6af90d0 | 2003-02-15 08:53:55 +0000 | [diff] [blame] | 467 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL CCAS CCASFLAGS LIBOBJS REMOTE_ONLY_TRUE REMOTE_ONLY_FALSE ARCH_IA64_TRUE ARCH_IA64_FALSE ARCH_HPPA_TRUE ARCH_HPPA_FALSE ARCH_X86_TRUE ARCH_X86_FALSE OS_LINUX_TRUE OS_LINUX_FALSE arch ARCH LTLIBOBJS' |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 468 | ac_subst_files='' |
| 469 | |
| 470 | # Initialize some variables set by options. |
| 471 | ac_init_help= |
| 472 | ac_init_version=false |
| 473 | # The variables have the same names as the options, with |
| 474 | # dashes changed to underlines. |
| 475 | cache_file=/dev/null |
| 476 | exec_prefix=NONE |
| 477 | no_create= |
| 478 | no_recursion= |
| 479 | prefix=NONE |
| 480 | program_prefix=NONE |
| 481 | program_suffix=NONE |
| 482 | program_transform_name=s,x,x, |
| 483 | silent= |
| 484 | site= |
| 485 | srcdir= |
| 486 | verbose= |
| 487 | x_includes=NONE |
| 488 | x_libraries=NONE |
| 489 | |
| 490 | # Installation directory options. |
| 491 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 492 | # and all the variables that are supposed to be based on exec_prefix |
| 493 | # by default will actually change. |
| 494 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 495 | bindir='${exec_prefix}/bin' |
| 496 | sbindir='${exec_prefix}/sbin' |
| 497 | libexecdir='${exec_prefix}/libexec' |
| 498 | datadir='${prefix}/share' |
| 499 | sysconfdir='${prefix}/etc' |
| 500 | sharedstatedir='${prefix}/com' |
| 501 | localstatedir='${prefix}/var' |
| 502 | libdir='${exec_prefix}/lib' |
| 503 | includedir='${prefix}/include' |
| 504 | oldincludedir='/usr/include' |
| 505 | infodir='${prefix}/info' |
| 506 | mandir='${prefix}/man' |
| 507 | |
| 508 | ac_prev= |
| 509 | for ac_option |
| 510 | do |
| 511 | # If the previous option needs an argument, assign it. |
| 512 | if test -n "$ac_prev"; then |
| 513 | eval "$ac_prev=\$ac_option" |
| 514 | ac_prev= |
| 515 | continue |
| 516 | fi |
| 517 | |
| 518 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 519 | |
| 520 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 521 | |
| 522 | case $ac_option in |
| 523 | |
| 524 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 525 | ac_prev=bindir ;; |
| 526 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 527 | bindir=$ac_optarg ;; |
| 528 | |
| 529 | -build | --build | --buil | --bui | --bu) |
| 530 | ac_prev=build_alias ;; |
| 531 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 532 | build_alias=$ac_optarg ;; |
| 533 | |
| 534 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 535 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 536 | ac_prev=cache_file ;; |
| 537 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 538 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 539 | cache_file=$ac_optarg ;; |
| 540 | |
| 541 | --config-cache | -C) |
| 542 | cache_file=config.cache ;; |
| 543 | |
| 544 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 545 | ac_prev=datadir ;; |
| 546 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 547 | | --da=*) |
| 548 | datadir=$ac_optarg ;; |
| 549 | |
| 550 | -disable-* | --disable-*) |
| 551 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 552 | # Reject names that are not valid shell variable names. |
| 553 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 554 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 555 | { (exit 1); exit 1; }; } |
| 556 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 557 | eval "enable_$ac_feature=no" ;; |
| 558 | |
| 559 | -enable-* | --enable-*) |
| 560 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 561 | # Reject names that are not valid shell variable names. |
| 562 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 563 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 564 | { (exit 1); exit 1; }; } |
| 565 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 566 | case $ac_option in |
| 567 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 568 | *) ac_optarg=yes ;; |
| 569 | esac |
| 570 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 571 | |
| 572 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 573 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 574 | | --exec | --exe | --ex) |
| 575 | ac_prev=exec_prefix ;; |
| 576 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 577 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 578 | | --exec=* | --exe=* | --ex=*) |
| 579 | exec_prefix=$ac_optarg ;; |
| 580 | |
| 581 | -gas | --gas | --ga | --g) |
| 582 | # Obsolete; use --with-gas. |
| 583 | with_gas=yes ;; |
| 584 | |
| 585 | -help | --help | --hel | --he | -h) |
| 586 | ac_init_help=long ;; |
| 587 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 588 | ac_init_help=recursive ;; |
| 589 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 590 | ac_init_help=short ;; |
| 591 | |
| 592 | -host | --host | --hos | --ho) |
| 593 | ac_prev=host_alias ;; |
| 594 | -host=* | --host=* | --hos=* | --ho=*) |
| 595 | host_alias=$ac_optarg ;; |
| 596 | |
| 597 | -includedir | --includedir | --includedi | --included | --include \ |
| 598 | | --includ | --inclu | --incl | --inc) |
| 599 | ac_prev=includedir ;; |
| 600 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 601 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 602 | includedir=$ac_optarg ;; |
| 603 | |
| 604 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 605 | ac_prev=infodir ;; |
| 606 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 607 | infodir=$ac_optarg ;; |
| 608 | |
| 609 | -libdir | --libdir | --libdi | --libd) |
| 610 | ac_prev=libdir ;; |
| 611 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 612 | libdir=$ac_optarg ;; |
| 613 | |
| 614 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 615 | | --libexe | --libex | --libe) |
| 616 | ac_prev=libexecdir ;; |
| 617 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 618 | | --libexe=* | --libex=* | --libe=*) |
| 619 | libexecdir=$ac_optarg ;; |
| 620 | |
| 621 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 622 | | --localstate | --localstat | --localsta | --localst \ |
| 623 | | --locals | --local | --loca | --loc | --lo) |
| 624 | ac_prev=localstatedir ;; |
| 625 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 626 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 627 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 628 | localstatedir=$ac_optarg ;; |
| 629 | |
| 630 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 631 | ac_prev=mandir ;; |
| 632 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 633 | mandir=$ac_optarg ;; |
| 634 | |
| 635 | -nfp | --nfp | --nf) |
| 636 | # Obsolete; use --without-fp. |
| 637 | with_fp=no ;; |
| 638 | |
| 639 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 640 | | --no-cr | --no-c | -n) |
| 641 | no_create=yes ;; |
| 642 | |
| 643 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 644 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 645 | no_recursion=yes ;; |
| 646 | |
| 647 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 648 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 649 | | --oldin | --oldi | --old | --ol | --o) |
| 650 | ac_prev=oldincludedir ;; |
| 651 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 652 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 653 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 654 | oldincludedir=$ac_optarg ;; |
| 655 | |
| 656 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 657 | ac_prev=prefix ;; |
| 658 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 659 | prefix=$ac_optarg ;; |
| 660 | |
| 661 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 662 | | --program-pre | --program-pr | --program-p) |
| 663 | ac_prev=program_prefix ;; |
| 664 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 665 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 666 | program_prefix=$ac_optarg ;; |
| 667 | |
| 668 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 669 | | --program-suf | --program-su | --program-s) |
| 670 | ac_prev=program_suffix ;; |
| 671 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 672 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 673 | program_suffix=$ac_optarg ;; |
| 674 | |
| 675 | -program-transform-name | --program-transform-name \ |
| 676 | | --program-transform-nam | --program-transform-na \ |
| 677 | | --program-transform-n | --program-transform- \ |
| 678 | | --program-transform | --program-transfor \ |
| 679 | | --program-transfo | --program-transf \ |
| 680 | | --program-trans | --program-tran \ |
| 681 | | --progr-tra | --program-tr | --program-t) |
| 682 | ac_prev=program_transform_name ;; |
| 683 | -program-transform-name=* | --program-transform-name=* \ |
| 684 | | --program-transform-nam=* | --program-transform-na=* \ |
| 685 | | --program-transform-n=* | --program-transform-=* \ |
| 686 | | --program-transform=* | --program-transfor=* \ |
| 687 | | --program-transfo=* | --program-transf=* \ |
| 688 | | --program-trans=* | --program-tran=* \ |
| 689 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 690 | program_transform_name=$ac_optarg ;; |
| 691 | |
| 692 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 693 | | -silent | --silent | --silen | --sile | --sil) |
| 694 | silent=yes ;; |
| 695 | |
| 696 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 697 | ac_prev=sbindir ;; |
| 698 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 699 | | --sbi=* | --sb=*) |
| 700 | sbindir=$ac_optarg ;; |
| 701 | |
| 702 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 703 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 704 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 705 | | --sha | --sh) |
| 706 | ac_prev=sharedstatedir ;; |
| 707 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 708 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 709 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 710 | | --sha=* | --sh=*) |
| 711 | sharedstatedir=$ac_optarg ;; |
| 712 | |
| 713 | -site | --site | --sit) |
| 714 | ac_prev=site ;; |
| 715 | -site=* | --site=* | --sit=*) |
| 716 | site=$ac_optarg ;; |
| 717 | |
| 718 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 719 | ac_prev=srcdir ;; |
| 720 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 721 | srcdir=$ac_optarg ;; |
| 722 | |
| 723 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 724 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 725 | ac_prev=sysconfdir ;; |
| 726 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 727 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 728 | sysconfdir=$ac_optarg ;; |
| 729 | |
| 730 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 731 | ac_prev=target_alias ;; |
| 732 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 733 | target_alias=$ac_optarg ;; |
| 734 | |
| 735 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 736 | verbose=yes ;; |
| 737 | |
| 738 | -version | --version | --versio | --versi | --vers | -V) |
| 739 | ac_init_version=: ;; |
| 740 | |
| 741 | -with-* | --with-*) |
| 742 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 743 | # Reject names that are not valid shell variable names. |
| 744 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 745 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 746 | { (exit 1); exit 1; }; } |
| 747 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 748 | case $ac_option in |
| 749 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 750 | *) ac_optarg=yes ;; |
| 751 | esac |
| 752 | eval "with_$ac_package='$ac_optarg'" ;; |
| 753 | |
| 754 | -without-* | --without-*) |
| 755 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 756 | # Reject names that are not valid shell variable names. |
| 757 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 758 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 759 | { (exit 1); exit 1; }; } |
| 760 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 761 | eval "with_$ac_package=no" ;; |
| 762 | |
| 763 | --x) |
| 764 | # Obsolete; use --with-x. |
| 765 | with_x=yes ;; |
| 766 | |
| 767 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 768 | | --x-incl | --x-inc | --x-in | --x-i) |
| 769 | ac_prev=x_includes ;; |
| 770 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 771 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 772 | x_includes=$ac_optarg ;; |
| 773 | |
| 774 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 775 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 776 | ac_prev=x_libraries ;; |
| 777 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 778 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 779 | x_libraries=$ac_optarg ;; |
| 780 | |
| 781 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 782 | Try \`$0 --help' for more information." >&2 |
| 783 | { (exit 1); exit 1; }; } |
| 784 | ;; |
| 785 | |
| 786 | *=*) |
| 787 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 788 | # Reject names that are not valid shell variable names. |
| 789 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 790 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 791 | { (exit 1); exit 1; }; } |
| 792 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 793 | eval "$ac_envvar='$ac_optarg'" |
| 794 | export $ac_envvar ;; |
| 795 | |
| 796 | *) |
| 797 | # FIXME: should be removed in autoconf 3.0. |
| 798 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 799 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 800 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 801 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 802 | ;; |
| 803 | |
| 804 | esac |
| 805 | done |
| 806 | |
| 807 | if test -n "$ac_prev"; then |
| 808 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 809 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 810 | { (exit 1); exit 1; }; } |
| 811 | fi |
| 812 | |
| 813 | # Be sure to have absolute paths. |
| 814 | for ac_var in exec_prefix prefix |
| 815 | do |
| 816 | eval ac_val=$`echo $ac_var` |
| 817 | case $ac_val in |
| 818 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 819 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 820 | { (exit 1); exit 1; }; };; |
| 821 | esac |
| 822 | done |
| 823 | |
| 824 | # Be sure to have absolute paths. |
| 825 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 826 | localstatedir libdir includedir oldincludedir infodir mandir |
| 827 | do |
| 828 | eval ac_val=$`echo $ac_var` |
| 829 | case $ac_val in |
| 830 | [\\/$]* | ?:[\\/]* ) ;; |
| 831 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 832 | { (exit 1); exit 1; }; };; |
| 833 | esac |
| 834 | done |
| 835 | |
| 836 | # There might be people who depend on the old broken behavior: `$host' |
| 837 | # used to hold the argument of --host etc. |
| 838 | # FIXME: To remove some day. |
| 839 | build=$build_alias |
| 840 | host=$host_alias |
| 841 | target=$target_alias |
| 842 | |
| 843 | # FIXME: To remove some day. |
| 844 | if test "x$host_alias" != x; then |
| 845 | if test "x$build_alias" = x; then |
| 846 | cross_compiling=maybe |
| 847 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 848 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 849 | elif test "x$build_alias" != "x$host_alias"; then |
| 850 | cross_compiling=yes |
| 851 | fi |
| 852 | fi |
| 853 | |
| 854 | ac_tool_prefix= |
| 855 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 856 | |
| 857 | test "$silent" = yes && exec 6>/dev/null |
| 858 | |
| 859 | |
| 860 | # Find the source files, if location was not specified. |
| 861 | if test -z "$srcdir"; then |
| 862 | ac_srcdir_defaulted=yes |
| 863 | # Try the directory containing this script, then its parent. |
| 864 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 865 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 866 | X"$0" : 'X\(//\)[^/]' \| \ |
| 867 | X"$0" : 'X\(//\)$' \| \ |
| 868 | X"$0" : 'X\(/\)' \| \ |
| 869 | . : '\(.\)' 2>/dev/null || |
| 870 | echo X"$0" | |
| 871 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 872 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 873 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 874 | /^X\(\/\).*/{ s//\1/; q; } |
| 875 | s/.*/./; q'` |
| 876 | srcdir=$ac_confdir |
| 877 | if test ! -r $srcdir/$ac_unique_file; then |
| 878 | srcdir=.. |
| 879 | fi |
| 880 | else |
| 881 | ac_srcdir_defaulted=no |
| 882 | fi |
| 883 | if test ! -r $srcdir/$ac_unique_file; then |
| 884 | if test "$ac_srcdir_defaulted" = yes; then |
| 885 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 886 | { (exit 1); exit 1; }; } |
| 887 | else |
| 888 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 889 | { (exit 1); exit 1; }; } |
| 890 | fi |
| 891 | fi |
| 892 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 893 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 894 | { (exit 1); exit 1; }; } |
| 895 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 896 | ac_env_build_alias_set=${build_alias+set} |
| 897 | ac_env_build_alias_value=$build_alias |
| 898 | ac_cv_env_build_alias_set=${build_alias+set} |
| 899 | ac_cv_env_build_alias_value=$build_alias |
| 900 | ac_env_host_alias_set=${host_alias+set} |
| 901 | ac_env_host_alias_value=$host_alias |
| 902 | ac_cv_env_host_alias_set=${host_alias+set} |
| 903 | ac_cv_env_host_alias_value=$host_alias |
| 904 | ac_env_target_alias_set=${target_alias+set} |
| 905 | ac_env_target_alias_value=$target_alias |
| 906 | ac_cv_env_target_alias_set=${target_alias+set} |
| 907 | ac_cv_env_target_alias_value=$target_alias |
| 908 | ac_env_CC_set=${CC+set} |
| 909 | ac_env_CC_value=$CC |
| 910 | ac_cv_env_CC_set=${CC+set} |
| 911 | ac_cv_env_CC_value=$CC |
| 912 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 913 | ac_env_CFLAGS_value=$CFLAGS |
| 914 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 915 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 916 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 917 | ac_env_LDFLAGS_value=$LDFLAGS |
| 918 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 919 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 920 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 921 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 922 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 923 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 924 | ac_env_CPP_set=${CPP+set} |
| 925 | ac_env_CPP_value=$CPP |
| 926 | ac_cv_env_CPP_set=${CPP+set} |
| 927 | ac_cv_env_CPP_value=$CPP |
| 928 | |
| 929 | # |
| 930 | # Report the --help message. |
| 931 | # |
| 932 | if test "$ac_init_help" = "long"; then |
| 933 | # Omit some internal or obsolete options to make the list less imposing. |
| 934 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 935 | cat <<_ACEOF |
| 936 | \`configure' configures this package to adapt to many kinds of systems. |
| 937 | |
| 938 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 939 | |
| 940 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 941 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 942 | |
| 943 | Defaults for the options are specified in brackets. |
| 944 | |
| 945 | Configuration: |
| 946 | -h, --help display this help and exit |
| 947 | --help=short display options specific to this package |
| 948 | --help=recursive display the short help of all the included packages |
| 949 | -V, --version display version information and exit |
| 950 | -q, --quiet, --silent do not print \`checking...' messages |
| 951 | --cache-file=FILE cache test results in FILE [disabled] |
| 952 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 953 | -n, --no-create do not create output files |
| 954 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 955 | |
| 956 | _ACEOF |
| 957 | |
| 958 | cat <<_ACEOF |
| 959 | Installation directories: |
| 960 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 961 | [$ac_default_prefix] |
| 962 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 963 | [PREFIX] |
| 964 | |
| 965 | By default, \`make install' will install all the files in |
| 966 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 967 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 968 | for instance \`--prefix=\$HOME'. |
| 969 | |
| 970 | For better control, use the options below. |
| 971 | |
| 972 | Fine tuning of the installation directories: |
| 973 | --bindir=DIR user executables [EPREFIX/bin] |
| 974 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 975 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 976 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 977 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 978 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 979 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 980 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 981 | --includedir=DIR C header files [PREFIX/include] |
| 982 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 983 | --infodir=DIR info documentation [PREFIX/info] |
| 984 | --mandir=DIR man documentation [PREFIX/man] |
| 985 | _ACEOF |
| 986 | |
| 987 | cat <<\_ACEOF |
| 988 | |
| 989 | Program names: |
| 990 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 991 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 992 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 993 | |
| 994 | System types: |
| 995 | --build=BUILD configure for building on BUILD [guessed] |
| 996 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 997 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 998 | _ACEOF |
| 999 | fi |
| 1000 | |
| 1001 | if test -n "$ac_init_help"; then |
| 1002 | |
| 1003 | cat <<\_ACEOF |
| 1004 | |
| 1005 | Optional Features: |
| 1006 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1007 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1008 | --enable-maintainer-mode enable make rules and dependencies not useful |
| 1009 | (and sometimes confusing) to the casual installer |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1010 | --disable-dependency-tracking Speeds up one-time builds |
| 1011 | --enable-dependency-tracking Do not reject slow dependency extractors |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1012 | --enable-shared=PKGS build shared libraries default=yes |
| 1013 | --enable-static=PKGS build static libraries default=yes |
| 1014 | --enable-fast-install=PKGS optimize for fast installation default=yes |
| 1015 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1016 | --enable-debug turn on debug support (slows down execution) |
| 1017 | |
| 1018 | Optional Packages: |
| 1019 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1020 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1021 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 1022 | --with-pic try to use only PIC/non-PIC objects default=use both |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1023 | |
| 1024 | Some influential environment variables: |
| 1025 | CC C compiler command |
| 1026 | CFLAGS C compiler flags |
| 1027 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1028 | nonstandard directory <lib dir> |
| 1029 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 1030 | headers in a nonstandard directory <include dir> |
| 1031 | CPP C preprocessor |
| 1032 | |
| 1033 | Use these variables to override the choices made by `configure' or to help |
| 1034 | it to find libraries and programs with nonstandard names/locations. |
| 1035 | |
| 1036 | _ACEOF |
| 1037 | fi |
| 1038 | |
| 1039 | if test "$ac_init_help" = "recursive"; then |
| 1040 | # If there are subdirs, report their specific --help. |
| 1041 | ac_popdir=`pwd` |
| 1042 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1043 | test -d $ac_dir || continue |
| 1044 | ac_builddir=. |
| 1045 | |
| 1046 | if test "$ac_dir" != .; then |
| 1047 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 1048 | # A "../" for each directory in $ac_dir_suffix. |
| 1049 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 1050 | else |
| 1051 | ac_dir_suffix= ac_top_builddir= |
| 1052 | fi |
| 1053 | |
| 1054 | case $srcdir in |
| 1055 | .) # No --srcdir option. We are building in place. |
| 1056 | ac_srcdir=. |
| 1057 | if test -z "$ac_top_builddir"; then |
| 1058 | ac_top_srcdir=. |
| 1059 | else |
| 1060 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 1061 | fi ;; |
| 1062 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 1063 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1064 | ac_top_srcdir=$srcdir ;; |
| 1065 | *) # Relative path. |
| 1066 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 1067 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 1068 | esac |
| 1069 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 1070 | # absolute. |
| 1071 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 1072 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
| 1073 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 1074 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 1075 | |
| 1076 | cd $ac_dir |
| 1077 | # Check for guested configure; otherwise get Cygnus style configure. |
| 1078 | if test -f $ac_srcdir/configure.gnu; then |
| 1079 | echo |
| 1080 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 1081 | elif test -f $ac_srcdir/configure; then |
| 1082 | echo |
| 1083 | $SHELL $ac_srcdir/configure --help=recursive |
| 1084 | elif test -f $ac_srcdir/configure.ac || |
| 1085 | test -f $ac_srcdir/configure.in; then |
| 1086 | echo |
| 1087 | $ac_configure --help |
| 1088 | else |
| 1089 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1090 | fi |
| 1091 | cd $ac_popdir |
| 1092 | done |
| 1093 | fi |
| 1094 | |
| 1095 | test -n "$ac_init_help" && exit 0 |
| 1096 | if $ac_init_version; then |
| 1097 | cat <<\_ACEOF |
| 1098 | |
| 1099 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 1100 | Free Software Foundation, Inc. |
| 1101 | This configure script is free software; the Free Software Foundation |
| 1102 | gives unlimited permission to copy, distribute and modify it. |
| 1103 | _ACEOF |
| 1104 | exit 0 |
| 1105 | fi |
| 1106 | exec 5>config.log |
| 1107 | cat >&5 <<_ACEOF |
| 1108 | This file contains any messages produced by compilers while |
| 1109 | running configure, to aid debugging if configure makes a mistake. |
| 1110 | |
| 1111 | It was created by $as_me, which was |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 1112 | generated by GNU Autoconf 2.54. Invocation command line was |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1113 | |
| 1114 | $ $0 $@ |
| 1115 | |
| 1116 | _ACEOF |
| 1117 | { |
| 1118 | cat <<_ASUNAME |
| 1119 | ## --------- ## |
| 1120 | ## Platform. ## |
| 1121 | ## --------- ## |
| 1122 | |
| 1123 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1124 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1125 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1126 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1127 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1128 | |
| 1129 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1130 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1131 | |
| 1132 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1133 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1134 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1135 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1136 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1137 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1138 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1139 | |
| 1140 | _ASUNAME |
| 1141 | |
| 1142 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1143 | for as_dir in $PATH |
| 1144 | do |
| 1145 | IFS=$as_save_IFS |
| 1146 | test -z "$as_dir" && as_dir=. |
| 1147 | echo "PATH: $as_dir" |
| 1148 | done |
| 1149 | |
| 1150 | } >&5 |
| 1151 | |
| 1152 | cat >&5 <<_ACEOF |
| 1153 | |
| 1154 | |
| 1155 | ## ----------- ## |
| 1156 | ## Core tests. ## |
| 1157 | ## ----------- ## |
| 1158 | |
| 1159 | _ACEOF |
| 1160 | |
| 1161 | |
| 1162 | # Keep a trace of the command line. |
| 1163 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1164 | # Also quote any args containing shell meta-characters. |
| 1165 | ac_configure_args= |
| 1166 | ac_sep= |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 1167 | for ac_arg |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1168 | do |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 1169 | case $ac_arg in |
| 1170 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1171 | | --no-cr | --no-c | -n ) continue ;; |
| 1172 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1173 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1174 | continue ;; |
| 1175 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1176 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1177 | esac |
| 1178 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1179 | # Get rid of the leading space. |
| 1180 | ac_sep=" " |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1181 | done |
| 1182 | |
| 1183 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1184 | # config.log. We remove comments because anyway the quotes in there |
| 1185 | # would cause problems or look ugly. |
| 1186 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1187 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1188 | trap 'exit_status=$? |
| 1189 | # Save into config.log some information that might help in debugging. |
| 1190 | { |
| 1191 | echo |
| 1192 | |
| 1193 | cat <<\_ASBOX |
| 1194 | ## ---------------- ## |
| 1195 | ## Cache variables. ## |
| 1196 | ## ---------------- ## |
| 1197 | _ASBOX |
| 1198 | echo |
| 1199 | # The following way of writing the cache mishandles newlines in values, |
| 1200 | { |
| 1201 | (set) 2>&1 | |
| 1202 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1203 | *ac_space=\ *) |
| 1204 | sed -n \ |
| 1205 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1206 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1207 | ;; |
| 1208 | *) |
| 1209 | sed -n \ |
| 1210 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1211 | ;; |
| 1212 | esac; |
| 1213 | } |
| 1214 | echo |
| 1215 | |
| 1216 | cat <<\_ASBOX |
| 1217 | ## ----------------- ## |
| 1218 | ## Output variables. ## |
| 1219 | ## ----------------- ## |
| 1220 | _ASBOX |
| 1221 | echo |
| 1222 | for ac_var in $ac_subst_vars |
| 1223 | do |
| 1224 | eval ac_val=$`echo $ac_var` |
| 1225 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1226 | done | sort |
| 1227 | echo |
| 1228 | |
| 1229 | if test -n "$ac_subst_files"; then |
| 1230 | cat <<\_ASBOX |
| 1231 | ## ------------- ## |
| 1232 | ## Output files. ## |
| 1233 | ## ------------- ## |
| 1234 | _ASBOX |
| 1235 | echo |
| 1236 | for ac_var in $ac_subst_files |
| 1237 | do |
| 1238 | eval ac_val=$`echo $ac_var` |
| 1239 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1240 | done | sort |
| 1241 | echo |
| 1242 | fi |
| 1243 | |
| 1244 | if test -s confdefs.h; then |
| 1245 | cat <<\_ASBOX |
| 1246 | ## ----------- ## |
| 1247 | ## confdefs.h. ## |
| 1248 | ## ----------- ## |
| 1249 | _ASBOX |
| 1250 | echo |
| 1251 | sed "/^$/d" confdefs.h | sort |
| 1252 | echo |
| 1253 | fi |
| 1254 | test "$ac_signal" != 0 && |
| 1255 | echo "$as_me: caught signal $ac_signal" |
| 1256 | echo "$as_me: exit $exit_status" |
| 1257 | } >&5 |
| 1258 | rm -f core core.* *.core && |
| 1259 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1260 | exit $exit_status |
| 1261 | ' 0 |
| 1262 | for ac_signal in 1 2 13 15; do |
| 1263 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1264 | done |
| 1265 | ac_signal=0 |
| 1266 | |
| 1267 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1268 | rm -rf conftest* confdefs.h |
| 1269 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1270 | echo >confdefs.h |
| 1271 | |
| 1272 | # Predefined preprocessor variables. |
| 1273 | |
| 1274 | cat >>confdefs.h <<_ACEOF |
| 1275 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1276 | _ACEOF |
| 1277 | |
| 1278 | |
| 1279 | cat >>confdefs.h <<_ACEOF |
| 1280 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1281 | _ACEOF |
| 1282 | |
| 1283 | |
| 1284 | cat >>confdefs.h <<_ACEOF |
| 1285 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1286 | _ACEOF |
| 1287 | |
| 1288 | |
| 1289 | cat >>confdefs.h <<_ACEOF |
| 1290 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1291 | _ACEOF |
| 1292 | |
| 1293 | |
| 1294 | cat >>confdefs.h <<_ACEOF |
| 1295 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1296 | _ACEOF |
| 1297 | |
| 1298 | |
| 1299 | # Let the site file select an alternate cache file if it wants to. |
| 1300 | # Prefer explicitly selected file to automatically selected ones. |
| 1301 | if test -z "$CONFIG_SITE"; then |
| 1302 | if test "x$prefix" != xNONE; then |
| 1303 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1304 | else |
| 1305 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1306 | fi |
| 1307 | fi |
| 1308 | for ac_site_file in $CONFIG_SITE; do |
| 1309 | if test -r "$ac_site_file"; then |
| 1310 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1311 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1312 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1313 | . "$ac_site_file" |
| 1314 | fi |
| 1315 | done |
| 1316 | |
| 1317 | if test -r "$cache_file"; then |
| 1318 | # Some versions of bash will fail to source /dev/null (special |
| 1319 | # files actually), so we avoid doing that. |
| 1320 | if test -f "$cache_file"; then |
| 1321 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1322 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1323 | case $cache_file in |
| 1324 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1325 | *) . ./$cache_file;; |
| 1326 | esac |
| 1327 | fi |
| 1328 | else |
| 1329 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1330 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1331 | >$cache_file |
| 1332 | fi |
| 1333 | |
| 1334 | # Check that the precious variables saved in the cache have kept the same |
| 1335 | # value. |
| 1336 | ac_cache_corrupted=false |
| 1337 | for ac_var in `(set) 2>&1 | |
| 1338 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1339 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1340 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1341 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1342 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1343 | case $ac_old_set,$ac_new_set in |
| 1344 | set,) |
| 1345 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1346 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1347 | ac_cache_corrupted=: ;; |
| 1348 | ,set) |
| 1349 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1350 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1351 | ac_cache_corrupted=: ;; |
| 1352 | ,);; |
| 1353 | *) |
| 1354 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1355 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1356 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1357 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1358 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1359 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1360 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1361 | ac_cache_corrupted=: |
| 1362 | fi;; |
| 1363 | esac |
| 1364 | # Pass precious variables to config.status. |
| 1365 | if test "$ac_new_set" = set; then |
| 1366 | case $ac_new_val in |
| 1367 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1368 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1369 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1370 | esac |
| 1371 | case " $ac_configure_args " in |
| 1372 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1373 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1374 | esac |
| 1375 | fi |
| 1376 | done |
| 1377 | if $ac_cache_corrupted; then |
| 1378 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1379 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1380 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1381 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1382 | { (exit 1); exit 1; }; } |
| 1383 | fi |
| 1384 | |
| 1385 | ac_ext=c |
| 1386 | ac_cpp='$CPP $CPPFLAGS' |
| 1387 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1388 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1389 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1390 | |
| 1391 | |
| 1392 | |
| 1393 | |
| 1394 | |
| 1395 | |
| 1396 | |
| 1397 | |
| 1398 | |
| 1399 | |
| 1400 | |
| 1401 | |
| 1402 | |
| 1403 | |
| 1404 | |
| 1405 | |
| 1406 | |
| 1407 | |
| 1408 | |
| 1409 | ac_aux_dir= |
| 1410 | for ac_dir in aux $srcdir/aux; do |
| 1411 | if test -f $ac_dir/install-sh; then |
| 1412 | ac_aux_dir=$ac_dir |
| 1413 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1414 | break |
| 1415 | elif test -f $ac_dir/install.sh; then |
| 1416 | ac_aux_dir=$ac_dir |
| 1417 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1418 | break |
| 1419 | elif test -f $ac_dir/shtool; then |
| 1420 | ac_aux_dir=$ac_dir |
| 1421 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1422 | break |
| 1423 | fi |
| 1424 | done |
| 1425 | if test -z "$ac_aux_dir"; then |
| 1426 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&5 |
| 1427 | echo "$as_me: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&2;} |
| 1428 | { (exit 1); exit 1; }; } |
| 1429 | fi |
| 1430 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1431 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1432 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1433 | |
| 1434 | # Make sure we can run config.sub. |
| 1435 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 1436 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 1437 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1438 | { (exit 1); exit 1; }; } |
| 1439 | |
| 1440 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 1441 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1442 | if test "${ac_cv_build+set}" = set; then |
| 1443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1444 | else |
| 1445 | ac_cv_build_alias=$build_alias |
| 1446 | test -z "$ac_cv_build_alias" && |
| 1447 | ac_cv_build_alias=`$ac_config_guess` |
| 1448 | test -z "$ac_cv_build_alias" && |
| 1449 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1450 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1451 | { (exit 1); exit 1; }; } |
| 1452 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1453 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1454 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 1455 | { (exit 1); exit 1; }; } |
| 1456 | |
| 1457 | fi |
| 1458 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1459 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1460 | build=$ac_cv_build |
| 1461 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1462 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1463 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1464 | |
| 1465 | |
| 1466 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 1467 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1468 | if test "${ac_cv_host+set}" = set; then |
| 1469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1470 | else |
| 1471 | ac_cv_host_alias=$host_alias |
| 1472 | test -z "$ac_cv_host_alias" && |
| 1473 | ac_cv_host_alias=$ac_cv_build_alias |
| 1474 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 1475 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 1476 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1477 | { (exit 1); exit 1; }; } |
| 1478 | |
| 1479 | fi |
| 1480 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1481 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1482 | host=$ac_cv_host |
| 1483 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1484 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1485 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1486 | |
| 1487 | |
| 1488 | echo "$as_me:$LINENO: checking target system type" >&5 |
| 1489 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
| 1490 | if test "${ac_cv_target+set}" = set; then |
| 1491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1492 | else |
| 1493 | ac_cv_target_alias=$target_alias |
| 1494 | test "x$ac_cv_target_alias" = "x" && |
| 1495 | ac_cv_target_alias=$ac_cv_host_alias |
| 1496 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
| 1497 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
| 1498 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
| 1499 | { (exit 1); exit 1; }; } |
| 1500 | |
| 1501 | fi |
| 1502 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 1503 | echo "${ECHO_T}$ac_cv_target" >&6 |
| 1504 | target=$ac_cv_target |
| 1505 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1506 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1507 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1508 | |
| 1509 | |
| 1510 | # The aliases save the names the user supplied, while $host etc. |
| 1511 | # will get canonicalized. |
| 1512 | test -n "$target_alias" && |
| 1513 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 1514 | NONENONEs,x,x, && |
| 1515 | program_prefix=${target_alias}- |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1516 | am__api_version="1.6" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1517 | # Find a good install program. We prefer a C program (faster), |
| 1518 | # so one script is as good as another. But avoid the broken or |
| 1519 | # incompatible versions: |
| 1520 | # SysV /etc/install, /usr/sbin/install |
| 1521 | # SunOS /usr/etc/install |
| 1522 | # IRIX /sbin/install |
| 1523 | # AIX /bin/install |
| 1524 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 1525 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1526 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1527 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1528 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1529 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 1530 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 1531 | if test -z "$INSTALL"; then |
| 1532 | if test "${ac_cv_path_install+set}" = set; then |
| 1533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1534 | else |
| 1535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1536 | for as_dir in $PATH |
| 1537 | do |
| 1538 | IFS=$as_save_IFS |
| 1539 | test -z "$as_dir" && as_dir=. |
| 1540 | # Account for people who put trailing slashes in PATH elements. |
| 1541 | case $as_dir/ in |
| 1542 | ./ | .// | /cC/* | \ |
| 1543 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 1544 | /usr/ucb/* ) ;; |
| 1545 | *) |
| 1546 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1547 | # Don't use installbsd from OSF since it installs stuff as root |
| 1548 | # by default. |
| 1549 | for ac_prog in ginstall scoinst install; do |
| 1550 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1551 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 1552 | if test $ac_prog = install && |
| 1553 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1554 | # AIX install. It has an incompatible calling convention. |
| 1555 | : |
| 1556 | elif test $ac_prog = install && |
| 1557 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1558 | # program-specific install script used by HP pwplus--don't use. |
| 1559 | : |
| 1560 | else |
| 1561 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 1562 | break 3 |
| 1563 | fi |
| 1564 | fi |
| 1565 | done |
| 1566 | done |
| 1567 | ;; |
| 1568 | esac |
| 1569 | done |
| 1570 | |
| 1571 | |
| 1572 | fi |
| 1573 | if test "${ac_cv_path_install+set}" = set; then |
| 1574 | INSTALL=$ac_cv_path_install |
| 1575 | else |
| 1576 | # As a last resort, use the slow shell script. We don't cache a |
| 1577 | # path for INSTALL within a source directory, because that will |
| 1578 | # break other packages using the cache if that directory is |
| 1579 | # removed, or if the path is relative. |
| 1580 | INSTALL=$ac_install_sh |
| 1581 | fi |
| 1582 | fi |
| 1583 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 1584 | echo "${ECHO_T}$INSTALL" >&6 |
| 1585 | |
| 1586 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1587 | # It thinks the first close brace ends the variable substitution. |
| 1588 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1589 | |
| 1590 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 1591 | |
| 1592 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1593 | |
| 1594 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
| 1595 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
| 1596 | # Just in case |
| 1597 | sleep 1 |
| 1598 | echo timestamp > conftest.file |
| 1599 | # Do `set' in a subshell so we don't clobber the current shell's |
| 1600 | # arguments. Must try -L first in case configure is actually a |
| 1601 | # symlink; some systems play weird games with the mod time of symlinks |
| 1602 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 1603 | # directory). |
| 1604 | if ( |
| 1605 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
| 1606 | if test "$*" = "X"; then |
| 1607 | # -L didn't work. |
| 1608 | set X `ls -t $srcdir/configure conftest.file` |
| 1609 | fi |
| 1610 | rm -f conftest.file |
| 1611 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 1612 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 1613 | |
| 1614 | # If neither matched, then we have a broken ls. This can happen |
| 1615 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 1616 | # broken ls alias from the environment. This has actually |
| 1617 | # happened. Such a system could not be considered "sane". |
| 1618 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
| 1619 | alias in your environment" >&5 |
| 1620 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 1621 | alias in your environment" >&2;} |
| 1622 | { (exit 1); exit 1; }; } |
| 1623 | fi |
| 1624 | |
| 1625 | test "$2" = conftest.file |
| 1626 | ) |
| 1627 | then |
| 1628 | # Ok. |
| 1629 | : |
| 1630 | else |
| 1631 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
| 1632 | Check your system clock" >&5 |
| 1633 | echo "$as_me: error: newly created file is older than distributed files! |
| 1634 | Check your system clock" >&2;} |
| 1635 | { (exit 1); exit 1; }; } |
| 1636 | fi |
| 1637 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1638 | echo "${ECHO_T}yes" >&6 |
| 1639 | test "$program_prefix" != NONE && |
| 1640 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
| 1641 | # Use a double $ so make ignores it. |
| 1642 | test "$program_suffix" != NONE && |
| 1643 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
| 1644 | # Double any \ or $. echo might interpret backslashes. |
| 1645 | # By default was `s,x,x', remove it if useless. |
| 1646 | cat <<\_ACEOF >conftest.sed |
| 1647 | s/[\\$]/&&/g;s/;s,x,x,$// |
| 1648 | _ACEOF |
| 1649 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
| 1650 | rm conftest.sed |
| 1651 | |
| 1652 | |
| 1653 | # expand $ac_aux_dir to an absolute path |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1654 | am_aux_dir=`cd $ac_aux_dir && pwd` |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1655 | |
| 1656 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 1657 | # Use eval to expand $SHELL |
| 1658 | if eval "$MISSING --run true"; then |
| 1659 | am_missing_run="$MISSING --run " |
| 1660 | else |
| 1661 | am_missing_run= |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1662 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
| 1663 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1664 | fi |
| 1665 | |
| 1666 | for ac_prog in gawk mawk nawk awk |
| 1667 | do |
| 1668 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1669 | set dummy $ac_prog; ac_word=$2 |
| 1670 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1671 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1672 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 1673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1674 | else |
| 1675 | if test -n "$AWK"; then |
| 1676 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 1677 | else |
| 1678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1679 | for as_dir in $PATH |
| 1680 | do |
| 1681 | IFS=$as_save_IFS |
| 1682 | test -z "$as_dir" && as_dir=. |
| 1683 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1684 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1685 | ac_cv_prog_AWK="$ac_prog" |
| 1686 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1687 | break 2 |
| 1688 | fi |
| 1689 | done |
| 1690 | done |
| 1691 | |
| 1692 | fi |
| 1693 | fi |
| 1694 | AWK=$ac_cv_prog_AWK |
| 1695 | if test -n "$AWK"; then |
| 1696 | echo "$as_me:$LINENO: result: $AWK" >&5 |
| 1697 | echo "${ECHO_T}$AWK" >&6 |
| 1698 | else |
| 1699 | echo "$as_me:$LINENO: result: no" >&5 |
| 1700 | echo "${ECHO_T}no" >&6 |
| 1701 | fi |
| 1702 | |
| 1703 | test -n "$AWK" && break |
| 1704 | done |
| 1705 | |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 1706 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
| 1707 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1708 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
| 1709 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 1710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1711 | else |
| 1712 | cat >conftest.make <<\_ACEOF |
| 1713 | all: |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 1714 | @echo 'ac_maketemp="${MAKE}"' |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1715 | _ACEOF |
| 1716 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 1717 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 1718 | if test -n "$ac_maketemp"; then |
| 1719 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1720 | else |
| 1721 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1722 | fi |
| 1723 | rm -f conftest.make |
| 1724 | fi |
| 1725 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 1726 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1727 | echo "${ECHO_T}yes" >&6 |
| 1728 | SET_MAKE= |
| 1729 | else |
| 1730 | echo "$as_me:$LINENO: result: no" >&5 |
| 1731 | echo "${ECHO_T}no" >&6 |
| 1732 | SET_MAKE="MAKE=${MAKE-make}" |
| 1733 | fi |
| 1734 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1735 | # test to see if srcdir already configured |
| 1736 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1737 | test -f $srcdir/config.status; then |
| 1738 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 1739 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 1740 | { (exit 1); exit 1; }; } |
| 1741 | fi |
| 1742 | |
| 1743 | # Define the identity of the package. |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1744 | PACKAGE=libunwind |
mostang.com!davidm | c7aaa68 | 2003-03-19 19:25:18 +0000 | [diff] [blame] | 1745 | VERSION=0.91 |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1746 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1747 | |
| 1748 | cat >>confdefs.h <<_ACEOF |
| 1749 | #define PACKAGE "$PACKAGE" |
| 1750 | _ACEOF |
| 1751 | |
| 1752 | |
| 1753 | cat >>confdefs.h <<_ACEOF |
| 1754 | #define VERSION "$VERSION" |
| 1755 | _ACEOF |
| 1756 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1757 | # Some tools Automake needs. |
| 1758 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1759 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1760 | |
| 1761 | |
| 1762 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 1763 | |
| 1764 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1765 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1766 | |
| 1767 | |
| 1768 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 1769 | |
| 1770 | |
| 1771 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 1772 | |
| 1773 | |
| 1774 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 1775 | |
| 1776 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
| 1777 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1778 | # Installed binaries are usually stripped using `strip' when the user |
| 1779 | # run `make install-strip'. However `strip' might not be the right |
| 1780 | # tool to use in cross-compilation environments, therefore Automake |
| 1781 | # will honor the `STRIP' environment variable to overrule this program. |
| 1782 | if test "$cross_compiling" != no; then |
| 1783 | if test -n "$ac_tool_prefix"; then |
| 1784 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 1785 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 1786 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1787 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1788 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 1789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1790 | else |
| 1791 | if test -n "$STRIP"; then |
| 1792 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 1793 | else |
| 1794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1795 | for as_dir in $PATH |
| 1796 | do |
| 1797 | IFS=$as_save_IFS |
| 1798 | test -z "$as_dir" && as_dir=. |
| 1799 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1800 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1801 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 1802 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1803 | break 2 |
| 1804 | fi |
| 1805 | done |
| 1806 | done |
| 1807 | |
| 1808 | fi |
| 1809 | fi |
| 1810 | STRIP=$ac_cv_prog_STRIP |
| 1811 | if test -n "$STRIP"; then |
| 1812 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 1813 | echo "${ECHO_T}$STRIP" >&6 |
| 1814 | else |
| 1815 | echo "$as_me:$LINENO: result: no" >&5 |
| 1816 | echo "${ECHO_T}no" >&6 |
| 1817 | fi |
| 1818 | |
| 1819 | fi |
| 1820 | if test -z "$ac_cv_prog_STRIP"; then |
| 1821 | ac_ct_STRIP=$STRIP |
| 1822 | # Extract the first word of "strip", so it can be a program name with args. |
| 1823 | set dummy strip; ac_word=$2 |
| 1824 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1825 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1826 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 1827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1828 | else |
| 1829 | if test -n "$ac_ct_STRIP"; then |
| 1830 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 1831 | else |
| 1832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1833 | for as_dir in $PATH |
| 1834 | do |
| 1835 | IFS=$as_save_IFS |
| 1836 | test -z "$as_dir" && as_dir=. |
| 1837 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1838 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1839 | ac_cv_prog_ac_ct_STRIP="strip" |
| 1840 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1841 | break 2 |
| 1842 | fi |
| 1843 | done |
| 1844 | done |
| 1845 | |
| 1846 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 1847 | fi |
| 1848 | fi |
| 1849 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 1850 | if test -n "$ac_ct_STRIP"; then |
| 1851 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 1852 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 1853 | else |
| 1854 | echo "$as_me:$LINENO: result: no" >&5 |
| 1855 | echo "${ECHO_T}no" >&6 |
| 1856 | fi |
| 1857 | |
| 1858 | STRIP=$ac_ct_STRIP |
| 1859 | else |
| 1860 | STRIP="$ac_cv_prog_STRIP" |
| 1861 | fi |
| 1862 | |
| 1863 | fi |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1864 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
| 1865 | |
| 1866 | # We need awk for the "check" target. The system "awk" is bad on |
| 1867 | # some platforms. |
| 1868 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1869 | |
| 1870 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1871 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 1872 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
| 1873 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
| 1874 | if test "${enable_maintainer_mode+set}" = set; then |
| 1875 | enableval="$enable_maintainer_mode" |
| 1876 | USE_MAINTAINER_MODE=$enableval |
| 1877 | else |
| 1878 | USE_MAINTAINER_MODE=no |
| 1879 | fi; |
| 1880 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
| 1881 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 |
| 1882 | |
| 1883 | |
| 1884 | if test $USE_MAINTAINER_MODE = yes; then |
| 1885 | MAINTAINER_MODE_TRUE= |
| 1886 | MAINTAINER_MODE_FALSE='#' |
| 1887 | else |
| 1888 | MAINTAINER_MODE_TRUE='#' |
| 1889 | MAINTAINER_MODE_FALSE= |
| 1890 | fi |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1891 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1892 | MAINT=$MAINTAINER_MODE_TRUE |
| 1893 | |
| 1894 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1895 | # Add the stamp file to the list of files AC keeps track of, |
| 1896 | # along with our hook. |
| 1897 | ac_config_headers="$ac_config_headers include/config.h" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1898 | |
| 1899 | |
| 1900 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1901 | |
| 1902 | ac_ext=c |
| 1903 | ac_cpp='$CPP $CPPFLAGS' |
| 1904 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1905 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1906 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1907 | if test -n "$ac_tool_prefix"; then |
| 1908 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1909 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1910 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1911 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1912 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1914 | else |
| 1915 | if test -n "$CC"; then |
| 1916 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1917 | else |
| 1918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1919 | for as_dir in $PATH |
| 1920 | do |
| 1921 | IFS=$as_save_IFS |
| 1922 | test -z "$as_dir" && as_dir=. |
| 1923 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1924 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1925 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1926 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1927 | break 2 |
| 1928 | fi |
| 1929 | done |
| 1930 | done |
| 1931 | |
| 1932 | fi |
| 1933 | fi |
| 1934 | CC=$ac_cv_prog_CC |
| 1935 | if test -n "$CC"; then |
| 1936 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1937 | echo "${ECHO_T}$CC" >&6 |
| 1938 | else |
| 1939 | echo "$as_me:$LINENO: result: no" >&5 |
| 1940 | echo "${ECHO_T}no" >&6 |
| 1941 | fi |
| 1942 | |
| 1943 | fi |
| 1944 | if test -z "$ac_cv_prog_CC"; then |
| 1945 | ac_ct_CC=$CC |
| 1946 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1947 | set dummy gcc; ac_word=$2 |
| 1948 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1949 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1950 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1952 | else |
| 1953 | if test -n "$ac_ct_CC"; then |
| 1954 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1955 | else |
| 1956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1957 | for as_dir in $PATH |
| 1958 | do |
| 1959 | IFS=$as_save_IFS |
| 1960 | test -z "$as_dir" && as_dir=. |
| 1961 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1962 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1963 | ac_cv_prog_ac_ct_CC="gcc" |
| 1964 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1965 | break 2 |
| 1966 | fi |
| 1967 | done |
| 1968 | done |
| 1969 | |
| 1970 | fi |
| 1971 | fi |
| 1972 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1973 | if test -n "$ac_ct_CC"; then |
| 1974 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1975 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1976 | else |
| 1977 | echo "$as_me:$LINENO: result: no" >&5 |
| 1978 | echo "${ECHO_T}no" >&6 |
| 1979 | fi |
| 1980 | |
| 1981 | CC=$ac_ct_CC |
| 1982 | else |
| 1983 | CC="$ac_cv_prog_CC" |
| 1984 | fi |
| 1985 | |
| 1986 | if test -z "$CC"; then |
| 1987 | if test -n "$ac_tool_prefix"; then |
| 1988 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1989 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1990 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1991 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1992 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1994 | else |
| 1995 | if test -n "$CC"; then |
| 1996 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1997 | else |
| 1998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1999 | for as_dir in $PATH |
| 2000 | do |
| 2001 | IFS=$as_save_IFS |
| 2002 | test -z "$as_dir" && as_dir=. |
| 2003 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2004 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2005 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2006 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2007 | break 2 |
| 2008 | fi |
| 2009 | done |
| 2010 | done |
| 2011 | |
| 2012 | fi |
| 2013 | fi |
| 2014 | CC=$ac_cv_prog_CC |
| 2015 | if test -n "$CC"; then |
| 2016 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2017 | echo "${ECHO_T}$CC" >&6 |
| 2018 | else |
| 2019 | echo "$as_me:$LINENO: result: no" >&5 |
| 2020 | echo "${ECHO_T}no" >&6 |
| 2021 | fi |
| 2022 | |
| 2023 | fi |
| 2024 | if test -z "$ac_cv_prog_CC"; then |
| 2025 | ac_ct_CC=$CC |
| 2026 | # Extract the first word of "cc", so it can be a program name with args. |
| 2027 | set dummy cc; ac_word=$2 |
| 2028 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2029 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2030 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2032 | else |
| 2033 | if test -n "$ac_ct_CC"; then |
| 2034 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2035 | else |
| 2036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2037 | for as_dir in $PATH |
| 2038 | do |
| 2039 | IFS=$as_save_IFS |
| 2040 | test -z "$as_dir" && as_dir=. |
| 2041 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2042 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2043 | ac_cv_prog_ac_ct_CC="cc" |
| 2044 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2045 | break 2 |
| 2046 | fi |
| 2047 | done |
| 2048 | done |
| 2049 | |
| 2050 | fi |
| 2051 | fi |
| 2052 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2053 | if test -n "$ac_ct_CC"; then |
| 2054 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2055 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2056 | else |
| 2057 | echo "$as_me:$LINENO: result: no" >&5 |
| 2058 | echo "${ECHO_T}no" >&6 |
| 2059 | fi |
| 2060 | |
| 2061 | CC=$ac_ct_CC |
| 2062 | else |
| 2063 | CC="$ac_cv_prog_CC" |
| 2064 | fi |
| 2065 | |
| 2066 | fi |
| 2067 | if test -z "$CC"; then |
| 2068 | # Extract the first word of "cc", so it can be a program name with args. |
| 2069 | set dummy cc; ac_word=$2 |
| 2070 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2071 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2072 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2074 | else |
| 2075 | if test -n "$CC"; then |
| 2076 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2077 | else |
| 2078 | ac_prog_rejected=no |
| 2079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2080 | for as_dir in $PATH |
| 2081 | do |
| 2082 | IFS=$as_save_IFS |
| 2083 | test -z "$as_dir" && as_dir=. |
| 2084 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2085 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2086 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2087 | ac_prog_rejected=yes |
| 2088 | continue |
| 2089 | fi |
| 2090 | ac_cv_prog_CC="cc" |
| 2091 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2092 | break 2 |
| 2093 | fi |
| 2094 | done |
| 2095 | done |
| 2096 | |
| 2097 | if test $ac_prog_rejected = yes; then |
| 2098 | # We found a bogon in the path, so make sure we never use it. |
| 2099 | set dummy $ac_cv_prog_CC |
| 2100 | shift |
| 2101 | if test $# != 0; then |
| 2102 | # We chose a different compiler from the bogus one. |
| 2103 | # However, it has the same basename, so the bogon will be chosen |
| 2104 | # first if we set CC to just the basename; use the full file name. |
| 2105 | shift |
| 2106 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2107 | fi |
| 2108 | fi |
| 2109 | fi |
| 2110 | fi |
| 2111 | CC=$ac_cv_prog_CC |
| 2112 | if test -n "$CC"; then |
| 2113 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2114 | echo "${ECHO_T}$CC" >&6 |
| 2115 | else |
| 2116 | echo "$as_me:$LINENO: result: no" >&5 |
| 2117 | echo "${ECHO_T}no" >&6 |
| 2118 | fi |
| 2119 | |
| 2120 | fi |
| 2121 | if test -z "$CC"; then |
| 2122 | if test -n "$ac_tool_prefix"; then |
| 2123 | for ac_prog in cl |
| 2124 | do |
| 2125 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2126 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2127 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2128 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2129 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2131 | else |
| 2132 | if test -n "$CC"; then |
| 2133 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2134 | else |
| 2135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2136 | for as_dir in $PATH |
| 2137 | do |
| 2138 | IFS=$as_save_IFS |
| 2139 | test -z "$as_dir" && as_dir=. |
| 2140 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2141 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2142 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2143 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2144 | break 2 |
| 2145 | fi |
| 2146 | done |
| 2147 | done |
| 2148 | |
| 2149 | fi |
| 2150 | fi |
| 2151 | CC=$ac_cv_prog_CC |
| 2152 | if test -n "$CC"; then |
| 2153 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2154 | echo "${ECHO_T}$CC" >&6 |
| 2155 | else |
| 2156 | echo "$as_me:$LINENO: result: no" >&5 |
| 2157 | echo "${ECHO_T}no" >&6 |
| 2158 | fi |
| 2159 | |
| 2160 | test -n "$CC" && break |
| 2161 | done |
| 2162 | fi |
| 2163 | if test -z "$CC"; then |
| 2164 | ac_ct_CC=$CC |
| 2165 | for ac_prog in cl |
| 2166 | do |
| 2167 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2168 | set dummy $ac_prog; ac_word=$2 |
| 2169 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2170 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2171 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2173 | else |
| 2174 | if test -n "$ac_ct_CC"; then |
| 2175 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2176 | else |
| 2177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2178 | for as_dir in $PATH |
| 2179 | do |
| 2180 | IFS=$as_save_IFS |
| 2181 | test -z "$as_dir" && as_dir=. |
| 2182 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2183 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2184 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2185 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2186 | break 2 |
| 2187 | fi |
| 2188 | done |
| 2189 | done |
| 2190 | |
| 2191 | fi |
| 2192 | fi |
| 2193 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2194 | if test -n "$ac_ct_CC"; then |
| 2195 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2196 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2197 | else |
| 2198 | echo "$as_me:$LINENO: result: no" >&5 |
| 2199 | echo "${ECHO_T}no" >&6 |
| 2200 | fi |
| 2201 | |
| 2202 | test -n "$ac_ct_CC" && break |
| 2203 | done |
| 2204 | |
| 2205 | CC=$ac_ct_CC |
| 2206 | fi |
| 2207 | |
| 2208 | fi |
| 2209 | |
| 2210 | |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 2211 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 |
| 2212 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2213 | { (exit 1); exit 1; }; } |
| 2214 | |
| 2215 | # Provide some information about the compiler. |
| 2216 | echo "$as_me:$LINENO:" \ |
| 2217 | "checking for C compiler version" >&5 |
| 2218 | ac_compiler=`set X $ac_compile; echo $2` |
| 2219 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2220 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2221 | ac_status=$? |
| 2222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2223 | (exit $ac_status); } |
| 2224 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2225 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2226 | ac_status=$? |
| 2227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2228 | (exit $ac_status); } |
| 2229 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2230 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2231 | ac_status=$? |
| 2232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2233 | (exit $ac_status); } |
| 2234 | |
| 2235 | cat >conftest.$ac_ext <<_ACEOF |
| 2236 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 2237 | #include "confdefs.h" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2238 | |
| 2239 | int |
| 2240 | main () |
| 2241 | { |
| 2242 | |
| 2243 | ; |
| 2244 | return 0; |
| 2245 | } |
| 2246 | _ACEOF |
| 2247 | ac_clean_files_save=$ac_clean_files |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 2248 | ac_clean_files="$ac_clean_files a.out a.exe" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2249 | # Try to create an executable without -o first, disregard a.out. |
| 2250 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2251 | # of exeext. |
| 2252 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 2253 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 2254 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2255 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2256 | (eval $ac_link_default) 2>&5 |
| 2257 | ac_status=$? |
| 2258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2259 | (exit $ac_status); }; then |
| 2260 | # Find the output, starting from the most likely. This scheme is |
| 2261 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2262 | # resort. |
| 2263 | |
| 2264 | # Be careful to initialize this variable, since it used to be cached. |
| 2265 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2266 | ac_cv_exeext= |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 2267 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2268 | test -f "$ac_file" || continue |
| 2269 | case $ac_file in |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 2270 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 2271 | a.out ) # We found the default executable, but exeext='' is most |
| 2272 | # certainly right. |
| 2273 | break;; |
| 2274 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2275 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 2276 | export ac_cv_exeext |
| 2277 | break;; |
| 2278 | * ) break;; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2279 | esac |
| 2280 | done |
| 2281 | else |
| 2282 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 2283 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2284 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 2285 | check \`config.log' for details." >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2286 | echo "$as_me: error: C compiler cannot create executables |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 2287 | check \`config.log' for details." >&2;} |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2288 | { (exit 77); exit 77; }; } |
| 2289 | fi |
| 2290 | |
| 2291 | ac_exeext=$ac_cv_exeext |
| 2292 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2293 | echo "${ECHO_T}$ac_file" >&6 |
| 2294 | |
| 2295 | # Check the compiler produces executables we can run. If not, either |
| 2296 | # the compiler is broken, or we cross compile. |
| 2297 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2298 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2299 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2300 | # If not cross compiling, check that we can run a simple program. |
| 2301 | if test "$cross_compiling" != yes; then |
| 2302 | if { ac_try='./$ac_file' |
| 2303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2304 | (eval $ac_try) 2>&5 |
| 2305 | ac_status=$? |
| 2306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2307 | (exit $ac_status); }; }; then |
| 2308 | cross_compiling=no |
| 2309 | else |
| 2310 | if test "$cross_compiling" = maybe; then |
| 2311 | cross_compiling=yes |
| 2312 | else |
| 2313 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 2314 | If you meant to cross compile, use \`--host'." >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2315 | echo "$as_me: error: cannot run C compiled programs. |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 2316 | If you meant to cross compile, use \`--host'." >&2;} |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2317 | { (exit 1); exit 1; }; } |
| 2318 | fi |
| 2319 | fi |
| 2320 | fi |
| 2321 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2322 | echo "${ECHO_T}yes" >&6 |
| 2323 | |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 2324 | rm -f a.out a.exe conftest$ac_cv_exeext |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2325 | ac_clean_files=$ac_clean_files_save |
| 2326 | # Check the compiler produces executables we can run. If not, either |
| 2327 | # the compiler is broken, or we cross compile. |
| 2328 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2329 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2330 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2331 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2332 | |
| 2333 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2334 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2335 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2336 | (eval $ac_link) 2>&5 |
| 2337 | ac_status=$? |
| 2338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2339 | (exit $ac_status); }; then |
| 2340 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2341 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2342 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2343 | # `rm'. |
| 2344 | for ac_file in conftest.exe conftest conftest.*; do |
| 2345 | test -f "$ac_file" || continue |
| 2346 | case $ac_file in |
| 2347 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 2348 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2349 | export ac_cv_exeext |
| 2350 | break;; |
| 2351 | * ) break;; |
| 2352 | esac |
| 2353 | done |
| 2354 | else |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 2355 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 2356 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2357 | { (exit 1); exit 1; }; } |
| 2358 | fi |
| 2359 | |
| 2360 | rm -f conftest$ac_cv_exeext |
| 2361 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2362 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2363 | |
| 2364 | rm -f conftest.$ac_ext |
| 2365 | EXEEXT=$ac_cv_exeext |
| 2366 | ac_exeext=$EXEEXT |
| 2367 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2368 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2369 | if test "${ac_cv_objext+set}" = set; then |
| 2370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2371 | else |
| 2372 | cat >conftest.$ac_ext <<_ACEOF |
| 2373 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 2374 | #include "confdefs.h" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2375 | |
| 2376 | int |
| 2377 | main () |
| 2378 | { |
| 2379 | |
| 2380 | ; |
| 2381 | return 0; |
| 2382 | } |
| 2383 | _ACEOF |
| 2384 | rm -f conftest.o conftest.obj |
| 2385 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2386 | (eval $ac_compile) 2>&5 |
| 2387 | ac_status=$? |
| 2388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2389 | (exit $ac_status); }; then |
| 2390 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2391 | case $ac_file in |
| 2392 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 2393 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2394 | break;; |
| 2395 | esac |
| 2396 | done |
| 2397 | else |
| 2398 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 2399 | cat conftest.$ac_ext >&5 |
| 2400 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 |
| 2401 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2402 | { (exit 1); exit 1; }; } |
| 2403 | fi |
| 2404 | |
| 2405 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2406 | fi |
| 2407 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2408 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2409 | OBJEXT=$ac_cv_objext |
| 2410 | ac_objext=$OBJEXT |
| 2411 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2412 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2413 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2415 | else |
| 2416 | cat >conftest.$ac_ext <<_ACEOF |
| 2417 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 2418 | #include "confdefs.h" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2419 | |
| 2420 | int |
| 2421 | main () |
| 2422 | { |
| 2423 | #ifndef __GNUC__ |
| 2424 | choke me |
| 2425 | #endif |
| 2426 | |
| 2427 | ; |
| 2428 | return 0; |
| 2429 | } |
| 2430 | _ACEOF |
| 2431 | rm -f conftest.$ac_objext |
| 2432 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2433 | (eval $ac_compile) 2>&5 |
| 2434 | ac_status=$? |
| 2435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2436 | (exit $ac_status); } && |
| 2437 | { ac_try='test -s conftest.$ac_objext' |
| 2438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2439 | (eval $ac_try) 2>&5 |
| 2440 | ac_status=$? |
| 2441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2442 | (exit $ac_status); }; }; then |
| 2443 | ac_compiler_gnu=yes |
| 2444 | else |
| 2445 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 2446 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2447 | ac_compiler_gnu=no |
| 2448 | fi |
| 2449 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2450 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2451 | |
| 2452 | fi |
| 2453 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2454 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2455 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2456 | ac_test_CFLAGS=${CFLAGS+set} |
| 2457 | ac_save_CFLAGS=$CFLAGS |
| 2458 | CFLAGS="-g" |
| 2459 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2460 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2461 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2463 | else |
| 2464 | cat >conftest.$ac_ext <<_ACEOF |
| 2465 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 2466 | #include "confdefs.h" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2467 | |
| 2468 | int |
| 2469 | main () |
| 2470 | { |
| 2471 | |
| 2472 | ; |
| 2473 | return 0; |
| 2474 | } |
| 2475 | _ACEOF |
| 2476 | rm -f conftest.$ac_objext |
| 2477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2478 | (eval $ac_compile) 2>&5 |
| 2479 | ac_status=$? |
| 2480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2481 | (exit $ac_status); } && |
| 2482 | { ac_try='test -s conftest.$ac_objext' |
| 2483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2484 | (eval $ac_try) 2>&5 |
| 2485 | ac_status=$? |
| 2486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2487 | (exit $ac_status); }; }; then |
| 2488 | ac_cv_prog_cc_g=yes |
| 2489 | else |
| 2490 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 2491 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2492 | ac_cv_prog_cc_g=no |
| 2493 | fi |
| 2494 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2495 | fi |
| 2496 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2497 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2498 | if test "$ac_test_CFLAGS" = set; then |
| 2499 | CFLAGS=$ac_save_CFLAGS |
| 2500 | elif test $ac_cv_prog_cc_g = yes; then |
| 2501 | if test "$GCC" = yes; then |
| 2502 | CFLAGS="-g -O2" |
| 2503 | else |
| 2504 | CFLAGS="-g" |
| 2505 | fi |
| 2506 | else |
| 2507 | if test "$GCC" = yes; then |
| 2508 | CFLAGS="-O2" |
| 2509 | else |
| 2510 | CFLAGS= |
| 2511 | fi |
| 2512 | fi |
| 2513 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2514 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2515 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2517 | else |
| 2518 | ac_cv_prog_cc_stdc=no |
| 2519 | ac_save_CC=$CC |
| 2520 | cat >conftest.$ac_ext <<_ACEOF |
| 2521 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 2522 | #include "confdefs.h" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2523 | #include <stdarg.h> |
| 2524 | #include <stdio.h> |
| 2525 | #include <sys/types.h> |
| 2526 | #include <sys/stat.h> |
| 2527 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2528 | struct buf { int x; }; |
| 2529 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2530 | static char *e (p, i) |
| 2531 | char **p; |
| 2532 | int i; |
| 2533 | { |
| 2534 | return p[i]; |
| 2535 | } |
| 2536 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2537 | { |
| 2538 | char *s; |
| 2539 | va_list v; |
| 2540 | va_start (v,p); |
| 2541 | s = g (p, va_arg (v,int)); |
| 2542 | va_end (v); |
| 2543 | return s; |
| 2544 | } |
| 2545 | int test (int i, double x); |
| 2546 | struct s1 {int (*f) (int a);}; |
| 2547 | struct s2 {int (*f) (double a);}; |
| 2548 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2549 | int argc; |
| 2550 | char **argv; |
| 2551 | int |
| 2552 | main () |
| 2553 | { |
| 2554 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2555 | ; |
| 2556 | return 0; |
| 2557 | } |
| 2558 | _ACEOF |
| 2559 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2560 | # breaks some systems' header files. |
| 2561 | # AIX -qlanglvl=ansi |
| 2562 | # Ultrix and OSF/1 -std1 |
| 2563 | # HP-UX 10.20 and later -Ae |
| 2564 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2565 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2566 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2567 | do |
| 2568 | CC="$ac_save_CC $ac_arg" |
| 2569 | rm -f conftest.$ac_objext |
| 2570 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2571 | (eval $ac_compile) 2>&5 |
| 2572 | ac_status=$? |
| 2573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2574 | (exit $ac_status); } && |
| 2575 | { ac_try='test -s conftest.$ac_objext' |
| 2576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2577 | (eval $ac_try) 2>&5 |
| 2578 | ac_status=$? |
| 2579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2580 | (exit $ac_status); }; }; then |
| 2581 | ac_cv_prog_cc_stdc=$ac_arg |
| 2582 | break |
| 2583 | else |
| 2584 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 2585 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2586 | fi |
| 2587 | rm -f conftest.$ac_objext |
| 2588 | done |
| 2589 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2590 | CC=$ac_save_CC |
| 2591 | |
| 2592 | fi |
| 2593 | |
| 2594 | case "x$ac_cv_prog_cc_stdc" in |
| 2595 | x|xno) |
| 2596 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2597 | echo "${ECHO_T}none needed" >&6 ;; |
| 2598 | *) |
| 2599 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2600 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2601 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2602 | esac |
| 2603 | |
| 2604 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2605 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2606 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2607 | # the declaration of exit, since it's the most demanding environment. |
| 2608 | cat >conftest.$ac_ext <<_ACEOF |
| 2609 | #ifndef __cplusplus |
| 2610 | choke me |
| 2611 | #endif |
| 2612 | _ACEOF |
| 2613 | rm -f conftest.$ac_objext |
| 2614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2615 | (eval $ac_compile) 2>&5 |
| 2616 | ac_status=$? |
| 2617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2618 | (exit $ac_status); } && |
| 2619 | { ac_try='test -s conftest.$ac_objext' |
| 2620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2621 | (eval $ac_try) 2>&5 |
| 2622 | ac_status=$? |
| 2623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2624 | (exit $ac_status); }; }; then |
| 2625 | for ac_declaration in \ |
| 2626 | ''\ |
| 2627 | '#include <stdlib.h>' \ |
| 2628 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2629 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2630 | 'extern "C" void exit (int) throw ();' \ |
| 2631 | 'extern "C" void exit (int);' \ |
| 2632 | 'void exit (int);' |
| 2633 | do |
| 2634 | cat >conftest.$ac_ext <<_ACEOF |
| 2635 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 2636 | #include "confdefs.h" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2637 | #include <stdlib.h> |
| 2638 | $ac_declaration |
| 2639 | int |
| 2640 | main () |
| 2641 | { |
| 2642 | exit (42); |
| 2643 | ; |
| 2644 | return 0; |
| 2645 | } |
| 2646 | _ACEOF |
| 2647 | rm -f conftest.$ac_objext |
| 2648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2649 | (eval $ac_compile) 2>&5 |
| 2650 | ac_status=$? |
| 2651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2652 | (exit $ac_status); } && |
| 2653 | { ac_try='test -s conftest.$ac_objext' |
| 2654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2655 | (eval $ac_try) 2>&5 |
| 2656 | ac_status=$? |
| 2657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2658 | (exit $ac_status); }; }; then |
| 2659 | : |
| 2660 | else |
| 2661 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 2662 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2663 | continue |
| 2664 | fi |
| 2665 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2666 | cat >conftest.$ac_ext <<_ACEOF |
| 2667 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 2668 | #include "confdefs.h" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2669 | $ac_declaration |
| 2670 | int |
| 2671 | main () |
| 2672 | { |
| 2673 | exit (42); |
| 2674 | ; |
| 2675 | return 0; |
| 2676 | } |
| 2677 | _ACEOF |
| 2678 | rm -f conftest.$ac_objext |
| 2679 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2680 | (eval $ac_compile) 2>&5 |
| 2681 | ac_status=$? |
| 2682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2683 | (exit $ac_status); } && |
| 2684 | { ac_try='test -s conftest.$ac_objext' |
| 2685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2686 | (eval $ac_try) 2>&5 |
| 2687 | ac_status=$? |
| 2688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2689 | (exit $ac_status); }; }; then |
| 2690 | break |
| 2691 | else |
| 2692 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 2693 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2694 | fi |
| 2695 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2696 | done |
| 2697 | rm -f conftest* |
| 2698 | if test -n "$ac_declaration"; then |
| 2699 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2700 | echo $ac_declaration >>confdefs.h |
| 2701 | echo '#endif' >>confdefs.h |
| 2702 | fi |
| 2703 | |
| 2704 | else |
| 2705 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 2706 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2707 | fi |
| 2708 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2709 | ac_ext=c |
| 2710 | ac_cpp='$CPP $CPPFLAGS' |
| 2711 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2712 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2713 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 2714 | rm -f .deps 2>/dev/null |
| 2715 | mkdir .deps 2>/dev/null |
| 2716 | if test -d .deps; then |
| 2717 | DEPDIR=.deps |
| 2718 | else |
| 2719 | # MS-DOS does not allow filenames that begin with a dot. |
| 2720 | DEPDIR=_deps |
| 2721 | fi |
| 2722 | rmdir .deps 2>/dev/null |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2723 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 2724 | |
| 2725 | ac_config_commands="$ac_config_commands depfiles" |
| 2726 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2727 | |
| 2728 | am_make=${MAKE-make} |
| 2729 | cat > confinc << 'END' |
| 2730 | doit: |
| 2731 | @echo done |
| 2732 | END |
| 2733 | # If we don't find an include directive, just comment out the code. |
| 2734 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
| 2735 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 2736 | am__include="#" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2737 | am__quote= |
| 2738 | _am_result=none |
| 2739 | # First try GNU make style include. |
| 2740 | echo "include confinc" > confmf |
| 2741 | # We grep out `Entering directory' and `Leaving directory' |
| 2742 | # messages which can occur if `w' ends up in MAKEFLAGS. |
| 2743 | # In particular we don't look at `^make:' because GNU make might |
| 2744 | # be invoked under some other name (usually "gmake"), in which |
| 2745 | # case it prints its new name instead of `make'. |
| 2746 | if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then |
| 2747 | am__include=include |
| 2748 | am__quote= |
| 2749 | _am_result=GNU |
| 2750 | fi |
| 2751 | # Now try BSD make style include. |
| 2752 | if test "$am__include" = "#"; then |
| 2753 | echo '.include "confinc"' > confmf |
| 2754 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 2755 | am__include=.include |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 2756 | am__quote="\"" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2757 | _am_result=BSD |
| 2758 | fi |
| 2759 | fi |
| 2760 | |
| 2761 | |
| 2762 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
| 2763 | echo "${ECHO_T}$_am_result" >&6 |
| 2764 | rm -f confinc confmf |
| 2765 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 2766 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
| 2767 | if test "${enable_dependency_tracking+set}" = set; then |
| 2768 | enableval="$enable_dependency_tracking" |
| 2769 | |
| 2770 | fi; |
| 2771 | if test "x$enable_dependency_tracking" != xno; then |
| 2772 | am_depcomp="$ac_aux_dir/depcomp" |
| 2773 | AMDEPBACKSLASH='\' |
| 2774 | fi |
| 2775 | |
| 2776 | |
| 2777 | if test "x$enable_dependency_tracking" != xno; then |
| 2778 | AMDEP_TRUE= |
| 2779 | AMDEP_FALSE='#' |
| 2780 | else |
| 2781 | AMDEP_TRUE='#' |
| 2782 | AMDEP_FALSE= |
| 2783 | fi |
| 2784 | |
| 2785 | |
| 2786 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2787 | |
| 2788 | depcc="$CC" am_compiler_list= |
| 2789 | |
| 2790 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 2791 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 2792 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 2793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2794 | else |
| 2795 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 2796 | # We make a subdir and do the tests there. Otherwise we can end up |
| 2797 | # making bogus files that we don't know about and never remove. For |
| 2798 | # instance it was reported that on HP-UX the gcc test will end up |
| 2799 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 2800 | # in D'. |
| 2801 | mkdir conftest.dir |
| 2802 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 2803 | # using a relative directory. |
| 2804 | cp "$am_depcomp" conftest.dir |
| 2805 | cd conftest.dir |
| 2806 | |
| 2807 | am_cv_CC_dependencies_compiler_type=none |
| 2808 | if test "$am_compiler_list" = ""; then |
| 2809 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 2810 | fi |
| 2811 | for depmode in $am_compiler_list; do |
| 2812 | # We need to recreate these files for each test, as the compiler may |
| 2813 | # overwrite some of them when testing with obscure command lines. |
| 2814 | # This happens at least with the AIX C compiler. |
| 2815 | echo '#include "conftest.h"' > conftest.c |
| 2816 | echo 'int i;' > conftest.h |
| 2817 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf |
| 2818 | |
| 2819 | case $depmode in |
| 2820 | nosideeffect) |
| 2821 | # after this tag, mechanisms are not by side-effect, so they'll |
| 2822 | # only be used when explicitly requested |
| 2823 | if test "x$enable_dependency_tracking" = xyes; then |
| 2824 | continue |
| 2825 | else |
| 2826 | break |
| 2827 | fi |
| 2828 | ;; |
| 2829 | none) break ;; |
| 2830 | esac |
| 2831 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 2832 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 2833 | # handle `-M -o', and we need to detect this. |
| 2834 | if depmode=$depmode \ |
| 2835 | source=conftest.c object=conftest.o \ |
| 2836 | depfile=conftest.Po tmpdepfile=conftest.TPo \ |
| 2837 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && |
| 2838 | grep conftest.h conftest.Po > /dev/null 2>&1 && |
| 2839 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 2840 | am_cv_CC_dependencies_compiler_type=$depmode |
| 2841 | break |
| 2842 | fi |
| 2843 | done |
| 2844 | |
| 2845 | cd .. |
| 2846 | rm -rf conftest.dir |
| 2847 | else |
| 2848 | am_cv_CC_dependencies_compiler_type=none |
| 2849 | fi |
| 2850 | |
| 2851 | fi |
| 2852 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 2853 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 2854 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2855 | |
| 2856 | |
| 2857 | # Find a good install program. We prefer a C program (faster), |
| 2858 | # so one script is as good as another. But avoid the broken or |
| 2859 | # incompatible versions: |
| 2860 | # SysV /etc/install, /usr/sbin/install |
| 2861 | # SunOS /usr/etc/install |
| 2862 | # IRIX /sbin/install |
| 2863 | # AIX /bin/install |
| 2864 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2865 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2866 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2867 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2868 | # ./install, which can be erroneously created by make from ./install.sh. |
| 2869 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 2870 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 2871 | if test -z "$INSTALL"; then |
| 2872 | if test "${ac_cv_path_install+set}" = set; then |
| 2873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2874 | else |
| 2875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2876 | for as_dir in $PATH |
| 2877 | do |
| 2878 | IFS=$as_save_IFS |
| 2879 | test -z "$as_dir" && as_dir=. |
| 2880 | # Account for people who put trailing slashes in PATH elements. |
| 2881 | case $as_dir/ in |
| 2882 | ./ | .// | /cC/* | \ |
| 2883 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 2884 | /usr/ucb/* ) ;; |
| 2885 | *) |
| 2886 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2887 | # Don't use installbsd from OSF since it installs stuff as root |
| 2888 | # by default. |
| 2889 | for ac_prog in ginstall scoinst install; do |
| 2890 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2891 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 2892 | if test $ac_prog = install && |
| 2893 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2894 | # AIX install. It has an incompatible calling convention. |
| 2895 | : |
| 2896 | elif test $ac_prog = install && |
| 2897 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2898 | # program-specific install script used by HP pwplus--don't use. |
| 2899 | : |
| 2900 | else |
| 2901 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2902 | break 3 |
| 2903 | fi |
| 2904 | fi |
| 2905 | done |
| 2906 | done |
| 2907 | ;; |
| 2908 | esac |
| 2909 | done |
| 2910 | |
| 2911 | |
| 2912 | fi |
| 2913 | if test "${ac_cv_path_install+set}" = set; then |
| 2914 | INSTALL=$ac_cv_path_install |
| 2915 | else |
| 2916 | # As a last resort, use the slow shell script. We don't cache a |
| 2917 | # path for INSTALL within a source directory, because that will |
| 2918 | # break other packages using the cache if that directory is |
| 2919 | # removed, or if the path is relative. |
| 2920 | INSTALL=$ac_install_sh |
| 2921 | fi |
| 2922 | fi |
| 2923 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 2924 | echo "${ECHO_T}$INSTALL" >&6 |
| 2925 | |
| 2926 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2927 | # It thinks the first close brace ends the variable substitution. |
| 2928 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2929 | |
| 2930 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2931 | |
| 2932 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2933 | |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 2934 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
| 2935 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2936 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
| 2937 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 2938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2939 | else |
| 2940 | cat >conftest.make <<\_ACEOF |
| 2941 | all: |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 2942 | @echo 'ac_maketemp="${MAKE}"' |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2943 | _ACEOF |
| 2944 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 2945 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 2946 | if test -n "$ac_maketemp"; then |
| 2947 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 2948 | else |
| 2949 | eval ac_cv_prog_make_${ac_make}_set=no |
| 2950 | fi |
| 2951 | rm -f conftest.make |
| 2952 | fi |
| 2953 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 2954 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2955 | echo "${ECHO_T}yes" >&6 |
| 2956 | SET_MAKE= |
| 2957 | else |
| 2958 | echo "$as_me:$LINENO: result: no" >&5 |
| 2959 | echo "${ECHO_T}no" >&6 |
| 2960 | SET_MAKE="MAKE=${MAKE-make}" |
| 2961 | fi |
| 2962 | |
| 2963 | # Check whether --enable-shared or --disable-shared was given. |
| 2964 | if test "${enable_shared+set}" = set; then |
| 2965 | enableval="$enable_shared" |
| 2966 | p=${PACKAGE-default} |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 2967 | case $enableval in |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2968 | yes) enable_shared=yes ;; |
| 2969 | no) enable_shared=no ;; |
| 2970 | *) |
| 2971 | enable_shared=no |
| 2972 | # Look at the argument we got. We use all the common list separators. |
| 2973 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 2974 | for pkg in $enableval; do |
| 2975 | if test "X$pkg" = "X$p"; then |
| 2976 | enable_shared=yes |
| 2977 | fi |
| 2978 | done |
| 2979 | IFS="$ac_save_ifs" |
| 2980 | ;; |
| 2981 | esac |
| 2982 | else |
| 2983 | enable_shared=yes |
| 2984 | fi; |
| 2985 | # Check whether --enable-static or --disable-static was given. |
| 2986 | if test "${enable_static+set}" = set; then |
| 2987 | enableval="$enable_static" |
| 2988 | p=${PACKAGE-default} |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 2989 | case $enableval in |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2990 | yes) enable_static=yes ;; |
| 2991 | no) enable_static=no ;; |
| 2992 | *) |
| 2993 | enable_static=no |
| 2994 | # Look at the argument we got. We use all the common list separators. |
| 2995 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 2996 | for pkg in $enableval; do |
| 2997 | if test "X$pkg" = "X$p"; then |
| 2998 | enable_static=yes |
| 2999 | fi |
| 3000 | done |
| 3001 | IFS="$ac_save_ifs" |
| 3002 | ;; |
| 3003 | esac |
| 3004 | else |
| 3005 | enable_static=yes |
| 3006 | fi; |
| 3007 | # Check whether --enable-fast-install or --disable-fast-install was given. |
| 3008 | if test "${enable_fast_install+set}" = set; then |
| 3009 | enableval="$enable_fast_install" |
| 3010 | p=${PACKAGE-default} |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3011 | case $enableval in |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3012 | yes) enable_fast_install=yes ;; |
| 3013 | no) enable_fast_install=no ;; |
| 3014 | *) |
| 3015 | enable_fast_install=no |
| 3016 | # Look at the argument we got. We use all the common list separators. |
| 3017 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 3018 | for pkg in $enableval; do |
| 3019 | if test "X$pkg" = "X$p"; then |
| 3020 | enable_fast_install=yes |
| 3021 | fi |
| 3022 | done |
| 3023 | IFS="$ac_save_ifs" |
| 3024 | ;; |
| 3025 | esac |
| 3026 | else |
| 3027 | enable_fast_install=yes |
| 3028 | fi; |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3029 | # Find the correct PATH separator. Usually this is `:', but |
| 3030 | # DJGPP uses `;' like DOS. |
| 3031 | if test "X${PATH_SEPARATOR+set}" != Xset; then |
| 3032 | UNAME=${UNAME-`uname 2>/dev/null`} |
| 3033 | case X$UNAME in |
| 3034 | *-DOS) lt_cv_sys_path_separator=';' ;; |
| 3035 | *) lt_cv_sys_path_separator=':' ;; |
| 3036 | esac |
| 3037 | PATH_SEPARATOR=$lt_cv_sys_path_separator |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3038 | fi |
| 3039 | |
| 3040 | |
| 3041 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 3042 | if test "${with_gnu_ld+set}" = set; then |
| 3043 | withval="$with_gnu_ld" |
| 3044 | test "$withval" = no || with_gnu_ld=yes |
| 3045 | else |
| 3046 | with_gnu_ld=no |
| 3047 | fi; |
| 3048 | ac_prog=ld |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3049 | if test "$GCC" = yes; then |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3050 | # Check if gcc -print-prog-name=ld gives a path. |
| 3051 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
| 3052 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3053 | case $host in |
| 3054 | *-*-mingw*) |
| 3055 | # gcc leaves a trailing carriage return which upsets mingw |
| 3056 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 3057 | *) |
| 3058 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 3059 | esac |
| 3060 | case $ac_prog in |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3061 | # Accept absolute paths. |
| 3062 | [\\/]* | [A-Za-z]:[\\/]*) |
| 3063 | re_direlt='/[^/][^/]*/\.\./' |
| 3064 | # Canonicalize the path of ld |
| 3065 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 3066 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 3067 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 3068 | done |
| 3069 | test -z "$LD" && LD="$ac_prog" |
| 3070 | ;; |
| 3071 | "") |
| 3072 | # If it fails, then pretend we aren't using GCC. |
| 3073 | ac_prog=ld |
| 3074 | ;; |
| 3075 | *) |
| 3076 | # If it is relative, then search for the first ld in PATH. |
| 3077 | with_gnu_ld=unknown |
| 3078 | ;; |
| 3079 | esac |
| 3080 | elif test "$with_gnu_ld" = yes; then |
| 3081 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 3082 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 3083 | else |
| 3084 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 3085 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 3086 | fi |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3087 | if test "${lt_cv_path_LD+set}" = set; then |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3089 | else |
| 3090 | if test -z "$LD"; then |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3091 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3092 | for ac_dir in $PATH; do |
| 3093 | test -z "$ac_dir" && ac_dir=. |
| 3094 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3095 | lt_cv_path_LD="$ac_dir/$ac_prog" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3096 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 3097 | # but apparently some GNU ld's only accept -v. |
| 3098 | # Break only if it was the GNU/non-GNU ld that we prefer. |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3099 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3100 | test "$with_gnu_ld" != no && break |
| 3101 | else |
| 3102 | test "$with_gnu_ld" != yes && break |
| 3103 | fi |
| 3104 | fi |
| 3105 | done |
| 3106 | IFS="$ac_save_ifs" |
| 3107 | else |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3108 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3109 | fi |
| 3110 | fi |
| 3111 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3112 | LD="$lt_cv_path_LD" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3113 | if test -n "$LD"; then |
| 3114 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 3115 | echo "${ECHO_T}$LD" >&6 |
| 3116 | else |
| 3117 | echo "$as_me:$LINENO: result: no" >&5 |
| 3118 | echo "${ECHO_T}no" >&6 |
| 3119 | fi |
| 3120 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 3121 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 3122 | { (exit 1); exit 1; }; } |
| 3123 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 3124 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3125 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3127 | else |
| 3128 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 3129 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3130 | lt_cv_prog_gnu_ld=yes |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3131 | else |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3132 | lt_cv_prog_gnu_ld=no |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3133 | fi |
| 3134 | fi |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3135 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 3136 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 3137 | with_gnu_ld=$lt_cv_prog_gnu_ld |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3138 | |
| 3139 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3140 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 3141 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
| 3142 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 3143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3144 | else |
| 3145 | lt_cv_ld_reload_flag='-r' |
| 3146 | fi |
| 3147 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 3148 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
| 3149 | reload_flag=$lt_cv_ld_reload_flag |
| 3150 | test -n "$reload_flag" && reload_flag=" $reload_flag" |
| 3151 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3152 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 3153 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3154 | if test "${lt_cv_path_NM+set}" = set; then |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3156 | else |
| 3157 | if test -n "$NM"; then |
| 3158 | # Let the user override the test. |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3159 | lt_cv_path_NM="$NM" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3160 | else |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3161 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3162 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
| 3163 | test -z "$ac_dir" && ac_dir=. |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3164 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
| 3165 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3166 | # Check to see if the nm accepts a BSD-compat flag. |
| 3167 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 3168 | # nm: unknown option "B" ignored |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3169 | # Tru64's nm complains that /dev/null is an invalid object file |
| 3170 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then |
| 3171 | lt_cv_path_NM="$tmp_nm -B" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3172 | break |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3173 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
| 3174 | lt_cv_path_NM="$tmp_nm -p" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3175 | break |
| 3176 | else |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3177 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3178 | continue # so that we can try to find one that supports BSD flags |
| 3179 | fi |
| 3180 | fi |
| 3181 | done |
| 3182 | IFS="$ac_save_ifs" |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3183 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3184 | fi |
| 3185 | fi |
| 3186 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3187 | NM="$lt_cv_path_NM" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3188 | echo "$as_me:$LINENO: result: $NM" >&5 |
| 3189 | echo "${ECHO_T}$NM" >&6 |
| 3190 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3191 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 3192 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
| 3193 | if test "${lt_cv_path_SED+set}" = set; then |
| 3194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3195 | else |
| 3196 | # Loop through the user's path and test for sed and gsed. |
| 3197 | # Then use that list of sed's as ones to test for truncation. |
| 3198 | as_executable_p="test -f" |
| 3199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3200 | for as_dir in $PATH |
| 3201 | do |
| 3202 | IFS=$as_save_IFS |
| 3203 | test -z "$as_dir" && as_dir=. |
| 3204 | for ac_prog in sed gsed; do |
| 3205 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3206 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3207 | _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext" |
| 3208 | fi |
| 3209 | done |
| 3210 | done |
| 3211 | done |
| 3212 | |
| 3213 | # Create a temporary directory, and hook for its removal unless debugging. |
| 3214 | $debug || |
| 3215 | { |
| 3216 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 3217 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 3218 | } |
| 3219 | |
| 3220 | # Create a (secure) tmp directory for tmp files. |
| 3221 | : ${TMPDIR=/tmp} |
| 3222 | { |
| 3223 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` && |
| 3224 | test -n "$tmp" && test -d "$tmp" |
| 3225 | } || |
| 3226 | { |
| 3227 | tmp=$TMPDIR/sed$$-$RANDOM |
| 3228 | (umask 077 && mkdir $tmp) |
| 3229 | } || |
| 3230 | { |
| 3231 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 3232 | { (exit 1); exit 1; } |
| 3233 | } |
| 3234 | _max=0 |
| 3235 | _count=0 |
| 3236 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 3237 | # along with /bin/sed that truncates output. |
| 3238 | for _sed in $_sed_list /usr/xpg4/bin/sed; do |
| 3239 | test ! -f ${_sed} && break |
| 3240 | cat /dev/null > "$tmp/sed.in" |
| 3241 | _count=0 |
| 3242 | echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in" |
| 3243 | # Check for GNU sed and select it if it is found. |
| 3244 | if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then |
| 3245 | lt_cv_path_SED=${_sed} |
| 3246 | break |
| 3247 | fi |
| 3248 | while true; do |
| 3249 | cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp" |
| 3250 | mv "$tmp/sed.tmp" "$tmp/sed.in" |
| 3251 | cp "$tmp/sed.in" "$tmp/sed.nl" |
| 3252 | echo >>"$tmp/sed.nl" |
| 3253 | ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break |
| 3254 | cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break |
| 3255 | # 40000 chars as input seems more than enough |
| 3256 | test $_count -gt 10 && break |
| 3257 | _count=`expr $_count + 1` |
| 3258 | if test $_count -gt $_max; then |
| 3259 | _max=$_count |
| 3260 | lt_cv_path_SED=$_sed |
| 3261 | fi |
| 3262 | done |
| 3263 | done |
| 3264 | rm -rf "$tmp" |
| 3265 | |
| 3266 | fi |
| 3267 | |
| 3268 | if test "X$SED" != "X"; then |
| 3269 | lt_cv_path_SED=$SED |
| 3270 | else |
| 3271 | SED=$lt_cv_path_SED |
| 3272 | fi |
| 3273 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 3274 | echo "${ECHO_T}$SED" >&6 |
| 3275 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3276 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 3277 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 3278 | LN_S=$as_ln_s |
| 3279 | if test "$LN_S" = "ln -s"; then |
| 3280 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3281 | echo "${ECHO_T}yes" >&6 |
| 3282 | else |
| 3283 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 3284 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 3285 | fi |
| 3286 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3287 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 3288 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
| 3289 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 3290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3291 | else |
| 3292 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 3293 | lt_cv_file_magic_test_file= |
| 3294 | lt_cv_deplibs_check_method='unknown' |
| 3295 | # Need to set the preceding variable on all platforms that support |
| 3296 | # interlibrary dependencies. |
| 3297 | # 'none' -- dependencies not supported. |
| 3298 | # `unknown' -- same as none, but documents that we really don't know. |
| 3299 | # 'pass_all' -- all dependencies passed with no checks. |
| 3300 | # 'test_compile' -- check by making test program. |
| 3301 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 3302 | # which responds to the $file_magic_cmd with a given egrep regex. |
| 3303 | # If you have `file' or equivalent on your system and you're not sure |
| 3304 | # whether `pass_all' will *always* work, you probably want this one. |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3305 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3306 | case $host_os in |
| 3307 | aix4* | aix5*) |
| 3308 | lt_cv_deplibs_check_method=pass_all |
| 3309 | ;; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3310 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3311 | beos*) |
| 3312 | lt_cv_deplibs_check_method=pass_all |
| 3313 | ;; |
| 3314 | |
| 3315 | bsdi4*) |
| 3316 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 3317 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 3318 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 3319 | ;; |
| 3320 | |
| 3321 | cygwin* | mingw* | pw32*) |
| 3322 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 3323 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 3324 | ;; |
| 3325 | |
| 3326 | darwin* | rhapsody*) |
| 3327 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
| 3328 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 3329 | case "$host_os" in |
| 3330 | rhapsody* | darwin1.[012]) |
| 3331 | lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` |
| 3332 | ;; |
| 3333 | *) # Darwin 1.3 on |
| 3334 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
| 3335 | ;; |
| 3336 | esac |
| 3337 | ;; |
| 3338 | |
| 3339 | freebsd*) |
| 3340 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 3341 | case $host_cpu in |
| 3342 | i*86 ) |
| 3343 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 3344 | # Let's accept both of them until this is cleared up. |
| 3345 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
| 3346 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3347 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 3348 | ;; |
| 3349 | esac |
| 3350 | else |
| 3351 | lt_cv_deplibs_check_method=pass_all |
| 3352 | fi |
| 3353 | ;; |
| 3354 | |
| 3355 | gnu*) |
| 3356 | lt_cv_deplibs_check_method=pass_all |
| 3357 | ;; |
| 3358 | |
| 3359 | hpux10.20*|hpux11*) |
| 3360 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 3361 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3362 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 3363 | ;; |
| 3364 | |
| 3365 | irix5* | irix6* | nonstopux*) |
| 3366 | case $host_os in |
| 3367 | irix5* | nonstopux*) |
| 3368 | # this will be overridden with pass_all, but let us keep it just in case |
| 3369 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
| 3370 | ;; |
| 3371 | *) |
| 3372 | case $LD in |
| 3373 | *-32|*"-32 ") libmagic=32-bit;; |
| 3374 | *-n32|*"-n32 ") libmagic=N32;; |
| 3375 | *-64|*"-64 ") libmagic=64-bit;; |
| 3376 | *) libmagic=never-match;; |
| 3377 | esac |
| 3378 | # this will be overridden with pass_all, but let us keep it just in case |
| 3379 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
| 3380 | ;; |
| 3381 | esac |
| 3382 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
| 3383 | lt_cv_deplibs_check_method=pass_all |
| 3384 | ;; |
| 3385 | |
| 3386 | # This must be Linux ELF. |
| 3387 | linux-gnu*) |
| 3388 | case $host_cpu in |
| 3389 | alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*) |
| 3390 | lt_cv_deplibs_check_method=pass_all ;; |
| 3391 | *) |
| 3392 | # glibc up to 2.1.1 does not perform some relocations on ARM |
| 3393 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
| 3394 | esac |
| 3395 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
| 3396 | ;; |
| 3397 | |
| 3398 | netbsd*) |
| 3399 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 3400 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
| 3401 | else |
| 3402 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
| 3403 | fi |
| 3404 | ;; |
| 3405 | |
| 3406 | newos6*) |
| 3407 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 3408 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3409 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 3410 | ;; |
| 3411 | |
| 3412 | openbsd*) |
| 3413 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3414 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 3415 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 3416 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
| 3417 | else |
| 3418 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
| 3419 | fi |
| 3420 | ;; |
| 3421 | |
| 3422 | osf3* | osf4* | osf5*) |
| 3423 | # this will be overridden with pass_all, but let us keep it just in case |
| 3424 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
| 3425 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 3426 | lt_cv_deplibs_check_method=pass_all |
| 3427 | ;; |
| 3428 | |
| 3429 | sco3.2v5*) |
| 3430 | lt_cv_deplibs_check_method=pass_all |
| 3431 | ;; |
| 3432 | |
| 3433 | solaris*) |
| 3434 | lt_cv_deplibs_check_method=pass_all |
| 3435 | lt_cv_file_magic_test_file=/lib/libc.so |
| 3436 | ;; |
| 3437 | |
| 3438 | sysv5uw[78]* | sysv4*uw2*) |
| 3439 | lt_cv_deplibs_check_method=pass_all |
| 3440 | ;; |
| 3441 | |
| 3442 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 3443 | case $host_vendor in |
| 3444 | motorola) |
| 3445 | 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]' |
| 3446 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 3447 | ;; |
| 3448 | ncr) |
| 3449 | lt_cv_deplibs_check_method=pass_all |
| 3450 | ;; |
| 3451 | sequent) |
| 3452 | lt_cv_file_magic_cmd='/bin/file' |
| 3453 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 3454 | ;; |
| 3455 | sni) |
| 3456 | lt_cv_file_magic_cmd='/bin/file' |
| 3457 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 3458 | lt_cv_file_magic_test_file=/lib/libc.so |
| 3459 | ;; |
| 3460 | siemens) |
| 3461 | lt_cv_deplibs_check_method=pass_all |
| 3462 | ;; |
| 3463 | esac |
| 3464 | ;; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3465 | esac |
| 3466 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3467 | fi |
| 3468 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 3469 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
| 3470 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 3471 | deplibs_check_method=$lt_cv_deplibs_check_method |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3472 | |
| 3473 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3474 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3475 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3476 | |
| 3477 | |
| 3478 | |
| 3479 | |
| 3480 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 3481 | echo "$as_me:$LINENO: checking command to parse $NM output" >&5 |
| 3482 | echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6 |
| 3483 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 3484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3485 | else |
| 3486 | |
| 3487 | # These are sane defaults that work on at least a few old systems. |
| 3488 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 3489 | |
| 3490 | # Character class describing NM global symbol codes. |
| 3491 | symcode='[BCDEGRST]' |
| 3492 | |
| 3493 | # Regexp to match symbols that can be accessed directly from C. |
| 3494 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 3495 | |
| 3496 | # Transform the above into a raw symbol and a C symbol. |
| 3497 | symxfrm='\1 \2\3 \3' |
| 3498 | |
| 3499 | # Transform an extracted symbol line into a proper C declaration |
| 3500 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" |
| 3501 | |
| 3502 | # Transform an extracted symbol line into symbol name and symbol address |
| 3503 | lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 3504 | |
| 3505 | # Define system-specific variables. |
| 3506 | case $host_os in |
| 3507 | aix*) |
| 3508 | symcode='[BCDT]' |
| 3509 | ;; |
| 3510 | cygwin* | mingw* | pw32*) |
| 3511 | symcode='[ABCDGISTW]' |
| 3512 | ;; |
| 3513 | hpux*) # Its linker distinguishes data from code symbols |
| 3514 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 3515 | lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 3516 | ;; |
| 3517 | irix* | nonstopux*) |
| 3518 | symcode='[BCDEGRST]' |
| 3519 | ;; |
| 3520 | osf*) |
| 3521 | symcode='[BCDEGQRST]' |
| 3522 | ;; |
| 3523 | solaris* | sysv5*) |
| 3524 | symcode='[BDT]' |
| 3525 | ;; |
| 3526 | sysv4) |
| 3527 | symcode='[DFNSTU]' |
| 3528 | ;; |
| 3529 | esac |
| 3530 | |
| 3531 | # Handle CRLF in mingw tool chain |
| 3532 | opt_cr= |
| 3533 | case $host_os in |
| 3534 | mingw*) |
| 3535 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 3536 | ;; |
| 3537 | esac |
| 3538 | |
| 3539 | # If we're using GNU nm, then use its standard symbol codes. |
| 3540 | if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then |
| 3541 | symcode='[ABCDGISTW]' |
| 3542 | fi |
| 3543 | |
| 3544 | # Try without a prefix undercore, then with it. |
| 3545 | for ac_symprfx in "" "_"; do |
| 3546 | |
| 3547 | # Write the raw and C identifiers. |
| 3548 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 3549 | |
| 3550 | # Check to see that the pipe works correctly. |
| 3551 | pipe_works=no |
| 3552 | rm -f conftest* |
| 3553 | cat > conftest.$ac_ext <<EOF |
| 3554 | #ifdef __cplusplus |
| 3555 | extern "C" { |
| 3556 | #endif |
| 3557 | char nm_test_var; |
| 3558 | void nm_test_func(){} |
| 3559 | #ifdef __cplusplus |
| 3560 | } |
| 3561 | #endif |
| 3562 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 3563 | EOF |
| 3564 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3565 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3566 | (eval $ac_compile) 2>&5 |
| 3567 | ac_status=$? |
| 3568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3569 | (exit $ac_status); }; then |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3570 | # Now try to grab the symbols. |
| 3571 | nlist=conftest.nm |
| 3572 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 3573 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 3574 | ac_status=$? |
| 3575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3576 | (exit $ac_status); } && test -s "$nlist"; then |
| 3577 | # Try sorting and uniquifying the output. |
| 3578 | if sort "$nlist" | uniq > "$nlist"T; then |
| 3579 | mv -f "$nlist"T "$nlist" |
| 3580 | else |
| 3581 | rm -f "$nlist"T |
| 3582 | fi |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3583 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3584 | # Make sure that we snagged all the symbols we need. |
| 3585 | if egrep ' nm_test_var$' "$nlist" >/dev/null; then |
| 3586 | if egrep ' nm_test_func$' "$nlist" >/dev/null; then |
| 3587 | cat <<EOF > conftest.$ac_ext |
| 3588 | #ifdef __cplusplus |
| 3589 | extern "C" { |
| 3590 | #endif |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3591 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3592 | EOF |
| 3593 | # Now generate the symbol file. |
| 3594 | eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3595 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3596 | cat <<EOF >> conftest.$ac_ext |
| 3597 | #if defined (__STDC__) && __STDC__ |
| 3598 | # define lt_ptr void * |
| 3599 | #else |
| 3600 | # define lt_ptr char * |
| 3601 | # define const |
| 3602 | #endif |
| 3603 | |
| 3604 | /* The mapping between symbol names and symbols. */ |
| 3605 | const struct { |
| 3606 | const char *name; |
| 3607 | lt_ptr address; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3608 | } |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3609 | lt_preloaded_symbols[] = |
| 3610 | { |
| 3611 | EOF |
| 3612 | sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext |
| 3613 | cat <<\EOF >> conftest.$ac_ext |
| 3614 | {0, (lt_ptr) 0} |
| 3615 | }; |
| 3616 | |
| 3617 | #ifdef __cplusplus |
| 3618 | } |
| 3619 | #endif |
| 3620 | EOF |
| 3621 | # Now try linking the two files. |
| 3622 | mv conftest.$ac_objext conftstm.$ac_objext |
| 3623 | save_LIBS="$LIBS" |
| 3624 | save_CFLAGS="$CFLAGS" |
| 3625 | LIBS="conftstm.$ac_objext" |
| 3626 | CFLAGS="$CFLAGS$no_builtin_flag" |
| 3627 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3628 | (eval $ac_link) 2>&5 |
| 3629 | ac_status=$? |
| 3630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3631 | (exit $ac_status); } && test -s conftest$ac_exeext; then |
| 3632 | pipe_works=yes |
| 3633 | fi |
| 3634 | LIBS="$save_LIBS" |
| 3635 | CFLAGS="$save_CFLAGS" |
| 3636 | else |
| 3637 | echo "cannot find nm_test_func in $nlist" >&5 |
| 3638 | fi |
| 3639 | else |
| 3640 | echo "cannot find nm_test_var in $nlist" >&5 |
| 3641 | fi |
| 3642 | else |
| 3643 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 3644 | fi |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3645 | else |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3646 | echo "$progname: failed program was:" >&5 |
| 3647 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3648 | fi |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3649 | rm -f conftest* conftst* |
| 3650 | |
| 3651 | # Do not use the global_symbol_pipe unless it works. |
| 3652 | if test "$pipe_works" = yes; then |
| 3653 | break |
| 3654 | else |
| 3655 | lt_cv_sys_global_symbol_pipe= |
| 3656 | fi |
| 3657 | done |
| 3658 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3659 | fi |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3660 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3661 | global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" |
| 3662 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 3663 | global_symbol_to_cdecl= |
| 3664 | global_symbol_to_c_name_address= |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3665 | else |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3666 | global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" |
| 3667 | global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3668 | fi |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3669 | if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; |
| 3670 | then |
| 3671 | echo "$as_me:$LINENO: result: failed" >&5 |
| 3672 | echo "${ECHO_T}failed" >&6 |
| 3673 | else |
| 3674 | echo "$as_me:$LINENO: result: ok" >&5 |
| 3675 | echo "${ECHO_T}ok" >&6 |
| 3676 | fi |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3677 | |
| 3678 | ac_ext=c |
| 3679 | ac_cpp='$CPP $CPPFLAGS' |
| 3680 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3681 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3682 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3683 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3684 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 3685 | # On Suns, sometimes $CPP names a directory. |
| 3686 | if test -n "$CPP" && test -d "$CPP"; then |
| 3687 | CPP= |
| 3688 | fi |
| 3689 | if test -z "$CPP"; then |
| 3690 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3692 | else |
| 3693 | # Double quotes because CPP needs to be expanded |
| 3694 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3695 | do |
| 3696 | ac_preproc_ok=false |
| 3697 | for ac_c_preproc_warn_flag in '' yes |
| 3698 | do |
| 3699 | # Use a header file that comes with gcc, so configuring glibc |
| 3700 | # with a fresh cross-compiler works. |
| 3701 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3702 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3703 | cat >conftest.$ac_ext <<_ACEOF |
| 3704 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 3705 | #include "confdefs.h" |
| 3706 | #include <assert.h> |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3707 | Syntax error |
| 3708 | _ACEOF |
| 3709 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3710 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3711 | ac_status=$? |
| 3712 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3713 | rm -f conftest.er1 |
| 3714 | cat conftest.err >&5 |
| 3715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3716 | (exit $ac_status); } >/dev/null; then |
| 3717 | if test -s conftest.err; then |
| 3718 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3719 | else |
| 3720 | ac_cpp_err= |
| 3721 | fi |
| 3722 | else |
| 3723 | ac_cpp_err=yes |
| 3724 | fi |
| 3725 | if test -z "$ac_cpp_err"; then |
| 3726 | : |
| 3727 | else |
| 3728 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 3729 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3730 | # Broken: fails on valid input. |
| 3731 | continue |
| 3732 | fi |
| 3733 | rm -f conftest.err conftest.$ac_ext |
| 3734 | |
| 3735 | # OK, works on sane cases. Now check whether non-existent headers |
| 3736 | # can be detected and how. |
| 3737 | cat >conftest.$ac_ext <<_ACEOF |
| 3738 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 3739 | #include "confdefs.h" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3740 | #include <ac_nonexistent.h> |
| 3741 | _ACEOF |
| 3742 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3743 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3744 | ac_status=$? |
| 3745 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3746 | rm -f conftest.er1 |
| 3747 | cat conftest.err >&5 |
| 3748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3749 | (exit $ac_status); } >/dev/null; then |
| 3750 | if test -s conftest.err; then |
| 3751 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3752 | else |
| 3753 | ac_cpp_err= |
| 3754 | fi |
| 3755 | else |
| 3756 | ac_cpp_err=yes |
| 3757 | fi |
| 3758 | if test -z "$ac_cpp_err"; then |
| 3759 | # Broken: success on invalid input. |
| 3760 | continue |
| 3761 | else |
| 3762 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 3763 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3764 | # Passes both tests. |
| 3765 | ac_preproc_ok=: |
| 3766 | break |
| 3767 | fi |
| 3768 | rm -f conftest.err conftest.$ac_ext |
| 3769 | |
| 3770 | done |
| 3771 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3772 | rm -f conftest.err conftest.$ac_ext |
| 3773 | if $ac_preproc_ok; then |
| 3774 | break |
| 3775 | fi |
| 3776 | |
| 3777 | done |
| 3778 | ac_cv_prog_CPP=$CPP |
| 3779 | |
| 3780 | fi |
| 3781 | CPP=$ac_cv_prog_CPP |
| 3782 | else |
| 3783 | ac_cv_prog_CPP=$CPP |
| 3784 | fi |
| 3785 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3786 | echo "${ECHO_T}$CPP" >&6 |
| 3787 | ac_preproc_ok=false |
| 3788 | for ac_c_preproc_warn_flag in '' yes |
| 3789 | do |
| 3790 | # Use a header file that comes with gcc, so configuring glibc |
| 3791 | # with a fresh cross-compiler works. |
| 3792 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3793 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3794 | cat >conftest.$ac_ext <<_ACEOF |
| 3795 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 3796 | #include "confdefs.h" |
| 3797 | #include <assert.h> |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3798 | Syntax error |
| 3799 | _ACEOF |
| 3800 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3801 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3802 | ac_status=$? |
| 3803 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3804 | rm -f conftest.er1 |
| 3805 | cat conftest.err >&5 |
| 3806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3807 | (exit $ac_status); } >/dev/null; then |
| 3808 | if test -s conftest.err; then |
| 3809 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3810 | else |
| 3811 | ac_cpp_err= |
| 3812 | fi |
| 3813 | else |
| 3814 | ac_cpp_err=yes |
| 3815 | fi |
| 3816 | if test -z "$ac_cpp_err"; then |
| 3817 | : |
| 3818 | else |
| 3819 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 3820 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3821 | # Broken: fails on valid input. |
| 3822 | continue |
| 3823 | fi |
| 3824 | rm -f conftest.err conftest.$ac_ext |
| 3825 | |
| 3826 | # OK, works on sane cases. Now check whether non-existent headers |
| 3827 | # can be detected and how. |
| 3828 | cat >conftest.$ac_ext <<_ACEOF |
| 3829 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 3830 | #include "confdefs.h" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3831 | #include <ac_nonexistent.h> |
| 3832 | _ACEOF |
| 3833 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3834 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3835 | ac_status=$? |
| 3836 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3837 | rm -f conftest.er1 |
| 3838 | cat conftest.err >&5 |
| 3839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3840 | (exit $ac_status); } >/dev/null; then |
| 3841 | if test -s conftest.err; then |
| 3842 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3843 | else |
| 3844 | ac_cpp_err= |
| 3845 | fi |
| 3846 | else |
| 3847 | ac_cpp_err=yes |
| 3848 | fi |
| 3849 | if test -z "$ac_cpp_err"; then |
| 3850 | # Broken: success on invalid input. |
| 3851 | continue |
| 3852 | else |
| 3853 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 3854 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3855 | # Passes both tests. |
| 3856 | ac_preproc_ok=: |
| 3857 | break |
| 3858 | fi |
| 3859 | rm -f conftest.err conftest.$ac_ext |
| 3860 | |
| 3861 | done |
| 3862 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3863 | rm -f conftest.err conftest.$ac_ext |
| 3864 | if $ac_preproc_ok; then |
| 3865 | : |
| 3866 | else |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 3867 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
| 3868 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3869 | { (exit 1); exit 1; }; } |
| 3870 | fi |
| 3871 | |
| 3872 | ac_ext=c |
| 3873 | ac_cpp='$CPP $CPPFLAGS' |
| 3874 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3875 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3876 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3877 | |
| 3878 | |
| 3879 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3880 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 3881 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 3882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3883 | else |
| 3884 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 3885 | then ac_cv_prog_egrep='grep -E' |
| 3886 | else ac_cv_prog_egrep='egrep' |
| 3887 | fi |
| 3888 | fi |
| 3889 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 3890 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 3891 | EGREP=$ac_cv_prog_egrep |
| 3892 | |
| 3893 | |
| 3894 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3895 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3896 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3898 | else |
| 3899 | cat >conftest.$ac_ext <<_ACEOF |
| 3900 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 3901 | #include "confdefs.h" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3902 | #include <stdlib.h> |
| 3903 | #include <stdarg.h> |
| 3904 | #include <string.h> |
| 3905 | #include <float.h> |
| 3906 | |
| 3907 | _ACEOF |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 3908 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3909 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3910 | ac_status=$? |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 3911 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3912 | rm -f conftest.er1 |
| 3913 | cat conftest.err >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 3915 | (exit $ac_status); } >/dev/null; then |
| 3916 | if test -s conftest.err; then |
| 3917 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3918 | else |
| 3919 | ac_cpp_err= |
| 3920 | fi |
| 3921 | else |
| 3922 | ac_cpp_err=yes |
| 3923 | fi |
| 3924 | if test -z "$ac_cpp_err"; then |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3925 | ac_cv_header_stdc=yes |
| 3926 | else |
| 3927 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 3928 | cat conftest.$ac_ext >&5 |
| 3929 | ac_cv_header_stdc=no |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3930 | fi |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 3931 | rm -f conftest.err conftest.$ac_ext |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3932 | |
| 3933 | if test $ac_cv_header_stdc = yes; then |
| 3934 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3935 | cat >conftest.$ac_ext <<_ACEOF |
| 3936 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 3937 | #include "confdefs.h" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3938 | #include <string.h> |
| 3939 | |
| 3940 | _ACEOF |
| 3941 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3942 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3943 | : |
| 3944 | else |
| 3945 | ac_cv_header_stdc=no |
| 3946 | fi |
| 3947 | rm -f conftest* |
| 3948 | |
| 3949 | fi |
| 3950 | |
| 3951 | if test $ac_cv_header_stdc = yes; then |
| 3952 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3953 | cat >conftest.$ac_ext <<_ACEOF |
| 3954 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 3955 | #include "confdefs.h" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3956 | #include <stdlib.h> |
| 3957 | |
| 3958 | _ACEOF |
| 3959 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3960 | $EGREP "free" >/dev/null 2>&1; then |
| 3961 | : |
| 3962 | else |
| 3963 | ac_cv_header_stdc=no |
| 3964 | fi |
| 3965 | rm -f conftest* |
| 3966 | |
| 3967 | fi |
| 3968 | |
| 3969 | if test $ac_cv_header_stdc = yes; then |
| 3970 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3971 | if test "$cross_compiling" = yes; then |
| 3972 | : |
| 3973 | else |
| 3974 | cat >conftest.$ac_ext <<_ACEOF |
| 3975 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 3976 | #include "confdefs.h" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3977 | #include <ctype.h> |
| 3978 | #if ((' ' & 0x0FF) == 0x020) |
| 3979 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3980 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3981 | #else |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 3982 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3983 | || ('j' <= (c) && (c) <= 'r') \ |
| 3984 | || ('s' <= (c) && (c) <= 'z')) |
| 3985 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3986 | #endif |
| 3987 | |
| 3988 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3989 | int |
| 3990 | main () |
| 3991 | { |
| 3992 | int i; |
| 3993 | for (i = 0; i < 256; i++) |
| 3994 | if (XOR (islower (i), ISLOWER (i)) |
| 3995 | || toupper (i) != TOUPPER (i)) |
| 3996 | exit(2); |
| 3997 | exit (0); |
| 3998 | } |
| 3999 | _ACEOF |
| 4000 | rm -f conftest$ac_exeext |
| 4001 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4002 | (eval $ac_link) 2>&5 |
| 4003 | ac_status=$? |
| 4004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4005 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4007 | (eval $ac_try) 2>&5 |
| 4008 | ac_status=$? |
| 4009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4010 | (exit $ac_status); }; }; then |
| 4011 | : |
| 4012 | else |
| 4013 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4014 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 4015 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4016 | ( exit $ac_status ) |
| 4017 | ac_cv_header_stdc=no |
| 4018 | fi |
| 4019 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4020 | fi |
| 4021 | fi |
| 4022 | fi |
| 4023 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4024 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 4025 | if test $ac_cv_header_stdc = yes; then |
| 4026 | |
| 4027 | cat >>confdefs.h <<\_ACEOF |
| 4028 | #define STDC_HEADERS 1 |
| 4029 | _ACEOF |
| 4030 | |
| 4031 | fi |
| 4032 | |
| 4033 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4034 | |
| 4035 | |
| 4036 | |
| 4037 | |
| 4038 | |
| 4039 | |
| 4040 | |
| 4041 | |
| 4042 | |
| 4043 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4044 | inttypes.h stdint.h unistd.h |
| 4045 | do |
| 4046 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4047 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4048 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4049 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4051 | else |
| 4052 | cat >conftest.$ac_ext <<_ACEOF |
| 4053 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 4054 | #include "confdefs.h" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4055 | $ac_includes_default |
| 4056 | |
| 4057 | #include <$ac_header> |
| 4058 | _ACEOF |
| 4059 | rm -f conftest.$ac_objext |
| 4060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4061 | (eval $ac_compile) 2>&5 |
| 4062 | ac_status=$? |
| 4063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4064 | (exit $ac_status); } && |
| 4065 | { ac_try='test -s conftest.$ac_objext' |
| 4066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4067 | (eval $ac_try) 2>&5 |
| 4068 | ac_status=$? |
| 4069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4070 | (exit $ac_status); }; }; then |
| 4071 | eval "$as_ac_Header=yes" |
| 4072 | else |
| 4073 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 4074 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4075 | eval "$as_ac_Header=no" |
| 4076 | fi |
| 4077 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4078 | fi |
| 4079 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4080 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4081 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4082 | cat >>confdefs.h <<_ACEOF |
| 4083 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4084 | _ACEOF |
| 4085 | |
| 4086 | fi |
| 4087 | |
| 4088 | done |
| 4089 | |
| 4090 | |
| 4091 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4092 | for ac_header in dlfcn.h |
| 4093 | do |
| 4094 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4095 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4096 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4097 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4098 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4100 | fi |
| 4101 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4102 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4103 | else |
| 4104 | # Is the header compilable? |
| 4105 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4106 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4107 | cat >conftest.$ac_ext <<_ACEOF |
| 4108 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 4109 | #include "confdefs.h" |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4110 | $ac_includes_default |
| 4111 | #include <$ac_header> |
| 4112 | _ACEOF |
| 4113 | rm -f conftest.$ac_objext |
| 4114 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4115 | (eval $ac_compile) 2>&5 |
| 4116 | ac_status=$? |
| 4117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4118 | (exit $ac_status); } && |
| 4119 | { ac_try='test -s conftest.$ac_objext' |
| 4120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4121 | (eval $ac_try) 2>&5 |
| 4122 | ac_status=$? |
| 4123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4124 | (exit $ac_status); }; }; then |
| 4125 | ac_header_compiler=yes |
| 4126 | else |
| 4127 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 4128 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4129 | ac_header_compiler=no |
| 4130 | fi |
| 4131 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4132 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4133 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4134 | |
| 4135 | # Is the header present? |
| 4136 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4137 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4138 | cat >conftest.$ac_ext <<_ACEOF |
| 4139 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 4140 | #include "confdefs.h" |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4141 | #include <$ac_header> |
| 4142 | _ACEOF |
| 4143 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4144 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4145 | ac_status=$? |
| 4146 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4147 | rm -f conftest.er1 |
| 4148 | cat conftest.err >&5 |
| 4149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4150 | (exit $ac_status); } >/dev/null; then |
| 4151 | if test -s conftest.err; then |
| 4152 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4153 | else |
| 4154 | ac_cpp_err= |
| 4155 | fi |
| 4156 | else |
| 4157 | ac_cpp_err=yes |
| 4158 | fi |
| 4159 | if test -z "$ac_cpp_err"; then |
| 4160 | ac_header_preproc=yes |
| 4161 | else |
| 4162 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 4163 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4164 | ac_header_preproc=no |
| 4165 | fi |
| 4166 | rm -f conftest.err conftest.$ac_ext |
| 4167 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4168 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4169 | |
| 4170 | # So? What about this header? |
| 4171 | case $ac_header_compiler:$ac_header_preproc in |
| 4172 | yes:no ) |
| 4173 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4174 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4175 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 4176 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4177 | no:yes ) |
| 4178 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4179 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4180 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4181 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4182 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 4183 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4184 | esac |
| 4185 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4186 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4187 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4189 | else |
| 4190 | eval "$as_ac_Header=$ac_header_preproc" |
| 4191 | fi |
| 4192 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4193 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4194 | |
| 4195 | fi |
| 4196 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4197 | cat >>confdefs.h <<_ACEOF |
| 4198 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4199 | _ACEOF |
| 4200 | |
| 4201 | fi |
| 4202 | |
| 4203 | done |
| 4204 | |
| 4205 | |
| 4206 | |
| 4207 | |
| 4208 | |
| 4209 | |
| 4210 | # Only perform the check for file, if the check method requires it |
| 4211 | case $deplibs_check_method in |
| 4212 | file_magic*) |
| 4213 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 4214 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 4215 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
| 4216 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 4217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4218 | else |
| 4219 | case $MAGIC_CMD in |
| 4220 | /*) |
| 4221 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 4222 | ;; |
| 4223 | ?:/*) |
| 4224 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
| 4225 | ;; |
| 4226 | *) |
| 4227 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
| 4228 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4229 | ac_dummy="/usr/bin:$PATH" |
| 4230 | for ac_dir in $ac_dummy; do |
| 4231 | test -z "$ac_dir" && ac_dir=. |
| 4232 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 4233 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 4234 | if test -n "$file_magic_test_file"; then |
| 4235 | case $deplibs_check_method in |
| 4236 | "file_magic "*) |
| 4237 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 4238 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 4239 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 4240 | egrep "$file_magic_regex" > /dev/null; then |
| 4241 | : |
| 4242 | else |
| 4243 | cat <<EOF 1>&2 |
| 4244 | |
| 4245 | *** Warning: the command libtool uses to detect shared libraries, |
| 4246 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 4247 | *** The result is that libtool may fail to recognize shared libraries |
| 4248 | *** as such. This will affect the creation of libtool libraries that |
| 4249 | *** depend on shared libraries, but programs linked with such libtool |
| 4250 | *** libraries will work regardless of this problem. Nevertheless, you |
| 4251 | *** may want to report the problem to your system manager and/or to |
| 4252 | *** bug-libtool@gnu.org |
| 4253 | |
| 4254 | EOF |
| 4255 | fi ;; |
| 4256 | esac |
| 4257 | fi |
| 4258 | break |
| 4259 | fi |
| 4260 | done |
| 4261 | IFS="$ac_save_ifs" |
| 4262 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
| 4263 | ;; |
| 4264 | esac |
| 4265 | fi |
| 4266 | |
| 4267 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 4268 | if test -n "$MAGIC_CMD"; then |
| 4269 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 4270 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 4271 | else |
| 4272 | echo "$as_me:$LINENO: result: no" >&5 |
| 4273 | echo "${ECHO_T}no" >&6 |
| 4274 | fi |
| 4275 | |
| 4276 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 4277 | if test -n "$ac_tool_prefix"; then |
| 4278 | echo "$as_me:$LINENO: checking for file" >&5 |
| 4279 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
| 4280 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 4281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4282 | else |
| 4283 | case $MAGIC_CMD in |
| 4284 | /*) |
| 4285 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 4286 | ;; |
| 4287 | ?:/*) |
| 4288 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
| 4289 | ;; |
| 4290 | *) |
| 4291 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
| 4292 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4293 | ac_dummy="/usr/bin:$PATH" |
| 4294 | for ac_dir in $ac_dummy; do |
| 4295 | test -z "$ac_dir" && ac_dir=. |
| 4296 | if test -f $ac_dir/file; then |
| 4297 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 4298 | if test -n "$file_magic_test_file"; then |
| 4299 | case $deplibs_check_method in |
| 4300 | "file_magic "*) |
| 4301 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 4302 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 4303 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 4304 | egrep "$file_magic_regex" > /dev/null; then |
| 4305 | : |
| 4306 | else |
| 4307 | cat <<EOF 1>&2 |
| 4308 | |
| 4309 | *** Warning: the command libtool uses to detect shared libraries, |
| 4310 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 4311 | *** The result is that libtool may fail to recognize shared libraries |
| 4312 | *** as such. This will affect the creation of libtool libraries that |
| 4313 | *** depend on shared libraries, but programs linked with such libtool |
| 4314 | *** libraries will work regardless of this problem. Nevertheless, you |
| 4315 | *** may want to report the problem to your system manager and/or to |
| 4316 | *** bug-libtool@gnu.org |
| 4317 | |
| 4318 | EOF |
| 4319 | fi ;; |
| 4320 | esac |
| 4321 | fi |
| 4322 | break |
| 4323 | fi |
| 4324 | done |
| 4325 | IFS="$ac_save_ifs" |
| 4326 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
| 4327 | ;; |
| 4328 | esac |
| 4329 | fi |
| 4330 | |
| 4331 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 4332 | if test -n "$MAGIC_CMD"; then |
| 4333 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 4334 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 4335 | else |
| 4336 | echo "$as_me:$LINENO: result: no" >&5 |
| 4337 | echo "${ECHO_T}no" >&6 |
| 4338 | fi |
| 4339 | |
| 4340 | else |
| 4341 | MAGIC_CMD=: |
| 4342 | fi |
| 4343 | fi |
| 4344 | |
| 4345 | fi |
| 4346 | ;; |
| 4347 | esac |
| 4348 | |
| 4349 | if test -n "$ac_tool_prefix"; then |
| 4350 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4351 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 4352 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4353 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4354 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4356 | else |
| 4357 | if test -n "$RANLIB"; then |
| 4358 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4359 | else |
| 4360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4361 | for as_dir in $PATH |
| 4362 | do |
| 4363 | IFS=$as_save_IFS |
| 4364 | test -z "$as_dir" && as_dir=. |
| 4365 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4366 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4367 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4368 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4369 | break 2 |
| 4370 | fi |
| 4371 | done |
| 4372 | done |
| 4373 | |
| 4374 | fi |
| 4375 | fi |
| 4376 | RANLIB=$ac_cv_prog_RANLIB |
| 4377 | if test -n "$RANLIB"; then |
| 4378 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4379 | echo "${ECHO_T}$RANLIB" >&6 |
| 4380 | else |
| 4381 | echo "$as_me:$LINENO: result: no" >&5 |
| 4382 | echo "${ECHO_T}no" >&6 |
| 4383 | fi |
| 4384 | |
| 4385 | fi |
| 4386 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4387 | ac_ct_RANLIB=$RANLIB |
| 4388 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4389 | set dummy ranlib; ac_word=$2 |
| 4390 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4391 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4392 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4394 | else |
| 4395 | if test -n "$ac_ct_RANLIB"; then |
| 4396 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4397 | else |
| 4398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4399 | for as_dir in $PATH |
| 4400 | do |
| 4401 | IFS=$as_save_IFS |
| 4402 | test -z "$as_dir" && as_dir=. |
| 4403 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4404 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4405 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4406 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4407 | break 2 |
| 4408 | fi |
| 4409 | done |
| 4410 | done |
| 4411 | |
| 4412 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 4413 | fi |
| 4414 | fi |
| 4415 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4416 | if test -n "$ac_ct_RANLIB"; then |
| 4417 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4418 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 4419 | else |
| 4420 | echo "$as_me:$LINENO: result: no" >&5 |
| 4421 | echo "${ECHO_T}no" >&6 |
| 4422 | fi |
| 4423 | |
| 4424 | RANLIB=$ac_ct_RANLIB |
| 4425 | else |
| 4426 | RANLIB="$ac_cv_prog_RANLIB" |
| 4427 | fi |
| 4428 | |
| 4429 | if test -n "$ac_tool_prefix"; then |
| 4430 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 4431 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 4432 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4433 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4434 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 4435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4436 | else |
| 4437 | if test -n "$STRIP"; then |
| 4438 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 4439 | else |
| 4440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4441 | for as_dir in $PATH |
| 4442 | do |
| 4443 | IFS=$as_save_IFS |
| 4444 | test -z "$as_dir" && as_dir=. |
| 4445 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4446 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4447 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 4448 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4449 | break 2 |
| 4450 | fi |
| 4451 | done |
| 4452 | done |
| 4453 | |
| 4454 | fi |
| 4455 | fi |
| 4456 | STRIP=$ac_cv_prog_STRIP |
| 4457 | if test -n "$STRIP"; then |
| 4458 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 4459 | echo "${ECHO_T}$STRIP" >&6 |
| 4460 | else |
| 4461 | echo "$as_me:$LINENO: result: no" >&5 |
| 4462 | echo "${ECHO_T}no" >&6 |
| 4463 | fi |
| 4464 | |
| 4465 | fi |
| 4466 | if test -z "$ac_cv_prog_STRIP"; then |
| 4467 | ac_ct_STRIP=$STRIP |
| 4468 | # Extract the first word of "strip", so it can be a program name with args. |
| 4469 | set dummy strip; ac_word=$2 |
| 4470 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4471 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4472 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 4473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4474 | else |
| 4475 | if test -n "$ac_ct_STRIP"; then |
| 4476 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 4477 | else |
| 4478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4479 | for as_dir in $PATH |
| 4480 | do |
| 4481 | IFS=$as_save_IFS |
| 4482 | test -z "$as_dir" && as_dir=. |
| 4483 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4484 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4485 | ac_cv_prog_ac_ct_STRIP="strip" |
| 4486 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4487 | break 2 |
| 4488 | fi |
| 4489 | done |
| 4490 | done |
| 4491 | |
| 4492 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 4493 | fi |
| 4494 | fi |
| 4495 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 4496 | if test -n "$ac_ct_STRIP"; then |
| 4497 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 4498 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 4499 | else |
| 4500 | echo "$as_me:$LINENO: result: no" >&5 |
| 4501 | echo "${ECHO_T}no" >&6 |
| 4502 | fi |
| 4503 | |
| 4504 | STRIP=$ac_ct_STRIP |
| 4505 | else |
| 4506 | STRIP="$ac_cv_prog_STRIP" |
| 4507 | fi |
| 4508 | |
| 4509 | |
| 4510 | enable_dlopen=no |
| 4511 | enable_win32_dll=no |
| 4512 | |
| 4513 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 4514 | if test "${enable_libtool_lock+set}" = set; then |
| 4515 | enableval="$enable_libtool_lock" |
| 4516 | |
| 4517 | fi; |
| 4518 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 4519 | |
| 4520 | # Some flags need to be propagated to the compiler or linker for good |
| 4521 | # libtool support. |
| 4522 | case $host in |
| 4523 | *-*-irix6*) |
| 4524 | # Find out which ABI we are using. |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 4525 | echo '#line 4525 "configure"' > conftest.$ac_ext |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4526 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4527 | (eval $ac_compile) 2>&5 |
| 4528 | ac_status=$? |
| 4529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4530 | (exit $ac_status); }; then |
| 4531 | case `/usr/bin/file conftest.$ac_objext` in |
| 4532 | *32-bit*) |
| 4533 | LD="${LD-ld} -32" |
| 4534 | ;; |
| 4535 | *N32*) |
| 4536 | LD="${LD-ld} -n32" |
| 4537 | ;; |
| 4538 | *64-bit*) |
| 4539 | LD="${LD-ld} -64" |
| 4540 | ;; |
| 4541 | esac |
| 4542 | fi |
| 4543 | rm -rf conftest* |
| 4544 | ;; |
| 4545 | |
| 4546 | *-*-sco3.2v5*) |
| 4547 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 4548 | SAVE_CFLAGS="$CFLAGS" |
| 4549 | CFLAGS="$CFLAGS -belf" |
| 4550 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 4551 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
| 4552 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 4553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4554 | else |
| 4555 | |
| 4556 | |
| 4557 | ac_ext=c |
| 4558 | ac_cpp='$CPP $CPPFLAGS' |
| 4559 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4560 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4561 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4562 | |
| 4563 | cat >conftest.$ac_ext <<_ACEOF |
| 4564 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 4565 | #include "confdefs.h" |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4566 | |
| 4567 | int |
| 4568 | main () |
| 4569 | { |
| 4570 | |
| 4571 | ; |
| 4572 | return 0; |
| 4573 | } |
| 4574 | _ACEOF |
| 4575 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4576 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4577 | (eval $ac_link) 2>&5 |
| 4578 | ac_status=$? |
| 4579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4580 | (exit $ac_status); } && |
| 4581 | { ac_try='test -s conftest$ac_exeext' |
| 4582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4583 | (eval $ac_try) 2>&5 |
| 4584 | ac_status=$? |
| 4585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4586 | (exit $ac_status); }; }; then |
| 4587 | lt_cv_cc_needs_belf=yes |
| 4588 | else |
| 4589 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 4590 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4591 | lt_cv_cc_needs_belf=no |
| 4592 | fi |
| 4593 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4594 | ac_ext=c |
| 4595 | ac_cpp='$CPP $CPPFLAGS' |
| 4596 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4597 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4598 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4599 | |
| 4600 | fi |
| 4601 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 4602 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
| 4603 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 4604 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 4605 | CFLAGS="$SAVE_CFLAGS" |
| 4606 | fi |
| 4607 | ;; |
| 4608 | |
| 4609 | |
| 4610 | esac |
| 4611 | |
| 4612 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 4613 | # metacharacters that are still active within double-quoted strings. |
| 4614 | Xsed='sed -e s/^X//' |
| 4615 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 4616 | |
| 4617 | # Same as above, but do not quote variable references. |
| 4618 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 4619 | |
| 4620 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 4621 | # double_quote_subst'ed string. |
| 4622 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 4623 | |
| 4624 | # Constants: |
| 4625 | rm="rm -f" |
| 4626 | |
| 4627 | # Global variables: |
| 4628 | default_ofile=libtool |
| 4629 | can_build_shared=yes |
| 4630 | |
| 4631 | # All known linkers require a `.a' archive for static linking (except M$VC, |
| 4632 | # which needs '.lib'). |
| 4633 | libext=a |
| 4634 | ltmain="$ac_aux_dir/ltmain.sh" |
| 4635 | ofile="$default_ofile" |
| 4636 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 4637 | need_locks="$enable_libtool_lock" |
| 4638 | |
| 4639 | old_CC="$CC" |
| 4640 | old_CFLAGS="$CFLAGS" |
| 4641 | |
| 4642 | # Set sane defaults for various variables |
| 4643 | test -z "$AR" && AR=ar |
| 4644 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 4645 | test -z "$AS" && AS=as |
| 4646 | test -z "$CC" && CC=cc |
| 4647 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 4648 | test -z "$LD" && LD=ld |
| 4649 | test -z "$LN_S" && LN_S="ln -s" |
| 4650 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 4651 | test -z "$NM" && NM=nm |
| 4652 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 4653 | test -z "$RANLIB" && RANLIB=: |
| 4654 | test -z "$STRIP" && STRIP=: |
| 4655 | test -z "$ac_objext" && ac_objext=o |
| 4656 | |
| 4657 | if test x"$host" != x"$build"; then |
| 4658 | ac_tool_prefix=${host_alias}- |
| 4659 | else |
| 4660 | ac_tool_prefix= |
| 4661 | fi |
| 4662 | |
| 4663 | # Transform linux* to *-*-linux-gnu*, to support old configure scripts. |
| 4664 | case $host_os in |
| 4665 | linux-gnu*) ;; |
| 4666 | linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` |
| 4667 | esac |
| 4668 | |
| 4669 | case $host_os in |
| 4670 | aix3*) |
| 4671 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 4672 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 4673 | # vanish in a puff of smoke. |
| 4674 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 4675 | COLLECT_NAMES= |
| 4676 | export COLLECT_NAMES |
| 4677 | fi |
| 4678 | ;; |
| 4679 | esac |
| 4680 | |
| 4681 | # Determine commands to create old-style static archives. |
| 4682 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 4683 | old_postinstall_cmds='chmod 644 $oldlib' |
| 4684 | old_postuninstall_cmds= |
| 4685 | |
| 4686 | if test -n "$RANLIB"; then |
| 4687 | case $host_os in |
| 4688 | openbsd*) |
| 4689 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
| 4690 | ;; |
| 4691 | *) |
| 4692 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
| 4693 | ;; |
| 4694 | esac |
| 4695 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 4696 | fi |
| 4697 | |
| 4698 | # Allow CC to be a program name with arguments. |
| 4699 | set dummy $CC |
| 4700 | compiler="$2" |
| 4701 | |
| 4702 | echo "$as_me:$LINENO: checking for objdir" >&5 |
| 4703 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| 4704 | rm -f .libs 2>/dev/null |
| 4705 | mkdir .libs 2>/dev/null |
| 4706 | if test -d .libs; then |
| 4707 | objdir=.libs |
| 4708 | else |
| 4709 | # MS-DOS does not allow filenames that begin with a dot. |
| 4710 | objdir=_libs |
| 4711 | fi |
| 4712 | rmdir .libs 2>/dev/null |
| 4713 | echo "$as_me:$LINENO: result: $objdir" >&5 |
| 4714 | echo "${ECHO_T}$objdir" >&6 |
| 4715 | |
| 4716 | |
| 4717 | |
| 4718 | # Check whether --with-pic or --without-pic was given. |
| 4719 | if test "${with_pic+set}" = set; then |
| 4720 | withval="$with_pic" |
| 4721 | pic_mode="$withval" |
| 4722 | else |
| 4723 | pic_mode=default |
| 4724 | fi; |
| 4725 | test -z "$pic_mode" && pic_mode=default |
| 4726 | |
| 4727 | # We assume here that the value for lt_cv_prog_cc_pic will not be cached |
| 4728 | # in isolation, and that seeing it set (from the cache) indicates that |
| 4729 | # the associated values are set (in the cache) correctly too. |
| 4730 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 4731 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 4732 | if test "${lt_cv_prog_cc_pic+set}" = set; then |
| 4733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4734 | else |
| 4735 | lt_cv_prog_cc_pic= |
| 4736 | lt_cv_prog_cc_shlib= |
| 4737 | lt_cv_prog_cc_wl= |
| 4738 | lt_cv_prog_cc_static= |
| 4739 | lt_cv_prog_cc_no_builtin= |
| 4740 | lt_cv_prog_cc_can_build_shared=$can_build_shared |
| 4741 | |
| 4742 | if test "$GCC" = yes; then |
| 4743 | lt_cv_prog_cc_wl='-Wl,' |
| 4744 | lt_cv_prog_cc_static='-static' |
| 4745 | |
| 4746 | case $host_os in |
| 4747 | aix*) |
| 4748 | # Below there is a dirty hack to force normal static linking with -ldl |
| 4749 | # The problem is because libdl dynamically linked with both libc and |
| 4750 | # libC (AIX C++ library), which obviously doesn't included in libraries |
| 4751 | # list by gcc. This cause undefined symbols with -static flags. |
| 4752 | # This hack allows C programs to be linked with "-static -ldl", but |
| 4753 | # not sure about C++ programs. |
| 4754 | lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" |
| 4755 | ;; |
| 4756 | amigaos*) |
| 4757 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 4758 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 4759 | # like `-m68040'. |
| 4760 | lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' |
| 4761 | ;; |
| 4762 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 4763 | # PIC is the default for these OSes. |
| 4764 | ;; |
| 4765 | darwin* | rhapsody*) |
| 4766 | # PIC is the default on this platform |
| 4767 | # Common symbols not allowed in MH_DYLIB files |
| 4768 | lt_cv_prog_cc_pic='-fno-common' |
| 4769 | ;; |
| 4770 | cygwin* | mingw* | pw32* | os2*) |
| 4771 | # This hack is so that the source file can tell whether it is being |
| 4772 | # built for inclusion in a dll (and should export symbols for example). |
| 4773 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
| 4774 | ;; |
| 4775 | sysv4*MP*) |
| 4776 | if test -d /usr/nec; then |
| 4777 | lt_cv_prog_cc_pic=-Kconform_pic |
| 4778 | fi |
| 4779 | ;; |
| 4780 | *) |
| 4781 | lt_cv_prog_cc_pic='-fPIC' |
| 4782 | ;; |
| 4783 | esac |
| 4784 | else |
| 4785 | # PORTME Check for PIC flags for the system compiler. |
| 4786 | case $host_os in |
| 4787 | aix3* | aix4* | aix5*) |
| 4788 | lt_cv_prog_cc_wl='-Wl,' |
| 4789 | # All AIX code is PIC. |
| 4790 | if test "$host_cpu" = ia64; then |
| 4791 | # AIX 5 now supports IA64 processor |
| 4792 | lt_cv_prog_cc_static='-Bstatic' |
| 4793 | else |
| 4794 | lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' |
| 4795 | fi |
| 4796 | ;; |
| 4797 | |
| 4798 | hpux9* | hpux10* | hpux11*) |
| 4799 | # Is there a better lt_cv_prog_cc_static that works with the bundled CC? |
| 4800 | lt_cv_prog_cc_wl='-Wl,' |
| 4801 | lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" |
| 4802 | lt_cv_prog_cc_pic='+Z' |
| 4803 | ;; |
| 4804 | |
| 4805 | irix5* | irix6* | nonstopux*) |
| 4806 | lt_cv_prog_cc_wl='-Wl,' |
| 4807 | lt_cv_prog_cc_static='-non_shared' |
| 4808 | # PIC (with -KPIC) is the default. |
| 4809 | ;; |
| 4810 | |
| 4811 | cygwin* | mingw* | pw32* | os2*) |
| 4812 | # This hack is so that the source file can tell whether it is being |
| 4813 | # built for inclusion in a dll (and should export symbols for example). |
| 4814 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
| 4815 | ;; |
| 4816 | |
| 4817 | newsos6) |
| 4818 | lt_cv_prog_cc_pic='-KPIC' |
| 4819 | lt_cv_prog_cc_static='-Bstatic' |
| 4820 | ;; |
| 4821 | |
| 4822 | osf3* | osf4* | osf5*) |
| 4823 | # All OSF/1 code is PIC. |
| 4824 | lt_cv_prog_cc_wl='-Wl,' |
| 4825 | lt_cv_prog_cc_static='-non_shared' |
| 4826 | ;; |
| 4827 | |
| 4828 | sco3.2v5*) |
| 4829 | lt_cv_prog_cc_pic='-Kpic' |
| 4830 | lt_cv_prog_cc_static='-dn' |
| 4831 | lt_cv_prog_cc_shlib='-belf' |
| 4832 | ;; |
| 4833 | |
| 4834 | solaris*) |
| 4835 | lt_cv_prog_cc_pic='-KPIC' |
| 4836 | lt_cv_prog_cc_static='-Bstatic' |
| 4837 | lt_cv_prog_cc_wl='-Wl,' |
| 4838 | ;; |
| 4839 | |
| 4840 | sunos4*) |
| 4841 | lt_cv_prog_cc_pic='-PIC' |
| 4842 | lt_cv_prog_cc_static='-Bstatic' |
| 4843 | lt_cv_prog_cc_wl='-Qoption ld ' |
| 4844 | ;; |
| 4845 | |
| 4846 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 4847 | lt_cv_prog_cc_pic='-KPIC' |
| 4848 | lt_cv_prog_cc_static='-Bstatic' |
| 4849 | lt_cv_prog_cc_wl='-Wl,' |
| 4850 | ;; |
| 4851 | |
| 4852 | uts4*) |
| 4853 | lt_cv_prog_cc_pic='-pic' |
| 4854 | lt_cv_prog_cc_static='-Bstatic' |
| 4855 | ;; |
| 4856 | |
| 4857 | sysv4*MP*) |
| 4858 | if test -d /usr/nec ;then |
| 4859 | lt_cv_prog_cc_pic='-Kconform_pic' |
| 4860 | lt_cv_prog_cc_static='-Bstatic' |
| 4861 | fi |
| 4862 | ;; |
| 4863 | |
| 4864 | *) |
| 4865 | lt_cv_prog_cc_can_build_shared=no |
| 4866 | ;; |
| 4867 | esac |
| 4868 | fi |
| 4869 | |
| 4870 | fi |
| 4871 | |
| 4872 | if test -z "$lt_cv_prog_cc_pic"; then |
| 4873 | echo "$as_me:$LINENO: result: none" >&5 |
| 4874 | echo "${ECHO_T}none" >&6 |
| 4875 | else |
| 4876 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5 |
| 4877 | echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6 |
| 4878 | |
| 4879 | # Check to make sure the pic_flag actually works. |
| 4880 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 |
| 4881 | echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6 |
| 4882 | if test "${lt_cv_prog_cc_pic_works+set}" = set; then |
| 4883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4884 | else |
| 4885 | save_CFLAGS="$CFLAGS" |
| 4886 | CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" |
| 4887 | cat >conftest.$ac_ext <<_ACEOF |
| 4888 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 4889 | #include "confdefs.h" |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4890 | |
| 4891 | int |
| 4892 | main () |
| 4893 | { |
| 4894 | |
| 4895 | ; |
| 4896 | return 0; |
| 4897 | } |
| 4898 | _ACEOF |
| 4899 | rm -f conftest.$ac_objext |
| 4900 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4901 | (eval $ac_compile) 2>&5 |
| 4902 | ac_status=$? |
| 4903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4904 | (exit $ac_status); } && |
| 4905 | { ac_try='test -s conftest.$ac_objext' |
| 4906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4907 | (eval $ac_try) 2>&5 |
| 4908 | ac_status=$? |
| 4909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4910 | (exit $ac_status); }; }; then |
| 4911 | case $host_os in |
| 4912 | hpux9* | hpux10* | hpux11*) |
| 4913 | # On HP-UX, both CC and GCC only warn that PIC is supported... then |
| 4914 | # they create non-PIC objects. So, if there were any warnings, we |
| 4915 | # assume that PIC is not supported. |
| 4916 | if test -s conftest.err; then |
| 4917 | lt_cv_prog_cc_pic_works=no |
| 4918 | else |
| 4919 | lt_cv_prog_cc_pic_works=yes |
| 4920 | fi |
| 4921 | ;; |
| 4922 | *) |
| 4923 | lt_cv_prog_cc_pic_works=yes |
| 4924 | ;; |
| 4925 | esac |
| 4926 | |
| 4927 | else |
| 4928 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 4929 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4930 | lt_cv_prog_cc_pic_works=no |
| 4931 | |
| 4932 | fi |
| 4933 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4934 | CFLAGS="$save_CFLAGS" |
| 4935 | |
| 4936 | fi |
| 4937 | |
| 4938 | |
| 4939 | if test "X$lt_cv_prog_cc_pic_works" = Xno; then |
| 4940 | lt_cv_prog_cc_pic= |
| 4941 | lt_cv_prog_cc_can_build_shared=no |
| 4942 | else |
| 4943 | lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" |
| 4944 | fi |
| 4945 | |
| 4946 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5 |
| 4947 | echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6 |
| 4948 | fi |
| 4949 | |
| 4950 | # Check for any special shared library compilation flags. |
| 4951 | if test -n "$lt_cv_prog_cc_shlib"; then |
| 4952 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5 |
| 4953 | echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;} |
| 4954 | if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : |
| 4955 | else |
| 4956 | { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
| 4957 | echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
| 4958 | lt_cv_prog_cc_can_build_shared=no |
| 4959 | fi |
| 4960 | fi |
| 4961 | |
| 4962 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 |
| 4963 | echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 |
| 4964 | if test "${lt_cv_prog_cc_static_works+set}" = set; then |
| 4965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4966 | else |
| 4967 | lt_cv_prog_cc_static_works=no |
| 4968 | save_LDFLAGS="$LDFLAGS" |
| 4969 | LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" |
| 4970 | cat >conftest.$ac_ext <<_ACEOF |
| 4971 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 4972 | #include "confdefs.h" |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4973 | |
| 4974 | int |
| 4975 | main () |
| 4976 | { |
| 4977 | |
| 4978 | ; |
| 4979 | return 0; |
| 4980 | } |
| 4981 | _ACEOF |
| 4982 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4983 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4984 | (eval $ac_link) 2>&5 |
| 4985 | ac_status=$? |
| 4986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4987 | (exit $ac_status); } && |
| 4988 | { ac_try='test -s conftest$ac_exeext' |
| 4989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4990 | (eval $ac_try) 2>&5 |
| 4991 | ac_status=$? |
| 4992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4993 | (exit $ac_status); }; }; then |
| 4994 | lt_cv_prog_cc_static_works=yes |
| 4995 | else |
| 4996 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 4997 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4998 | fi |
| 4999 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5000 | LDFLAGS="$save_LDFLAGS" |
| 5001 | |
| 5002 | fi |
| 5003 | |
| 5004 | |
| 5005 | # Belt *and* braces to stop my trousers falling down: |
| 5006 | test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= |
| 5007 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5 |
| 5008 | echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6 |
| 5009 | |
| 5010 | pic_flag="$lt_cv_prog_cc_pic" |
| 5011 | special_shlib_compile_flags="$lt_cv_prog_cc_shlib" |
| 5012 | wl="$lt_cv_prog_cc_wl" |
| 5013 | link_static_flag="$lt_cv_prog_cc_static" |
| 5014 | no_builtin_flag="$lt_cv_prog_cc_no_builtin" |
| 5015 | can_build_shared="$lt_cv_prog_cc_can_build_shared" |
| 5016 | |
| 5017 | |
| 5018 | # Check to see if options -o and -c are simultaneously supported by compiler |
| 5019 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 5020 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 5021 | if test "${lt_cv_compiler_c_o+set}" = set; then |
| 5022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5023 | else |
| 5024 | |
| 5025 | $rm -r conftest 2>/dev/null |
| 5026 | mkdir conftest |
| 5027 | cd conftest |
| 5028 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 5029 | mkdir out |
| 5030 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 5031 | # that will create temporary files in the current directory regardless of |
| 5032 | # the output directory. Thus, making CWD read-only will cause this test |
| 5033 | # to fail, enabling locking or at least warning the user not to do parallel |
| 5034 | # builds. |
| 5035 | chmod -w . |
| 5036 | save_CFLAGS="$CFLAGS" |
| 5037 | CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" |
| 5038 | compiler_c_o=no |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 5039 | if { (eval echo configure:5039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 5040 | # The compiler can only warn and ignore the option if not recognized |
| 5041 | # So say no if there are warnings |
| 5042 | if test -s out/conftest.err; then |
| 5043 | lt_cv_compiler_c_o=no |
| 5044 | else |
| 5045 | lt_cv_compiler_c_o=yes |
| 5046 | fi |
| 5047 | else |
| 5048 | # Append any errors to the config.log. |
| 5049 | cat out/conftest.err 1>&5 |
| 5050 | lt_cv_compiler_c_o=no |
| 5051 | fi |
| 5052 | CFLAGS="$save_CFLAGS" |
| 5053 | chmod u+w . |
| 5054 | $rm conftest* out/* |
| 5055 | rmdir out |
| 5056 | cd .. |
| 5057 | rmdir conftest |
| 5058 | $rm -r conftest 2>/dev/null |
| 5059 | |
| 5060 | fi |
| 5061 | |
| 5062 | compiler_c_o=$lt_cv_compiler_c_o |
| 5063 | echo "$as_me:$LINENO: result: $compiler_c_o" >&5 |
| 5064 | echo "${ECHO_T}$compiler_c_o" >&6 |
| 5065 | |
| 5066 | if test x"$compiler_c_o" = x"yes"; then |
| 5067 | # Check to see if we can write to a .lo |
| 5068 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5 |
| 5069 | echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6 |
| 5070 | if test "${lt_cv_compiler_o_lo+set}" = set; then |
| 5071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5072 | else |
| 5073 | |
| 5074 | lt_cv_compiler_o_lo=no |
| 5075 | save_CFLAGS="$CFLAGS" |
| 5076 | CFLAGS="$CFLAGS -c -o conftest.lo" |
| 5077 | save_objext="$ac_objext" |
| 5078 | ac_objext=lo |
| 5079 | cat >conftest.$ac_ext <<_ACEOF |
| 5080 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 5081 | #include "confdefs.h" |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 5082 | |
| 5083 | int |
| 5084 | main () |
| 5085 | { |
| 5086 | int some_variable = 0; |
| 5087 | ; |
| 5088 | return 0; |
| 5089 | } |
| 5090 | _ACEOF |
| 5091 | rm -f conftest.$ac_objext |
| 5092 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5093 | (eval $ac_compile) 2>&5 |
| 5094 | ac_status=$? |
| 5095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5096 | (exit $ac_status); } && |
| 5097 | { ac_try='test -s conftest.$ac_objext' |
| 5098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5099 | (eval $ac_try) 2>&5 |
| 5100 | ac_status=$? |
| 5101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5102 | (exit $ac_status); }; }; then |
| 5103 | # The compiler can only warn and ignore the option if not recognized |
| 5104 | # So say no if there are warnings |
| 5105 | if test -s conftest.err; then |
| 5106 | lt_cv_compiler_o_lo=no |
| 5107 | else |
| 5108 | lt_cv_compiler_o_lo=yes |
| 5109 | fi |
| 5110 | |
| 5111 | else |
| 5112 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 5113 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 5114 | fi |
| 5115 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5116 | ac_objext="$save_objext" |
| 5117 | CFLAGS="$save_CFLAGS" |
| 5118 | |
| 5119 | fi |
| 5120 | |
| 5121 | compiler_o_lo=$lt_cv_compiler_o_lo |
| 5122 | echo "$as_me:$LINENO: result: $compiler_o_lo" >&5 |
| 5123 | echo "${ECHO_T}$compiler_o_lo" >&6 |
| 5124 | else |
| 5125 | compiler_o_lo=no |
| 5126 | fi |
| 5127 | |
| 5128 | # Check to see if we can do hard links to lock some files if needed |
| 5129 | hard_links="nottested" |
| 5130 | if test "$compiler_c_o" = no && test "$need_locks" != no; then |
| 5131 | # do not overwrite the value of need_locks provided by the user |
| 5132 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 5133 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 5134 | hard_links=yes |
| 5135 | $rm conftest* |
| 5136 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 5137 | touch conftest.a |
| 5138 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 5139 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 5140 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 5141 | echo "${ECHO_T}$hard_links" >&6 |
| 5142 | if test "$hard_links" = no; then |
| 5143 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 5144 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 5145 | need_locks=warn |
| 5146 | fi |
| 5147 | else |
| 5148 | need_locks=no |
| 5149 | fi |
| 5150 | |
| 5151 | if test "$GCC" = yes; then |
| 5152 | # Check to see if options -fno-rtti -fno-exceptions are supported by compiler |
| 5153 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 5154 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 5155 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 5156 | save_CFLAGS="$CFLAGS" |
| 5157 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" |
| 5158 | compiler_rtti_exceptions=no |
| 5159 | cat >conftest.$ac_ext <<_ACEOF |
| 5160 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 5161 | #include "confdefs.h" |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 5162 | |
| 5163 | int |
| 5164 | main () |
| 5165 | { |
| 5166 | int some_variable = 0; |
| 5167 | ; |
| 5168 | return 0; |
| 5169 | } |
| 5170 | _ACEOF |
| 5171 | rm -f conftest.$ac_objext |
| 5172 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5173 | (eval $ac_compile) 2>&5 |
| 5174 | ac_status=$? |
| 5175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5176 | (exit $ac_status); } && |
| 5177 | { ac_try='test -s conftest.$ac_objext' |
| 5178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5179 | (eval $ac_try) 2>&5 |
| 5180 | ac_status=$? |
| 5181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5182 | (exit $ac_status); }; }; then |
| 5183 | # The compiler can only warn and ignore the option if not recognized |
| 5184 | # So say no if there are warnings |
| 5185 | if test -s conftest.err; then |
| 5186 | compiler_rtti_exceptions=no |
| 5187 | else |
| 5188 | compiler_rtti_exceptions=yes |
| 5189 | fi |
| 5190 | |
| 5191 | else |
| 5192 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 5193 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 5194 | fi |
| 5195 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5196 | CFLAGS="$save_CFLAGS" |
| 5197 | echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5 |
| 5198 | echo "${ECHO_T}$compiler_rtti_exceptions" >&6 |
| 5199 | |
| 5200 | if test "$compiler_rtti_exceptions" = "yes"; then |
| 5201 | no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' |
| 5202 | else |
| 5203 | no_builtin_flag=' -fno-builtin' |
| 5204 | fi |
| 5205 | fi |
| 5206 | |
| 5207 | # See if the linker supports building shared libraries. |
| 5208 | echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5 |
| 5209 | echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 5210 | |
| 5211 | allow_undefined_flag= |
| 5212 | no_undefined_flag= |
| 5213 | need_lib_prefix=unknown |
| 5214 | need_version=unknown |
| 5215 | # when you set need_version to no, make sure it does not cause -set_version |
| 5216 | # flags to be left without arguments |
| 5217 | archive_cmds= |
| 5218 | archive_expsym_cmds= |
| 5219 | old_archive_from_new_cmds= |
| 5220 | old_archive_from_expsyms_cmds= |
| 5221 | export_dynamic_flag_spec= |
| 5222 | whole_archive_flag_spec= |
| 5223 | thread_safe_flag_spec= |
| 5224 | hardcode_into_libs=no |
| 5225 | hardcode_libdir_flag_spec= |
| 5226 | hardcode_libdir_separator= |
| 5227 | hardcode_direct=no |
| 5228 | hardcode_minus_L=no |
| 5229 | hardcode_shlibpath_var=unsupported |
| 5230 | runpath_var= |
| 5231 | link_all_deplibs=unknown |
| 5232 | always_export_symbols=no |
| 5233 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 5234 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 5235 | # included in the symbol list |
| 5236 | include_expsyms= |
| 5237 | # exclude_expsyms can be an egrep regular expression of symbols to exclude |
| 5238 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 5239 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 5240 | # as well as any symbol that contains `d'. |
| 5241 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 5242 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 5243 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 5244 | # the symbol is explicitly referenced. Since portable code cannot |
| 5245 | # rely on this symbol name, it's probably fine to never include it in |
| 5246 | # preloaded symbol tables. |
| 5247 | extract_expsyms_cmds= |
| 5248 | |
| 5249 | case $host_os in |
| 5250 | cygwin* | mingw* | pw32*) |
| 5251 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 5252 | # When not using gcc, we currently assume that we are using |
| 5253 | # Microsoft Visual C++. |
| 5254 | if test "$GCC" != yes; then |
| 5255 | with_gnu_ld=no |
| 5256 | fi |
| 5257 | ;; |
| 5258 | openbsd*) |
| 5259 | with_gnu_ld=no |
| 5260 | ;; |
| 5261 | esac |
| 5262 | |
| 5263 | ld_shlibs=yes |
| 5264 | if test "$with_gnu_ld" = yes; then |
| 5265 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 5266 | wlarc='${wl}' |
| 5267 | |
| 5268 | # See if GNU ld supports shared libraries. |
| 5269 | case $host_os in |
| 5270 | aix3* | aix4* | aix5*) |
| 5271 | # On AIX, the GNU linker is very broken |
| 5272 | # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. |
| 5273 | ld_shlibs=no |
| 5274 | cat <<EOF 1>&2 |
| 5275 | |
| 5276 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 5277 | *** to be unable to reliably create shared libraries on AIX. |
| 5278 | *** Therefore, libtool is disabling shared libraries support. If you |
| 5279 | *** really care for shared libraries, you may want to modify your PATH |
| 5280 | *** so that a non-GNU linker is found, and then restart. |
| 5281 | |
| 5282 | EOF |
| 5283 | ;; |
| 5284 | |
| 5285 | amigaos*) |
| 5286 | 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)' |
| 5287 | hardcode_libdir_flag_spec='-L$libdir' |
| 5288 | hardcode_minus_L=yes |
| 5289 | |
| 5290 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 5291 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 5292 | # to version 4, is to share data among multiple programs linked |
| 5293 | # with the same dynamic library. Since this doesn't match the |
| 5294 | # behavior of shared libraries on other platforms, we can use |
| 5295 | # them. |
| 5296 | ld_shlibs=no |
| 5297 | ;; |
| 5298 | |
| 5299 | beos*) |
| 5300 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 5301 | allow_undefined_flag=unsupported |
| 5302 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 5303 | # support --undefined. This deserves some investigation. FIXME |
| 5304 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5305 | else |
| 5306 | ld_shlibs=no |
| 5307 | fi |
| 5308 | ;; |
| 5309 | |
| 5310 | cygwin* | mingw* | pw32*) |
| 5311 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 5312 | # no search path for DLLs. |
| 5313 | hardcode_libdir_flag_spec='-L$libdir' |
| 5314 | allow_undefined_flag=unsupported |
| 5315 | always_export_symbols=yes |
| 5316 | |
| 5317 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ |
| 5318 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ |
| 5319 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ |
| 5320 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ |
| 5321 | else $CC -o impgen impgen.c ; fi)~ |
| 5322 | $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' |
| 5323 | |
| 5324 | old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' |
| 5325 | |
| 5326 | # cygwin and mingw dlls have different entry points and sets of symbols |
| 5327 | # to exclude. |
| 5328 | # FIXME: what about values for MSVC? |
| 5329 | dll_entry=__cygwin_dll_entry@12 |
| 5330 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ |
| 5331 | case $host_os in |
| 5332 | mingw*) |
| 5333 | # mingw values |
| 5334 | dll_entry=_DllMainCRTStartup@12 |
| 5335 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ |
| 5336 | ;; |
| 5337 | esac |
| 5338 | |
| 5339 | # mingw and cygwin differ, and it's simplest to just exclude the union |
| 5340 | # of the two symbol sets. |
| 5341 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 |
| 5342 | |
| 5343 | # recent cygwin and mingw systems supply a stub DllMain which the user |
| 5344 | # can override, but on older systems we have to supply one (in ltdll.c) |
| 5345 | if test "x$lt_cv_need_dllmain" = "xyes"; then |
| 5346 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
| 5347 | ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ |
| 5348 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
| 5349 | else |
| 5350 | ltdll_obj= |
| 5351 | ltdll_cmds= |
| 5352 | fi |
| 5353 | |
| 5354 | # Extract the symbol export list from an `--export-all' def file, |
| 5355 | # then regenerate the def file from the symbol export list, so that |
| 5356 | # the compiled dll only exports the symbol export list. |
| 5357 | # Be careful not to strip the DATA tag left be newer dlltools. |
| 5358 | export_symbols_cmds="$ltdll_cmds"' |
| 5359 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
| 5360 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' |
| 5361 | |
| 5362 | # If the export-symbols file already is a .def file (1st line |
| 5363 | # is EXPORTS), use it as is. |
| 5364 | # If DATA tags from a recent dlltool are present, honour them! |
| 5365 | archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then |
| 5366 | cp $export_symbols $output_objdir/$soname-def; |
| 5367 | else |
| 5368 | echo EXPORTS > $output_objdir/$soname-def; |
| 5369 | _lt_hint=1; |
| 5370 | cat $export_symbols | while read symbol; do |
| 5371 | set dummy \$symbol; |
| 5372 | case \$# in |
| 5373 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
| 5374 | 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;; |
| 5375 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; |
| 5376 | esac; |
| 5377 | _lt_hint=`expr 1 + \$_lt_hint`; |
| 5378 | done; |
| 5379 | fi~ |
| 5380 | '"$ltdll_cmds"' |
| 5381 | $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
| 5382 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ |
| 5383 | $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
| 5384 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ |
| 5385 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' |
| 5386 | ;; |
| 5387 | |
| 5388 | netbsd*) |
| 5389 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 5390 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 5391 | wlarc= |
| 5392 | else |
| 5393 | archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5394 | archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 5395 | fi |
| 5396 | ;; |
| 5397 | |
| 5398 | solaris* | sysv5*) |
| 5399 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
| 5400 | ld_shlibs=no |
| 5401 | cat <<EOF 1>&2 |
| 5402 | |
| 5403 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 5404 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 5405 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 5406 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 5407 | *** your PATH or compiler configuration so that the native linker is |
| 5408 | *** used, and then restart. |
| 5409 | |
| 5410 | EOF |
| 5411 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 5412 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5413 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 5414 | else |
| 5415 | ld_shlibs=no |
| 5416 | fi |
| 5417 | ;; |
| 5418 | |
| 5419 | sunos4*) |
| 5420 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 5421 | wlarc= |
| 5422 | hardcode_direct=yes |
| 5423 | hardcode_shlibpath_var=no |
| 5424 | ;; |
| 5425 | |
| 5426 | *) |
| 5427 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 5428 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5429 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 5430 | else |
| 5431 | ld_shlibs=no |
| 5432 | fi |
| 5433 | ;; |
| 5434 | esac |
| 5435 | |
| 5436 | if test "$ld_shlibs" = yes; then |
| 5437 | runpath_var=LD_RUN_PATH |
| 5438 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 5439 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 5440 | case $host_os in |
| 5441 | cygwin* | mingw* | pw32*) |
| 5442 | # dlltool doesn't understand --whole-archive et. al. |
| 5443 | whole_archive_flag_spec= |
| 5444 | ;; |
| 5445 | *) |
| 5446 | # ancient GNU ld didn't support --whole-archive et. al. |
| 5447 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then |
| 5448 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 5449 | else |
| 5450 | whole_archive_flag_spec= |
| 5451 | fi |
| 5452 | ;; |
| 5453 | esac |
| 5454 | fi |
| 5455 | else |
| 5456 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 5457 | case $host_os in |
| 5458 | aix3*) |
| 5459 | allow_undefined_flag=unsupported |
| 5460 | always_export_symbols=yes |
| 5461 | 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' |
| 5462 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 5463 | # are no directories specified by -L. |
| 5464 | hardcode_minus_L=yes |
| 5465 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 5466 | # Neither direct hardcoding nor static linking is supported with a |
| 5467 | # broken collect2. |
| 5468 | hardcode_direct=unsupported |
| 5469 | fi |
| 5470 | ;; |
| 5471 | |
| 5472 | aix4* | aix5*) |
| 5473 | if test "$host_cpu" = ia64; then |
| 5474 | # On IA64, the linker does run time linking by default, so we don't |
| 5475 | # have to do anything special. |
| 5476 | aix_use_runtimelinking=no |
| 5477 | exp_sym_flag='-Bexport' |
| 5478 | no_entry_flag="" |
| 5479 | else |
| 5480 | aix_use_runtimelinking=no |
| 5481 | |
| 5482 | # Test if we are trying to use run time linking or normal |
| 5483 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 5484 | # need to do runtime linking. |
| 5485 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 5486 | for ld_flag in $LDFLAGS; do |
| 5487 | case $ld_flag in |
| 5488 | *-brtl*) |
| 5489 | aix_use_runtimelinking=yes |
| 5490 | break |
| 5491 | ;; |
| 5492 | esac |
| 5493 | done |
| 5494 | esac |
| 5495 | |
| 5496 | exp_sym_flag='-bexport' |
| 5497 | no_entry_flag='-bnoentry' |
| 5498 | fi |
| 5499 | |
| 5500 | # When large executables or shared objects are built, AIX ld can |
| 5501 | # have problems creating the table of contents. If linking a library |
| 5502 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 5503 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 5504 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 5505 | |
| 5506 | hardcode_direct=yes |
| 5507 | archive_cmds='' |
| 5508 | hardcode_libdir_separator=':' |
| 5509 | if test "$GCC" = yes; then |
| 5510 | case $host_os in aix4.[012]|aix4.[012].*) |
| 5511 | collect2name=`${CC} -print-prog-name=collect2` |
| 5512 | if test -f "$collect2name" && \ |
| 5513 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 5514 | then |
| 5515 | # We have reworked collect2 |
| 5516 | hardcode_direct=yes |
| 5517 | else |
| 5518 | # We have old collect2 |
| 5519 | hardcode_direct=unsupported |
| 5520 | # It fails to find uninstalled libraries when the uninstalled |
| 5521 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 5522 | # to unsupported forces relinking |
| 5523 | hardcode_minus_L=yes |
| 5524 | hardcode_libdir_flag_spec='-L$libdir' |
| 5525 | hardcode_libdir_separator= |
| 5526 | fi |
| 5527 | esac |
| 5528 | |
| 5529 | shared_flag='-shared' |
| 5530 | else |
| 5531 | # not using gcc |
| 5532 | if test "$host_cpu" = ia64; then |
| 5533 | shared_flag='${wl}-G' |
| 5534 | else |
| 5535 | if test "$aix_use_runtimelinking" = yes; then |
| 5536 | shared_flag='${wl}-G' |
| 5537 | else |
| 5538 | shared_flag='${wl}-bM:SRE' |
| 5539 | fi |
| 5540 | fi |
| 5541 | fi |
| 5542 | |
| 5543 | # It seems that -bexpall can do strange things, so it is better to |
| 5544 | # generate a list of symbols to export. |
| 5545 | always_export_symbols=yes |
| 5546 | if test "$aix_use_runtimelinking" = yes; then |
| 5547 | # Warning - without using the other runtime loading flags (-brtl), |
| 5548 | # -berok will link without error, but may produce a broken library. |
| 5549 | allow_undefined_flag='-berok' |
| 5550 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' |
| 5551 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 5552 | else |
| 5553 | if test "$host_cpu" = ia64; then |
| 5554 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 5555 | allow_undefined_flag="-z nodefs" |
| 5556 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 5557 | else |
| 5558 | hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' |
| 5559 | # Warning - without using the other run time loading flags, |
| 5560 | # -berok will link without error, but may produce a broken library. |
| 5561 | allow_undefined_flag='${wl}-berok' |
| 5562 | # This is a bit strange, but is similar to how AIX traditionally builds |
| 5563 | # it's shared libraries. |
| 5564 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname' |
| 5565 | fi |
| 5566 | fi |
| 5567 | ;; |
| 5568 | |
| 5569 | amigaos*) |
| 5570 | 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)' |
| 5571 | hardcode_libdir_flag_spec='-L$libdir' |
| 5572 | hardcode_minus_L=yes |
| 5573 | # see comment about different semantics on the GNU ld section |
| 5574 | ld_shlibs=no |
| 5575 | ;; |
| 5576 | |
| 5577 | cygwin* | mingw* | pw32*) |
| 5578 | # When not using gcc, we currently assume that we are using |
| 5579 | # Microsoft Visual C++. |
| 5580 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 5581 | # no search path for DLLs. |
| 5582 | hardcode_libdir_flag_spec=' ' |
| 5583 | allow_undefined_flag=unsupported |
| 5584 | # Tell ltmain to make .lib files, not .a files. |
| 5585 | libext=lib |
| 5586 | # FIXME: Setting linknames here is a bad hack. |
| 5587 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 5588 | # The linker will automatically build a .lib file if we build a DLL. |
| 5589 | old_archive_from_new_cmds='true' |
| 5590 | # FIXME: Should let the user specify the lib program. |
| 5591 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 5592 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 5593 | ;; |
| 5594 | |
| 5595 | darwin* | rhapsody*) |
| 5596 | case "$host_os" in |
| 5597 | rhapsody* | darwin1.[012]) |
| 5598 | allow_undefined_flag='-undefined suppress' |
| 5599 | ;; |
| 5600 | *) # Darwin 1.3 on |
| 5601 | allow_undefined_flag='-flat_namespace -undefined suppress' |
| 5602 | ;; |
| 5603 | esac |
| 5604 | # FIXME: Relying on posixy $() will cause problems for |
| 5605 | # cross-compilation, but unfortunately the echo tests do not |
| 5606 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles |
| 5607 | # `"' quotes if we put them in here... so don't! |
| 5608 | archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)' |
| 5609 | # We need to add '_' to the symbols in $export_symbols first |
| 5610 | #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' |
| 5611 | hardcode_direct=yes |
| 5612 | hardcode_shlibpath_var=no |
| 5613 | whole_archive_flag_spec='-all_load $convenience' |
| 5614 | ;; |
| 5615 | |
| 5616 | freebsd1*) |
| 5617 | ld_shlibs=no |
| 5618 | ;; |
| 5619 | |
| 5620 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 5621 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 5622 | # does not break anything, and helps significantly (at the cost of a little |
| 5623 | # extra space). |
| 5624 | freebsd2.2*) |
| 5625 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 5626 | hardcode_libdir_flag_spec='-R$libdir' |
| 5627 | hardcode_direct=yes |
| 5628 | hardcode_shlibpath_var=no |
| 5629 | ;; |
| 5630 | |
| 5631 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 5632 | freebsd2*) |
| 5633 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 5634 | hardcode_direct=yes |
| 5635 | hardcode_minus_L=yes |
| 5636 | hardcode_shlibpath_var=no |
| 5637 | ;; |
| 5638 | |
| 5639 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 5640 | freebsd*) |
| 5641 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 5642 | hardcode_libdir_flag_spec='-R$libdir' |
| 5643 | hardcode_direct=yes |
| 5644 | hardcode_shlibpath_var=no |
| 5645 | ;; |
| 5646 | |
| 5647 | hpux9* | hpux10* | hpux11*) |
| 5648 | case $host_os in |
| 5649 | hpux9*) 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' ;; |
| 5650 | *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; |
| 5651 | esac |
| 5652 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 5653 | hardcode_libdir_separator=: |
| 5654 | hardcode_direct=yes |
| 5655 | hardcode_minus_L=yes # Not in the search PATH, but as the default |
| 5656 | # location of the library. |
| 5657 | export_dynamic_flag_spec='${wl}-E' |
| 5658 | ;; |
| 5659 | |
| 5660 | irix5* | irix6* | nonstopux*) |
| 5661 | if test "$GCC" = yes; then |
| 5662 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 5663 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 5664 | else |
| 5665 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 5666 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 5667 | fi |
| 5668 | hardcode_libdir_separator=: |
| 5669 | link_all_deplibs=yes |
| 5670 | ;; |
| 5671 | |
| 5672 | netbsd*) |
| 5673 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 5674 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 5675 | else |
| 5676 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 5677 | fi |
| 5678 | hardcode_libdir_flag_spec='-R$libdir' |
| 5679 | hardcode_direct=yes |
| 5680 | hardcode_shlibpath_var=no |
| 5681 | ;; |
| 5682 | |
| 5683 | newsos6) |
| 5684 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5685 | hardcode_direct=yes |
| 5686 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 5687 | hardcode_libdir_separator=: |
| 5688 | hardcode_shlibpath_var=no |
| 5689 | ;; |
| 5690 | |
| 5691 | openbsd*) |
| 5692 | hardcode_direct=yes |
| 5693 | hardcode_shlibpath_var=no |
| 5694 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 5695 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 5696 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 5697 | export_dynamic_flag_spec='${wl}-E' |
| 5698 | else |
| 5699 | case "$host_os" in |
| 5700 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 5701 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 5702 | hardcode_libdir_flag_spec='-R$libdir' |
| 5703 | ;; |
| 5704 | *) |
| 5705 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 5706 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 5707 | ;; |
| 5708 | esac |
| 5709 | fi |
| 5710 | ;; |
| 5711 | |
| 5712 | os2*) |
| 5713 | hardcode_libdir_flag_spec='-L$libdir' |
| 5714 | hardcode_minus_L=yes |
| 5715 | allow_undefined_flag=unsupported |
| 5716 | 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' |
| 5717 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 5718 | ;; |
| 5719 | |
| 5720 | osf3*) |
| 5721 | if test "$GCC" = yes; then |
| 5722 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 5723 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 5724 | else |
| 5725 | allow_undefined_flag=' -expect_unresolved \*' |
| 5726 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 5727 | fi |
| 5728 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 5729 | hardcode_libdir_separator=: |
| 5730 | ;; |
| 5731 | |
| 5732 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 5733 | if test "$GCC" = yes; then |
| 5734 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 5735 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 5736 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 5737 | else |
| 5738 | allow_undefined_flag=' -expect_unresolved \*' |
| 5739 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 5740 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 5741 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
| 5742 | |
| 5743 | #Both c and cxx compiler support -rpath directly |
| 5744 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 5745 | fi |
| 5746 | hardcode_libdir_separator=: |
| 5747 | ;; |
| 5748 | |
| 5749 | sco3.2v5*) |
| 5750 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5751 | hardcode_shlibpath_var=no |
| 5752 | runpath_var=LD_RUN_PATH |
| 5753 | hardcode_runpath_var=yes |
| 5754 | export_dynamic_flag_spec='${wl}-Bexport' |
| 5755 | ;; |
| 5756 | |
| 5757 | solaris*) |
| 5758 | # gcc --version < 3.0 without binutils cannot create self contained |
| 5759 | # shared libraries reliably, requiring libgcc.a to resolve some of |
| 5760 | # the object symbols generated in some cases. Libraries that use |
| 5761 | # assert need libgcc.a to resolve __eprintf, for example. Linking |
| 5762 | # a copy of libgcc.a into every shared library to guarantee resolving |
| 5763 | # such symbols causes other problems: According to Tim Van Holder |
| 5764 | # <tim.van.holder@pandora.be>, C++ libraries end up with a separate |
| 5765 | # (to the application) exception stack for one thing. |
| 5766 | no_undefined_flag=' -z defs' |
| 5767 | if test "$GCC" = yes; then |
| 5768 | case `$CC --version 2>/dev/null` in |
| 5769 | [12].*) |
| 5770 | cat <<EOF 1>&2 |
| 5771 | |
| 5772 | *** Warning: Releases of GCC earlier than version 3.0 cannot reliably |
| 5773 | *** create self contained shared libraries on Solaris systems, without |
| 5774 | *** introducing a dependency on libgcc.a. Therefore, libtool is disabling |
| 5775 | *** -no-undefined support, which will at least allow you to build shared |
| 5776 | *** libraries. However, you may find that when you link such libraries |
| 5777 | *** into an application without using GCC, you have to manually add |
| 5778 | *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to |
| 5779 | *** upgrade to a newer version of GCC. Another option is to rebuild your |
| 5780 | *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. |
| 5781 | |
| 5782 | EOF |
| 5783 | no_undefined_flag= |
| 5784 | ;; |
| 5785 | esac |
| 5786 | fi |
| 5787 | # $CC -shared without GNU ld will not create a library from C++ |
| 5788 | # object files and a static libstdc++, better avoid it by now |
| 5789 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5790 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 5791 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 5792 | hardcode_libdir_flag_spec='-R$libdir' |
| 5793 | hardcode_shlibpath_var=no |
| 5794 | case $host_os in |
| 5795 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 5796 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 5797 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 5798 | esac |
| 5799 | link_all_deplibs=yes |
| 5800 | ;; |
| 5801 | |
| 5802 | sunos4*) |
| 5803 | if test "x$host_vendor" = xsequent; then |
| 5804 | # Use $CC to link under sequent, because it throws in some extra .o |
| 5805 | # files that make .init and .fini sections work. |
| 5806 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 5807 | else |
| 5808 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 5809 | fi |
| 5810 | hardcode_libdir_flag_spec='-L$libdir' |
| 5811 | hardcode_direct=yes |
| 5812 | hardcode_minus_L=yes |
| 5813 | hardcode_shlibpath_var=no |
| 5814 | ;; |
| 5815 | |
| 5816 | sysv4) |
| 5817 | case $host_vendor in |
| 5818 | sni) |
| 5819 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5820 | hardcode_direct=yes # is this really true??? |
| 5821 | ;; |
| 5822 | siemens) |
| 5823 | ## LD is ld it makes a PLAMLIB |
| 5824 | ## CC just makes a GrossModule. |
| 5825 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 5826 | reload_cmds='$CC -r -o $output$reload_objs' |
| 5827 | hardcode_direct=no |
| 5828 | ;; |
| 5829 | motorola) |
| 5830 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5831 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 5832 | ;; |
| 5833 | esac |
| 5834 | runpath_var='LD_RUN_PATH' |
| 5835 | hardcode_shlibpath_var=no |
| 5836 | ;; |
| 5837 | |
| 5838 | sysv4.3*) |
| 5839 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5840 | hardcode_shlibpath_var=no |
| 5841 | export_dynamic_flag_spec='-Bexport' |
| 5842 | ;; |
| 5843 | |
| 5844 | sysv5*) |
| 5845 | no_undefined_flag=' -z text' |
| 5846 | # $CC -shared without GNU ld will not create a library from C++ |
| 5847 | # object files and a static libstdc++, better avoid it by now |
| 5848 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5849 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 5850 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 5851 | hardcode_libdir_flag_spec= |
| 5852 | hardcode_shlibpath_var=no |
| 5853 | runpath_var='LD_RUN_PATH' |
| 5854 | ;; |
| 5855 | |
| 5856 | uts4*) |
| 5857 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5858 | hardcode_libdir_flag_spec='-L$libdir' |
| 5859 | hardcode_shlibpath_var=no |
| 5860 | ;; |
| 5861 | |
| 5862 | dgux*) |
| 5863 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5864 | hardcode_libdir_flag_spec='-L$libdir' |
| 5865 | hardcode_shlibpath_var=no |
| 5866 | ;; |
| 5867 | |
| 5868 | sysv4*MP*) |
| 5869 | if test -d /usr/nec; then |
| 5870 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5871 | hardcode_shlibpath_var=no |
| 5872 | runpath_var=LD_RUN_PATH |
| 5873 | hardcode_runpath_var=yes |
| 5874 | ld_shlibs=yes |
| 5875 | fi |
| 5876 | ;; |
| 5877 | |
| 5878 | sysv4.2uw2*) |
| 5879 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 5880 | hardcode_direct=yes |
| 5881 | hardcode_minus_L=no |
| 5882 | hardcode_shlibpath_var=no |
| 5883 | hardcode_runpath_var=yes |
| 5884 | runpath_var=LD_RUN_PATH |
| 5885 | ;; |
| 5886 | |
| 5887 | sysv5uw7* | unixware7*) |
| 5888 | no_undefined_flag='${wl}-z ${wl}text' |
| 5889 | if test "$GCC" = yes; then |
| 5890 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 5891 | else |
| 5892 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 5893 | fi |
| 5894 | runpath_var='LD_RUN_PATH' |
| 5895 | hardcode_shlibpath_var=no |
| 5896 | ;; |
| 5897 | |
| 5898 | *) |
| 5899 | ld_shlibs=no |
| 5900 | ;; |
| 5901 | esac |
| 5902 | fi |
| 5903 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 5904 | echo "${ECHO_T}$ld_shlibs" >&6 |
| 5905 | test "$ld_shlibs" = no && can_build_shared=no |
| 5906 | |
| 5907 | # Check hardcoding attributes. |
| 5908 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 5909 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 5910 | hardcode_action= |
| 5911 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 5912 | test -n "$runpath_var"; then |
| 5913 | |
| 5914 | # We can hardcode non-existant directories. |
| 5915 | if test "$hardcode_direct" != no && |
| 5916 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 5917 | # have to relink, otherwise we might link with an installed library |
| 5918 | # when we should be linking with a yet-to-be-installed one |
| 5919 | ## test "$hardcode_shlibpath_var" != no && |
| 5920 | test "$hardcode_minus_L" != no; then |
| 5921 | # Linking always hardcodes the temporary library directory. |
| 5922 | hardcode_action=relink |
| 5923 | else |
| 5924 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 5925 | hardcode_action=immediate |
| 5926 | fi |
| 5927 | else |
| 5928 | # We cannot hardcode anything, or else we can only hardcode existing |
| 5929 | # directories. |
| 5930 | hardcode_action=unsupported |
| 5931 | fi |
| 5932 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 5933 | echo "${ECHO_T}$hardcode_action" >&6 |
| 5934 | |
| 5935 | striplib= |
| 5936 | old_striplib= |
| 5937 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 5938 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 5939 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 5940 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 5941 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 5942 | echo "$as_me:$LINENO: result: yes" >&5 |
| 5943 | echo "${ECHO_T}yes" >&6 |
| 5944 | else |
| 5945 | echo "$as_me:$LINENO: result: no" >&5 |
| 5946 | echo "${ECHO_T}no" >&6 |
| 5947 | fi |
| 5948 | |
| 5949 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5950 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 5951 | |
| 5952 | # PORTME Fill in your ld.so characteristics |
| 5953 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 5954 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 5955 | library_names_spec= |
| 5956 | libname_spec='lib$name' |
| 5957 | soname_spec= |
| 5958 | postinstall_cmds= |
| 5959 | postuninstall_cmds= |
| 5960 | finish_cmds= |
| 5961 | finish_eval= |
| 5962 | shlibpath_var= |
| 5963 | shlibpath_overrides_runpath=unknown |
| 5964 | version_type=none |
| 5965 | dynamic_linker="$host_os ld.so" |
| 5966 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 5967 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 5968 | |
| 5969 | case $host_os in |
| 5970 | aix3*) |
| 5971 | version_type=linux |
| 5972 | library_names_spec='${libname}${release}.so$versuffix $libname.a' |
| 5973 | shlibpath_var=LIBPATH |
| 5974 | |
| 5975 | # AIX has no versioning support, so we append a major version to the name. |
| 5976 | soname_spec='${libname}${release}.so$major' |
| 5977 | ;; |
| 5978 | |
| 5979 | aix4* | aix5*) |
| 5980 | version_type=linux |
| 5981 | need_lib_prefix=no |
| 5982 | need_version=no |
| 5983 | hardcode_into_libs=yes |
| 5984 | if test "$host_cpu" = ia64; then |
| 5985 | # AIX 5 supports IA64 |
| 5986 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' |
| 5987 | shlibpath_var=LD_LIBRARY_PATH |
| 5988 | else |
| 5989 | # With GCC up to 2.95.x, collect2 would create an import file |
| 5990 | # for dependence libraries. The import file would start with |
| 5991 | # the line `#! .'. This would cause the generated library to |
| 5992 | # depend on `.', always an invalid library. This was fixed in |
| 5993 | # development snapshots of GCC prior to 3.0. |
| 5994 | case $host_os in |
| 5995 | aix4 | aix4.[01] | aix4.[01].*) |
| 5996 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 5997 | echo ' yes ' |
| 5998 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 5999 | : |
| 6000 | else |
| 6001 | can_build_shared=no |
| 6002 | fi |
| 6003 | ;; |
| 6004 | esac |
| 6005 | # AIX (on Power*) has no versioning support, so currently we can |
| 6006 | # not hardcode correct soname into executable. Probably we can |
| 6007 | # add versioning support to collect2, so additional links can |
| 6008 | # be useful in future. |
| 6009 | if test "$aix_use_runtimelinking" = yes; then |
| 6010 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 6011 | # instead of lib<name>.a to let people know that these are not |
| 6012 | # typical AIX shared libraries. |
| 6013 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6014 | else |
| 6015 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 6016 | # and later when we are not doing run time linking. |
| 6017 | library_names_spec='${libname}${release}.a $libname.a' |
| 6018 | soname_spec='${libname}${release}.so$major' |
| 6019 | fi |
| 6020 | shlibpath_var=LIBPATH |
| 6021 | fi |
| 6022 | hardcode_into_libs=yes |
| 6023 | ;; |
| 6024 | |
| 6025 | amigaos*) |
| 6026 | library_names_spec='$libname.ixlibrary $libname.a' |
| 6027 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 6028 | 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' |
| 6029 | ;; |
| 6030 | |
| 6031 | beos*) |
| 6032 | library_names_spec='${libname}.so' |
| 6033 | dynamic_linker="$host_os ld.so" |
| 6034 | shlibpath_var=LIBRARY_PATH |
| 6035 | ;; |
| 6036 | |
| 6037 | bsdi4*) |
| 6038 | version_type=linux |
| 6039 | need_version=no |
| 6040 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6041 | soname_spec='${libname}${release}.so$major' |
| 6042 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 6043 | shlibpath_var=LD_LIBRARY_PATH |
| 6044 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 6045 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 6046 | export_dynamic_flag_spec=-rdynamic |
| 6047 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 6048 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 6049 | # libtool to hard-code these into programs |
| 6050 | ;; |
| 6051 | |
| 6052 | cygwin* | mingw* | pw32*) |
| 6053 | version_type=windows |
| 6054 | need_version=no |
| 6055 | need_lib_prefix=no |
| 6056 | case $GCC,$host_os in |
| 6057 | yes,cygwin*) |
| 6058 | library_names_spec='$libname.dll.a' |
| 6059 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
| 6060 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ |
| 6061 | dldir=$destdir/`dirname \$dlpath`~ |
| 6062 | test -d \$dldir || mkdir -p \$dldir~ |
| 6063 | $install_prog .libs/$dlname \$dldir/$dlname' |
| 6064 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 6065 | dlpath=$dir/\$dldll~ |
| 6066 | $rm \$dlpath' |
| 6067 | ;; |
| 6068 | yes,mingw*) |
| 6069 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
| 6070 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"` |
| 6071 | ;; |
| 6072 | yes,pw32*) |
| 6073 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' |
| 6074 | ;; |
| 6075 | *) |
| 6076 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' |
| 6077 | ;; |
| 6078 | esac |
| 6079 | dynamic_linker='Win32 ld.exe' |
| 6080 | # FIXME: first we should search . and the directory the executable is in |
| 6081 | shlibpath_var=PATH |
| 6082 | ;; |
| 6083 | |
| 6084 | darwin* | rhapsody*) |
| 6085 | dynamic_linker="$host_os dyld" |
| 6086 | version_type=darwin |
| 6087 | need_lib_prefix=no |
| 6088 | need_version=no |
| 6089 | # FIXME: Relying on posixy $() will cause problems for |
| 6090 | # cross-compilation, but unfortunately the echo tests do not |
| 6091 | # yet detect zsh echo's removal of \ escapes. |
| 6092 | library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' |
| 6093 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' |
| 6094 | shlibpath_overrides_runpath=yes |
| 6095 | shlibpath_var=DYLD_LIBRARY_PATH |
| 6096 | ;; |
| 6097 | |
| 6098 | freebsd1*) |
| 6099 | dynamic_linker=no |
| 6100 | ;; |
| 6101 | |
| 6102 | freebsd*-gnu*) |
| 6103 | version_type=linux |
| 6104 | need_lib_prefix=no |
| 6105 | need_version=no |
| 6106 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6107 | soname_spec='${libname}${release}.so$major' |
| 6108 | shlibpath_var=LD_LIBRARY_PATH |
| 6109 | shlibpath_overrides_runpath=no |
| 6110 | hardcode_into_libs=yes |
| 6111 | dynamic_linker='GNU/FreeBSD ld.so' |
| 6112 | ;; |
| 6113 | |
| 6114 | freebsd*) |
| 6115 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 6116 | version_type=freebsd-$objformat |
| 6117 | case $version_type in |
| 6118 | freebsd-elf*) |
| 6119 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
| 6120 | need_version=no |
| 6121 | need_lib_prefix=no |
| 6122 | ;; |
| 6123 | freebsd-*) |
| 6124 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' |
| 6125 | need_version=yes |
| 6126 | ;; |
| 6127 | esac |
| 6128 | shlibpath_var=LD_LIBRARY_PATH |
| 6129 | case $host_os in |
| 6130 | freebsd2*) |
| 6131 | shlibpath_overrides_runpath=yes |
| 6132 | ;; |
| 6133 | *) |
| 6134 | shlibpath_overrides_runpath=no |
| 6135 | hardcode_into_libs=yes |
| 6136 | ;; |
| 6137 | esac |
| 6138 | ;; |
| 6139 | |
| 6140 | gnu*) |
| 6141 | version_type=linux |
| 6142 | need_lib_prefix=no |
| 6143 | need_version=no |
| 6144 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' |
| 6145 | soname_spec='${libname}${release}.so$major' |
| 6146 | shlibpath_var=LD_LIBRARY_PATH |
| 6147 | hardcode_into_libs=yes |
| 6148 | ;; |
| 6149 | |
| 6150 | hpux9* | hpux10* | hpux11*) |
| 6151 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 6152 | # link against other versions. |
| 6153 | dynamic_linker="$host_os dld.sl" |
| 6154 | version_type=sunos |
| 6155 | need_lib_prefix=no |
| 6156 | need_version=no |
| 6157 | shlibpath_var=SHLIB_PATH |
| 6158 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 6159 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' |
| 6160 | soname_spec='${libname}${release}.sl$major' |
| 6161 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 6162 | postinstall_cmds='chmod 555 $lib' |
| 6163 | ;; |
| 6164 | |
| 6165 | irix5* | irix6* | nonstopux*) |
| 6166 | case $host_os in |
| 6167 | nonstopux*) version_type=nonstopux ;; |
| 6168 | *) version_type=irix ;; |
| 6169 | esac |
| 6170 | need_lib_prefix=no |
| 6171 | need_version=no |
| 6172 | soname_spec='${libname}${release}.so$major' |
| 6173 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
| 6174 | case $host_os in |
| 6175 | irix5* | nonstopux*) |
| 6176 | libsuff= shlibsuff= |
| 6177 | ;; |
| 6178 | *) |
| 6179 | case $LD in # libtool.m4 will add one of these switches to LD |
| 6180 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; |
| 6181 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 6182 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 6183 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 6184 | esac |
| 6185 | ;; |
| 6186 | esac |
| 6187 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 6188 | shlibpath_overrides_runpath=no |
| 6189 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 6190 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 6191 | ;; |
| 6192 | |
| 6193 | # No shared lib support for Linux oldld, aout, or coff. |
| 6194 | linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) |
| 6195 | dynamic_linker=no |
| 6196 | ;; |
| 6197 | |
| 6198 | # This must be Linux ELF. |
| 6199 | linux-gnu*) |
| 6200 | version_type=linux |
| 6201 | need_lib_prefix=no |
| 6202 | need_version=no |
| 6203 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6204 | soname_spec='${libname}${release}.so$major' |
| 6205 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 6206 | shlibpath_var=LD_LIBRARY_PATH |
| 6207 | shlibpath_overrides_runpath=no |
| 6208 | # This implies no fast_install, which is unacceptable. |
| 6209 | # Some rework will be needed to allow for fast_install |
| 6210 | # before this can be enabled. |
| 6211 | hardcode_into_libs=yes |
| 6212 | |
| 6213 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 6214 | # powerpc, because MkLinux only supported shared libraries with the |
| 6215 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 6216 | # most powerpc-linux boxes support dynamic linking these days and |
| 6217 | # people can always --disable-shared, the test was removed, and we |
| 6218 | # assume the GNU/Linux dynamic linker is in use. |
| 6219 | dynamic_linker='GNU/Linux ld.so' |
| 6220 | ;; |
| 6221 | |
| 6222 | netbsd*) |
| 6223 | version_type=sunos |
| 6224 | need_lib_prefix=no |
| 6225 | need_version=no |
| 6226 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 6227 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 6228 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 6229 | dynamic_linker='NetBSD (a.out) ld.so' |
| 6230 | else |
| 6231 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' |
| 6232 | soname_spec='${libname}${release}.so$major' |
| 6233 | dynamic_linker='NetBSD ld.elf_so' |
| 6234 | fi |
| 6235 | shlibpath_var=LD_LIBRARY_PATH |
| 6236 | shlibpath_overrides_runpath=yes |
| 6237 | hardcode_into_libs=yes |
| 6238 | ;; |
| 6239 | |
| 6240 | newsos6) |
| 6241 | version_type=linux |
| 6242 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6243 | shlibpath_var=LD_LIBRARY_PATH |
| 6244 | shlibpath_overrides_runpath=yes |
| 6245 | ;; |
| 6246 | |
| 6247 | openbsd*) |
| 6248 | version_type=sunos |
| 6249 | need_lib_prefix=no |
| 6250 | need_version=no |
| 6251 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 6252 | case "$host_os" in |
| 6253 | openbsd2.[89] | openbsd2.[89].*) |
| 6254 | shlibpath_overrides_runpath=no |
| 6255 | ;; |
| 6256 | *) |
| 6257 | shlibpath_overrides_runpath=yes |
| 6258 | ;; |
| 6259 | esac |
| 6260 | else |
| 6261 | shlibpath_overrides_runpath=yes |
| 6262 | fi |
| 6263 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 6264 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 6265 | shlibpath_var=LD_LIBRARY_PATH |
| 6266 | ;; |
| 6267 | |
| 6268 | os2*) |
| 6269 | libname_spec='$name' |
| 6270 | need_lib_prefix=no |
| 6271 | library_names_spec='$libname.dll $libname.a' |
| 6272 | dynamic_linker='OS/2 ld.exe' |
| 6273 | shlibpath_var=LIBPATH |
| 6274 | ;; |
| 6275 | |
| 6276 | osf3* | osf4* | osf5*) |
| 6277 | version_type=osf |
| 6278 | need_version=no |
| 6279 | need_lib_prefix=no |
| 6280 | soname_spec='${libname}${release}.so$major' |
| 6281 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6282 | shlibpath_var=LD_LIBRARY_PATH |
| 6283 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 6284 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 6285 | hardcode_into_libs=yes |
| 6286 | ;; |
| 6287 | |
| 6288 | sco3.2v5*) |
| 6289 | version_type=osf |
| 6290 | soname_spec='${libname}${release}.so$major' |
| 6291 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6292 | shlibpath_var=LD_LIBRARY_PATH |
| 6293 | ;; |
| 6294 | |
| 6295 | solaris*) |
| 6296 | version_type=linux |
| 6297 | need_lib_prefix=no |
| 6298 | need_version=no |
| 6299 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6300 | soname_spec='${libname}${release}.so$major' |
| 6301 | shlibpath_var=LD_LIBRARY_PATH |
| 6302 | shlibpath_overrides_runpath=yes |
| 6303 | hardcode_into_libs=yes |
| 6304 | # ldd complains unless libraries are executable |
| 6305 | postinstall_cmds='chmod +x $lib' |
| 6306 | ;; |
| 6307 | |
| 6308 | sunos4*) |
| 6309 | version_type=sunos |
| 6310 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 6311 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 6312 | shlibpath_var=LD_LIBRARY_PATH |
| 6313 | shlibpath_overrides_runpath=yes |
| 6314 | if test "$with_gnu_ld" = yes; then |
| 6315 | need_lib_prefix=no |
| 6316 | fi |
| 6317 | need_version=yes |
| 6318 | ;; |
| 6319 | |
| 6320 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 6321 | version_type=linux |
| 6322 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6323 | soname_spec='${libname}${release}.so$major' |
| 6324 | shlibpath_var=LD_LIBRARY_PATH |
| 6325 | case $host_vendor in |
| 6326 | sni) |
| 6327 | shlibpath_overrides_runpath=no |
| 6328 | need_lib_prefix=no |
| 6329 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 6330 | runpath_var=LD_RUN_PATH |
| 6331 | ;; |
| 6332 | siemens) |
| 6333 | need_lib_prefix=no |
| 6334 | ;; |
| 6335 | motorola) |
| 6336 | need_lib_prefix=no |
| 6337 | need_version=no |
| 6338 | shlibpath_overrides_runpath=no |
| 6339 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 6340 | ;; |
| 6341 | esac |
| 6342 | ;; |
| 6343 | |
| 6344 | uts4*) |
| 6345 | version_type=linux |
| 6346 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6347 | soname_spec='${libname}${release}.so$major' |
| 6348 | shlibpath_var=LD_LIBRARY_PATH |
| 6349 | ;; |
| 6350 | |
| 6351 | dgux*) |
| 6352 | version_type=linux |
| 6353 | need_lib_prefix=no |
| 6354 | need_version=no |
| 6355 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6356 | soname_spec='${libname}${release}.so$major' |
| 6357 | shlibpath_var=LD_LIBRARY_PATH |
| 6358 | ;; |
| 6359 | |
| 6360 | sysv4*MP*) |
| 6361 | if test -d /usr/nec ;then |
| 6362 | version_type=linux |
| 6363 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' |
| 6364 | soname_spec='$libname.so.$major' |
| 6365 | shlibpath_var=LD_LIBRARY_PATH |
| 6366 | fi |
| 6367 | ;; |
| 6368 | |
| 6369 | *) |
| 6370 | dynamic_linker=no |
| 6371 | ;; |
| 6372 | esac |
| 6373 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 6374 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 6375 | test "$dynamic_linker" = no && can_build_shared=no |
| 6376 | |
| 6377 | # Report the final consequences. |
| 6378 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 6379 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 6380 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 6381 | echo "${ECHO_T}$can_build_shared" >&6 |
| 6382 | |
| 6383 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 6384 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 6385 | test "$can_build_shared" = "no" && enable_shared=no |
| 6386 | |
| 6387 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 6388 | # are all built from PIC. |
| 6389 | case "$host_os" in |
| 6390 | aix3*) |
| 6391 | test "$enable_shared" = yes && enable_static=no |
| 6392 | if test -n "$RANLIB"; then |
| 6393 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 6394 | postinstall_cmds='$RANLIB $lib' |
| 6395 | fi |
| 6396 | ;; |
| 6397 | |
| 6398 | aix4*) |
| 6399 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 6400 | test "$enable_shared" = yes && enable_static=no |
| 6401 | fi |
| 6402 | ;; |
| 6403 | esac |
| 6404 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 6405 | echo "${ECHO_T}$enable_shared" >&6 |
| 6406 | |
| 6407 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 6408 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 6409 | # Make sure either enable_shared or enable_static is yes. |
| 6410 | test "$enable_shared" = yes || enable_static=yes |
| 6411 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 6412 | echo "${ECHO_T}$enable_static" >&6 |
| 6413 | |
| 6414 | if test "$hardcode_action" = relink; then |
| 6415 | # Fast installation is not supported |
| 6416 | enable_fast_install=no |
| 6417 | elif test "$shlibpath_overrides_runpath" = yes || |
| 6418 | test "$enable_shared" = no; then |
| 6419 | # Fast installation is not necessary |
| 6420 | enable_fast_install=needless |
| 6421 | fi |
| 6422 | |
| 6423 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 6424 | if test "$GCC" = yes; then |
| 6425 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 6426 | fi |
| 6427 | |
| 6428 | if test "x$enable_dlopen" != xyes; then |
| 6429 | enable_dlopen=unknown |
| 6430 | enable_dlopen_self=unknown |
| 6431 | enable_dlopen_self_static=unknown |
| 6432 | else |
| 6433 | lt_cv_dlopen=no |
| 6434 | lt_cv_dlopen_libs= |
| 6435 | |
| 6436 | case $host_os in |
| 6437 | beos*) |
| 6438 | lt_cv_dlopen="load_add_on" |
| 6439 | lt_cv_dlopen_libs= |
| 6440 | lt_cv_dlopen_self=yes |
| 6441 | ;; |
| 6442 | |
| 6443 | cygwin* | mingw* | pw32*) |
| 6444 | lt_cv_dlopen="LoadLibrary" |
| 6445 | lt_cv_dlopen_libs= |
| 6446 | ;; |
| 6447 | |
| 6448 | *) |
| 6449 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 6450 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 6451 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 6452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6453 | else |
| 6454 | cat >conftest.$ac_ext <<_ACEOF |
| 6455 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 6456 | #include "confdefs.h" |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6457 | /* System header to define __stub macros and hopefully few prototypes, |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 6458 | which can conflict with char shl_load (); below. */ |
| 6459 | #include <assert.h> |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6460 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6461 | #ifdef __cplusplus |
| 6462 | extern "C" |
| 6463 | #endif |
| 6464 | /* We use char because int might match the return type of a gcc2 |
| 6465 | builtin and then its argument prototype would still apply. */ |
| 6466 | char shl_load (); |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 6467 | char (*f) (); |
| 6468 | |
| 6469 | int |
| 6470 | main () |
| 6471 | { |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6472 | /* The GNU C library defines this for functions which it implements |
| 6473 | to always fail with ENOSYS. Some functions are actually named |
| 6474 | something starting with __ and the normal name is an alias. */ |
| 6475 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 6476 | choke me |
| 6477 | #else |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 6478 | f = shl_load; |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6479 | #endif |
| 6480 | |
| 6481 | ; |
| 6482 | return 0; |
| 6483 | } |
| 6484 | _ACEOF |
| 6485 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6486 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6487 | (eval $ac_link) 2>&5 |
| 6488 | ac_status=$? |
| 6489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6490 | (exit $ac_status); } && |
| 6491 | { ac_try='test -s conftest$ac_exeext' |
| 6492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6493 | (eval $ac_try) 2>&5 |
| 6494 | ac_status=$? |
| 6495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6496 | (exit $ac_status); }; }; then |
| 6497 | ac_cv_func_shl_load=yes |
| 6498 | else |
| 6499 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 6500 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6501 | ac_cv_func_shl_load=no |
| 6502 | fi |
| 6503 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6504 | fi |
| 6505 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 6506 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 6507 | if test $ac_cv_func_shl_load = yes; then |
| 6508 | lt_cv_dlopen="shl_load" |
| 6509 | else |
| 6510 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 6511 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 6512 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 6513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6514 | else |
| 6515 | ac_check_lib_save_LIBS=$LIBS |
| 6516 | LIBS="-ldld $LIBS" |
| 6517 | cat >conftest.$ac_ext <<_ACEOF |
| 6518 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 6519 | #include "confdefs.h" |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6520 | |
| 6521 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6522 | #ifdef __cplusplus |
| 6523 | extern "C" |
| 6524 | #endif |
| 6525 | /* We use char because int might match the return type of a gcc2 |
| 6526 | builtin and then its argument prototype would still apply. */ |
| 6527 | char shl_load (); |
| 6528 | int |
| 6529 | main () |
| 6530 | { |
| 6531 | shl_load (); |
| 6532 | ; |
| 6533 | return 0; |
| 6534 | } |
| 6535 | _ACEOF |
| 6536 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6537 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6538 | (eval $ac_link) 2>&5 |
| 6539 | ac_status=$? |
| 6540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6541 | (exit $ac_status); } && |
| 6542 | { ac_try='test -s conftest$ac_exeext' |
| 6543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6544 | (eval $ac_try) 2>&5 |
| 6545 | ac_status=$? |
| 6546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6547 | (exit $ac_status); }; }; then |
| 6548 | ac_cv_lib_dld_shl_load=yes |
| 6549 | else |
| 6550 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 6551 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6552 | ac_cv_lib_dld_shl_load=no |
| 6553 | fi |
| 6554 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6555 | LIBS=$ac_check_lib_save_LIBS |
| 6556 | fi |
| 6557 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 6558 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 6559 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 6560 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 6561 | else |
| 6562 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 6563 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 6564 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 6565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6566 | else |
| 6567 | cat >conftest.$ac_ext <<_ACEOF |
| 6568 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 6569 | #include "confdefs.h" |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6570 | /* System header to define __stub macros and hopefully few prototypes, |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 6571 | which can conflict with char dlopen (); below. */ |
| 6572 | #include <assert.h> |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6573 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6574 | #ifdef __cplusplus |
| 6575 | extern "C" |
| 6576 | #endif |
| 6577 | /* We use char because int might match the return type of a gcc2 |
| 6578 | builtin and then its argument prototype would still apply. */ |
| 6579 | char dlopen (); |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 6580 | char (*f) (); |
| 6581 | |
| 6582 | int |
| 6583 | main () |
| 6584 | { |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6585 | /* The GNU C library defines this for functions which it implements |
| 6586 | to always fail with ENOSYS. Some functions are actually named |
| 6587 | something starting with __ and the normal name is an alias. */ |
| 6588 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 6589 | choke me |
| 6590 | #else |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 6591 | f = dlopen; |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6592 | #endif |
| 6593 | |
| 6594 | ; |
| 6595 | return 0; |
| 6596 | } |
| 6597 | _ACEOF |
| 6598 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6599 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6600 | (eval $ac_link) 2>&5 |
| 6601 | ac_status=$? |
| 6602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6603 | (exit $ac_status); } && |
| 6604 | { ac_try='test -s conftest$ac_exeext' |
| 6605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6606 | (eval $ac_try) 2>&5 |
| 6607 | ac_status=$? |
| 6608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6609 | (exit $ac_status); }; }; then |
| 6610 | ac_cv_func_dlopen=yes |
| 6611 | else |
| 6612 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 6613 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6614 | ac_cv_func_dlopen=no |
| 6615 | fi |
| 6616 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6617 | fi |
| 6618 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 6619 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 6620 | if test $ac_cv_func_dlopen = yes; then |
| 6621 | lt_cv_dlopen="dlopen" |
| 6622 | else |
| 6623 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 6624 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 6625 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 6626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6627 | else |
| 6628 | ac_check_lib_save_LIBS=$LIBS |
| 6629 | LIBS="-ldl $LIBS" |
| 6630 | cat >conftest.$ac_ext <<_ACEOF |
| 6631 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 6632 | #include "confdefs.h" |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6633 | |
| 6634 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6635 | #ifdef __cplusplus |
| 6636 | extern "C" |
| 6637 | #endif |
| 6638 | /* We use char because int might match the return type of a gcc2 |
| 6639 | builtin and then its argument prototype would still apply. */ |
| 6640 | char dlopen (); |
| 6641 | int |
| 6642 | main () |
| 6643 | { |
| 6644 | dlopen (); |
| 6645 | ; |
| 6646 | return 0; |
| 6647 | } |
| 6648 | _ACEOF |
| 6649 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6650 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6651 | (eval $ac_link) 2>&5 |
| 6652 | ac_status=$? |
| 6653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6654 | (exit $ac_status); } && |
| 6655 | { ac_try='test -s conftest$ac_exeext' |
| 6656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6657 | (eval $ac_try) 2>&5 |
| 6658 | ac_status=$? |
| 6659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6660 | (exit $ac_status); }; }; then |
| 6661 | ac_cv_lib_dl_dlopen=yes |
| 6662 | else |
| 6663 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 6664 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6665 | ac_cv_lib_dl_dlopen=no |
| 6666 | fi |
| 6667 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6668 | LIBS=$ac_check_lib_save_LIBS |
| 6669 | fi |
| 6670 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 6671 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 6672 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 6673 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 6674 | else |
| 6675 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 6676 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 6677 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 6678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6679 | else |
| 6680 | ac_check_lib_save_LIBS=$LIBS |
| 6681 | LIBS="-lsvld $LIBS" |
| 6682 | cat >conftest.$ac_ext <<_ACEOF |
| 6683 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 6684 | #include "confdefs.h" |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6685 | |
| 6686 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6687 | #ifdef __cplusplus |
| 6688 | extern "C" |
| 6689 | #endif |
| 6690 | /* We use char because int might match the return type of a gcc2 |
| 6691 | builtin and then its argument prototype would still apply. */ |
| 6692 | char dlopen (); |
| 6693 | int |
| 6694 | main () |
| 6695 | { |
| 6696 | dlopen (); |
| 6697 | ; |
| 6698 | return 0; |
| 6699 | } |
| 6700 | _ACEOF |
| 6701 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6702 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6703 | (eval $ac_link) 2>&5 |
| 6704 | ac_status=$? |
| 6705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6706 | (exit $ac_status); } && |
| 6707 | { ac_try='test -s conftest$ac_exeext' |
| 6708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6709 | (eval $ac_try) 2>&5 |
| 6710 | ac_status=$? |
| 6711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6712 | (exit $ac_status); }; }; then |
| 6713 | ac_cv_lib_svld_dlopen=yes |
| 6714 | else |
| 6715 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 6716 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6717 | ac_cv_lib_svld_dlopen=no |
| 6718 | fi |
| 6719 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6720 | LIBS=$ac_check_lib_save_LIBS |
| 6721 | fi |
| 6722 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 6723 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 6724 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 6725 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 6726 | else |
| 6727 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 6728 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 6729 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 6730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6731 | else |
| 6732 | ac_check_lib_save_LIBS=$LIBS |
| 6733 | LIBS="-ldld $LIBS" |
| 6734 | cat >conftest.$ac_ext <<_ACEOF |
| 6735 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 6736 | #include "confdefs.h" |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6737 | |
| 6738 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6739 | #ifdef __cplusplus |
| 6740 | extern "C" |
| 6741 | #endif |
| 6742 | /* We use char because int might match the return type of a gcc2 |
| 6743 | builtin and then its argument prototype would still apply. */ |
| 6744 | char dld_link (); |
| 6745 | int |
| 6746 | main () |
| 6747 | { |
| 6748 | dld_link (); |
| 6749 | ; |
| 6750 | return 0; |
| 6751 | } |
| 6752 | _ACEOF |
| 6753 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6754 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6755 | (eval $ac_link) 2>&5 |
| 6756 | ac_status=$? |
| 6757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6758 | (exit $ac_status); } && |
| 6759 | { ac_try='test -s conftest$ac_exeext' |
| 6760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6761 | (eval $ac_try) 2>&5 |
| 6762 | ac_status=$? |
| 6763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6764 | (exit $ac_status); }; }; then |
| 6765 | ac_cv_lib_dld_dld_link=yes |
| 6766 | else |
| 6767 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 6768 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6769 | ac_cv_lib_dld_dld_link=no |
| 6770 | fi |
| 6771 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6772 | LIBS=$ac_check_lib_save_LIBS |
| 6773 | fi |
| 6774 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 6775 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 6776 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 6777 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 6778 | fi |
| 6779 | |
| 6780 | |
| 6781 | fi |
| 6782 | |
| 6783 | |
| 6784 | fi |
| 6785 | |
| 6786 | |
| 6787 | fi |
| 6788 | |
| 6789 | |
| 6790 | fi |
| 6791 | |
| 6792 | |
| 6793 | fi |
| 6794 | |
| 6795 | ;; |
| 6796 | esac |
| 6797 | |
| 6798 | if test "x$lt_cv_dlopen" != xno; then |
| 6799 | enable_dlopen=yes |
| 6800 | else |
| 6801 | enable_dlopen=no |
| 6802 | fi |
| 6803 | |
| 6804 | case $lt_cv_dlopen in |
| 6805 | dlopen) |
| 6806 | save_CPPFLAGS="$CPPFLAGS" |
| 6807 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 6808 | |
| 6809 | save_LDFLAGS="$LDFLAGS" |
| 6810 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 6811 | |
| 6812 | save_LIBS="$LIBS" |
| 6813 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 6814 | |
| 6815 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 6816 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 6817 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 6818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6819 | else |
| 6820 | if test "$cross_compiling" = yes; then : |
| 6821 | lt_cv_dlopen_self=cross |
| 6822 | else |
| 6823 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 6824 | lt_status=$lt_dlunknown |
| 6825 | cat > conftest.$ac_ext <<EOF |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 6826 | #line 6826 "configure" |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6827 | #include "confdefs.h" |
| 6828 | |
| 6829 | #if HAVE_DLFCN_H |
| 6830 | #include <dlfcn.h> |
| 6831 | #endif |
| 6832 | |
| 6833 | #include <stdio.h> |
| 6834 | |
| 6835 | #ifdef RTLD_GLOBAL |
| 6836 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 6837 | #else |
| 6838 | # ifdef DL_GLOBAL |
| 6839 | # define LT_DLGLOBAL DL_GLOBAL |
| 6840 | # else |
| 6841 | # define LT_DLGLOBAL 0 |
| 6842 | # endif |
| 6843 | #endif |
| 6844 | |
| 6845 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 6846 | find out it does not work in some platform. */ |
| 6847 | #ifndef LT_DLLAZY_OR_NOW |
| 6848 | # ifdef RTLD_LAZY |
| 6849 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 6850 | # else |
| 6851 | # ifdef DL_LAZY |
| 6852 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 6853 | # else |
| 6854 | # ifdef RTLD_NOW |
| 6855 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 6856 | # else |
| 6857 | # ifdef DL_NOW |
| 6858 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 6859 | # else |
| 6860 | # define LT_DLLAZY_OR_NOW 0 |
| 6861 | # endif |
| 6862 | # endif |
| 6863 | # endif |
| 6864 | # endif |
| 6865 | #endif |
| 6866 | |
| 6867 | #ifdef __cplusplus |
| 6868 | extern "C" void exit (int); |
| 6869 | #endif |
| 6870 | |
| 6871 | void fnord() { int i=42;} |
| 6872 | int main () |
| 6873 | { |
| 6874 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 6875 | int status = $lt_dlunknown; |
| 6876 | |
| 6877 | if (self) |
| 6878 | { |
| 6879 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 6880 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 6881 | /* dlclose (self); */ |
| 6882 | } |
| 6883 | |
| 6884 | exit (status); |
| 6885 | } |
| 6886 | EOF |
| 6887 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6888 | (eval $ac_link) 2>&5 |
| 6889 | ac_status=$? |
| 6890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6891 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 6892 | (./conftest; exit; ) 2>/dev/null |
| 6893 | lt_status=$? |
| 6894 | case x$lt_status in |
| 6895 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 6896 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 6897 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 6898 | esac |
| 6899 | else : |
| 6900 | # compilation failed |
| 6901 | lt_cv_dlopen_self=no |
| 6902 | fi |
| 6903 | fi |
| 6904 | rm -fr conftest* |
| 6905 | |
| 6906 | |
| 6907 | fi |
| 6908 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 6909 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 6910 | |
| 6911 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 6912 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 6913 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 6914 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 6915 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 6916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6917 | else |
| 6918 | if test "$cross_compiling" = yes; then : |
| 6919 | lt_cv_dlopen_self_static=cross |
| 6920 | else |
| 6921 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 6922 | lt_status=$lt_dlunknown |
| 6923 | cat > conftest.$ac_ext <<EOF |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 6924 | #line 6924 "configure" |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6925 | #include "confdefs.h" |
| 6926 | |
| 6927 | #if HAVE_DLFCN_H |
| 6928 | #include <dlfcn.h> |
| 6929 | #endif |
| 6930 | |
| 6931 | #include <stdio.h> |
| 6932 | |
| 6933 | #ifdef RTLD_GLOBAL |
| 6934 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 6935 | #else |
| 6936 | # ifdef DL_GLOBAL |
| 6937 | # define LT_DLGLOBAL DL_GLOBAL |
| 6938 | # else |
| 6939 | # define LT_DLGLOBAL 0 |
| 6940 | # endif |
| 6941 | #endif |
| 6942 | |
| 6943 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 6944 | find out it does not work in some platform. */ |
| 6945 | #ifndef LT_DLLAZY_OR_NOW |
| 6946 | # ifdef RTLD_LAZY |
| 6947 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 6948 | # else |
| 6949 | # ifdef DL_LAZY |
| 6950 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 6951 | # else |
| 6952 | # ifdef RTLD_NOW |
| 6953 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 6954 | # else |
| 6955 | # ifdef DL_NOW |
| 6956 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 6957 | # else |
| 6958 | # define LT_DLLAZY_OR_NOW 0 |
| 6959 | # endif |
| 6960 | # endif |
| 6961 | # endif |
| 6962 | # endif |
| 6963 | #endif |
| 6964 | |
| 6965 | #ifdef __cplusplus |
| 6966 | extern "C" void exit (int); |
| 6967 | #endif |
| 6968 | |
| 6969 | void fnord() { int i=42;} |
| 6970 | int main () |
| 6971 | { |
| 6972 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 6973 | int status = $lt_dlunknown; |
| 6974 | |
| 6975 | if (self) |
| 6976 | { |
| 6977 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 6978 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 6979 | /* dlclose (self); */ |
| 6980 | } |
| 6981 | |
| 6982 | exit (status); |
| 6983 | } |
| 6984 | EOF |
| 6985 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6986 | (eval $ac_link) 2>&5 |
| 6987 | ac_status=$? |
| 6988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6989 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 6990 | (./conftest; exit; ) 2>/dev/null |
| 6991 | lt_status=$? |
| 6992 | case x$lt_status in |
| 6993 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 6994 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 6995 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 6996 | esac |
| 6997 | else : |
| 6998 | # compilation failed |
| 6999 | lt_cv_dlopen_self_static=no |
| 7000 | fi |
| 7001 | fi |
| 7002 | rm -fr conftest* |
| 7003 | |
| 7004 | |
| 7005 | fi |
| 7006 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 7007 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 7008 | fi |
| 7009 | |
| 7010 | CPPFLAGS="$save_CPPFLAGS" |
| 7011 | LDFLAGS="$save_LDFLAGS" |
| 7012 | LIBS="$save_LIBS" |
| 7013 | ;; |
| 7014 | esac |
| 7015 | |
| 7016 | case $lt_cv_dlopen_self in |
| 7017 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 7018 | *) enable_dlopen_self=unknown ;; |
| 7019 | esac |
| 7020 | |
| 7021 | case $lt_cv_dlopen_self_static in |
| 7022 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 7023 | *) enable_dlopen_self_static=unknown ;; |
| 7024 | esac |
| 7025 | fi |
| 7026 | |
| 7027 | |
| 7028 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 7029 | case $archive_cmds in |
| 7030 | *'~'*) |
| 7031 | # FIXME: we may have to deal with multi-command sequences. |
| 7032 | ;; |
| 7033 | '$CC '*) |
| 7034 | # Test whether the compiler implicitly links with -lc since on some |
| 7035 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 7036 | # to ld, don't add -lc before -lgcc. |
| 7037 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 7038 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 7039 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then |
| 7040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7041 | else |
| 7042 | $rm conftest* |
| 7043 | echo 'static int dummy;' > conftest.$ac_ext |
| 7044 | |
| 7045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7046 | (eval $ac_compile) 2>&5 |
| 7047 | ac_status=$? |
| 7048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7049 | (exit $ac_status); }; then |
| 7050 | soname=conftest |
| 7051 | lib=conftest |
| 7052 | libobjs=conftest.$ac_objext |
| 7053 | deplibs= |
| 7054 | wl=$lt_cv_prog_cc_wl |
| 7055 | compiler_flags=-v |
| 7056 | linker_flags=-v |
| 7057 | verstring= |
| 7058 | output_objdir=. |
| 7059 | libname=conftest |
| 7060 | save_allow_undefined_flag=$allow_undefined_flag |
| 7061 | allow_undefined_flag= |
| 7062 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 7063 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 7064 | ac_status=$? |
| 7065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7066 | (exit $ac_status); } |
| 7067 | then |
| 7068 | lt_cv_archive_cmds_need_lc=no |
| 7069 | else |
| 7070 | lt_cv_archive_cmds_need_lc=yes |
| 7071 | fi |
| 7072 | allow_undefined_flag=$save_allow_undefined_flag |
| 7073 | else |
| 7074 | cat conftest.err 1>&5 |
| 7075 | fi |
| 7076 | fi |
| 7077 | |
| 7078 | echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 7079 | echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 |
| 7080 | ;; |
| 7081 | esac |
| 7082 | fi |
| 7083 | need_lc=${lt_cv_archive_cmds_need_lc-yes} |
| 7084 | |
| 7085 | # The second clause should only fire when bootstrapping the |
| 7086 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 7087 | # with your package, and you will get complaints that there are |
| 7088 | # no rules to generate ltmain.sh. |
| 7089 | if test -f "$ltmain"; then |
| 7090 | : |
| 7091 | else |
| 7092 | # If there is no Makefile yet, we rely on a make rule to execute |
| 7093 | # `config.status --recheck' to rerun these tests and create the |
| 7094 | # libtool script then. |
| 7095 | test -f Makefile && make "$ltmain" |
| 7096 | fi |
| 7097 | |
| 7098 | if test -f "$ltmain"; then |
| 7099 | trap "$rm \"${ofile}T\"; exit 1" 1 2 15 |
| 7100 | $rm -f "${ofile}T" |
| 7101 | |
| 7102 | echo creating $ofile |
| 7103 | |
| 7104 | # Now quote all the things that may contain metacharacters while being |
| 7105 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 7106 | # variables and quote the copies for generation of the libtool script. |
| 7107 | for var in echo old_CC old_CFLAGS SED \ |
| 7108 | AR AR_FLAGS CC LD LN_S NM SHELL \ |
| 7109 | reload_flag reload_cmds wl \ |
| 7110 | pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ |
| 7111 | thread_safe_flag_spec whole_archive_flag_spec libname_spec \ |
| 7112 | library_names_spec soname_spec \ |
| 7113 | RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ |
| 7114 | old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ |
| 7115 | postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ |
| 7116 | old_striplib striplib file_magic_cmd export_symbols_cmds \ |
| 7117 | deplibs_check_method allow_undefined_flag no_undefined_flag \ |
| 7118 | finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ |
| 7119 | global_symbol_to_c_name_address \ |
| 7120 | hardcode_libdir_flag_spec hardcode_libdir_separator \ |
| 7121 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 7122 | compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do |
| 7123 | |
| 7124 | case $var in |
| 7125 | reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ |
| 7126 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 7127 | export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ |
| 7128 | extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ |
| 7129 | postinstall_cmds | postuninstall_cmds | \ |
| 7130 | finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 7131 | # Double-quote double-evaled strings. |
| 7132 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 7133 | ;; |
| 7134 | *) |
| 7135 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 7136 | ;; |
| 7137 | esac |
| 7138 | done |
| 7139 | |
| 7140 | cat <<__EOF__ > "${ofile}T" |
| 7141 | #! $SHELL |
| 7142 | |
| 7143 | # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 7144 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 7145 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 7146 | # |
| 7147 | # Copyright (C) 1996-2000 Free Software Foundation, Inc. |
| 7148 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 7149 | # |
| 7150 | # This program is free software; you can redistribute it and/or modify |
| 7151 | # it under the terms of the GNU General Public License as published by |
| 7152 | # the Free Software Foundation; either version 2 of the License, or |
| 7153 | # (at your option) any later version. |
| 7154 | # |
| 7155 | # This program is distributed in the hope that it will be useful, but |
| 7156 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 7157 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 7158 | # General Public License for more details. |
| 7159 | # |
| 7160 | # You should have received a copy of the GNU General Public License |
| 7161 | # along with this program; if not, write to the Free Software |
| 7162 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 7163 | # |
| 7164 | # As a special exception to the GNU General Public License, if you |
| 7165 | # distribute this file as part of a program that contains a |
| 7166 | # configuration script generated by Autoconf, you may include it under |
| 7167 | # the same distribution terms that you use for the rest of that program. |
| 7168 | |
| 7169 | # A sed that does not truncate output. |
| 7170 | SED=$lt_SED |
| 7171 | |
| 7172 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 7173 | Xsed="${SED} -e s/^X//" |
| 7174 | |
| 7175 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 7176 | # if CDPATH is set. |
| 7177 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 7178 | |
| 7179 | # ### BEGIN LIBTOOL CONFIG |
| 7180 | |
| 7181 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 7182 | |
| 7183 | # Shell to use when invoking shell scripts. |
| 7184 | SHELL=$lt_SHELL |
| 7185 | |
| 7186 | # Whether or not to build shared libraries. |
| 7187 | build_libtool_libs=$enable_shared |
| 7188 | |
| 7189 | # Whether or not to build static libraries. |
| 7190 | build_old_libs=$enable_static |
| 7191 | |
| 7192 | # Whether or not to add -lc for building shared libraries. |
| 7193 | build_libtool_need_lc=$need_lc |
| 7194 | |
| 7195 | # Whether or not to optimize for fast installation. |
| 7196 | fast_install=$enable_fast_install |
| 7197 | |
| 7198 | # The host system. |
| 7199 | host_alias=$host_alias |
| 7200 | host=$host |
| 7201 | |
| 7202 | # An echo program that does not interpret backslashes. |
| 7203 | echo=$lt_echo |
| 7204 | |
| 7205 | # The archiver. |
| 7206 | AR=$lt_AR |
| 7207 | AR_FLAGS=$lt_AR_FLAGS |
| 7208 | |
| 7209 | # The default C compiler. |
| 7210 | CC=$lt_CC |
| 7211 | |
| 7212 | # Is the compiler the GNU C compiler? |
| 7213 | with_gcc=$GCC |
| 7214 | |
| 7215 | # The linker used to build libraries. |
| 7216 | LD=$lt_LD |
| 7217 | |
| 7218 | # Whether we need hard or soft links. |
| 7219 | LN_S=$lt_LN_S |
| 7220 | |
| 7221 | # A BSD-compatible nm program. |
| 7222 | NM=$lt_NM |
| 7223 | |
| 7224 | # A symbol stripping program |
| 7225 | STRIP=$STRIP |
| 7226 | |
| 7227 | # Used to examine libraries when file_magic_cmd begins "file" |
| 7228 | MAGIC_CMD=$MAGIC_CMD |
| 7229 | |
| 7230 | # Used on cygwin: DLL creation program. |
| 7231 | DLLTOOL="$DLLTOOL" |
| 7232 | |
| 7233 | # Used on cygwin: object dumper. |
| 7234 | OBJDUMP="$OBJDUMP" |
| 7235 | |
| 7236 | # Used on cygwin: assembler. |
| 7237 | AS="$AS" |
| 7238 | |
| 7239 | # The name of the directory that contains temporary libtool files. |
| 7240 | objdir=$objdir |
| 7241 | |
| 7242 | # How to create reloadable object files. |
| 7243 | reload_flag=$lt_reload_flag |
| 7244 | reload_cmds=$lt_reload_cmds |
| 7245 | |
| 7246 | # How to pass a linker flag through the compiler. |
| 7247 | wl=$lt_wl |
| 7248 | |
| 7249 | # Object file suffix (normally "o"). |
| 7250 | objext="$ac_objext" |
| 7251 | |
| 7252 | # Old archive suffix (normally "a"). |
| 7253 | libext="$libext" |
| 7254 | |
| 7255 | # Executable file suffix (normally ""). |
| 7256 | exeext="$exeext" |
| 7257 | |
| 7258 | # Additional compiler flags for building library objects. |
| 7259 | pic_flag=$lt_pic_flag |
| 7260 | pic_mode=$pic_mode |
| 7261 | |
| 7262 | # Does compiler simultaneously support -c and -o options? |
| 7263 | compiler_c_o=$lt_compiler_c_o |
| 7264 | |
| 7265 | # Can we write directly to a .lo ? |
| 7266 | compiler_o_lo=$lt_compiler_o_lo |
| 7267 | |
| 7268 | # Must we lock files when doing compilation ? |
| 7269 | need_locks=$lt_need_locks |
| 7270 | |
| 7271 | # Do we need the lib prefix for modules? |
| 7272 | need_lib_prefix=$need_lib_prefix |
| 7273 | |
| 7274 | # Do we need a version for libraries? |
| 7275 | need_version=$need_version |
| 7276 | |
| 7277 | # Whether dlopen is supported. |
| 7278 | dlopen_support=$enable_dlopen |
| 7279 | |
| 7280 | # Whether dlopen of programs is supported. |
| 7281 | dlopen_self=$enable_dlopen_self |
| 7282 | |
| 7283 | # Whether dlopen of statically linked programs is supported. |
| 7284 | dlopen_self_static=$enable_dlopen_self_static |
| 7285 | |
| 7286 | # Compiler flag to prevent dynamic linking. |
| 7287 | link_static_flag=$lt_link_static_flag |
| 7288 | |
| 7289 | # Compiler flag to turn off builtin functions. |
| 7290 | no_builtin_flag=$lt_no_builtin_flag |
| 7291 | |
| 7292 | # Compiler flag to allow reflexive dlopens. |
| 7293 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 7294 | |
| 7295 | # Compiler flag to generate shared objects directly from archives. |
| 7296 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 7297 | |
| 7298 | # Compiler flag to generate thread-safe objects. |
| 7299 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 7300 | |
| 7301 | # Library versioning type. |
| 7302 | version_type=$version_type |
| 7303 | |
| 7304 | # Format of library name prefix. |
| 7305 | libname_spec=$lt_libname_spec |
| 7306 | |
| 7307 | # List of archive names. First name is the real one, the rest are links. |
| 7308 | # The last name is the one that the linker finds with -lNAME. |
| 7309 | library_names_spec=$lt_library_names_spec |
| 7310 | |
| 7311 | # The coded name of the library, if different from the real name. |
| 7312 | soname_spec=$lt_soname_spec |
| 7313 | |
| 7314 | # Commands used to build and install an old-style archive. |
| 7315 | RANLIB=$lt_RANLIB |
| 7316 | old_archive_cmds=$lt_old_archive_cmds |
| 7317 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 7318 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 7319 | |
| 7320 | # Create an old-style archive from a shared archive. |
| 7321 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 7322 | |
| 7323 | # Create a temporary old-style archive to link instead of a shared archive. |
| 7324 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 7325 | |
| 7326 | # Commands used to build and install a shared archive. |
| 7327 | archive_cmds=$lt_archive_cmds |
| 7328 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 7329 | postinstall_cmds=$lt_postinstall_cmds |
| 7330 | postuninstall_cmds=$lt_postuninstall_cmds |
| 7331 | |
| 7332 | # Commands to strip libraries. |
| 7333 | old_striplib=$lt_old_striplib |
| 7334 | striplib=$lt_striplib |
| 7335 | |
| 7336 | # Method to check whether dependent libraries are shared objects. |
| 7337 | deplibs_check_method=$lt_deplibs_check_method |
| 7338 | |
| 7339 | # Command to use when deplibs_check_method == file_magic. |
| 7340 | file_magic_cmd=$lt_file_magic_cmd |
| 7341 | |
| 7342 | # Flag that allows shared libraries with undefined symbols to be built. |
| 7343 | allow_undefined_flag=$lt_allow_undefined_flag |
| 7344 | |
| 7345 | # Flag that forces no undefined symbols. |
| 7346 | no_undefined_flag=$lt_no_undefined_flag |
| 7347 | |
| 7348 | # Commands used to finish a libtool library installation in a directory. |
| 7349 | finish_cmds=$lt_finish_cmds |
| 7350 | |
| 7351 | # Same as above, but a single script fragment to be evaled but not shown. |
| 7352 | finish_eval=$lt_finish_eval |
| 7353 | |
| 7354 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 7355 | global_symbol_pipe=$lt_global_symbol_pipe |
| 7356 | |
| 7357 | # Transform the output of nm in a proper C declaration |
| 7358 | global_symbol_to_cdecl=$lt_global_symbol_to_cdecl |
| 7359 | |
| 7360 | # Transform the output of nm in a C name address pair |
| 7361 | global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address |
| 7362 | |
| 7363 | # This is the shared library runtime path variable. |
| 7364 | runpath_var=$runpath_var |
| 7365 | |
| 7366 | # This is the shared library path variable. |
| 7367 | shlibpath_var=$shlibpath_var |
| 7368 | |
| 7369 | # Is shlibpath searched before the hard-coded library search path? |
| 7370 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 7371 | |
| 7372 | # How to hardcode a shared library path into an executable. |
| 7373 | hardcode_action=$hardcode_action |
| 7374 | |
| 7375 | # Whether we should hardcode library paths into libraries. |
| 7376 | hardcode_into_libs=$hardcode_into_libs |
| 7377 | |
| 7378 | # Flag to hardcode \$libdir into a binary during linking. |
| 7379 | # This must work even if \$libdir does not exist. |
| 7380 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 7381 | |
| 7382 | # Whether we need a single -rpath flag with a separated argument. |
| 7383 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 7384 | |
| 7385 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the |
| 7386 | # resulting binary. |
| 7387 | hardcode_direct=$hardcode_direct |
| 7388 | |
| 7389 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 7390 | # resulting binary. |
| 7391 | hardcode_minus_L=$hardcode_minus_L |
| 7392 | |
| 7393 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 7394 | # the resulting binary. |
| 7395 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 7396 | |
| 7397 | # Variables whose values should be saved in libtool wrapper scripts and |
| 7398 | # restored at relink time. |
| 7399 | variables_saved_for_relink="$variables_saved_for_relink" |
| 7400 | |
| 7401 | # Whether libtool must link a program against all its dependency libraries. |
| 7402 | link_all_deplibs=$link_all_deplibs |
| 7403 | |
| 7404 | # Compile-time system search path for libraries |
| 7405 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 7406 | |
| 7407 | # Run-time system search path for libraries |
| 7408 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 7409 | |
| 7410 | # Fix the shell variable \$srcfile for the compiler. |
| 7411 | fix_srcfile_path="$fix_srcfile_path" |
| 7412 | |
| 7413 | # Set to yes if exported symbols are required. |
| 7414 | always_export_symbols=$always_export_symbols |
| 7415 | |
| 7416 | # The commands to list exported symbols. |
| 7417 | export_symbols_cmds=$lt_export_symbols_cmds |
| 7418 | |
| 7419 | # The commands to extract the exported symbol list from a shared archive. |
| 7420 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 7421 | |
| 7422 | # Symbols that should not be listed in the preloaded symbols. |
| 7423 | exclude_expsyms=$lt_exclude_expsyms |
| 7424 | |
| 7425 | # Symbols that must always be exported. |
| 7426 | include_expsyms=$lt_include_expsyms |
| 7427 | |
| 7428 | # ### END LIBTOOL CONFIG |
| 7429 | |
| 7430 | __EOF__ |
| 7431 | |
| 7432 | case $host_os in |
| 7433 | aix3*) |
| 7434 | cat <<\EOF >> "${ofile}T" |
| 7435 | |
| 7436 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 7437 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 7438 | # vanish in a puff of smoke. |
| 7439 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 7440 | COLLECT_NAMES= |
| 7441 | export COLLECT_NAMES |
| 7442 | fi |
| 7443 | EOF |
| 7444 | ;; |
| 7445 | esac |
| 7446 | |
| 7447 | case $host_os in |
| 7448 | cygwin* | mingw* | pw32* | os2*) |
| 7449 | cat <<'EOF' >> "${ofile}T" |
| 7450 | # This is a source program that is used to create dlls on Windows |
| 7451 | # Don't remove nor modify the starting and closing comments |
| 7452 | # /* ltdll.c starts here */ |
| 7453 | # #define WIN32_LEAN_AND_MEAN |
| 7454 | # #include <windows.h> |
| 7455 | # #undef WIN32_LEAN_AND_MEAN |
| 7456 | # #include <stdio.h> |
| 7457 | # |
| 7458 | # #ifndef __CYGWIN__ |
| 7459 | # # ifdef __CYGWIN32__ |
| 7460 | # # define __CYGWIN__ __CYGWIN32__ |
| 7461 | # # endif |
| 7462 | # #endif |
| 7463 | # |
| 7464 | # #ifdef __cplusplus |
| 7465 | # extern "C" { |
| 7466 | # #endif |
| 7467 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); |
| 7468 | # #ifdef __cplusplus |
| 7469 | # } |
| 7470 | # #endif |
| 7471 | # |
| 7472 | # #ifdef __CYGWIN__ |
| 7473 | # #include <cygwin/cygwin_dll.h> |
| 7474 | # DECLARE_CYGWIN_DLL( DllMain ); |
| 7475 | # #endif |
| 7476 | # HINSTANCE __hDllInstance_base; |
| 7477 | # |
| 7478 | # BOOL APIENTRY |
| 7479 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) |
| 7480 | # { |
| 7481 | # __hDllInstance_base = hInst; |
| 7482 | # return TRUE; |
| 7483 | # } |
| 7484 | # /* ltdll.c ends here */ |
| 7485 | # This is a source program that is used to create import libraries |
| 7486 | # on Windows for dlls which lack them. Don't remove nor modify the |
| 7487 | # starting and closing comments |
| 7488 | # /* impgen.c starts here */ |
| 7489 | # /* Copyright (C) 1999-2000 Free Software Foundation, Inc. |
| 7490 | # |
| 7491 | # This file is part of GNU libtool. |
| 7492 | # |
| 7493 | # This program is free software; you can redistribute it and/or modify |
| 7494 | # it under the terms of the GNU General Public License as published by |
| 7495 | # the Free Software Foundation; either version 2 of the License, or |
| 7496 | # (at your option) any later version. |
| 7497 | # |
| 7498 | # This program is distributed in the hope that it will be useful, |
| 7499 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 7500 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 7501 | # GNU General Public License for more details. |
| 7502 | # |
| 7503 | # You should have received a copy of the GNU General Public License |
| 7504 | # along with this program; if not, write to the Free Software |
| 7505 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 7506 | # */ |
| 7507 | # |
| 7508 | # #include <stdio.h> /* for printf() */ |
| 7509 | # #include <unistd.h> /* for open(), lseek(), read() */ |
| 7510 | # #include <fcntl.h> /* for O_RDONLY, O_BINARY */ |
| 7511 | # #include <string.h> /* for strdup() */ |
| 7512 | # |
| 7513 | # /* O_BINARY isn't required (or even defined sometimes) under Unix */ |
| 7514 | # #ifndef O_BINARY |
| 7515 | # #define O_BINARY 0 |
| 7516 | # #endif |
| 7517 | # |
| 7518 | # static unsigned int |
| 7519 | # pe_get16 (fd, offset) |
| 7520 | # int fd; |
| 7521 | # int offset; |
| 7522 | # { |
| 7523 | # unsigned char b[2]; |
| 7524 | # lseek (fd, offset, SEEK_SET); |
| 7525 | # read (fd, b, 2); |
| 7526 | # return b[0] + (b[1]<<8); |
| 7527 | # } |
| 7528 | # |
| 7529 | # static unsigned int |
| 7530 | # pe_get32 (fd, offset) |
| 7531 | # int fd; |
| 7532 | # int offset; |
| 7533 | # { |
| 7534 | # unsigned char b[4]; |
| 7535 | # lseek (fd, offset, SEEK_SET); |
| 7536 | # read (fd, b, 4); |
| 7537 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
| 7538 | # } |
| 7539 | # |
| 7540 | # static unsigned int |
| 7541 | # pe_as32 (ptr) |
| 7542 | # void *ptr; |
| 7543 | # { |
| 7544 | # unsigned char *b = ptr; |
| 7545 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
| 7546 | # } |
| 7547 | # |
| 7548 | # int |
| 7549 | # main (argc, argv) |
| 7550 | # int argc; |
| 7551 | # char *argv[]; |
| 7552 | # { |
| 7553 | # int dll; |
| 7554 | # unsigned long pe_header_offset, opthdr_ofs, num_entries, i; |
| 7555 | # unsigned long export_rva, export_size, nsections, secptr, expptr; |
| 7556 | # unsigned long name_rvas, nexp; |
| 7557 | # unsigned char *expdata, *erva; |
| 7558 | # char *filename, *dll_name; |
| 7559 | # |
| 7560 | # filename = argv[1]; |
| 7561 | # |
| 7562 | # dll = open(filename, O_RDONLY|O_BINARY); |
| 7563 | # if (dll < 1) |
| 7564 | # return 1; |
| 7565 | # |
| 7566 | # dll_name = filename; |
| 7567 | # |
| 7568 | # for (i=0; filename[i]; i++) |
| 7569 | # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') |
| 7570 | # dll_name = filename + i +1; |
| 7571 | # |
| 7572 | # pe_header_offset = pe_get32 (dll, 0x3c); |
| 7573 | # opthdr_ofs = pe_header_offset + 4 + 20; |
| 7574 | # num_entries = pe_get32 (dll, opthdr_ofs + 92); |
| 7575 | # |
| 7576 | # if (num_entries < 1) /* no exports */ |
| 7577 | # return 1; |
| 7578 | # |
| 7579 | # export_rva = pe_get32 (dll, opthdr_ofs + 96); |
| 7580 | # export_size = pe_get32 (dll, opthdr_ofs + 100); |
| 7581 | # nsections = pe_get16 (dll, pe_header_offset + 4 +2); |
| 7582 | # secptr = (pe_header_offset + 4 + 20 + |
| 7583 | # pe_get16 (dll, pe_header_offset + 4 + 16)); |
| 7584 | # |
| 7585 | # expptr = 0; |
| 7586 | # for (i = 0; i < nsections; i++) |
| 7587 | # { |
| 7588 | # char sname[8]; |
| 7589 | # unsigned long secptr1 = secptr + 40 * i; |
| 7590 | # unsigned long vaddr = pe_get32 (dll, secptr1 + 12); |
| 7591 | # unsigned long vsize = pe_get32 (dll, secptr1 + 16); |
| 7592 | # unsigned long fptr = pe_get32 (dll, secptr1 + 20); |
| 7593 | # lseek(dll, secptr1, SEEK_SET); |
| 7594 | # read(dll, sname, 8); |
| 7595 | # if (vaddr <= export_rva && vaddr+vsize > export_rva) |
| 7596 | # { |
| 7597 | # expptr = fptr + (export_rva - vaddr); |
| 7598 | # if (export_rva + export_size > vaddr + vsize) |
| 7599 | # export_size = vsize - (export_rva - vaddr); |
| 7600 | # break; |
| 7601 | # } |
| 7602 | # } |
| 7603 | # |
| 7604 | # expdata = (unsigned char*)malloc(export_size); |
| 7605 | # lseek (dll, expptr, SEEK_SET); |
| 7606 | # read (dll, expdata, export_size); |
| 7607 | # erva = expdata - export_rva; |
| 7608 | # |
| 7609 | # nexp = pe_as32 (expdata+24); |
| 7610 | # name_rvas = pe_as32 (expdata+32); |
| 7611 | # |
| 7612 | # printf ("EXPORTS\n"); |
| 7613 | # for (i = 0; i<nexp; i++) |
| 7614 | # { |
| 7615 | # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); |
| 7616 | # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); |
| 7617 | # } |
| 7618 | # |
| 7619 | # return 0; |
| 7620 | # } |
| 7621 | # /* impgen.c ends here */ |
| 7622 | |
| 7623 | EOF |
| 7624 | ;; |
| 7625 | esac |
| 7626 | |
| 7627 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 7628 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 7629 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 7630 | # is reportedly fixed, but why not run on old versions too? |
| 7631 | sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) |
| 7632 | |
| 7633 | mv -f "${ofile}T" "$ofile" || \ |
| 7634 | (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") |
| 7635 | chmod +x "$ofile" |
| 7636 | fi |
| 7637 | |
| 7638 | |
| 7639 | |
| 7640 | |
| 7641 | |
| 7642 | # This can be used to rebuild libtool when needed |
| 7643 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 7644 | |
| 7645 | # Always use our own libtool. |
| 7646 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 7647 | |
| 7648 | # Prevent multiple expansion |
| 7649 | |
| 7650 | |
mostang.com!davidm | 6af90d0 | 2003-02-15 08:53:55 +0000 | [diff] [blame] | 7651 | # By default we simply use the C compiler to build assembly code. |
| 7652 | |
| 7653 | : ${CCAS='$(CC)'} |
| 7654 | # Set ASFLAGS if not already set. |
| 7655 | : ${CCASFLAGS='$(CFLAGS)'} |
| 7656 | |
| 7657 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7658 | |
| 7659 | |
| 7660 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 7661 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 7662 | if test "${ac_cv_header_stdc+set}" = set; then |
| 7663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7664 | else |
| 7665 | cat >conftest.$ac_ext <<_ACEOF |
| 7666 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 7667 | #include "confdefs.h" |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7668 | #include <stdlib.h> |
| 7669 | #include <stdarg.h> |
| 7670 | #include <string.h> |
| 7671 | #include <float.h> |
| 7672 | |
| 7673 | _ACEOF |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 7674 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7675 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7676 | ac_status=$? |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 7677 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7678 | rm -f conftest.er1 |
| 7679 | cat conftest.err >&5 |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 7681 | (exit $ac_status); } >/dev/null; then |
| 7682 | if test -s conftest.err; then |
| 7683 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7684 | else |
| 7685 | ac_cpp_err= |
| 7686 | fi |
| 7687 | else |
| 7688 | ac_cpp_err=yes |
| 7689 | fi |
| 7690 | if test -z "$ac_cpp_err"; then |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7691 | ac_cv_header_stdc=yes |
| 7692 | else |
| 7693 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 7694 | cat conftest.$ac_ext >&5 |
| 7695 | ac_cv_header_stdc=no |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7696 | fi |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 7697 | rm -f conftest.err conftest.$ac_ext |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7698 | |
| 7699 | if test $ac_cv_header_stdc = yes; then |
| 7700 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 7701 | cat >conftest.$ac_ext <<_ACEOF |
| 7702 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 7703 | #include "confdefs.h" |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7704 | #include <string.h> |
| 7705 | |
| 7706 | _ACEOF |
| 7707 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7708 | $EGREP "memchr" >/dev/null 2>&1; then |
| 7709 | : |
| 7710 | else |
| 7711 | ac_cv_header_stdc=no |
| 7712 | fi |
| 7713 | rm -f conftest* |
| 7714 | |
| 7715 | fi |
| 7716 | |
| 7717 | if test $ac_cv_header_stdc = yes; then |
| 7718 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 7719 | cat >conftest.$ac_ext <<_ACEOF |
| 7720 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 7721 | #include "confdefs.h" |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7722 | #include <stdlib.h> |
| 7723 | |
| 7724 | _ACEOF |
| 7725 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7726 | $EGREP "free" >/dev/null 2>&1; then |
| 7727 | : |
| 7728 | else |
| 7729 | ac_cv_header_stdc=no |
| 7730 | fi |
| 7731 | rm -f conftest* |
| 7732 | |
| 7733 | fi |
| 7734 | |
| 7735 | if test $ac_cv_header_stdc = yes; then |
| 7736 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 7737 | if test "$cross_compiling" = yes; then |
| 7738 | : |
| 7739 | else |
| 7740 | cat >conftest.$ac_ext <<_ACEOF |
| 7741 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 7742 | #include "confdefs.h" |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7743 | #include <ctype.h> |
| 7744 | #if ((' ' & 0x0FF) == 0x020) |
| 7745 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 7746 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 7747 | #else |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 7748 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7749 | || ('j' <= (c) && (c) <= 'r') \ |
| 7750 | || ('s' <= (c) && (c) <= 'z')) |
| 7751 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 7752 | #endif |
| 7753 | |
| 7754 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 7755 | int |
| 7756 | main () |
| 7757 | { |
| 7758 | int i; |
| 7759 | for (i = 0; i < 256; i++) |
| 7760 | if (XOR (islower (i), ISLOWER (i)) |
| 7761 | || toupper (i) != TOUPPER (i)) |
| 7762 | exit(2); |
| 7763 | exit (0); |
| 7764 | } |
| 7765 | _ACEOF |
| 7766 | rm -f conftest$ac_exeext |
| 7767 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7768 | (eval $ac_link) 2>&5 |
| 7769 | ac_status=$? |
| 7770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7771 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7773 | (eval $ac_try) 2>&5 |
| 7774 | ac_status=$? |
| 7775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7776 | (exit $ac_status); }; }; then |
| 7777 | : |
| 7778 | else |
| 7779 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7780 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 7781 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7782 | ( exit $ac_status ) |
| 7783 | ac_cv_header_stdc=no |
| 7784 | fi |
| 7785 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7786 | fi |
| 7787 | fi |
| 7788 | fi |
| 7789 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 7790 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 7791 | if test $ac_cv_header_stdc = yes; then |
| 7792 | |
| 7793 | cat >>confdefs.h <<\_ACEOF |
| 7794 | #define STDC_HEADERS 1 |
| 7795 | _ACEOF |
| 7796 | |
| 7797 | fi |
| 7798 | |
| 7799 | |
mostang.com!davidm | 6af90d0 | 2003-02-15 08:53:55 +0000 | [diff] [blame] | 7800 | |
mostang.com!davidm | c7aaa68 | 2003-03-19 19:25:18 +0000 | [diff] [blame] | 7801 | |
| 7802 | |
| 7803 | |
| 7804 | for ac_header in asm/ptrace_offsets.h endian.h execinfo.h ia64intrin.h \ |
| 7805 | unistd.h |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 7806 | do |
| 7807 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7808 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7809 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7810 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7811 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7812 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7813 | fi |
| 7814 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7815 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7816 | else |
| 7817 | # Is the header compilable? |
| 7818 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7819 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7820 | cat >conftest.$ac_ext <<_ACEOF |
| 7821 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 7822 | #include "confdefs.h" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 7823 | $ac_includes_default |
| 7824 | #include <$ac_header> |
| 7825 | _ACEOF |
| 7826 | rm -f conftest.$ac_objext |
| 7827 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7828 | (eval $ac_compile) 2>&5 |
| 7829 | ac_status=$? |
| 7830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7831 | (exit $ac_status); } && |
| 7832 | { ac_try='test -s conftest.$ac_objext' |
| 7833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7834 | (eval $ac_try) 2>&5 |
| 7835 | ac_status=$? |
| 7836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7837 | (exit $ac_status); }; }; then |
| 7838 | ac_header_compiler=yes |
| 7839 | else |
| 7840 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 7841 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 7842 | ac_header_compiler=no |
| 7843 | fi |
| 7844 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7845 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7846 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7847 | |
| 7848 | # Is the header present? |
| 7849 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7850 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7851 | cat >conftest.$ac_ext <<_ACEOF |
| 7852 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 7853 | #include "confdefs.h" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 7854 | #include <$ac_header> |
| 7855 | _ACEOF |
| 7856 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7857 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7858 | ac_status=$? |
| 7859 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7860 | rm -f conftest.er1 |
| 7861 | cat conftest.err >&5 |
| 7862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7863 | (exit $ac_status); } >/dev/null; then |
| 7864 | if test -s conftest.err; then |
| 7865 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7866 | else |
| 7867 | ac_cpp_err= |
| 7868 | fi |
| 7869 | else |
| 7870 | ac_cpp_err=yes |
| 7871 | fi |
| 7872 | if test -z "$ac_cpp_err"; then |
| 7873 | ac_header_preproc=yes |
| 7874 | else |
| 7875 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 7876 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 7877 | ac_header_preproc=no |
| 7878 | fi |
| 7879 | rm -f conftest.err conftest.$ac_ext |
| 7880 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7881 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7882 | |
| 7883 | # So? What about this header? |
| 7884 | case $ac_header_compiler:$ac_header_preproc in |
| 7885 | yes:no ) |
| 7886 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7887 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7888 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 7889 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 7890 | no:yes ) |
| 7891 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7892 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7893 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7894 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7895 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 7896 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 7897 | esac |
| 7898 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7899 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7900 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7902 | else |
| 7903 | eval "$as_ac_Header=$ac_header_preproc" |
| 7904 | fi |
| 7905 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7906 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7907 | |
| 7908 | fi |
| 7909 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7910 | cat >>confdefs.h <<_ACEOF |
| 7911 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7912 | _ACEOF |
| 7913 | |
| 7914 | fi |
| 7915 | |
| 7916 | done |
| 7917 | |
| 7918 | |
| 7919 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 7920 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 7921 | if test "${ac_cv_c_const+set}" = set; then |
| 7922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7923 | else |
| 7924 | cat >conftest.$ac_ext <<_ACEOF |
| 7925 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 7926 | #include "confdefs.h" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 7927 | |
| 7928 | int |
| 7929 | main () |
| 7930 | { |
| 7931 | /* FIXME: Include the comments suggested by Paul. */ |
| 7932 | #ifndef __cplusplus |
| 7933 | /* Ultrix mips cc rejects this. */ |
| 7934 | typedef int charset[2]; |
| 7935 | const charset x; |
| 7936 | /* SunOS 4.1.1 cc rejects this. */ |
| 7937 | char const *const *ccp; |
| 7938 | char **p; |
| 7939 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 7940 | struct point {int x, y;}; |
| 7941 | static struct point const zero = {0,0}; |
| 7942 | /* AIX XL C 1.02.0.0 rejects this. |
| 7943 | It does not let you subtract one const X* pointer from another in |
| 7944 | an arm of an if-expression whose if-part is not a constant |
| 7945 | expression */ |
| 7946 | const char *g = "string"; |
| 7947 | ccp = &g + (g ? g-g : 0); |
| 7948 | /* HPUX 7.0 cc rejects these. */ |
| 7949 | ++ccp; |
| 7950 | p = (char**) ccp; |
| 7951 | ccp = (char const *const *) p; |
| 7952 | { /* SCO 3.2v4 cc rejects this. */ |
| 7953 | char *t; |
| 7954 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 7955 | |
| 7956 | *t++ = 0; |
| 7957 | } |
| 7958 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 7959 | int x[] = {25, 17}; |
| 7960 | const int *foo = &x[0]; |
| 7961 | ++foo; |
| 7962 | } |
| 7963 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 7964 | typedef const int *iptr; |
| 7965 | iptr p = 0; |
| 7966 | ++p; |
| 7967 | } |
| 7968 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 7969 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 7970 | struct s { int j; const int *ap[3]; }; |
| 7971 | struct s *b; b->j = 5; |
| 7972 | } |
| 7973 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 7974 | const int foo = 10; |
| 7975 | } |
| 7976 | #endif |
| 7977 | |
| 7978 | ; |
| 7979 | return 0; |
| 7980 | } |
| 7981 | _ACEOF |
| 7982 | rm -f conftest.$ac_objext |
| 7983 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7984 | (eval $ac_compile) 2>&5 |
| 7985 | ac_status=$? |
| 7986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7987 | (exit $ac_status); } && |
| 7988 | { ac_try='test -s conftest.$ac_objext' |
| 7989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7990 | (eval $ac_try) 2>&5 |
| 7991 | ac_status=$? |
| 7992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7993 | (exit $ac_status); }; }; then |
| 7994 | ac_cv_c_const=yes |
| 7995 | else |
| 7996 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 7997 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 7998 | ac_cv_c_const=no |
| 7999 | fi |
| 8000 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8001 | fi |
| 8002 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8003 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
| 8004 | if test $ac_cv_c_const = no; then |
| 8005 | |
| 8006 | cat >>confdefs.h <<\_ACEOF |
| 8007 | #define const |
| 8008 | _ACEOF |
| 8009 | |
| 8010 | fi |
| 8011 | |
| 8012 | echo "$as_me:$LINENO: checking for inline" >&5 |
| 8013 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
| 8014 | if test "${ac_cv_c_inline+set}" = set; then |
| 8015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8016 | else |
| 8017 | ac_cv_c_inline=no |
| 8018 | for ac_kw in inline __inline__ __inline; do |
| 8019 | cat >conftest.$ac_ext <<_ACEOF |
| 8020 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 8021 | #include "confdefs.h" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8022 | #ifndef __cplusplus |
| 8023 | typedef int foo_t; |
| 8024 | static $ac_kw foo_t static_foo () {return 0; } |
| 8025 | $ac_kw foo_t foo () {return 0; } |
| 8026 | #endif |
| 8027 | |
| 8028 | _ACEOF |
| 8029 | rm -f conftest.$ac_objext |
| 8030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8031 | (eval $ac_compile) 2>&5 |
| 8032 | ac_status=$? |
| 8033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8034 | (exit $ac_status); } && |
| 8035 | { ac_try='test -s conftest.$ac_objext' |
| 8036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8037 | (eval $ac_try) 2>&5 |
| 8038 | ac_status=$? |
| 8039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8040 | (exit $ac_status); }; }; then |
| 8041 | ac_cv_c_inline=$ac_kw; break |
| 8042 | else |
| 8043 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 8044 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8045 | fi |
| 8046 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8047 | done |
| 8048 | |
| 8049 | fi |
| 8050 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 8051 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
| 8052 | case $ac_cv_c_inline in |
| 8053 | inline | yes) ;; |
| 8054 | no) |
| 8055 | cat >>confdefs.h <<\_ACEOF |
| 8056 | #define inline |
| 8057 | _ACEOF |
| 8058 | ;; |
| 8059 | *) cat >>confdefs.h <<_ACEOF |
| 8060 | #define inline $ac_cv_c_inline |
| 8061 | _ACEOF |
| 8062 | ;; |
| 8063 | esac |
| 8064 | |
mostang.com!davidm | c7aaa68 | 2003-03-19 19:25:18 +0000 | [diff] [blame] | 8065 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 8066 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 8067 | if test "${ac_cv_type_signal+set}" = set; then |
| 8068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8069 | else |
| 8070 | cat >conftest.$ac_ext <<_ACEOF |
| 8071 | #line $LINENO "configure" |
| 8072 | #include "confdefs.h" |
| 8073 | #include <sys/types.h> |
| 8074 | #include <signal.h> |
| 8075 | #ifdef signal |
| 8076 | # undef signal |
| 8077 | #endif |
| 8078 | #ifdef __cplusplus |
| 8079 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 8080 | #else |
| 8081 | void (*signal ()) (); |
| 8082 | #endif |
| 8083 | |
| 8084 | int |
| 8085 | main () |
| 8086 | { |
| 8087 | int i; |
| 8088 | ; |
| 8089 | return 0; |
| 8090 | } |
| 8091 | _ACEOF |
| 8092 | rm -f conftest.$ac_objext |
| 8093 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8094 | (eval $ac_compile) 2>&5 |
| 8095 | ac_status=$? |
| 8096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8097 | (exit $ac_status); } && |
| 8098 | { ac_try='test -s conftest.$ac_objext' |
| 8099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8100 | (eval $ac_try) 2>&5 |
| 8101 | ac_status=$? |
| 8102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8103 | (exit $ac_status); }; }; then |
| 8104 | ac_cv_type_signal=void |
| 8105 | else |
| 8106 | echo "$as_me: failed program was:" >&5 |
| 8107 | cat conftest.$ac_ext >&5 |
| 8108 | ac_cv_type_signal=int |
| 8109 | fi |
| 8110 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8111 | fi |
| 8112 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 8113 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
| 8114 | |
| 8115 | cat >>confdefs.h <<_ACEOF |
| 8116 | #define RETSIGTYPE $ac_cv_type_signal |
| 8117 | _ACEOF |
| 8118 | |
| 8119 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8120 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 8121 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 8122 | if test "${ac_cv_type_size_t+set}" = set; then |
| 8123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8124 | else |
| 8125 | cat >conftest.$ac_ext <<_ACEOF |
| 8126 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 8127 | #include "confdefs.h" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8128 | $ac_includes_default |
| 8129 | int |
| 8130 | main () |
| 8131 | { |
| 8132 | if ((size_t *) 0) |
| 8133 | return 0; |
| 8134 | if (sizeof (size_t)) |
| 8135 | return 0; |
| 8136 | ; |
| 8137 | return 0; |
| 8138 | } |
| 8139 | _ACEOF |
| 8140 | rm -f conftest.$ac_objext |
| 8141 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8142 | (eval $ac_compile) 2>&5 |
| 8143 | ac_status=$? |
| 8144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8145 | (exit $ac_status); } && |
| 8146 | { ac_try='test -s conftest.$ac_objext' |
| 8147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8148 | (eval $ac_try) 2>&5 |
| 8149 | ac_status=$? |
| 8150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8151 | (exit $ac_status); }; }; then |
| 8152 | ac_cv_type_size_t=yes |
| 8153 | else |
| 8154 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 8155 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8156 | ac_cv_type_size_t=no |
| 8157 | fi |
| 8158 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8159 | fi |
| 8160 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 8161 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 8162 | if test $ac_cv_type_size_t = yes; then |
| 8163 | : |
| 8164 | else |
| 8165 | |
| 8166 | cat >>confdefs.h <<_ACEOF |
| 8167 | #define size_t unsigned |
| 8168 | _ACEOF |
| 8169 | |
| 8170 | fi |
| 8171 | |
| 8172 | |
mostang.com!davidm | c7aaa68 | 2003-03-19 19:25:18 +0000 | [diff] [blame] | 8173 | echo "$as_me:$LINENO: checking for sighandler_t" >&5 |
| 8174 | echo $ECHO_N "checking for sighandler_t... $ECHO_C" >&6 |
| 8175 | if test "${ac_cv_type_sighandler_t+set}" = set; then |
| 8176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8177 | else |
| 8178 | cat >conftest.$ac_ext <<_ACEOF |
| 8179 | #line $LINENO "configure" |
| 8180 | #include "confdefs.h" |
| 8181 | $ac_includes_default |
| 8182 | int |
| 8183 | main () |
| 8184 | { |
| 8185 | if ((sighandler_t *) 0) |
| 8186 | return 0; |
| 8187 | if (sizeof (sighandler_t)) |
| 8188 | return 0; |
| 8189 | ; |
| 8190 | return 0; |
| 8191 | } |
| 8192 | _ACEOF |
| 8193 | rm -f conftest.$ac_objext |
| 8194 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8195 | (eval $ac_compile) 2>&5 |
| 8196 | ac_status=$? |
| 8197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8198 | (exit $ac_status); } && |
| 8199 | { ac_try='test -s conftest.$ac_objext' |
| 8200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8201 | (eval $ac_try) 2>&5 |
| 8202 | ac_status=$? |
| 8203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8204 | (exit $ac_status); }; }; then |
| 8205 | ac_cv_type_sighandler_t=yes |
| 8206 | else |
| 8207 | echo "$as_me: failed program was:" >&5 |
| 8208 | cat conftest.$ac_ext >&5 |
| 8209 | ac_cv_type_sighandler_t=no |
| 8210 | fi |
| 8211 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8212 | fi |
| 8213 | echo "$as_me:$LINENO: result: $ac_cv_type_sighandler_t" >&5 |
| 8214 | echo "${ECHO_T}$ac_cv_type_sighandler_t" >&6 |
| 8215 | |
| 8216 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8217 | echo "$as_me:$LINENO: checking for working memcmp" >&5 |
| 8218 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 |
| 8219 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
| 8220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8221 | else |
| 8222 | if test "$cross_compiling" = yes; then |
| 8223 | ac_cv_func_memcmp_working=no |
| 8224 | else |
| 8225 | cat >conftest.$ac_ext <<_ACEOF |
| 8226 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 8227 | #include "confdefs.h" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8228 | |
| 8229 | int |
| 8230 | main () |
| 8231 | { |
| 8232 | |
| 8233 | /* Some versions of memcmp are not 8-bit clean. */ |
| 8234 | char c0 = 0x40, c1 = 0x80, c2 = 0x81; |
| 8235 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
| 8236 | exit (1); |
| 8237 | |
| 8238 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
| 8239 | or more and with at least one buffer not starting on a 4-byte boundary. |
| 8240 | William Lewis provided this test program. */ |
| 8241 | { |
| 8242 | char foo[21]; |
| 8243 | char bar[21]; |
| 8244 | int i; |
| 8245 | for (i = 0; i < 4; i++) |
| 8246 | { |
| 8247 | char *a = foo + i; |
| 8248 | char *b = bar + i; |
| 8249 | strcpy (a, "--------01111111"); |
| 8250 | strcpy (b, "--------10000000"); |
| 8251 | if (memcmp (a, b, 16) >= 0) |
| 8252 | exit (1); |
| 8253 | } |
| 8254 | exit (0); |
| 8255 | } |
| 8256 | |
| 8257 | ; |
| 8258 | return 0; |
| 8259 | } |
| 8260 | _ACEOF |
| 8261 | rm -f conftest$ac_exeext |
| 8262 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8263 | (eval $ac_link) 2>&5 |
| 8264 | ac_status=$? |
| 8265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8266 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8268 | (eval $ac_try) 2>&5 |
| 8269 | ac_status=$? |
| 8270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8271 | (exit $ac_status); }; }; then |
| 8272 | ac_cv_func_memcmp_working=yes |
| 8273 | else |
| 8274 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8275 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 8276 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8277 | ( exit $ac_status ) |
| 8278 | ac_cv_func_memcmp_working=no |
| 8279 | fi |
| 8280 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8281 | fi |
| 8282 | fi |
| 8283 | echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
| 8284 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 |
| 8285 | test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
| 8286 | |
| 8287 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 8288 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 8289 | if test "${ac_cv_type_signal+set}" = set; then |
| 8290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8291 | else |
| 8292 | cat >conftest.$ac_ext <<_ACEOF |
| 8293 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 8294 | #include "confdefs.h" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8295 | #include <sys/types.h> |
| 8296 | #include <signal.h> |
| 8297 | #ifdef signal |
| 8298 | # undef signal |
| 8299 | #endif |
| 8300 | #ifdef __cplusplus |
| 8301 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 8302 | #else |
| 8303 | void (*signal ()) (); |
| 8304 | #endif |
| 8305 | |
| 8306 | int |
| 8307 | main () |
| 8308 | { |
| 8309 | int i; |
| 8310 | ; |
| 8311 | return 0; |
| 8312 | } |
| 8313 | _ACEOF |
| 8314 | rm -f conftest.$ac_objext |
| 8315 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8316 | (eval $ac_compile) 2>&5 |
| 8317 | ac_status=$? |
| 8318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8319 | (exit $ac_status); } && |
| 8320 | { ac_try='test -s conftest.$ac_objext' |
| 8321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8322 | (eval $ac_try) 2>&5 |
| 8323 | ac_status=$? |
| 8324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8325 | (exit $ac_status); }; }; then |
| 8326 | ac_cv_type_signal=void |
| 8327 | else |
| 8328 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 8329 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8330 | ac_cv_type_signal=int |
| 8331 | fi |
| 8332 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8333 | fi |
| 8334 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 8335 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
| 8336 | |
| 8337 | cat >>confdefs.h <<_ACEOF |
| 8338 | #define RETSIGTYPE $ac_cv_type_signal |
| 8339 | _ACEOF |
| 8340 | |
| 8341 | |
| 8342 | |
mostang.com!davidm | c7aaa68 | 2003-03-19 19:25:18 +0000 | [diff] [blame] | 8343 | |
| 8344 | |
| 8345 | |
| 8346 | for ac_func in dl_iterate_phdr dlmodinfo getunwind ttrace |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8347 | do |
| 8348 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8349 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 8350 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 8351 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 8352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8353 | else |
| 8354 | cat >conftest.$ac_ext <<_ACEOF |
| 8355 | #line $LINENO "configure" |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 8356 | #include "confdefs.h" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8357 | /* System header to define __stub macros and hopefully few prototypes, |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 8358 | which can conflict with char $ac_func (); below. */ |
| 8359 | #include <assert.h> |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8360 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8361 | #ifdef __cplusplus |
| 8362 | extern "C" |
| 8363 | #endif |
| 8364 | /* We use char because int might match the return type of a gcc2 |
| 8365 | builtin and then its argument prototype would still apply. */ |
| 8366 | char $ac_func (); |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 8367 | char (*f) (); |
| 8368 | |
| 8369 | int |
| 8370 | main () |
| 8371 | { |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8372 | /* The GNU C library defines this for functions which it implements |
| 8373 | to always fail with ENOSYS. Some functions are actually named |
| 8374 | something starting with __ and the normal name is an alias. */ |
| 8375 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 8376 | choke me |
| 8377 | #else |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 8378 | f = $ac_func; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8379 | #endif |
| 8380 | |
| 8381 | ; |
| 8382 | return 0; |
| 8383 | } |
| 8384 | _ACEOF |
| 8385 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8386 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8387 | (eval $ac_link) 2>&5 |
| 8388 | ac_status=$? |
| 8389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8390 | (exit $ac_status); } && |
| 8391 | { ac_try='test -s conftest$ac_exeext' |
| 8392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8393 | (eval $ac_try) 2>&5 |
| 8394 | ac_status=$? |
| 8395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8396 | (exit $ac_status); }; }; then |
| 8397 | eval "$as_ac_var=yes" |
| 8398 | else |
| 8399 | echo "$as_me: failed program was:" >&5 |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 8400 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8401 | eval "$as_ac_var=no" |
| 8402 | fi |
| 8403 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8404 | fi |
| 8405 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 8406 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 8407 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 8408 | cat >>confdefs.h <<_ACEOF |
| 8409 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 8410 | _ACEOF |
| 8411 | |
| 8412 | fi |
| 8413 | done |
| 8414 | |
| 8415 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8416 | get_arch() { |
| 8417 | case "$1" in |
| 8418 | i?86) echo x86;; |
mostang.com!davidm | 8d5c44b | 2003-01-14 07:11:56 +0000 | [diff] [blame] | 8419 | hppa*) echo hppa;; |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 8420 | *) echo $1;; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8421 | esac |
| 8422 | } |
| 8423 | |
| 8424 | build_arch=`get_arch $build_cpu` |
| 8425 | target_arch=`get_arch $target_cpu` |
| 8426 | |
| 8427 | |
| 8428 | |
| 8429 | if test x$target_arch != x$build_arch; then |
| 8430 | REMOTE_ONLY_TRUE= |
| 8431 | REMOTE_ONLY_FALSE='#' |
| 8432 | else |
| 8433 | REMOTE_ONLY_TRUE='#' |
| 8434 | REMOTE_ONLY_FALSE= |
| 8435 | fi |
| 8436 | |
| 8437 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 8438 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 8439 | if test x$target_arch = xia64; then |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8440 | ARCH_IA64_TRUE= |
| 8441 | ARCH_IA64_FALSE='#' |
| 8442 | else |
| 8443 | ARCH_IA64_TRUE='#' |
| 8444 | ARCH_IA64_FALSE= |
| 8445 | fi |
| 8446 | |
| 8447 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 8448 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 8449 | if test x$target_arch = xhppa; then |
mostang.com!davidm | 8d5c44b | 2003-01-14 07:11:56 +0000 | [diff] [blame] | 8450 | ARCH_HPPA_TRUE= |
| 8451 | ARCH_HPPA_FALSE='#' |
| 8452 | else |
| 8453 | ARCH_HPPA_TRUE='#' |
| 8454 | ARCH_HPPA_FALSE= |
| 8455 | fi |
| 8456 | |
| 8457 | |
| 8458 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 8459 | if test x$target_arch = xx86; then |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 8460 | ARCH_X86_TRUE= |
| 8461 | ARCH_X86_FALSE='#' |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8462 | else |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 8463 | ARCH_X86_TRUE='#' |
| 8464 | ARCH_X86_FALSE= |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8465 | fi |
| 8466 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 8467 | |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 8468 | |
| 8469 | if expr x$target_os : xlinux >/dev/null; then |
| 8470 | OS_LINUX_TRUE= |
| 8471 | OS_LINUX_FALSE='#' |
| 8472 | else |
| 8473 | OS_LINUX_TRUE='#' |
| 8474 | OS_LINUX_FALSE= |
| 8475 | fi |
| 8476 | |
| 8477 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8478 | if test x$target_arch != x$build_arch; then |
| 8479 | CPPFLAGS="${CPPFLAGS} -DUNW_REMOTE_ONLY" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8480 | fi |
mostang.com!davidm | 51e4d34 | 2002-12-12 09:17:41 +0000 | [diff] [blame] | 8481 | ac_config_links="$ac_config_links include/libunwind.h:include/libunwind-$target_arch.h include/tdep.h:include/tdep-$target_arch.h" |
| 8482 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8483 | |
| 8484 | # Check whether --enable-debug or --disable-debug was given. |
| 8485 | if test "${enable_debug+set}" = set; then |
| 8486 | enableval="$enable_debug" |
| 8487 | enable_debug=yes |
| 8488 | fi; |
| 8489 | |
mostang.com!davidm | fb2c7eb | 2002-11-09 07:59:02 +0000 | [diff] [blame] | 8490 | if test "x$use__thread" != xno; then |
| 8491 | echo "$as_me:$LINENO: checking for __thread" >&5 |
| 8492 | echo $ECHO_N "checking for __thread... $ECHO_C" >&6 |
| 8493 | if test "${libc_cv_gcc___thread+set}" = set; then |
| 8494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8495 | else |
| 8496 | cat > conftest.c <<\EOF |
| 8497 | __thread int a = 42; |
| 8498 | EOF |
| 8499 | if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5' |
| 8500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8501 | (eval $ac_try) 2>&5 |
| 8502 | ac_status=$? |
| 8503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8504 | (exit $ac_status); }; }; then |
| 8505 | libc_cv_gcc___thread=yes |
| 8506 | else |
| 8507 | libc_cv_gcc___thread=no |
| 8508 | fi |
| 8509 | rm -f conftest* |
| 8510 | fi |
| 8511 | echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5 |
| 8512 | echo "${ECHO_T}$libc_cv_gcc___thread" >&6 |
| 8513 | if test "$libc_cv_gcc___thread" = yes; then |
mostang.com!davidm | 57f5fae | 2002-12-03 08:19:58 +0000 | [diff] [blame] | 8514 | |
| 8515 | cat >>confdefs.h <<\_ACEOF |
mostang.com!davidm | fb2c7eb | 2002-11-09 07:59:02 +0000 | [diff] [blame] | 8516 | #define HAVE___THREAD 1 |
| 8517 | _ACEOF |
| 8518 | |
| 8519 | fi |
| 8520 | else |
| 8521 | libc_cv_gcc___thread=no |
| 8522 | fi |
| 8523 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8524 | CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE" |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 8525 | if test x$enable_debug = xyes; then |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8526 | CPPFLAGS="${CPPFLAGS} -DDEBUG" |
| 8527 | else |
| 8528 | CPPFLAGS="${CPPFLAGS} -DNDEBUG" |
| 8529 | fi |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8530 | |
| 8531 | if test x$GCC = xyes; then |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 8532 | CFLAGS="${CFLAGS} -Wall -Wsign-compare" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8533 | fi |
| 8534 | |
mostang.com!davidm | 6af90d0 | 2003-02-15 08:53:55 +0000 | [diff] [blame] | 8535 | CCASFLAGS="${CCASFLAGS} ${CPPFLAGS}" |
| 8536 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8537 | arch="$target_arch" |
| 8538 | ARCH=`echo $target_arch | tr a-z A-Z` |
| 8539 | |
| 8540 | |
| 8541 | |
mostang.com!davidm | f648f6f | 2003-01-17 07:48:52 +0000 | [diff] [blame] | 8542 | |
| 8543 | ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile doc/Makefile doc/common.tex" |
| 8544 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8545 | cat >confcache <<\_ACEOF |
| 8546 | # This file is a shell script that caches the results of configure |
| 8547 | # tests run on this system so they can be shared between configure |
| 8548 | # scripts and configure runs, see configure's option --config-cache. |
| 8549 | # It is not useful on other systems. If it contains results you don't |
| 8550 | # want to keep, you may remove or edit it. |
| 8551 | # |
| 8552 | # config.status only pays attention to the cache file if you give it |
| 8553 | # the --recheck option to rerun configure. |
| 8554 | # |
| 8555 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 8556 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 8557 | # following values. |
| 8558 | |
| 8559 | _ACEOF |
| 8560 | |
| 8561 | # The following way of writing the cache mishandles newlines in values, |
| 8562 | # but we know of no workaround that is simple, portable, and efficient. |
| 8563 | # So, don't put newlines in cache variables' values. |
| 8564 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 8565 | # and sets the high bit in the cache file unless we assign to the vars. |
| 8566 | { |
| 8567 | (set) 2>&1 | |
| 8568 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 8569 | *ac_space=\ *) |
| 8570 | # `set' does not quote correctly, so add quotes (double-quote |
| 8571 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 8572 | sed -n \ |
| 8573 | "s/'/'\\\\''/g; |
| 8574 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 8575 | ;; |
| 8576 | *) |
| 8577 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 8578 | sed -n \ |
| 8579 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 8580 | ;; |
| 8581 | esac; |
| 8582 | } | |
| 8583 | sed ' |
| 8584 | t clear |
| 8585 | : clear |
| 8586 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 8587 | t end |
| 8588 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 8589 | : end' >>confcache |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 8590 | if cmp -s $cache_file confcache; then :; else |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8591 | if test -w $cache_file; then |
| 8592 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 8593 | cat confcache >$cache_file |
| 8594 | else |
| 8595 | echo "not updating unwritable cache $cache_file" |
| 8596 | fi |
| 8597 | fi |
| 8598 | rm -f confcache |
| 8599 | |
| 8600 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 8601 | # Let make expand exec_prefix. |
| 8602 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 8603 | |
| 8604 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 8605 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 8606 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 8607 | # (actually we leave an empty line to preserve line numbers). |
| 8608 | if test "x$srcdir" = x.; then |
| 8609 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 8610 | s/:*\$(srcdir):*/:/; |
| 8611 | s/:*\${srcdir}:*/:/; |
| 8612 | s/:*@srcdir@:*/:/; |
| 8613 | s/^\([^=]*=[ ]*\):*/\1/; |
| 8614 | s/:*$//; |
| 8615 | s/^[^=]*=[ ]*$//; |
| 8616 | }' |
| 8617 | fi |
| 8618 | |
| 8619 | DEFS=-DHAVE_CONFIG_H |
| 8620 | |
| 8621 | ac_libobjs= |
| 8622 | ac_ltlibobjs= |
| 8623 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 8624 | # 1. Remove the extension, and $U if already installed. |
| 8625 | ac_i=`echo "$ac_i" | |
| 8626 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 8627 | # 2. Add them. |
| 8628 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 8629 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 8630 | done |
| 8631 | LIBOBJS=$ac_libobjs |
| 8632 | |
| 8633 | LTLIBOBJS=$ac_ltlibobjs |
| 8634 | |
| 8635 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 8636 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 8637 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 8638 | Usually this means the macro was only invoked conditionally." >&5 |
| 8639 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 8640 | Usually this means the macro was only invoked conditionally." >&2;} |
| 8641 | { (exit 1); exit 1; }; } |
| 8642 | fi |
| 8643 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 8644 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
| 8645 | Usually this means the macro was only invoked conditionally." >&5 |
| 8646 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
| 8647 | Usually this means the macro was only invoked conditionally." >&2;} |
| 8648 | { (exit 1); exit 1; }; } |
| 8649 | fi |
| 8650 | if test -z "${REMOTE_ONLY_TRUE}" && test -z "${REMOTE_ONLY_FALSE}"; then |
| 8651 | { { echo "$as_me:$LINENO: error: conditional \"REMOTE_ONLY\" was never defined. |
| 8652 | Usually this means the macro was only invoked conditionally." >&5 |
| 8653 | echo "$as_me: error: conditional \"REMOTE_ONLY\" was never defined. |
| 8654 | Usually this means the macro was only invoked conditionally." >&2;} |
| 8655 | { (exit 1); exit 1; }; } |
| 8656 | fi |
| 8657 | if test -z "${ARCH_IA64_TRUE}" && test -z "${ARCH_IA64_FALSE}"; then |
| 8658 | { { echo "$as_me:$LINENO: error: conditional \"ARCH_IA64\" was never defined. |
| 8659 | Usually this means the macro was only invoked conditionally." >&5 |
| 8660 | echo "$as_me: error: conditional \"ARCH_IA64\" was never defined. |
| 8661 | Usually this means the macro was only invoked conditionally." >&2;} |
| 8662 | { (exit 1); exit 1; }; } |
| 8663 | fi |
mostang.com!davidm | 8d5c44b | 2003-01-14 07:11:56 +0000 | [diff] [blame] | 8664 | if test -z "${ARCH_HPPA_TRUE}" && test -z "${ARCH_HPPA_FALSE}"; then |
| 8665 | { { echo "$as_me:$LINENO: error: conditional \"ARCH_HPPA\" was never defined. |
| 8666 | Usually this means the macro was only invoked conditionally." >&5 |
| 8667 | echo "$as_me: error: conditional \"ARCH_HPPA\" was never defined. |
| 8668 | Usually this means the macro was only invoked conditionally." >&2;} |
| 8669 | { (exit 1); exit 1; }; } |
| 8670 | fi |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 8671 | if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then |
| 8672 | { { echo "$as_me:$LINENO: error: conditional \"ARCH_X86\" was never defined. |
| 8673 | Usually this means the macro was only invoked conditionally." >&5 |
| 8674 | echo "$as_me: error: conditional \"ARCH_X86\" was never defined. |
| 8675 | Usually this means the macro was only invoked conditionally." >&2;} |
| 8676 | { (exit 1); exit 1; }; } |
| 8677 | fi |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 8678 | if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then |
| 8679 | { { echo "$as_me:$LINENO: error: conditional \"OS_LINUX\" was never defined. |
| 8680 | Usually this means the macro was only invoked conditionally." >&5 |
| 8681 | echo "$as_me: error: conditional \"OS_LINUX\" was never defined. |
| 8682 | Usually this means the macro was only invoked conditionally." >&2;} |
| 8683 | { (exit 1); exit 1; }; } |
| 8684 | fi |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8685 | |
| 8686 | : ${CONFIG_STATUS=./config.status} |
| 8687 | ac_clean_files_save=$ac_clean_files |
| 8688 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 8689 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 8690 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 8691 | cat >$CONFIG_STATUS <<_ACEOF |
| 8692 | #! $SHELL |
| 8693 | # Generated by $as_me. |
| 8694 | # Run this file to recreate the current configuration. |
| 8695 | # Compiler output produced by configure, useful for debugging |
| 8696 | # configure, is in config.log if it exists. |
| 8697 | |
| 8698 | debug=false |
| 8699 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 8700 | _ACEOF |
| 8701 | |
| 8702 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 8703 | ## --------------------- ## |
| 8704 | ## M4sh Initialization. ## |
| 8705 | ## --------------------- ## |
| 8706 | |
| 8707 | # Be Bourne compatible |
| 8708 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 8709 | emulate sh |
| 8710 | NULLCMD=: |
| 8711 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 8712 | # is contrary to our usage. Disable this feature. |
| 8713 | alias -g '${1+"$@"}'='"$@"' |
| 8714 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 8715 | set -o posix |
| 8716 | fi |
| 8717 | |
| 8718 | # Support unset when possible. |
| 8719 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 8720 | as_unset=unset |
| 8721 | else |
| 8722 | as_unset=false |
| 8723 | fi |
| 8724 | |
| 8725 | |
| 8726 | # Work around bugs in pre-3.0 UWIN ksh. |
| 8727 | $as_unset ENV MAIL MAILPATH |
| 8728 | PS1='$ ' |
| 8729 | PS2='> ' |
| 8730 | PS4='+ ' |
| 8731 | |
| 8732 | # NLS nuisances. |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 8733 | for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8734 | do |
| 8735 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 8736 | eval $as_var=C; export $as_var |
| 8737 | else |
| 8738 | $as_unset $as_var |
| 8739 | fi |
| 8740 | done |
| 8741 | |
| 8742 | # Required to use basename. |
| 8743 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 8744 | as_expr=expr |
| 8745 | else |
| 8746 | as_expr=false |
| 8747 | fi |
| 8748 | |
| 8749 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 8750 | as_basename=basename |
| 8751 | else |
| 8752 | as_basename=false |
| 8753 | fi |
| 8754 | |
| 8755 | |
| 8756 | # Name of the executable. |
| 8757 | as_me=`$as_basename "$0" || |
| 8758 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 8759 | X"$0" : 'X\(//\)$' \| \ |
| 8760 | X"$0" : 'X\(/\)$' \| \ |
| 8761 | . : '\(.\)' 2>/dev/null || |
| 8762 | echo X/"$0" | |
| 8763 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 8764 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 8765 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 8766 | s/.*/./; q'` |
| 8767 | |
| 8768 | |
| 8769 | # PATH needs CR, and LINENO needs CR and PATH. |
| 8770 | # Avoid depending upon Character Ranges. |
| 8771 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 8772 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 8773 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 8774 | as_cr_digits='0123456789' |
| 8775 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 8776 | |
| 8777 | # The user is always right. |
| 8778 | if test "${PATH_SEPARATOR+set}" != set; then |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 8779 | echo "#! /bin/sh" >conftest.sh |
| 8780 | echo "exit 0" >>conftest.sh |
| 8781 | chmod +x conftest.sh |
| 8782 | if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8783 | PATH_SEPARATOR=';' |
| 8784 | else |
| 8785 | PATH_SEPARATOR=: |
| 8786 | fi |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 8787 | rm -f conftest.sh |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8788 | fi |
| 8789 | |
| 8790 | |
| 8791 | as_lineno_1=$LINENO |
| 8792 | as_lineno_2=$LINENO |
| 8793 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 8794 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 8795 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 8796 | # Find who we are. Look in the path if we contain no path at all |
| 8797 | # relative or not. |
| 8798 | case $0 in |
| 8799 | *[\\/]* ) as_myself=$0 ;; |
| 8800 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8801 | for as_dir in $PATH |
| 8802 | do |
| 8803 | IFS=$as_save_IFS |
| 8804 | test -z "$as_dir" && as_dir=. |
| 8805 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 8806 | done |
| 8807 | |
| 8808 | ;; |
| 8809 | esac |
| 8810 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 8811 | # in which case we are not to be found in the path. |
| 8812 | if test "x$as_myself" = x; then |
| 8813 | as_myself=$0 |
| 8814 | fi |
| 8815 | if test ! -f "$as_myself"; then |
| 8816 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 8817 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 8818 | { (exit 1); exit 1; }; } |
| 8819 | fi |
| 8820 | case $CONFIG_SHELL in |
| 8821 | '') |
| 8822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8823 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 8824 | do |
| 8825 | IFS=$as_save_IFS |
| 8826 | test -z "$as_dir" && as_dir=. |
| 8827 | for as_base in sh bash ksh sh5; do |
| 8828 | case $as_dir in |
| 8829 | /*) |
| 8830 | if ("$as_dir/$as_base" -c ' |
| 8831 | as_lineno_1=$LINENO |
| 8832 | as_lineno_2=$LINENO |
| 8833 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 8834 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 8835 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 8836 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 8837 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 8838 | CONFIG_SHELL=$as_dir/$as_base |
| 8839 | export CONFIG_SHELL |
| 8840 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 8841 | fi;; |
| 8842 | esac |
| 8843 | done |
| 8844 | done |
| 8845 | ;; |
| 8846 | esac |
| 8847 | |
| 8848 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 8849 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 8850 | # line-number line before each line; the second 'sed' does the real |
| 8851 | # work. The second script uses 'N' to pair each line-number line |
| 8852 | # with the numbered line, and appends trailing '-' during |
| 8853 | # substitution so that $LINENO is not a special case at line end. |
| 8854 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 8855 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 8856 | sed '=' <$as_myself | |
| 8857 | sed ' |
| 8858 | N |
| 8859 | s,$,-, |
| 8860 | : loop |
| 8861 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 8862 | t loop |
| 8863 | s,-$,, |
| 8864 | s,^['$as_cr_digits']*\n,, |
| 8865 | ' >$as_me.lineno && |
| 8866 | chmod +x $as_me.lineno || |
| 8867 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 8868 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 8869 | { (exit 1); exit 1; }; } |
| 8870 | |
| 8871 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 8872 | # (the dirname of $[0] is not the place where we might find the |
| 8873 | # original and so on. Autoconf is especially sensible to this). |
| 8874 | . ./$as_me.lineno |
| 8875 | # Exit status is that of the last command. |
| 8876 | exit |
| 8877 | } |
| 8878 | |
| 8879 | |
| 8880 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 8881 | *c*,-n*) ECHO_N= ECHO_C=' |
| 8882 | ' ECHO_T=' ' ;; |
| 8883 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 8884 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 8885 | esac |
| 8886 | |
| 8887 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 8888 | as_expr=expr |
| 8889 | else |
| 8890 | as_expr=false |
| 8891 | fi |
| 8892 | |
| 8893 | rm -f conf$$ conf$$.exe conf$$.file |
| 8894 | echo >conf$$.file |
| 8895 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 8896 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 8897 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 8898 | if test -f conf$$.exe; then |
| 8899 | # Don't use ln at all; we don't have any links |
| 8900 | as_ln_s='cp -p' |
| 8901 | else |
| 8902 | as_ln_s='ln -s' |
| 8903 | fi |
| 8904 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 8905 | as_ln_s=ln |
| 8906 | else |
| 8907 | as_ln_s='cp -p' |
| 8908 | fi |
| 8909 | rm -f conf$$ conf$$.exe conf$$.file |
| 8910 | |
| 8911 | if mkdir -p . 2>/dev/null; then |
| 8912 | as_mkdir_p=: |
| 8913 | else |
| 8914 | as_mkdir_p=false |
| 8915 | fi |
| 8916 | |
| 8917 | as_executable_p="test -f" |
| 8918 | |
| 8919 | # Sed expression to map a string onto a valid CPP name. |
| 8920 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 8921 | |
| 8922 | # Sed expression to map a string onto a valid variable name. |
| 8923 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 8924 | |
| 8925 | |
| 8926 | # IFS |
| 8927 | # We need space, tab and new line, in precisely that order. |
| 8928 | as_nl=' |
| 8929 | ' |
| 8930 | IFS=" $as_nl" |
| 8931 | |
| 8932 | # CDPATH. |
| 8933 | $as_unset CDPATH |
| 8934 | |
| 8935 | exec 6>&1 |
| 8936 | |
| 8937 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 8938 | # report actual input values of CONFIG_FILES etc. instead of their |
| 8939 | # values after options handling. Logging --version etc. is OK. |
| 8940 | exec 5>>config.log |
| 8941 | { |
| 8942 | echo |
| 8943 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 8944 | ## Running $as_me. ## |
| 8945 | _ASBOX |
| 8946 | } >&5 |
| 8947 | cat >&5 <<_CSEOF |
| 8948 | |
| 8949 | This file was extended by $as_me, which was |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 8950 | generated by GNU Autoconf 2.54. Invocation command line was |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8951 | |
| 8952 | CONFIG_FILES = $CONFIG_FILES |
| 8953 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 8954 | CONFIG_LINKS = $CONFIG_LINKS |
| 8955 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 8956 | $ $0 $@ |
| 8957 | |
| 8958 | _CSEOF |
| 8959 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 8960 | echo >&5 |
| 8961 | _ACEOF |
| 8962 | |
| 8963 | # Files that config.status was made for. |
| 8964 | if test -n "$ac_config_files"; then |
| 8965 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 8966 | fi |
| 8967 | |
| 8968 | if test -n "$ac_config_headers"; then |
| 8969 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 8970 | fi |
| 8971 | |
| 8972 | if test -n "$ac_config_links"; then |
| 8973 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 8974 | fi |
| 8975 | |
| 8976 | if test -n "$ac_config_commands"; then |
| 8977 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 8978 | fi |
| 8979 | |
| 8980 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 8981 | |
| 8982 | ac_cs_usage="\ |
| 8983 | \`$as_me' instantiates files from templates according to the |
| 8984 | current configuration. |
| 8985 | |
| 8986 | Usage: $0 [OPTIONS] [FILE]... |
| 8987 | |
| 8988 | -h, --help print this help, then exit |
| 8989 | -V, --version print version number, then exit |
| 8990 | -d, --debug don't remove temporary files |
| 8991 | --recheck update $as_me by reconfiguring in the same conditions |
| 8992 | --file=FILE[:TEMPLATE] |
| 8993 | instantiate the configuration file FILE |
| 8994 | --header=FILE[:TEMPLATE] |
| 8995 | instantiate the configuration header FILE |
| 8996 | |
| 8997 | Configuration files: |
| 8998 | $config_files |
| 8999 | |
| 9000 | Configuration headers: |
| 9001 | $config_headers |
| 9002 | |
| 9003 | Configuration links: |
| 9004 | $config_links |
| 9005 | |
| 9006 | Configuration commands: |
| 9007 | $config_commands |
| 9008 | |
| 9009 | Report bugs to <bug-autoconf@gnu.org>." |
| 9010 | _ACEOF |
| 9011 | |
| 9012 | cat >>$CONFIG_STATUS <<_ACEOF |
| 9013 | ac_cs_version="\\ |
| 9014 | config.status |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 9015 | configured by $0, generated by GNU Autoconf 2.54, |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9016 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 9017 | |
| 9018 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 9019 | Free Software Foundation, Inc. |
| 9020 | This config.status script is free software; the Free Software Foundation |
| 9021 | gives unlimited permission to copy, distribute and modify it." |
| 9022 | srcdir=$srcdir |
| 9023 | INSTALL="$INSTALL" |
| 9024 | _ACEOF |
| 9025 | |
| 9026 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9027 | # If no file are specified by the user, then we need to provide default |
| 9028 | # value. By we need to know if files were specified by the user. |
| 9029 | ac_need_defaults=: |
| 9030 | while test $# != 0 |
| 9031 | do |
| 9032 | case $1 in |
| 9033 | --*=*) |
| 9034 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 9035 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 9036 | ac_shift=: |
| 9037 | ;; |
| 9038 | -*) |
| 9039 | ac_option=$1 |
| 9040 | ac_optarg=$2 |
| 9041 | ac_shift=shift |
| 9042 | ;; |
| 9043 | *) # This is not an option, so the user has probably given explicit |
| 9044 | # arguments. |
| 9045 | ac_option=$1 |
| 9046 | ac_need_defaults=false;; |
| 9047 | esac |
| 9048 | |
| 9049 | case $ac_option in |
| 9050 | # Handling of the options. |
| 9051 | _ACEOF |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 9052 | cat >>$CONFIG_STATUS <<_ACEOF |
hp.com!davidm | a69cf3d | 2003-01-28 03:40:06 +0000 | [diff] [blame] | 9053 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 9054 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 9055 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
| 9056 | _ACEOF |
| 9057 | cat >>$CONFIG_STATUS <<\_ACEOF |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9058 | --version | --vers* | -V ) |
| 9059 | echo "$ac_cs_version"; exit 0 ;; |
| 9060 | --he | --h) |
| 9061 | # Conflict between --help and --header |
| 9062 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 9063 | Try \`$0 --help' for more information." >&5 |
| 9064 | echo "$as_me: error: ambiguous option: $1 |
| 9065 | Try \`$0 --help' for more information." >&2;} |
| 9066 | { (exit 1); exit 1; }; };; |
| 9067 | --help | --hel | -h ) |
| 9068 | echo "$ac_cs_usage"; exit 0 ;; |
| 9069 | --debug | --d* | -d ) |
| 9070 | debug=: ;; |
| 9071 | --file | --fil | --fi | --f ) |
| 9072 | $ac_shift |
| 9073 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 9074 | ac_need_defaults=false;; |
| 9075 | --header | --heade | --head | --hea ) |
| 9076 | $ac_shift |
| 9077 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 9078 | ac_need_defaults=false;; |
| 9079 | |
| 9080 | # This is an error. |
| 9081 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 9082 | Try \`$0 --help' for more information." >&5 |
| 9083 | echo "$as_me: error: unrecognized option: $1 |
| 9084 | Try \`$0 --help' for more information." >&2;} |
| 9085 | { (exit 1); exit 1; }; } ;; |
| 9086 | |
| 9087 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 9088 | |
| 9089 | esac |
| 9090 | shift |
| 9091 | done |
| 9092 | |
| 9093 | _ACEOF |
| 9094 | |
| 9095 | cat >>$CONFIG_STATUS <<_ACEOF |
| 9096 | # |
| 9097 | # INIT-COMMANDS section. |
| 9098 | # |
| 9099 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 9100 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9101 | |
| 9102 | _ACEOF |
| 9103 | |
| 9104 | |
| 9105 | |
| 9106 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9107 | for ac_config_target in $ac_config_targets |
| 9108 | do |
| 9109 | case "$ac_config_target" in |
| 9110 | # Handling of arguments. |
| 9111 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 9112 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
| 9113 | "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; |
| 9114 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
mostang.com!davidm | f648f6f | 2003-01-17 07:48:52 +0000 | [diff] [blame] | 9115 | "doc/common.tex" ) CONFIG_FILES="$CONFIG_FILES doc/common.tex" ;; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9116 | "include/libunwind.h" ) CONFIG_LINKS="$CONFIG_LINKS include/libunwind.h:include/libunwind-$target_arch.h" ;; |
mostang.com!davidm | 51e4d34 | 2002-12-12 09:17:41 +0000 | [diff] [blame] | 9117 | "include/tdep.h" ) CONFIG_LINKS="$CONFIG_LINKS include/tdep.h:include/tdep-$target_arch.h" ;; |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 9118 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9119 | "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; |
| 9120 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 9121 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 9122 | { (exit 1); exit 1; }; };; |
| 9123 | esac |
| 9124 | done |
| 9125 | |
| 9126 | # If the user did not use the arguments to specify the items to instantiate, |
| 9127 | # then the envvar interface is used. Set only those that are not. |
| 9128 | # We use the long form for the default assignment because of an extremely |
| 9129 | # bizarre bug on SunOS 4.1.3. |
| 9130 | if $ac_need_defaults; then |
| 9131 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 9132 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 9133 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links |
| 9134 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 9135 | fi |
| 9136 | |
| 9137 | # Create a temporary directory, and hook for its removal unless debugging. |
| 9138 | $debug || |
| 9139 | { |
| 9140 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 9141 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 9142 | } |
| 9143 | |
| 9144 | # Create a (secure) tmp directory for tmp files. |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 9145 | : ${TMPDIR=/tmp} |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9146 | { |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 9147 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9148 | test -n "$tmp" && test -d "$tmp" |
| 9149 | } || |
| 9150 | { |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 9151 | tmp=$TMPDIR/cs$$-$RANDOM |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9152 | (umask 077 && mkdir $tmp) |
| 9153 | } || |
| 9154 | { |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 9155 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9156 | { (exit 1); exit 1; } |
| 9157 | } |
| 9158 | |
| 9159 | _ACEOF |
| 9160 | |
| 9161 | cat >>$CONFIG_STATUS <<_ACEOF |
| 9162 | |
| 9163 | # |
| 9164 | # CONFIG_FILES section. |
| 9165 | # |
| 9166 | |
| 9167 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 9168 | # This happens for instance when ./config.status config.h |
| 9169 | if test -n "\$CONFIG_FILES"; then |
| 9170 | # Protect against being on the right side of a sed subst in config.status. |
| 9171 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 9172 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 9173 | s,@SHELL@,$SHELL,;t t |
| 9174 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 9175 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 9176 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 9177 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 9178 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 9179 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 9180 | s,@exec_prefix@,$exec_prefix,;t t |
| 9181 | s,@prefix@,$prefix,;t t |
| 9182 | s,@program_transform_name@,$program_transform_name,;t t |
| 9183 | s,@bindir@,$bindir,;t t |
| 9184 | s,@sbindir@,$sbindir,;t t |
| 9185 | s,@libexecdir@,$libexecdir,;t t |
| 9186 | s,@datadir@,$datadir,;t t |
| 9187 | s,@sysconfdir@,$sysconfdir,;t t |
| 9188 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 9189 | s,@localstatedir@,$localstatedir,;t t |
| 9190 | s,@libdir@,$libdir,;t t |
| 9191 | s,@includedir@,$includedir,;t t |
| 9192 | s,@oldincludedir@,$oldincludedir,;t t |
| 9193 | s,@infodir@,$infodir,;t t |
| 9194 | s,@mandir@,$mandir,;t t |
| 9195 | s,@build_alias@,$build_alias,;t t |
| 9196 | s,@host_alias@,$host_alias,;t t |
| 9197 | s,@target_alias@,$target_alias,;t t |
| 9198 | s,@DEFS@,$DEFS,;t t |
| 9199 | s,@ECHO_C@,$ECHO_C,;t t |
| 9200 | s,@ECHO_N@,$ECHO_N,;t t |
| 9201 | s,@ECHO_T@,$ECHO_T,;t t |
| 9202 | s,@LIBS@,$LIBS,;t t |
| 9203 | s,@build@,$build,;t t |
| 9204 | s,@build_cpu@,$build_cpu,;t t |
| 9205 | s,@build_vendor@,$build_vendor,;t t |
| 9206 | s,@build_os@,$build_os,;t t |
| 9207 | s,@host@,$host,;t t |
| 9208 | s,@host_cpu@,$host_cpu,;t t |
| 9209 | s,@host_vendor@,$host_vendor,;t t |
| 9210 | s,@host_os@,$host_os,;t t |
| 9211 | s,@target@,$target,;t t |
| 9212 | s,@target_cpu@,$target_cpu,;t t |
| 9213 | s,@target_vendor@,$target_vendor,;t t |
| 9214 | s,@target_os@,$target_os,;t t |
| 9215 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 9216 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 9217 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 9218 | s,@PACKAGE@,$PACKAGE,;t t |
| 9219 | s,@VERSION@,$VERSION,;t t |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9220 | s,@ACLOCAL@,$ACLOCAL,;t t |
| 9221 | s,@AUTOCONF@,$AUTOCONF,;t t |
| 9222 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
| 9223 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
| 9224 | s,@MAKEINFO@,$MAKEINFO,;t t |
| 9225 | s,@AMTAR@,$AMTAR,;t t |
| 9226 | s,@install_sh@,$install_sh,;t t |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 9227 | s,@STRIP@,$STRIP,;t t |
| 9228 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9229 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
| 9230 | s,@AWK@,$AWK,;t t |
| 9231 | s,@SET_MAKE@,$SET_MAKE,;t t |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9232 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
| 9233 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t |
| 9234 | s,@MAINT@,$MAINT,;t t |
| 9235 | s,@CC@,$CC,;t t |
| 9236 | s,@CFLAGS@,$CFLAGS,;t t |
| 9237 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 9238 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 9239 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 9240 | s,@EXEEXT@,$EXEEXT,;t t |
| 9241 | s,@OBJEXT@,$OBJEXT,;t t |
| 9242 | s,@DEPDIR@,$DEPDIR,;t t |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9243 | s,@am__include@,$am__include,;t t |
| 9244 | s,@am__quote@,$am__quote,;t t |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 9245 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
| 9246 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
| 9247 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9248 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 9249 | s,@LN_S@,$LN_S,;t t |
| 9250 | s,@ECHO@,$ECHO,;t t |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9251 | s,@RANLIB@,$RANLIB,;t t |
| 9252 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9253 | s,@CPP@,$CPP,;t t |
| 9254 | s,@EGREP@,$EGREP,;t t |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 9255 | s,@LIBTOOL@,$LIBTOOL,;t t |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 9256 | s,@CCAS@,$CCAS,;t t |
| 9257 | s,@CCASFLAGS@,$CCASFLAGS,;t t |
mostang.com!davidm | 6af90d0 | 2003-02-15 08:53:55 +0000 | [diff] [blame] | 9258 | s,@LIBOBJS@,$LIBOBJS,;t t |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9259 | s,@REMOTE_ONLY_TRUE@,$REMOTE_ONLY_TRUE,;t t |
| 9260 | s,@REMOTE_ONLY_FALSE@,$REMOTE_ONLY_FALSE,;t t |
| 9261 | s,@ARCH_IA64_TRUE@,$ARCH_IA64_TRUE,;t t |
| 9262 | s,@ARCH_IA64_FALSE@,$ARCH_IA64_FALSE,;t t |
mostang.com!davidm | 8d5c44b | 2003-01-14 07:11:56 +0000 | [diff] [blame] | 9263 | s,@ARCH_HPPA_TRUE@,$ARCH_HPPA_TRUE,;t t |
| 9264 | s,@ARCH_HPPA_FALSE@,$ARCH_HPPA_FALSE,;t t |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 9265 | s,@ARCH_X86_TRUE@,$ARCH_X86_TRUE,;t t |
| 9266 | s,@ARCH_X86_FALSE@,$ARCH_X86_FALSE,;t t |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 9267 | s,@OS_LINUX_TRUE@,$OS_LINUX_TRUE,;t t |
| 9268 | s,@OS_LINUX_FALSE@,$OS_LINUX_FALSE,;t t |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9269 | s,@arch@,$arch,;t t |
| 9270 | s,@ARCH@,$ARCH,;t t |
| 9271 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 9272 | CEOF |
| 9273 | |
| 9274 | _ACEOF |
| 9275 | |
| 9276 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9277 | # Split the substitutions into bite-sized pieces for seds with |
| 9278 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 9279 | ac_max_sed_lines=48 |
| 9280 | ac_sed_frag=1 # Number of current file. |
| 9281 | ac_beg=1 # First line for current file. |
| 9282 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 9283 | ac_more_lines=: |
| 9284 | ac_sed_cmds= |
| 9285 | while $ac_more_lines; do |
| 9286 | if test $ac_beg -gt 1; then |
| 9287 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 9288 | else |
| 9289 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 9290 | fi |
| 9291 | if test ! -s $tmp/subs.frag; then |
| 9292 | ac_more_lines=false |
| 9293 | else |
| 9294 | # The purpose of the label and of the branching condition is to |
| 9295 | # speed up the sed processing (if there are no `@' at all, there |
| 9296 | # is no need to browse any of the substitutions). |
| 9297 | # These are the two extra sed commands mentioned above. |
| 9298 | (echo ':t |
| 9299 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 9300 | if test -z "$ac_sed_cmds"; then |
| 9301 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 9302 | else |
| 9303 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 9304 | fi |
| 9305 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 9306 | ac_beg=$ac_end |
| 9307 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 9308 | fi |
| 9309 | done |
| 9310 | if test -z "$ac_sed_cmds"; then |
| 9311 | ac_sed_cmds=cat |
| 9312 | fi |
| 9313 | fi # test -n "$CONFIG_FILES" |
| 9314 | |
| 9315 | _ACEOF |
| 9316 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9317 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 9318 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 9319 | case $ac_file in |
| 9320 | - | *:- | *:-:* ) # input from stdin |
| 9321 | cat >$tmp/stdin |
| 9322 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 9323 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 9324 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 9325 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 9326 | * ) ac_file_in=$ac_file.in ;; |
| 9327 | esac |
| 9328 | |
| 9329 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 9330 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 9331 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9332 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 9333 | X"$ac_file" : 'X\(//\)$' \| \ |
| 9334 | X"$ac_file" : 'X\(/\)' \| \ |
| 9335 | . : '\(.\)' 2>/dev/null || |
| 9336 | echo X"$ac_file" | |
| 9337 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 9338 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 9339 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 9340 | /^X\(\/\).*/{ s//\1/; q; } |
| 9341 | s/.*/./; q'` |
| 9342 | { if $as_mkdir_p; then |
| 9343 | mkdir -p "$ac_dir" |
| 9344 | else |
| 9345 | as_dir="$ac_dir" |
| 9346 | as_dirs= |
| 9347 | while test ! -d "$as_dir"; do |
| 9348 | as_dirs="$as_dir $as_dirs" |
| 9349 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 9350 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9351 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 9352 | X"$as_dir" : 'X\(//\)$' \| \ |
| 9353 | X"$as_dir" : 'X\(/\)' \| \ |
| 9354 | . : '\(.\)' 2>/dev/null || |
| 9355 | echo X"$as_dir" | |
| 9356 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 9357 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 9358 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 9359 | /^X\(\/\).*/{ s//\1/; q; } |
| 9360 | s/.*/./; q'` |
| 9361 | done |
| 9362 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 9363 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 9364 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 9365 | { (exit 1); exit 1; }; }; } |
| 9366 | |
| 9367 | ac_builddir=. |
| 9368 | |
| 9369 | if test "$ac_dir" != .; then |
| 9370 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 9371 | # A "../" for each directory in $ac_dir_suffix. |
| 9372 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 9373 | else |
| 9374 | ac_dir_suffix= ac_top_builddir= |
| 9375 | fi |
| 9376 | |
| 9377 | case $srcdir in |
| 9378 | .) # No --srcdir option. We are building in place. |
| 9379 | ac_srcdir=. |
| 9380 | if test -z "$ac_top_builddir"; then |
| 9381 | ac_top_srcdir=. |
| 9382 | else |
| 9383 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 9384 | fi ;; |
| 9385 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 9386 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 9387 | ac_top_srcdir=$srcdir ;; |
| 9388 | *) # Relative path. |
| 9389 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 9390 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 9391 | esac |
| 9392 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 9393 | # absolute. |
| 9394 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 9395 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
| 9396 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 9397 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 9398 | |
| 9399 | |
| 9400 | case $INSTALL in |
| 9401 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 9402 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 9403 | esac |
| 9404 | |
| 9405 | if test x"$ac_file" != x-; then |
| 9406 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 9407 | echo "$as_me: creating $ac_file" >&6;} |
| 9408 | rm -f "$ac_file" |
| 9409 | fi |
| 9410 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 9411 | # use $as_me), people would be surprised to read: |
| 9412 | # /* config.h. Generated by config.status. */ |
| 9413 | if test x"$ac_file" = x-; then |
| 9414 | configure_input= |
| 9415 | else |
| 9416 | configure_input="$ac_file. " |
| 9417 | fi |
| 9418 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 9419 | sed 's,.*/,,'` by configure." |
| 9420 | |
| 9421 | # First look for the input files in the build tree, otherwise in the |
| 9422 | # src tree. |
| 9423 | ac_file_inputs=`IFS=: |
| 9424 | for f in $ac_file_in; do |
| 9425 | case $f in |
| 9426 | -) echo $tmp/stdin ;; |
| 9427 | [\\/$]*) |
| 9428 | # Absolute (can't be DOS-style, as IFS=:) |
| 9429 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 9430 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 9431 | { (exit 1); exit 1; }; } |
| 9432 | echo $f;; |
| 9433 | *) # Relative |
| 9434 | if test -f "$f"; then |
| 9435 | # Build tree |
| 9436 | echo $f |
| 9437 | elif test -f "$srcdir/$f"; then |
| 9438 | # Source tree |
| 9439 | echo $srcdir/$f |
| 9440 | else |
| 9441 | # /dev/null tree |
| 9442 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 9443 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 9444 | { (exit 1); exit 1; }; } |
| 9445 | fi;; |
| 9446 | esac |
| 9447 | done` || { (exit 1); exit 1; } |
| 9448 | _ACEOF |
| 9449 | cat >>$CONFIG_STATUS <<_ACEOF |
| 9450 | sed "$ac_vpsub |
| 9451 | $extrasub |
| 9452 | _ACEOF |
| 9453 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9454 | :t |
| 9455 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 9456 | s,@configure_input@,$configure_input,;t t |
| 9457 | s,@srcdir@,$ac_srcdir,;t t |
| 9458 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 9459 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 9460 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 9461 | s,@builddir@,$ac_builddir,;t t |
| 9462 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 9463 | s,@top_builddir@,$ac_top_builddir,;t t |
| 9464 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 9465 | s,@INSTALL@,$ac_INSTALL,;t t |
| 9466 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 9467 | rm -f $tmp/stdin |
| 9468 | if test x"$ac_file" != x-; then |
| 9469 | mv $tmp/out $ac_file |
| 9470 | else |
| 9471 | cat $tmp/out |
| 9472 | rm -f $tmp/out |
| 9473 | fi |
| 9474 | |
| 9475 | done |
| 9476 | _ACEOF |
| 9477 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9478 | |
| 9479 | # |
| 9480 | # CONFIG_HEADER section. |
| 9481 | # |
| 9482 | |
| 9483 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 9484 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 9485 | # |
| 9486 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 9487 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 9488 | ac_dB='[ ].*$,\1#\2' |
| 9489 | ac_dC=' ' |
| 9490 | ac_dD=',;t' |
| 9491 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 9492 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 9493 | ac_uB='$,\1#\2define\3' |
| 9494 | ac_uC=' ' |
| 9495 | ac_uD=',;t' |
| 9496 | |
| 9497 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 9498 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 9499 | case $ac_file in |
| 9500 | - | *:- | *:-:* ) # input from stdin |
| 9501 | cat >$tmp/stdin |
| 9502 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 9503 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 9504 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 9505 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 9506 | * ) ac_file_in=$ac_file.in ;; |
| 9507 | esac |
| 9508 | |
| 9509 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 9510 | echo "$as_me: creating $ac_file" >&6;} |
| 9511 | |
| 9512 | # First look for the input files in the build tree, otherwise in the |
| 9513 | # src tree. |
| 9514 | ac_file_inputs=`IFS=: |
| 9515 | for f in $ac_file_in; do |
| 9516 | case $f in |
| 9517 | -) echo $tmp/stdin ;; |
| 9518 | [\\/$]*) |
| 9519 | # Absolute (can't be DOS-style, as IFS=:) |
| 9520 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 9521 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 9522 | { (exit 1); exit 1; }; } |
| 9523 | echo $f;; |
| 9524 | *) # Relative |
| 9525 | if test -f "$f"; then |
| 9526 | # Build tree |
| 9527 | echo $f |
| 9528 | elif test -f "$srcdir/$f"; then |
| 9529 | # Source tree |
| 9530 | echo $srcdir/$f |
| 9531 | else |
| 9532 | # /dev/null tree |
| 9533 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 9534 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 9535 | { (exit 1); exit 1; }; } |
| 9536 | fi;; |
| 9537 | esac |
| 9538 | done` || { (exit 1); exit 1; } |
| 9539 | # Remove the trailing spaces. |
| 9540 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 9541 | |
| 9542 | _ACEOF |
| 9543 | |
| 9544 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 9545 | # `conftest.undefs', that substitutes the proper values into |
| 9546 | # config.h.in to produce config.h. The first handles `#define' |
| 9547 | # templates, and the second `#undef' templates. |
| 9548 | # And first: Protect against being on the right side of a sed subst in |
| 9549 | # config.status. Protect against being in an unquoted here document |
| 9550 | # in config.status. |
| 9551 | rm -f conftest.defines conftest.undefs |
| 9552 | # Using a here document instead of a string reduces the quoting nightmare. |
| 9553 | # Putting comments in sed scripts is not portable. |
| 9554 | # |
| 9555 | # `end' is used to avoid that the second main sed command (meant for |
| 9556 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 9557 | # See the Autoconf documentation for `clear'. |
| 9558 | cat >confdef2sed.sed <<\_ACEOF |
| 9559 | s/[\\&,]/\\&/g |
| 9560 | s,[\\$`],\\&,g |
| 9561 | t clear |
| 9562 | : clear |
| 9563 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 9564 | t end |
| 9565 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 9566 | : end |
| 9567 | _ACEOF |
| 9568 | # If some macros were called several times there might be several times |
| 9569 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 9570 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 9571 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 9572 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 9573 | rm -f confdef2sed.sed |
| 9574 | |
| 9575 | # This sed command replaces #undef with comments. This is necessary, for |
| 9576 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 9577 | # on some systems where configure will not decide to define it. |
| 9578 | cat >>conftest.undefs <<\_ACEOF |
| 9579 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 9580 | _ACEOF |
| 9581 | |
| 9582 | # Break up conftest.defines because some shells have a limit on the size |
| 9583 | # of here documents, and old seds have small limits too (100 cmds). |
| 9584 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 9585 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 9586 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 9587 | echo ' :' >>$CONFIG_STATUS |
| 9588 | rm -f conftest.tail |
| 9589 | while grep . conftest.defines >/dev/null |
| 9590 | do |
| 9591 | # Write a limited-size here document to $tmp/defines.sed. |
| 9592 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 9593 | # Speed up: don't consider the non `#define' lines. |
| 9594 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 9595 | # Work around the forget-to-reset-the-flag bug. |
| 9596 | echo 't clr' >>$CONFIG_STATUS |
| 9597 | echo ': clr' >>$CONFIG_STATUS |
| 9598 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 9599 | echo 'CEOF |
| 9600 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 9601 | rm -f $tmp/in |
| 9602 | mv $tmp/out $tmp/in |
| 9603 | ' >>$CONFIG_STATUS |
| 9604 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 9605 | rm -f conftest.defines |
| 9606 | mv conftest.tail conftest.defines |
| 9607 | done |
| 9608 | rm -f conftest.defines |
| 9609 | echo ' fi # grep' >>$CONFIG_STATUS |
| 9610 | echo >>$CONFIG_STATUS |
| 9611 | |
| 9612 | # Break up conftest.undefs because some shells have a limit on the size |
| 9613 | # of here documents, and old seds have small limits too (100 cmds). |
| 9614 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 9615 | rm -f conftest.tail |
| 9616 | while grep . conftest.undefs >/dev/null |
| 9617 | do |
| 9618 | # Write a limited-size here document to $tmp/undefs.sed. |
| 9619 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 9620 | # Speed up: don't consider the non `#undef' |
| 9621 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 9622 | # Work around the forget-to-reset-the-flag bug. |
| 9623 | echo 't clr' >>$CONFIG_STATUS |
| 9624 | echo ': clr' >>$CONFIG_STATUS |
| 9625 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 9626 | echo 'CEOF |
| 9627 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 9628 | rm -f $tmp/in |
| 9629 | mv $tmp/out $tmp/in |
| 9630 | ' >>$CONFIG_STATUS |
| 9631 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 9632 | rm -f conftest.undefs |
| 9633 | mv conftest.tail conftest.undefs |
| 9634 | done |
| 9635 | rm -f conftest.undefs |
| 9636 | |
| 9637 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9638 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 9639 | # use $as_me), people would be surprised to read: |
| 9640 | # /* config.h. Generated by config.status. */ |
| 9641 | if test x"$ac_file" = x-; then |
| 9642 | echo "/* Generated by configure. */" >$tmp/config.h |
| 9643 | else |
| 9644 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 9645 | fi |
| 9646 | cat $tmp/in >>$tmp/config.h |
| 9647 | rm -f $tmp/in |
| 9648 | if test x"$ac_file" != x-; then |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 9649 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9650 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 9651 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 9652 | else |
| 9653 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 9654 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9655 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 9656 | X"$ac_file" : 'X\(//\)$' \| \ |
| 9657 | X"$ac_file" : 'X\(/\)' \| \ |
| 9658 | . : '\(.\)' 2>/dev/null || |
| 9659 | echo X"$ac_file" | |
| 9660 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 9661 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 9662 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 9663 | /^X\(\/\).*/{ s//\1/; q; } |
| 9664 | s/.*/./; q'` |
| 9665 | { if $as_mkdir_p; then |
| 9666 | mkdir -p "$ac_dir" |
| 9667 | else |
| 9668 | as_dir="$ac_dir" |
| 9669 | as_dirs= |
| 9670 | while test ! -d "$as_dir"; do |
| 9671 | as_dirs="$as_dir $as_dirs" |
| 9672 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 9673 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9674 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 9675 | X"$as_dir" : 'X\(//\)$' \| \ |
| 9676 | X"$as_dir" : 'X\(/\)' \| \ |
| 9677 | . : '\(.\)' 2>/dev/null || |
| 9678 | echo X"$as_dir" | |
| 9679 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 9680 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 9681 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 9682 | /^X\(\/\).*/{ s//\1/; q; } |
| 9683 | s/.*/./; q'` |
| 9684 | done |
| 9685 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 9686 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 9687 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 9688 | { (exit 1); exit 1; }; }; } |
| 9689 | |
| 9690 | rm -f $ac_file |
| 9691 | mv $tmp/config.h $ac_file |
| 9692 | fi |
| 9693 | else |
| 9694 | cat $tmp/config.h |
| 9695 | rm -f $tmp/config.h |
| 9696 | fi |
| 9697 | # Run the commands associated with the file. |
| 9698 | case $ac_file in |
| 9699 | include/config.h ) # update the timestamp |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 9700 | echo 'timestamp for include/config.h' >"include/stamp-h1" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9701 | ;; |
| 9702 | esac |
| 9703 | done |
| 9704 | _ACEOF |
| 9705 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9706 | |
| 9707 | # |
| 9708 | # CONFIG_LINKS section. |
| 9709 | # |
| 9710 | |
| 9711 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue |
| 9712 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 9713 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 9714 | |
| 9715 | { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 |
| 9716 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} |
| 9717 | |
| 9718 | if test ! -r $srcdir/$ac_source; then |
| 9719 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
| 9720 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} |
| 9721 | { (exit 1); exit 1; }; } |
| 9722 | fi |
| 9723 | rm -f $ac_dest |
| 9724 | |
| 9725 | # Make relative symlinks. |
| 9726 | ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 9727 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9728 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 9729 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 9730 | X"$ac_dest" : 'X\(/\)' \| \ |
| 9731 | . : '\(.\)' 2>/dev/null || |
| 9732 | echo X"$ac_dest" | |
| 9733 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 9734 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 9735 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 9736 | /^X\(\/\).*/{ s//\1/; q; } |
| 9737 | s/.*/./; q'` |
| 9738 | { if $as_mkdir_p; then |
| 9739 | mkdir -p "$ac_dest_dir" |
| 9740 | else |
| 9741 | as_dir="$ac_dest_dir" |
| 9742 | as_dirs= |
| 9743 | while test ! -d "$as_dir"; do |
| 9744 | as_dirs="$as_dir $as_dirs" |
| 9745 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 9746 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9747 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 9748 | X"$as_dir" : 'X\(//\)$' \| \ |
| 9749 | X"$as_dir" : 'X\(/\)' \| \ |
| 9750 | . : '\(.\)' 2>/dev/null || |
| 9751 | echo X"$as_dir" | |
| 9752 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 9753 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 9754 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 9755 | /^X\(\/\).*/{ s//\1/; q; } |
| 9756 | s/.*/./; q'` |
| 9757 | done |
| 9758 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 9759 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 |
| 9760 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} |
| 9761 | { (exit 1); exit 1; }; }; } |
| 9762 | |
| 9763 | ac_builddir=. |
| 9764 | |
| 9765 | if test "$ac_dest_dir" != .; then |
| 9766 | ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` |
| 9767 | # A "../" for each directory in $ac_dir_suffix. |
| 9768 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 9769 | else |
| 9770 | ac_dir_suffix= ac_top_builddir= |
| 9771 | fi |
| 9772 | |
| 9773 | case $srcdir in |
| 9774 | .) # No --srcdir option. We are building in place. |
| 9775 | ac_srcdir=. |
| 9776 | if test -z "$ac_top_builddir"; then |
| 9777 | ac_top_srcdir=. |
| 9778 | else |
| 9779 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 9780 | fi ;; |
| 9781 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 9782 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 9783 | ac_top_srcdir=$srcdir ;; |
| 9784 | *) # Relative path. |
| 9785 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 9786 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 9787 | esac |
| 9788 | # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be |
| 9789 | # absolute. |
| 9790 | ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd` |
| 9791 | ac_abs_top_builddir=`cd "$ac_dest_dir" && cd ${ac_top_builddir}. && pwd` |
| 9792 | ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd` |
| 9793 | ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd` |
| 9794 | |
| 9795 | |
| 9796 | case $srcdir in |
| 9797 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; |
| 9798 | *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; |
| 9799 | esac |
| 9800 | |
| 9801 | # Try a symlink, then a hard link, then a copy. |
| 9802 | ln -s $ac_rel_source $ac_dest 2>/dev/null || |
| 9803 | ln $srcdir/$ac_source $ac_dest 2>/dev/null || |
| 9804 | cp -p $srcdir/$ac_source $ac_dest || |
| 9805 | { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 |
| 9806 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} |
| 9807 | { (exit 1); exit 1; }; } |
| 9808 | done |
| 9809 | _ACEOF |
| 9810 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9811 | |
| 9812 | # |
| 9813 | # CONFIG_COMMANDS section. |
| 9814 | # |
| 9815 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 9816 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 9817 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 9818 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 9819 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9820 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 9821 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 9822 | X"$ac_dest" : 'X\(/\)' \| \ |
| 9823 | . : '\(.\)' 2>/dev/null || |
| 9824 | echo X"$ac_dest" | |
| 9825 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 9826 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 9827 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 9828 | /^X\(\/\).*/{ s//\1/; q; } |
| 9829 | s/.*/./; q'` |
| 9830 | ac_builddir=. |
| 9831 | |
| 9832 | if test "$ac_dir" != .; then |
| 9833 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 9834 | # A "../" for each directory in $ac_dir_suffix. |
| 9835 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 9836 | else |
| 9837 | ac_dir_suffix= ac_top_builddir= |
| 9838 | fi |
| 9839 | |
| 9840 | case $srcdir in |
| 9841 | .) # No --srcdir option. We are building in place. |
| 9842 | ac_srcdir=. |
| 9843 | if test -z "$ac_top_builddir"; then |
| 9844 | ac_top_srcdir=. |
| 9845 | else |
| 9846 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 9847 | fi ;; |
| 9848 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 9849 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 9850 | ac_top_srcdir=$srcdir ;; |
| 9851 | *) # Relative path. |
| 9852 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 9853 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 9854 | esac |
| 9855 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 9856 | # absolute. |
| 9857 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 9858 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
| 9859 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 9860 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 9861 | |
| 9862 | |
| 9863 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 9864 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 9865 | case $ac_dest in |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 9866 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
| 9867 | # Strip MF so we end up with the name of the file. |
| 9868 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 9869 | # Check whether this is an Automake generated Makefile or not. |
| 9870 | # We used to match only the files named `Makefile.in', but |
| 9871 | # some people rename them; so instead we look at the file content. |
| 9872 | # Grep'ing the first line is not enough: some people post-process |
| 9873 | # each Makefile.in and add a new line on top of each file to say so. |
| 9874 | # So let's grep whole file. |
| 9875 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
| 9876 | dirpart=`(dirname "$mf") 2>/dev/null || |
| 9877 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9878 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 9879 | X"$mf" : 'X\(//\)$' \| \ |
| 9880 | X"$mf" : 'X\(/\)' \| \ |
| 9881 | . : '\(.\)' 2>/dev/null || |
| 9882 | echo X"$mf" | |
| 9883 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 9884 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 9885 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 9886 | /^X\(\/\).*/{ s//\1/; q; } |
| 9887 | s/.*/./; q'` |
| 9888 | else |
| 9889 | continue |
| 9890 | fi |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9891 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
| 9892 | # Extract the definition of DEP_FILES from the Makefile without |
| 9893 | # running `make'. |
| 9894 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
| 9895 | test -z "$DEPDIR" && continue |
| 9896 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 9897 | U=`sed -n -e '/^U = / s///p' < "$mf"` |
| 9898 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
| 9899 | # We invoke sed twice because it is the simplest approach to |
| 9900 | # changing $(DEPDIR) to its actual value in the expansion. |
| 9901 | for file in `sed -n -e ' |
| 9902 | /^DEP_FILES = .*\\\\$/ { |
| 9903 | s/^DEP_FILES = // |
| 9904 | :loop |
| 9905 | s/\\\\$// |
| 9906 | p |
| 9907 | n |
| 9908 | /\\\\$/ b loop |
| 9909 | p |
| 9910 | } |
| 9911 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
| 9912 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 9913 | # Make sure the directory exists. |
| 9914 | test -f "$dirpart/$file" && continue |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 9915 | fdir=`(dirname "$file") 2>/dev/null || |
| 9916 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9917 | X"$file" : 'X\(//\)[^/]' \| \ |
| 9918 | X"$file" : 'X\(//\)$' \| \ |
| 9919 | X"$file" : 'X\(/\)' \| \ |
| 9920 | . : '\(.\)' 2>/dev/null || |
| 9921 | echo X"$file" | |
| 9922 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 9923 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 9924 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 9925 | /^X\(\/\).*/{ s//\1/; q; } |
| 9926 | s/.*/./; q'` |
| 9927 | { if $as_mkdir_p; then |
| 9928 | mkdir -p $dirpart/$fdir |
| 9929 | else |
| 9930 | as_dir=$dirpart/$fdir |
| 9931 | as_dirs= |
| 9932 | while test ! -d "$as_dir"; do |
| 9933 | as_dirs="$as_dir $as_dirs" |
| 9934 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 9935 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9936 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 9937 | X"$as_dir" : 'X\(//\)$' \| \ |
| 9938 | X"$as_dir" : 'X\(/\)' \| \ |
| 9939 | . : '\(.\)' 2>/dev/null || |
| 9940 | echo X"$as_dir" | |
| 9941 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 9942 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 9943 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 9944 | /^X\(\/\).*/{ s//\1/; q; } |
| 9945 | s/.*/./; q'` |
| 9946 | done |
| 9947 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 9948 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
| 9949 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
| 9950 | { (exit 1); exit 1; }; }; } |
| 9951 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9952 | # echo "creating $dirpart/$file" |
| 9953 | echo '# dummy' > "$dirpart/$file" |
| 9954 | done |
| 9955 | done |
| 9956 | ;; |
| 9957 | esac |
| 9958 | done |
| 9959 | _ACEOF |
| 9960 | |
| 9961 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9962 | |
| 9963 | { (exit 0); exit 0; } |
| 9964 | _ACEOF |
| 9965 | chmod +x $CONFIG_STATUS |
| 9966 | ac_clean_files=$ac_clean_files_save |
| 9967 | |
| 9968 | |
| 9969 | # configure is writing to config.log, and then calls config.status. |
| 9970 | # config.status does its own redirection, appending to config.log. |
| 9971 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 9972 | # by configure, so config.status won't be able to write to it; its |
| 9973 | # output is simply discarded. So we exec the FD to /dev/null, |
| 9974 | # effectively closing config.log, so it can be properly (re)opened and |
| 9975 | # appended to by config.status. When coming back to configure, we |
| 9976 | # need to make the FD available again. |
| 9977 | if test "$no_create" != yes; then |
| 9978 | ac_cs_success=: |
| 9979 | exec 5>/dev/null |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 9980 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9981 | exec 5>>config.log |
| 9982 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 9983 | # would make configure fail if this is the last instruction. |
| 9984 | $ac_cs_success || { (exit 1); exit 1; } |
| 9985 | fi |
| 9986 | |