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. |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.57. |
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. |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 39 | for as_var in \ |
| 40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 42 | LC_TELEPHONE LC_TIME |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 43 | do |
| 44 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 45 | eval $as_var=C; export $as_var |
| 46 | else |
| 47 | $as_unset $as_var |
| 48 | fi |
| 49 | done |
| 50 | |
| 51 | # Required to use basename. |
| 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 53 | as_expr=expr |
| 54 | else |
| 55 | as_expr=false |
| 56 | fi |
| 57 | |
| 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 59 | as_basename=basename |
| 60 | else |
| 61 | as_basename=false |
| 62 | fi |
| 63 | |
| 64 | |
| 65 | # Name of the executable. |
| 66 | as_me=`$as_basename "$0" || |
| 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 68 | X"$0" : 'X\(//\)$' \| \ |
| 69 | X"$0" : 'X\(/\)$' \| \ |
| 70 | . : '\(.\)' 2>/dev/null || |
| 71 | echo X/"$0" | |
| 72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 73 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 74 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 75 | s/.*/./; q'` |
| 76 | |
| 77 | |
| 78 | # PATH needs CR, and LINENO needs CR and PATH. |
| 79 | # Avoid depending upon Character Ranges. |
| 80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 83 | as_cr_digits='0123456789' |
| 84 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 85 | |
| 86 | # The user is always right. |
| 87 | if test "${PATH_SEPARATOR+set}" != set; then |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 88 | echo "#! /bin/sh" >conf$$.sh |
| 89 | echo "exit 0" >>conf$$.sh |
| 90 | chmod +x conf$$.sh |
| 91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 92 | PATH_SEPARATOR=';' |
| 93 | else |
| 94 | PATH_SEPARATOR=: |
| 95 | fi |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 96 | rm -f conf$$.sh |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 97 | fi |
| 98 | |
| 99 | |
| 100 | as_lineno_1=$LINENO |
| 101 | as_lineno_2=$LINENO |
| 102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 103 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 104 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 105 | # Find who we are. Look in the path if we contain no path at all |
| 106 | # relative or not. |
| 107 | case $0 in |
| 108 | *[\\/]* ) as_myself=$0 ;; |
| 109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 110 | for as_dir in $PATH |
| 111 | do |
| 112 | IFS=$as_save_IFS |
| 113 | test -z "$as_dir" && as_dir=. |
| 114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 115 | done |
| 116 | |
| 117 | ;; |
| 118 | esac |
| 119 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 120 | # in which case we are not to be found in the path. |
| 121 | if test "x$as_myself" = x; then |
| 122 | as_myself=$0 |
| 123 | fi |
| 124 | if test ! -f "$as_myself"; then |
| 125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 126 | { (exit 1); exit 1; }; } |
| 127 | fi |
| 128 | case $CONFIG_SHELL in |
| 129 | '') |
| 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 132 | do |
| 133 | IFS=$as_save_IFS |
| 134 | test -z "$as_dir" && as_dir=. |
| 135 | for as_base in sh bash ksh sh5; do |
| 136 | case $as_dir in |
| 137 | /*) |
| 138 | if ("$as_dir/$as_base" -c ' |
| 139 | as_lineno_1=$LINENO |
| 140 | as_lineno_2=$LINENO |
| 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 146 | CONFIG_SHELL=$as_dir/$as_base |
| 147 | export CONFIG_SHELL |
| 148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 149 | fi;; |
| 150 | esac |
| 151 | done |
| 152 | done |
| 153 | ;; |
| 154 | esac |
| 155 | |
| 156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 157 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 158 | # line-number line before each line; the second 'sed' does the real |
| 159 | # work. The second script uses 'N' to pair each line-number line |
| 160 | # with the numbered line, and appends trailing '-' during |
| 161 | # substitution so that $LINENO is not a special case at line end. |
| 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 164 | sed '=' <$as_myself | |
| 165 | sed ' |
| 166 | N |
| 167 | s,$,-, |
| 168 | : loop |
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 170 | t loop |
| 171 | s,-$,, |
| 172 | s,^['$as_cr_digits']*\n,, |
| 173 | ' >$as_me.lineno && |
| 174 | chmod +x $as_me.lineno || |
| 175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 176 | { (exit 1); exit 1; }; } |
| 177 | |
| 178 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 179 | # (the dirname of $[0] is not the place where we might find the |
| 180 | # original and so on. Autoconf is especially sensible to this). |
| 181 | . ./$as_me.lineno |
| 182 | # Exit status is that of the last command. |
| 183 | exit |
| 184 | } |
| 185 | |
| 186 | |
| 187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 188 | *c*,-n*) ECHO_N= ECHO_C=' |
| 189 | ' ECHO_T=' ' ;; |
| 190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 192 | esac |
| 193 | |
| 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 195 | as_expr=expr |
| 196 | else |
| 197 | as_expr=false |
| 198 | fi |
| 199 | |
| 200 | rm -f conf$$ conf$$.exe conf$$.file |
| 201 | echo >conf$$.file |
| 202 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 203 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 205 | if test -f conf$$.exe; then |
| 206 | # Don't use ln at all; we don't have any links |
| 207 | as_ln_s='cp -p' |
| 208 | else |
| 209 | as_ln_s='ln -s' |
| 210 | fi |
| 211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 212 | as_ln_s=ln |
| 213 | else |
| 214 | as_ln_s='cp -p' |
| 215 | fi |
| 216 | rm -f conf$$ conf$$.exe conf$$.file |
| 217 | |
| 218 | if mkdir -p . 2>/dev/null; then |
| 219 | as_mkdir_p=: |
| 220 | else |
| 221 | as_mkdir_p=false |
| 222 | fi |
| 223 | |
| 224 | as_executable_p="test -f" |
| 225 | |
| 226 | # Sed expression to map a string onto a valid CPP name. |
| 227 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 228 | |
| 229 | # Sed expression to map a string onto a valid variable name. |
| 230 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 231 | |
| 232 | |
| 233 | # IFS |
| 234 | # We need space, tab and new line, in precisely that order. |
| 235 | as_nl=' |
| 236 | ' |
| 237 | IFS=" $as_nl" |
| 238 | |
| 239 | # CDPATH. |
| 240 | $as_unset CDPATH |
| 241 | |
| 242 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 243 | # Find the correct PATH separator. Usually this is `:', but |
| 244 | # DJGPP uses `;' like DOS. |
| 245 | if test "X${PATH_SEPARATOR+set}" != Xset; then |
| 246 | UNAME=${UNAME-`uname 2>/dev/null`} |
| 247 | case X$UNAME in |
| 248 | *-DOS) lt_cv_sys_path_separator=';' ;; |
| 249 | *) lt_cv_sys_path_separator=':' ;; |
| 250 | esac |
| 251 | PATH_SEPARATOR=$lt_cv_sys_path_separator |
| 252 | fi |
| 253 | |
| 254 | |
| 255 | # Check that we are running under the correct shell. |
| 256 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 257 | |
| 258 | case X$ECHO in |
| 259 | X*--fallback-echo) |
| 260 | # Remove one level of quotation (which was required for Make). |
| 261 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 262 | ;; |
| 263 | esac |
| 264 | |
| 265 | echo=${ECHO-echo} |
| 266 | if test "X$1" = X--no-reexec; then |
| 267 | # Discard the --no-reexec flag, and continue. |
| 268 | shift |
| 269 | elif test "X$1" = X--fallback-echo; then |
| 270 | # Avoid inline document here, it may be left over |
| 271 | : |
| 272 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then |
| 273 | # Yippee, $echo works! |
| 274 | : |
| 275 | else |
| 276 | # Restart under the correct shell. |
| 277 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 278 | fi |
| 279 | |
| 280 | if test "X$1" = X--fallback-echo; then |
| 281 | # used as fallback echo |
| 282 | shift |
| 283 | cat <<EOF |
| 284 | |
| 285 | EOF |
| 286 | exit 0 |
| 287 | fi |
| 288 | |
| 289 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 290 | # if CDPATH is set. |
| 291 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 292 | |
| 293 | if test -z "$ECHO"; then |
| 294 | if test "X${echo_test_string+set}" != Xset; then |
| 295 | # find a string as large as possible, as long as the shell can cope with it |
| 296 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 297 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 298 | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
| 299 | echo_test_string="`eval $cmd`" && |
| 300 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 301 | then |
| 302 | break |
| 303 | fi |
| 304 | done |
| 305 | fi |
| 306 | |
| 307 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 308 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 309 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 310 | : |
| 311 | else |
| 312 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 313 | # backslashes. This makes it impossible to quote backslashes using |
| 314 | # echo "$something" | sed 's/\\/\\\\/g' |
| 315 | # |
| 316 | # So, first we look for a working echo in the user's PATH. |
| 317 | |
| 318 | IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 319 | for dir in $PATH /usr/ucb; do |
| 320 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 321 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 322 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 323 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 324 | echo="$dir/echo" |
| 325 | break |
| 326 | fi |
| 327 | done |
| 328 | IFS="$save_ifs" |
| 329 | |
| 330 | if test "X$echo" = Xecho; then |
| 331 | # We didn't find a better echo, so look for alternatives. |
| 332 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 333 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 334 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 335 | # This shell has a builtin print -r that does the trick. |
| 336 | echo='print -r' |
| 337 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 338 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 339 | # If we have ksh, try running configure again with it. |
| 340 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 341 | export ORIGINAL_CONFIG_SHELL |
| 342 | CONFIG_SHELL=/bin/ksh |
| 343 | export CONFIG_SHELL |
| 344 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 345 | else |
| 346 | # Try using printf. |
| 347 | echo='printf %s\n' |
| 348 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 349 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 350 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 351 | # Cool, printf works |
| 352 | : |
| 353 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 354 | test "X$echo_testing_string" = 'X\t' && |
| 355 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 356 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 357 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 358 | export CONFIG_SHELL |
| 359 | SHELL="$CONFIG_SHELL" |
| 360 | export SHELL |
| 361 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 362 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 363 | test "X$echo_testing_string" = 'X\t' && |
| 364 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 365 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 366 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 367 | else |
| 368 | # maybe with a smaller string... |
| 369 | prev=: |
| 370 | |
| 371 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 372 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 373 | then |
| 374 | break |
| 375 | fi |
| 376 | prev="$cmd" |
| 377 | done |
| 378 | |
| 379 | if test "$prev" != 'sed 50q "$0"'; then |
| 380 | echo_test_string=`eval $prev` |
| 381 | export echo_test_string |
| 382 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 383 | else |
| 384 | # Oops. We lost completely, so just stick with echo. |
| 385 | echo=echo |
| 386 | fi |
| 387 | fi |
| 388 | fi |
| 389 | fi |
| 390 | fi |
| 391 | fi |
| 392 | |
| 393 | # Copy echo and quote the copy suitably for passing to libtool from |
| 394 | # the Makefile, instead of quoting the original, which is used later. |
| 395 | ECHO=$echo |
| 396 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 397 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 398 | fi |
| 399 | |
| 400 | |
| 401 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 402 | # Name of the host. |
| 403 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 404 | # so uname gets run too. |
| 405 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 406 | |
| 407 | exec 6>&1 |
| 408 | |
| 409 | # |
| 410 | # Initializations. |
| 411 | # |
| 412 | ac_default_prefix=/usr/local |
| 413 | ac_config_libobj_dir=. |
| 414 | cross_compiling=no |
| 415 | subdirs= |
| 416 | MFLAGS= |
| 417 | MAKEFLAGS= |
| 418 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 419 | |
| 420 | # Maximum number of lines to put in a shell here document. |
| 421 | # This variable seems obsolete. It should probably be removed, and |
| 422 | # only ac_max_sed_lines should be used. |
| 423 | : ${ac_max_here_lines=38} |
| 424 | |
| 425 | # Identity of this package. |
| 426 | PACKAGE_NAME= |
| 427 | PACKAGE_TARNAME= |
| 428 | PACKAGE_VERSION= |
| 429 | PACKAGE_STRING= |
| 430 | PACKAGE_BUGREPORT= |
| 431 | |
| 432 | ac_unique_file="src/backtrace.c" |
| 433 | # Factoring default headers for most tests. |
| 434 | ac_includes_default="\ |
| 435 | #include <stdio.h> |
| 436 | #if HAVE_SYS_TYPES_H |
| 437 | # include <sys/types.h> |
| 438 | #endif |
| 439 | #if HAVE_SYS_STAT_H |
| 440 | # include <sys/stat.h> |
| 441 | #endif |
| 442 | #if STDC_HEADERS |
| 443 | # include <stdlib.h> |
| 444 | # include <stddef.h> |
| 445 | #else |
| 446 | # if HAVE_STDLIB_H |
| 447 | # include <stdlib.h> |
| 448 | # endif |
| 449 | #endif |
| 450 | #if HAVE_STRING_H |
| 451 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 452 | # include <memory.h> |
| 453 | # endif |
| 454 | # include <string.h> |
| 455 | #endif |
| 456 | #if HAVE_STRINGS_H |
| 457 | # include <strings.h> |
| 458 | #endif |
| 459 | #if HAVE_INTTYPES_H |
| 460 | # include <inttypes.h> |
| 461 | #else |
| 462 | # if HAVE_STDINT_H |
| 463 | # include <stdint.h> |
| 464 | # endif |
| 465 | #endif |
| 466 | #if HAVE_UNISTD_H |
| 467 | # include <unistd.h> |
| 468 | #endif" |
| 469 | |
mostang.com!davidm | 6ab15cd | 2003-04-03 07:59:15 +0000 | [diff] [blame] | 470 | 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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE 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 OS_HPUX_TRUE OS_HPUX_FALSE arch ARCH LTLIBOBJS' |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 471 | ac_subst_files='' |
| 472 | |
| 473 | # Initialize some variables set by options. |
| 474 | ac_init_help= |
| 475 | ac_init_version=false |
| 476 | # The variables have the same names as the options, with |
| 477 | # dashes changed to underlines. |
| 478 | cache_file=/dev/null |
| 479 | exec_prefix=NONE |
| 480 | no_create= |
| 481 | no_recursion= |
| 482 | prefix=NONE |
| 483 | program_prefix=NONE |
| 484 | program_suffix=NONE |
| 485 | program_transform_name=s,x,x, |
| 486 | silent= |
| 487 | site= |
| 488 | srcdir= |
| 489 | verbose= |
| 490 | x_includes=NONE |
| 491 | x_libraries=NONE |
| 492 | |
| 493 | # Installation directory options. |
| 494 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 495 | # and all the variables that are supposed to be based on exec_prefix |
| 496 | # by default will actually change. |
| 497 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 498 | bindir='${exec_prefix}/bin' |
| 499 | sbindir='${exec_prefix}/sbin' |
| 500 | libexecdir='${exec_prefix}/libexec' |
| 501 | datadir='${prefix}/share' |
| 502 | sysconfdir='${prefix}/etc' |
| 503 | sharedstatedir='${prefix}/com' |
| 504 | localstatedir='${prefix}/var' |
| 505 | libdir='${exec_prefix}/lib' |
| 506 | includedir='${prefix}/include' |
| 507 | oldincludedir='/usr/include' |
| 508 | infodir='${prefix}/info' |
| 509 | mandir='${prefix}/man' |
| 510 | |
| 511 | ac_prev= |
| 512 | for ac_option |
| 513 | do |
| 514 | # If the previous option needs an argument, assign it. |
| 515 | if test -n "$ac_prev"; then |
| 516 | eval "$ac_prev=\$ac_option" |
| 517 | ac_prev= |
| 518 | continue |
| 519 | fi |
| 520 | |
| 521 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 522 | |
| 523 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 524 | |
| 525 | case $ac_option in |
| 526 | |
| 527 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 528 | ac_prev=bindir ;; |
| 529 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 530 | bindir=$ac_optarg ;; |
| 531 | |
| 532 | -build | --build | --buil | --bui | --bu) |
| 533 | ac_prev=build_alias ;; |
| 534 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 535 | build_alias=$ac_optarg ;; |
| 536 | |
| 537 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 538 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 539 | ac_prev=cache_file ;; |
| 540 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 541 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 542 | cache_file=$ac_optarg ;; |
| 543 | |
| 544 | --config-cache | -C) |
| 545 | cache_file=config.cache ;; |
| 546 | |
| 547 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 548 | ac_prev=datadir ;; |
| 549 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 550 | | --da=*) |
| 551 | datadir=$ac_optarg ;; |
| 552 | |
| 553 | -disable-* | --disable-*) |
| 554 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 555 | # Reject names that are not valid shell variable names. |
| 556 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 557 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 558 | { (exit 1); exit 1; }; } |
| 559 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 560 | eval "enable_$ac_feature=no" ;; |
| 561 | |
| 562 | -enable-* | --enable-*) |
| 563 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 564 | # Reject names that are not valid shell variable names. |
| 565 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 566 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 567 | { (exit 1); exit 1; }; } |
| 568 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 569 | case $ac_option in |
| 570 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 571 | *) ac_optarg=yes ;; |
| 572 | esac |
| 573 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 574 | |
| 575 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 576 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 577 | | --exec | --exe | --ex) |
| 578 | ac_prev=exec_prefix ;; |
| 579 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 580 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 581 | | --exec=* | --exe=* | --ex=*) |
| 582 | exec_prefix=$ac_optarg ;; |
| 583 | |
| 584 | -gas | --gas | --ga | --g) |
| 585 | # Obsolete; use --with-gas. |
| 586 | with_gas=yes ;; |
| 587 | |
| 588 | -help | --help | --hel | --he | -h) |
| 589 | ac_init_help=long ;; |
| 590 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 591 | ac_init_help=recursive ;; |
| 592 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 593 | ac_init_help=short ;; |
| 594 | |
| 595 | -host | --host | --hos | --ho) |
| 596 | ac_prev=host_alias ;; |
| 597 | -host=* | --host=* | --hos=* | --ho=*) |
| 598 | host_alias=$ac_optarg ;; |
| 599 | |
| 600 | -includedir | --includedir | --includedi | --included | --include \ |
| 601 | | --includ | --inclu | --incl | --inc) |
| 602 | ac_prev=includedir ;; |
| 603 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 604 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 605 | includedir=$ac_optarg ;; |
| 606 | |
| 607 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 608 | ac_prev=infodir ;; |
| 609 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 610 | infodir=$ac_optarg ;; |
| 611 | |
| 612 | -libdir | --libdir | --libdi | --libd) |
| 613 | ac_prev=libdir ;; |
| 614 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 615 | libdir=$ac_optarg ;; |
| 616 | |
| 617 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 618 | | --libexe | --libex | --libe) |
| 619 | ac_prev=libexecdir ;; |
| 620 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 621 | | --libexe=* | --libex=* | --libe=*) |
| 622 | libexecdir=$ac_optarg ;; |
| 623 | |
| 624 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 625 | | --localstate | --localstat | --localsta | --localst \ |
| 626 | | --locals | --local | --loca | --loc | --lo) |
| 627 | ac_prev=localstatedir ;; |
| 628 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 629 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 630 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 631 | localstatedir=$ac_optarg ;; |
| 632 | |
| 633 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 634 | ac_prev=mandir ;; |
| 635 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 636 | mandir=$ac_optarg ;; |
| 637 | |
| 638 | -nfp | --nfp | --nf) |
| 639 | # Obsolete; use --without-fp. |
| 640 | with_fp=no ;; |
| 641 | |
| 642 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 643 | | --no-cr | --no-c | -n) |
| 644 | no_create=yes ;; |
| 645 | |
| 646 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 647 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 648 | no_recursion=yes ;; |
| 649 | |
| 650 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 651 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 652 | | --oldin | --oldi | --old | --ol | --o) |
| 653 | ac_prev=oldincludedir ;; |
| 654 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 655 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 656 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 657 | oldincludedir=$ac_optarg ;; |
| 658 | |
| 659 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 660 | ac_prev=prefix ;; |
| 661 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 662 | prefix=$ac_optarg ;; |
| 663 | |
| 664 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 665 | | --program-pre | --program-pr | --program-p) |
| 666 | ac_prev=program_prefix ;; |
| 667 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 668 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 669 | program_prefix=$ac_optarg ;; |
| 670 | |
| 671 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 672 | | --program-suf | --program-su | --program-s) |
| 673 | ac_prev=program_suffix ;; |
| 674 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 675 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 676 | program_suffix=$ac_optarg ;; |
| 677 | |
| 678 | -program-transform-name | --program-transform-name \ |
| 679 | | --program-transform-nam | --program-transform-na \ |
| 680 | | --program-transform-n | --program-transform- \ |
| 681 | | --program-transform | --program-transfor \ |
| 682 | | --program-transfo | --program-transf \ |
| 683 | | --program-trans | --program-tran \ |
| 684 | | --progr-tra | --program-tr | --program-t) |
| 685 | ac_prev=program_transform_name ;; |
| 686 | -program-transform-name=* | --program-transform-name=* \ |
| 687 | | --program-transform-nam=* | --program-transform-na=* \ |
| 688 | | --program-transform-n=* | --program-transform-=* \ |
| 689 | | --program-transform=* | --program-transfor=* \ |
| 690 | | --program-transfo=* | --program-transf=* \ |
| 691 | | --program-trans=* | --program-tran=* \ |
| 692 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 693 | program_transform_name=$ac_optarg ;; |
| 694 | |
| 695 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 696 | | -silent | --silent | --silen | --sile | --sil) |
| 697 | silent=yes ;; |
| 698 | |
| 699 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 700 | ac_prev=sbindir ;; |
| 701 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 702 | | --sbi=* | --sb=*) |
| 703 | sbindir=$ac_optarg ;; |
| 704 | |
| 705 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 706 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 707 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 708 | | --sha | --sh) |
| 709 | ac_prev=sharedstatedir ;; |
| 710 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 711 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 712 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 713 | | --sha=* | --sh=*) |
| 714 | sharedstatedir=$ac_optarg ;; |
| 715 | |
| 716 | -site | --site | --sit) |
| 717 | ac_prev=site ;; |
| 718 | -site=* | --site=* | --sit=*) |
| 719 | site=$ac_optarg ;; |
| 720 | |
| 721 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 722 | ac_prev=srcdir ;; |
| 723 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 724 | srcdir=$ac_optarg ;; |
| 725 | |
| 726 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 727 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 728 | ac_prev=sysconfdir ;; |
| 729 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 730 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 731 | sysconfdir=$ac_optarg ;; |
| 732 | |
| 733 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 734 | ac_prev=target_alias ;; |
| 735 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 736 | target_alias=$ac_optarg ;; |
| 737 | |
| 738 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 739 | verbose=yes ;; |
| 740 | |
| 741 | -version | --version | --versio | --versi | --vers | -V) |
| 742 | ac_init_version=: ;; |
| 743 | |
| 744 | -with-* | --with-*) |
| 745 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 746 | # Reject names that are not valid shell variable names. |
| 747 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 748 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 749 | { (exit 1); exit 1; }; } |
| 750 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 751 | case $ac_option in |
| 752 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 753 | *) ac_optarg=yes ;; |
| 754 | esac |
| 755 | eval "with_$ac_package='$ac_optarg'" ;; |
| 756 | |
| 757 | -without-* | --without-*) |
| 758 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 759 | # Reject names that are not valid shell variable names. |
| 760 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 761 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 762 | { (exit 1); exit 1; }; } |
| 763 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 764 | eval "with_$ac_package=no" ;; |
| 765 | |
| 766 | --x) |
| 767 | # Obsolete; use --with-x. |
| 768 | with_x=yes ;; |
| 769 | |
| 770 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 771 | | --x-incl | --x-inc | --x-in | --x-i) |
| 772 | ac_prev=x_includes ;; |
| 773 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 774 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 775 | x_includes=$ac_optarg ;; |
| 776 | |
| 777 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 778 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 779 | ac_prev=x_libraries ;; |
| 780 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 781 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 782 | x_libraries=$ac_optarg ;; |
| 783 | |
| 784 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 785 | Try \`$0 --help' for more information." >&2 |
| 786 | { (exit 1); exit 1; }; } |
| 787 | ;; |
| 788 | |
| 789 | *=*) |
| 790 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 791 | # Reject names that are not valid shell variable names. |
| 792 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 793 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 794 | { (exit 1); exit 1; }; } |
| 795 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 796 | eval "$ac_envvar='$ac_optarg'" |
| 797 | export $ac_envvar ;; |
| 798 | |
| 799 | *) |
| 800 | # FIXME: should be removed in autoconf 3.0. |
| 801 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 802 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 803 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 804 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 805 | ;; |
| 806 | |
| 807 | esac |
| 808 | done |
| 809 | |
| 810 | if test -n "$ac_prev"; then |
| 811 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 812 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 813 | { (exit 1); exit 1; }; } |
| 814 | fi |
| 815 | |
| 816 | # Be sure to have absolute paths. |
| 817 | for ac_var in exec_prefix prefix |
| 818 | do |
| 819 | eval ac_val=$`echo $ac_var` |
| 820 | case $ac_val in |
| 821 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 822 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 823 | { (exit 1); exit 1; }; };; |
| 824 | esac |
| 825 | done |
| 826 | |
| 827 | # Be sure to have absolute paths. |
| 828 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 829 | localstatedir libdir includedir oldincludedir infodir mandir |
| 830 | do |
| 831 | eval ac_val=$`echo $ac_var` |
| 832 | case $ac_val in |
| 833 | [\\/$]* | ?:[\\/]* ) ;; |
| 834 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 835 | { (exit 1); exit 1; }; };; |
| 836 | esac |
| 837 | done |
| 838 | |
| 839 | # There might be people who depend on the old broken behavior: `$host' |
| 840 | # used to hold the argument of --host etc. |
| 841 | # FIXME: To remove some day. |
| 842 | build=$build_alias |
| 843 | host=$host_alias |
| 844 | target=$target_alias |
| 845 | |
| 846 | # FIXME: To remove some day. |
| 847 | if test "x$host_alias" != x; then |
| 848 | if test "x$build_alias" = x; then |
| 849 | cross_compiling=maybe |
| 850 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 851 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 852 | elif test "x$build_alias" != "x$host_alias"; then |
| 853 | cross_compiling=yes |
| 854 | fi |
| 855 | fi |
| 856 | |
| 857 | ac_tool_prefix= |
| 858 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 859 | |
| 860 | test "$silent" = yes && exec 6>/dev/null |
| 861 | |
| 862 | |
| 863 | # Find the source files, if location was not specified. |
| 864 | if test -z "$srcdir"; then |
| 865 | ac_srcdir_defaulted=yes |
| 866 | # Try the directory containing this script, then its parent. |
| 867 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 868 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 869 | X"$0" : 'X\(//\)[^/]' \| \ |
| 870 | X"$0" : 'X\(//\)$' \| \ |
| 871 | X"$0" : 'X\(/\)' \| \ |
| 872 | . : '\(.\)' 2>/dev/null || |
| 873 | echo X"$0" | |
| 874 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 875 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 876 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 877 | /^X\(\/\).*/{ s//\1/; q; } |
| 878 | s/.*/./; q'` |
| 879 | srcdir=$ac_confdir |
| 880 | if test ! -r $srcdir/$ac_unique_file; then |
| 881 | srcdir=.. |
| 882 | fi |
| 883 | else |
| 884 | ac_srcdir_defaulted=no |
| 885 | fi |
| 886 | if test ! -r $srcdir/$ac_unique_file; then |
| 887 | if test "$ac_srcdir_defaulted" = yes; then |
| 888 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 889 | { (exit 1); exit 1; }; } |
| 890 | else |
| 891 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 892 | { (exit 1); exit 1; }; } |
| 893 | fi |
| 894 | fi |
| 895 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 896 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 897 | { (exit 1); exit 1; }; } |
| 898 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 899 | ac_env_build_alias_set=${build_alias+set} |
| 900 | ac_env_build_alias_value=$build_alias |
| 901 | ac_cv_env_build_alias_set=${build_alias+set} |
| 902 | ac_cv_env_build_alias_value=$build_alias |
| 903 | ac_env_host_alias_set=${host_alias+set} |
| 904 | ac_env_host_alias_value=$host_alias |
| 905 | ac_cv_env_host_alias_set=${host_alias+set} |
| 906 | ac_cv_env_host_alias_value=$host_alias |
| 907 | ac_env_target_alias_set=${target_alias+set} |
| 908 | ac_env_target_alias_value=$target_alias |
| 909 | ac_cv_env_target_alias_set=${target_alias+set} |
| 910 | ac_cv_env_target_alias_value=$target_alias |
| 911 | ac_env_CC_set=${CC+set} |
| 912 | ac_env_CC_value=$CC |
| 913 | ac_cv_env_CC_set=${CC+set} |
| 914 | ac_cv_env_CC_value=$CC |
| 915 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 916 | ac_env_CFLAGS_value=$CFLAGS |
| 917 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 918 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 919 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 920 | ac_env_LDFLAGS_value=$LDFLAGS |
| 921 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 922 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 923 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 924 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 925 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 926 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
mostang.com!davidm | 4f17bce | 2003-03-28 07:43:22 +0000 | [diff] [blame] | 927 | ac_env_CXX_set=${CXX+set} |
| 928 | ac_env_CXX_value=$CXX |
| 929 | ac_cv_env_CXX_set=${CXX+set} |
| 930 | ac_cv_env_CXX_value=$CXX |
| 931 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 932 | ac_env_CXXFLAGS_value=$CXXFLAGS |
| 933 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 934 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 935 | ac_env_CPP_set=${CPP+set} |
| 936 | ac_env_CPP_value=$CPP |
| 937 | ac_cv_env_CPP_set=${CPP+set} |
| 938 | ac_cv_env_CPP_value=$CPP |
| 939 | |
| 940 | # |
| 941 | # Report the --help message. |
| 942 | # |
| 943 | if test "$ac_init_help" = "long"; then |
| 944 | # Omit some internal or obsolete options to make the list less imposing. |
| 945 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 946 | cat <<_ACEOF |
| 947 | \`configure' configures this package to adapt to many kinds of systems. |
| 948 | |
| 949 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 950 | |
| 951 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 952 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 953 | |
| 954 | Defaults for the options are specified in brackets. |
| 955 | |
| 956 | Configuration: |
| 957 | -h, --help display this help and exit |
| 958 | --help=short display options specific to this package |
| 959 | --help=recursive display the short help of all the included packages |
| 960 | -V, --version display version information and exit |
| 961 | -q, --quiet, --silent do not print \`checking...' messages |
| 962 | --cache-file=FILE cache test results in FILE [disabled] |
| 963 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 964 | -n, --no-create do not create output files |
| 965 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 966 | |
| 967 | _ACEOF |
| 968 | |
| 969 | cat <<_ACEOF |
| 970 | Installation directories: |
| 971 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 972 | [$ac_default_prefix] |
| 973 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 974 | [PREFIX] |
| 975 | |
| 976 | By default, \`make install' will install all the files in |
| 977 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 978 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 979 | for instance \`--prefix=\$HOME'. |
| 980 | |
| 981 | For better control, use the options below. |
| 982 | |
| 983 | Fine tuning of the installation directories: |
| 984 | --bindir=DIR user executables [EPREFIX/bin] |
| 985 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 986 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 987 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 988 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 989 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 990 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 991 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 992 | --includedir=DIR C header files [PREFIX/include] |
| 993 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 994 | --infodir=DIR info documentation [PREFIX/info] |
| 995 | --mandir=DIR man documentation [PREFIX/man] |
| 996 | _ACEOF |
| 997 | |
| 998 | cat <<\_ACEOF |
| 999 | |
| 1000 | Program names: |
| 1001 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1002 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1003 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1004 | |
| 1005 | System types: |
| 1006 | --build=BUILD configure for building on BUILD [guessed] |
| 1007 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1008 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1009 | _ACEOF |
| 1010 | fi |
| 1011 | |
| 1012 | if test -n "$ac_init_help"; then |
| 1013 | |
| 1014 | cat <<\_ACEOF |
| 1015 | |
| 1016 | Optional Features: |
| 1017 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1018 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1019 | --enable-maintainer-mode enable make rules and dependencies not useful |
| 1020 | (and sometimes confusing) to the casual installer |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1021 | --disable-dependency-tracking Speeds up one-time builds |
| 1022 | --enable-dependency-tracking Do not reject slow dependency extractors |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1023 | --enable-shared=PKGS build shared libraries default=yes |
| 1024 | --enable-static=PKGS build static libraries default=yes |
| 1025 | --enable-fast-install=PKGS optimize for fast installation default=yes |
| 1026 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1027 | --enable-debug turn on debug support (slows down execution) |
| 1028 | |
| 1029 | Optional Packages: |
| 1030 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1031 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1032 | --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] | 1033 | --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] | 1034 | |
| 1035 | Some influential environment variables: |
| 1036 | CC C compiler command |
| 1037 | CFLAGS C compiler flags |
| 1038 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1039 | nonstandard directory <lib dir> |
| 1040 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 1041 | headers in a nonstandard directory <include dir> |
mostang.com!davidm | 4f17bce | 2003-03-28 07:43:22 +0000 | [diff] [blame] | 1042 | CXX C++ compiler command |
| 1043 | CXXFLAGS C++ compiler flags |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1044 | CPP C preprocessor |
| 1045 | |
| 1046 | Use these variables to override the choices made by `configure' or to help |
| 1047 | it to find libraries and programs with nonstandard names/locations. |
| 1048 | |
| 1049 | _ACEOF |
| 1050 | fi |
| 1051 | |
| 1052 | if test "$ac_init_help" = "recursive"; then |
| 1053 | # If there are subdirs, report their specific --help. |
| 1054 | ac_popdir=`pwd` |
| 1055 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1056 | test -d $ac_dir || continue |
| 1057 | ac_builddir=. |
| 1058 | |
| 1059 | if test "$ac_dir" != .; then |
| 1060 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 1061 | # A "../" for each directory in $ac_dir_suffix. |
| 1062 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 1063 | else |
| 1064 | ac_dir_suffix= ac_top_builddir= |
| 1065 | fi |
| 1066 | |
| 1067 | case $srcdir in |
| 1068 | .) # No --srcdir option. We are building in place. |
| 1069 | ac_srcdir=. |
| 1070 | if test -z "$ac_top_builddir"; then |
| 1071 | ac_top_srcdir=. |
| 1072 | else |
| 1073 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 1074 | fi ;; |
| 1075 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 1076 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1077 | ac_top_srcdir=$srcdir ;; |
| 1078 | *) # Relative path. |
| 1079 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 1080 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 1081 | esac |
| 1082 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 1083 | # absolute. |
| 1084 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 1085 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
| 1086 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 1087 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 1088 | |
| 1089 | cd $ac_dir |
| 1090 | # Check for guested configure; otherwise get Cygnus style configure. |
| 1091 | if test -f $ac_srcdir/configure.gnu; then |
| 1092 | echo |
| 1093 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 1094 | elif test -f $ac_srcdir/configure; then |
| 1095 | echo |
| 1096 | $SHELL $ac_srcdir/configure --help=recursive |
| 1097 | elif test -f $ac_srcdir/configure.ac || |
| 1098 | test -f $ac_srcdir/configure.in; then |
| 1099 | echo |
| 1100 | $ac_configure --help |
| 1101 | else |
| 1102 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1103 | fi |
| 1104 | cd $ac_popdir |
| 1105 | done |
| 1106 | fi |
| 1107 | |
| 1108 | test -n "$ac_init_help" && exit 0 |
| 1109 | if $ac_init_version; then |
| 1110 | cat <<\_ACEOF |
| 1111 | |
| 1112 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 1113 | Free Software Foundation, Inc. |
| 1114 | This configure script is free software; the Free Software Foundation |
| 1115 | gives unlimited permission to copy, distribute and modify it. |
| 1116 | _ACEOF |
| 1117 | exit 0 |
| 1118 | fi |
| 1119 | exec 5>config.log |
| 1120 | cat >&5 <<_ACEOF |
| 1121 | This file contains any messages produced by compilers while |
| 1122 | running configure, to aid debugging if configure makes a mistake. |
| 1123 | |
| 1124 | It was created by $as_me, which was |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 1125 | generated by GNU Autoconf 2.57. Invocation command line was |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1126 | |
| 1127 | $ $0 $@ |
| 1128 | |
| 1129 | _ACEOF |
| 1130 | { |
| 1131 | cat <<_ASUNAME |
| 1132 | ## --------- ## |
| 1133 | ## Platform. ## |
| 1134 | ## --------- ## |
| 1135 | |
| 1136 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1137 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1138 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1139 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1140 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1141 | |
| 1142 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1143 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1144 | |
| 1145 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1146 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1147 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1148 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1149 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1150 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1151 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1152 | |
| 1153 | _ASUNAME |
| 1154 | |
| 1155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1156 | for as_dir in $PATH |
| 1157 | do |
| 1158 | IFS=$as_save_IFS |
| 1159 | test -z "$as_dir" && as_dir=. |
| 1160 | echo "PATH: $as_dir" |
| 1161 | done |
| 1162 | |
| 1163 | } >&5 |
| 1164 | |
| 1165 | cat >&5 <<_ACEOF |
| 1166 | |
| 1167 | |
| 1168 | ## ----------- ## |
| 1169 | ## Core tests. ## |
| 1170 | ## ----------- ## |
| 1171 | |
| 1172 | _ACEOF |
| 1173 | |
| 1174 | |
| 1175 | # Keep a trace of the command line. |
| 1176 | # Strip out --no-create and --no-recursion so they do not pile up. |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 1177 | # Strip out --silent because we don't want to record it for future runs. |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1178 | # Also quote any args containing shell meta-characters. |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 1179 | # Make two passes to allow for proper duplicate-argument suppression. |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1180 | ac_configure_args= |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 1181 | ac_configure_args0= |
| 1182 | ac_configure_args1= |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1183 | ac_sep= |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 1184 | ac_must_keep_next=false |
| 1185 | for ac_pass in 1 2 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1186 | do |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 1187 | for ac_arg |
| 1188 | do |
| 1189 | case $ac_arg in |
| 1190 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1191 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1192 | | -silent | --silent | --silen | --sile | --sil) |
| 1193 | continue ;; |
| 1194 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1195 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1196 | esac |
| 1197 | case $ac_pass in |
| 1198 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1199 | 2) |
| 1200 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1201 | if test $ac_must_keep_next = true; then |
| 1202 | ac_must_keep_next=false # Got value, back to normal. |
| 1203 | else |
| 1204 | case $ac_arg in |
| 1205 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1206 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1207 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1208 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1209 | case "$ac_configure_args0 " in |
| 1210 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1211 | esac |
| 1212 | ;; |
| 1213 | -* ) ac_must_keep_next=true ;; |
| 1214 | esac |
| 1215 | fi |
| 1216 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1217 | # Get rid of the leading space. |
| 1218 | ac_sep=" " |
| 1219 | ;; |
| 1220 | esac |
| 1221 | done |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1222 | done |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 1223 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1224 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1225 | |
| 1226 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1227 | # config.log. We remove comments because anyway the quotes in there |
| 1228 | # would cause problems or look ugly. |
| 1229 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1230 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1231 | trap 'exit_status=$? |
| 1232 | # Save into config.log some information that might help in debugging. |
| 1233 | { |
| 1234 | echo |
| 1235 | |
| 1236 | cat <<\_ASBOX |
| 1237 | ## ---------------- ## |
| 1238 | ## Cache variables. ## |
| 1239 | ## ---------------- ## |
| 1240 | _ASBOX |
| 1241 | echo |
| 1242 | # The following way of writing the cache mishandles newlines in values, |
| 1243 | { |
| 1244 | (set) 2>&1 | |
| 1245 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1246 | *ac_space=\ *) |
| 1247 | sed -n \ |
| 1248 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1249 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1250 | ;; |
| 1251 | *) |
| 1252 | sed -n \ |
| 1253 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1254 | ;; |
| 1255 | esac; |
| 1256 | } |
| 1257 | echo |
| 1258 | |
| 1259 | cat <<\_ASBOX |
| 1260 | ## ----------------- ## |
| 1261 | ## Output variables. ## |
| 1262 | ## ----------------- ## |
| 1263 | _ASBOX |
| 1264 | echo |
| 1265 | for ac_var in $ac_subst_vars |
| 1266 | do |
| 1267 | eval ac_val=$`echo $ac_var` |
| 1268 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1269 | done | sort |
| 1270 | echo |
| 1271 | |
| 1272 | if test -n "$ac_subst_files"; then |
| 1273 | cat <<\_ASBOX |
| 1274 | ## ------------- ## |
| 1275 | ## Output files. ## |
| 1276 | ## ------------- ## |
| 1277 | _ASBOX |
| 1278 | echo |
| 1279 | for ac_var in $ac_subst_files |
| 1280 | do |
| 1281 | eval ac_val=$`echo $ac_var` |
| 1282 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1283 | done | sort |
| 1284 | echo |
| 1285 | fi |
| 1286 | |
| 1287 | if test -s confdefs.h; then |
| 1288 | cat <<\_ASBOX |
| 1289 | ## ----------- ## |
| 1290 | ## confdefs.h. ## |
| 1291 | ## ----------- ## |
| 1292 | _ASBOX |
| 1293 | echo |
| 1294 | sed "/^$/d" confdefs.h | sort |
| 1295 | echo |
| 1296 | fi |
| 1297 | test "$ac_signal" != 0 && |
| 1298 | echo "$as_me: caught signal $ac_signal" |
| 1299 | echo "$as_me: exit $exit_status" |
| 1300 | } >&5 |
| 1301 | rm -f core core.* *.core && |
| 1302 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1303 | exit $exit_status |
| 1304 | ' 0 |
| 1305 | for ac_signal in 1 2 13 15; do |
| 1306 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1307 | done |
| 1308 | ac_signal=0 |
| 1309 | |
| 1310 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1311 | rm -rf conftest* confdefs.h |
| 1312 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1313 | echo >confdefs.h |
| 1314 | |
| 1315 | # Predefined preprocessor variables. |
| 1316 | |
| 1317 | cat >>confdefs.h <<_ACEOF |
| 1318 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1319 | _ACEOF |
| 1320 | |
| 1321 | |
| 1322 | cat >>confdefs.h <<_ACEOF |
| 1323 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1324 | _ACEOF |
| 1325 | |
| 1326 | |
| 1327 | cat >>confdefs.h <<_ACEOF |
| 1328 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1329 | _ACEOF |
| 1330 | |
| 1331 | |
| 1332 | cat >>confdefs.h <<_ACEOF |
| 1333 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1334 | _ACEOF |
| 1335 | |
| 1336 | |
| 1337 | cat >>confdefs.h <<_ACEOF |
| 1338 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1339 | _ACEOF |
| 1340 | |
| 1341 | |
| 1342 | # Let the site file select an alternate cache file if it wants to. |
| 1343 | # Prefer explicitly selected file to automatically selected ones. |
| 1344 | if test -z "$CONFIG_SITE"; then |
| 1345 | if test "x$prefix" != xNONE; then |
| 1346 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1347 | else |
| 1348 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1349 | fi |
| 1350 | fi |
| 1351 | for ac_site_file in $CONFIG_SITE; do |
| 1352 | if test -r "$ac_site_file"; then |
| 1353 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1354 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1355 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1356 | . "$ac_site_file" |
| 1357 | fi |
| 1358 | done |
| 1359 | |
| 1360 | if test -r "$cache_file"; then |
| 1361 | # Some versions of bash will fail to source /dev/null (special |
| 1362 | # files actually), so we avoid doing that. |
| 1363 | if test -f "$cache_file"; then |
| 1364 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1365 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1366 | case $cache_file in |
| 1367 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1368 | *) . ./$cache_file;; |
| 1369 | esac |
| 1370 | fi |
| 1371 | else |
| 1372 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1373 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1374 | >$cache_file |
| 1375 | fi |
| 1376 | |
| 1377 | # Check that the precious variables saved in the cache have kept the same |
| 1378 | # value. |
| 1379 | ac_cache_corrupted=false |
| 1380 | for ac_var in `(set) 2>&1 | |
| 1381 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1382 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1383 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1384 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1385 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1386 | case $ac_old_set,$ac_new_set in |
| 1387 | set,) |
| 1388 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1389 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1390 | ac_cache_corrupted=: ;; |
| 1391 | ,set) |
| 1392 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1393 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1394 | ac_cache_corrupted=: ;; |
| 1395 | ,);; |
| 1396 | *) |
| 1397 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1398 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1399 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1400 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1401 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1402 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1403 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1404 | ac_cache_corrupted=: |
| 1405 | fi;; |
| 1406 | esac |
| 1407 | # Pass precious variables to config.status. |
| 1408 | if test "$ac_new_set" = set; then |
| 1409 | case $ac_new_val in |
| 1410 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1411 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1412 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1413 | esac |
| 1414 | case " $ac_configure_args " in |
| 1415 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1416 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1417 | esac |
| 1418 | fi |
| 1419 | done |
| 1420 | if $ac_cache_corrupted; then |
| 1421 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1422 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1423 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1424 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1425 | { (exit 1); exit 1; }; } |
| 1426 | fi |
| 1427 | |
| 1428 | ac_ext=c |
| 1429 | ac_cpp='$CPP $CPPFLAGS' |
| 1430 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1431 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1432 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1433 | |
| 1434 | |
| 1435 | |
| 1436 | |
| 1437 | |
| 1438 | |
| 1439 | |
| 1440 | |
| 1441 | |
| 1442 | |
| 1443 | |
| 1444 | |
| 1445 | |
| 1446 | |
| 1447 | |
| 1448 | |
| 1449 | |
| 1450 | |
| 1451 | |
| 1452 | ac_aux_dir= |
| 1453 | for ac_dir in aux $srcdir/aux; do |
| 1454 | if test -f $ac_dir/install-sh; then |
| 1455 | ac_aux_dir=$ac_dir |
| 1456 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1457 | break |
| 1458 | elif test -f $ac_dir/install.sh; then |
| 1459 | ac_aux_dir=$ac_dir |
| 1460 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1461 | break |
| 1462 | elif test -f $ac_dir/shtool; then |
| 1463 | ac_aux_dir=$ac_dir |
| 1464 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1465 | break |
| 1466 | fi |
| 1467 | done |
| 1468 | if test -z "$ac_aux_dir"; then |
| 1469 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&5 |
| 1470 | echo "$as_me: error: cannot find install-sh or install.sh in aux $srcdir/aux" >&2;} |
| 1471 | { (exit 1); exit 1; }; } |
| 1472 | fi |
| 1473 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1474 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1475 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1476 | |
| 1477 | # Make sure we can run config.sub. |
| 1478 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 1479 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 1480 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1481 | { (exit 1); exit 1; }; } |
| 1482 | |
| 1483 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 1484 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1485 | if test "${ac_cv_build+set}" = set; then |
| 1486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1487 | else |
| 1488 | ac_cv_build_alias=$build_alias |
| 1489 | test -z "$ac_cv_build_alias" && |
| 1490 | ac_cv_build_alias=`$ac_config_guess` |
| 1491 | test -z "$ac_cv_build_alias" && |
| 1492 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1493 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1494 | { (exit 1); exit 1; }; } |
| 1495 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1496 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1497 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 1498 | { (exit 1); exit 1; }; } |
| 1499 | |
| 1500 | fi |
| 1501 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1502 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1503 | build=$ac_cv_build |
| 1504 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1505 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1506 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1507 | |
| 1508 | |
| 1509 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 1510 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1511 | if test "${ac_cv_host+set}" = set; then |
| 1512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1513 | else |
| 1514 | ac_cv_host_alias=$host_alias |
| 1515 | test -z "$ac_cv_host_alias" && |
| 1516 | ac_cv_host_alias=$ac_cv_build_alias |
| 1517 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 1518 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 1519 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1520 | { (exit 1); exit 1; }; } |
| 1521 | |
| 1522 | fi |
| 1523 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1524 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1525 | host=$ac_cv_host |
| 1526 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1527 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1528 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1529 | |
| 1530 | |
| 1531 | echo "$as_me:$LINENO: checking target system type" >&5 |
| 1532 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
| 1533 | if test "${ac_cv_target+set}" = set; then |
| 1534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1535 | else |
| 1536 | ac_cv_target_alias=$target_alias |
| 1537 | test "x$ac_cv_target_alias" = "x" && |
| 1538 | ac_cv_target_alias=$ac_cv_host_alias |
| 1539 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
| 1540 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
| 1541 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
| 1542 | { (exit 1); exit 1; }; } |
| 1543 | |
| 1544 | fi |
| 1545 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 1546 | echo "${ECHO_T}$ac_cv_target" >&6 |
| 1547 | target=$ac_cv_target |
| 1548 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1549 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1550 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1551 | |
| 1552 | |
| 1553 | # The aliases save the names the user supplied, while $host etc. |
| 1554 | # will get canonicalized. |
| 1555 | test -n "$target_alias" && |
| 1556 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 1557 | NONENONEs,x,x, && |
| 1558 | program_prefix=${target_alias}- |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1559 | am__api_version="1.6" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1560 | # Find a good install program. We prefer a C program (faster), |
| 1561 | # so one script is as good as another. But avoid the broken or |
| 1562 | # incompatible versions: |
| 1563 | # SysV /etc/install, /usr/sbin/install |
| 1564 | # SunOS /usr/etc/install |
| 1565 | # IRIX /sbin/install |
| 1566 | # AIX /bin/install |
| 1567 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 1568 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1569 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1570 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1571 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1572 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 1573 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 1574 | if test -z "$INSTALL"; then |
| 1575 | if test "${ac_cv_path_install+set}" = set; then |
| 1576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1577 | else |
| 1578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1579 | for as_dir in $PATH |
| 1580 | do |
| 1581 | IFS=$as_save_IFS |
| 1582 | test -z "$as_dir" && as_dir=. |
| 1583 | # Account for people who put trailing slashes in PATH elements. |
| 1584 | case $as_dir/ in |
| 1585 | ./ | .// | /cC/* | \ |
| 1586 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 1587 | /usr/ucb/* ) ;; |
| 1588 | *) |
| 1589 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1590 | # Don't use installbsd from OSF since it installs stuff as root |
| 1591 | # by default. |
| 1592 | for ac_prog in ginstall scoinst install; do |
| 1593 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1594 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 1595 | if test $ac_prog = install && |
| 1596 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1597 | # AIX install. It has an incompatible calling convention. |
| 1598 | : |
| 1599 | elif test $ac_prog = install && |
| 1600 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1601 | # program-specific install script used by HP pwplus--don't use. |
| 1602 | : |
| 1603 | else |
| 1604 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 1605 | break 3 |
| 1606 | fi |
| 1607 | fi |
| 1608 | done |
| 1609 | done |
| 1610 | ;; |
| 1611 | esac |
| 1612 | done |
| 1613 | |
| 1614 | |
| 1615 | fi |
| 1616 | if test "${ac_cv_path_install+set}" = set; then |
| 1617 | INSTALL=$ac_cv_path_install |
| 1618 | else |
| 1619 | # As a last resort, use the slow shell script. We don't cache a |
| 1620 | # path for INSTALL within a source directory, because that will |
| 1621 | # break other packages using the cache if that directory is |
| 1622 | # removed, or if the path is relative. |
| 1623 | INSTALL=$ac_install_sh |
| 1624 | fi |
| 1625 | fi |
| 1626 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 1627 | echo "${ECHO_T}$INSTALL" >&6 |
| 1628 | |
| 1629 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1630 | # It thinks the first close brace ends the variable substitution. |
| 1631 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1632 | |
| 1633 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 1634 | |
| 1635 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1636 | |
| 1637 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
| 1638 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
| 1639 | # Just in case |
| 1640 | sleep 1 |
| 1641 | echo timestamp > conftest.file |
| 1642 | # Do `set' in a subshell so we don't clobber the current shell's |
| 1643 | # arguments. Must try -L first in case configure is actually a |
| 1644 | # symlink; some systems play weird games with the mod time of symlinks |
| 1645 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 1646 | # directory). |
| 1647 | if ( |
| 1648 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
| 1649 | if test "$*" = "X"; then |
| 1650 | # -L didn't work. |
| 1651 | set X `ls -t $srcdir/configure conftest.file` |
| 1652 | fi |
| 1653 | rm -f conftest.file |
| 1654 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 1655 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 1656 | |
| 1657 | # If neither matched, then we have a broken ls. This can happen |
| 1658 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 1659 | # broken ls alias from the environment. This has actually |
| 1660 | # happened. Such a system could not be considered "sane". |
| 1661 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
| 1662 | alias in your environment" >&5 |
| 1663 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 1664 | alias in your environment" >&2;} |
| 1665 | { (exit 1); exit 1; }; } |
| 1666 | fi |
| 1667 | |
| 1668 | test "$2" = conftest.file |
| 1669 | ) |
| 1670 | then |
| 1671 | # Ok. |
| 1672 | : |
| 1673 | else |
| 1674 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
| 1675 | Check your system clock" >&5 |
| 1676 | echo "$as_me: error: newly created file is older than distributed files! |
| 1677 | Check your system clock" >&2;} |
| 1678 | { (exit 1); exit 1; }; } |
| 1679 | fi |
| 1680 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1681 | echo "${ECHO_T}yes" >&6 |
| 1682 | test "$program_prefix" != NONE && |
| 1683 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
| 1684 | # Use a double $ so make ignores it. |
| 1685 | test "$program_suffix" != NONE && |
| 1686 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
| 1687 | # Double any \ or $. echo might interpret backslashes. |
| 1688 | # By default was `s,x,x', remove it if useless. |
| 1689 | cat <<\_ACEOF >conftest.sed |
| 1690 | s/[\\$]/&&/g;s/;s,x,x,$// |
| 1691 | _ACEOF |
| 1692 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
| 1693 | rm conftest.sed |
| 1694 | |
| 1695 | |
| 1696 | # expand $ac_aux_dir to an absolute path |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1697 | am_aux_dir=`cd $ac_aux_dir && pwd` |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1698 | |
| 1699 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 1700 | # Use eval to expand $SHELL |
| 1701 | if eval "$MISSING --run true"; then |
| 1702 | am_missing_run="$MISSING --run " |
| 1703 | else |
| 1704 | am_missing_run= |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1705 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
| 1706 | 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] | 1707 | fi |
| 1708 | |
| 1709 | for ac_prog in gawk mawk nawk awk |
| 1710 | do |
| 1711 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1712 | set dummy $ac_prog; ac_word=$2 |
| 1713 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1714 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1715 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 1716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1717 | else |
| 1718 | if test -n "$AWK"; then |
| 1719 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 1720 | else |
| 1721 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1722 | for as_dir in $PATH |
| 1723 | do |
| 1724 | IFS=$as_save_IFS |
| 1725 | test -z "$as_dir" && as_dir=. |
| 1726 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1727 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1728 | ac_cv_prog_AWK="$ac_prog" |
| 1729 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1730 | break 2 |
| 1731 | fi |
| 1732 | done |
| 1733 | done |
| 1734 | |
| 1735 | fi |
| 1736 | fi |
| 1737 | AWK=$ac_cv_prog_AWK |
| 1738 | if test -n "$AWK"; then |
| 1739 | echo "$as_me:$LINENO: result: $AWK" >&5 |
| 1740 | echo "${ECHO_T}$AWK" >&6 |
| 1741 | else |
| 1742 | echo "$as_me:$LINENO: result: no" >&5 |
| 1743 | echo "${ECHO_T}no" >&6 |
| 1744 | fi |
| 1745 | |
| 1746 | test -n "$AWK" && break |
| 1747 | done |
| 1748 | |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 1749 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 1750 | 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] | 1751 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
| 1752 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 1753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1754 | else |
| 1755 | cat >conftest.make <<\_ACEOF |
| 1756 | all: |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 1757 | @echo 'ac_maketemp="$(MAKE)"' |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1758 | _ACEOF |
| 1759 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 1760 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 1761 | if test -n "$ac_maketemp"; then |
| 1762 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1763 | else |
| 1764 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1765 | fi |
| 1766 | rm -f conftest.make |
| 1767 | fi |
| 1768 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 1769 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1770 | echo "${ECHO_T}yes" >&6 |
| 1771 | SET_MAKE= |
| 1772 | else |
| 1773 | echo "$as_me:$LINENO: result: no" >&5 |
| 1774 | echo "${ECHO_T}no" >&6 |
| 1775 | SET_MAKE="MAKE=${MAKE-make}" |
| 1776 | fi |
| 1777 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1778 | # test to see if srcdir already configured |
| 1779 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1780 | test -f $srcdir/config.status; then |
| 1781 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 1782 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 1783 | { (exit 1); exit 1; }; } |
| 1784 | fi |
| 1785 | |
| 1786 | # Define the identity of the package. |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1787 | PACKAGE=libunwind |
mostang.com!davidm | c784d06 | 2003-04-24 20:45:07 +0000 | [diff] [blame] | 1788 | VERSION=0.93 |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1789 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1790 | |
| 1791 | cat >>confdefs.h <<_ACEOF |
| 1792 | #define PACKAGE "$PACKAGE" |
| 1793 | _ACEOF |
| 1794 | |
| 1795 | |
| 1796 | cat >>confdefs.h <<_ACEOF |
| 1797 | #define VERSION "$VERSION" |
| 1798 | _ACEOF |
| 1799 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1800 | # Some tools Automake needs. |
| 1801 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1802 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1803 | |
| 1804 | |
| 1805 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 1806 | |
| 1807 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1808 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1809 | |
| 1810 | |
| 1811 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 1812 | |
| 1813 | |
| 1814 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 1815 | |
| 1816 | |
| 1817 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 1818 | |
| 1819 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
| 1820 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1821 | # Installed binaries are usually stripped using `strip' when the user |
| 1822 | # run `make install-strip'. However `strip' might not be the right |
| 1823 | # tool to use in cross-compilation environments, therefore Automake |
| 1824 | # will honor the `STRIP' environment variable to overrule this program. |
| 1825 | if test "$cross_compiling" != no; then |
| 1826 | if test -n "$ac_tool_prefix"; then |
| 1827 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 1828 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 1829 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1830 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1831 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 1832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1833 | else |
| 1834 | if test -n "$STRIP"; then |
| 1835 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 1836 | else |
| 1837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1838 | for as_dir in $PATH |
| 1839 | do |
| 1840 | IFS=$as_save_IFS |
| 1841 | test -z "$as_dir" && as_dir=. |
| 1842 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1843 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1844 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 1845 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1846 | break 2 |
| 1847 | fi |
| 1848 | done |
| 1849 | done |
| 1850 | |
| 1851 | fi |
| 1852 | fi |
| 1853 | STRIP=$ac_cv_prog_STRIP |
| 1854 | if test -n "$STRIP"; then |
| 1855 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 1856 | echo "${ECHO_T}$STRIP" >&6 |
| 1857 | else |
| 1858 | echo "$as_me:$LINENO: result: no" >&5 |
| 1859 | echo "${ECHO_T}no" >&6 |
| 1860 | fi |
| 1861 | |
| 1862 | fi |
| 1863 | if test -z "$ac_cv_prog_STRIP"; then |
| 1864 | ac_ct_STRIP=$STRIP |
| 1865 | # Extract the first word of "strip", so it can be a program name with args. |
| 1866 | set dummy strip; ac_word=$2 |
| 1867 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1868 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1869 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 1870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1871 | else |
| 1872 | if test -n "$ac_ct_STRIP"; then |
| 1873 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 1874 | else |
| 1875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1876 | for as_dir in $PATH |
| 1877 | do |
| 1878 | IFS=$as_save_IFS |
| 1879 | test -z "$as_dir" && as_dir=. |
| 1880 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1881 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1882 | ac_cv_prog_ac_ct_STRIP="strip" |
| 1883 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1884 | break 2 |
| 1885 | fi |
| 1886 | done |
| 1887 | done |
| 1888 | |
| 1889 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 1890 | fi |
| 1891 | fi |
| 1892 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 1893 | if test -n "$ac_ct_STRIP"; then |
| 1894 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 1895 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 1896 | else |
| 1897 | echo "$as_me:$LINENO: result: no" >&5 |
| 1898 | echo "${ECHO_T}no" >&6 |
| 1899 | fi |
| 1900 | |
| 1901 | STRIP=$ac_ct_STRIP |
| 1902 | else |
| 1903 | STRIP="$ac_cv_prog_STRIP" |
| 1904 | fi |
| 1905 | |
| 1906 | fi |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1907 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
| 1908 | |
| 1909 | # We need awk for the "check" target. The system "awk" is bad on |
| 1910 | # some platforms. |
| 1911 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1912 | |
| 1913 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1914 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 1915 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
| 1916 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
| 1917 | if test "${enable_maintainer_mode+set}" = set; then |
| 1918 | enableval="$enable_maintainer_mode" |
| 1919 | USE_MAINTAINER_MODE=$enableval |
| 1920 | else |
| 1921 | USE_MAINTAINER_MODE=no |
| 1922 | fi; |
| 1923 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
| 1924 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 |
| 1925 | |
| 1926 | |
| 1927 | if test $USE_MAINTAINER_MODE = yes; then |
| 1928 | MAINTAINER_MODE_TRUE= |
| 1929 | MAINTAINER_MODE_FALSE='#' |
| 1930 | else |
| 1931 | MAINTAINER_MODE_TRUE='#' |
| 1932 | MAINTAINER_MODE_FALSE= |
| 1933 | fi |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1934 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1935 | MAINT=$MAINTAINER_MODE_TRUE |
| 1936 | |
| 1937 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 1938 | # Add the stamp file to the list of files AC keeps track of, |
| 1939 | # along with our hook. |
| 1940 | ac_config_headers="$ac_config_headers include/config.h" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1941 | |
| 1942 | |
| 1943 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 1944 | |
| 1945 | ac_ext=c |
| 1946 | ac_cpp='$CPP $CPPFLAGS' |
| 1947 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1948 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1949 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1950 | if test -n "$ac_tool_prefix"; then |
| 1951 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1952 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1953 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1954 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1955 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1957 | else |
| 1958 | if test -n "$CC"; then |
| 1959 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1960 | else |
| 1961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1962 | for as_dir in $PATH |
| 1963 | do |
| 1964 | IFS=$as_save_IFS |
| 1965 | test -z "$as_dir" && as_dir=. |
| 1966 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1967 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1968 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1969 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1970 | break 2 |
| 1971 | fi |
| 1972 | done |
| 1973 | done |
| 1974 | |
| 1975 | fi |
| 1976 | fi |
| 1977 | CC=$ac_cv_prog_CC |
| 1978 | if test -n "$CC"; then |
| 1979 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1980 | echo "${ECHO_T}$CC" >&6 |
| 1981 | else |
| 1982 | echo "$as_me:$LINENO: result: no" >&5 |
| 1983 | echo "${ECHO_T}no" >&6 |
| 1984 | fi |
| 1985 | |
| 1986 | fi |
| 1987 | if test -z "$ac_cv_prog_CC"; then |
| 1988 | ac_ct_CC=$CC |
| 1989 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1990 | set dummy gcc; ac_word=$2 |
| 1991 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1992 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1993 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1995 | else |
| 1996 | if test -n "$ac_ct_CC"; then |
| 1997 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1998 | else |
| 1999 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2000 | for as_dir in $PATH |
| 2001 | do |
| 2002 | IFS=$as_save_IFS |
| 2003 | test -z "$as_dir" && as_dir=. |
| 2004 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2005 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2006 | ac_cv_prog_ac_ct_CC="gcc" |
| 2007 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2008 | break 2 |
| 2009 | fi |
| 2010 | done |
| 2011 | done |
| 2012 | |
| 2013 | fi |
| 2014 | fi |
| 2015 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2016 | if test -n "$ac_ct_CC"; then |
| 2017 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2018 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2019 | else |
| 2020 | echo "$as_me:$LINENO: result: no" >&5 |
| 2021 | echo "${ECHO_T}no" >&6 |
| 2022 | fi |
| 2023 | |
| 2024 | CC=$ac_ct_CC |
| 2025 | else |
| 2026 | CC="$ac_cv_prog_CC" |
| 2027 | fi |
| 2028 | |
| 2029 | if test -z "$CC"; then |
| 2030 | if test -n "$ac_tool_prefix"; then |
| 2031 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 2032 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 2033 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2034 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2035 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2037 | else |
| 2038 | if test -n "$CC"; then |
| 2039 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2040 | else |
| 2041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2042 | for as_dir in $PATH |
| 2043 | do |
| 2044 | IFS=$as_save_IFS |
| 2045 | test -z "$as_dir" && as_dir=. |
| 2046 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2047 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2048 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2049 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2050 | break 2 |
| 2051 | fi |
| 2052 | done |
| 2053 | done |
| 2054 | |
| 2055 | fi |
| 2056 | fi |
| 2057 | CC=$ac_cv_prog_CC |
| 2058 | if test -n "$CC"; then |
| 2059 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2060 | echo "${ECHO_T}$CC" >&6 |
| 2061 | else |
| 2062 | echo "$as_me:$LINENO: result: no" >&5 |
| 2063 | echo "${ECHO_T}no" >&6 |
| 2064 | fi |
| 2065 | |
| 2066 | fi |
| 2067 | if test -z "$ac_cv_prog_CC"; then |
| 2068 | ac_ct_CC=$CC |
| 2069 | # Extract the first word of "cc", so it can be a program name with args. |
| 2070 | set dummy cc; ac_word=$2 |
| 2071 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2072 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2073 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2075 | else |
| 2076 | if test -n "$ac_ct_CC"; then |
| 2077 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2078 | else |
| 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 | ac_cv_prog_ac_ct_CC="cc" |
| 2087 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2088 | break 2 |
| 2089 | fi |
| 2090 | done |
| 2091 | done |
| 2092 | |
| 2093 | fi |
| 2094 | fi |
| 2095 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2096 | if test -n "$ac_ct_CC"; then |
| 2097 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2098 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2099 | else |
| 2100 | echo "$as_me:$LINENO: result: no" >&5 |
| 2101 | echo "${ECHO_T}no" >&6 |
| 2102 | fi |
| 2103 | |
| 2104 | CC=$ac_ct_CC |
| 2105 | else |
| 2106 | CC="$ac_cv_prog_CC" |
| 2107 | fi |
| 2108 | |
| 2109 | fi |
| 2110 | if test -z "$CC"; then |
| 2111 | # Extract the first word of "cc", so it can be a program name with args. |
| 2112 | set dummy cc; ac_word=$2 |
| 2113 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2114 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2115 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2117 | else |
| 2118 | if test -n "$CC"; then |
| 2119 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2120 | else |
| 2121 | ac_prog_rejected=no |
| 2122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2123 | for as_dir in $PATH |
| 2124 | do |
| 2125 | IFS=$as_save_IFS |
| 2126 | test -z "$as_dir" && as_dir=. |
| 2127 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2128 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2129 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2130 | ac_prog_rejected=yes |
| 2131 | continue |
| 2132 | fi |
| 2133 | ac_cv_prog_CC="cc" |
| 2134 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2135 | break 2 |
| 2136 | fi |
| 2137 | done |
| 2138 | done |
| 2139 | |
| 2140 | if test $ac_prog_rejected = yes; then |
| 2141 | # We found a bogon in the path, so make sure we never use it. |
| 2142 | set dummy $ac_cv_prog_CC |
| 2143 | shift |
| 2144 | if test $# != 0; then |
| 2145 | # We chose a different compiler from the bogus one. |
| 2146 | # However, it has the same basename, so the bogon will be chosen |
| 2147 | # first if we set CC to just the basename; use the full file name. |
| 2148 | shift |
| 2149 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2150 | fi |
| 2151 | fi |
| 2152 | fi |
| 2153 | fi |
| 2154 | CC=$ac_cv_prog_CC |
| 2155 | if test -n "$CC"; then |
| 2156 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2157 | echo "${ECHO_T}$CC" >&6 |
| 2158 | else |
| 2159 | echo "$as_me:$LINENO: result: no" >&5 |
| 2160 | echo "${ECHO_T}no" >&6 |
| 2161 | fi |
| 2162 | |
| 2163 | fi |
| 2164 | if test -z "$CC"; then |
| 2165 | if test -n "$ac_tool_prefix"; then |
| 2166 | for ac_prog in cl |
| 2167 | do |
| 2168 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2169 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2170 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2171 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2172 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2174 | else |
| 2175 | if test -n "$CC"; then |
| 2176 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2177 | else |
| 2178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2179 | for as_dir in $PATH |
| 2180 | do |
| 2181 | IFS=$as_save_IFS |
| 2182 | test -z "$as_dir" && as_dir=. |
| 2183 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2184 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2185 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2186 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2187 | break 2 |
| 2188 | fi |
| 2189 | done |
| 2190 | done |
| 2191 | |
| 2192 | fi |
| 2193 | fi |
| 2194 | CC=$ac_cv_prog_CC |
| 2195 | if test -n "$CC"; then |
| 2196 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2197 | echo "${ECHO_T}$CC" >&6 |
| 2198 | else |
| 2199 | echo "$as_me:$LINENO: result: no" >&5 |
| 2200 | echo "${ECHO_T}no" >&6 |
| 2201 | fi |
| 2202 | |
| 2203 | test -n "$CC" && break |
| 2204 | done |
| 2205 | fi |
| 2206 | if test -z "$CC"; then |
| 2207 | ac_ct_CC=$CC |
| 2208 | for ac_prog in cl |
| 2209 | do |
| 2210 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2211 | set dummy $ac_prog; ac_word=$2 |
| 2212 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2213 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2214 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2216 | else |
| 2217 | if test -n "$ac_ct_CC"; then |
| 2218 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2219 | else |
| 2220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2221 | for as_dir in $PATH |
| 2222 | do |
| 2223 | IFS=$as_save_IFS |
| 2224 | test -z "$as_dir" && as_dir=. |
| 2225 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2226 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2227 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2228 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2229 | break 2 |
| 2230 | fi |
| 2231 | done |
| 2232 | done |
| 2233 | |
| 2234 | fi |
| 2235 | fi |
| 2236 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2237 | if test -n "$ac_ct_CC"; then |
| 2238 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2239 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2240 | else |
| 2241 | echo "$as_me:$LINENO: result: no" >&5 |
| 2242 | echo "${ECHO_T}no" >&6 |
| 2243 | fi |
| 2244 | |
| 2245 | test -n "$ac_ct_CC" && break |
| 2246 | done |
| 2247 | |
| 2248 | CC=$ac_ct_CC |
| 2249 | fi |
| 2250 | |
| 2251 | fi |
| 2252 | |
| 2253 | |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 2254 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2255 | See \`config.log' for more details." >&5 |
| 2256 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2257 | See \`config.log' for more details." >&2;} |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2258 | { (exit 1); exit 1; }; } |
| 2259 | |
| 2260 | # Provide some information about the compiler. |
| 2261 | echo "$as_me:$LINENO:" \ |
| 2262 | "checking for C compiler version" >&5 |
| 2263 | ac_compiler=`set X $ac_compile; echo $2` |
| 2264 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2265 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2266 | ac_status=$? |
| 2267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2268 | (exit $ac_status); } |
| 2269 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2270 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2271 | ac_status=$? |
| 2272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2273 | (exit $ac_status); } |
| 2274 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2275 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2276 | ac_status=$? |
| 2277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2278 | (exit $ac_status); } |
| 2279 | |
| 2280 | cat >conftest.$ac_ext <<_ACEOF |
| 2281 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 2282 | /* confdefs.h. */ |
| 2283 | _ACEOF |
| 2284 | cat confdefs.h >>conftest.$ac_ext |
| 2285 | cat >>conftest.$ac_ext <<_ACEOF |
| 2286 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2287 | |
| 2288 | int |
| 2289 | main () |
| 2290 | { |
| 2291 | |
| 2292 | ; |
| 2293 | return 0; |
| 2294 | } |
| 2295 | _ACEOF |
| 2296 | ac_clean_files_save=$ac_clean_files |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 2297 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2298 | # Try to create an executable without -o first, disregard a.out. |
| 2299 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2300 | # of exeext. |
| 2301 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 2302 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 2303 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2304 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2305 | (eval $ac_link_default) 2>&5 |
| 2306 | ac_status=$? |
| 2307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2308 | (exit $ac_status); }; then |
| 2309 | # Find the output, starting from the most likely. This scheme is |
| 2310 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2311 | # resort. |
| 2312 | |
| 2313 | # Be careful to initialize this variable, since it used to be cached. |
| 2314 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2315 | ac_cv_exeext= |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 2316 | # b.out is created by i960 compilers. |
| 2317 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2318 | do |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2319 | test -f "$ac_file" || continue |
| 2320 | case $ac_file in |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 2321 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 2322 | ;; |
| 2323 | conftest.$ac_ext ) |
| 2324 | # This is the source file. |
| 2325 | ;; |
| 2326 | [ab].out ) |
| 2327 | # We found the default executable, but exeext='' is most |
| 2328 | # certainly right. |
| 2329 | break;; |
| 2330 | *.* ) |
| 2331 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2332 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2333 | # but it would be cool to find out if it's true. Does anybody |
| 2334 | # maintain Libtool? --akim. |
| 2335 | export ac_cv_exeext |
| 2336 | break;; |
| 2337 | * ) |
| 2338 | break;; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2339 | esac |
| 2340 | done |
| 2341 | else |
| 2342 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 2343 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2344 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2345 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 2346 | See \`config.log' for more details." >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2347 | echo "$as_me: error: C compiler cannot create executables |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 2348 | See \`config.log' for more details." >&2;} |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2349 | { (exit 77); exit 77; }; } |
| 2350 | fi |
| 2351 | |
| 2352 | ac_exeext=$ac_cv_exeext |
| 2353 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2354 | echo "${ECHO_T}$ac_file" >&6 |
| 2355 | |
| 2356 | # Check the compiler produces executables we can run. If not, either |
| 2357 | # the compiler is broken, or we cross compile. |
| 2358 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2359 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2360 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2361 | # If not cross compiling, check that we can run a simple program. |
| 2362 | if test "$cross_compiling" != yes; then |
| 2363 | if { ac_try='./$ac_file' |
| 2364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2365 | (eval $ac_try) 2>&5 |
| 2366 | ac_status=$? |
| 2367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2368 | (exit $ac_status); }; }; then |
| 2369 | cross_compiling=no |
| 2370 | else |
| 2371 | if test "$cross_compiling" = maybe; then |
| 2372 | cross_compiling=yes |
| 2373 | else |
| 2374 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 2375 | If you meant to cross compile, use \`--host'. |
| 2376 | See \`config.log' for more details." >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2377 | echo "$as_me: error: cannot run C compiled programs. |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 2378 | If you meant to cross compile, use \`--host'. |
| 2379 | See \`config.log' for more details." >&2;} |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2380 | { (exit 1); exit 1; }; } |
| 2381 | fi |
| 2382 | fi |
| 2383 | fi |
| 2384 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2385 | echo "${ECHO_T}yes" >&6 |
| 2386 | |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 2387 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2388 | ac_clean_files=$ac_clean_files_save |
| 2389 | # Check the compiler produces executables we can run. If not, either |
| 2390 | # the compiler is broken, or we cross compile. |
| 2391 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2392 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2393 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2394 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2395 | |
| 2396 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2397 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2398 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2399 | (eval $ac_link) 2>&5 |
| 2400 | ac_status=$? |
| 2401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2402 | (exit $ac_status); }; then |
| 2403 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2404 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2405 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2406 | # `rm'. |
| 2407 | for ac_file in conftest.exe conftest conftest.*; do |
| 2408 | test -f "$ac_file" || continue |
| 2409 | case $ac_file in |
| 2410 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 2411 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2412 | export ac_cv_exeext |
| 2413 | break;; |
| 2414 | * ) break;; |
| 2415 | esac |
| 2416 | done |
| 2417 | else |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 2418 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2419 | See \`config.log' for more details." >&5 |
| 2420 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2421 | See \`config.log' for more details." >&2;} |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2422 | { (exit 1); exit 1; }; } |
| 2423 | fi |
| 2424 | |
| 2425 | rm -f conftest$ac_cv_exeext |
| 2426 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2427 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2428 | |
| 2429 | rm -f conftest.$ac_ext |
| 2430 | EXEEXT=$ac_cv_exeext |
| 2431 | ac_exeext=$EXEEXT |
| 2432 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2433 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2434 | if test "${ac_cv_objext+set}" = set; then |
| 2435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2436 | else |
| 2437 | cat >conftest.$ac_ext <<_ACEOF |
| 2438 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 2439 | /* confdefs.h. */ |
| 2440 | _ACEOF |
| 2441 | cat confdefs.h >>conftest.$ac_ext |
| 2442 | cat >>conftest.$ac_ext <<_ACEOF |
| 2443 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2444 | |
| 2445 | int |
| 2446 | main () |
| 2447 | { |
| 2448 | |
| 2449 | ; |
| 2450 | return 0; |
| 2451 | } |
| 2452 | _ACEOF |
| 2453 | rm -f conftest.o conftest.obj |
| 2454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2455 | (eval $ac_compile) 2>&5 |
| 2456 | ac_status=$? |
| 2457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2458 | (exit $ac_status); }; then |
| 2459 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2460 | case $ac_file in |
| 2461 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 2462 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2463 | break;; |
| 2464 | esac |
| 2465 | done |
| 2466 | else |
| 2467 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 2468 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2469 | |
| 2470 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2471 | See \`config.log' for more details." >&5 |
| 2472 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2473 | See \`config.log' for more details." >&2;} |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2474 | { (exit 1); exit 1; }; } |
| 2475 | fi |
| 2476 | |
| 2477 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2478 | fi |
| 2479 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2480 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2481 | OBJEXT=$ac_cv_objext |
| 2482 | ac_objext=$OBJEXT |
| 2483 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2484 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2485 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2487 | else |
| 2488 | cat >conftest.$ac_ext <<_ACEOF |
| 2489 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 2490 | /* confdefs.h. */ |
| 2491 | _ACEOF |
| 2492 | cat confdefs.h >>conftest.$ac_ext |
| 2493 | cat >>conftest.$ac_ext <<_ACEOF |
| 2494 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2495 | |
| 2496 | int |
| 2497 | main () |
| 2498 | { |
| 2499 | #ifndef __GNUC__ |
| 2500 | choke me |
| 2501 | #endif |
| 2502 | |
| 2503 | ; |
| 2504 | return 0; |
| 2505 | } |
| 2506 | _ACEOF |
| 2507 | rm -f conftest.$ac_objext |
| 2508 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2509 | (eval $ac_compile) 2>&5 |
| 2510 | ac_status=$? |
| 2511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2512 | (exit $ac_status); } && |
| 2513 | { ac_try='test -s conftest.$ac_objext' |
| 2514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2515 | (eval $ac_try) 2>&5 |
| 2516 | ac_status=$? |
| 2517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2518 | (exit $ac_status); }; }; then |
| 2519 | ac_compiler_gnu=yes |
| 2520 | else |
| 2521 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 2522 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2523 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2524 | ac_compiler_gnu=no |
| 2525 | fi |
| 2526 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2527 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2528 | |
| 2529 | fi |
| 2530 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2531 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2532 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2533 | ac_test_CFLAGS=${CFLAGS+set} |
| 2534 | ac_save_CFLAGS=$CFLAGS |
| 2535 | CFLAGS="-g" |
| 2536 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2537 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2538 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2540 | else |
| 2541 | cat >conftest.$ac_ext <<_ACEOF |
| 2542 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 2543 | /* confdefs.h. */ |
| 2544 | _ACEOF |
| 2545 | cat confdefs.h >>conftest.$ac_ext |
| 2546 | cat >>conftest.$ac_ext <<_ACEOF |
| 2547 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2548 | |
| 2549 | int |
| 2550 | main () |
| 2551 | { |
| 2552 | |
| 2553 | ; |
| 2554 | return 0; |
| 2555 | } |
| 2556 | _ACEOF |
| 2557 | rm -f conftest.$ac_objext |
| 2558 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2559 | (eval $ac_compile) 2>&5 |
| 2560 | ac_status=$? |
| 2561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2562 | (exit $ac_status); } && |
| 2563 | { ac_try='test -s conftest.$ac_objext' |
| 2564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2565 | (eval $ac_try) 2>&5 |
| 2566 | ac_status=$? |
| 2567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2568 | (exit $ac_status); }; }; then |
| 2569 | ac_cv_prog_cc_g=yes |
| 2570 | else |
| 2571 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 2572 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2573 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2574 | ac_cv_prog_cc_g=no |
| 2575 | fi |
| 2576 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2577 | fi |
| 2578 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2579 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2580 | if test "$ac_test_CFLAGS" = set; then |
| 2581 | CFLAGS=$ac_save_CFLAGS |
| 2582 | elif test $ac_cv_prog_cc_g = yes; then |
| 2583 | if test "$GCC" = yes; then |
| 2584 | CFLAGS="-g -O2" |
| 2585 | else |
| 2586 | CFLAGS="-g" |
| 2587 | fi |
| 2588 | else |
| 2589 | if test "$GCC" = yes; then |
| 2590 | CFLAGS="-O2" |
| 2591 | else |
| 2592 | CFLAGS= |
| 2593 | fi |
| 2594 | fi |
| 2595 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2596 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2597 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2599 | else |
| 2600 | ac_cv_prog_cc_stdc=no |
| 2601 | ac_save_CC=$CC |
| 2602 | cat >conftest.$ac_ext <<_ACEOF |
| 2603 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 2604 | /* confdefs.h. */ |
| 2605 | _ACEOF |
| 2606 | cat confdefs.h >>conftest.$ac_ext |
| 2607 | cat >>conftest.$ac_ext <<_ACEOF |
| 2608 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2609 | #include <stdarg.h> |
| 2610 | #include <stdio.h> |
| 2611 | #include <sys/types.h> |
| 2612 | #include <sys/stat.h> |
| 2613 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2614 | struct buf { int x; }; |
| 2615 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2616 | static char *e (p, i) |
| 2617 | char **p; |
| 2618 | int i; |
| 2619 | { |
| 2620 | return p[i]; |
| 2621 | } |
| 2622 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2623 | { |
| 2624 | char *s; |
| 2625 | va_list v; |
| 2626 | va_start (v,p); |
| 2627 | s = g (p, va_arg (v,int)); |
| 2628 | va_end (v); |
| 2629 | return s; |
| 2630 | } |
| 2631 | int test (int i, double x); |
| 2632 | struct s1 {int (*f) (int a);}; |
| 2633 | struct s2 {int (*f) (double a);}; |
| 2634 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2635 | int argc; |
| 2636 | char **argv; |
| 2637 | int |
| 2638 | main () |
| 2639 | { |
| 2640 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2641 | ; |
| 2642 | return 0; |
| 2643 | } |
| 2644 | _ACEOF |
| 2645 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2646 | # breaks some systems' header files. |
| 2647 | # AIX -qlanglvl=ansi |
| 2648 | # Ultrix and OSF/1 -std1 |
| 2649 | # HP-UX 10.20 and later -Ae |
| 2650 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2651 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2652 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2653 | do |
| 2654 | CC="$ac_save_CC $ac_arg" |
| 2655 | rm -f conftest.$ac_objext |
| 2656 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2657 | (eval $ac_compile) 2>&5 |
| 2658 | ac_status=$? |
| 2659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2660 | (exit $ac_status); } && |
| 2661 | { ac_try='test -s conftest.$ac_objext' |
| 2662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2663 | (eval $ac_try) 2>&5 |
| 2664 | ac_status=$? |
| 2665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2666 | (exit $ac_status); }; }; then |
| 2667 | ac_cv_prog_cc_stdc=$ac_arg |
| 2668 | break |
| 2669 | else |
| 2670 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 2671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2672 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2673 | fi |
| 2674 | rm -f conftest.$ac_objext |
| 2675 | done |
| 2676 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2677 | CC=$ac_save_CC |
| 2678 | |
| 2679 | fi |
| 2680 | |
| 2681 | case "x$ac_cv_prog_cc_stdc" in |
| 2682 | x|xno) |
| 2683 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2684 | echo "${ECHO_T}none needed" >&6 ;; |
| 2685 | *) |
| 2686 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2687 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2688 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2689 | esac |
| 2690 | |
| 2691 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2692 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2693 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2694 | # the declaration of exit, since it's the most demanding environment. |
| 2695 | cat >conftest.$ac_ext <<_ACEOF |
| 2696 | #ifndef __cplusplus |
| 2697 | choke me |
| 2698 | #endif |
| 2699 | _ACEOF |
| 2700 | rm -f conftest.$ac_objext |
| 2701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2702 | (eval $ac_compile) 2>&5 |
| 2703 | ac_status=$? |
| 2704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2705 | (exit $ac_status); } && |
| 2706 | { ac_try='test -s conftest.$ac_objext' |
| 2707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2708 | (eval $ac_try) 2>&5 |
| 2709 | ac_status=$? |
| 2710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2711 | (exit $ac_status); }; }; then |
| 2712 | for ac_declaration in \ |
| 2713 | ''\ |
| 2714 | '#include <stdlib.h>' \ |
| 2715 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2716 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2717 | 'extern "C" void exit (int) throw ();' \ |
| 2718 | 'extern "C" void exit (int);' \ |
| 2719 | 'void exit (int);' |
| 2720 | do |
| 2721 | cat >conftest.$ac_ext <<_ACEOF |
| 2722 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 2723 | /* confdefs.h. */ |
| 2724 | _ACEOF |
| 2725 | cat confdefs.h >>conftest.$ac_ext |
| 2726 | cat >>conftest.$ac_ext <<_ACEOF |
| 2727 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2728 | #include <stdlib.h> |
| 2729 | $ac_declaration |
| 2730 | int |
| 2731 | main () |
| 2732 | { |
| 2733 | exit (42); |
| 2734 | ; |
| 2735 | return 0; |
| 2736 | } |
| 2737 | _ACEOF |
| 2738 | rm -f conftest.$ac_objext |
| 2739 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2740 | (eval $ac_compile) 2>&5 |
| 2741 | ac_status=$? |
| 2742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2743 | (exit $ac_status); } && |
| 2744 | { ac_try='test -s conftest.$ac_objext' |
| 2745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2746 | (eval $ac_try) 2>&5 |
| 2747 | ac_status=$? |
| 2748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2749 | (exit $ac_status); }; }; then |
| 2750 | : |
| 2751 | else |
| 2752 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 2753 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2754 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2755 | continue |
| 2756 | fi |
| 2757 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2758 | cat >conftest.$ac_ext <<_ACEOF |
| 2759 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 2760 | /* confdefs.h. */ |
| 2761 | _ACEOF |
| 2762 | cat confdefs.h >>conftest.$ac_ext |
| 2763 | cat >>conftest.$ac_ext <<_ACEOF |
| 2764 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2765 | $ac_declaration |
| 2766 | int |
| 2767 | main () |
| 2768 | { |
| 2769 | exit (42); |
| 2770 | ; |
| 2771 | return 0; |
| 2772 | } |
| 2773 | _ACEOF |
| 2774 | rm -f conftest.$ac_objext |
| 2775 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2776 | (eval $ac_compile) 2>&5 |
| 2777 | ac_status=$? |
| 2778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2779 | (exit $ac_status); } && |
| 2780 | { ac_try='test -s conftest.$ac_objext' |
| 2781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2782 | (eval $ac_try) 2>&5 |
| 2783 | ac_status=$? |
| 2784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2785 | (exit $ac_status); }; }; then |
| 2786 | break |
| 2787 | else |
| 2788 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 2789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2790 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2791 | fi |
| 2792 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2793 | done |
| 2794 | rm -f conftest* |
| 2795 | if test -n "$ac_declaration"; then |
| 2796 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2797 | echo $ac_declaration >>confdefs.h |
| 2798 | echo '#endif' >>confdefs.h |
| 2799 | fi |
| 2800 | |
| 2801 | else |
| 2802 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 2803 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2804 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2805 | fi |
| 2806 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2807 | ac_ext=c |
| 2808 | ac_cpp='$CPP $CPPFLAGS' |
| 2809 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2810 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2811 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 2812 | rm -f .deps 2>/dev/null |
| 2813 | mkdir .deps 2>/dev/null |
| 2814 | if test -d .deps; then |
| 2815 | DEPDIR=.deps |
| 2816 | else |
| 2817 | # MS-DOS does not allow filenames that begin with a dot. |
| 2818 | DEPDIR=_deps |
| 2819 | fi |
| 2820 | rmdir .deps 2>/dev/null |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2821 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 2822 | |
| 2823 | ac_config_commands="$ac_config_commands depfiles" |
| 2824 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2825 | |
| 2826 | am_make=${MAKE-make} |
| 2827 | cat > confinc << 'END' |
| 2828 | doit: |
| 2829 | @echo done |
| 2830 | END |
| 2831 | # If we don't find an include directive, just comment out the code. |
| 2832 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
| 2833 | 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] | 2834 | am__include="#" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2835 | am__quote= |
| 2836 | _am_result=none |
| 2837 | # First try GNU make style include. |
| 2838 | echo "include confinc" > confmf |
| 2839 | # We grep out `Entering directory' and `Leaving directory' |
| 2840 | # messages which can occur if `w' ends up in MAKEFLAGS. |
| 2841 | # In particular we don't look at `^make:' because GNU make might |
| 2842 | # be invoked under some other name (usually "gmake"), in which |
| 2843 | # case it prints its new name instead of `make'. |
| 2844 | if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then |
| 2845 | am__include=include |
| 2846 | am__quote= |
| 2847 | _am_result=GNU |
| 2848 | fi |
| 2849 | # Now try BSD make style include. |
| 2850 | if test "$am__include" = "#"; then |
| 2851 | echo '.include "confinc"' > confmf |
| 2852 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 2853 | am__include=.include |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 2854 | am__quote="\"" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2855 | _am_result=BSD |
| 2856 | fi |
| 2857 | fi |
| 2858 | |
| 2859 | |
| 2860 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
| 2861 | echo "${ECHO_T}$_am_result" >&6 |
| 2862 | rm -f confinc confmf |
| 2863 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 2864 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
| 2865 | if test "${enable_dependency_tracking+set}" = set; then |
| 2866 | enableval="$enable_dependency_tracking" |
| 2867 | |
| 2868 | fi; |
| 2869 | if test "x$enable_dependency_tracking" != xno; then |
| 2870 | am_depcomp="$ac_aux_dir/depcomp" |
| 2871 | AMDEPBACKSLASH='\' |
| 2872 | fi |
| 2873 | |
| 2874 | |
| 2875 | if test "x$enable_dependency_tracking" != xno; then |
| 2876 | AMDEP_TRUE= |
| 2877 | AMDEP_FALSE='#' |
| 2878 | else |
| 2879 | AMDEP_TRUE='#' |
| 2880 | AMDEP_FALSE= |
| 2881 | fi |
| 2882 | |
| 2883 | |
| 2884 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2885 | |
| 2886 | depcc="$CC" am_compiler_list= |
| 2887 | |
| 2888 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 2889 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 2890 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 2891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2892 | else |
| 2893 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 2894 | # We make a subdir and do the tests there. Otherwise we can end up |
| 2895 | # making bogus files that we don't know about and never remove. For |
| 2896 | # instance it was reported that on HP-UX the gcc test will end up |
| 2897 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 2898 | # in D'. |
| 2899 | mkdir conftest.dir |
| 2900 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 2901 | # using a relative directory. |
| 2902 | cp "$am_depcomp" conftest.dir |
| 2903 | cd conftest.dir |
| 2904 | |
| 2905 | am_cv_CC_dependencies_compiler_type=none |
| 2906 | if test "$am_compiler_list" = ""; then |
| 2907 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 2908 | fi |
| 2909 | for depmode in $am_compiler_list; do |
| 2910 | # We need to recreate these files for each test, as the compiler may |
| 2911 | # overwrite some of them when testing with obscure command lines. |
| 2912 | # This happens at least with the AIX C compiler. |
| 2913 | echo '#include "conftest.h"' > conftest.c |
| 2914 | echo 'int i;' > conftest.h |
| 2915 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf |
| 2916 | |
| 2917 | case $depmode in |
| 2918 | nosideeffect) |
| 2919 | # after this tag, mechanisms are not by side-effect, so they'll |
| 2920 | # only be used when explicitly requested |
| 2921 | if test "x$enable_dependency_tracking" = xyes; then |
| 2922 | continue |
| 2923 | else |
| 2924 | break |
| 2925 | fi |
| 2926 | ;; |
| 2927 | none) break ;; |
| 2928 | esac |
| 2929 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 2930 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 2931 | # handle `-M -o', and we need to detect this. |
| 2932 | if depmode=$depmode \ |
| 2933 | source=conftest.c object=conftest.o \ |
| 2934 | depfile=conftest.Po tmpdepfile=conftest.TPo \ |
| 2935 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && |
| 2936 | grep conftest.h conftest.Po > /dev/null 2>&1 && |
| 2937 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 2938 | am_cv_CC_dependencies_compiler_type=$depmode |
| 2939 | break |
| 2940 | fi |
| 2941 | done |
| 2942 | |
| 2943 | cd .. |
| 2944 | rm -rf conftest.dir |
| 2945 | else |
| 2946 | am_cv_CC_dependencies_compiler_type=none |
| 2947 | fi |
| 2948 | |
| 2949 | fi |
| 2950 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 2951 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 2952 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 2953 | |
| 2954 | |
mostang.com!davidm | 4f17bce | 2003-03-28 07:43:22 +0000 | [diff] [blame] | 2955 | ac_ext=cc |
| 2956 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2957 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2958 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2959 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2960 | if test -n "$ac_tool_prefix"; then |
| 2961 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 2962 | do |
| 2963 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2964 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2965 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2966 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2967 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2969 | else |
| 2970 | if test -n "$CXX"; then |
| 2971 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2972 | else |
| 2973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2974 | for as_dir in $PATH |
| 2975 | do |
| 2976 | IFS=$as_save_IFS |
| 2977 | test -z "$as_dir" && as_dir=. |
| 2978 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2979 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2980 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2981 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2982 | break 2 |
| 2983 | fi |
| 2984 | done |
| 2985 | done |
| 2986 | |
| 2987 | fi |
| 2988 | fi |
| 2989 | CXX=$ac_cv_prog_CXX |
| 2990 | if test -n "$CXX"; then |
| 2991 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2992 | echo "${ECHO_T}$CXX" >&6 |
| 2993 | else |
| 2994 | echo "$as_me:$LINENO: result: no" >&5 |
| 2995 | echo "${ECHO_T}no" >&6 |
| 2996 | fi |
| 2997 | |
| 2998 | test -n "$CXX" && break |
| 2999 | done |
| 3000 | fi |
| 3001 | if test -z "$CXX"; then |
| 3002 | ac_ct_CXX=$CXX |
| 3003 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 3004 | do |
| 3005 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3006 | set dummy $ac_prog; ac_word=$2 |
| 3007 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3008 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3009 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 3010 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3011 | else |
| 3012 | if test -n "$ac_ct_CXX"; then |
| 3013 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3014 | else |
| 3015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3016 | for as_dir in $PATH |
| 3017 | do |
| 3018 | IFS=$as_save_IFS |
| 3019 | test -z "$as_dir" && as_dir=. |
| 3020 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3021 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3022 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 3023 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3024 | break 2 |
| 3025 | fi |
| 3026 | done |
| 3027 | done |
| 3028 | |
| 3029 | fi |
| 3030 | fi |
| 3031 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 3032 | if test -n "$ac_ct_CXX"; then |
| 3033 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 3034 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
| 3035 | else |
| 3036 | echo "$as_me:$LINENO: result: no" >&5 |
| 3037 | echo "${ECHO_T}no" >&6 |
| 3038 | fi |
| 3039 | |
| 3040 | test -n "$ac_ct_CXX" && break |
| 3041 | done |
| 3042 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 3043 | |
| 3044 | CXX=$ac_ct_CXX |
| 3045 | fi |
| 3046 | |
| 3047 | |
| 3048 | # Provide some information about the compiler. |
| 3049 | echo "$as_me:$LINENO:" \ |
| 3050 | "checking for C++ compiler version" >&5 |
| 3051 | ac_compiler=`set X $ac_compile; echo $2` |
| 3052 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 3053 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 3054 | ac_status=$? |
| 3055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3056 | (exit $ac_status); } |
| 3057 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 3058 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 3059 | ac_status=$? |
| 3060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3061 | (exit $ac_status); } |
| 3062 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 3063 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 3064 | ac_status=$? |
| 3065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3066 | (exit $ac_status); } |
| 3067 | |
| 3068 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 3069 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 3070 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 3071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3072 | else |
| 3073 | cat >conftest.$ac_ext <<_ACEOF |
| 3074 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 3075 | /* confdefs.h. */ |
| 3076 | _ACEOF |
| 3077 | cat confdefs.h >>conftest.$ac_ext |
| 3078 | cat >>conftest.$ac_ext <<_ACEOF |
| 3079 | /* end confdefs.h. */ |
mostang.com!davidm | 4f17bce | 2003-03-28 07:43:22 +0000 | [diff] [blame] | 3080 | |
| 3081 | int |
| 3082 | main () |
| 3083 | { |
| 3084 | #ifndef __GNUC__ |
| 3085 | choke me |
| 3086 | #endif |
| 3087 | |
| 3088 | ; |
| 3089 | return 0; |
| 3090 | } |
| 3091 | _ACEOF |
| 3092 | rm -f conftest.$ac_objext |
| 3093 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3094 | (eval $ac_compile) 2>&5 |
| 3095 | ac_status=$? |
| 3096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3097 | (exit $ac_status); } && |
| 3098 | { ac_try='test -s conftest.$ac_objext' |
| 3099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3100 | (eval $ac_try) 2>&5 |
| 3101 | ac_status=$? |
| 3102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3103 | (exit $ac_status); }; }; then |
| 3104 | ac_compiler_gnu=yes |
| 3105 | else |
| 3106 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 3107 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3108 | |
mostang.com!davidm | 4f17bce | 2003-03-28 07:43:22 +0000 | [diff] [blame] | 3109 | ac_compiler_gnu=no |
| 3110 | fi |
| 3111 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3112 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 3113 | |
| 3114 | fi |
| 3115 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 3116 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 3117 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 3118 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3119 | ac_save_CXXFLAGS=$CXXFLAGS |
| 3120 | CXXFLAGS="-g" |
| 3121 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 3122 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 3123 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 3124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3125 | else |
| 3126 | cat >conftest.$ac_ext <<_ACEOF |
| 3127 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 3128 | /* confdefs.h. */ |
| 3129 | _ACEOF |
| 3130 | cat confdefs.h >>conftest.$ac_ext |
| 3131 | cat >>conftest.$ac_ext <<_ACEOF |
| 3132 | /* end confdefs.h. */ |
mostang.com!davidm | 4f17bce | 2003-03-28 07:43:22 +0000 | [diff] [blame] | 3133 | |
| 3134 | int |
| 3135 | main () |
| 3136 | { |
| 3137 | |
| 3138 | ; |
| 3139 | return 0; |
| 3140 | } |
| 3141 | _ACEOF |
| 3142 | rm -f conftest.$ac_objext |
| 3143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3144 | (eval $ac_compile) 2>&5 |
| 3145 | ac_status=$? |
| 3146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3147 | (exit $ac_status); } && |
| 3148 | { ac_try='test -s conftest.$ac_objext' |
| 3149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3150 | (eval $ac_try) 2>&5 |
| 3151 | ac_status=$? |
| 3152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3153 | (exit $ac_status); }; }; then |
| 3154 | ac_cv_prog_cxx_g=yes |
| 3155 | else |
| 3156 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 3157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3158 | |
mostang.com!davidm | 4f17bce | 2003-03-28 07:43:22 +0000 | [diff] [blame] | 3159 | ac_cv_prog_cxx_g=no |
| 3160 | fi |
| 3161 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3162 | fi |
| 3163 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 3164 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 3165 | if test "$ac_test_CXXFLAGS" = set; then |
| 3166 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3167 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3168 | if test "$GXX" = yes; then |
| 3169 | CXXFLAGS="-g -O2" |
| 3170 | else |
| 3171 | CXXFLAGS="-g" |
| 3172 | fi |
| 3173 | else |
| 3174 | if test "$GXX" = yes; then |
| 3175 | CXXFLAGS="-O2" |
| 3176 | else |
| 3177 | CXXFLAGS= |
| 3178 | fi |
| 3179 | fi |
| 3180 | for ac_declaration in \ |
| 3181 | ''\ |
| 3182 | '#include <stdlib.h>' \ |
| 3183 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 3184 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 3185 | 'extern "C" void exit (int) throw ();' \ |
| 3186 | 'extern "C" void exit (int);' \ |
| 3187 | 'void exit (int);' |
| 3188 | do |
| 3189 | cat >conftest.$ac_ext <<_ACEOF |
| 3190 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 3191 | /* confdefs.h. */ |
| 3192 | _ACEOF |
| 3193 | cat confdefs.h >>conftest.$ac_ext |
| 3194 | cat >>conftest.$ac_ext <<_ACEOF |
| 3195 | /* end confdefs.h. */ |
mostang.com!davidm | 4f17bce | 2003-03-28 07:43:22 +0000 | [diff] [blame] | 3196 | #include <stdlib.h> |
| 3197 | $ac_declaration |
| 3198 | int |
| 3199 | main () |
| 3200 | { |
| 3201 | exit (42); |
| 3202 | ; |
| 3203 | return 0; |
| 3204 | } |
| 3205 | _ACEOF |
| 3206 | rm -f conftest.$ac_objext |
| 3207 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3208 | (eval $ac_compile) 2>&5 |
| 3209 | ac_status=$? |
| 3210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3211 | (exit $ac_status); } && |
| 3212 | { ac_try='test -s conftest.$ac_objext' |
| 3213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3214 | (eval $ac_try) 2>&5 |
| 3215 | ac_status=$? |
| 3216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3217 | (exit $ac_status); }; }; then |
| 3218 | : |
| 3219 | else |
| 3220 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 3221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3222 | |
mostang.com!davidm | 4f17bce | 2003-03-28 07:43:22 +0000 | [diff] [blame] | 3223 | continue |
| 3224 | fi |
| 3225 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3226 | cat >conftest.$ac_ext <<_ACEOF |
| 3227 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 3228 | /* confdefs.h. */ |
| 3229 | _ACEOF |
| 3230 | cat confdefs.h >>conftest.$ac_ext |
| 3231 | cat >>conftest.$ac_ext <<_ACEOF |
| 3232 | /* end confdefs.h. */ |
mostang.com!davidm | 4f17bce | 2003-03-28 07:43:22 +0000 | [diff] [blame] | 3233 | $ac_declaration |
| 3234 | int |
| 3235 | main () |
| 3236 | { |
| 3237 | exit (42); |
| 3238 | ; |
| 3239 | return 0; |
| 3240 | } |
| 3241 | _ACEOF |
| 3242 | rm -f conftest.$ac_objext |
| 3243 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3244 | (eval $ac_compile) 2>&5 |
| 3245 | ac_status=$? |
| 3246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3247 | (exit $ac_status); } && |
| 3248 | { ac_try='test -s conftest.$ac_objext' |
| 3249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3250 | (eval $ac_try) 2>&5 |
| 3251 | ac_status=$? |
| 3252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3253 | (exit $ac_status); }; }; then |
| 3254 | break |
| 3255 | else |
| 3256 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 3257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3258 | |
mostang.com!davidm | 4f17bce | 2003-03-28 07:43:22 +0000 | [diff] [blame] | 3259 | fi |
| 3260 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3261 | done |
| 3262 | rm -f conftest* |
| 3263 | if test -n "$ac_declaration"; then |
| 3264 | echo '#ifdef __cplusplus' >>confdefs.h |
| 3265 | echo $ac_declaration >>confdefs.h |
| 3266 | echo '#endif' >>confdefs.h |
| 3267 | fi |
| 3268 | |
| 3269 | ac_ext=c |
| 3270 | ac_cpp='$CPP $CPPFLAGS' |
| 3271 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3272 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3273 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3274 | |
| 3275 | depcc="$CXX" am_compiler_list= |
| 3276 | |
| 3277 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 3278 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 3279 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
| 3280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3281 | else |
| 3282 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3283 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3284 | # making bogus files that we don't know about and never remove. For |
| 3285 | # instance it was reported that on HP-UX the gcc test will end up |
| 3286 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 3287 | # in D'. |
| 3288 | mkdir conftest.dir |
| 3289 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3290 | # using a relative directory. |
| 3291 | cp "$am_depcomp" conftest.dir |
| 3292 | cd conftest.dir |
| 3293 | |
| 3294 | am_cv_CXX_dependencies_compiler_type=none |
| 3295 | if test "$am_compiler_list" = ""; then |
| 3296 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3297 | fi |
| 3298 | for depmode in $am_compiler_list; do |
| 3299 | # We need to recreate these files for each test, as the compiler may |
| 3300 | # overwrite some of them when testing with obscure command lines. |
| 3301 | # This happens at least with the AIX C compiler. |
| 3302 | echo '#include "conftest.h"' > conftest.c |
| 3303 | echo 'int i;' > conftest.h |
| 3304 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf |
| 3305 | |
| 3306 | case $depmode in |
| 3307 | nosideeffect) |
| 3308 | # after this tag, mechanisms are not by side-effect, so they'll |
| 3309 | # only be used when explicitly requested |
| 3310 | if test "x$enable_dependency_tracking" = xyes; then |
| 3311 | continue |
| 3312 | else |
| 3313 | break |
| 3314 | fi |
| 3315 | ;; |
| 3316 | none) break ;; |
| 3317 | esac |
| 3318 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 3319 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3320 | # handle `-M -o', and we need to detect this. |
| 3321 | if depmode=$depmode \ |
| 3322 | source=conftest.c object=conftest.o \ |
| 3323 | depfile=conftest.Po tmpdepfile=conftest.TPo \ |
| 3324 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && |
| 3325 | grep conftest.h conftest.Po > /dev/null 2>&1 && |
| 3326 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 3327 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 3328 | break |
| 3329 | fi |
| 3330 | done |
| 3331 | |
| 3332 | cd .. |
| 3333 | rm -rf conftest.dir |
| 3334 | else |
| 3335 | am_cv_CXX_dependencies_compiler_type=none |
| 3336 | fi |
| 3337 | |
| 3338 | fi |
| 3339 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 3340 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
| 3341 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 3342 | |
| 3343 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3344 | # Find a good install program. We prefer a C program (faster), |
| 3345 | # so one script is as good as another. But avoid the broken or |
| 3346 | # incompatible versions: |
| 3347 | # SysV /etc/install, /usr/sbin/install |
| 3348 | # SunOS /usr/etc/install |
| 3349 | # IRIX /sbin/install |
| 3350 | # AIX /bin/install |
| 3351 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 3352 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3353 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3354 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3355 | # ./install, which can be erroneously created by make from ./install.sh. |
| 3356 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3357 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 3358 | if test -z "$INSTALL"; then |
| 3359 | if test "${ac_cv_path_install+set}" = set; then |
| 3360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3361 | else |
| 3362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3363 | for as_dir in $PATH |
| 3364 | do |
| 3365 | IFS=$as_save_IFS |
| 3366 | test -z "$as_dir" && as_dir=. |
| 3367 | # Account for people who put trailing slashes in PATH elements. |
| 3368 | case $as_dir/ in |
| 3369 | ./ | .// | /cC/* | \ |
| 3370 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3371 | /usr/ucb/* ) ;; |
| 3372 | *) |
| 3373 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3374 | # Don't use installbsd from OSF since it installs stuff as root |
| 3375 | # by default. |
| 3376 | for ac_prog in ginstall scoinst install; do |
| 3377 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3378 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3379 | if test $ac_prog = install && |
| 3380 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3381 | # AIX install. It has an incompatible calling convention. |
| 3382 | : |
| 3383 | elif test $ac_prog = install && |
| 3384 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3385 | # program-specific install script used by HP pwplus--don't use. |
| 3386 | : |
| 3387 | else |
| 3388 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3389 | break 3 |
| 3390 | fi |
| 3391 | fi |
| 3392 | done |
| 3393 | done |
| 3394 | ;; |
| 3395 | esac |
| 3396 | done |
| 3397 | |
| 3398 | |
| 3399 | fi |
| 3400 | if test "${ac_cv_path_install+set}" = set; then |
| 3401 | INSTALL=$ac_cv_path_install |
| 3402 | else |
| 3403 | # As a last resort, use the slow shell script. We don't cache a |
| 3404 | # path for INSTALL within a source directory, because that will |
| 3405 | # break other packages using the cache if that directory is |
| 3406 | # removed, or if the path is relative. |
| 3407 | INSTALL=$ac_install_sh |
| 3408 | fi |
| 3409 | fi |
| 3410 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3411 | echo "${ECHO_T}$INSTALL" >&6 |
| 3412 | |
| 3413 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3414 | # It thinks the first close brace ends the variable substitution. |
| 3415 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3416 | |
| 3417 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 3418 | |
| 3419 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3420 | |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 3421 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 3422 | 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] | 3423 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
| 3424 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 3425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3426 | else |
| 3427 | cat >conftest.make <<\_ACEOF |
| 3428 | all: |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 3429 | @echo 'ac_maketemp="$(MAKE)"' |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3430 | _ACEOF |
| 3431 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 3432 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 3433 | if test -n "$ac_maketemp"; then |
| 3434 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 3435 | else |
| 3436 | eval ac_cv_prog_make_${ac_make}_set=no |
| 3437 | fi |
| 3438 | rm -f conftest.make |
| 3439 | fi |
| 3440 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 3441 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3442 | echo "${ECHO_T}yes" >&6 |
| 3443 | SET_MAKE= |
| 3444 | else |
| 3445 | echo "$as_me:$LINENO: result: no" >&5 |
| 3446 | echo "${ECHO_T}no" >&6 |
| 3447 | SET_MAKE="MAKE=${MAKE-make}" |
| 3448 | fi |
| 3449 | |
| 3450 | # Check whether --enable-shared or --disable-shared was given. |
| 3451 | if test "${enable_shared+set}" = set; then |
| 3452 | enableval="$enable_shared" |
| 3453 | p=${PACKAGE-default} |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3454 | case $enableval in |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3455 | yes) enable_shared=yes ;; |
| 3456 | no) enable_shared=no ;; |
| 3457 | *) |
| 3458 | enable_shared=no |
| 3459 | # Look at the argument we got. We use all the common list separators. |
| 3460 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 3461 | for pkg in $enableval; do |
| 3462 | if test "X$pkg" = "X$p"; then |
| 3463 | enable_shared=yes |
| 3464 | fi |
| 3465 | done |
| 3466 | IFS="$ac_save_ifs" |
| 3467 | ;; |
| 3468 | esac |
| 3469 | else |
| 3470 | enable_shared=yes |
| 3471 | fi; |
| 3472 | # Check whether --enable-static or --disable-static was given. |
| 3473 | if test "${enable_static+set}" = set; then |
| 3474 | enableval="$enable_static" |
| 3475 | p=${PACKAGE-default} |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3476 | case $enableval in |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3477 | yes) enable_static=yes ;; |
| 3478 | no) enable_static=no ;; |
| 3479 | *) |
| 3480 | enable_static=no |
| 3481 | # Look at the argument we got. We use all the common list separators. |
| 3482 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 3483 | for pkg in $enableval; do |
| 3484 | if test "X$pkg" = "X$p"; then |
| 3485 | enable_static=yes |
| 3486 | fi |
| 3487 | done |
| 3488 | IFS="$ac_save_ifs" |
| 3489 | ;; |
| 3490 | esac |
| 3491 | else |
| 3492 | enable_static=yes |
| 3493 | fi; |
| 3494 | # Check whether --enable-fast-install or --disable-fast-install was given. |
| 3495 | if test "${enable_fast_install+set}" = set; then |
| 3496 | enableval="$enable_fast_install" |
| 3497 | p=${PACKAGE-default} |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3498 | case $enableval in |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3499 | yes) enable_fast_install=yes ;; |
| 3500 | no) enable_fast_install=no ;; |
| 3501 | *) |
| 3502 | enable_fast_install=no |
| 3503 | # Look at the argument we got. We use all the common list separators. |
| 3504 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 3505 | for pkg in $enableval; do |
| 3506 | if test "X$pkg" = "X$p"; then |
| 3507 | enable_fast_install=yes |
| 3508 | fi |
| 3509 | done |
| 3510 | IFS="$ac_save_ifs" |
| 3511 | ;; |
| 3512 | esac |
| 3513 | else |
| 3514 | enable_fast_install=yes |
| 3515 | fi; |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3516 | # Find the correct PATH separator. Usually this is `:', but |
| 3517 | # DJGPP uses `;' like DOS. |
| 3518 | if test "X${PATH_SEPARATOR+set}" != Xset; then |
| 3519 | UNAME=${UNAME-`uname 2>/dev/null`} |
| 3520 | case X$UNAME in |
| 3521 | *-DOS) lt_cv_sys_path_separator=';' ;; |
| 3522 | *) lt_cv_sys_path_separator=':' ;; |
| 3523 | esac |
| 3524 | PATH_SEPARATOR=$lt_cv_sys_path_separator |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3525 | fi |
| 3526 | |
| 3527 | |
| 3528 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 3529 | if test "${with_gnu_ld+set}" = set; then |
| 3530 | withval="$with_gnu_ld" |
| 3531 | test "$withval" = no || with_gnu_ld=yes |
| 3532 | else |
| 3533 | with_gnu_ld=no |
| 3534 | fi; |
| 3535 | ac_prog=ld |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3536 | if test "$GCC" = yes; then |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3537 | # Check if gcc -print-prog-name=ld gives a path. |
| 3538 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
| 3539 | 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] | 3540 | case $host in |
| 3541 | *-*-mingw*) |
| 3542 | # gcc leaves a trailing carriage return which upsets mingw |
| 3543 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 3544 | *) |
| 3545 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 3546 | esac |
| 3547 | case $ac_prog in |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3548 | # Accept absolute paths. |
| 3549 | [\\/]* | [A-Za-z]:[\\/]*) |
| 3550 | re_direlt='/[^/][^/]*/\.\./' |
| 3551 | # Canonicalize the path of ld |
| 3552 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 3553 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 3554 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 3555 | done |
| 3556 | test -z "$LD" && LD="$ac_prog" |
| 3557 | ;; |
| 3558 | "") |
| 3559 | # If it fails, then pretend we aren't using GCC. |
| 3560 | ac_prog=ld |
| 3561 | ;; |
| 3562 | *) |
| 3563 | # If it is relative, then search for the first ld in PATH. |
| 3564 | with_gnu_ld=unknown |
| 3565 | ;; |
| 3566 | esac |
| 3567 | elif test "$with_gnu_ld" = yes; then |
| 3568 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 3569 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 3570 | else |
| 3571 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 3572 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 3573 | fi |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3574 | if test "${lt_cv_path_LD+set}" = set; then |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3576 | else |
| 3577 | if test -z "$LD"; then |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3578 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3579 | for ac_dir in $PATH; do |
| 3580 | test -z "$ac_dir" && ac_dir=. |
| 3581 | 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] | 3582 | lt_cv_path_LD="$ac_dir/$ac_prog" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3583 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 3584 | # but apparently some GNU ld's only accept -v. |
| 3585 | # 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] | 3586 | 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] | 3587 | test "$with_gnu_ld" != no && break |
| 3588 | else |
| 3589 | test "$with_gnu_ld" != yes && break |
| 3590 | fi |
| 3591 | fi |
| 3592 | done |
| 3593 | IFS="$ac_save_ifs" |
| 3594 | else |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3595 | 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] | 3596 | fi |
| 3597 | fi |
| 3598 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3599 | LD="$lt_cv_path_LD" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3600 | if test -n "$LD"; then |
| 3601 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 3602 | echo "${ECHO_T}$LD" >&6 |
| 3603 | else |
| 3604 | echo "$as_me:$LINENO: result: no" >&5 |
| 3605 | echo "${ECHO_T}no" >&6 |
| 3606 | fi |
| 3607 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 3608 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 3609 | { (exit 1); exit 1; }; } |
| 3610 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 3611 | 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] | 3612 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3614 | else |
| 3615 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 3616 | 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] | 3617 | lt_cv_prog_gnu_ld=yes |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3618 | else |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3619 | lt_cv_prog_gnu_ld=no |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3620 | fi |
| 3621 | fi |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3622 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 3623 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 3624 | with_gnu_ld=$lt_cv_prog_gnu_ld |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3625 | |
| 3626 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3627 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 3628 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
| 3629 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 3630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3631 | else |
| 3632 | lt_cv_ld_reload_flag='-r' |
| 3633 | fi |
| 3634 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 3635 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
| 3636 | reload_flag=$lt_cv_ld_reload_flag |
| 3637 | test -n "$reload_flag" && reload_flag=" $reload_flag" |
| 3638 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3639 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 3640 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3641 | if test "${lt_cv_path_NM+set}" = set; then |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3643 | else |
| 3644 | if test -n "$NM"; then |
| 3645 | # Let the user override the test. |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3646 | lt_cv_path_NM="$NM" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3647 | else |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3648 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3649 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
| 3650 | test -z "$ac_dir" && ac_dir=. |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3651 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
| 3652 | 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] | 3653 | # Check to see if the nm accepts a BSD-compat flag. |
| 3654 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 3655 | # nm: unknown option "B" ignored |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3656 | # Tru64's nm complains that /dev/null is an invalid object file |
| 3657 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then |
| 3658 | lt_cv_path_NM="$tmp_nm -B" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3659 | break |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3660 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
| 3661 | lt_cv_path_NM="$tmp_nm -p" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3662 | break |
| 3663 | else |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3664 | 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] | 3665 | continue # so that we can try to find one that supports BSD flags |
| 3666 | fi |
| 3667 | fi |
| 3668 | done |
| 3669 | IFS="$ac_save_ifs" |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3670 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3671 | fi |
| 3672 | fi |
| 3673 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3674 | NM="$lt_cv_path_NM" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3675 | echo "$as_me:$LINENO: result: $NM" >&5 |
| 3676 | echo "${ECHO_T}$NM" >&6 |
| 3677 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3678 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 3679 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
| 3680 | if test "${lt_cv_path_SED+set}" = set; then |
| 3681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3682 | else |
| 3683 | # Loop through the user's path and test for sed and gsed. |
| 3684 | # Then use that list of sed's as ones to test for truncation. |
| 3685 | as_executable_p="test -f" |
| 3686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3687 | for as_dir in $PATH |
| 3688 | do |
| 3689 | IFS=$as_save_IFS |
| 3690 | test -z "$as_dir" && as_dir=. |
| 3691 | for ac_prog in sed gsed; do |
| 3692 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3693 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3694 | _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext" |
| 3695 | fi |
| 3696 | done |
| 3697 | done |
| 3698 | done |
| 3699 | |
| 3700 | # Create a temporary directory, and hook for its removal unless debugging. |
| 3701 | $debug || |
| 3702 | { |
| 3703 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 3704 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 3705 | } |
| 3706 | |
| 3707 | # Create a (secure) tmp directory for tmp files. |
| 3708 | : ${TMPDIR=/tmp} |
| 3709 | { |
| 3710 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` && |
| 3711 | test -n "$tmp" && test -d "$tmp" |
| 3712 | } || |
| 3713 | { |
| 3714 | tmp=$TMPDIR/sed$$-$RANDOM |
| 3715 | (umask 077 && mkdir $tmp) |
| 3716 | } || |
| 3717 | { |
| 3718 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 3719 | { (exit 1); exit 1; } |
| 3720 | } |
| 3721 | _max=0 |
| 3722 | _count=0 |
| 3723 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 3724 | # along with /bin/sed that truncates output. |
| 3725 | for _sed in $_sed_list /usr/xpg4/bin/sed; do |
| 3726 | test ! -f ${_sed} && break |
| 3727 | cat /dev/null > "$tmp/sed.in" |
| 3728 | _count=0 |
| 3729 | echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in" |
| 3730 | # Check for GNU sed and select it if it is found. |
| 3731 | if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then |
| 3732 | lt_cv_path_SED=${_sed} |
| 3733 | break |
| 3734 | fi |
| 3735 | while true; do |
| 3736 | cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp" |
| 3737 | mv "$tmp/sed.tmp" "$tmp/sed.in" |
| 3738 | cp "$tmp/sed.in" "$tmp/sed.nl" |
| 3739 | echo >>"$tmp/sed.nl" |
| 3740 | ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break |
| 3741 | cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break |
| 3742 | # 40000 chars as input seems more than enough |
| 3743 | test $_count -gt 10 && break |
| 3744 | _count=`expr $_count + 1` |
| 3745 | if test $_count -gt $_max; then |
| 3746 | _max=$_count |
| 3747 | lt_cv_path_SED=$_sed |
| 3748 | fi |
| 3749 | done |
| 3750 | done |
| 3751 | rm -rf "$tmp" |
| 3752 | |
| 3753 | fi |
| 3754 | |
| 3755 | if test "X$SED" != "X"; then |
| 3756 | lt_cv_path_SED=$SED |
| 3757 | else |
| 3758 | SED=$lt_cv_path_SED |
| 3759 | fi |
| 3760 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 3761 | echo "${ECHO_T}$SED" >&6 |
| 3762 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3763 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 3764 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 3765 | LN_S=$as_ln_s |
| 3766 | if test "$LN_S" = "ln -s"; then |
| 3767 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3768 | echo "${ECHO_T}yes" >&6 |
| 3769 | else |
| 3770 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 3771 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 3772 | fi |
| 3773 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3774 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 3775 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
| 3776 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 3777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3778 | else |
| 3779 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 3780 | lt_cv_file_magic_test_file= |
| 3781 | lt_cv_deplibs_check_method='unknown' |
| 3782 | # Need to set the preceding variable on all platforms that support |
| 3783 | # interlibrary dependencies. |
| 3784 | # 'none' -- dependencies not supported. |
| 3785 | # `unknown' -- same as none, but documents that we really don't know. |
| 3786 | # 'pass_all' -- all dependencies passed with no checks. |
| 3787 | # 'test_compile' -- check by making test program. |
| 3788 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 3789 | # which responds to the $file_magic_cmd with a given egrep regex. |
| 3790 | # If you have `file' or equivalent on your system and you're not sure |
| 3791 | # whether `pass_all' will *always* work, you probably want this one. |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3792 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3793 | case $host_os in |
| 3794 | aix4* | aix5*) |
| 3795 | lt_cv_deplibs_check_method=pass_all |
| 3796 | ;; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3797 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3798 | beos*) |
| 3799 | lt_cv_deplibs_check_method=pass_all |
| 3800 | ;; |
| 3801 | |
| 3802 | bsdi4*) |
| 3803 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 3804 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 3805 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 3806 | ;; |
| 3807 | |
| 3808 | cygwin* | mingw* | pw32*) |
| 3809 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 3810 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 3811 | ;; |
| 3812 | |
| 3813 | darwin* | rhapsody*) |
| 3814 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
| 3815 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 3816 | case "$host_os" in |
| 3817 | rhapsody* | darwin1.[012]) |
| 3818 | lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` |
| 3819 | ;; |
| 3820 | *) # Darwin 1.3 on |
| 3821 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
| 3822 | ;; |
| 3823 | esac |
| 3824 | ;; |
| 3825 | |
| 3826 | freebsd*) |
| 3827 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 3828 | case $host_cpu in |
| 3829 | i*86 ) |
| 3830 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 3831 | # Let's accept both of them until this is cleared up. |
| 3832 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
| 3833 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3834 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 3835 | ;; |
| 3836 | esac |
| 3837 | else |
| 3838 | lt_cv_deplibs_check_method=pass_all |
| 3839 | fi |
| 3840 | ;; |
| 3841 | |
| 3842 | gnu*) |
| 3843 | lt_cv_deplibs_check_method=pass_all |
| 3844 | ;; |
| 3845 | |
| 3846 | hpux10.20*|hpux11*) |
| 3847 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 3848 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3849 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 3850 | ;; |
| 3851 | |
| 3852 | irix5* | irix6* | nonstopux*) |
| 3853 | case $host_os in |
| 3854 | irix5* | nonstopux*) |
| 3855 | # this will be overridden with pass_all, but let us keep it just in case |
| 3856 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
| 3857 | ;; |
| 3858 | *) |
| 3859 | case $LD in |
| 3860 | *-32|*"-32 ") libmagic=32-bit;; |
| 3861 | *-n32|*"-n32 ") libmagic=N32;; |
| 3862 | *-64|*"-64 ") libmagic=64-bit;; |
| 3863 | *) libmagic=never-match;; |
| 3864 | esac |
| 3865 | # this will be overridden with pass_all, but let us keep it just in case |
| 3866 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
| 3867 | ;; |
| 3868 | esac |
| 3869 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
| 3870 | lt_cv_deplibs_check_method=pass_all |
| 3871 | ;; |
| 3872 | |
| 3873 | # This must be Linux ELF. |
| 3874 | linux-gnu*) |
| 3875 | case $host_cpu in |
| 3876 | alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*) |
| 3877 | lt_cv_deplibs_check_method=pass_all ;; |
| 3878 | *) |
| 3879 | # glibc up to 2.1.1 does not perform some relocations on ARM |
| 3880 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
| 3881 | esac |
| 3882 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
| 3883 | ;; |
| 3884 | |
| 3885 | netbsd*) |
| 3886 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 3887 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
| 3888 | else |
| 3889 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
| 3890 | fi |
| 3891 | ;; |
| 3892 | |
| 3893 | newos6*) |
| 3894 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 3895 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3896 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 3897 | ;; |
| 3898 | |
| 3899 | openbsd*) |
| 3900 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3901 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 3902 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 3903 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
| 3904 | else |
| 3905 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
| 3906 | fi |
| 3907 | ;; |
| 3908 | |
| 3909 | osf3* | osf4* | osf5*) |
| 3910 | # this will be overridden with pass_all, but let us keep it just in case |
| 3911 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
| 3912 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 3913 | lt_cv_deplibs_check_method=pass_all |
| 3914 | ;; |
| 3915 | |
| 3916 | sco3.2v5*) |
| 3917 | lt_cv_deplibs_check_method=pass_all |
| 3918 | ;; |
| 3919 | |
| 3920 | solaris*) |
| 3921 | lt_cv_deplibs_check_method=pass_all |
| 3922 | lt_cv_file_magic_test_file=/lib/libc.so |
| 3923 | ;; |
| 3924 | |
| 3925 | sysv5uw[78]* | sysv4*uw2*) |
| 3926 | lt_cv_deplibs_check_method=pass_all |
| 3927 | ;; |
| 3928 | |
| 3929 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 3930 | case $host_vendor in |
| 3931 | motorola) |
| 3932 | 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]' |
| 3933 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 3934 | ;; |
| 3935 | ncr) |
| 3936 | lt_cv_deplibs_check_method=pass_all |
| 3937 | ;; |
| 3938 | sequent) |
| 3939 | lt_cv_file_magic_cmd='/bin/file' |
| 3940 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 3941 | ;; |
| 3942 | sni) |
| 3943 | lt_cv_file_magic_cmd='/bin/file' |
| 3944 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 3945 | lt_cv_file_magic_test_file=/lib/libc.so |
| 3946 | ;; |
| 3947 | siemens) |
| 3948 | lt_cv_deplibs_check_method=pass_all |
| 3949 | ;; |
| 3950 | esac |
| 3951 | ;; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3952 | esac |
| 3953 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3954 | fi |
| 3955 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 3956 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
| 3957 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 3958 | deplibs_check_method=$lt_cv_deplibs_check_method |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3959 | |
| 3960 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3961 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 3962 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 3963 | |
| 3964 | |
| 3965 | |
| 3966 | |
| 3967 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 3968 | echo "$as_me:$LINENO: checking command to parse $NM output" >&5 |
| 3969 | echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6 |
| 3970 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 3971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3972 | else |
| 3973 | |
| 3974 | # These are sane defaults that work on at least a few old systems. |
| 3975 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 3976 | |
| 3977 | # Character class describing NM global symbol codes. |
| 3978 | symcode='[BCDEGRST]' |
| 3979 | |
| 3980 | # Regexp to match symbols that can be accessed directly from C. |
| 3981 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 3982 | |
| 3983 | # Transform the above into a raw symbol and a C symbol. |
| 3984 | symxfrm='\1 \2\3 \3' |
| 3985 | |
| 3986 | # Transform an extracted symbol line into a proper C declaration |
| 3987 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" |
| 3988 | |
| 3989 | # Transform an extracted symbol line into symbol name and symbol address |
| 3990 | 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'" |
| 3991 | |
| 3992 | # Define system-specific variables. |
| 3993 | case $host_os in |
| 3994 | aix*) |
| 3995 | symcode='[BCDT]' |
| 3996 | ;; |
| 3997 | cygwin* | mingw* | pw32*) |
| 3998 | symcode='[ABCDGISTW]' |
| 3999 | ;; |
| 4000 | hpux*) # Its linker distinguishes data from code symbols |
| 4001 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 4002 | 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'" |
| 4003 | ;; |
| 4004 | irix* | nonstopux*) |
| 4005 | symcode='[BCDEGRST]' |
| 4006 | ;; |
| 4007 | osf*) |
| 4008 | symcode='[BCDEGQRST]' |
| 4009 | ;; |
| 4010 | solaris* | sysv5*) |
| 4011 | symcode='[BDT]' |
| 4012 | ;; |
| 4013 | sysv4) |
| 4014 | symcode='[DFNSTU]' |
| 4015 | ;; |
| 4016 | esac |
| 4017 | |
| 4018 | # Handle CRLF in mingw tool chain |
| 4019 | opt_cr= |
| 4020 | case $host_os in |
| 4021 | mingw*) |
| 4022 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 4023 | ;; |
| 4024 | esac |
| 4025 | |
| 4026 | # If we're using GNU nm, then use its standard symbol codes. |
| 4027 | if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then |
| 4028 | symcode='[ABCDGISTW]' |
| 4029 | fi |
| 4030 | |
| 4031 | # Try without a prefix undercore, then with it. |
| 4032 | for ac_symprfx in "" "_"; do |
| 4033 | |
| 4034 | # Write the raw and C identifiers. |
| 4035 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 4036 | |
| 4037 | # Check to see that the pipe works correctly. |
| 4038 | pipe_works=no |
| 4039 | rm -f conftest* |
| 4040 | cat > conftest.$ac_ext <<EOF |
| 4041 | #ifdef __cplusplus |
| 4042 | extern "C" { |
| 4043 | #endif |
| 4044 | char nm_test_var; |
| 4045 | void nm_test_func(){} |
| 4046 | #ifdef __cplusplus |
| 4047 | } |
| 4048 | #endif |
| 4049 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 4050 | EOF |
| 4051 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4052 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4053 | (eval $ac_compile) 2>&5 |
| 4054 | ac_status=$? |
| 4055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4056 | (exit $ac_status); }; then |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4057 | # Now try to grab the symbols. |
| 4058 | nlist=conftest.nm |
| 4059 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 4060 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 4061 | ac_status=$? |
| 4062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4063 | (exit $ac_status); } && test -s "$nlist"; then |
| 4064 | # Try sorting and uniquifying the output. |
| 4065 | if sort "$nlist" | uniq > "$nlist"T; then |
| 4066 | mv -f "$nlist"T "$nlist" |
| 4067 | else |
| 4068 | rm -f "$nlist"T |
| 4069 | fi |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4070 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4071 | # Make sure that we snagged all the symbols we need. |
| 4072 | if egrep ' nm_test_var$' "$nlist" >/dev/null; then |
| 4073 | if egrep ' nm_test_func$' "$nlist" >/dev/null; then |
| 4074 | cat <<EOF > conftest.$ac_ext |
| 4075 | #ifdef __cplusplus |
| 4076 | extern "C" { |
| 4077 | #endif |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4078 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4079 | EOF |
| 4080 | # Now generate the symbol file. |
| 4081 | eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4082 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4083 | cat <<EOF >> conftest.$ac_ext |
| 4084 | #if defined (__STDC__) && __STDC__ |
| 4085 | # define lt_ptr void * |
| 4086 | #else |
| 4087 | # define lt_ptr char * |
| 4088 | # define const |
| 4089 | #endif |
| 4090 | |
| 4091 | /* The mapping between symbol names and symbols. */ |
| 4092 | const struct { |
| 4093 | const char *name; |
| 4094 | lt_ptr address; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4095 | } |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4096 | lt_preloaded_symbols[] = |
| 4097 | { |
| 4098 | EOF |
| 4099 | sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext |
| 4100 | cat <<\EOF >> conftest.$ac_ext |
| 4101 | {0, (lt_ptr) 0} |
| 4102 | }; |
| 4103 | |
| 4104 | #ifdef __cplusplus |
| 4105 | } |
| 4106 | #endif |
| 4107 | EOF |
| 4108 | # Now try linking the two files. |
| 4109 | mv conftest.$ac_objext conftstm.$ac_objext |
| 4110 | save_LIBS="$LIBS" |
| 4111 | save_CFLAGS="$CFLAGS" |
| 4112 | LIBS="conftstm.$ac_objext" |
| 4113 | CFLAGS="$CFLAGS$no_builtin_flag" |
| 4114 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4115 | (eval $ac_link) 2>&5 |
| 4116 | ac_status=$? |
| 4117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4118 | (exit $ac_status); } && test -s conftest$ac_exeext; then |
| 4119 | pipe_works=yes |
| 4120 | fi |
| 4121 | LIBS="$save_LIBS" |
| 4122 | CFLAGS="$save_CFLAGS" |
| 4123 | else |
| 4124 | echo "cannot find nm_test_func in $nlist" >&5 |
| 4125 | fi |
| 4126 | else |
| 4127 | echo "cannot find nm_test_var in $nlist" >&5 |
| 4128 | fi |
| 4129 | else |
| 4130 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 4131 | fi |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4132 | else |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4133 | echo "$progname: failed program was:" >&5 |
| 4134 | cat conftest.$ac_ext >&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4135 | fi |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4136 | rm -f conftest* conftst* |
| 4137 | |
| 4138 | # Do not use the global_symbol_pipe unless it works. |
| 4139 | if test "$pipe_works" = yes; then |
| 4140 | break |
| 4141 | else |
| 4142 | lt_cv_sys_global_symbol_pipe= |
| 4143 | fi |
| 4144 | done |
| 4145 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4146 | fi |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4147 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4148 | global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" |
| 4149 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 4150 | global_symbol_to_cdecl= |
| 4151 | global_symbol_to_c_name_address= |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4152 | else |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4153 | global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" |
| 4154 | 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] | 4155 | fi |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4156 | if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; |
| 4157 | then |
| 4158 | echo "$as_me:$LINENO: result: failed" >&5 |
| 4159 | echo "${ECHO_T}failed" >&6 |
| 4160 | else |
| 4161 | echo "$as_me:$LINENO: result: ok" >&5 |
| 4162 | echo "${ECHO_T}ok" >&6 |
| 4163 | fi |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4164 | |
| 4165 | ac_ext=c |
| 4166 | ac_cpp='$CPP $CPPFLAGS' |
| 4167 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4168 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4169 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4170 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 4171 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 4172 | # On Suns, sometimes $CPP names a directory. |
| 4173 | if test -n "$CPP" && test -d "$CPP"; then |
| 4174 | CPP= |
| 4175 | fi |
| 4176 | if test -z "$CPP"; then |
| 4177 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 4178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4179 | else |
| 4180 | # Double quotes because CPP needs to be expanded |
| 4181 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4182 | do |
| 4183 | ac_preproc_ok=false |
| 4184 | for ac_c_preproc_warn_flag in '' yes |
| 4185 | do |
| 4186 | # Use a header file that comes with gcc, so configuring glibc |
| 4187 | # with a fresh cross-compiler works. |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 4188 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4189 | # <limits.h> exists even on freestanding compilers. |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4190 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4191 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4192 | cat >conftest.$ac_ext <<_ACEOF |
| 4193 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 4194 | /* confdefs.h. */ |
| 4195 | _ACEOF |
| 4196 | cat confdefs.h >>conftest.$ac_ext |
| 4197 | cat >>conftest.$ac_ext <<_ACEOF |
| 4198 | /* end confdefs.h. */ |
| 4199 | #ifdef __STDC__ |
| 4200 | # include <limits.h> |
| 4201 | #else |
| 4202 | # include <assert.h> |
| 4203 | #endif |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4204 | Syntax error |
| 4205 | _ACEOF |
| 4206 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4207 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4208 | ac_status=$? |
| 4209 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4210 | rm -f conftest.er1 |
| 4211 | cat conftest.err >&5 |
| 4212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4213 | (exit $ac_status); } >/dev/null; then |
| 4214 | if test -s conftest.err; then |
| 4215 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4216 | else |
| 4217 | ac_cpp_err= |
| 4218 | fi |
| 4219 | else |
| 4220 | ac_cpp_err=yes |
| 4221 | fi |
| 4222 | if test -z "$ac_cpp_err"; then |
| 4223 | : |
| 4224 | else |
| 4225 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 4226 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4227 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4228 | # Broken: fails on valid input. |
| 4229 | continue |
| 4230 | fi |
| 4231 | rm -f conftest.err conftest.$ac_ext |
| 4232 | |
| 4233 | # OK, works on sane cases. Now check whether non-existent headers |
| 4234 | # can be detected and how. |
| 4235 | cat >conftest.$ac_ext <<_ACEOF |
| 4236 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 4237 | /* confdefs.h. */ |
| 4238 | _ACEOF |
| 4239 | cat confdefs.h >>conftest.$ac_ext |
| 4240 | cat >>conftest.$ac_ext <<_ACEOF |
| 4241 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4242 | #include <ac_nonexistent.h> |
| 4243 | _ACEOF |
| 4244 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4245 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4246 | ac_status=$? |
| 4247 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4248 | rm -f conftest.er1 |
| 4249 | cat conftest.err >&5 |
| 4250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4251 | (exit $ac_status); } >/dev/null; then |
| 4252 | if test -s conftest.err; then |
| 4253 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4254 | else |
| 4255 | ac_cpp_err= |
| 4256 | fi |
| 4257 | else |
| 4258 | ac_cpp_err=yes |
| 4259 | fi |
| 4260 | if test -z "$ac_cpp_err"; then |
| 4261 | # Broken: success on invalid input. |
| 4262 | continue |
| 4263 | else |
| 4264 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 4265 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4266 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4267 | # Passes both tests. |
| 4268 | ac_preproc_ok=: |
| 4269 | break |
| 4270 | fi |
| 4271 | rm -f conftest.err conftest.$ac_ext |
| 4272 | |
| 4273 | done |
| 4274 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4275 | rm -f conftest.err conftest.$ac_ext |
| 4276 | if $ac_preproc_ok; then |
| 4277 | break |
| 4278 | fi |
| 4279 | |
| 4280 | done |
| 4281 | ac_cv_prog_CPP=$CPP |
| 4282 | |
| 4283 | fi |
| 4284 | CPP=$ac_cv_prog_CPP |
| 4285 | else |
| 4286 | ac_cv_prog_CPP=$CPP |
| 4287 | fi |
| 4288 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 4289 | echo "${ECHO_T}$CPP" >&6 |
| 4290 | ac_preproc_ok=false |
| 4291 | for ac_c_preproc_warn_flag in '' yes |
| 4292 | do |
| 4293 | # Use a header file that comes with gcc, so configuring glibc |
| 4294 | # with a fresh cross-compiler works. |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 4295 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4296 | # <limits.h> exists even on freestanding compilers. |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4297 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4298 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4299 | cat >conftest.$ac_ext <<_ACEOF |
| 4300 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 4301 | /* confdefs.h. */ |
| 4302 | _ACEOF |
| 4303 | cat confdefs.h >>conftest.$ac_ext |
| 4304 | cat >>conftest.$ac_ext <<_ACEOF |
| 4305 | /* end confdefs.h. */ |
| 4306 | #ifdef __STDC__ |
| 4307 | # include <limits.h> |
| 4308 | #else |
| 4309 | # include <assert.h> |
| 4310 | #endif |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4311 | Syntax error |
| 4312 | _ACEOF |
| 4313 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4314 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4315 | ac_status=$? |
| 4316 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4317 | rm -f conftest.er1 |
| 4318 | cat conftest.err >&5 |
| 4319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4320 | (exit $ac_status); } >/dev/null; then |
| 4321 | if test -s conftest.err; then |
| 4322 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4323 | else |
| 4324 | ac_cpp_err= |
| 4325 | fi |
| 4326 | else |
| 4327 | ac_cpp_err=yes |
| 4328 | fi |
| 4329 | if test -z "$ac_cpp_err"; then |
| 4330 | : |
| 4331 | else |
| 4332 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 4333 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4334 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4335 | # Broken: fails on valid input. |
| 4336 | continue |
| 4337 | fi |
| 4338 | rm -f conftest.err conftest.$ac_ext |
| 4339 | |
| 4340 | # OK, works on sane cases. Now check whether non-existent headers |
| 4341 | # can be detected and how. |
| 4342 | cat >conftest.$ac_ext <<_ACEOF |
| 4343 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 4344 | /* confdefs.h. */ |
| 4345 | _ACEOF |
| 4346 | cat confdefs.h >>conftest.$ac_ext |
| 4347 | cat >>conftest.$ac_ext <<_ACEOF |
| 4348 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4349 | #include <ac_nonexistent.h> |
| 4350 | _ACEOF |
| 4351 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4352 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4353 | ac_status=$? |
| 4354 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4355 | rm -f conftest.er1 |
| 4356 | cat conftest.err >&5 |
| 4357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4358 | (exit $ac_status); } >/dev/null; then |
| 4359 | if test -s conftest.err; then |
| 4360 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4361 | else |
| 4362 | ac_cpp_err= |
| 4363 | fi |
| 4364 | else |
| 4365 | ac_cpp_err=yes |
| 4366 | fi |
| 4367 | if test -z "$ac_cpp_err"; then |
| 4368 | # Broken: success on invalid input. |
| 4369 | continue |
| 4370 | else |
| 4371 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 4372 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4373 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4374 | # Passes both tests. |
| 4375 | ac_preproc_ok=: |
| 4376 | break |
| 4377 | fi |
| 4378 | rm -f conftest.err conftest.$ac_ext |
| 4379 | |
| 4380 | done |
| 4381 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4382 | rm -f conftest.err conftest.$ac_ext |
| 4383 | if $ac_preproc_ok; then |
| 4384 | : |
| 4385 | else |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 4386 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 4387 | See \`config.log' for more details." >&5 |
| 4388 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 4389 | See \`config.log' for more details." >&2;} |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4390 | { (exit 1); exit 1; }; } |
| 4391 | fi |
| 4392 | |
| 4393 | ac_ext=c |
| 4394 | ac_cpp='$CPP $CPPFLAGS' |
| 4395 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4396 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4397 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4398 | |
| 4399 | |
| 4400 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 4401 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 4402 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 4403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4404 | else |
| 4405 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 4406 | then ac_cv_prog_egrep='grep -E' |
| 4407 | else ac_cv_prog_egrep='egrep' |
| 4408 | fi |
| 4409 | fi |
| 4410 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 4411 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 4412 | EGREP=$ac_cv_prog_egrep |
| 4413 | |
| 4414 | |
| 4415 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4416 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4417 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4419 | else |
| 4420 | cat >conftest.$ac_ext <<_ACEOF |
| 4421 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 4422 | /* confdefs.h. */ |
| 4423 | _ACEOF |
| 4424 | cat confdefs.h >>conftest.$ac_ext |
| 4425 | cat >>conftest.$ac_ext <<_ACEOF |
| 4426 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4427 | #include <stdlib.h> |
| 4428 | #include <stdarg.h> |
| 4429 | #include <string.h> |
| 4430 | #include <float.h> |
| 4431 | |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 4432 | int |
| 4433 | main () |
| 4434 | { |
| 4435 | |
| 4436 | ; |
| 4437 | return 0; |
| 4438 | } |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4439 | _ACEOF |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 4440 | rm -f conftest.$ac_objext |
| 4441 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4442 | (eval $ac_compile) 2>&5 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4443 | ac_status=$? |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 4445 | (exit $ac_status); } && |
| 4446 | { ac_try='test -s conftest.$ac_objext' |
| 4447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4448 | (eval $ac_try) 2>&5 |
| 4449 | ac_status=$? |
| 4450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4451 | (exit $ac_status); }; }; then |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4452 | ac_cv_header_stdc=yes |
| 4453 | else |
| 4454 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 4455 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4456 | |
| 4457 | ac_cv_header_stdc=no |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4458 | fi |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 4459 | rm -f conftest.$ac_objext conftest.$ac_ext |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4460 | |
| 4461 | if test $ac_cv_header_stdc = yes; then |
| 4462 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4463 | cat >conftest.$ac_ext <<_ACEOF |
| 4464 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 4465 | /* confdefs.h. */ |
| 4466 | _ACEOF |
| 4467 | cat confdefs.h >>conftest.$ac_ext |
| 4468 | cat >>conftest.$ac_ext <<_ACEOF |
| 4469 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4470 | #include <string.h> |
| 4471 | |
| 4472 | _ACEOF |
| 4473 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4474 | $EGREP "memchr" >/dev/null 2>&1; then |
| 4475 | : |
| 4476 | else |
| 4477 | ac_cv_header_stdc=no |
| 4478 | fi |
| 4479 | rm -f conftest* |
| 4480 | |
| 4481 | fi |
| 4482 | |
| 4483 | if test $ac_cv_header_stdc = yes; then |
| 4484 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4485 | cat >conftest.$ac_ext <<_ACEOF |
| 4486 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 4487 | /* confdefs.h. */ |
| 4488 | _ACEOF |
| 4489 | cat confdefs.h >>conftest.$ac_ext |
| 4490 | cat >>conftest.$ac_ext <<_ACEOF |
| 4491 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4492 | #include <stdlib.h> |
| 4493 | |
| 4494 | _ACEOF |
| 4495 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4496 | $EGREP "free" >/dev/null 2>&1; then |
| 4497 | : |
| 4498 | else |
| 4499 | ac_cv_header_stdc=no |
| 4500 | fi |
| 4501 | rm -f conftest* |
| 4502 | |
| 4503 | fi |
| 4504 | |
| 4505 | if test $ac_cv_header_stdc = yes; then |
| 4506 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4507 | if test "$cross_compiling" = yes; then |
| 4508 | : |
| 4509 | else |
| 4510 | cat >conftest.$ac_ext <<_ACEOF |
| 4511 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 4512 | /* confdefs.h. */ |
| 4513 | _ACEOF |
| 4514 | cat confdefs.h >>conftest.$ac_ext |
| 4515 | cat >>conftest.$ac_ext <<_ACEOF |
| 4516 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4517 | #include <ctype.h> |
| 4518 | #if ((' ' & 0x0FF) == 0x020) |
| 4519 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4520 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4521 | #else |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 4522 | # define ISLOWER(c) \ |
| 4523 | (('a' <= (c) && (c) <= 'i') \ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4524 | || ('j' <= (c) && (c) <= 'r') \ |
| 4525 | || ('s' <= (c) && (c) <= 'z')) |
| 4526 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4527 | #endif |
| 4528 | |
| 4529 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4530 | int |
| 4531 | main () |
| 4532 | { |
| 4533 | int i; |
| 4534 | for (i = 0; i < 256; i++) |
| 4535 | if (XOR (islower (i), ISLOWER (i)) |
| 4536 | || toupper (i) != TOUPPER (i)) |
| 4537 | exit(2); |
| 4538 | exit (0); |
| 4539 | } |
| 4540 | _ACEOF |
| 4541 | rm -f conftest$ac_exeext |
| 4542 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4543 | (eval $ac_link) 2>&5 |
| 4544 | ac_status=$? |
| 4545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4546 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4548 | (eval $ac_try) 2>&5 |
| 4549 | ac_status=$? |
| 4550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4551 | (exit $ac_status); }; }; then |
| 4552 | : |
| 4553 | else |
| 4554 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4555 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 4556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4557 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4558 | ( exit $ac_status ) |
| 4559 | ac_cv_header_stdc=no |
| 4560 | fi |
| 4561 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4562 | fi |
| 4563 | fi |
| 4564 | fi |
| 4565 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4566 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 4567 | if test $ac_cv_header_stdc = yes; then |
| 4568 | |
| 4569 | cat >>confdefs.h <<\_ACEOF |
| 4570 | #define STDC_HEADERS 1 |
| 4571 | _ACEOF |
| 4572 | |
| 4573 | fi |
| 4574 | |
| 4575 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4576 | |
| 4577 | |
| 4578 | |
| 4579 | |
| 4580 | |
| 4581 | |
| 4582 | |
| 4583 | |
| 4584 | |
| 4585 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4586 | inttypes.h stdint.h unistd.h |
| 4587 | do |
| 4588 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4589 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4590 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4591 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4593 | else |
| 4594 | cat >conftest.$ac_ext <<_ACEOF |
| 4595 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 4596 | /* confdefs.h. */ |
| 4597 | _ACEOF |
| 4598 | cat confdefs.h >>conftest.$ac_ext |
| 4599 | cat >>conftest.$ac_ext <<_ACEOF |
| 4600 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4601 | $ac_includes_default |
| 4602 | |
| 4603 | #include <$ac_header> |
| 4604 | _ACEOF |
| 4605 | rm -f conftest.$ac_objext |
| 4606 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4607 | (eval $ac_compile) 2>&5 |
| 4608 | ac_status=$? |
| 4609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4610 | (exit $ac_status); } && |
| 4611 | { ac_try='test -s conftest.$ac_objext' |
| 4612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4613 | (eval $ac_try) 2>&5 |
| 4614 | ac_status=$? |
| 4615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4616 | (exit $ac_status); }; }; then |
| 4617 | eval "$as_ac_Header=yes" |
| 4618 | else |
| 4619 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 4620 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4621 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 4622 | eval "$as_ac_Header=no" |
| 4623 | fi |
| 4624 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4625 | fi |
| 4626 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4627 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4628 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4629 | cat >>confdefs.h <<_ACEOF |
| 4630 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4631 | _ACEOF |
| 4632 | |
| 4633 | fi |
| 4634 | |
| 4635 | done |
| 4636 | |
| 4637 | |
| 4638 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4639 | for ac_header in dlfcn.h |
| 4640 | do |
| 4641 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4642 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4643 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4644 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4645 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4647 | fi |
| 4648 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4649 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4650 | else |
| 4651 | # Is the header compilable? |
| 4652 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4653 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4654 | cat >conftest.$ac_ext <<_ACEOF |
| 4655 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 4656 | /* confdefs.h. */ |
| 4657 | _ACEOF |
| 4658 | cat confdefs.h >>conftest.$ac_ext |
| 4659 | cat >>conftest.$ac_ext <<_ACEOF |
| 4660 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4661 | $ac_includes_default |
| 4662 | #include <$ac_header> |
| 4663 | _ACEOF |
| 4664 | rm -f conftest.$ac_objext |
| 4665 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4666 | (eval $ac_compile) 2>&5 |
| 4667 | ac_status=$? |
| 4668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4669 | (exit $ac_status); } && |
| 4670 | { ac_try='test -s conftest.$ac_objext' |
| 4671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4672 | (eval $ac_try) 2>&5 |
| 4673 | ac_status=$? |
| 4674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4675 | (exit $ac_status); }; }; then |
| 4676 | ac_header_compiler=yes |
| 4677 | else |
| 4678 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 4679 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4680 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4681 | ac_header_compiler=no |
| 4682 | fi |
| 4683 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4684 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4685 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4686 | |
| 4687 | # Is the header present? |
| 4688 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4689 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4690 | cat >conftest.$ac_ext <<_ACEOF |
| 4691 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 4692 | /* confdefs.h. */ |
| 4693 | _ACEOF |
| 4694 | cat confdefs.h >>conftest.$ac_ext |
| 4695 | cat >>conftest.$ac_ext <<_ACEOF |
| 4696 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4697 | #include <$ac_header> |
| 4698 | _ACEOF |
| 4699 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4700 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4701 | ac_status=$? |
| 4702 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4703 | rm -f conftest.er1 |
| 4704 | cat conftest.err >&5 |
| 4705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4706 | (exit $ac_status); } >/dev/null; then |
| 4707 | if test -s conftest.err; then |
| 4708 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4709 | else |
| 4710 | ac_cpp_err= |
| 4711 | fi |
| 4712 | else |
| 4713 | ac_cpp_err=yes |
| 4714 | fi |
| 4715 | if test -z "$ac_cpp_err"; then |
| 4716 | ac_header_preproc=yes |
| 4717 | else |
| 4718 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 4719 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4720 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4721 | ac_header_preproc=no |
| 4722 | fi |
| 4723 | rm -f conftest.err conftest.$ac_ext |
| 4724 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4725 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4726 | |
| 4727 | # So? What about this header? |
| 4728 | case $ac_header_compiler:$ac_header_preproc in |
| 4729 | yes:no ) |
| 4730 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4731 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4732 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 4733 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4734 | ( |
| 4735 | cat <<\_ASBOX |
| 4736 | ## ------------------------------------ ## |
| 4737 | ## Report this to bug-autoconf@gnu.org. ## |
| 4738 | ## ------------------------------------ ## |
| 4739 | _ASBOX |
| 4740 | ) | |
| 4741 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4742 | ;; |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4743 | no:yes ) |
| 4744 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4745 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4746 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4747 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4748 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 4749 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4750 | ( |
| 4751 | cat <<\_ASBOX |
| 4752 | ## ------------------------------------ ## |
| 4753 | ## Report this to bug-autoconf@gnu.org. ## |
| 4754 | ## ------------------------------------ ## |
| 4755 | _ASBOX |
| 4756 | ) | |
| 4757 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4758 | ;; |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 4759 | esac |
| 4760 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4761 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4762 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4764 | else |
| 4765 | eval "$as_ac_Header=$ac_header_preproc" |
| 4766 | fi |
| 4767 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4768 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4769 | |
| 4770 | fi |
| 4771 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4772 | cat >>confdefs.h <<_ACEOF |
| 4773 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4774 | _ACEOF |
| 4775 | |
| 4776 | fi |
| 4777 | |
| 4778 | done |
| 4779 | |
| 4780 | |
| 4781 | |
| 4782 | |
| 4783 | |
| 4784 | |
| 4785 | # Only perform the check for file, if the check method requires it |
| 4786 | case $deplibs_check_method in |
| 4787 | file_magic*) |
| 4788 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 4789 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 4790 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
| 4791 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 4792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4793 | else |
| 4794 | case $MAGIC_CMD in |
| 4795 | /*) |
| 4796 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 4797 | ;; |
| 4798 | ?:/*) |
| 4799 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
| 4800 | ;; |
| 4801 | *) |
| 4802 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
| 4803 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4804 | ac_dummy="/usr/bin:$PATH" |
| 4805 | for ac_dir in $ac_dummy; do |
| 4806 | test -z "$ac_dir" && ac_dir=. |
| 4807 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 4808 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 4809 | if test -n "$file_magic_test_file"; then |
| 4810 | case $deplibs_check_method in |
| 4811 | "file_magic "*) |
| 4812 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 4813 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 4814 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 4815 | egrep "$file_magic_regex" > /dev/null; then |
| 4816 | : |
| 4817 | else |
| 4818 | cat <<EOF 1>&2 |
| 4819 | |
| 4820 | *** Warning: the command libtool uses to detect shared libraries, |
| 4821 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 4822 | *** The result is that libtool may fail to recognize shared libraries |
| 4823 | *** as such. This will affect the creation of libtool libraries that |
| 4824 | *** depend on shared libraries, but programs linked with such libtool |
| 4825 | *** libraries will work regardless of this problem. Nevertheless, you |
| 4826 | *** may want to report the problem to your system manager and/or to |
| 4827 | *** bug-libtool@gnu.org |
| 4828 | |
| 4829 | EOF |
| 4830 | fi ;; |
| 4831 | esac |
| 4832 | fi |
| 4833 | break |
| 4834 | fi |
| 4835 | done |
| 4836 | IFS="$ac_save_ifs" |
| 4837 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
| 4838 | ;; |
| 4839 | esac |
| 4840 | fi |
| 4841 | |
| 4842 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 4843 | if test -n "$MAGIC_CMD"; then |
| 4844 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 4845 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 4846 | else |
| 4847 | echo "$as_me:$LINENO: result: no" >&5 |
| 4848 | echo "${ECHO_T}no" >&6 |
| 4849 | fi |
| 4850 | |
| 4851 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 4852 | if test -n "$ac_tool_prefix"; then |
| 4853 | echo "$as_me:$LINENO: checking for file" >&5 |
| 4854 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
| 4855 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 4856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4857 | else |
| 4858 | case $MAGIC_CMD in |
| 4859 | /*) |
| 4860 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 4861 | ;; |
| 4862 | ?:/*) |
| 4863 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
| 4864 | ;; |
| 4865 | *) |
| 4866 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
| 4867 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4868 | ac_dummy="/usr/bin:$PATH" |
| 4869 | for ac_dir in $ac_dummy; do |
| 4870 | test -z "$ac_dir" && ac_dir=. |
| 4871 | if test -f $ac_dir/file; then |
| 4872 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 4873 | if test -n "$file_magic_test_file"; then |
| 4874 | case $deplibs_check_method in |
| 4875 | "file_magic "*) |
| 4876 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 4877 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 4878 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 4879 | egrep "$file_magic_regex" > /dev/null; then |
| 4880 | : |
| 4881 | else |
| 4882 | cat <<EOF 1>&2 |
| 4883 | |
| 4884 | *** Warning: the command libtool uses to detect shared libraries, |
| 4885 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 4886 | *** The result is that libtool may fail to recognize shared libraries |
| 4887 | *** as such. This will affect the creation of libtool libraries that |
| 4888 | *** depend on shared libraries, but programs linked with such libtool |
| 4889 | *** libraries will work regardless of this problem. Nevertheless, you |
| 4890 | *** may want to report the problem to your system manager and/or to |
| 4891 | *** bug-libtool@gnu.org |
| 4892 | |
| 4893 | EOF |
| 4894 | fi ;; |
| 4895 | esac |
| 4896 | fi |
| 4897 | break |
| 4898 | fi |
| 4899 | done |
| 4900 | IFS="$ac_save_ifs" |
| 4901 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
| 4902 | ;; |
| 4903 | esac |
| 4904 | fi |
| 4905 | |
| 4906 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 4907 | if test -n "$MAGIC_CMD"; then |
| 4908 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 4909 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 4910 | else |
| 4911 | echo "$as_me:$LINENO: result: no" >&5 |
| 4912 | echo "${ECHO_T}no" >&6 |
| 4913 | fi |
| 4914 | |
| 4915 | else |
| 4916 | MAGIC_CMD=: |
| 4917 | fi |
| 4918 | fi |
| 4919 | |
| 4920 | fi |
| 4921 | ;; |
| 4922 | esac |
| 4923 | |
| 4924 | if test -n "$ac_tool_prefix"; then |
| 4925 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4926 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 4927 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4928 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4929 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4931 | else |
| 4932 | if test -n "$RANLIB"; then |
| 4933 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4934 | else |
| 4935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4936 | for as_dir in $PATH |
| 4937 | do |
| 4938 | IFS=$as_save_IFS |
| 4939 | test -z "$as_dir" && as_dir=. |
| 4940 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4941 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4942 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4943 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4944 | break 2 |
| 4945 | fi |
| 4946 | done |
| 4947 | done |
| 4948 | |
| 4949 | fi |
| 4950 | fi |
| 4951 | RANLIB=$ac_cv_prog_RANLIB |
| 4952 | if test -n "$RANLIB"; then |
| 4953 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4954 | echo "${ECHO_T}$RANLIB" >&6 |
| 4955 | else |
| 4956 | echo "$as_me:$LINENO: result: no" >&5 |
| 4957 | echo "${ECHO_T}no" >&6 |
| 4958 | fi |
| 4959 | |
| 4960 | fi |
| 4961 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4962 | ac_ct_RANLIB=$RANLIB |
| 4963 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4964 | set dummy ranlib; ac_word=$2 |
| 4965 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4966 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4967 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4969 | else |
| 4970 | if test -n "$ac_ct_RANLIB"; then |
| 4971 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4972 | else |
| 4973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4974 | for as_dir in $PATH |
| 4975 | do |
| 4976 | IFS=$as_save_IFS |
| 4977 | test -z "$as_dir" && as_dir=. |
| 4978 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4979 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4980 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4981 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4982 | break 2 |
| 4983 | fi |
| 4984 | done |
| 4985 | done |
| 4986 | |
| 4987 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 4988 | fi |
| 4989 | fi |
| 4990 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4991 | if test -n "$ac_ct_RANLIB"; then |
| 4992 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4993 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 4994 | else |
| 4995 | echo "$as_me:$LINENO: result: no" >&5 |
| 4996 | echo "${ECHO_T}no" >&6 |
| 4997 | fi |
| 4998 | |
| 4999 | RANLIB=$ac_ct_RANLIB |
| 5000 | else |
| 5001 | RANLIB="$ac_cv_prog_RANLIB" |
| 5002 | fi |
| 5003 | |
| 5004 | if test -n "$ac_tool_prefix"; then |
| 5005 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5006 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 5007 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5008 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5009 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 5010 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5011 | else |
| 5012 | if test -n "$STRIP"; then |
| 5013 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5014 | else |
| 5015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5016 | for as_dir in $PATH |
| 5017 | do |
| 5018 | IFS=$as_save_IFS |
| 5019 | test -z "$as_dir" && as_dir=. |
| 5020 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5021 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5022 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5023 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5024 | break 2 |
| 5025 | fi |
| 5026 | done |
| 5027 | done |
| 5028 | |
| 5029 | fi |
| 5030 | fi |
| 5031 | STRIP=$ac_cv_prog_STRIP |
| 5032 | if test -n "$STRIP"; then |
| 5033 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 5034 | echo "${ECHO_T}$STRIP" >&6 |
| 5035 | else |
| 5036 | echo "$as_me:$LINENO: result: no" >&5 |
| 5037 | echo "${ECHO_T}no" >&6 |
| 5038 | fi |
| 5039 | |
| 5040 | fi |
| 5041 | if test -z "$ac_cv_prog_STRIP"; then |
| 5042 | ac_ct_STRIP=$STRIP |
| 5043 | # Extract the first word of "strip", so it can be a program name with args. |
| 5044 | set dummy strip; ac_word=$2 |
| 5045 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5046 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5047 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 5048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5049 | else |
| 5050 | if test -n "$ac_ct_STRIP"; then |
| 5051 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5052 | else |
| 5053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5054 | for as_dir in $PATH |
| 5055 | do |
| 5056 | IFS=$as_save_IFS |
| 5057 | test -z "$as_dir" && as_dir=. |
| 5058 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5059 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5060 | ac_cv_prog_ac_ct_STRIP="strip" |
| 5061 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5062 | break 2 |
| 5063 | fi |
| 5064 | done |
| 5065 | done |
| 5066 | |
| 5067 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 5068 | fi |
| 5069 | fi |
| 5070 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5071 | if test -n "$ac_ct_STRIP"; then |
| 5072 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 5073 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 5074 | else |
| 5075 | echo "$as_me:$LINENO: result: no" >&5 |
| 5076 | echo "${ECHO_T}no" >&6 |
| 5077 | fi |
| 5078 | |
| 5079 | STRIP=$ac_ct_STRIP |
| 5080 | else |
| 5081 | STRIP="$ac_cv_prog_STRIP" |
| 5082 | fi |
| 5083 | |
| 5084 | |
| 5085 | enable_dlopen=no |
| 5086 | enable_win32_dll=no |
| 5087 | |
| 5088 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 5089 | if test "${enable_libtool_lock+set}" = set; then |
| 5090 | enableval="$enable_libtool_lock" |
| 5091 | |
| 5092 | fi; |
| 5093 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 5094 | |
| 5095 | # Some flags need to be propagated to the compiler or linker for good |
| 5096 | # libtool support. |
| 5097 | case $host in |
| 5098 | *-*-irix6*) |
| 5099 | # Find out which ABI we are using. |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 5100 | echo '#line 5100 "configure"' > conftest.$ac_ext |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 5101 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5102 | (eval $ac_compile) 2>&5 |
| 5103 | ac_status=$? |
| 5104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5105 | (exit $ac_status); }; then |
| 5106 | case `/usr/bin/file conftest.$ac_objext` in |
| 5107 | *32-bit*) |
| 5108 | LD="${LD-ld} -32" |
| 5109 | ;; |
| 5110 | *N32*) |
| 5111 | LD="${LD-ld} -n32" |
| 5112 | ;; |
| 5113 | *64-bit*) |
| 5114 | LD="${LD-ld} -64" |
| 5115 | ;; |
| 5116 | esac |
| 5117 | fi |
| 5118 | rm -rf conftest* |
| 5119 | ;; |
| 5120 | |
| 5121 | *-*-sco3.2v5*) |
| 5122 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 5123 | SAVE_CFLAGS="$CFLAGS" |
| 5124 | CFLAGS="$CFLAGS -belf" |
| 5125 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 5126 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
| 5127 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 5128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5129 | else |
| 5130 | |
| 5131 | |
| 5132 | ac_ext=c |
| 5133 | ac_cpp='$CPP $CPPFLAGS' |
| 5134 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5135 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5136 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5137 | |
| 5138 | cat >conftest.$ac_ext <<_ACEOF |
| 5139 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 5140 | /* confdefs.h. */ |
| 5141 | _ACEOF |
| 5142 | cat confdefs.h >>conftest.$ac_ext |
| 5143 | cat >>conftest.$ac_ext <<_ACEOF |
| 5144 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 5145 | |
| 5146 | int |
| 5147 | main () |
| 5148 | { |
| 5149 | |
| 5150 | ; |
| 5151 | return 0; |
| 5152 | } |
| 5153 | _ACEOF |
| 5154 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5155 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5156 | (eval $ac_link) 2>&5 |
| 5157 | ac_status=$? |
| 5158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5159 | (exit $ac_status); } && |
| 5160 | { ac_try='test -s conftest$ac_exeext' |
| 5161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5162 | (eval $ac_try) 2>&5 |
| 5163 | ac_status=$? |
| 5164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5165 | (exit $ac_status); }; }; then |
| 5166 | lt_cv_cc_needs_belf=yes |
| 5167 | else |
| 5168 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 5169 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5170 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 5171 | lt_cv_cc_needs_belf=no |
| 5172 | fi |
| 5173 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5174 | ac_ext=c |
| 5175 | ac_cpp='$CPP $CPPFLAGS' |
| 5176 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5177 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5178 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5179 | |
| 5180 | fi |
| 5181 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 5182 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
| 5183 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 5184 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 5185 | CFLAGS="$SAVE_CFLAGS" |
| 5186 | fi |
| 5187 | ;; |
| 5188 | |
| 5189 | |
| 5190 | esac |
| 5191 | |
| 5192 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 5193 | # metacharacters that are still active within double-quoted strings. |
| 5194 | Xsed='sed -e s/^X//' |
| 5195 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 5196 | |
| 5197 | # Same as above, but do not quote variable references. |
| 5198 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 5199 | |
| 5200 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 5201 | # double_quote_subst'ed string. |
| 5202 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 5203 | |
| 5204 | # Constants: |
| 5205 | rm="rm -f" |
| 5206 | |
| 5207 | # Global variables: |
| 5208 | default_ofile=libtool |
| 5209 | can_build_shared=yes |
| 5210 | |
| 5211 | # All known linkers require a `.a' archive for static linking (except M$VC, |
| 5212 | # which needs '.lib'). |
| 5213 | libext=a |
| 5214 | ltmain="$ac_aux_dir/ltmain.sh" |
| 5215 | ofile="$default_ofile" |
| 5216 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 5217 | need_locks="$enable_libtool_lock" |
| 5218 | |
| 5219 | old_CC="$CC" |
| 5220 | old_CFLAGS="$CFLAGS" |
| 5221 | |
| 5222 | # Set sane defaults for various variables |
| 5223 | test -z "$AR" && AR=ar |
| 5224 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 5225 | test -z "$AS" && AS=as |
| 5226 | test -z "$CC" && CC=cc |
| 5227 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 5228 | test -z "$LD" && LD=ld |
| 5229 | test -z "$LN_S" && LN_S="ln -s" |
| 5230 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 5231 | test -z "$NM" && NM=nm |
| 5232 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 5233 | test -z "$RANLIB" && RANLIB=: |
| 5234 | test -z "$STRIP" && STRIP=: |
| 5235 | test -z "$ac_objext" && ac_objext=o |
| 5236 | |
| 5237 | if test x"$host" != x"$build"; then |
| 5238 | ac_tool_prefix=${host_alias}- |
| 5239 | else |
| 5240 | ac_tool_prefix= |
| 5241 | fi |
| 5242 | |
| 5243 | # Transform linux* to *-*-linux-gnu*, to support old configure scripts. |
| 5244 | case $host_os in |
| 5245 | linux-gnu*) ;; |
| 5246 | linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` |
| 5247 | esac |
| 5248 | |
| 5249 | case $host_os in |
| 5250 | aix3*) |
| 5251 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 5252 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 5253 | # vanish in a puff of smoke. |
| 5254 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 5255 | COLLECT_NAMES= |
| 5256 | export COLLECT_NAMES |
| 5257 | fi |
| 5258 | ;; |
| 5259 | esac |
| 5260 | |
| 5261 | # Determine commands to create old-style static archives. |
| 5262 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 5263 | old_postinstall_cmds='chmod 644 $oldlib' |
| 5264 | old_postuninstall_cmds= |
| 5265 | |
| 5266 | if test -n "$RANLIB"; then |
| 5267 | case $host_os in |
| 5268 | openbsd*) |
| 5269 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
| 5270 | ;; |
| 5271 | *) |
| 5272 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
| 5273 | ;; |
| 5274 | esac |
| 5275 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 5276 | fi |
| 5277 | |
| 5278 | # Allow CC to be a program name with arguments. |
| 5279 | set dummy $CC |
| 5280 | compiler="$2" |
| 5281 | |
| 5282 | echo "$as_me:$LINENO: checking for objdir" >&5 |
| 5283 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| 5284 | rm -f .libs 2>/dev/null |
| 5285 | mkdir .libs 2>/dev/null |
| 5286 | if test -d .libs; then |
| 5287 | objdir=.libs |
| 5288 | else |
| 5289 | # MS-DOS does not allow filenames that begin with a dot. |
| 5290 | objdir=_libs |
| 5291 | fi |
| 5292 | rmdir .libs 2>/dev/null |
| 5293 | echo "$as_me:$LINENO: result: $objdir" >&5 |
| 5294 | echo "${ECHO_T}$objdir" >&6 |
| 5295 | |
| 5296 | |
| 5297 | |
| 5298 | # Check whether --with-pic or --without-pic was given. |
| 5299 | if test "${with_pic+set}" = set; then |
| 5300 | withval="$with_pic" |
| 5301 | pic_mode="$withval" |
| 5302 | else |
| 5303 | pic_mode=default |
| 5304 | fi; |
| 5305 | test -z "$pic_mode" && pic_mode=default |
| 5306 | |
| 5307 | # We assume here that the value for lt_cv_prog_cc_pic will not be cached |
| 5308 | # in isolation, and that seeing it set (from the cache) indicates that |
| 5309 | # the associated values are set (in the cache) correctly too. |
| 5310 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 5311 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 5312 | if test "${lt_cv_prog_cc_pic+set}" = set; then |
| 5313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5314 | else |
| 5315 | lt_cv_prog_cc_pic= |
| 5316 | lt_cv_prog_cc_shlib= |
| 5317 | lt_cv_prog_cc_wl= |
| 5318 | lt_cv_prog_cc_static= |
| 5319 | lt_cv_prog_cc_no_builtin= |
| 5320 | lt_cv_prog_cc_can_build_shared=$can_build_shared |
| 5321 | |
| 5322 | if test "$GCC" = yes; then |
| 5323 | lt_cv_prog_cc_wl='-Wl,' |
| 5324 | lt_cv_prog_cc_static='-static' |
| 5325 | |
| 5326 | case $host_os in |
| 5327 | aix*) |
| 5328 | # Below there is a dirty hack to force normal static linking with -ldl |
| 5329 | # The problem is because libdl dynamically linked with both libc and |
| 5330 | # libC (AIX C++ library), which obviously doesn't included in libraries |
| 5331 | # list by gcc. This cause undefined symbols with -static flags. |
| 5332 | # This hack allows C programs to be linked with "-static -ldl", but |
| 5333 | # not sure about C++ programs. |
| 5334 | lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" |
| 5335 | ;; |
| 5336 | amigaos*) |
| 5337 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 5338 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 5339 | # like `-m68040'. |
| 5340 | lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' |
| 5341 | ;; |
| 5342 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 5343 | # PIC is the default for these OSes. |
| 5344 | ;; |
| 5345 | darwin* | rhapsody*) |
| 5346 | # PIC is the default on this platform |
| 5347 | # Common symbols not allowed in MH_DYLIB files |
| 5348 | lt_cv_prog_cc_pic='-fno-common' |
| 5349 | ;; |
| 5350 | cygwin* | mingw* | pw32* | os2*) |
| 5351 | # This hack is so that the source file can tell whether it is being |
| 5352 | # built for inclusion in a dll (and should export symbols for example). |
| 5353 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
| 5354 | ;; |
| 5355 | sysv4*MP*) |
| 5356 | if test -d /usr/nec; then |
| 5357 | lt_cv_prog_cc_pic=-Kconform_pic |
| 5358 | fi |
| 5359 | ;; |
| 5360 | *) |
| 5361 | lt_cv_prog_cc_pic='-fPIC' |
| 5362 | ;; |
| 5363 | esac |
| 5364 | else |
| 5365 | # PORTME Check for PIC flags for the system compiler. |
| 5366 | case $host_os in |
| 5367 | aix3* | aix4* | aix5*) |
| 5368 | lt_cv_prog_cc_wl='-Wl,' |
| 5369 | # All AIX code is PIC. |
| 5370 | if test "$host_cpu" = ia64; then |
| 5371 | # AIX 5 now supports IA64 processor |
| 5372 | lt_cv_prog_cc_static='-Bstatic' |
| 5373 | else |
| 5374 | lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' |
| 5375 | fi |
| 5376 | ;; |
| 5377 | |
| 5378 | hpux9* | hpux10* | hpux11*) |
| 5379 | # Is there a better lt_cv_prog_cc_static that works with the bundled CC? |
| 5380 | lt_cv_prog_cc_wl='-Wl,' |
| 5381 | lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" |
| 5382 | lt_cv_prog_cc_pic='+Z' |
| 5383 | ;; |
| 5384 | |
| 5385 | irix5* | irix6* | nonstopux*) |
| 5386 | lt_cv_prog_cc_wl='-Wl,' |
| 5387 | lt_cv_prog_cc_static='-non_shared' |
| 5388 | # PIC (with -KPIC) is the default. |
| 5389 | ;; |
| 5390 | |
| 5391 | cygwin* | mingw* | pw32* | os2*) |
| 5392 | # This hack is so that the source file can tell whether it is being |
| 5393 | # built for inclusion in a dll (and should export symbols for example). |
| 5394 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
| 5395 | ;; |
| 5396 | |
| 5397 | newsos6) |
| 5398 | lt_cv_prog_cc_pic='-KPIC' |
| 5399 | lt_cv_prog_cc_static='-Bstatic' |
| 5400 | ;; |
| 5401 | |
| 5402 | osf3* | osf4* | osf5*) |
| 5403 | # All OSF/1 code is PIC. |
| 5404 | lt_cv_prog_cc_wl='-Wl,' |
| 5405 | lt_cv_prog_cc_static='-non_shared' |
| 5406 | ;; |
| 5407 | |
| 5408 | sco3.2v5*) |
| 5409 | lt_cv_prog_cc_pic='-Kpic' |
| 5410 | lt_cv_prog_cc_static='-dn' |
| 5411 | lt_cv_prog_cc_shlib='-belf' |
| 5412 | ;; |
| 5413 | |
| 5414 | solaris*) |
| 5415 | lt_cv_prog_cc_pic='-KPIC' |
| 5416 | lt_cv_prog_cc_static='-Bstatic' |
| 5417 | lt_cv_prog_cc_wl='-Wl,' |
| 5418 | ;; |
| 5419 | |
| 5420 | sunos4*) |
| 5421 | lt_cv_prog_cc_pic='-PIC' |
| 5422 | lt_cv_prog_cc_static='-Bstatic' |
| 5423 | lt_cv_prog_cc_wl='-Qoption ld ' |
| 5424 | ;; |
| 5425 | |
| 5426 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 5427 | lt_cv_prog_cc_pic='-KPIC' |
| 5428 | lt_cv_prog_cc_static='-Bstatic' |
| 5429 | lt_cv_prog_cc_wl='-Wl,' |
| 5430 | ;; |
| 5431 | |
| 5432 | uts4*) |
| 5433 | lt_cv_prog_cc_pic='-pic' |
| 5434 | lt_cv_prog_cc_static='-Bstatic' |
| 5435 | ;; |
| 5436 | |
| 5437 | sysv4*MP*) |
| 5438 | if test -d /usr/nec ;then |
| 5439 | lt_cv_prog_cc_pic='-Kconform_pic' |
| 5440 | lt_cv_prog_cc_static='-Bstatic' |
| 5441 | fi |
| 5442 | ;; |
| 5443 | |
| 5444 | *) |
| 5445 | lt_cv_prog_cc_can_build_shared=no |
| 5446 | ;; |
| 5447 | esac |
| 5448 | fi |
| 5449 | |
| 5450 | fi |
| 5451 | |
| 5452 | if test -z "$lt_cv_prog_cc_pic"; then |
| 5453 | echo "$as_me:$LINENO: result: none" >&5 |
| 5454 | echo "${ECHO_T}none" >&6 |
| 5455 | else |
| 5456 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5 |
| 5457 | echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6 |
| 5458 | |
| 5459 | # Check to make sure the pic_flag actually works. |
| 5460 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 |
| 5461 | echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6 |
| 5462 | if test "${lt_cv_prog_cc_pic_works+set}" = set; then |
| 5463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5464 | else |
| 5465 | save_CFLAGS="$CFLAGS" |
| 5466 | CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" |
| 5467 | cat >conftest.$ac_ext <<_ACEOF |
| 5468 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 5469 | /* confdefs.h. */ |
| 5470 | _ACEOF |
| 5471 | cat confdefs.h >>conftest.$ac_ext |
| 5472 | cat >>conftest.$ac_ext <<_ACEOF |
| 5473 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 5474 | |
| 5475 | int |
| 5476 | main () |
| 5477 | { |
| 5478 | |
| 5479 | ; |
| 5480 | return 0; |
| 5481 | } |
| 5482 | _ACEOF |
| 5483 | rm -f conftest.$ac_objext |
| 5484 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5485 | (eval $ac_compile) 2>&5 |
| 5486 | ac_status=$? |
| 5487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5488 | (exit $ac_status); } && |
| 5489 | { ac_try='test -s conftest.$ac_objext' |
| 5490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5491 | (eval $ac_try) 2>&5 |
| 5492 | ac_status=$? |
| 5493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5494 | (exit $ac_status); }; }; then |
| 5495 | case $host_os in |
| 5496 | hpux9* | hpux10* | hpux11*) |
| 5497 | # On HP-UX, both CC and GCC only warn that PIC is supported... then |
| 5498 | # they create non-PIC objects. So, if there were any warnings, we |
| 5499 | # assume that PIC is not supported. |
| 5500 | if test -s conftest.err; then |
| 5501 | lt_cv_prog_cc_pic_works=no |
| 5502 | else |
| 5503 | lt_cv_prog_cc_pic_works=yes |
| 5504 | fi |
| 5505 | ;; |
| 5506 | *) |
| 5507 | lt_cv_prog_cc_pic_works=yes |
| 5508 | ;; |
| 5509 | esac |
| 5510 | |
| 5511 | else |
| 5512 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 5513 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5514 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 5515 | lt_cv_prog_cc_pic_works=no |
| 5516 | |
| 5517 | fi |
| 5518 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5519 | CFLAGS="$save_CFLAGS" |
| 5520 | |
| 5521 | fi |
| 5522 | |
| 5523 | |
| 5524 | if test "X$lt_cv_prog_cc_pic_works" = Xno; then |
| 5525 | lt_cv_prog_cc_pic= |
| 5526 | lt_cv_prog_cc_can_build_shared=no |
| 5527 | else |
| 5528 | lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" |
| 5529 | fi |
| 5530 | |
| 5531 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5 |
| 5532 | echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6 |
| 5533 | fi |
| 5534 | |
| 5535 | # Check for any special shared library compilation flags. |
| 5536 | if test -n "$lt_cv_prog_cc_shlib"; then |
| 5537 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5 |
| 5538 | echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;} |
| 5539 | if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : |
| 5540 | else |
| 5541 | { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
| 5542 | echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
| 5543 | lt_cv_prog_cc_can_build_shared=no |
| 5544 | fi |
| 5545 | fi |
| 5546 | |
| 5547 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 |
| 5548 | echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 |
| 5549 | if test "${lt_cv_prog_cc_static_works+set}" = set; then |
| 5550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5551 | else |
| 5552 | lt_cv_prog_cc_static_works=no |
| 5553 | save_LDFLAGS="$LDFLAGS" |
| 5554 | LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" |
| 5555 | cat >conftest.$ac_ext <<_ACEOF |
| 5556 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 5557 | /* confdefs.h. */ |
| 5558 | _ACEOF |
| 5559 | cat confdefs.h >>conftest.$ac_ext |
| 5560 | cat >>conftest.$ac_ext <<_ACEOF |
| 5561 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 5562 | |
| 5563 | int |
| 5564 | main () |
| 5565 | { |
| 5566 | |
| 5567 | ; |
| 5568 | return 0; |
| 5569 | } |
| 5570 | _ACEOF |
| 5571 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5572 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5573 | (eval $ac_link) 2>&5 |
| 5574 | ac_status=$? |
| 5575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5576 | (exit $ac_status); } && |
| 5577 | { ac_try='test -s conftest$ac_exeext' |
| 5578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5579 | (eval $ac_try) 2>&5 |
| 5580 | ac_status=$? |
| 5581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5582 | (exit $ac_status); }; }; then |
| 5583 | lt_cv_prog_cc_static_works=yes |
| 5584 | else |
| 5585 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 5586 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5587 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 5588 | fi |
| 5589 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5590 | LDFLAGS="$save_LDFLAGS" |
| 5591 | |
| 5592 | fi |
| 5593 | |
| 5594 | |
| 5595 | # Belt *and* braces to stop my trousers falling down: |
| 5596 | test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= |
| 5597 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5 |
| 5598 | echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6 |
| 5599 | |
| 5600 | pic_flag="$lt_cv_prog_cc_pic" |
| 5601 | special_shlib_compile_flags="$lt_cv_prog_cc_shlib" |
| 5602 | wl="$lt_cv_prog_cc_wl" |
| 5603 | link_static_flag="$lt_cv_prog_cc_static" |
| 5604 | no_builtin_flag="$lt_cv_prog_cc_no_builtin" |
| 5605 | can_build_shared="$lt_cv_prog_cc_can_build_shared" |
| 5606 | |
| 5607 | |
| 5608 | # Check to see if options -o and -c are simultaneously supported by compiler |
| 5609 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 5610 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 5611 | if test "${lt_cv_compiler_c_o+set}" = set; then |
| 5612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5613 | else |
| 5614 | |
| 5615 | $rm -r conftest 2>/dev/null |
| 5616 | mkdir conftest |
| 5617 | cd conftest |
| 5618 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 5619 | mkdir out |
| 5620 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 5621 | # that will create temporary files in the current directory regardless of |
| 5622 | # the output directory. Thus, making CWD read-only will cause this test |
| 5623 | # to fail, enabling locking or at least warning the user not to do parallel |
| 5624 | # builds. |
| 5625 | chmod -w . |
| 5626 | save_CFLAGS="$CFLAGS" |
| 5627 | CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" |
| 5628 | compiler_c_o=no |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 5629 | if { (eval echo configure:5629: \"$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] | 5630 | # The compiler can only warn and ignore the option if not recognized |
| 5631 | # So say no if there are warnings |
| 5632 | if test -s out/conftest.err; then |
| 5633 | lt_cv_compiler_c_o=no |
| 5634 | else |
| 5635 | lt_cv_compiler_c_o=yes |
| 5636 | fi |
| 5637 | else |
| 5638 | # Append any errors to the config.log. |
| 5639 | cat out/conftest.err 1>&5 |
| 5640 | lt_cv_compiler_c_o=no |
| 5641 | fi |
| 5642 | CFLAGS="$save_CFLAGS" |
| 5643 | chmod u+w . |
| 5644 | $rm conftest* out/* |
| 5645 | rmdir out |
| 5646 | cd .. |
| 5647 | rmdir conftest |
| 5648 | $rm -r conftest 2>/dev/null |
| 5649 | |
| 5650 | fi |
| 5651 | |
| 5652 | compiler_c_o=$lt_cv_compiler_c_o |
| 5653 | echo "$as_me:$LINENO: result: $compiler_c_o" >&5 |
| 5654 | echo "${ECHO_T}$compiler_c_o" >&6 |
| 5655 | |
| 5656 | if test x"$compiler_c_o" = x"yes"; then |
| 5657 | # Check to see if we can write to a .lo |
| 5658 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5 |
| 5659 | echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6 |
| 5660 | if test "${lt_cv_compiler_o_lo+set}" = set; then |
| 5661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5662 | else |
| 5663 | |
| 5664 | lt_cv_compiler_o_lo=no |
| 5665 | save_CFLAGS="$CFLAGS" |
| 5666 | CFLAGS="$CFLAGS -c -o conftest.lo" |
| 5667 | save_objext="$ac_objext" |
| 5668 | ac_objext=lo |
| 5669 | cat >conftest.$ac_ext <<_ACEOF |
| 5670 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 5671 | /* confdefs.h. */ |
| 5672 | _ACEOF |
| 5673 | cat confdefs.h >>conftest.$ac_ext |
| 5674 | cat >>conftest.$ac_ext <<_ACEOF |
| 5675 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 5676 | |
| 5677 | int |
| 5678 | main () |
| 5679 | { |
| 5680 | int some_variable = 0; |
| 5681 | ; |
| 5682 | return 0; |
| 5683 | } |
| 5684 | _ACEOF |
| 5685 | rm -f conftest.$ac_objext |
| 5686 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5687 | (eval $ac_compile) 2>&5 |
| 5688 | ac_status=$? |
| 5689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5690 | (exit $ac_status); } && |
| 5691 | { ac_try='test -s conftest.$ac_objext' |
| 5692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5693 | (eval $ac_try) 2>&5 |
| 5694 | ac_status=$? |
| 5695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5696 | (exit $ac_status); }; }; then |
| 5697 | # The compiler can only warn and ignore the option if not recognized |
| 5698 | # So say no if there are warnings |
| 5699 | if test -s conftest.err; then |
| 5700 | lt_cv_compiler_o_lo=no |
| 5701 | else |
| 5702 | lt_cv_compiler_o_lo=yes |
| 5703 | fi |
| 5704 | |
| 5705 | else |
| 5706 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 5707 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5708 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 5709 | fi |
| 5710 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5711 | ac_objext="$save_objext" |
| 5712 | CFLAGS="$save_CFLAGS" |
| 5713 | |
| 5714 | fi |
| 5715 | |
| 5716 | compiler_o_lo=$lt_cv_compiler_o_lo |
| 5717 | echo "$as_me:$LINENO: result: $compiler_o_lo" >&5 |
| 5718 | echo "${ECHO_T}$compiler_o_lo" >&6 |
| 5719 | else |
| 5720 | compiler_o_lo=no |
| 5721 | fi |
| 5722 | |
| 5723 | # Check to see if we can do hard links to lock some files if needed |
| 5724 | hard_links="nottested" |
| 5725 | if test "$compiler_c_o" = no && test "$need_locks" != no; then |
| 5726 | # do not overwrite the value of need_locks provided by the user |
| 5727 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 5728 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 5729 | hard_links=yes |
| 5730 | $rm conftest* |
| 5731 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 5732 | touch conftest.a |
| 5733 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 5734 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 5735 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 5736 | echo "${ECHO_T}$hard_links" >&6 |
| 5737 | if test "$hard_links" = no; then |
| 5738 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 5739 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 5740 | need_locks=warn |
| 5741 | fi |
| 5742 | else |
| 5743 | need_locks=no |
| 5744 | fi |
| 5745 | |
| 5746 | if test "$GCC" = yes; then |
| 5747 | # Check to see if options -fno-rtti -fno-exceptions are supported by compiler |
| 5748 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 5749 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 5750 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 5751 | save_CFLAGS="$CFLAGS" |
| 5752 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" |
| 5753 | compiler_rtti_exceptions=no |
| 5754 | cat >conftest.$ac_ext <<_ACEOF |
| 5755 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 5756 | /* confdefs.h. */ |
| 5757 | _ACEOF |
| 5758 | cat confdefs.h >>conftest.$ac_ext |
| 5759 | cat >>conftest.$ac_ext <<_ACEOF |
| 5760 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 5761 | |
| 5762 | int |
| 5763 | main () |
| 5764 | { |
| 5765 | int some_variable = 0; |
| 5766 | ; |
| 5767 | return 0; |
| 5768 | } |
| 5769 | _ACEOF |
| 5770 | rm -f conftest.$ac_objext |
| 5771 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5772 | (eval $ac_compile) 2>&5 |
| 5773 | ac_status=$? |
| 5774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5775 | (exit $ac_status); } && |
| 5776 | { ac_try='test -s conftest.$ac_objext' |
| 5777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5778 | (eval $ac_try) 2>&5 |
| 5779 | ac_status=$? |
| 5780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5781 | (exit $ac_status); }; }; then |
| 5782 | # The compiler can only warn and ignore the option if not recognized |
| 5783 | # So say no if there are warnings |
| 5784 | if test -s conftest.err; then |
| 5785 | compiler_rtti_exceptions=no |
| 5786 | else |
| 5787 | compiler_rtti_exceptions=yes |
| 5788 | fi |
| 5789 | |
| 5790 | else |
| 5791 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 5792 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5793 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 5794 | fi |
| 5795 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5796 | CFLAGS="$save_CFLAGS" |
| 5797 | echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5 |
| 5798 | echo "${ECHO_T}$compiler_rtti_exceptions" >&6 |
| 5799 | |
| 5800 | if test "$compiler_rtti_exceptions" = "yes"; then |
| 5801 | no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' |
| 5802 | else |
| 5803 | no_builtin_flag=' -fno-builtin' |
| 5804 | fi |
| 5805 | fi |
| 5806 | |
| 5807 | # See if the linker supports building shared libraries. |
| 5808 | echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5 |
| 5809 | echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 5810 | |
| 5811 | allow_undefined_flag= |
| 5812 | no_undefined_flag= |
| 5813 | need_lib_prefix=unknown |
| 5814 | need_version=unknown |
| 5815 | # when you set need_version to no, make sure it does not cause -set_version |
| 5816 | # flags to be left without arguments |
| 5817 | archive_cmds= |
| 5818 | archive_expsym_cmds= |
| 5819 | old_archive_from_new_cmds= |
| 5820 | old_archive_from_expsyms_cmds= |
| 5821 | export_dynamic_flag_spec= |
| 5822 | whole_archive_flag_spec= |
| 5823 | thread_safe_flag_spec= |
| 5824 | hardcode_into_libs=no |
| 5825 | hardcode_libdir_flag_spec= |
| 5826 | hardcode_libdir_separator= |
| 5827 | hardcode_direct=no |
| 5828 | hardcode_minus_L=no |
| 5829 | hardcode_shlibpath_var=unsupported |
| 5830 | runpath_var= |
| 5831 | link_all_deplibs=unknown |
| 5832 | always_export_symbols=no |
| 5833 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 5834 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 5835 | # included in the symbol list |
| 5836 | include_expsyms= |
| 5837 | # exclude_expsyms can be an egrep regular expression of symbols to exclude |
| 5838 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 5839 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 5840 | # as well as any symbol that contains `d'. |
| 5841 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 5842 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 5843 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 5844 | # the symbol is explicitly referenced. Since portable code cannot |
| 5845 | # rely on this symbol name, it's probably fine to never include it in |
| 5846 | # preloaded symbol tables. |
| 5847 | extract_expsyms_cmds= |
| 5848 | |
| 5849 | case $host_os in |
| 5850 | cygwin* | mingw* | pw32*) |
| 5851 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 5852 | # When not using gcc, we currently assume that we are using |
| 5853 | # Microsoft Visual C++. |
| 5854 | if test "$GCC" != yes; then |
| 5855 | with_gnu_ld=no |
| 5856 | fi |
| 5857 | ;; |
| 5858 | openbsd*) |
| 5859 | with_gnu_ld=no |
| 5860 | ;; |
| 5861 | esac |
| 5862 | |
| 5863 | ld_shlibs=yes |
| 5864 | if test "$with_gnu_ld" = yes; then |
| 5865 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 5866 | wlarc='${wl}' |
| 5867 | |
| 5868 | # See if GNU ld supports shared libraries. |
| 5869 | case $host_os in |
| 5870 | aix3* | aix4* | aix5*) |
| 5871 | # On AIX, the GNU linker is very broken |
| 5872 | # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. |
| 5873 | ld_shlibs=no |
| 5874 | cat <<EOF 1>&2 |
| 5875 | |
| 5876 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 5877 | *** to be unable to reliably create shared libraries on AIX. |
| 5878 | *** Therefore, libtool is disabling shared libraries support. If you |
| 5879 | *** really care for shared libraries, you may want to modify your PATH |
| 5880 | *** so that a non-GNU linker is found, and then restart. |
| 5881 | |
| 5882 | EOF |
| 5883 | ;; |
| 5884 | |
| 5885 | amigaos*) |
| 5886 | 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)' |
| 5887 | hardcode_libdir_flag_spec='-L$libdir' |
| 5888 | hardcode_minus_L=yes |
| 5889 | |
| 5890 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 5891 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 5892 | # to version 4, is to share data among multiple programs linked |
| 5893 | # with the same dynamic library. Since this doesn't match the |
| 5894 | # behavior of shared libraries on other platforms, we can use |
| 5895 | # them. |
| 5896 | ld_shlibs=no |
| 5897 | ;; |
| 5898 | |
| 5899 | beos*) |
| 5900 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 5901 | allow_undefined_flag=unsupported |
| 5902 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 5903 | # support --undefined. This deserves some investigation. FIXME |
| 5904 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5905 | else |
| 5906 | ld_shlibs=no |
| 5907 | fi |
| 5908 | ;; |
| 5909 | |
| 5910 | cygwin* | mingw* | pw32*) |
| 5911 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 5912 | # no search path for DLLs. |
| 5913 | hardcode_libdir_flag_spec='-L$libdir' |
| 5914 | allow_undefined_flag=unsupported |
| 5915 | always_export_symbols=yes |
| 5916 | |
| 5917 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ |
| 5918 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ |
| 5919 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ |
| 5920 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ |
| 5921 | else $CC -o impgen impgen.c ; fi)~ |
| 5922 | $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' |
| 5923 | |
| 5924 | old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' |
| 5925 | |
| 5926 | # cygwin and mingw dlls have different entry points and sets of symbols |
| 5927 | # to exclude. |
| 5928 | # FIXME: what about values for MSVC? |
| 5929 | dll_entry=__cygwin_dll_entry@12 |
| 5930 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ |
| 5931 | case $host_os in |
| 5932 | mingw*) |
| 5933 | # mingw values |
| 5934 | dll_entry=_DllMainCRTStartup@12 |
| 5935 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ |
| 5936 | ;; |
| 5937 | esac |
| 5938 | |
| 5939 | # mingw and cygwin differ, and it's simplest to just exclude the union |
| 5940 | # of the two symbol sets. |
| 5941 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 |
| 5942 | |
| 5943 | # recent cygwin and mingw systems supply a stub DllMain which the user |
| 5944 | # can override, but on older systems we have to supply one (in ltdll.c) |
| 5945 | if test "x$lt_cv_need_dllmain" = "xyes"; then |
| 5946 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
| 5947 | 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~ |
| 5948 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
| 5949 | else |
| 5950 | ltdll_obj= |
| 5951 | ltdll_cmds= |
| 5952 | fi |
| 5953 | |
| 5954 | # Extract the symbol export list from an `--export-all' def file, |
| 5955 | # then regenerate the def file from the symbol export list, so that |
| 5956 | # the compiled dll only exports the symbol export list. |
| 5957 | # Be careful not to strip the DATA tag left be newer dlltools. |
| 5958 | export_symbols_cmds="$ltdll_cmds"' |
| 5959 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
| 5960 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' |
| 5961 | |
| 5962 | # If the export-symbols file already is a .def file (1st line |
| 5963 | # is EXPORTS), use it as is. |
| 5964 | # If DATA tags from a recent dlltool are present, honour them! |
| 5965 | archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then |
| 5966 | cp $export_symbols $output_objdir/$soname-def; |
| 5967 | else |
| 5968 | echo EXPORTS > $output_objdir/$soname-def; |
| 5969 | _lt_hint=1; |
| 5970 | cat $export_symbols | while read symbol; do |
| 5971 | set dummy \$symbol; |
| 5972 | case \$# in |
| 5973 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
| 5974 | 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;; |
| 5975 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; |
| 5976 | esac; |
| 5977 | _lt_hint=`expr 1 + \$_lt_hint`; |
| 5978 | done; |
| 5979 | fi~ |
| 5980 | '"$ltdll_cmds"' |
| 5981 | $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~ |
| 5982 | $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~ |
| 5983 | $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~ |
| 5984 | $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~ |
| 5985 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' |
| 5986 | ;; |
| 5987 | |
| 5988 | netbsd*) |
| 5989 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 5990 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 5991 | wlarc= |
| 5992 | else |
| 5993 | archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5994 | archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 5995 | fi |
| 5996 | ;; |
| 5997 | |
| 5998 | solaris* | sysv5*) |
| 5999 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
| 6000 | ld_shlibs=no |
| 6001 | cat <<EOF 1>&2 |
| 6002 | |
| 6003 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 6004 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 6005 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 6006 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 6007 | *** your PATH or compiler configuration so that the native linker is |
| 6008 | *** used, and then restart. |
| 6009 | |
| 6010 | EOF |
| 6011 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 6012 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6013 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6014 | else |
| 6015 | ld_shlibs=no |
| 6016 | fi |
| 6017 | ;; |
| 6018 | |
| 6019 | sunos4*) |
| 6020 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 6021 | wlarc= |
| 6022 | hardcode_direct=yes |
| 6023 | hardcode_shlibpath_var=no |
| 6024 | ;; |
| 6025 | |
| 6026 | *) |
| 6027 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 6028 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6029 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6030 | else |
| 6031 | ld_shlibs=no |
| 6032 | fi |
| 6033 | ;; |
| 6034 | esac |
| 6035 | |
| 6036 | if test "$ld_shlibs" = yes; then |
| 6037 | runpath_var=LD_RUN_PATH |
| 6038 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 6039 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 6040 | case $host_os in |
| 6041 | cygwin* | mingw* | pw32*) |
| 6042 | # dlltool doesn't understand --whole-archive et. al. |
| 6043 | whole_archive_flag_spec= |
| 6044 | ;; |
| 6045 | *) |
| 6046 | # ancient GNU ld didn't support --whole-archive et. al. |
| 6047 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then |
| 6048 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 6049 | else |
| 6050 | whole_archive_flag_spec= |
| 6051 | fi |
| 6052 | ;; |
| 6053 | esac |
| 6054 | fi |
| 6055 | else |
| 6056 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 6057 | case $host_os in |
| 6058 | aix3*) |
| 6059 | allow_undefined_flag=unsupported |
| 6060 | always_export_symbols=yes |
| 6061 | 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' |
| 6062 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 6063 | # are no directories specified by -L. |
| 6064 | hardcode_minus_L=yes |
| 6065 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 6066 | # Neither direct hardcoding nor static linking is supported with a |
| 6067 | # broken collect2. |
| 6068 | hardcode_direct=unsupported |
| 6069 | fi |
| 6070 | ;; |
| 6071 | |
| 6072 | aix4* | aix5*) |
| 6073 | if test "$host_cpu" = ia64; then |
| 6074 | # On IA64, the linker does run time linking by default, so we don't |
| 6075 | # have to do anything special. |
| 6076 | aix_use_runtimelinking=no |
| 6077 | exp_sym_flag='-Bexport' |
| 6078 | no_entry_flag="" |
| 6079 | else |
| 6080 | aix_use_runtimelinking=no |
| 6081 | |
| 6082 | # Test if we are trying to use run time linking or normal |
| 6083 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 6084 | # need to do runtime linking. |
| 6085 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 6086 | for ld_flag in $LDFLAGS; do |
| 6087 | case $ld_flag in |
| 6088 | *-brtl*) |
| 6089 | aix_use_runtimelinking=yes |
| 6090 | break |
| 6091 | ;; |
| 6092 | esac |
| 6093 | done |
| 6094 | esac |
| 6095 | |
| 6096 | exp_sym_flag='-bexport' |
| 6097 | no_entry_flag='-bnoentry' |
| 6098 | fi |
| 6099 | |
| 6100 | # When large executables or shared objects are built, AIX ld can |
| 6101 | # have problems creating the table of contents. If linking a library |
| 6102 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 6103 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 6104 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 6105 | |
| 6106 | hardcode_direct=yes |
| 6107 | archive_cmds='' |
| 6108 | hardcode_libdir_separator=':' |
| 6109 | if test "$GCC" = yes; then |
| 6110 | case $host_os in aix4.[012]|aix4.[012].*) |
| 6111 | collect2name=`${CC} -print-prog-name=collect2` |
| 6112 | if test -f "$collect2name" && \ |
| 6113 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 6114 | then |
| 6115 | # We have reworked collect2 |
| 6116 | hardcode_direct=yes |
| 6117 | else |
| 6118 | # We have old collect2 |
| 6119 | hardcode_direct=unsupported |
| 6120 | # It fails to find uninstalled libraries when the uninstalled |
| 6121 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 6122 | # to unsupported forces relinking |
| 6123 | hardcode_minus_L=yes |
| 6124 | hardcode_libdir_flag_spec='-L$libdir' |
| 6125 | hardcode_libdir_separator= |
| 6126 | fi |
| 6127 | esac |
| 6128 | |
| 6129 | shared_flag='-shared' |
| 6130 | else |
| 6131 | # not using gcc |
| 6132 | if test "$host_cpu" = ia64; then |
| 6133 | shared_flag='${wl}-G' |
| 6134 | else |
| 6135 | if test "$aix_use_runtimelinking" = yes; then |
| 6136 | shared_flag='${wl}-G' |
| 6137 | else |
| 6138 | shared_flag='${wl}-bM:SRE' |
| 6139 | fi |
| 6140 | fi |
| 6141 | fi |
| 6142 | |
| 6143 | # It seems that -bexpall can do strange things, so it is better to |
| 6144 | # generate a list of symbols to export. |
| 6145 | always_export_symbols=yes |
| 6146 | if test "$aix_use_runtimelinking" = yes; then |
| 6147 | # Warning - without using the other runtime loading flags (-brtl), |
| 6148 | # -berok will link without error, but may produce a broken library. |
| 6149 | allow_undefined_flag='-berok' |
| 6150 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' |
| 6151 | 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" |
| 6152 | else |
| 6153 | if test "$host_cpu" = ia64; then |
| 6154 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 6155 | allow_undefined_flag="-z nodefs" |
| 6156 | 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" |
| 6157 | else |
| 6158 | hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' |
| 6159 | # Warning - without using the other run time loading flags, |
| 6160 | # -berok will link without error, but may produce a broken library. |
| 6161 | allow_undefined_flag='${wl}-berok' |
| 6162 | # This is a bit strange, but is similar to how AIX traditionally builds |
| 6163 | # it's shared libraries. |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 6164 | 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 $output_objdir/$libname$release.a $output_objdir/$soname' |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 6165 | fi |
| 6166 | fi |
| 6167 | ;; |
| 6168 | |
| 6169 | amigaos*) |
| 6170 | 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)' |
| 6171 | hardcode_libdir_flag_spec='-L$libdir' |
| 6172 | hardcode_minus_L=yes |
| 6173 | # see comment about different semantics on the GNU ld section |
| 6174 | ld_shlibs=no |
| 6175 | ;; |
| 6176 | |
| 6177 | cygwin* | mingw* | pw32*) |
| 6178 | # When not using gcc, we currently assume that we are using |
| 6179 | # Microsoft Visual C++. |
| 6180 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 6181 | # no search path for DLLs. |
| 6182 | hardcode_libdir_flag_spec=' ' |
| 6183 | allow_undefined_flag=unsupported |
| 6184 | # Tell ltmain to make .lib files, not .a files. |
| 6185 | libext=lib |
| 6186 | # FIXME: Setting linknames here is a bad hack. |
| 6187 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 6188 | # The linker will automatically build a .lib file if we build a DLL. |
| 6189 | old_archive_from_new_cmds='true' |
| 6190 | # FIXME: Should let the user specify the lib program. |
| 6191 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 6192 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 6193 | ;; |
| 6194 | |
| 6195 | darwin* | rhapsody*) |
| 6196 | case "$host_os" in |
| 6197 | rhapsody* | darwin1.[012]) |
| 6198 | allow_undefined_flag='-undefined suppress' |
| 6199 | ;; |
| 6200 | *) # Darwin 1.3 on |
| 6201 | allow_undefined_flag='-flat_namespace -undefined suppress' |
| 6202 | ;; |
| 6203 | esac |
| 6204 | # FIXME: Relying on posixy $() will cause problems for |
| 6205 | # cross-compilation, but unfortunately the echo tests do not |
| 6206 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles |
| 6207 | # `"' quotes if we put them in here... so don't! |
| 6208 | 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)' |
| 6209 | # We need to add '_' to the symbols in $export_symbols first |
| 6210 | #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' |
| 6211 | hardcode_direct=yes |
| 6212 | hardcode_shlibpath_var=no |
| 6213 | whole_archive_flag_spec='-all_load $convenience' |
| 6214 | ;; |
| 6215 | |
| 6216 | freebsd1*) |
| 6217 | ld_shlibs=no |
| 6218 | ;; |
| 6219 | |
| 6220 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 6221 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 6222 | # does not break anything, and helps significantly (at the cost of a little |
| 6223 | # extra space). |
| 6224 | freebsd2.2*) |
| 6225 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 6226 | hardcode_libdir_flag_spec='-R$libdir' |
| 6227 | hardcode_direct=yes |
| 6228 | hardcode_shlibpath_var=no |
| 6229 | ;; |
| 6230 | |
| 6231 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 6232 | freebsd2*) |
| 6233 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 6234 | hardcode_direct=yes |
| 6235 | hardcode_minus_L=yes |
| 6236 | hardcode_shlibpath_var=no |
| 6237 | ;; |
| 6238 | |
| 6239 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 6240 | freebsd*) |
| 6241 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 6242 | hardcode_libdir_flag_spec='-R$libdir' |
| 6243 | hardcode_direct=yes |
| 6244 | hardcode_shlibpath_var=no |
| 6245 | ;; |
| 6246 | |
| 6247 | hpux9* | hpux10* | hpux11*) |
| 6248 | case $host_os in |
| 6249 | 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' ;; |
| 6250 | *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; |
| 6251 | esac |
| 6252 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 6253 | hardcode_libdir_separator=: |
| 6254 | hardcode_direct=yes |
| 6255 | hardcode_minus_L=yes # Not in the search PATH, but as the default |
| 6256 | # location of the library. |
| 6257 | export_dynamic_flag_spec='${wl}-E' |
| 6258 | ;; |
| 6259 | |
| 6260 | irix5* | irix6* | nonstopux*) |
| 6261 | if test "$GCC" = yes; then |
| 6262 | 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' |
| 6263 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 6264 | else |
| 6265 | 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' |
| 6266 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 6267 | fi |
| 6268 | hardcode_libdir_separator=: |
| 6269 | link_all_deplibs=yes |
| 6270 | ;; |
| 6271 | |
| 6272 | netbsd*) |
| 6273 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 6274 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 6275 | else |
| 6276 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 6277 | fi |
| 6278 | hardcode_libdir_flag_spec='-R$libdir' |
| 6279 | hardcode_direct=yes |
| 6280 | hardcode_shlibpath_var=no |
| 6281 | ;; |
| 6282 | |
| 6283 | newsos6) |
| 6284 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6285 | hardcode_direct=yes |
| 6286 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 6287 | hardcode_libdir_separator=: |
| 6288 | hardcode_shlibpath_var=no |
| 6289 | ;; |
| 6290 | |
| 6291 | openbsd*) |
| 6292 | hardcode_direct=yes |
| 6293 | hardcode_shlibpath_var=no |
| 6294 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 6295 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 6296 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 6297 | export_dynamic_flag_spec='${wl}-E' |
| 6298 | else |
| 6299 | case "$host_os" in |
| 6300 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 6301 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 6302 | hardcode_libdir_flag_spec='-R$libdir' |
| 6303 | ;; |
| 6304 | *) |
| 6305 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 6306 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 6307 | ;; |
| 6308 | esac |
| 6309 | fi |
| 6310 | ;; |
| 6311 | |
| 6312 | os2*) |
| 6313 | hardcode_libdir_flag_spec='-L$libdir' |
| 6314 | hardcode_minus_L=yes |
| 6315 | allow_undefined_flag=unsupported |
| 6316 | 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' |
| 6317 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 6318 | ;; |
| 6319 | |
| 6320 | osf3*) |
| 6321 | if test "$GCC" = yes; then |
| 6322 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 6323 | 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' |
| 6324 | else |
| 6325 | allow_undefined_flag=' -expect_unresolved \*' |
| 6326 | 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' |
| 6327 | fi |
| 6328 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 6329 | hardcode_libdir_separator=: |
| 6330 | ;; |
| 6331 | |
| 6332 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 6333 | if test "$GCC" = yes; then |
| 6334 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 6335 | 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' |
| 6336 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 6337 | else |
| 6338 | allow_undefined_flag=' -expect_unresolved \*' |
| 6339 | 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' |
| 6340 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 6341 | $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' |
| 6342 | |
| 6343 | #Both c and cxx compiler support -rpath directly |
| 6344 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 6345 | fi |
| 6346 | hardcode_libdir_separator=: |
| 6347 | ;; |
| 6348 | |
| 6349 | sco3.2v5*) |
| 6350 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6351 | hardcode_shlibpath_var=no |
| 6352 | runpath_var=LD_RUN_PATH |
| 6353 | hardcode_runpath_var=yes |
| 6354 | export_dynamic_flag_spec='${wl}-Bexport' |
| 6355 | ;; |
| 6356 | |
| 6357 | solaris*) |
| 6358 | # gcc --version < 3.0 without binutils cannot create self contained |
| 6359 | # shared libraries reliably, requiring libgcc.a to resolve some of |
| 6360 | # the object symbols generated in some cases. Libraries that use |
| 6361 | # assert need libgcc.a to resolve __eprintf, for example. Linking |
| 6362 | # a copy of libgcc.a into every shared library to guarantee resolving |
| 6363 | # such symbols causes other problems: According to Tim Van Holder |
| 6364 | # <tim.van.holder@pandora.be>, C++ libraries end up with a separate |
| 6365 | # (to the application) exception stack for one thing. |
| 6366 | no_undefined_flag=' -z defs' |
| 6367 | if test "$GCC" = yes; then |
| 6368 | case `$CC --version 2>/dev/null` in |
| 6369 | [12].*) |
| 6370 | cat <<EOF 1>&2 |
| 6371 | |
| 6372 | *** Warning: Releases of GCC earlier than version 3.0 cannot reliably |
| 6373 | *** create self contained shared libraries on Solaris systems, without |
| 6374 | *** introducing a dependency on libgcc.a. Therefore, libtool is disabling |
| 6375 | *** -no-undefined support, which will at least allow you to build shared |
| 6376 | *** libraries. However, you may find that when you link such libraries |
| 6377 | *** into an application without using GCC, you have to manually add |
| 6378 | *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to |
| 6379 | *** upgrade to a newer version of GCC. Another option is to rebuild your |
| 6380 | *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. |
| 6381 | |
| 6382 | EOF |
| 6383 | no_undefined_flag= |
| 6384 | ;; |
| 6385 | esac |
| 6386 | fi |
| 6387 | # $CC -shared without GNU ld will not create a library from C++ |
| 6388 | # object files and a static libstdc++, better avoid it by now |
| 6389 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6390 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 6391 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 6392 | hardcode_libdir_flag_spec='-R$libdir' |
| 6393 | hardcode_shlibpath_var=no |
| 6394 | case $host_os in |
| 6395 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 6396 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 6397 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 6398 | esac |
| 6399 | link_all_deplibs=yes |
| 6400 | ;; |
| 6401 | |
| 6402 | sunos4*) |
| 6403 | if test "x$host_vendor" = xsequent; then |
| 6404 | # Use $CC to link under sequent, because it throws in some extra .o |
| 6405 | # files that make .init and .fini sections work. |
| 6406 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6407 | else |
| 6408 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 6409 | fi |
| 6410 | hardcode_libdir_flag_spec='-L$libdir' |
| 6411 | hardcode_direct=yes |
| 6412 | hardcode_minus_L=yes |
| 6413 | hardcode_shlibpath_var=no |
| 6414 | ;; |
| 6415 | |
| 6416 | sysv4) |
| 6417 | case $host_vendor in |
| 6418 | sni) |
| 6419 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6420 | hardcode_direct=yes # is this really true??? |
| 6421 | ;; |
| 6422 | siemens) |
| 6423 | ## LD is ld it makes a PLAMLIB |
| 6424 | ## CC just makes a GrossModule. |
| 6425 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 6426 | reload_cmds='$CC -r -o $output$reload_objs' |
| 6427 | hardcode_direct=no |
| 6428 | ;; |
| 6429 | motorola) |
| 6430 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6431 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 6432 | ;; |
| 6433 | esac |
| 6434 | runpath_var='LD_RUN_PATH' |
| 6435 | hardcode_shlibpath_var=no |
| 6436 | ;; |
| 6437 | |
| 6438 | sysv4.3*) |
| 6439 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6440 | hardcode_shlibpath_var=no |
| 6441 | export_dynamic_flag_spec='-Bexport' |
| 6442 | ;; |
| 6443 | |
| 6444 | sysv5*) |
| 6445 | no_undefined_flag=' -z text' |
| 6446 | # $CC -shared without GNU ld will not create a library from C++ |
| 6447 | # object files and a static libstdc++, better avoid it by now |
| 6448 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6449 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 6450 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 6451 | hardcode_libdir_flag_spec= |
| 6452 | hardcode_shlibpath_var=no |
| 6453 | runpath_var='LD_RUN_PATH' |
| 6454 | ;; |
| 6455 | |
| 6456 | uts4*) |
| 6457 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6458 | hardcode_libdir_flag_spec='-L$libdir' |
| 6459 | hardcode_shlibpath_var=no |
| 6460 | ;; |
| 6461 | |
| 6462 | dgux*) |
| 6463 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6464 | hardcode_libdir_flag_spec='-L$libdir' |
| 6465 | hardcode_shlibpath_var=no |
| 6466 | ;; |
| 6467 | |
| 6468 | sysv4*MP*) |
| 6469 | if test -d /usr/nec; then |
| 6470 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6471 | hardcode_shlibpath_var=no |
| 6472 | runpath_var=LD_RUN_PATH |
| 6473 | hardcode_runpath_var=yes |
| 6474 | ld_shlibs=yes |
| 6475 | fi |
| 6476 | ;; |
| 6477 | |
| 6478 | sysv4.2uw2*) |
| 6479 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 6480 | hardcode_direct=yes |
| 6481 | hardcode_minus_L=no |
| 6482 | hardcode_shlibpath_var=no |
| 6483 | hardcode_runpath_var=yes |
| 6484 | runpath_var=LD_RUN_PATH |
| 6485 | ;; |
| 6486 | |
| 6487 | sysv5uw7* | unixware7*) |
| 6488 | no_undefined_flag='${wl}-z ${wl}text' |
| 6489 | if test "$GCC" = yes; then |
| 6490 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6491 | else |
| 6492 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6493 | fi |
| 6494 | runpath_var='LD_RUN_PATH' |
| 6495 | hardcode_shlibpath_var=no |
| 6496 | ;; |
| 6497 | |
| 6498 | *) |
| 6499 | ld_shlibs=no |
| 6500 | ;; |
| 6501 | esac |
| 6502 | fi |
| 6503 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 6504 | echo "${ECHO_T}$ld_shlibs" >&6 |
| 6505 | test "$ld_shlibs" = no && can_build_shared=no |
| 6506 | |
| 6507 | # Check hardcoding attributes. |
| 6508 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 6509 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 6510 | hardcode_action= |
| 6511 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 6512 | test -n "$runpath_var"; then |
| 6513 | |
| 6514 | # We can hardcode non-existant directories. |
| 6515 | if test "$hardcode_direct" != no && |
| 6516 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 6517 | # have to relink, otherwise we might link with an installed library |
| 6518 | # when we should be linking with a yet-to-be-installed one |
| 6519 | ## test "$hardcode_shlibpath_var" != no && |
| 6520 | test "$hardcode_minus_L" != no; then |
| 6521 | # Linking always hardcodes the temporary library directory. |
| 6522 | hardcode_action=relink |
| 6523 | else |
| 6524 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 6525 | hardcode_action=immediate |
| 6526 | fi |
| 6527 | else |
| 6528 | # We cannot hardcode anything, or else we can only hardcode existing |
| 6529 | # directories. |
| 6530 | hardcode_action=unsupported |
| 6531 | fi |
| 6532 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 6533 | echo "${ECHO_T}$hardcode_action" >&6 |
| 6534 | |
| 6535 | striplib= |
| 6536 | old_striplib= |
| 6537 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 6538 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 6539 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 6540 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 6541 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 6542 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6543 | echo "${ECHO_T}yes" >&6 |
| 6544 | else |
| 6545 | echo "$as_me:$LINENO: result: no" >&5 |
| 6546 | echo "${ECHO_T}no" >&6 |
| 6547 | fi |
| 6548 | |
| 6549 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 6550 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 6551 | |
| 6552 | # PORTME Fill in your ld.so characteristics |
| 6553 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 6554 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 6555 | library_names_spec= |
| 6556 | libname_spec='lib$name' |
| 6557 | soname_spec= |
| 6558 | postinstall_cmds= |
| 6559 | postuninstall_cmds= |
| 6560 | finish_cmds= |
| 6561 | finish_eval= |
| 6562 | shlibpath_var= |
| 6563 | shlibpath_overrides_runpath=unknown |
| 6564 | version_type=none |
| 6565 | dynamic_linker="$host_os ld.so" |
| 6566 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 6567 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 6568 | |
| 6569 | case $host_os in |
| 6570 | aix3*) |
| 6571 | version_type=linux |
| 6572 | library_names_spec='${libname}${release}.so$versuffix $libname.a' |
| 6573 | shlibpath_var=LIBPATH |
| 6574 | |
| 6575 | # AIX has no versioning support, so we append a major version to the name. |
| 6576 | soname_spec='${libname}${release}.so$major' |
| 6577 | ;; |
| 6578 | |
| 6579 | aix4* | aix5*) |
| 6580 | version_type=linux |
| 6581 | need_lib_prefix=no |
| 6582 | need_version=no |
| 6583 | hardcode_into_libs=yes |
| 6584 | if test "$host_cpu" = ia64; then |
| 6585 | # AIX 5 supports IA64 |
| 6586 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' |
| 6587 | shlibpath_var=LD_LIBRARY_PATH |
| 6588 | else |
| 6589 | # With GCC up to 2.95.x, collect2 would create an import file |
| 6590 | # for dependence libraries. The import file would start with |
| 6591 | # the line `#! .'. This would cause the generated library to |
| 6592 | # depend on `.', always an invalid library. This was fixed in |
| 6593 | # development snapshots of GCC prior to 3.0. |
| 6594 | case $host_os in |
| 6595 | aix4 | aix4.[01] | aix4.[01].*) |
| 6596 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 6597 | echo ' yes ' |
| 6598 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 6599 | : |
| 6600 | else |
| 6601 | can_build_shared=no |
| 6602 | fi |
| 6603 | ;; |
| 6604 | esac |
| 6605 | # AIX (on Power*) has no versioning support, so currently we can |
| 6606 | # not hardcode correct soname into executable. Probably we can |
| 6607 | # add versioning support to collect2, so additional links can |
| 6608 | # be useful in future. |
| 6609 | if test "$aix_use_runtimelinking" = yes; then |
| 6610 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 6611 | # instead of lib<name>.a to let people know that these are not |
| 6612 | # typical AIX shared libraries. |
| 6613 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6614 | else |
| 6615 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 6616 | # and later when we are not doing run time linking. |
| 6617 | library_names_spec='${libname}${release}.a $libname.a' |
| 6618 | soname_spec='${libname}${release}.so$major' |
| 6619 | fi |
| 6620 | shlibpath_var=LIBPATH |
| 6621 | fi |
| 6622 | hardcode_into_libs=yes |
| 6623 | ;; |
| 6624 | |
| 6625 | amigaos*) |
| 6626 | library_names_spec='$libname.ixlibrary $libname.a' |
| 6627 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 6628 | 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' |
| 6629 | ;; |
| 6630 | |
| 6631 | beos*) |
| 6632 | library_names_spec='${libname}.so' |
| 6633 | dynamic_linker="$host_os ld.so" |
| 6634 | shlibpath_var=LIBRARY_PATH |
| 6635 | ;; |
| 6636 | |
| 6637 | bsdi4*) |
| 6638 | version_type=linux |
| 6639 | need_version=no |
| 6640 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6641 | soname_spec='${libname}${release}.so$major' |
| 6642 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 6643 | shlibpath_var=LD_LIBRARY_PATH |
| 6644 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 6645 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 6646 | export_dynamic_flag_spec=-rdynamic |
| 6647 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 6648 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 6649 | # libtool to hard-code these into programs |
| 6650 | ;; |
| 6651 | |
| 6652 | cygwin* | mingw* | pw32*) |
| 6653 | version_type=windows |
| 6654 | need_version=no |
| 6655 | need_lib_prefix=no |
| 6656 | case $GCC,$host_os in |
| 6657 | yes,cygwin*) |
| 6658 | library_names_spec='$libname.dll.a' |
| 6659 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
| 6660 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ |
| 6661 | dldir=$destdir/`dirname \$dlpath`~ |
| 6662 | test -d \$dldir || mkdir -p \$dldir~ |
| 6663 | $install_prog .libs/$dlname \$dldir/$dlname' |
| 6664 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 6665 | dlpath=$dir/\$dldll~ |
| 6666 | $rm \$dlpath' |
| 6667 | ;; |
| 6668 | yes,mingw*) |
| 6669 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
| 6670 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"` |
| 6671 | ;; |
| 6672 | yes,pw32*) |
| 6673 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' |
| 6674 | ;; |
| 6675 | *) |
| 6676 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' |
| 6677 | ;; |
| 6678 | esac |
| 6679 | dynamic_linker='Win32 ld.exe' |
| 6680 | # FIXME: first we should search . and the directory the executable is in |
| 6681 | shlibpath_var=PATH |
| 6682 | ;; |
| 6683 | |
| 6684 | darwin* | rhapsody*) |
| 6685 | dynamic_linker="$host_os dyld" |
| 6686 | version_type=darwin |
| 6687 | need_lib_prefix=no |
| 6688 | need_version=no |
| 6689 | # FIXME: Relying on posixy $() will cause problems for |
| 6690 | # cross-compilation, but unfortunately the echo tests do not |
| 6691 | # yet detect zsh echo's removal of \ escapes. |
| 6692 | 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)' |
| 6693 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' |
| 6694 | shlibpath_overrides_runpath=yes |
| 6695 | shlibpath_var=DYLD_LIBRARY_PATH |
| 6696 | ;; |
| 6697 | |
| 6698 | freebsd1*) |
| 6699 | dynamic_linker=no |
| 6700 | ;; |
| 6701 | |
| 6702 | freebsd*-gnu*) |
| 6703 | version_type=linux |
| 6704 | need_lib_prefix=no |
| 6705 | need_version=no |
| 6706 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6707 | soname_spec='${libname}${release}.so$major' |
| 6708 | shlibpath_var=LD_LIBRARY_PATH |
| 6709 | shlibpath_overrides_runpath=no |
| 6710 | hardcode_into_libs=yes |
| 6711 | dynamic_linker='GNU/FreeBSD ld.so' |
| 6712 | ;; |
| 6713 | |
| 6714 | freebsd*) |
| 6715 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 6716 | version_type=freebsd-$objformat |
| 6717 | case $version_type in |
| 6718 | freebsd-elf*) |
| 6719 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
| 6720 | need_version=no |
| 6721 | need_lib_prefix=no |
| 6722 | ;; |
| 6723 | freebsd-*) |
| 6724 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' |
| 6725 | need_version=yes |
| 6726 | ;; |
| 6727 | esac |
| 6728 | shlibpath_var=LD_LIBRARY_PATH |
| 6729 | case $host_os in |
| 6730 | freebsd2*) |
| 6731 | shlibpath_overrides_runpath=yes |
| 6732 | ;; |
| 6733 | *) |
| 6734 | shlibpath_overrides_runpath=no |
| 6735 | hardcode_into_libs=yes |
| 6736 | ;; |
| 6737 | esac |
| 6738 | ;; |
| 6739 | |
| 6740 | gnu*) |
| 6741 | version_type=linux |
| 6742 | need_lib_prefix=no |
| 6743 | need_version=no |
| 6744 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' |
| 6745 | soname_spec='${libname}${release}.so$major' |
| 6746 | shlibpath_var=LD_LIBRARY_PATH |
| 6747 | hardcode_into_libs=yes |
| 6748 | ;; |
| 6749 | |
| 6750 | hpux9* | hpux10* | hpux11*) |
| 6751 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 6752 | # link against other versions. |
| 6753 | dynamic_linker="$host_os dld.sl" |
| 6754 | version_type=sunos |
| 6755 | need_lib_prefix=no |
| 6756 | need_version=no |
| 6757 | shlibpath_var=SHLIB_PATH |
| 6758 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 6759 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' |
| 6760 | soname_spec='${libname}${release}.sl$major' |
| 6761 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 6762 | postinstall_cmds='chmod 555 $lib' |
| 6763 | ;; |
| 6764 | |
| 6765 | irix5* | irix6* | nonstopux*) |
| 6766 | case $host_os in |
| 6767 | nonstopux*) version_type=nonstopux ;; |
| 6768 | *) version_type=irix ;; |
| 6769 | esac |
| 6770 | need_lib_prefix=no |
| 6771 | need_version=no |
| 6772 | soname_spec='${libname}${release}.so$major' |
| 6773 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
| 6774 | case $host_os in |
| 6775 | irix5* | nonstopux*) |
| 6776 | libsuff= shlibsuff= |
| 6777 | ;; |
| 6778 | *) |
| 6779 | case $LD in # libtool.m4 will add one of these switches to LD |
| 6780 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; |
| 6781 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 6782 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 6783 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 6784 | esac |
| 6785 | ;; |
| 6786 | esac |
| 6787 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 6788 | shlibpath_overrides_runpath=no |
| 6789 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 6790 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 6791 | ;; |
| 6792 | |
| 6793 | # No shared lib support for Linux oldld, aout, or coff. |
| 6794 | linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) |
| 6795 | dynamic_linker=no |
| 6796 | ;; |
| 6797 | |
| 6798 | # This must be Linux ELF. |
| 6799 | linux-gnu*) |
| 6800 | version_type=linux |
| 6801 | need_lib_prefix=no |
| 6802 | need_version=no |
| 6803 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6804 | soname_spec='${libname}${release}.so$major' |
| 6805 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 6806 | shlibpath_var=LD_LIBRARY_PATH |
| 6807 | shlibpath_overrides_runpath=no |
| 6808 | # This implies no fast_install, which is unacceptable. |
| 6809 | # Some rework will be needed to allow for fast_install |
| 6810 | # before this can be enabled. |
| 6811 | hardcode_into_libs=yes |
| 6812 | |
| 6813 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 6814 | # powerpc, because MkLinux only supported shared libraries with the |
| 6815 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 6816 | # most powerpc-linux boxes support dynamic linking these days and |
| 6817 | # people can always --disable-shared, the test was removed, and we |
| 6818 | # assume the GNU/Linux dynamic linker is in use. |
| 6819 | dynamic_linker='GNU/Linux ld.so' |
| 6820 | ;; |
| 6821 | |
| 6822 | netbsd*) |
| 6823 | version_type=sunos |
| 6824 | need_lib_prefix=no |
| 6825 | need_version=no |
| 6826 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 6827 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 6828 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 6829 | dynamic_linker='NetBSD (a.out) ld.so' |
| 6830 | else |
| 6831 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' |
| 6832 | soname_spec='${libname}${release}.so$major' |
| 6833 | dynamic_linker='NetBSD ld.elf_so' |
| 6834 | fi |
| 6835 | shlibpath_var=LD_LIBRARY_PATH |
| 6836 | shlibpath_overrides_runpath=yes |
| 6837 | hardcode_into_libs=yes |
| 6838 | ;; |
| 6839 | |
| 6840 | newsos6) |
| 6841 | version_type=linux |
| 6842 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6843 | shlibpath_var=LD_LIBRARY_PATH |
| 6844 | shlibpath_overrides_runpath=yes |
| 6845 | ;; |
| 6846 | |
| 6847 | openbsd*) |
| 6848 | version_type=sunos |
| 6849 | need_lib_prefix=no |
| 6850 | need_version=no |
| 6851 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 6852 | case "$host_os" in |
| 6853 | openbsd2.[89] | openbsd2.[89].*) |
| 6854 | shlibpath_overrides_runpath=no |
| 6855 | ;; |
| 6856 | *) |
| 6857 | shlibpath_overrides_runpath=yes |
| 6858 | ;; |
| 6859 | esac |
| 6860 | else |
| 6861 | shlibpath_overrides_runpath=yes |
| 6862 | fi |
| 6863 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 6864 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 6865 | shlibpath_var=LD_LIBRARY_PATH |
| 6866 | ;; |
| 6867 | |
| 6868 | os2*) |
| 6869 | libname_spec='$name' |
| 6870 | need_lib_prefix=no |
| 6871 | library_names_spec='$libname.dll $libname.a' |
| 6872 | dynamic_linker='OS/2 ld.exe' |
| 6873 | shlibpath_var=LIBPATH |
| 6874 | ;; |
| 6875 | |
| 6876 | osf3* | osf4* | osf5*) |
| 6877 | version_type=osf |
| 6878 | need_version=no |
| 6879 | need_lib_prefix=no |
| 6880 | soname_spec='${libname}${release}.so$major' |
| 6881 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6882 | shlibpath_var=LD_LIBRARY_PATH |
| 6883 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 6884 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 6885 | hardcode_into_libs=yes |
| 6886 | ;; |
| 6887 | |
| 6888 | sco3.2v5*) |
| 6889 | version_type=osf |
| 6890 | soname_spec='${libname}${release}.so$major' |
| 6891 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6892 | shlibpath_var=LD_LIBRARY_PATH |
| 6893 | ;; |
| 6894 | |
| 6895 | solaris*) |
| 6896 | version_type=linux |
| 6897 | need_lib_prefix=no |
| 6898 | need_version=no |
| 6899 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6900 | soname_spec='${libname}${release}.so$major' |
| 6901 | shlibpath_var=LD_LIBRARY_PATH |
| 6902 | shlibpath_overrides_runpath=yes |
| 6903 | hardcode_into_libs=yes |
| 6904 | # ldd complains unless libraries are executable |
| 6905 | postinstall_cmds='chmod +x $lib' |
| 6906 | ;; |
| 6907 | |
| 6908 | sunos4*) |
| 6909 | version_type=sunos |
| 6910 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 6911 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 6912 | shlibpath_var=LD_LIBRARY_PATH |
| 6913 | shlibpath_overrides_runpath=yes |
| 6914 | if test "$with_gnu_ld" = yes; then |
| 6915 | need_lib_prefix=no |
| 6916 | fi |
| 6917 | need_version=yes |
| 6918 | ;; |
| 6919 | |
| 6920 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 6921 | version_type=linux |
| 6922 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6923 | soname_spec='${libname}${release}.so$major' |
| 6924 | shlibpath_var=LD_LIBRARY_PATH |
| 6925 | case $host_vendor in |
| 6926 | sni) |
| 6927 | shlibpath_overrides_runpath=no |
| 6928 | need_lib_prefix=no |
| 6929 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 6930 | runpath_var=LD_RUN_PATH |
| 6931 | ;; |
| 6932 | siemens) |
| 6933 | need_lib_prefix=no |
| 6934 | ;; |
| 6935 | motorola) |
| 6936 | need_lib_prefix=no |
| 6937 | need_version=no |
| 6938 | shlibpath_overrides_runpath=no |
| 6939 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 6940 | ;; |
| 6941 | esac |
| 6942 | ;; |
| 6943 | |
| 6944 | uts4*) |
| 6945 | version_type=linux |
| 6946 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6947 | soname_spec='${libname}${release}.so$major' |
| 6948 | shlibpath_var=LD_LIBRARY_PATH |
| 6949 | ;; |
| 6950 | |
| 6951 | dgux*) |
| 6952 | version_type=linux |
| 6953 | need_lib_prefix=no |
| 6954 | need_version=no |
| 6955 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 6956 | soname_spec='${libname}${release}.so$major' |
| 6957 | shlibpath_var=LD_LIBRARY_PATH |
| 6958 | ;; |
| 6959 | |
| 6960 | sysv4*MP*) |
| 6961 | if test -d /usr/nec ;then |
| 6962 | version_type=linux |
| 6963 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' |
| 6964 | soname_spec='$libname.so.$major' |
| 6965 | shlibpath_var=LD_LIBRARY_PATH |
| 6966 | fi |
| 6967 | ;; |
| 6968 | |
| 6969 | *) |
| 6970 | dynamic_linker=no |
| 6971 | ;; |
| 6972 | esac |
| 6973 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 6974 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 6975 | test "$dynamic_linker" = no && can_build_shared=no |
| 6976 | |
| 6977 | # Report the final consequences. |
| 6978 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 6979 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 6980 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 6981 | echo "${ECHO_T}$can_build_shared" >&6 |
| 6982 | |
| 6983 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 6984 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 6985 | test "$can_build_shared" = "no" && enable_shared=no |
| 6986 | |
| 6987 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 6988 | # are all built from PIC. |
| 6989 | case "$host_os" in |
| 6990 | aix3*) |
| 6991 | test "$enable_shared" = yes && enable_static=no |
| 6992 | if test -n "$RANLIB"; then |
| 6993 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 6994 | postinstall_cmds='$RANLIB $lib' |
| 6995 | fi |
| 6996 | ;; |
| 6997 | |
| 6998 | aix4*) |
| 6999 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 7000 | test "$enable_shared" = yes && enable_static=no |
| 7001 | fi |
| 7002 | ;; |
| 7003 | esac |
| 7004 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 7005 | echo "${ECHO_T}$enable_shared" >&6 |
| 7006 | |
| 7007 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 7008 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 7009 | # Make sure either enable_shared or enable_static is yes. |
| 7010 | test "$enable_shared" = yes || enable_static=yes |
| 7011 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 7012 | echo "${ECHO_T}$enable_static" >&6 |
| 7013 | |
| 7014 | if test "$hardcode_action" = relink; then |
| 7015 | # Fast installation is not supported |
| 7016 | enable_fast_install=no |
| 7017 | elif test "$shlibpath_overrides_runpath" = yes || |
| 7018 | test "$enable_shared" = no; then |
| 7019 | # Fast installation is not necessary |
| 7020 | enable_fast_install=needless |
| 7021 | fi |
| 7022 | |
| 7023 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 7024 | if test "$GCC" = yes; then |
| 7025 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 7026 | fi |
| 7027 | |
| 7028 | if test "x$enable_dlopen" != xyes; then |
| 7029 | enable_dlopen=unknown |
| 7030 | enable_dlopen_self=unknown |
| 7031 | enable_dlopen_self_static=unknown |
| 7032 | else |
| 7033 | lt_cv_dlopen=no |
| 7034 | lt_cv_dlopen_libs= |
| 7035 | |
| 7036 | case $host_os in |
| 7037 | beos*) |
| 7038 | lt_cv_dlopen="load_add_on" |
| 7039 | lt_cv_dlopen_libs= |
| 7040 | lt_cv_dlopen_self=yes |
| 7041 | ;; |
| 7042 | |
| 7043 | cygwin* | mingw* | pw32*) |
| 7044 | lt_cv_dlopen="LoadLibrary" |
| 7045 | lt_cv_dlopen_libs= |
| 7046 | ;; |
| 7047 | |
| 7048 | *) |
| 7049 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 7050 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 7051 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 7052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7053 | else |
| 7054 | cat >conftest.$ac_ext <<_ACEOF |
| 7055 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 7056 | /* confdefs.h. */ |
| 7057 | _ACEOF |
| 7058 | cat confdefs.h >>conftest.$ac_ext |
| 7059 | cat >>conftest.$ac_ext <<_ACEOF |
| 7060 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7061 | /* System header to define __stub macros and hopefully few prototypes, |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 7062 | which can conflict with char shl_load (); below. |
| 7063 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7064 | <limits.h> exists even on freestanding compilers. */ |
| 7065 | #ifdef __STDC__ |
| 7066 | # include <limits.h> |
| 7067 | #else |
| 7068 | # include <assert.h> |
| 7069 | #endif |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7070 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7071 | #ifdef __cplusplus |
| 7072 | extern "C" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 7073 | { |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7074 | #endif |
| 7075 | /* We use char because int might match the return type of a gcc2 |
| 7076 | builtin and then its argument prototype would still apply. */ |
| 7077 | char shl_load (); |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7078 | /* The GNU C library defines this for functions which it implements |
| 7079 | to always fail with ENOSYS. Some functions are actually named |
| 7080 | something starting with __ and the normal name is an alias. */ |
| 7081 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 7082 | choke me |
| 7083 | #else |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 7084 | char (*f) () = shl_load; |
| 7085 | #endif |
| 7086 | #ifdef __cplusplus |
| 7087 | } |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7088 | #endif |
| 7089 | |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 7090 | int |
| 7091 | main () |
| 7092 | { |
| 7093 | return f != shl_load; |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7094 | ; |
| 7095 | return 0; |
| 7096 | } |
| 7097 | _ACEOF |
| 7098 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7099 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7100 | (eval $ac_link) 2>&5 |
| 7101 | ac_status=$? |
| 7102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7103 | (exit $ac_status); } && |
| 7104 | { ac_try='test -s conftest$ac_exeext' |
| 7105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7106 | (eval $ac_try) 2>&5 |
| 7107 | ac_status=$? |
| 7108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7109 | (exit $ac_status); }; }; then |
| 7110 | ac_cv_func_shl_load=yes |
| 7111 | else |
| 7112 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 7113 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7114 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7115 | ac_cv_func_shl_load=no |
| 7116 | fi |
| 7117 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7118 | fi |
| 7119 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 7120 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 7121 | if test $ac_cv_func_shl_load = yes; then |
| 7122 | lt_cv_dlopen="shl_load" |
| 7123 | else |
| 7124 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 7125 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 7126 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 7127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7128 | else |
| 7129 | ac_check_lib_save_LIBS=$LIBS |
| 7130 | LIBS="-ldld $LIBS" |
| 7131 | cat >conftest.$ac_ext <<_ACEOF |
| 7132 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 7133 | /* confdefs.h. */ |
| 7134 | _ACEOF |
| 7135 | cat confdefs.h >>conftest.$ac_ext |
| 7136 | cat >>conftest.$ac_ext <<_ACEOF |
| 7137 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7138 | |
| 7139 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7140 | #ifdef __cplusplus |
| 7141 | extern "C" |
| 7142 | #endif |
| 7143 | /* We use char because int might match the return type of a gcc2 |
| 7144 | builtin and then its argument prototype would still apply. */ |
| 7145 | char shl_load (); |
| 7146 | int |
| 7147 | main () |
| 7148 | { |
| 7149 | shl_load (); |
| 7150 | ; |
| 7151 | return 0; |
| 7152 | } |
| 7153 | _ACEOF |
| 7154 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7155 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7156 | (eval $ac_link) 2>&5 |
| 7157 | ac_status=$? |
| 7158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7159 | (exit $ac_status); } && |
| 7160 | { ac_try='test -s conftest$ac_exeext' |
| 7161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7162 | (eval $ac_try) 2>&5 |
| 7163 | ac_status=$? |
| 7164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7165 | (exit $ac_status); }; }; then |
| 7166 | ac_cv_lib_dld_shl_load=yes |
| 7167 | else |
| 7168 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 7169 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7170 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7171 | ac_cv_lib_dld_shl_load=no |
| 7172 | fi |
| 7173 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7174 | LIBS=$ac_check_lib_save_LIBS |
| 7175 | fi |
| 7176 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 7177 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 7178 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 7179 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 7180 | else |
| 7181 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 7182 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 7183 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 7184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7185 | else |
| 7186 | cat >conftest.$ac_ext <<_ACEOF |
| 7187 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 7188 | /* confdefs.h. */ |
| 7189 | _ACEOF |
| 7190 | cat confdefs.h >>conftest.$ac_ext |
| 7191 | cat >>conftest.$ac_ext <<_ACEOF |
| 7192 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7193 | /* System header to define __stub macros and hopefully few prototypes, |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 7194 | which can conflict with char dlopen (); below. |
| 7195 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7196 | <limits.h> exists even on freestanding compilers. */ |
| 7197 | #ifdef __STDC__ |
| 7198 | # include <limits.h> |
| 7199 | #else |
| 7200 | # include <assert.h> |
| 7201 | #endif |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7202 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7203 | #ifdef __cplusplus |
| 7204 | extern "C" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 7205 | { |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7206 | #endif |
| 7207 | /* We use char because int might match the return type of a gcc2 |
| 7208 | builtin and then its argument prototype would still apply. */ |
| 7209 | char dlopen (); |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7210 | /* The GNU C library defines this for functions which it implements |
| 7211 | to always fail with ENOSYS. Some functions are actually named |
| 7212 | something starting with __ and the normal name is an alias. */ |
| 7213 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 7214 | choke me |
| 7215 | #else |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 7216 | char (*f) () = dlopen; |
| 7217 | #endif |
| 7218 | #ifdef __cplusplus |
| 7219 | } |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7220 | #endif |
| 7221 | |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 7222 | int |
| 7223 | main () |
| 7224 | { |
| 7225 | return f != dlopen; |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7226 | ; |
| 7227 | return 0; |
| 7228 | } |
| 7229 | _ACEOF |
| 7230 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7231 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7232 | (eval $ac_link) 2>&5 |
| 7233 | ac_status=$? |
| 7234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7235 | (exit $ac_status); } && |
| 7236 | { ac_try='test -s conftest$ac_exeext' |
| 7237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7238 | (eval $ac_try) 2>&5 |
| 7239 | ac_status=$? |
| 7240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7241 | (exit $ac_status); }; }; then |
| 7242 | ac_cv_func_dlopen=yes |
| 7243 | else |
| 7244 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 7245 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7246 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7247 | ac_cv_func_dlopen=no |
| 7248 | fi |
| 7249 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7250 | fi |
| 7251 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 7252 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 7253 | if test $ac_cv_func_dlopen = yes; then |
| 7254 | lt_cv_dlopen="dlopen" |
| 7255 | else |
| 7256 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 7257 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 7258 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 7259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7260 | else |
| 7261 | ac_check_lib_save_LIBS=$LIBS |
| 7262 | LIBS="-ldl $LIBS" |
| 7263 | cat >conftest.$ac_ext <<_ACEOF |
| 7264 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 7265 | /* confdefs.h. */ |
| 7266 | _ACEOF |
| 7267 | cat confdefs.h >>conftest.$ac_ext |
| 7268 | cat >>conftest.$ac_ext <<_ACEOF |
| 7269 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7270 | |
| 7271 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7272 | #ifdef __cplusplus |
| 7273 | extern "C" |
| 7274 | #endif |
| 7275 | /* We use char because int might match the return type of a gcc2 |
| 7276 | builtin and then its argument prototype would still apply. */ |
| 7277 | char dlopen (); |
| 7278 | int |
| 7279 | main () |
| 7280 | { |
| 7281 | dlopen (); |
| 7282 | ; |
| 7283 | return 0; |
| 7284 | } |
| 7285 | _ACEOF |
| 7286 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7287 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7288 | (eval $ac_link) 2>&5 |
| 7289 | ac_status=$? |
| 7290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7291 | (exit $ac_status); } && |
| 7292 | { ac_try='test -s conftest$ac_exeext' |
| 7293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7294 | (eval $ac_try) 2>&5 |
| 7295 | ac_status=$? |
| 7296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7297 | (exit $ac_status); }; }; then |
| 7298 | ac_cv_lib_dl_dlopen=yes |
| 7299 | else |
| 7300 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 7301 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7302 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7303 | ac_cv_lib_dl_dlopen=no |
| 7304 | fi |
| 7305 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7306 | LIBS=$ac_check_lib_save_LIBS |
| 7307 | fi |
| 7308 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 7309 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 7310 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 7311 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 7312 | else |
| 7313 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 7314 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 7315 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 7316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7317 | else |
| 7318 | ac_check_lib_save_LIBS=$LIBS |
| 7319 | LIBS="-lsvld $LIBS" |
| 7320 | cat >conftest.$ac_ext <<_ACEOF |
| 7321 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 7322 | /* confdefs.h. */ |
| 7323 | _ACEOF |
| 7324 | cat confdefs.h >>conftest.$ac_ext |
| 7325 | cat >>conftest.$ac_ext <<_ACEOF |
| 7326 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7327 | |
| 7328 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7329 | #ifdef __cplusplus |
| 7330 | extern "C" |
| 7331 | #endif |
| 7332 | /* We use char because int might match the return type of a gcc2 |
| 7333 | builtin and then its argument prototype would still apply. */ |
| 7334 | char dlopen (); |
| 7335 | int |
| 7336 | main () |
| 7337 | { |
| 7338 | dlopen (); |
| 7339 | ; |
| 7340 | return 0; |
| 7341 | } |
| 7342 | _ACEOF |
| 7343 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7344 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7345 | (eval $ac_link) 2>&5 |
| 7346 | ac_status=$? |
| 7347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7348 | (exit $ac_status); } && |
| 7349 | { ac_try='test -s conftest$ac_exeext' |
| 7350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7351 | (eval $ac_try) 2>&5 |
| 7352 | ac_status=$? |
| 7353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7354 | (exit $ac_status); }; }; then |
| 7355 | ac_cv_lib_svld_dlopen=yes |
| 7356 | else |
| 7357 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 7358 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7359 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7360 | ac_cv_lib_svld_dlopen=no |
| 7361 | fi |
| 7362 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7363 | LIBS=$ac_check_lib_save_LIBS |
| 7364 | fi |
| 7365 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 7366 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 7367 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 7368 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 7369 | else |
| 7370 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 7371 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 7372 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 7373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7374 | else |
| 7375 | ac_check_lib_save_LIBS=$LIBS |
| 7376 | LIBS="-ldld $LIBS" |
| 7377 | cat >conftest.$ac_ext <<_ACEOF |
| 7378 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 7379 | /* confdefs.h. */ |
| 7380 | _ACEOF |
| 7381 | cat confdefs.h >>conftest.$ac_ext |
| 7382 | cat >>conftest.$ac_ext <<_ACEOF |
| 7383 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7384 | |
| 7385 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7386 | #ifdef __cplusplus |
| 7387 | extern "C" |
| 7388 | #endif |
| 7389 | /* We use char because int might match the return type of a gcc2 |
| 7390 | builtin and then its argument prototype would still apply. */ |
| 7391 | char dld_link (); |
| 7392 | int |
| 7393 | main () |
| 7394 | { |
| 7395 | dld_link (); |
| 7396 | ; |
| 7397 | return 0; |
| 7398 | } |
| 7399 | _ACEOF |
| 7400 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7401 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7402 | (eval $ac_link) 2>&5 |
| 7403 | ac_status=$? |
| 7404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7405 | (exit $ac_status); } && |
| 7406 | { ac_try='test -s conftest$ac_exeext' |
| 7407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7408 | (eval $ac_try) 2>&5 |
| 7409 | ac_status=$? |
| 7410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7411 | (exit $ac_status); }; }; then |
| 7412 | ac_cv_lib_dld_dld_link=yes |
| 7413 | else |
| 7414 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 7415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7416 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7417 | ac_cv_lib_dld_dld_link=no |
| 7418 | fi |
| 7419 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7420 | LIBS=$ac_check_lib_save_LIBS |
| 7421 | fi |
| 7422 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 7423 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 7424 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 7425 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 7426 | fi |
| 7427 | |
| 7428 | |
| 7429 | fi |
| 7430 | |
| 7431 | |
| 7432 | fi |
| 7433 | |
| 7434 | |
| 7435 | fi |
| 7436 | |
| 7437 | |
| 7438 | fi |
| 7439 | |
| 7440 | |
| 7441 | fi |
| 7442 | |
| 7443 | ;; |
| 7444 | esac |
| 7445 | |
| 7446 | if test "x$lt_cv_dlopen" != xno; then |
| 7447 | enable_dlopen=yes |
| 7448 | else |
| 7449 | enable_dlopen=no |
| 7450 | fi |
| 7451 | |
| 7452 | case $lt_cv_dlopen in |
| 7453 | dlopen) |
| 7454 | save_CPPFLAGS="$CPPFLAGS" |
| 7455 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 7456 | |
| 7457 | save_LDFLAGS="$LDFLAGS" |
| 7458 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 7459 | |
| 7460 | save_LIBS="$LIBS" |
| 7461 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 7462 | |
| 7463 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 7464 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 7465 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 7466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7467 | else |
| 7468 | if test "$cross_compiling" = yes; then : |
| 7469 | lt_cv_dlopen_self=cross |
| 7470 | else |
| 7471 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 7472 | lt_status=$lt_dlunknown |
| 7473 | cat > conftest.$ac_ext <<EOF |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 7474 | #line 7474 "configure" |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7475 | #include "confdefs.h" |
| 7476 | |
| 7477 | #if HAVE_DLFCN_H |
| 7478 | #include <dlfcn.h> |
| 7479 | #endif |
| 7480 | |
| 7481 | #include <stdio.h> |
| 7482 | |
| 7483 | #ifdef RTLD_GLOBAL |
| 7484 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 7485 | #else |
| 7486 | # ifdef DL_GLOBAL |
| 7487 | # define LT_DLGLOBAL DL_GLOBAL |
| 7488 | # else |
| 7489 | # define LT_DLGLOBAL 0 |
| 7490 | # endif |
| 7491 | #endif |
| 7492 | |
| 7493 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 7494 | find out it does not work in some platform. */ |
| 7495 | #ifndef LT_DLLAZY_OR_NOW |
| 7496 | # ifdef RTLD_LAZY |
| 7497 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 7498 | # else |
| 7499 | # ifdef DL_LAZY |
| 7500 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 7501 | # else |
| 7502 | # ifdef RTLD_NOW |
| 7503 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 7504 | # else |
| 7505 | # ifdef DL_NOW |
| 7506 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 7507 | # else |
| 7508 | # define LT_DLLAZY_OR_NOW 0 |
| 7509 | # endif |
| 7510 | # endif |
| 7511 | # endif |
| 7512 | # endif |
| 7513 | #endif |
| 7514 | |
| 7515 | #ifdef __cplusplus |
| 7516 | extern "C" void exit (int); |
| 7517 | #endif |
| 7518 | |
| 7519 | void fnord() { int i=42;} |
| 7520 | int main () |
| 7521 | { |
| 7522 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 7523 | int status = $lt_dlunknown; |
| 7524 | |
| 7525 | if (self) |
| 7526 | { |
| 7527 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 7528 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 7529 | /* dlclose (self); */ |
| 7530 | } |
| 7531 | |
| 7532 | exit (status); |
| 7533 | } |
| 7534 | EOF |
| 7535 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7536 | (eval $ac_link) 2>&5 |
| 7537 | ac_status=$? |
| 7538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7539 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 7540 | (./conftest; exit; ) 2>/dev/null |
| 7541 | lt_status=$? |
| 7542 | case x$lt_status in |
| 7543 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 7544 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 7545 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 7546 | esac |
| 7547 | else : |
| 7548 | # compilation failed |
| 7549 | lt_cv_dlopen_self=no |
| 7550 | fi |
| 7551 | fi |
| 7552 | rm -fr conftest* |
| 7553 | |
| 7554 | |
| 7555 | fi |
| 7556 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 7557 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 7558 | |
| 7559 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 7560 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 7561 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 7562 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 7563 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 7564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7565 | else |
| 7566 | if test "$cross_compiling" = yes; then : |
| 7567 | lt_cv_dlopen_self_static=cross |
| 7568 | else |
| 7569 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 7570 | lt_status=$lt_dlunknown |
| 7571 | cat > conftest.$ac_ext <<EOF |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 7572 | #line 7572 "configure" |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 7573 | #include "confdefs.h" |
| 7574 | |
| 7575 | #if HAVE_DLFCN_H |
| 7576 | #include <dlfcn.h> |
| 7577 | #endif |
| 7578 | |
| 7579 | #include <stdio.h> |
| 7580 | |
| 7581 | #ifdef RTLD_GLOBAL |
| 7582 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 7583 | #else |
| 7584 | # ifdef DL_GLOBAL |
| 7585 | # define LT_DLGLOBAL DL_GLOBAL |
| 7586 | # else |
| 7587 | # define LT_DLGLOBAL 0 |
| 7588 | # endif |
| 7589 | #endif |
| 7590 | |
| 7591 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 7592 | find out it does not work in some platform. */ |
| 7593 | #ifndef LT_DLLAZY_OR_NOW |
| 7594 | # ifdef RTLD_LAZY |
| 7595 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 7596 | # else |
| 7597 | # ifdef DL_LAZY |
| 7598 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 7599 | # else |
| 7600 | # ifdef RTLD_NOW |
| 7601 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 7602 | # else |
| 7603 | # ifdef DL_NOW |
| 7604 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 7605 | # else |
| 7606 | # define LT_DLLAZY_OR_NOW 0 |
| 7607 | # endif |
| 7608 | # endif |
| 7609 | # endif |
| 7610 | # endif |
| 7611 | #endif |
| 7612 | |
| 7613 | #ifdef __cplusplus |
| 7614 | extern "C" void exit (int); |
| 7615 | #endif |
| 7616 | |
| 7617 | void fnord() { int i=42;} |
| 7618 | int main () |
| 7619 | { |
| 7620 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 7621 | int status = $lt_dlunknown; |
| 7622 | |
| 7623 | if (self) |
| 7624 | { |
| 7625 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 7626 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 7627 | /* dlclose (self); */ |
| 7628 | } |
| 7629 | |
| 7630 | exit (status); |
| 7631 | } |
| 7632 | EOF |
| 7633 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7634 | (eval $ac_link) 2>&5 |
| 7635 | ac_status=$? |
| 7636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7637 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 7638 | (./conftest; exit; ) 2>/dev/null |
| 7639 | lt_status=$? |
| 7640 | case x$lt_status in |
| 7641 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 7642 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 7643 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 7644 | esac |
| 7645 | else : |
| 7646 | # compilation failed |
| 7647 | lt_cv_dlopen_self_static=no |
| 7648 | fi |
| 7649 | fi |
| 7650 | rm -fr conftest* |
| 7651 | |
| 7652 | |
| 7653 | fi |
| 7654 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 7655 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 7656 | fi |
| 7657 | |
| 7658 | CPPFLAGS="$save_CPPFLAGS" |
| 7659 | LDFLAGS="$save_LDFLAGS" |
| 7660 | LIBS="$save_LIBS" |
| 7661 | ;; |
| 7662 | esac |
| 7663 | |
| 7664 | case $lt_cv_dlopen_self in |
| 7665 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 7666 | *) enable_dlopen_self=unknown ;; |
| 7667 | esac |
| 7668 | |
| 7669 | case $lt_cv_dlopen_self_static in |
| 7670 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 7671 | *) enable_dlopen_self_static=unknown ;; |
| 7672 | esac |
| 7673 | fi |
| 7674 | |
| 7675 | |
| 7676 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 7677 | case $archive_cmds in |
| 7678 | *'~'*) |
| 7679 | # FIXME: we may have to deal with multi-command sequences. |
| 7680 | ;; |
| 7681 | '$CC '*) |
| 7682 | # Test whether the compiler implicitly links with -lc since on some |
| 7683 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 7684 | # to ld, don't add -lc before -lgcc. |
| 7685 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 7686 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 7687 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then |
| 7688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7689 | else |
| 7690 | $rm conftest* |
| 7691 | echo 'static int dummy;' > conftest.$ac_ext |
| 7692 | |
| 7693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7694 | (eval $ac_compile) 2>&5 |
| 7695 | ac_status=$? |
| 7696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7697 | (exit $ac_status); }; then |
| 7698 | soname=conftest |
| 7699 | lib=conftest |
| 7700 | libobjs=conftest.$ac_objext |
| 7701 | deplibs= |
| 7702 | wl=$lt_cv_prog_cc_wl |
| 7703 | compiler_flags=-v |
| 7704 | linker_flags=-v |
| 7705 | verstring= |
| 7706 | output_objdir=. |
| 7707 | libname=conftest |
| 7708 | save_allow_undefined_flag=$allow_undefined_flag |
| 7709 | allow_undefined_flag= |
| 7710 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 7711 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 7712 | ac_status=$? |
| 7713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7714 | (exit $ac_status); } |
| 7715 | then |
| 7716 | lt_cv_archive_cmds_need_lc=no |
| 7717 | else |
| 7718 | lt_cv_archive_cmds_need_lc=yes |
| 7719 | fi |
| 7720 | allow_undefined_flag=$save_allow_undefined_flag |
| 7721 | else |
| 7722 | cat conftest.err 1>&5 |
| 7723 | fi |
| 7724 | fi |
| 7725 | |
| 7726 | echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 7727 | echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 |
| 7728 | ;; |
| 7729 | esac |
| 7730 | fi |
| 7731 | need_lc=${lt_cv_archive_cmds_need_lc-yes} |
| 7732 | |
| 7733 | # The second clause should only fire when bootstrapping the |
| 7734 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 7735 | # with your package, and you will get complaints that there are |
| 7736 | # no rules to generate ltmain.sh. |
| 7737 | if test -f "$ltmain"; then |
| 7738 | : |
| 7739 | else |
| 7740 | # If there is no Makefile yet, we rely on a make rule to execute |
| 7741 | # `config.status --recheck' to rerun these tests and create the |
| 7742 | # libtool script then. |
| 7743 | test -f Makefile && make "$ltmain" |
| 7744 | fi |
| 7745 | |
| 7746 | if test -f "$ltmain"; then |
| 7747 | trap "$rm \"${ofile}T\"; exit 1" 1 2 15 |
| 7748 | $rm -f "${ofile}T" |
| 7749 | |
| 7750 | echo creating $ofile |
| 7751 | |
| 7752 | # Now quote all the things that may contain metacharacters while being |
| 7753 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 7754 | # variables and quote the copies for generation of the libtool script. |
| 7755 | for var in echo old_CC old_CFLAGS SED \ |
| 7756 | AR AR_FLAGS CC LD LN_S NM SHELL \ |
| 7757 | reload_flag reload_cmds wl \ |
| 7758 | pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ |
| 7759 | thread_safe_flag_spec whole_archive_flag_spec libname_spec \ |
| 7760 | library_names_spec soname_spec \ |
| 7761 | RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ |
| 7762 | old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ |
| 7763 | postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ |
| 7764 | old_striplib striplib file_magic_cmd export_symbols_cmds \ |
| 7765 | deplibs_check_method allow_undefined_flag no_undefined_flag \ |
| 7766 | finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ |
| 7767 | global_symbol_to_c_name_address \ |
| 7768 | hardcode_libdir_flag_spec hardcode_libdir_separator \ |
| 7769 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 7770 | compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do |
| 7771 | |
| 7772 | case $var in |
| 7773 | reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ |
| 7774 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 7775 | export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ |
| 7776 | extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ |
| 7777 | postinstall_cmds | postuninstall_cmds | \ |
| 7778 | finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 7779 | # Double-quote double-evaled strings. |
| 7780 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 7781 | ;; |
| 7782 | *) |
| 7783 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 7784 | ;; |
| 7785 | esac |
| 7786 | done |
| 7787 | |
| 7788 | cat <<__EOF__ > "${ofile}T" |
| 7789 | #! $SHELL |
| 7790 | |
| 7791 | # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 7792 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 7793 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 7794 | # |
| 7795 | # Copyright (C) 1996-2000 Free Software Foundation, Inc. |
| 7796 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 7797 | # |
| 7798 | # This program is free software; you can redistribute it and/or modify |
| 7799 | # it under the terms of the GNU General Public License as published by |
| 7800 | # the Free Software Foundation; either version 2 of the License, or |
| 7801 | # (at your option) any later version. |
| 7802 | # |
| 7803 | # This program is distributed in the hope that it will be useful, but |
| 7804 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 7805 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 7806 | # General Public License for more details. |
| 7807 | # |
| 7808 | # You should have received a copy of the GNU General Public License |
| 7809 | # along with this program; if not, write to the Free Software |
| 7810 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 7811 | # |
| 7812 | # As a special exception to the GNU General Public License, if you |
| 7813 | # distribute this file as part of a program that contains a |
| 7814 | # configuration script generated by Autoconf, you may include it under |
| 7815 | # the same distribution terms that you use for the rest of that program. |
| 7816 | |
| 7817 | # A sed that does not truncate output. |
| 7818 | SED=$lt_SED |
| 7819 | |
| 7820 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 7821 | Xsed="${SED} -e s/^X//" |
| 7822 | |
| 7823 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 7824 | # if CDPATH is set. |
| 7825 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 7826 | |
| 7827 | # ### BEGIN LIBTOOL CONFIG |
| 7828 | |
| 7829 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 7830 | |
| 7831 | # Shell to use when invoking shell scripts. |
| 7832 | SHELL=$lt_SHELL |
| 7833 | |
| 7834 | # Whether or not to build shared libraries. |
| 7835 | build_libtool_libs=$enable_shared |
| 7836 | |
| 7837 | # Whether or not to build static libraries. |
| 7838 | build_old_libs=$enable_static |
| 7839 | |
| 7840 | # Whether or not to add -lc for building shared libraries. |
| 7841 | build_libtool_need_lc=$need_lc |
| 7842 | |
| 7843 | # Whether or not to optimize for fast installation. |
| 7844 | fast_install=$enable_fast_install |
| 7845 | |
| 7846 | # The host system. |
| 7847 | host_alias=$host_alias |
| 7848 | host=$host |
| 7849 | |
| 7850 | # An echo program that does not interpret backslashes. |
| 7851 | echo=$lt_echo |
| 7852 | |
| 7853 | # The archiver. |
| 7854 | AR=$lt_AR |
| 7855 | AR_FLAGS=$lt_AR_FLAGS |
| 7856 | |
| 7857 | # The default C compiler. |
| 7858 | CC=$lt_CC |
| 7859 | |
| 7860 | # Is the compiler the GNU C compiler? |
| 7861 | with_gcc=$GCC |
| 7862 | |
| 7863 | # The linker used to build libraries. |
| 7864 | LD=$lt_LD |
| 7865 | |
| 7866 | # Whether we need hard or soft links. |
| 7867 | LN_S=$lt_LN_S |
| 7868 | |
| 7869 | # A BSD-compatible nm program. |
| 7870 | NM=$lt_NM |
| 7871 | |
| 7872 | # A symbol stripping program |
| 7873 | STRIP=$STRIP |
| 7874 | |
| 7875 | # Used to examine libraries when file_magic_cmd begins "file" |
| 7876 | MAGIC_CMD=$MAGIC_CMD |
| 7877 | |
| 7878 | # Used on cygwin: DLL creation program. |
| 7879 | DLLTOOL="$DLLTOOL" |
| 7880 | |
| 7881 | # Used on cygwin: object dumper. |
| 7882 | OBJDUMP="$OBJDUMP" |
| 7883 | |
| 7884 | # Used on cygwin: assembler. |
| 7885 | AS="$AS" |
| 7886 | |
| 7887 | # The name of the directory that contains temporary libtool files. |
| 7888 | objdir=$objdir |
| 7889 | |
| 7890 | # How to create reloadable object files. |
| 7891 | reload_flag=$lt_reload_flag |
| 7892 | reload_cmds=$lt_reload_cmds |
| 7893 | |
| 7894 | # How to pass a linker flag through the compiler. |
| 7895 | wl=$lt_wl |
| 7896 | |
| 7897 | # Object file suffix (normally "o"). |
| 7898 | objext="$ac_objext" |
| 7899 | |
| 7900 | # Old archive suffix (normally "a"). |
| 7901 | libext="$libext" |
| 7902 | |
| 7903 | # Executable file suffix (normally ""). |
| 7904 | exeext="$exeext" |
| 7905 | |
| 7906 | # Additional compiler flags for building library objects. |
| 7907 | pic_flag=$lt_pic_flag |
| 7908 | pic_mode=$pic_mode |
| 7909 | |
| 7910 | # Does compiler simultaneously support -c and -o options? |
| 7911 | compiler_c_o=$lt_compiler_c_o |
| 7912 | |
| 7913 | # Can we write directly to a .lo ? |
| 7914 | compiler_o_lo=$lt_compiler_o_lo |
| 7915 | |
| 7916 | # Must we lock files when doing compilation ? |
| 7917 | need_locks=$lt_need_locks |
| 7918 | |
| 7919 | # Do we need the lib prefix for modules? |
| 7920 | need_lib_prefix=$need_lib_prefix |
| 7921 | |
| 7922 | # Do we need a version for libraries? |
| 7923 | need_version=$need_version |
| 7924 | |
| 7925 | # Whether dlopen is supported. |
| 7926 | dlopen_support=$enable_dlopen |
| 7927 | |
| 7928 | # Whether dlopen of programs is supported. |
| 7929 | dlopen_self=$enable_dlopen_self |
| 7930 | |
| 7931 | # Whether dlopen of statically linked programs is supported. |
| 7932 | dlopen_self_static=$enable_dlopen_self_static |
| 7933 | |
| 7934 | # Compiler flag to prevent dynamic linking. |
| 7935 | link_static_flag=$lt_link_static_flag |
| 7936 | |
| 7937 | # Compiler flag to turn off builtin functions. |
| 7938 | no_builtin_flag=$lt_no_builtin_flag |
| 7939 | |
| 7940 | # Compiler flag to allow reflexive dlopens. |
| 7941 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 7942 | |
| 7943 | # Compiler flag to generate shared objects directly from archives. |
| 7944 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 7945 | |
| 7946 | # Compiler flag to generate thread-safe objects. |
| 7947 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 7948 | |
| 7949 | # Library versioning type. |
| 7950 | version_type=$version_type |
| 7951 | |
| 7952 | # Format of library name prefix. |
| 7953 | libname_spec=$lt_libname_spec |
| 7954 | |
| 7955 | # List of archive names. First name is the real one, the rest are links. |
| 7956 | # The last name is the one that the linker finds with -lNAME. |
| 7957 | library_names_spec=$lt_library_names_spec |
| 7958 | |
| 7959 | # The coded name of the library, if different from the real name. |
| 7960 | soname_spec=$lt_soname_spec |
| 7961 | |
| 7962 | # Commands used to build and install an old-style archive. |
| 7963 | RANLIB=$lt_RANLIB |
| 7964 | old_archive_cmds=$lt_old_archive_cmds |
| 7965 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 7966 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 7967 | |
| 7968 | # Create an old-style archive from a shared archive. |
| 7969 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 7970 | |
| 7971 | # Create a temporary old-style archive to link instead of a shared archive. |
| 7972 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 7973 | |
| 7974 | # Commands used to build and install a shared archive. |
| 7975 | archive_cmds=$lt_archive_cmds |
| 7976 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 7977 | postinstall_cmds=$lt_postinstall_cmds |
| 7978 | postuninstall_cmds=$lt_postuninstall_cmds |
| 7979 | |
| 7980 | # Commands to strip libraries. |
| 7981 | old_striplib=$lt_old_striplib |
| 7982 | striplib=$lt_striplib |
| 7983 | |
| 7984 | # Method to check whether dependent libraries are shared objects. |
| 7985 | deplibs_check_method=$lt_deplibs_check_method |
| 7986 | |
| 7987 | # Command to use when deplibs_check_method == file_magic. |
| 7988 | file_magic_cmd=$lt_file_magic_cmd |
| 7989 | |
| 7990 | # Flag that allows shared libraries with undefined symbols to be built. |
| 7991 | allow_undefined_flag=$lt_allow_undefined_flag |
| 7992 | |
| 7993 | # Flag that forces no undefined symbols. |
| 7994 | no_undefined_flag=$lt_no_undefined_flag |
| 7995 | |
| 7996 | # Commands used to finish a libtool library installation in a directory. |
| 7997 | finish_cmds=$lt_finish_cmds |
| 7998 | |
| 7999 | # Same as above, but a single script fragment to be evaled but not shown. |
| 8000 | finish_eval=$lt_finish_eval |
| 8001 | |
| 8002 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 8003 | global_symbol_pipe=$lt_global_symbol_pipe |
| 8004 | |
| 8005 | # Transform the output of nm in a proper C declaration |
| 8006 | global_symbol_to_cdecl=$lt_global_symbol_to_cdecl |
| 8007 | |
| 8008 | # Transform the output of nm in a C name address pair |
| 8009 | global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address |
| 8010 | |
| 8011 | # This is the shared library runtime path variable. |
| 8012 | runpath_var=$runpath_var |
| 8013 | |
| 8014 | # This is the shared library path variable. |
| 8015 | shlibpath_var=$shlibpath_var |
| 8016 | |
| 8017 | # Is shlibpath searched before the hard-coded library search path? |
| 8018 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 8019 | |
| 8020 | # How to hardcode a shared library path into an executable. |
| 8021 | hardcode_action=$hardcode_action |
| 8022 | |
| 8023 | # Whether we should hardcode library paths into libraries. |
| 8024 | hardcode_into_libs=$hardcode_into_libs |
| 8025 | |
| 8026 | # Flag to hardcode \$libdir into a binary during linking. |
| 8027 | # This must work even if \$libdir does not exist. |
| 8028 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 8029 | |
| 8030 | # Whether we need a single -rpath flag with a separated argument. |
| 8031 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 8032 | |
| 8033 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the |
| 8034 | # resulting binary. |
| 8035 | hardcode_direct=$hardcode_direct |
| 8036 | |
| 8037 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 8038 | # resulting binary. |
| 8039 | hardcode_minus_L=$hardcode_minus_L |
| 8040 | |
| 8041 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 8042 | # the resulting binary. |
| 8043 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 8044 | |
| 8045 | # Variables whose values should be saved in libtool wrapper scripts and |
| 8046 | # restored at relink time. |
| 8047 | variables_saved_for_relink="$variables_saved_for_relink" |
| 8048 | |
| 8049 | # Whether libtool must link a program against all its dependency libraries. |
| 8050 | link_all_deplibs=$link_all_deplibs |
| 8051 | |
| 8052 | # Compile-time system search path for libraries |
| 8053 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 8054 | |
| 8055 | # Run-time system search path for libraries |
| 8056 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 8057 | |
| 8058 | # Fix the shell variable \$srcfile for the compiler. |
| 8059 | fix_srcfile_path="$fix_srcfile_path" |
| 8060 | |
| 8061 | # Set to yes if exported symbols are required. |
| 8062 | always_export_symbols=$always_export_symbols |
| 8063 | |
| 8064 | # The commands to list exported symbols. |
| 8065 | export_symbols_cmds=$lt_export_symbols_cmds |
| 8066 | |
| 8067 | # The commands to extract the exported symbol list from a shared archive. |
| 8068 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 8069 | |
| 8070 | # Symbols that should not be listed in the preloaded symbols. |
| 8071 | exclude_expsyms=$lt_exclude_expsyms |
| 8072 | |
| 8073 | # Symbols that must always be exported. |
| 8074 | include_expsyms=$lt_include_expsyms |
| 8075 | |
| 8076 | # ### END LIBTOOL CONFIG |
| 8077 | |
| 8078 | __EOF__ |
| 8079 | |
| 8080 | case $host_os in |
| 8081 | aix3*) |
| 8082 | cat <<\EOF >> "${ofile}T" |
| 8083 | |
| 8084 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 8085 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 8086 | # vanish in a puff of smoke. |
| 8087 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 8088 | COLLECT_NAMES= |
| 8089 | export COLLECT_NAMES |
| 8090 | fi |
| 8091 | EOF |
| 8092 | ;; |
| 8093 | esac |
| 8094 | |
| 8095 | case $host_os in |
| 8096 | cygwin* | mingw* | pw32* | os2*) |
| 8097 | cat <<'EOF' >> "${ofile}T" |
| 8098 | # This is a source program that is used to create dlls on Windows |
| 8099 | # Don't remove nor modify the starting and closing comments |
| 8100 | # /* ltdll.c starts here */ |
| 8101 | # #define WIN32_LEAN_AND_MEAN |
| 8102 | # #include <windows.h> |
| 8103 | # #undef WIN32_LEAN_AND_MEAN |
| 8104 | # #include <stdio.h> |
| 8105 | # |
| 8106 | # #ifndef __CYGWIN__ |
| 8107 | # # ifdef __CYGWIN32__ |
| 8108 | # # define __CYGWIN__ __CYGWIN32__ |
| 8109 | # # endif |
| 8110 | # #endif |
| 8111 | # |
| 8112 | # #ifdef __cplusplus |
| 8113 | # extern "C" { |
| 8114 | # #endif |
| 8115 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); |
| 8116 | # #ifdef __cplusplus |
| 8117 | # } |
| 8118 | # #endif |
| 8119 | # |
| 8120 | # #ifdef __CYGWIN__ |
| 8121 | # #include <cygwin/cygwin_dll.h> |
| 8122 | # DECLARE_CYGWIN_DLL( DllMain ); |
| 8123 | # #endif |
| 8124 | # HINSTANCE __hDllInstance_base; |
| 8125 | # |
| 8126 | # BOOL APIENTRY |
| 8127 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) |
| 8128 | # { |
| 8129 | # __hDllInstance_base = hInst; |
| 8130 | # return TRUE; |
| 8131 | # } |
| 8132 | # /* ltdll.c ends here */ |
| 8133 | # This is a source program that is used to create import libraries |
| 8134 | # on Windows for dlls which lack them. Don't remove nor modify the |
| 8135 | # starting and closing comments |
| 8136 | # /* impgen.c starts here */ |
| 8137 | # /* Copyright (C) 1999-2000 Free Software Foundation, Inc. |
| 8138 | # |
| 8139 | # This file is part of GNU libtool. |
| 8140 | # |
| 8141 | # This program is free software; you can redistribute it and/or modify |
| 8142 | # it under the terms of the GNU General Public License as published by |
| 8143 | # the Free Software Foundation; either version 2 of the License, or |
| 8144 | # (at your option) any later version. |
| 8145 | # |
| 8146 | # This program is distributed in the hope that it will be useful, |
| 8147 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 8148 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 8149 | # GNU General Public License for more details. |
| 8150 | # |
| 8151 | # You should have received a copy of the GNU General Public License |
| 8152 | # along with this program; if not, write to the Free Software |
| 8153 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 8154 | # */ |
| 8155 | # |
| 8156 | # #include <stdio.h> /* for printf() */ |
| 8157 | # #include <unistd.h> /* for open(), lseek(), read() */ |
| 8158 | # #include <fcntl.h> /* for O_RDONLY, O_BINARY */ |
| 8159 | # #include <string.h> /* for strdup() */ |
| 8160 | # |
| 8161 | # /* O_BINARY isn't required (or even defined sometimes) under Unix */ |
| 8162 | # #ifndef O_BINARY |
| 8163 | # #define O_BINARY 0 |
| 8164 | # #endif |
| 8165 | # |
| 8166 | # static unsigned int |
| 8167 | # pe_get16 (fd, offset) |
| 8168 | # int fd; |
| 8169 | # int offset; |
| 8170 | # { |
| 8171 | # unsigned char b[2]; |
| 8172 | # lseek (fd, offset, SEEK_SET); |
| 8173 | # read (fd, b, 2); |
| 8174 | # return b[0] + (b[1]<<8); |
| 8175 | # } |
| 8176 | # |
| 8177 | # static unsigned int |
| 8178 | # pe_get32 (fd, offset) |
| 8179 | # int fd; |
| 8180 | # int offset; |
| 8181 | # { |
| 8182 | # unsigned char b[4]; |
| 8183 | # lseek (fd, offset, SEEK_SET); |
| 8184 | # read (fd, b, 4); |
| 8185 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
| 8186 | # } |
| 8187 | # |
| 8188 | # static unsigned int |
| 8189 | # pe_as32 (ptr) |
| 8190 | # void *ptr; |
| 8191 | # { |
| 8192 | # unsigned char *b = ptr; |
| 8193 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
| 8194 | # } |
| 8195 | # |
| 8196 | # int |
| 8197 | # main (argc, argv) |
| 8198 | # int argc; |
| 8199 | # char *argv[]; |
| 8200 | # { |
| 8201 | # int dll; |
| 8202 | # unsigned long pe_header_offset, opthdr_ofs, num_entries, i; |
| 8203 | # unsigned long export_rva, export_size, nsections, secptr, expptr; |
| 8204 | # unsigned long name_rvas, nexp; |
| 8205 | # unsigned char *expdata, *erva; |
| 8206 | # char *filename, *dll_name; |
| 8207 | # |
| 8208 | # filename = argv[1]; |
| 8209 | # |
| 8210 | # dll = open(filename, O_RDONLY|O_BINARY); |
| 8211 | # if (dll < 1) |
| 8212 | # return 1; |
| 8213 | # |
| 8214 | # dll_name = filename; |
| 8215 | # |
| 8216 | # for (i=0; filename[i]; i++) |
| 8217 | # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') |
| 8218 | # dll_name = filename + i +1; |
| 8219 | # |
| 8220 | # pe_header_offset = pe_get32 (dll, 0x3c); |
| 8221 | # opthdr_ofs = pe_header_offset + 4 + 20; |
| 8222 | # num_entries = pe_get32 (dll, opthdr_ofs + 92); |
| 8223 | # |
| 8224 | # if (num_entries < 1) /* no exports */ |
| 8225 | # return 1; |
| 8226 | # |
| 8227 | # export_rva = pe_get32 (dll, opthdr_ofs + 96); |
| 8228 | # export_size = pe_get32 (dll, opthdr_ofs + 100); |
| 8229 | # nsections = pe_get16 (dll, pe_header_offset + 4 +2); |
| 8230 | # secptr = (pe_header_offset + 4 + 20 + |
| 8231 | # pe_get16 (dll, pe_header_offset + 4 + 16)); |
| 8232 | # |
| 8233 | # expptr = 0; |
| 8234 | # for (i = 0; i < nsections; i++) |
| 8235 | # { |
| 8236 | # char sname[8]; |
| 8237 | # unsigned long secptr1 = secptr + 40 * i; |
| 8238 | # unsigned long vaddr = pe_get32 (dll, secptr1 + 12); |
| 8239 | # unsigned long vsize = pe_get32 (dll, secptr1 + 16); |
| 8240 | # unsigned long fptr = pe_get32 (dll, secptr1 + 20); |
| 8241 | # lseek(dll, secptr1, SEEK_SET); |
| 8242 | # read(dll, sname, 8); |
| 8243 | # if (vaddr <= export_rva && vaddr+vsize > export_rva) |
| 8244 | # { |
| 8245 | # expptr = fptr + (export_rva - vaddr); |
| 8246 | # if (export_rva + export_size > vaddr + vsize) |
| 8247 | # export_size = vsize - (export_rva - vaddr); |
| 8248 | # break; |
| 8249 | # } |
| 8250 | # } |
| 8251 | # |
| 8252 | # expdata = (unsigned char*)malloc(export_size); |
| 8253 | # lseek (dll, expptr, SEEK_SET); |
| 8254 | # read (dll, expdata, export_size); |
| 8255 | # erva = expdata - export_rva; |
| 8256 | # |
| 8257 | # nexp = pe_as32 (expdata+24); |
| 8258 | # name_rvas = pe_as32 (expdata+32); |
| 8259 | # |
| 8260 | # printf ("EXPORTS\n"); |
| 8261 | # for (i = 0; i<nexp; i++) |
| 8262 | # { |
| 8263 | # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); |
| 8264 | # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); |
| 8265 | # } |
| 8266 | # |
| 8267 | # return 0; |
| 8268 | # } |
| 8269 | # /* impgen.c ends here */ |
| 8270 | |
| 8271 | EOF |
| 8272 | ;; |
| 8273 | esac |
| 8274 | |
| 8275 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 8276 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 8277 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 8278 | # is reportedly fixed, but why not run on old versions too? |
| 8279 | sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) |
| 8280 | |
| 8281 | mv -f "${ofile}T" "$ofile" || \ |
| 8282 | (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") |
| 8283 | chmod +x "$ofile" |
| 8284 | fi |
| 8285 | |
| 8286 | |
| 8287 | |
| 8288 | |
| 8289 | |
| 8290 | # This can be used to rebuild libtool when needed |
| 8291 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 8292 | |
| 8293 | # Always use our own libtool. |
| 8294 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 8295 | |
| 8296 | # Prevent multiple expansion |
| 8297 | |
| 8298 | |
mostang.com!davidm | 6af90d0 | 2003-02-15 08:53:55 +0000 | [diff] [blame] | 8299 | # By default we simply use the C compiler to build assembly code. |
| 8300 | |
| 8301 | : ${CCAS='$(CC)'} |
| 8302 | # Set ASFLAGS if not already set. |
| 8303 | : ${CCASFLAGS='$(CFLAGS)'} |
| 8304 | |
| 8305 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 8306 | |
| 8307 | |
mostang.com!davidm | 6ab15cd | 2003-04-03 07:59:15 +0000 | [diff] [blame] | 8308 | echo "$as_me:$LINENO: checking for __uc_get_grs in -luca" >&5 |
| 8309 | echo $ECHO_N "checking for __uc_get_grs in -luca... $ECHO_C" >&6 |
| 8310 | if test "${ac_cv_lib_uca___uc_get_grs+set}" = set; then |
| 8311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8312 | else |
| 8313 | ac_check_lib_save_LIBS=$LIBS |
| 8314 | LIBS="-luca $LIBS" |
| 8315 | cat >conftest.$ac_ext <<_ACEOF |
| 8316 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 8317 | /* confdefs.h. */ |
| 8318 | _ACEOF |
| 8319 | cat confdefs.h >>conftest.$ac_ext |
| 8320 | cat >>conftest.$ac_ext <<_ACEOF |
| 8321 | /* end confdefs.h. */ |
mostang.com!davidm | 6ab15cd | 2003-04-03 07:59:15 +0000 | [diff] [blame] | 8322 | |
| 8323 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8324 | #ifdef __cplusplus |
| 8325 | extern "C" |
| 8326 | #endif |
| 8327 | /* We use char because int might match the return type of a gcc2 |
| 8328 | builtin and then its argument prototype would still apply. */ |
| 8329 | char __uc_get_grs (); |
| 8330 | int |
| 8331 | main () |
| 8332 | { |
| 8333 | __uc_get_grs (); |
| 8334 | ; |
| 8335 | return 0; |
| 8336 | } |
| 8337 | _ACEOF |
| 8338 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8339 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8340 | (eval $ac_link) 2>&5 |
| 8341 | ac_status=$? |
| 8342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8343 | (exit $ac_status); } && |
| 8344 | { ac_try='test -s conftest$ac_exeext' |
| 8345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8346 | (eval $ac_try) 2>&5 |
| 8347 | ac_status=$? |
| 8348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8349 | (exit $ac_status); }; }; then |
| 8350 | ac_cv_lib_uca___uc_get_grs=yes |
| 8351 | else |
| 8352 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 8353 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8354 | |
mostang.com!davidm | 6ab15cd | 2003-04-03 07:59:15 +0000 | [diff] [blame] | 8355 | ac_cv_lib_uca___uc_get_grs=no |
| 8356 | fi |
| 8357 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8358 | LIBS=$ac_check_lib_save_LIBS |
| 8359 | fi |
| 8360 | echo "$as_me:$LINENO: result: $ac_cv_lib_uca___uc_get_grs" >&5 |
| 8361 | echo "${ECHO_T}$ac_cv_lib_uca___uc_get_grs" >&6 |
| 8362 | if test $ac_cv_lib_uca___uc_get_grs = yes; then |
| 8363 | cat >>confdefs.h <<_ACEOF |
| 8364 | #define HAVE_LIBUCA 1 |
| 8365 | _ACEOF |
| 8366 | |
| 8367 | LIBS="-luca $LIBS" |
| 8368 | |
| 8369 | fi |
| 8370 | |
| 8371 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 8372 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 8373 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 8374 | if test "${ac_cv_header_stdc+set}" = set; then |
| 8375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8376 | else |
| 8377 | cat >conftest.$ac_ext <<_ACEOF |
| 8378 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 8379 | /* confdefs.h. */ |
| 8380 | _ACEOF |
| 8381 | cat confdefs.h >>conftest.$ac_ext |
| 8382 | cat >>conftest.$ac_ext <<_ACEOF |
| 8383 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 8384 | #include <stdlib.h> |
| 8385 | #include <stdarg.h> |
| 8386 | #include <string.h> |
| 8387 | #include <float.h> |
| 8388 | |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 8389 | int |
| 8390 | main () |
| 8391 | { |
| 8392 | |
| 8393 | ; |
| 8394 | return 0; |
| 8395 | } |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 8396 | _ACEOF |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 8397 | rm -f conftest.$ac_objext |
| 8398 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8399 | (eval $ac_compile) 2>&5 |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 8400 | ac_status=$? |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 8401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 8402 | (exit $ac_status); } && |
| 8403 | { ac_try='test -s conftest.$ac_objext' |
| 8404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8405 | (eval $ac_try) 2>&5 |
| 8406 | ac_status=$? |
| 8407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8408 | (exit $ac_status); }; }; then |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 8409 | ac_cv_header_stdc=yes |
| 8410 | else |
| 8411 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 8412 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8413 | |
| 8414 | ac_cv_header_stdc=no |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 8415 | fi |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 8416 | rm -f conftest.$ac_objext conftest.$ac_ext |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 8417 | |
| 8418 | if test $ac_cv_header_stdc = yes; then |
| 8419 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 8420 | cat >conftest.$ac_ext <<_ACEOF |
| 8421 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 8422 | /* confdefs.h. */ |
| 8423 | _ACEOF |
| 8424 | cat confdefs.h >>conftest.$ac_ext |
| 8425 | cat >>conftest.$ac_ext <<_ACEOF |
| 8426 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 8427 | #include <string.h> |
| 8428 | |
| 8429 | _ACEOF |
| 8430 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 8431 | $EGREP "memchr" >/dev/null 2>&1; then |
| 8432 | : |
| 8433 | else |
| 8434 | ac_cv_header_stdc=no |
| 8435 | fi |
| 8436 | rm -f conftest* |
| 8437 | |
| 8438 | fi |
| 8439 | |
| 8440 | if test $ac_cv_header_stdc = yes; then |
| 8441 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 8442 | cat >conftest.$ac_ext <<_ACEOF |
| 8443 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 8444 | /* confdefs.h. */ |
| 8445 | _ACEOF |
| 8446 | cat confdefs.h >>conftest.$ac_ext |
| 8447 | cat >>conftest.$ac_ext <<_ACEOF |
| 8448 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 8449 | #include <stdlib.h> |
| 8450 | |
| 8451 | _ACEOF |
| 8452 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 8453 | $EGREP "free" >/dev/null 2>&1; then |
| 8454 | : |
| 8455 | else |
| 8456 | ac_cv_header_stdc=no |
| 8457 | fi |
| 8458 | rm -f conftest* |
| 8459 | |
| 8460 | fi |
| 8461 | |
| 8462 | if test $ac_cv_header_stdc = yes; then |
| 8463 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 8464 | if test "$cross_compiling" = yes; then |
| 8465 | : |
| 8466 | else |
| 8467 | cat >conftest.$ac_ext <<_ACEOF |
| 8468 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 8469 | /* confdefs.h. */ |
| 8470 | _ACEOF |
| 8471 | cat confdefs.h >>conftest.$ac_ext |
| 8472 | cat >>conftest.$ac_ext <<_ACEOF |
| 8473 | /* end confdefs.h. */ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 8474 | #include <ctype.h> |
| 8475 | #if ((' ' & 0x0FF) == 0x020) |
| 8476 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 8477 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 8478 | #else |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 8479 | # define ISLOWER(c) \ |
| 8480 | (('a' <= (c) && (c) <= 'i') \ |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 8481 | || ('j' <= (c) && (c) <= 'r') \ |
| 8482 | || ('s' <= (c) && (c) <= 'z')) |
| 8483 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 8484 | #endif |
| 8485 | |
| 8486 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 8487 | int |
| 8488 | main () |
| 8489 | { |
| 8490 | int i; |
| 8491 | for (i = 0; i < 256; i++) |
| 8492 | if (XOR (islower (i), ISLOWER (i)) |
| 8493 | || toupper (i) != TOUPPER (i)) |
| 8494 | exit(2); |
| 8495 | exit (0); |
| 8496 | } |
| 8497 | _ACEOF |
| 8498 | rm -f conftest$ac_exeext |
| 8499 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8500 | (eval $ac_link) 2>&5 |
| 8501 | ac_status=$? |
| 8502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8503 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8505 | (eval $ac_try) 2>&5 |
| 8506 | ac_status=$? |
| 8507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8508 | (exit $ac_status); }; }; then |
| 8509 | : |
| 8510 | else |
| 8511 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8512 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 8513 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8514 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 8515 | ( exit $ac_status ) |
| 8516 | ac_cv_header_stdc=no |
| 8517 | fi |
| 8518 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8519 | fi |
| 8520 | fi |
| 8521 | fi |
| 8522 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 8523 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 8524 | if test $ac_cv_header_stdc = yes; then |
| 8525 | |
| 8526 | cat >>confdefs.h <<\_ACEOF |
| 8527 | #define STDC_HEADERS 1 |
| 8528 | _ACEOF |
| 8529 | |
| 8530 | fi |
| 8531 | |
| 8532 | |
mostang.com!davidm | 6af90d0 | 2003-02-15 08:53:55 +0000 | [diff] [blame] | 8533 | |
mostang.com!davidm | c7aaa68 | 2003-03-19 19:25:18 +0000 | [diff] [blame] | 8534 | |
| 8535 | |
| 8536 | |
mostang.com!davidm | 6ab15cd | 2003-04-03 07:59:15 +0000 | [diff] [blame] | 8537 | |
mostang.com!davidm | c7aaa68 | 2003-03-19 19:25:18 +0000 | [diff] [blame] | 8538 | for ac_header in asm/ptrace_offsets.h endian.h execinfo.h ia64intrin.h \ |
mostang.com!davidm | 6ab15cd | 2003-04-03 07:59:15 +0000 | [diff] [blame] | 8539 | sys/uc_access.h unistd.h |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8540 | do |
| 8541 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8542 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8543 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8544 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8545 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8547 | fi |
| 8548 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8549 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8550 | else |
| 8551 | # Is the header compilable? |
| 8552 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8553 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8554 | cat >conftest.$ac_ext <<_ACEOF |
| 8555 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 8556 | /* confdefs.h. */ |
| 8557 | _ACEOF |
| 8558 | cat confdefs.h >>conftest.$ac_ext |
| 8559 | cat >>conftest.$ac_ext <<_ACEOF |
| 8560 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8561 | $ac_includes_default |
| 8562 | #include <$ac_header> |
| 8563 | _ACEOF |
| 8564 | rm -f conftest.$ac_objext |
| 8565 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8566 | (eval $ac_compile) 2>&5 |
| 8567 | ac_status=$? |
| 8568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8569 | (exit $ac_status); } && |
| 8570 | { ac_try='test -s conftest.$ac_objext' |
| 8571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8572 | (eval $ac_try) 2>&5 |
| 8573 | ac_status=$? |
| 8574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8575 | (exit $ac_status); }; }; then |
| 8576 | ac_header_compiler=yes |
| 8577 | else |
| 8578 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 8579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8580 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8581 | ac_header_compiler=no |
| 8582 | fi |
| 8583 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8584 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8585 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8586 | |
| 8587 | # Is the header present? |
| 8588 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8589 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8590 | cat >conftest.$ac_ext <<_ACEOF |
| 8591 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 8592 | /* confdefs.h. */ |
| 8593 | _ACEOF |
| 8594 | cat confdefs.h >>conftest.$ac_ext |
| 8595 | cat >>conftest.$ac_ext <<_ACEOF |
| 8596 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8597 | #include <$ac_header> |
| 8598 | _ACEOF |
| 8599 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8600 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8601 | ac_status=$? |
| 8602 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8603 | rm -f conftest.er1 |
| 8604 | cat conftest.err >&5 |
| 8605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8606 | (exit $ac_status); } >/dev/null; then |
| 8607 | if test -s conftest.err; then |
| 8608 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8609 | else |
| 8610 | ac_cpp_err= |
| 8611 | fi |
| 8612 | else |
| 8613 | ac_cpp_err=yes |
| 8614 | fi |
| 8615 | if test -z "$ac_cpp_err"; then |
| 8616 | ac_header_preproc=yes |
| 8617 | else |
| 8618 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 8619 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8620 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8621 | ac_header_preproc=no |
| 8622 | fi |
| 8623 | rm -f conftest.err conftest.$ac_ext |
| 8624 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8625 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8626 | |
| 8627 | # So? What about this header? |
| 8628 | case $ac_header_compiler:$ac_header_preproc in |
| 8629 | yes:no ) |
| 8630 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8631 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8632 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 8633 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8634 | ( |
| 8635 | cat <<\_ASBOX |
| 8636 | ## ------------------------------------ ## |
| 8637 | ## Report this to bug-autoconf@gnu.org. ## |
| 8638 | ## ------------------------------------ ## |
| 8639 | _ASBOX |
| 8640 | ) | |
| 8641 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8642 | ;; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8643 | no:yes ) |
| 8644 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8645 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8646 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8647 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8648 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 8649 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8650 | ( |
| 8651 | cat <<\_ASBOX |
| 8652 | ## ------------------------------------ ## |
| 8653 | ## Report this to bug-autoconf@gnu.org. ## |
| 8654 | ## ------------------------------------ ## |
| 8655 | _ASBOX |
| 8656 | ) | |
| 8657 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8658 | ;; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8659 | esac |
| 8660 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8661 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8662 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8664 | else |
| 8665 | eval "$as_ac_Header=$ac_header_preproc" |
| 8666 | fi |
| 8667 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8668 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8669 | |
| 8670 | fi |
| 8671 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8672 | cat >>confdefs.h <<_ACEOF |
| 8673 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8674 | _ACEOF |
| 8675 | |
| 8676 | fi |
| 8677 | |
| 8678 | done |
| 8679 | |
| 8680 | |
| 8681 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 8682 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 8683 | if test "${ac_cv_c_const+set}" = set; then |
| 8684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8685 | else |
| 8686 | cat >conftest.$ac_ext <<_ACEOF |
| 8687 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 8688 | /* confdefs.h. */ |
| 8689 | _ACEOF |
| 8690 | cat confdefs.h >>conftest.$ac_ext |
| 8691 | cat >>conftest.$ac_ext <<_ACEOF |
| 8692 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8693 | |
| 8694 | int |
| 8695 | main () |
| 8696 | { |
| 8697 | /* FIXME: Include the comments suggested by Paul. */ |
| 8698 | #ifndef __cplusplus |
| 8699 | /* Ultrix mips cc rejects this. */ |
| 8700 | typedef int charset[2]; |
| 8701 | const charset x; |
| 8702 | /* SunOS 4.1.1 cc rejects this. */ |
| 8703 | char const *const *ccp; |
| 8704 | char **p; |
| 8705 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 8706 | struct point {int x, y;}; |
| 8707 | static struct point const zero = {0,0}; |
| 8708 | /* AIX XL C 1.02.0.0 rejects this. |
| 8709 | It does not let you subtract one const X* pointer from another in |
| 8710 | an arm of an if-expression whose if-part is not a constant |
| 8711 | expression */ |
| 8712 | const char *g = "string"; |
| 8713 | ccp = &g + (g ? g-g : 0); |
| 8714 | /* HPUX 7.0 cc rejects these. */ |
| 8715 | ++ccp; |
| 8716 | p = (char**) ccp; |
| 8717 | ccp = (char const *const *) p; |
| 8718 | { /* SCO 3.2v4 cc rejects this. */ |
| 8719 | char *t; |
| 8720 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 8721 | |
| 8722 | *t++ = 0; |
| 8723 | } |
| 8724 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 8725 | int x[] = {25, 17}; |
| 8726 | const int *foo = &x[0]; |
| 8727 | ++foo; |
| 8728 | } |
| 8729 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 8730 | typedef const int *iptr; |
| 8731 | iptr p = 0; |
| 8732 | ++p; |
| 8733 | } |
| 8734 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 8735 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 8736 | struct s { int j; const int *ap[3]; }; |
| 8737 | struct s *b; b->j = 5; |
| 8738 | } |
| 8739 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8740 | const int foo = 10; |
| 8741 | } |
| 8742 | #endif |
| 8743 | |
| 8744 | ; |
| 8745 | return 0; |
| 8746 | } |
| 8747 | _ACEOF |
| 8748 | rm -f conftest.$ac_objext |
| 8749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8750 | (eval $ac_compile) 2>&5 |
| 8751 | ac_status=$? |
| 8752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8753 | (exit $ac_status); } && |
| 8754 | { ac_try='test -s conftest.$ac_objext' |
| 8755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8756 | (eval $ac_try) 2>&5 |
| 8757 | ac_status=$? |
| 8758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8759 | (exit $ac_status); }; }; then |
| 8760 | ac_cv_c_const=yes |
| 8761 | else |
| 8762 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 8763 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8764 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8765 | ac_cv_c_const=no |
| 8766 | fi |
| 8767 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8768 | fi |
| 8769 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8770 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
| 8771 | if test $ac_cv_c_const = no; then |
| 8772 | |
| 8773 | cat >>confdefs.h <<\_ACEOF |
| 8774 | #define const |
| 8775 | _ACEOF |
| 8776 | |
| 8777 | fi |
| 8778 | |
| 8779 | echo "$as_me:$LINENO: checking for inline" >&5 |
| 8780 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
| 8781 | if test "${ac_cv_c_inline+set}" = set; then |
| 8782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8783 | else |
| 8784 | ac_cv_c_inline=no |
| 8785 | for ac_kw in inline __inline__ __inline; do |
| 8786 | cat >conftest.$ac_ext <<_ACEOF |
| 8787 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 8788 | /* confdefs.h. */ |
| 8789 | _ACEOF |
| 8790 | cat confdefs.h >>conftest.$ac_ext |
| 8791 | cat >>conftest.$ac_ext <<_ACEOF |
| 8792 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8793 | #ifndef __cplusplus |
| 8794 | typedef int foo_t; |
| 8795 | static $ac_kw foo_t static_foo () {return 0; } |
| 8796 | $ac_kw foo_t foo () {return 0; } |
| 8797 | #endif |
| 8798 | |
| 8799 | _ACEOF |
| 8800 | rm -f conftest.$ac_objext |
| 8801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8802 | (eval $ac_compile) 2>&5 |
| 8803 | ac_status=$? |
| 8804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8805 | (exit $ac_status); } && |
| 8806 | { ac_try='test -s conftest.$ac_objext' |
| 8807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8808 | (eval $ac_try) 2>&5 |
| 8809 | ac_status=$? |
| 8810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8811 | (exit $ac_status); }; }; then |
| 8812 | ac_cv_c_inline=$ac_kw; break |
| 8813 | else |
| 8814 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 8815 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8816 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8817 | fi |
| 8818 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8819 | done |
| 8820 | |
| 8821 | fi |
| 8822 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 8823 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
| 8824 | case $ac_cv_c_inline in |
| 8825 | inline | yes) ;; |
| 8826 | no) |
| 8827 | cat >>confdefs.h <<\_ACEOF |
| 8828 | #define inline |
| 8829 | _ACEOF |
| 8830 | ;; |
| 8831 | *) cat >>confdefs.h <<_ACEOF |
| 8832 | #define inline $ac_cv_c_inline |
| 8833 | _ACEOF |
| 8834 | ;; |
| 8835 | esac |
| 8836 | |
mostang.com!davidm | c7aaa68 | 2003-03-19 19:25:18 +0000 | [diff] [blame] | 8837 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 8838 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 8839 | if test "${ac_cv_type_signal+set}" = set; then |
| 8840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8841 | else |
| 8842 | cat >conftest.$ac_ext <<_ACEOF |
| 8843 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 8844 | /* confdefs.h. */ |
| 8845 | _ACEOF |
| 8846 | cat confdefs.h >>conftest.$ac_ext |
| 8847 | cat >>conftest.$ac_ext <<_ACEOF |
| 8848 | /* end confdefs.h. */ |
mostang.com!davidm | c7aaa68 | 2003-03-19 19:25:18 +0000 | [diff] [blame] | 8849 | #include <sys/types.h> |
| 8850 | #include <signal.h> |
| 8851 | #ifdef signal |
| 8852 | # undef signal |
| 8853 | #endif |
| 8854 | #ifdef __cplusplus |
| 8855 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 8856 | #else |
| 8857 | void (*signal ()) (); |
| 8858 | #endif |
| 8859 | |
| 8860 | int |
| 8861 | main () |
| 8862 | { |
| 8863 | int i; |
| 8864 | ; |
| 8865 | return 0; |
| 8866 | } |
| 8867 | _ACEOF |
| 8868 | rm -f conftest.$ac_objext |
| 8869 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8870 | (eval $ac_compile) 2>&5 |
| 8871 | ac_status=$? |
| 8872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8873 | (exit $ac_status); } && |
| 8874 | { ac_try='test -s conftest.$ac_objext' |
| 8875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8876 | (eval $ac_try) 2>&5 |
| 8877 | ac_status=$? |
| 8878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8879 | (exit $ac_status); }; }; then |
| 8880 | ac_cv_type_signal=void |
| 8881 | else |
| 8882 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 8883 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8884 | |
mostang.com!davidm | c7aaa68 | 2003-03-19 19:25:18 +0000 | [diff] [blame] | 8885 | ac_cv_type_signal=int |
| 8886 | fi |
| 8887 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8888 | fi |
| 8889 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 8890 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
| 8891 | |
| 8892 | cat >>confdefs.h <<_ACEOF |
| 8893 | #define RETSIGTYPE $ac_cv_type_signal |
| 8894 | _ACEOF |
| 8895 | |
| 8896 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8897 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 8898 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 8899 | if test "${ac_cv_type_size_t+set}" = set; then |
| 8900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8901 | else |
| 8902 | cat >conftest.$ac_ext <<_ACEOF |
| 8903 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 8904 | /* confdefs.h. */ |
| 8905 | _ACEOF |
| 8906 | cat confdefs.h >>conftest.$ac_ext |
| 8907 | cat >>conftest.$ac_ext <<_ACEOF |
| 8908 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8909 | $ac_includes_default |
| 8910 | int |
| 8911 | main () |
| 8912 | { |
| 8913 | if ((size_t *) 0) |
| 8914 | return 0; |
| 8915 | if (sizeof (size_t)) |
| 8916 | return 0; |
| 8917 | ; |
| 8918 | return 0; |
| 8919 | } |
| 8920 | _ACEOF |
| 8921 | rm -f conftest.$ac_objext |
| 8922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8923 | (eval $ac_compile) 2>&5 |
| 8924 | ac_status=$? |
| 8925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8926 | (exit $ac_status); } && |
| 8927 | { ac_try='test -s conftest.$ac_objext' |
| 8928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8929 | (eval $ac_try) 2>&5 |
| 8930 | ac_status=$? |
| 8931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8932 | (exit $ac_status); }; }; then |
| 8933 | ac_cv_type_size_t=yes |
| 8934 | else |
| 8935 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 8936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8937 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 8938 | ac_cv_type_size_t=no |
| 8939 | fi |
| 8940 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8941 | fi |
| 8942 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 8943 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 8944 | if test $ac_cv_type_size_t = yes; then |
| 8945 | : |
| 8946 | else |
| 8947 | |
| 8948 | cat >>confdefs.h <<_ACEOF |
| 8949 | #define size_t unsigned |
| 8950 | _ACEOF |
| 8951 | |
| 8952 | fi |
| 8953 | |
| 8954 | |
mostang.com!davidm | c7aaa68 | 2003-03-19 19:25:18 +0000 | [diff] [blame] | 8955 | echo "$as_me:$LINENO: checking for sighandler_t" >&5 |
| 8956 | echo $ECHO_N "checking for sighandler_t... $ECHO_C" >&6 |
| 8957 | if test "${ac_cv_type_sighandler_t+set}" = set; then |
| 8958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8959 | else |
| 8960 | cat >conftest.$ac_ext <<_ACEOF |
| 8961 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 8962 | /* confdefs.h. */ |
| 8963 | _ACEOF |
| 8964 | cat confdefs.h >>conftest.$ac_ext |
| 8965 | cat >>conftest.$ac_ext <<_ACEOF |
| 8966 | /* end confdefs.h. */ |
mostang.com!davidm | c7aaa68 | 2003-03-19 19:25:18 +0000 | [diff] [blame] | 8967 | $ac_includes_default |
| 8968 | int |
| 8969 | main () |
| 8970 | { |
| 8971 | if ((sighandler_t *) 0) |
| 8972 | return 0; |
| 8973 | if (sizeof (sighandler_t)) |
| 8974 | return 0; |
| 8975 | ; |
| 8976 | return 0; |
| 8977 | } |
| 8978 | _ACEOF |
| 8979 | rm -f conftest.$ac_objext |
| 8980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8981 | (eval $ac_compile) 2>&5 |
| 8982 | ac_status=$? |
| 8983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8984 | (exit $ac_status); } && |
| 8985 | { ac_try='test -s conftest.$ac_objext' |
| 8986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8987 | (eval $ac_try) 2>&5 |
| 8988 | ac_status=$? |
| 8989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8990 | (exit $ac_status); }; }; then |
| 8991 | ac_cv_type_sighandler_t=yes |
| 8992 | else |
| 8993 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 8994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8995 | |
mostang.com!davidm | c7aaa68 | 2003-03-19 19:25:18 +0000 | [diff] [blame] | 8996 | ac_cv_type_sighandler_t=no |
| 8997 | fi |
| 8998 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8999 | fi |
| 9000 | echo "$as_me:$LINENO: result: $ac_cv_type_sighandler_t" >&5 |
| 9001 | echo "${ECHO_T}$ac_cv_type_sighandler_t" >&6 |
mostang.com!davidm | 46149fd | 2003-03-31 18:16:54 +0000 | [diff] [blame] | 9002 | if test $ac_cv_type_sighandler_t = yes; then |
| 9003 | |
| 9004 | cat >>confdefs.h <<_ACEOF |
| 9005 | #define HAVE_SIGHANDLER_T 1 |
| 9006 | _ACEOF |
| 9007 | |
| 9008 | |
| 9009 | fi |
mostang.com!davidm | c7aaa68 | 2003-03-19 19:25:18 +0000 | [diff] [blame] | 9010 | |
| 9011 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9012 | echo "$as_me:$LINENO: checking for working memcmp" >&5 |
| 9013 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 |
| 9014 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
| 9015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9016 | else |
| 9017 | if test "$cross_compiling" = yes; then |
| 9018 | ac_cv_func_memcmp_working=no |
| 9019 | else |
| 9020 | cat >conftest.$ac_ext <<_ACEOF |
| 9021 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 9022 | /* confdefs.h. */ |
| 9023 | _ACEOF |
| 9024 | cat confdefs.h >>conftest.$ac_ext |
| 9025 | cat >>conftest.$ac_ext <<_ACEOF |
| 9026 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9027 | |
| 9028 | int |
| 9029 | main () |
| 9030 | { |
| 9031 | |
| 9032 | /* Some versions of memcmp are not 8-bit clean. */ |
| 9033 | char c0 = 0x40, c1 = 0x80, c2 = 0x81; |
| 9034 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
| 9035 | exit (1); |
| 9036 | |
| 9037 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
| 9038 | or more and with at least one buffer not starting on a 4-byte boundary. |
| 9039 | William Lewis provided this test program. */ |
| 9040 | { |
| 9041 | char foo[21]; |
| 9042 | char bar[21]; |
| 9043 | int i; |
| 9044 | for (i = 0; i < 4; i++) |
| 9045 | { |
| 9046 | char *a = foo + i; |
| 9047 | char *b = bar + i; |
| 9048 | strcpy (a, "--------01111111"); |
| 9049 | strcpy (b, "--------10000000"); |
| 9050 | if (memcmp (a, b, 16) >= 0) |
| 9051 | exit (1); |
| 9052 | } |
| 9053 | exit (0); |
| 9054 | } |
| 9055 | |
| 9056 | ; |
| 9057 | return 0; |
| 9058 | } |
| 9059 | _ACEOF |
| 9060 | rm -f conftest$ac_exeext |
| 9061 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9062 | (eval $ac_link) 2>&5 |
| 9063 | ac_status=$? |
| 9064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9065 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9067 | (eval $ac_try) 2>&5 |
| 9068 | ac_status=$? |
| 9069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9070 | (exit $ac_status); }; }; then |
| 9071 | ac_cv_func_memcmp_working=yes |
| 9072 | else |
| 9073 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9074 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 9075 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9076 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9077 | ( exit $ac_status ) |
| 9078 | ac_cv_func_memcmp_working=no |
| 9079 | fi |
| 9080 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 9081 | fi |
| 9082 | fi |
| 9083 | echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
| 9084 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 |
| 9085 | test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
| 9086 | |
| 9087 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 9088 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 9089 | if test "${ac_cv_type_signal+set}" = set; then |
| 9090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9091 | else |
| 9092 | cat >conftest.$ac_ext <<_ACEOF |
| 9093 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 9094 | /* confdefs.h. */ |
| 9095 | _ACEOF |
| 9096 | cat confdefs.h >>conftest.$ac_ext |
| 9097 | cat >>conftest.$ac_ext <<_ACEOF |
| 9098 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9099 | #include <sys/types.h> |
| 9100 | #include <signal.h> |
| 9101 | #ifdef signal |
| 9102 | # undef signal |
| 9103 | #endif |
| 9104 | #ifdef __cplusplus |
| 9105 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 9106 | #else |
| 9107 | void (*signal ()) (); |
| 9108 | #endif |
| 9109 | |
| 9110 | int |
| 9111 | main () |
| 9112 | { |
| 9113 | int i; |
| 9114 | ; |
| 9115 | return 0; |
| 9116 | } |
| 9117 | _ACEOF |
| 9118 | rm -f conftest.$ac_objext |
| 9119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9120 | (eval $ac_compile) 2>&5 |
| 9121 | ac_status=$? |
| 9122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9123 | (exit $ac_status); } && |
| 9124 | { ac_try='test -s conftest.$ac_objext' |
| 9125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9126 | (eval $ac_try) 2>&5 |
| 9127 | ac_status=$? |
| 9128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9129 | (exit $ac_status); }; }; then |
| 9130 | ac_cv_type_signal=void |
| 9131 | else |
| 9132 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 9133 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9134 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9135 | ac_cv_type_signal=int |
| 9136 | fi |
| 9137 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9138 | fi |
| 9139 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 9140 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
| 9141 | |
| 9142 | cat >>confdefs.h <<_ACEOF |
| 9143 | #define RETSIGTYPE $ac_cv_type_signal |
| 9144 | _ACEOF |
| 9145 | |
| 9146 | |
| 9147 | |
mostang.com!davidm | c7aaa68 | 2003-03-19 19:25:18 +0000 | [diff] [blame] | 9148 | |
| 9149 | |
| 9150 | |
| 9151 | for ac_func in dl_iterate_phdr dlmodinfo getunwind ttrace |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9152 | do |
| 9153 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9154 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9155 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 9156 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 9157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9158 | else |
| 9159 | cat >conftest.$ac_ext <<_ACEOF |
| 9160 | #line $LINENO "configure" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 9161 | /* confdefs.h. */ |
| 9162 | _ACEOF |
| 9163 | cat confdefs.h >>conftest.$ac_ext |
| 9164 | cat >>conftest.$ac_ext <<_ACEOF |
| 9165 | /* end confdefs.h. */ |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9166 | /* System header to define __stub macros and hopefully few prototypes, |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 9167 | which can conflict with char $ac_func (); below. |
| 9168 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9169 | <limits.h> exists even on freestanding compilers. */ |
| 9170 | #ifdef __STDC__ |
| 9171 | # include <limits.h> |
| 9172 | #else |
| 9173 | # include <assert.h> |
| 9174 | #endif |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9175 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9176 | #ifdef __cplusplus |
| 9177 | extern "C" |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 9178 | { |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9179 | #endif |
| 9180 | /* We use char because int might match the return type of a gcc2 |
| 9181 | builtin and then its argument prototype would still apply. */ |
| 9182 | char $ac_func (); |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9183 | /* The GNU C library defines this for functions which it implements |
| 9184 | to always fail with ENOSYS. Some functions are actually named |
| 9185 | something starting with __ and the normal name is an alias. */ |
| 9186 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 9187 | choke me |
| 9188 | #else |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 9189 | char (*f) () = $ac_func; |
| 9190 | #endif |
| 9191 | #ifdef __cplusplus |
| 9192 | } |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9193 | #endif |
| 9194 | |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 9195 | int |
| 9196 | main () |
| 9197 | { |
| 9198 | return f != $ac_func; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9199 | ; |
| 9200 | return 0; |
| 9201 | } |
| 9202 | _ACEOF |
| 9203 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9204 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9205 | (eval $ac_link) 2>&5 |
| 9206 | ac_status=$? |
| 9207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9208 | (exit $ac_status); } && |
| 9209 | { ac_try='test -s conftest$ac_exeext' |
| 9210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9211 | (eval $ac_try) 2>&5 |
| 9212 | ac_status=$? |
| 9213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9214 | (exit $ac_status); }; }; then |
| 9215 | eval "$as_ac_var=yes" |
| 9216 | else |
| 9217 | echo "$as_me: failed program was:" >&5 |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 9218 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9219 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9220 | eval "$as_ac_var=no" |
| 9221 | fi |
| 9222 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9223 | fi |
| 9224 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 9225 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 9226 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9227 | cat >>confdefs.h <<_ACEOF |
| 9228 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9229 | _ACEOF |
| 9230 | |
| 9231 | fi |
| 9232 | done |
| 9233 | |
| 9234 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9235 | get_arch() { |
| 9236 | case "$1" in |
| 9237 | i?86) echo x86;; |
mostang.com!davidm | 8d5c44b | 2003-01-14 07:11:56 +0000 | [diff] [blame] | 9238 | hppa*) echo hppa;; |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 9239 | *) echo $1;; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9240 | esac |
| 9241 | } |
| 9242 | |
| 9243 | build_arch=`get_arch $build_cpu` |
| 9244 | target_arch=`get_arch $target_cpu` |
| 9245 | |
| 9246 | |
| 9247 | |
| 9248 | if test x$target_arch != x$build_arch; then |
| 9249 | REMOTE_ONLY_TRUE= |
| 9250 | REMOTE_ONLY_FALSE='#' |
| 9251 | else |
| 9252 | REMOTE_ONLY_TRUE='#' |
| 9253 | REMOTE_ONLY_FALSE= |
| 9254 | fi |
| 9255 | |
| 9256 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 9257 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 9258 | if test x$target_arch = xia64; then |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9259 | ARCH_IA64_TRUE= |
| 9260 | ARCH_IA64_FALSE='#' |
| 9261 | else |
| 9262 | ARCH_IA64_TRUE='#' |
| 9263 | ARCH_IA64_FALSE= |
| 9264 | fi |
| 9265 | |
| 9266 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 9267 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 9268 | if test x$target_arch = xhppa; then |
mostang.com!davidm | 8d5c44b | 2003-01-14 07:11:56 +0000 | [diff] [blame] | 9269 | ARCH_HPPA_TRUE= |
| 9270 | ARCH_HPPA_FALSE='#' |
| 9271 | else |
| 9272 | ARCH_HPPA_TRUE='#' |
| 9273 | ARCH_HPPA_FALSE= |
| 9274 | fi |
| 9275 | |
| 9276 | |
| 9277 | |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 9278 | if test x$target_arch = xx86; then |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 9279 | ARCH_X86_TRUE= |
| 9280 | ARCH_X86_FALSE='#' |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9281 | else |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 9282 | ARCH_X86_TRUE='#' |
| 9283 | ARCH_X86_FALSE= |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9284 | fi |
| 9285 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 9286 | |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 9287 | |
| 9288 | if expr x$target_os : xlinux >/dev/null; then |
| 9289 | OS_LINUX_TRUE= |
| 9290 | OS_LINUX_FALSE='#' |
| 9291 | else |
| 9292 | OS_LINUX_TRUE='#' |
| 9293 | OS_LINUX_FALSE= |
| 9294 | fi |
| 9295 | |
| 9296 | |
mostang.com!davidm | 6ab15cd | 2003-04-03 07:59:15 +0000 | [diff] [blame] | 9297 | |
| 9298 | if expr x$target_os : xhpux >/dev/null; then |
| 9299 | OS_HPUX_TRUE= |
| 9300 | OS_HPUX_FALSE='#' |
| 9301 | else |
| 9302 | OS_HPUX_TRUE='#' |
| 9303 | OS_HPUX_FALSE= |
| 9304 | fi |
| 9305 | |
| 9306 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9307 | if test x$target_arch != x$build_arch; then |
| 9308 | CPPFLAGS="${CPPFLAGS} -DUNW_REMOTE_ONLY" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9309 | fi |
mostang.com!davidm | 51e4d34 | 2002-12-12 09:17:41 +0000 | [diff] [blame] | 9310 | ac_config_links="$ac_config_links include/libunwind.h:include/libunwind-$target_arch.h include/tdep.h:include/tdep-$target_arch.h" |
| 9311 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9312 | |
| 9313 | # Check whether --enable-debug or --disable-debug was given. |
| 9314 | if test "${enable_debug+set}" = set; then |
| 9315 | enableval="$enable_debug" |
| 9316 | enable_debug=yes |
| 9317 | fi; |
| 9318 | |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 9319 | if test "x$enable___thread" != xno; then |
mostang.com!davidm | fb2c7eb | 2002-11-09 07:59:02 +0000 | [diff] [blame] | 9320 | echo "$as_me:$LINENO: checking for __thread" >&5 |
| 9321 | echo $ECHO_N "checking for __thread... $ECHO_C" >&6 |
| 9322 | if test "${libc_cv_gcc___thread+set}" = set; then |
| 9323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9324 | else |
| 9325 | cat > conftest.c <<\EOF |
| 9326 | __thread int a = 42; |
| 9327 | EOF |
| 9328 | if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5' |
| 9329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9330 | (eval $ac_try) 2>&5 |
| 9331 | ac_status=$? |
| 9332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9333 | (exit $ac_status); }; }; then |
| 9334 | libc_cv_gcc___thread=yes |
| 9335 | else |
| 9336 | libc_cv_gcc___thread=no |
| 9337 | fi |
| 9338 | rm -f conftest* |
| 9339 | fi |
| 9340 | echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5 |
| 9341 | echo "${ECHO_T}$libc_cv_gcc___thread" >&6 |
| 9342 | if test "$libc_cv_gcc___thread" = yes; then |
mostang.com!davidm | 57f5fae | 2002-12-03 08:19:58 +0000 | [diff] [blame] | 9343 | |
| 9344 | cat >>confdefs.h <<\_ACEOF |
mostang.com!davidm | fb2c7eb | 2002-11-09 07:59:02 +0000 | [diff] [blame] | 9345 | #define HAVE___THREAD 1 |
| 9346 | _ACEOF |
| 9347 | |
| 9348 | fi |
| 9349 | else |
| 9350 | libc_cv_gcc___thread=no |
| 9351 | fi |
| 9352 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9353 | CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE" |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 9354 | if test x$enable_debug = xyes; then |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9355 | CPPFLAGS="${CPPFLAGS} -DDEBUG" |
| 9356 | else |
| 9357 | CPPFLAGS="${CPPFLAGS} -DNDEBUG" |
| 9358 | fi |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9359 | |
| 9360 | if test x$GCC = xyes; then |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 9361 | CFLAGS="${CFLAGS} -Wall -Wsign-compare" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9362 | fi |
| 9363 | |
mostang.com!davidm | 6af90d0 | 2003-02-15 08:53:55 +0000 | [diff] [blame] | 9364 | CCASFLAGS="${CCASFLAGS} ${CPPFLAGS}" |
| 9365 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9366 | arch="$target_arch" |
| 9367 | ARCH=`echo $target_arch | tr a-z A-Z` |
| 9368 | |
| 9369 | |
| 9370 | |
mostang.com!davidm | f648f6f | 2003-01-17 07:48:52 +0000 | [diff] [blame] | 9371 | |
| 9372 | ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile doc/Makefile doc/common.tex" |
| 9373 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9374 | cat >confcache <<\_ACEOF |
| 9375 | # This file is a shell script that caches the results of configure |
| 9376 | # tests run on this system so they can be shared between configure |
| 9377 | # scripts and configure runs, see configure's option --config-cache. |
| 9378 | # It is not useful on other systems. If it contains results you don't |
| 9379 | # want to keep, you may remove or edit it. |
| 9380 | # |
| 9381 | # config.status only pays attention to the cache file if you give it |
| 9382 | # the --recheck option to rerun configure. |
| 9383 | # |
| 9384 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 9385 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 9386 | # following values. |
| 9387 | |
| 9388 | _ACEOF |
| 9389 | |
| 9390 | # The following way of writing the cache mishandles newlines in values, |
| 9391 | # but we know of no workaround that is simple, portable, and efficient. |
| 9392 | # So, don't put newlines in cache variables' values. |
| 9393 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 9394 | # and sets the high bit in the cache file unless we assign to the vars. |
| 9395 | { |
| 9396 | (set) 2>&1 | |
| 9397 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 9398 | *ac_space=\ *) |
| 9399 | # `set' does not quote correctly, so add quotes (double-quote |
| 9400 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 9401 | sed -n \ |
| 9402 | "s/'/'\\\\''/g; |
| 9403 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 9404 | ;; |
| 9405 | *) |
| 9406 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 9407 | sed -n \ |
| 9408 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 9409 | ;; |
| 9410 | esac; |
| 9411 | } | |
| 9412 | sed ' |
| 9413 | t clear |
| 9414 | : clear |
| 9415 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 9416 | t end |
| 9417 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 9418 | : end' >>confcache |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 9419 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9420 | if test -w $cache_file; then |
| 9421 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 9422 | cat confcache >$cache_file |
| 9423 | else |
| 9424 | echo "not updating unwritable cache $cache_file" |
| 9425 | fi |
| 9426 | fi |
| 9427 | rm -f confcache |
| 9428 | |
| 9429 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 9430 | # Let make expand exec_prefix. |
| 9431 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 9432 | |
| 9433 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 9434 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 9435 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 9436 | # (actually we leave an empty line to preserve line numbers). |
| 9437 | if test "x$srcdir" = x.; then |
| 9438 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 9439 | s/:*\$(srcdir):*/:/; |
| 9440 | s/:*\${srcdir}:*/:/; |
| 9441 | s/:*@srcdir@:*/:/; |
| 9442 | s/^\([^=]*=[ ]*\):*/\1/; |
| 9443 | s/:*$//; |
| 9444 | s/^[^=]*=[ ]*$//; |
| 9445 | }' |
| 9446 | fi |
| 9447 | |
| 9448 | DEFS=-DHAVE_CONFIG_H |
| 9449 | |
| 9450 | ac_libobjs= |
| 9451 | ac_ltlibobjs= |
| 9452 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 9453 | # 1. Remove the extension, and $U if already installed. |
| 9454 | ac_i=`echo "$ac_i" | |
| 9455 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 9456 | # 2. Add them. |
| 9457 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 9458 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 9459 | done |
| 9460 | LIBOBJS=$ac_libobjs |
| 9461 | |
| 9462 | LTLIBOBJS=$ac_ltlibobjs |
| 9463 | |
| 9464 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 9465 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 9466 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 9467 | Usually this means the macro was only invoked conditionally." >&5 |
| 9468 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 9469 | Usually this means the macro was only invoked conditionally." >&2;} |
| 9470 | { (exit 1); exit 1; }; } |
| 9471 | fi |
| 9472 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 9473 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
| 9474 | Usually this means the macro was only invoked conditionally." >&5 |
| 9475 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
| 9476 | Usually this means the macro was only invoked conditionally." >&2;} |
| 9477 | { (exit 1); exit 1; }; } |
| 9478 | fi |
| 9479 | if test -z "${REMOTE_ONLY_TRUE}" && test -z "${REMOTE_ONLY_FALSE}"; then |
| 9480 | { { echo "$as_me:$LINENO: error: conditional \"REMOTE_ONLY\" was never defined. |
| 9481 | Usually this means the macro was only invoked conditionally." >&5 |
| 9482 | echo "$as_me: error: conditional \"REMOTE_ONLY\" was never defined. |
| 9483 | Usually this means the macro was only invoked conditionally." >&2;} |
| 9484 | { (exit 1); exit 1; }; } |
| 9485 | fi |
| 9486 | if test -z "${ARCH_IA64_TRUE}" && test -z "${ARCH_IA64_FALSE}"; then |
| 9487 | { { echo "$as_me:$LINENO: error: conditional \"ARCH_IA64\" was never defined. |
| 9488 | Usually this means the macro was only invoked conditionally." >&5 |
| 9489 | echo "$as_me: error: conditional \"ARCH_IA64\" was never defined. |
| 9490 | Usually this means the macro was only invoked conditionally." >&2;} |
| 9491 | { (exit 1); exit 1; }; } |
| 9492 | fi |
mostang.com!davidm | 8d5c44b | 2003-01-14 07:11:56 +0000 | [diff] [blame] | 9493 | if test -z "${ARCH_HPPA_TRUE}" && test -z "${ARCH_HPPA_FALSE}"; then |
| 9494 | { { echo "$as_me:$LINENO: error: conditional \"ARCH_HPPA\" was never defined. |
| 9495 | Usually this means the macro was only invoked conditionally." >&5 |
| 9496 | echo "$as_me: error: conditional \"ARCH_HPPA\" was never defined. |
| 9497 | Usually this means the macro was only invoked conditionally." >&2;} |
| 9498 | { (exit 1); exit 1; }; } |
| 9499 | fi |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 9500 | if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then |
| 9501 | { { echo "$as_me:$LINENO: error: conditional \"ARCH_X86\" was never defined. |
| 9502 | Usually this means the macro was only invoked conditionally." >&5 |
| 9503 | echo "$as_me: error: conditional \"ARCH_X86\" was never defined. |
| 9504 | Usually this means the macro was only invoked conditionally." >&2;} |
| 9505 | { (exit 1); exit 1; }; } |
| 9506 | fi |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 9507 | if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then |
| 9508 | { { echo "$as_me:$LINENO: error: conditional \"OS_LINUX\" was never defined. |
| 9509 | Usually this means the macro was only invoked conditionally." >&5 |
| 9510 | echo "$as_me: error: conditional \"OS_LINUX\" was never defined. |
| 9511 | Usually this means the macro was only invoked conditionally." >&2;} |
| 9512 | { (exit 1); exit 1; }; } |
| 9513 | fi |
mostang.com!davidm | 6ab15cd | 2003-04-03 07:59:15 +0000 | [diff] [blame] | 9514 | if test -z "${OS_HPUX_TRUE}" && test -z "${OS_HPUX_FALSE}"; then |
| 9515 | { { echo "$as_me:$LINENO: error: conditional \"OS_HPUX\" was never defined. |
| 9516 | Usually this means the macro was only invoked conditionally." >&5 |
| 9517 | echo "$as_me: error: conditional \"OS_HPUX\" was never defined. |
| 9518 | Usually this means the macro was only invoked conditionally." >&2;} |
| 9519 | { (exit 1); exit 1; }; } |
| 9520 | fi |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9521 | |
| 9522 | : ${CONFIG_STATUS=./config.status} |
| 9523 | ac_clean_files_save=$ac_clean_files |
| 9524 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 9525 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 9526 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 9527 | cat >$CONFIG_STATUS <<_ACEOF |
| 9528 | #! $SHELL |
| 9529 | # Generated by $as_me. |
| 9530 | # Run this file to recreate the current configuration. |
| 9531 | # Compiler output produced by configure, useful for debugging |
| 9532 | # configure, is in config.log if it exists. |
| 9533 | |
| 9534 | debug=false |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 9535 | ac_cs_recheck=false |
| 9536 | ac_cs_silent=false |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9537 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 9538 | _ACEOF |
| 9539 | |
| 9540 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9541 | ## --------------------- ## |
| 9542 | ## M4sh Initialization. ## |
| 9543 | ## --------------------- ## |
| 9544 | |
| 9545 | # Be Bourne compatible |
| 9546 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 9547 | emulate sh |
| 9548 | NULLCMD=: |
| 9549 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 9550 | # is contrary to our usage. Disable this feature. |
| 9551 | alias -g '${1+"$@"}'='"$@"' |
| 9552 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 9553 | set -o posix |
| 9554 | fi |
| 9555 | |
| 9556 | # Support unset when possible. |
| 9557 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 9558 | as_unset=unset |
| 9559 | else |
| 9560 | as_unset=false |
| 9561 | fi |
| 9562 | |
| 9563 | |
| 9564 | # Work around bugs in pre-3.0 UWIN ksh. |
| 9565 | $as_unset ENV MAIL MAILPATH |
| 9566 | PS1='$ ' |
| 9567 | PS2='> ' |
| 9568 | PS4='+ ' |
| 9569 | |
| 9570 | # NLS nuisances. |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 9571 | for as_var in \ |
| 9572 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 9573 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 9574 | LC_TELEPHONE LC_TIME |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9575 | do |
| 9576 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 9577 | eval $as_var=C; export $as_var |
| 9578 | else |
| 9579 | $as_unset $as_var |
| 9580 | fi |
| 9581 | done |
| 9582 | |
| 9583 | # Required to use basename. |
| 9584 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 9585 | as_expr=expr |
| 9586 | else |
| 9587 | as_expr=false |
| 9588 | fi |
| 9589 | |
| 9590 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 9591 | as_basename=basename |
| 9592 | else |
| 9593 | as_basename=false |
| 9594 | fi |
| 9595 | |
| 9596 | |
| 9597 | # Name of the executable. |
| 9598 | as_me=`$as_basename "$0" || |
| 9599 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 9600 | X"$0" : 'X\(//\)$' \| \ |
| 9601 | X"$0" : 'X\(/\)$' \| \ |
| 9602 | . : '\(.\)' 2>/dev/null || |
| 9603 | echo X/"$0" | |
| 9604 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 9605 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 9606 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 9607 | s/.*/./; q'` |
| 9608 | |
| 9609 | |
| 9610 | # PATH needs CR, and LINENO needs CR and PATH. |
| 9611 | # Avoid depending upon Character Ranges. |
| 9612 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 9613 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 9614 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 9615 | as_cr_digits='0123456789' |
| 9616 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 9617 | |
| 9618 | # The user is always right. |
| 9619 | if test "${PATH_SEPARATOR+set}" != set; then |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 9620 | echo "#! /bin/sh" >conf$$.sh |
| 9621 | echo "exit 0" >>conf$$.sh |
| 9622 | chmod +x conf$$.sh |
| 9623 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9624 | PATH_SEPARATOR=';' |
| 9625 | else |
| 9626 | PATH_SEPARATOR=: |
| 9627 | fi |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 9628 | rm -f conf$$.sh |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9629 | fi |
| 9630 | |
| 9631 | |
| 9632 | as_lineno_1=$LINENO |
| 9633 | as_lineno_2=$LINENO |
| 9634 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 9635 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 9636 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 9637 | # Find who we are. Look in the path if we contain no path at all |
| 9638 | # relative or not. |
| 9639 | case $0 in |
| 9640 | *[\\/]* ) as_myself=$0 ;; |
| 9641 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9642 | for as_dir in $PATH |
| 9643 | do |
| 9644 | IFS=$as_save_IFS |
| 9645 | test -z "$as_dir" && as_dir=. |
| 9646 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 9647 | done |
| 9648 | |
| 9649 | ;; |
| 9650 | esac |
| 9651 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 9652 | # in which case we are not to be found in the path. |
| 9653 | if test "x$as_myself" = x; then |
| 9654 | as_myself=$0 |
| 9655 | fi |
| 9656 | if test ! -f "$as_myself"; then |
| 9657 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 9658 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 9659 | { (exit 1); exit 1; }; } |
| 9660 | fi |
| 9661 | case $CONFIG_SHELL in |
| 9662 | '') |
| 9663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9664 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 9665 | do |
| 9666 | IFS=$as_save_IFS |
| 9667 | test -z "$as_dir" && as_dir=. |
| 9668 | for as_base in sh bash ksh sh5; do |
| 9669 | case $as_dir in |
| 9670 | /*) |
| 9671 | if ("$as_dir/$as_base" -c ' |
| 9672 | as_lineno_1=$LINENO |
| 9673 | as_lineno_2=$LINENO |
| 9674 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 9675 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 9676 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 9677 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 9678 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 9679 | CONFIG_SHELL=$as_dir/$as_base |
| 9680 | export CONFIG_SHELL |
| 9681 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 9682 | fi;; |
| 9683 | esac |
| 9684 | done |
| 9685 | done |
| 9686 | ;; |
| 9687 | esac |
| 9688 | |
| 9689 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 9690 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 9691 | # line-number line before each line; the second 'sed' does the real |
| 9692 | # work. The second script uses 'N' to pair each line-number line |
| 9693 | # with the numbered line, and appends trailing '-' during |
| 9694 | # substitution so that $LINENO is not a special case at line end. |
| 9695 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 9696 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 9697 | sed '=' <$as_myself | |
| 9698 | sed ' |
| 9699 | N |
| 9700 | s,$,-, |
| 9701 | : loop |
| 9702 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 9703 | t loop |
| 9704 | s,-$,, |
| 9705 | s,^['$as_cr_digits']*\n,, |
| 9706 | ' >$as_me.lineno && |
| 9707 | chmod +x $as_me.lineno || |
| 9708 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 9709 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 9710 | { (exit 1); exit 1; }; } |
| 9711 | |
| 9712 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 9713 | # (the dirname of $[0] is not the place where we might find the |
| 9714 | # original and so on. Autoconf is especially sensible to this). |
| 9715 | . ./$as_me.lineno |
| 9716 | # Exit status is that of the last command. |
| 9717 | exit |
| 9718 | } |
| 9719 | |
| 9720 | |
| 9721 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 9722 | *c*,-n*) ECHO_N= ECHO_C=' |
| 9723 | ' ECHO_T=' ' ;; |
| 9724 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 9725 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 9726 | esac |
| 9727 | |
| 9728 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 9729 | as_expr=expr |
| 9730 | else |
| 9731 | as_expr=false |
| 9732 | fi |
| 9733 | |
| 9734 | rm -f conf$$ conf$$.exe conf$$.file |
| 9735 | echo >conf$$.file |
| 9736 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 9737 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 9738 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 9739 | if test -f conf$$.exe; then |
| 9740 | # Don't use ln at all; we don't have any links |
| 9741 | as_ln_s='cp -p' |
| 9742 | else |
| 9743 | as_ln_s='ln -s' |
| 9744 | fi |
| 9745 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 9746 | as_ln_s=ln |
| 9747 | else |
| 9748 | as_ln_s='cp -p' |
| 9749 | fi |
| 9750 | rm -f conf$$ conf$$.exe conf$$.file |
| 9751 | |
| 9752 | if mkdir -p . 2>/dev/null; then |
| 9753 | as_mkdir_p=: |
| 9754 | else |
| 9755 | as_mkdir_p=false |
| 9756 | fi |
| 9757 | |
| 9758 | as_executable_p="test -f" |
| 9759 | |
| 9760 | # Sed expression to map a string onto a valid CPP name. |
| 9761 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 9762 | |
| 9763 | # Sed expression to map a string onto a valid variable name. |
| 9764 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 9765 | |
| 9766 | |
| 9767 | # IFS |
| 9768 | # We need space, tab and new line, in precisely that order. |
| 9769 | as_nl=' |
| 9770 | ' |
| 9771 | IFS=" $as_nl" |
| 9772 | |
| 9773 | # CDPATH. |
| 9774 | $as_unset CDPATH |
| 9775 | |
| 9776 | exec 6>&1 |
| 9777 | |
| 9778 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 9779 | # report actual input values of CONFIG_FILES etc. instead of their |
| 9780 | # values after options handling. Logging --version etc. is OK. |
| 9781 | exec 5>>config.log |
| 9782 | { |
| 9783 | echo |
| 9784 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 9785 | ## Running $as_me. ## |
| 9786 | _ASBOX |
| 9787 | } >&5 |
| 9788 | cat >&5 <<_CSEOF |
| 9789 | |
| 9790 | This file was extended by $as_me, which was |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 9791 | generated by GNU Autoconf 2.57. Invocation command line was |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9792 | |
| 9793 | CONFIG_FILES = $CONFIG_FILES |
| 9794 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 9795 | CONFIG_LINKS = $CONFIG_LINKS |
| 9796 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 9797 | $ $0 $@ |
| 9798 | |
| 9799 | _CSEOF |
| 9800 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 9801 | echo >&5 |
| 9802 | _ACEOF |
| 9803 | |
| 9804 | # Files that config.status was made for. |
| 9805 | if test -n "$ac_config_files"; then |
| 9806 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 9807 | fi |
| 9808 | |
| 9809 | if test -n "$ac_config_headers"; then |
| 9810 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 9811 | fi |
| 9812 | |
| 9813 | if test -n "$ac_config_links"; then |
| 9814 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 9815 | fi |
| 9816 | |
| 9817 | if test -n "$ac_config_commands"; then |
| 9818 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 9819 | fi |
| 9820 | |
| 9821 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9822 | |
| 9823 | ac_cs_usage="\ |
| 9824 | \`$as_me' instantiates files from templates according to the |
| 9825 | current configuration. |
| 9826 | |
| 9827 | Usage: $0 [OPTIONS] [FILE]... |
| 9828 | |
| 9829 | -h, --help print this help, then exit |
| 9830 | -V, --version print version number, then exit |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 9831 | -q, --quiet do not print progress messages |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9832 | -d, --debug don't remove temporary files |
| 9833 | --recheck update $as_me by reconfiguring in the same conditions |
| 9834 | --file=FILE[:TEMPLATE] |
| 9835 | instantiate the configuration file FILE |
| 9836 | --header=FILE[:TEMPLATE] |
| 9837 | instantiate the configuration header FILE |
| 9838 | |
| 9839 | Configuration files: |
| 9840 | $config_files |
| 9841 | |
| 9842 | Configuration headers: |
| 9843 | $config_headers |
| 9844 | |
| 9845 | Configuration links: |
| 9846 | $config_links |
| 9847 | |
| 9848 | Configuration commands: |
| 9849 | $config_commands |
| 9850 | |
| 9851 | Report bugs to <bug-autoconf@gnu.org>." |
| 9852 | _ACEOF |
| 9853 | |
| 9854 | cat >>$CONFIG_STATUS <<_ACEOF |
| 9855 | ac_cs_version="\\ |
| 9856 | config.status |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 9857 | configured by $0, generated by GNU Autoconf 2.57, |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9858 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 9859 | |
| 9860 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 9861 | Free Software Foundation, Inc. |
| 9862 | This config.status script is free software; the Free Software Foundation |
| 9863 | gives unlimited permission to copy, distribute and modify it." |
| 9864 | srcdir=$srcdir |
| 9865 | INSTALL="$INSTALL" |
| 9866 | _ACEOF |
| 9867 | |
| 9868 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9869 | # If no file are specified by the user, then we need to provide default |
| 9870 | # value. By we need to know if files were specified by the user. |
| 9871 | ac_need_defaults=: |
| 9872 | while test $# != 0 |
| 9873 | do |
| 9874 | case $1 in |
| 9875 | --*=*) |
| 9876 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 9877 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 9878 | ac_shift=: |
| 9879 | ;; |
| 9880 | -*) |
| 9881 | ac_option=$1 |
| 9882 | ac_optarg=$2 |
| 9883 | ac_shift=shift |
| 9884 | ;; |
| 9885 | *) # This is not an option, so the user has probably given explicit |
| 9886 | # arguments. |
| 9887 | ac_option=$1 |
| 9888 | ac_need_defaults=false;; |
| 9889 | esac |
| 9890 | |
| 9891 | case $ac_option in |
| 9892 | # Handling of the options. |
| 9893 | _ACEOF |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 9894 | cat >>$CONFIG_STATUS <<\_ACEOF |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 9895 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 9896 | ac_cs_recheck=: ;; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9897 | --version | --vers* | -V ) |
| 9898 | echo "$ac_cs_version"; exit 0 ;; |
| 9899 | --he | --h) |
| 9900 | # Conflict between --help and --header |
| 9901 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 9902 | Try \`$0 --help' for more information." >&5 |
| 9903 | echo "$as_me: error: ambiguous option: $1 |
| 9904 | Try \`$0 --help' for more information." >&2;} |
| 9905 | { (exit 1); exit 1; }; };; |
| 9906 | --help | --hel | -h ) |
| 9907 | echo "$ac_cs_usage"; exit 0 ;; |
| 9908 | --debug | --d* | -d ) |
| 9909 | debug=: ;; |
| 9910 | --file | --fil | --fi | --f ) |
| 9911 | $ac_shift |
| 9912 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 9913 | ac_need_defaults=false;; |
| 9914 | --header | --heade | --head | --hea ) |
| 9915 | $ac_shift |
| 9916 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 9917 | ac_need_defaults=false;; |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 9918 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 9919 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 9920 | ac_cs_silent=: ;; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9921 | |
| 9922 | # This is an error. |
| 9923 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 9924 | Try \`$0 --help' for more information." >&5 |
| 9925 | echo "$as_me: error: unrecognized option: $1 |
| 9926 | Try \`$0 --help' for more information." >&2;} |
| 9927 | { (exit 1); exit 1; }; } ;; |
| 9928 | |
| 9929 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 9930 | |
| 9931 | esac |
| 9932 | shift |
| 9933 | done |
| 9934 | |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 9935 | ac_configure_extra_args= |
| 9936 | |
| 9937 | if $ac_cs_silent; then |
| 9938 | exec 6>/dev/null |
| 9939 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 9940 | fi |
| 9941 | |
| 9942 | _ACEOF |
| 9943 | cat >>$CONFIG_STATUS <<_ACEOF |
| 9944 | if \$ac_cs_recheck; then |
| 9945 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 9946 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 9947 | fi |
| 9948 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9949 | _ACEOF |
| 9950 | |
| 9951 | cat >>$CONFIG_STATUS <<_ACEOF |
| 9952 | # |
| 9953 | # INIT-COMMANDS section. |
| 9954 | # |
| 9955 | |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 9956 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9957 | |
| 9958 | _ACEOF |
| 9959 | |
| 9960 | |
| 9961 | |
| 9962 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 9963 | for ac_config_target in $ac_config_targets |
| 9964 | do |
| 9965 | case "$ac_config_target" in |
| 9966 | # Handling of arguments. |
| 9967 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 9968 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
| 9969 | "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; |
| 9970 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
mostang.com!davidm | f648f6f | 2003-01-17 07:48:52 +0000 | [diff] [blame] | 9971 | "doc/common.tex" ) CONFIG_FILES="$CONFIG_FILES doc/common.tex" ;; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9972 | "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] | 9973 | "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] | 9974 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9975 | "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; |
| 9976 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 9977 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 9978 | { (exit 1); exit 1; }; };; |
| 9979 | esac |
| 9980 | done |
| 9981 | |
| 9982 | # If the user did not use the arguments to specify the items to instantiate, |
| 9983 | # then the envvar interface is used. Set only those that are not. |
| 9984 | # We use the long form for the default assignment because of an extremely |
| 9985 | # bizarre bug on SunOS 4.1.3. |
| 9986 | if $ac_need_defaults; then |
| 9987 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 9988 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 9989 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links |
| 9990 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 9991 | fi |
| 9992 | |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 9993 | # Have a temporary directory for convenience. Make it in the build tree |
| 9994 | # simply because there is no reason to put it here, and in addition, |
| 9995 | # creating and moving files from /tmp can sometimes cause problems. |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 9996 | # Create a temporary directory, and hook for its removal unless debugging. |
| 9997 | $debug || |
| 9998 | { |
| 9999 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 10000 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 10001 | } |
| 10002 | |
| 10003 | # Create a (secure) tmp directory for tmp files. |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 10004 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 10005 | { |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 10006 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 10007 | test -n "$tmp" && test -d "$tmp" |
| 10008 | } || |
| 10009 | { |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 10010 | tmp=./confstat$$-$RANDOM |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 10011 | (umask 077 && mkdir $tmp) |
| 10012 | } || |
| 10013 | { |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 10014 | echo "$me: cannot create a temporary directory in ." >&2 |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 10015 | { (exit 1); exit 1; } |
| 10016 | } |
| 10017 | |
| 10018 | _ACEOF |
| 10019 | |
| 10020 | cat >>$CONFIG_STATUS <<_ACEOF |
| 10021 | |
| 10022 | # |
| 10023 | # CONFIG_FILES section. |
| 10024 | # |
| 10025 | |
| 10026 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 10027 | # This happens for instance when ./config.status config.h |
| 10028 | if test -n "\$CONFIG_FILES"; then |
| 10029 | # Protect against being on the right side of a sed subst in config.status. |
| 10030 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 10031 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 10032 | s,@SHELL@,$SHELL,;t t |
| 10033 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 10034 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 10035 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 10036 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 10037 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 10038 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 10039 | s,@exec_prefix@,$exec_prefix,;t t |
| 10040 | s,@prefix@,$prefix,;t t |
| 10041 | s,@program_transform_name@,$program_transform_name,;t t |
| 10042 | s,@bindir@,$bindir,;t t |
| 10043 | s,@sbindir@,$sbindir,;t t |
| 10044 | s,@libexecdir@,$libexecdir,;t t |
| 10045 | s,@datadir@,$datadir,;t t |
| 10046 | s,@sysconfdir@,$sysconfdir,;t t |
| 10047 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 10048 | s,@localstatedir@,$localstatedir,;t t |
| 10049 | s,@libdir@,$libdir,;t t |
| 10050 | s,@includedir@,$includedir,;t t |
| 10051 | s,@oldincludedir@,$oldincludedir,;t t |
| 10052 | s,@infodir@,$infodir,;t t |
| 10053 | s,@mandir@,$mandir,;t t |
| 10054 | s,@build_alias@,$build_alias,;t t |
| 10055 | s,@host_alias@,$host_alias,;t t |
| 10056 | s,@target_alias@,$target_alias,;t t |
| 10057 | s,@DEFS@,$DEFS,;t t |
| 10058 | s,@ECHO_C@,$ECHO_C,;t t |
| 10059 | s,@ECHO_N@,$ECHO_N,;t t |
| 10060 | s,@ECHO_T@,$ECHO_T,;t t |
| 10061 | s,@LIBS@,$LIBS,;t t |
| 10062 | s,@build@,$build,;t t |
| 10063 | s,@build_cpu@,$build_cpu,;t t |
| 10064 | s,@build_vendor@,$build_vendor,;t t |
| 10065 | s,@build_os@,$build_os,;t t |
| 10066 | s,@host@,$host,;t t |
| 10067 | s,@host_cpu@,$host_cpu,;t t |
| 10068 | s,@host_vendor@,$host_vendor,;t t |
| 10069 | s,@host_os@,$host_os,;t t |
| 10070 | s,@target@,$target,;t t |
| 10071 | s,@target_cpu@,$target_cpu,;t t |
| 10072 | s,@target_vendor@,$target_vendor,;t t |
| 10073 | s,@target_os@,$target_os,;t t |
| 10074 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 10075 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 10076 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 10077 | s,@PACKAGE@,$PACKAGE,;t t |
| 10078 | s,@VERSION@,$VERSION,;t t |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 10079 | s,@ACLOCAL@,$ACLOCAL,;t t |
| 10080 | s,@AUTOCONF@,$AUTOCONF,;t t |
| 10081 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
| 10082 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
| 10083 | s,@MAKEINFO@,$MAKEINFO,;t t |
| 10084 | s,@AMTAR@,$AMTAR,;t t |
| 10085 | s,@install_sh@,$install_sh,;t t |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 10086 | s,@STRIP@,$STRIP,;t t |
| 10087 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 10088 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
| 10089 | s,@AWK@,$AWK,;t t |
| 10090 | s,@SET_MAKE@,$SET_MAKE,;t t |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 10091 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
| 10092 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t |
| 10093 | s,@MAINT@,$MAINT,;t t |
| 10094 | s,@CC@,$CC,;t t |
| 10095 | s,@CFLAGS@,$CFLAGS,;t t |
| 10096 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 10097 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 10098 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 10099 | s,@EXEEXT@,$EXEEXT,;t t |
| 10100 | s,@OBJEXT@,$OBJEXT,;t t |
| 10101 | s,@DEPDIR@,$DEPDIR,;t t |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 10102 | s,@am__include@,$am__include,;t t |
| 10103 | s,@am__quote@,$am__quote,;t t |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 10104 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
| 10105 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
| 10106 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 10107 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
mostang.com!davidm | 4f17bce | 2003-03-28 07:43:22 +0000 | [diff] [blame] | 10108 | s,@CXX@,$CXX,;t t |
| 10109 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 10110 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
| 10111 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 10112 | s,@LN_S@,$LN_S,;t t |
| 10113 | s,@ECHO@,$ECHO,;t t |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 10114 | s,@RANLIB@,$RANLIB,;t t |
| 10115 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 10116 | s,@CPP@,$CPP,;t t |
| 10117 | s,@EGREP@,$EGREP,;t t |
mostang.com!davidm | f26451a | 2003-01-16 03:10:11 +0000 | [diff] [blame] | 10118 | s,@LIBTOOL@,$LIBTOOL,;t t |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 10119 | s,@CCAS@,$CCAS,;t t |
| 10120 | s,@CCASFLAGS@,$CCASFLAGS,;t t |
mostang.com!davidm | 6af90d0 | 2003-02-15 08:53:55 +0000 | [diff] [blame] | 10121 | s,@LIBOBJS@,$LIBOBJS,;t t |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 10122 | s,@REMOTE_ONLY_TRUE@,$REMOTE_ONLY_TRUE,;t t |
| 10123 | s,@REMOTE_ONLY_FALSE@,$REMOTE_ONLY_FALSE,;t t |
| 10124 | s,@ARCH_IA64_TRUE@,$ARCH_IA64_TRUE,;t t |
| 10125 | s,@ARCH_IA64_FALSE@,$ARCH_IA64_FALSE,;t t |
mostang.com!davidm | 8d5c44b | 2003-01-14 07:11:56 +0000 | [diff] [blame] | 10126 | s,@ARCH_HPPA_TRUE@,$ARCH_HPPA_TRUE,;t t |
| 10127 | s,@ARCH_HPPA_FALSE@,$ARCH_HPPA_FALSE,;t t |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 10128 | s,@ARCH_X86_TRUE@,$ARCH_X86_TRUE,;t t |
| 10129 | s,@ARCH_X86_FALSE@,$ARCH_X86_FALSE,;t t |
mostang.com!davidm | a8db0b3 | 2003-02-08 10:10:59 +0000 | [diff] [blame] | 10130 | s,@OS_LINUX_TRUE@,$OS_LINUX_TRUE,;t t |
| 10131 | s,@OS_LINUX_FALSE@,$OS_LINUX_FALSE,;t t |
mostang.com!davidm | 6ab15cd | 2003-04-03 07:59:15 +0000 | [diff] [blame] | 10132 | s,@OS_HPUX_TRUE@,$OS_HPUX_TRUE,;t t |
| 10133 | s,@OS_HPUX_FALSE@,$OS_HPUX_FALSE,;t t |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 10134 | s,@arch@,$arch,;t t |
| 10135 | s,@ARCH@,$ARCH,;t t |
| 10136 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 10137 | CEOF |
| 10138 | |
| 10139 | _ACEOF |
| 10140 | |
| 10141 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10142 | # Split the substitutions into bite-sized pieces for seds with |
| 10143 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 10144 | ac_max_sed_lines=48 |
| 10145 | ac_sed_frag=1 # Number of current file. |
| 10146 | ac_beg=1 # First line for current file. |
| 10147 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 10148 | ac_more_lines=: |
| 10149 | ac_sed_cmds= |
| 10150 | while $ac_more_lines; do |
| 10151 | if test $ac_beg -gt 1; then |
| 10152 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 10153 | else |
| 10154 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 10155 | fi |
| 10156 | if test ! -s $tmp/subs.frag; then |
| 10157 | ac_more_lines=false |
| 10158 | else |
| 10159 | # The purpose of the label and of the branching condition is to |
| 10160 | # speed up the sed processing (if there are no `@' at all, there |
| 10161 | # is no need to browse any of the substitutions). |
| 10162 | # These are the two extra sed commands mentioned above. |
| 10163 | (echo ':t |
| 10164 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 10165 | if test -z "$ac_sed_cmds"; then |
| 10166 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 10167 | else |
| 10168 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 10169 | fi |
| 10170 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 10171 | ac_beg=$ac_end |
| 10172 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 10173 | fi |
| 10174 | done |
| 10175 | if test -z "$ac_sed_cmds"; then |
| 10176 | ac_sed_cmds=cat |
| 10177 | fi |
| 10178 | fi # test -n "$CONFIG_FILES" |
| 10179 | |
| 10180 | _ACEOF |
| 10181 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10182 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 10183 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 10184 | case $ac_file in |
| 10185 | - | *:- | *:-:* ) # input from stdin |
| 10186 | cat >$tmp/stdin |
| 10187 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10188 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 10189 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10190 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 10191 | * ) ac_file_in=$ac_file.in ;; |
| 10192 | esac |
| 10193 | |
| 10194 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 10195 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 10196 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10197 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 10198 | X"$ac_file" : 'X\(//\)$' \| \ |
| 10199 | X"$ac_file" : 'X\(/\)' \| \ |
| 10200 | . : '\(.\)' 2>/dev/null || |
| 10201 | echo X"$ac_file" | |
| 10202 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10203 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10204 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10205 | /^X\(\/\).*/{ s//\1/; q; } |
| 10206 | s/.*/./; q'` |
| 10207 | { if $as_mkdir_p; then |
| 10208 | mkdir -p "$ac_dir" |
| 10209 | else |
| 10210 | as_dir="$ac_dir" |
| 10211 | as_dirs= |
| 10212 | while test ! -d "$as_dir"; do |
| 10213 | as_dirs="$as_dir $as_dirs" |
| 10214 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 10215 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10216 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 10217 | X"$as_dir" : 'X\(//\)$' \| \ |
| 10218 | X"$as_dir" : 'X\(/\)' \| \ |
| 10219 | . : '\(.\)' 2>/dev/null || |
| 10220 | echo X"$as_dir" | |
| 10221 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10222 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10223 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10224 | /^X\(\/\).*/{ s//\1/; q; } |
| 10225 | s/.*/./; q'` |
| 10226 | done |
| 10227 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 10228 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 10229 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 10230 | { (exit 1); exit 1; }; }; } |
| 10231 | |
| 10232 | ac_builddir=. |
| 10233 | |
| 10234 | if test "$ac_dir" != .; then |
| 10235 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 10236 | # A "../" for each directory in $ac_dir_suffix. |
| 10237 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 10238 | else |
| 10239 | ac_dir_suffix= ac_top_builddir= |
| 10240 | fi |
| 10241 | |
| 10242 | case $srcdir in |
| 10243 | .) # No --srcdir option. We are building in place. |
| 10244 | ac_srcdir=. |
| 10245 | if test -z "$ac_top_builddir"; then |
| 10246 | ac_top_srcdir=. |
| 10247 | else |
| 10248 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 10249 | fi ;; |
| 10250 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 10251 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 10252 | ac_top_srcdir=$srcdir ;; |
| 10253 | *) # Relative path. |
| 10254 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 10255 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 10256 | esac |
| 10257 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 10258 | # absolute. |
| 10259 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 10260 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
| 10261 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 10262 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 10263 | |
| 10264 | |
| 10265 | case $INSTALL in |
| 10266 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 10267 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 10268 | esac |
| 10269 | |
| 10270 | if test x"$ac_file" != x-; then |
| 10271 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 10272 | echo "$as_me: creating $ac_file" >&6;} |
| 10273 | rm -f "$ac_file" |
| 10274 | fi |
| 10275 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 10276 | # use $as_me), people would be surprised to read: |
| 10277 | # /* config.h. Generated by config.status. */ |
| 10278 | if test x"$ac_file" = x-; then |
| 10279 | configure_input= |
| 10280 | else |
| 10281 | configure_input="$ac_file. " |
| 10282 | fi |
| 10283 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 10284 | sed 's,.*/,,'` by configure." |
| 10285 | |
| 10286 | # First look for the input files in the build tree, otherwise in the |
| 10287 | # src tree. |
| 10288 | ac_file_inputs=`IFS=: |
| 10289 | for f in $ac_file_in; do |
| 10290 | case $f in |
| 10291 | -) echo $tmp/stdin ;; |
| 10292 | [\\/$]*) |
| 10293 | # Absolute (can't be DOS-style, as IFS=:) |
| 10294 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 10295 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 10296 | { (exit 1); exit 1; }; } |
| 10297 | echo $f;; |
| 10298 | *) # Relative |
| 10299 | if test -f "$f"; then |
| 10300 | # Build tree |
| 10301 | echo $f |
| 10302 | elif test -f "$srcdir/$f"; then |
| 10303 | # Source tree |
| 10304 | echo $srcdir/$f |
| 10305 | else |
| 10306 | # /dev/null tree |
| 10307 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 10308 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 10309 | { (exit 1); exit 1; }; } |
| 10310 | fi;; |
| 10311 | esac |
| 10312 | done` || { (exit 1); exit 1; } |
| 10313 | _ACEOF |
| 10314 | cat >>$CONFIG_STATUS <<_ACEOF |
| 10315 | sed "$ac_vpsub |
| 10316 | $extrasub |
| 10317 | _ACEOF |
| 10318 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10319 | :t |
| 10320 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 10321 | s,@configure_input@,$configure_input,;t t |
| 10322 | s,@srcdir@,$ac_srcdir,;t t |
| 10323 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 10324 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 10325 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 10326 | s,@builddir@,$ac_builddir,;t t |
| 10327 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 10328 | s,@top_builddir@,$ac_top_builddir,;t t |
| 10329 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 10330 | s,@INSTALL@,$ac_INSTALL,;t t |
| 10331 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 10332 | rm -f $tmp/stdin |
| 10333 | if test x"$ac_file" != x-; then |
| 10334 | mv $tmp/out $ac_file |
| 10335 | else |
| 10336 | cat $tmp/out |
| 10337 | rm -f $tmp/out |
| 10338 | fi |
| 10339 | |
| 10340 | done |
| 10341 | _ACEOF |
| 10342 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10343 | |
| 10344 | # |
| 10345 | # CONFIG_HEADER section. |
| 10346 | # |
| 10347 | |
| 10348 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 10349 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 10350 | # |
| 10351 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 10352 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 10353 | ac_dB='[ ].*$,\1#\2' |
| 10354 | ac_dC=' ' |
| 10355 | ac_dD=',;t' |
| 10356 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 10357 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 10358 | ac_uB='$,\1#\2define\3' |
| 10359 | ac_uC=' ' |
| 10360 | ac_uD=',;t' |
| 10361 | |
| 10362 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 10363 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 10364 | case $ac_file in |
| 10365 | - | *:- | *:-:* ) # input from stdin |
| 10366 | cat >$tmp/stdin |
| 10367 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10368 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 10369 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10370 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 10371 | * ) ac_file_in=$ac_file.in ;; |
| 10372 | esac |
| 10373 | |
| 10374 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 10375 | echo "$as_me: creating $ac_file" >&6;} |
| 10376 | |
| 10377 | # First look for the input files in the build tree, otherwise in the |
| 10378 | # src tree. |
| 10379 | ac_file_inputs=`IFS=: |
| 10380 | for f in $ac_file_in; do |
| 10381 | case $f in |
| 10382 | -) echo $tmp/stdin ;; |
| 10383 | [\\/$]*) |
| 10384 | # Absolute (can't be DOS-style, as IFS=:) |
| 10385 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 10386 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 10387 | { (exit 1); exit 1; }; } |
| 10388 | echo $f;; |
| 10389 | *) # Relative |
| 10390 | if test -f "$f"; then |
| 10391 | # Build tree |
| 10392 | echo $f |
| 10393 | elif test -f "$srcdir/$f"; then |
| 10394 | # Source tree |
| 10395 | echo $srcdir/$f |
| 10396 | else |
| 10397 | # /dev/null tree |
| 10398 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 10399 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 10400 | { (exit 1); exit 1; }; } |
| 10401 | fi;; |
| 10402 | esac |
| 10403 | done` || { (exit 1); exit 1; } |
| 10404 | # Remove the trailing spaces. |
| 10405 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 10406 | |
| 10407 | _ACEOF |
| 10408 | |
| 10409 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 10410 | # `conftest.undefs', that substitutes the proper values into |
| 10411 | # config.h.in to produce config.h. The first handles `#define' |
| 10412 | # templates, and the second `#undef' templates. |
| 10413 | # And first: Protect against being on the right side of a sed subst in |
| 10414 | # config.status. Protect against being in an unquoted here document |
| 10415 | # in config.status. |
| 10416 | rm -f conftest.defines conftest.undefs |
| 10417 | # Using a here document instead of a string reduces the quoting nightmare. |
| 10418 | # Putting comments in sed scripts is not portable. |
| 10419 | # |
| 10420 | # `end' is used to avoid that the second main sed command (meant for |
| 10421 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 10422 | # See the Autoconf documentation for `clear'. |
| 10423 | cat >confdef2sed.sed <<\_ACEOF |
| 10424 | s/[\\&,]/\\&/g |
| 10425 | s,[\\$`],\\&,g |
| 10426 | t clear |
| 10427 | : clear |
| 10428 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 10429 | t end |
| 10430 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 10431 | : end |
| 10432 | _ACEOF |
| 10433 | # If some macros were called several times there might be several times |
| 10434 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 10435 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 10436 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 10437 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 10438 | rm -f confdef2sed.sed |
| 10439 | |
| 10440 | # This sed command replaces #undef with comments. This is necessary, for |
| 10441 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 10442 | # on some systems where configure will not decide to define it. |
| 10443 | cat >>conftest.undefs <<\_ACEOF |
| 10444 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 10445 | _ACEOF |
| 10446 | |
| 10447 | # Break up conftest.defines because some shells have a limit on the size |
| 10448 | # of here documents, and old seds have small limits too (100 cmds). |
| 10449 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 10450 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 10451 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 10452 | echo ' :' >>$CONFIG_STATUS |
| 10453 | rm -f conftest.tail |
| 10454 | while grep . conftest.defines >/dev/null |
| 10455 | do |
| 10456 | # Write a limited-size here document to $tmp/defines.sed. |
| 10457 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 10458 | # Speed up: don't consider the non `#define' lines. |
| 10459 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 10460 | # Work around the forget-to-reset-the-flag bug. |
| 10461 | echo 't clr' >>$CONFIG_STATUS |
| 10462 | echo ': clr' >>$CONFIG_STATUS |
| 10463 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 10464 | echo 'CEOF |
| 10465 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 10466 | rm -f $tmp/in |
| 10467 | mv $tmp/out $tmp/in |
| 10468 | ' >>$CONFIG_STATUS |
| 10469 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 10470 | rm -f conftest.defines |
| 10471 | mv conftest.tail conftest.defines |
| 10472 | done |
| 10473 | rm -f conftest.defines |
| 10474 | echo ' fi # grep' >>$CONFIG_STATUS |
| 10475 | echo >>$CONFIG_STATUS |
| 10476 | |
| 10477 | # Break up conftest.undefs because some shells have a limit on the size |
| 10478 | # of here documents, and old seds have small limits too (100 cmds). |
| 10479 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 10480 | rm -f conftest.tail |
| 10481 | while grep . conftest.undefs >/dev/null |
| 10482 | do |
| 10483 | # Write a limited-size here document to $tmp/undefs.sed. |
| 10484 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 10485 | # Speed up: don't consider the non `#undef' |
| 10486 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 10487 | # Work around the forget-to-reset-the-flag bug. |
| 10488 | echo 't clr' >>$CONFIG_STATUS |
| 10489 | echo ': clr' >>$CONFIG_STATUS |
| 10490 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 10491 | echo 'CEOF |
| 10492 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 10493 | rm -f $tmp/in |
| 10494 | mv $tmp/out $tmp/in |
| 10495 | ' >>$CONFIG_STATUS |
| 10496 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 10497 | rm -f conftest.undefs |
| 10498 | mv conftest.tail conftest.undefs |
| 10499 | done |
| 10500 | rm -f conftest.undefs |
| 10501 | |
| 10502 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10503 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 10504 | # use $as_me), people would be surprised to read: |
| 10505 | # /* config.h. Generated by config.status. */ |
| 10506 | if test x"$ac_file" = x-; then |
| 10507 | echo "/* Generated by configure. */" >$tmp/config.h |
| 10508 | else |
| 10509 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 10510 | fi |
| 10511 | cat $tmp/in >>$tmp/config.h |
| 10512 | rm -f $tmp/in |
| 10513 | if test x"$ac_file" != x-; then |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 10514 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 10515 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 10516 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 10517 | else |
| 10518 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 10519 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10520 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 10521 | X"$ac_file" : 'X\(//\)$' \| \ |
| 10522 | X"$ac_file" : 'X\(/\)' \| \ |
| 10523 | . : '\(.\)' 2>/dev/null || |
| 10524 | echo X"$ac_file" | |
| 10525 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10526 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10527 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10528 | /^X\(\/\).*/{ s//\1/; q; } |
| 10529 | s/.*/./; q'` |
| 10530 | { if $as_mkdir_p; then |
| 10531 | mkdir -p "$ac_dir" |
| 10532 | else |
| 10533 | as_dir="$ac_dir" |
| 10534 | as_dirs= |
| 10535 | while test ! -d "$as_dir"; do |
| 10536 | as_dirs="$as_dir $as_dirs" |
| 10537 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 10538 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10539 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 10540 | X"$as_dir" : 'X\(//\)$' \| \ |
| 10541 | X"$as_dir" : 'X\(/\)' \| \ |
| 10542 | . : '\(.\)' 2>/dev/null || |
| 10543 | echo X"$as_dir" | |
| 10544 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10545 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10546 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10547 | /^X\(\/\).*/{ s//\1/; q; } |
| 10548 | s/.*/./; q'` |
| 10549 | done |
| 10550 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 10551 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 10552 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 10553 | { (exit 1); exit 1; }; }; } |
| 10554 | |
| 10555 | rm -f $ac_file |
| 10556 | mv $tmp/config.h $ac_file |
| 10557 | fi |
| 10558 | else |
| 10559 | cat $tmp/config.h |
| 10560 | rm -f $tmp/config.h |
| 10561 | fi |
| 10562 | # Run the commands associated with the file. |
| 10563 | case $ac_file in |
| 10564 | include/config.h ) # update the timestamp |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 10565 | echo 'timestamp for include/config.h' >"include/stamp-h1" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 10566 | ;; |
| 10567 | esac |
| 10568 | done |
| 10569 | _ACEOF |
| 10570 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10571 | |
| 10572 | # |
| 10573 | # CONFIG_LINKS section. |
| 10574 | # |
| 10575 | |
| 10576 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue |
| 10577 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 10578 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10579 | |
| 10580 | { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 |
| 10581 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} |
| 10582 | |
| 10583 | if test ! -r $srcdir/$ac_source; then |
| 10584 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
| 10585 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} |
| 10586 | { (exit 1); exit 1; }; } |
| 10587 | fi |
| 10588 | rm -f $ac_dest |
| 10589 | |
| 10590 | # Make relative symlinks. |
| 10591 | ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 10592 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10593 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 10594 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 10595 | X"$ac_dest" : 'X\(/\)' \| \ |
| 10596 | . : '\(.\)' 2>/dev/null || |
| 10597 | echo X"$ac_dest" | |
| 10598 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10599 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10600 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10601 | /^X\(\/\).*/{ s//\1/; q; } |
| 10602 | s/.*/./; q'` |
| 10603 | { if $as_mkdir_p; then |
| 10604 | mkdir -p "$ac_dest_dir" |
| 10605 | else |
| 10606 | as_dir="$ac_dest_dir" |
| 10607 | as_dirs= |
| 10608 | while test ! -d "$as_dir"; do |
| 10609 | as_dirs="$as_dir $as_dirs" |
| 10610 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 10611 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10612 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 10613 | X"$as_dir" : 'X\(//\)$' \| \ |
| 10614 | X"$as_dir" : 'X\(/\)' \| \ |
| 10615 | . : '\(.\)' 2>/dev/null || |
| 10616 | echo X"$as_dir" | |
| 10617 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10618 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10619 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10620 | /^X\(\/\).*/{ s//\1/; q; } |
| 10621 | s/.*/./; q'` |
| 10622 | done |
| 10623 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 10624 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 |
| 10625 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} |
| 10626 | { (exit 1); exit 1; }; }; } |
| 10627 | |
| 10628 | ac_builddir=. |
| 10629 | |
| 10630 | if test "$ac_dest_dir" != .; then |
| 10631 | ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` |
| 10632 | # A "../" for each directory in $ac_dir_suffix. |
| 10633 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 10634 | else |
| 10635 | ac_dir_suffix= ac_top_builddir= |
| 10636 | fi |
| 10637 | |
| 10638 | case $srcdir in |
| 10639 | .) # No --srcdir option. We are building in place. |
| 10640 | ac_srcdir=. |
| 10641 | if test -z "$ac_top_builddir"; then |
| 10642 | ac_top_srcdir=. |
| 10643 | else |
| 10644 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 10645 | fi ;; |
| 10646 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 10647 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 10648 | ac_top_srcdir=$srcdir ;; |
| 10649 | *) # Relative path. |
| 10650 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 10651 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 10652 | esac |
| 10653 | # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be |
| 10654 | # absolute. |
| 10655 | ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd` |
| 10656 | ac_abs_top_builddir=`cd "$ac_dest_dir" && cd ${ac_top_builddir}. && pwd` |
| 10657 | ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd` |
| 10658 | ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd` |
| 10659 | |
| 10660 | |
| 10661 | case $srcdir in |
| 10662 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; |
| 10663 | *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; |
| 10664 | esac |
| 10665 | |
| 10666 | # Try a symlink, then a hard link, then a copy. |
| 10667 | ln -s $ac_rel_source $ac_dest 2>/dev/null || |
| 10668 | ln $srcdir/$ac_source $ac_dest 2>/dev/null || |
| 10669 | cp -p $srcdir/$ac_source $ac_dest || |
| 10670 | { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 |
| 10671 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} |
| 10672 | { (exit 1); exit 1; }; } |
| 10673 | done |
| 10674 | _ACEOF |
| 10675 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10676 | |
| 10677 | # |
| 10678 | # CONFIG_COMMANDS section. |
| 10679 | # |
| 10680 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 10681 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 10682 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10683 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 10684 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10685 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 10686 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 10687 | X"$ac_dest" : 'X\(/\)' \| \ |
| 10688 | . : '\(.\)' 2>/dev/null || |
| 10689 | echo X"$ac_dest" | |
| 10690 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10691 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10692 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10693 | /^X\(\/\).*/{ s//\1/; q; } |
| 10694 | s/.*/./; q'` |
| 10695 | ac_builddir=. |
| 10696 | |
| 10697 | if test "$ac_dir" != .; then |
| 10698 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 10699 | # A "../" for each directory in $ac_dir_suffix. |
| 10700 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 10701 | else |
| 10702 | ac_dir_suffix= ac_top_builddir= |
| 10703 | fi |
| 10704 | |
| 10705 | case $srcdir in |
| 10706 | .) # No --srcdir option. We are building in place. |
| 10707 | ac_srcdir=. |
| 10708 | if test -z "$ac_top_builddir"; then |
| 10709 | ac_top_srcdir=. |
| 10710 | else |
| 10711 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 10712 | fi ;; |
| 10713 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 10714 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 10715 | ac_top_srcdir=$srcdir ;; |
| 10716 | *) # Relative path. |
| 10717 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 10718 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 10719 | esac |
| 10720 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 10721 | # absolute. |
| 10722 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 10723 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
| 10724 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 10725 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 10726 | |
| 10727 | |
| 10728 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 10729 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 10730 | case $ac_dest in |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 10731 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
| 10732 | # Strip MF so we end up with the name of the file. |
| 10733 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 10734 | # Check whether this is an Automake generated Makefile or not. |
| 10735 | # We used to match only the files named `Makefile.in', but |
| 10736 | # some people rename them; so instead we look at the file content. |
| 10737 | # Grep'ing the first line is not enough: some people post-process |
| 10738 | # each Makefile.in and add a new line on top of each file to say so. |
| 10739 | # So let's grep whole file. |
| 10740 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
| 10741 | dirpart=`(dirname "$mf") 2>/dev/null || |
| 10742 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10743 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 10744 | X"$mf" : 'X\(//\)$' \| \ |
| 10745 | X"$mf" : 'X\(/\)' \| \ |
| 10746 | . : '\(.\)' 2>/dev/null || |
| 10747 | echo X"$mf" | |
| 10748 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10749 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10750 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10751 | /^X\(\/\).*/{ s//\1/; q; } |
| 10752 | s/.*/./; q'` |
| 10753 | else |
| 10754 | continue |
| 10755 | fi |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 10756 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
| 10757 | # Extract the definition of DEP_FILES from the Makefile without |
| 10758 | # running `make'. |
| 10759 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
| 10760 | test -z "$DEPDIR" && continue |
| 10761 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 10762 | U=`sed -n -e '/^U = / s///p' < "$mf"` |
| 10763 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
| 10764 | # We invoke sed twice because it is the simplest approach to |
| 10765 | # changing $(DEPDIR) to its actual value in the expansion. |
| 10766 | for file in `sed -n -e ' |
| 10767 | /^DEP_FILES = .*\\\\$/ { |
| 10768 | s/^DEP_FILES = // |
| 10769 | :loop |
| 10770 | s/\\\\$// |
| 10771 | p |
| 10772 | n |
| 10773 | /\\\\$/ b loop |
| 10774 | p |
| 10775 | } |
| 10776 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
| 10777 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 10778 | # Make sure the directory exists. |
| 10779 | test -f "$dirpart/$file" && continue |
mostang.com!davidm | 7c3e12e | 2002-12-19 07:16:50 +0000 | [diff] [blame] | 10780 | fdir=`(dirname "$file") 2>/dev/null || |
| 10781 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10782 | X"$file" : 'X\(//\)[^/]' \| \ |
| 10783 | X"$file" : 'X\(//\)$' \| \ |
| 10784 | X"$file" : 'X\(/\)' \| \ |
| 10785 | . : '\(.\)' 2>/dev/null || |
| 10786 | echo X"$file" | |
| 10787 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10788 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10789 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10790 | /^X\(\/\).*/{ s//\1/; q; } |
| 10791 | s/.*/./; q'` |
| 10792 | { if $as_mkdir_p; then |
| 10793 | mkdir -p $dirpart/$fdir |
| 10794 | else |
| 10795 | as_dir=$dirpart/$fdir |
| 10796 | as_dirs= |
| 10797 | while test ! -d "$as_dir"; do |
| 10798 | as_dirs="$as_dir $as_dirs" |
| 10799 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 10800 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10801 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 10802 | X"$as_dir" : 'X\(//\)$' \| \ |
| 10803 | X"$as_dir" : 'X\(/\)' \| \ |
| 10804 | . : '\(.\)' 2>/dev/null || |
| 10805 | echo X"$as_dir" | |
| 10806 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10807 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10808 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10809 | /^X\(\/\).*/{ s//\1/; q; } |
| 10810 | s/.*/./; q'` |
| 10811 | done |
| 10812 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 10813 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
| 10814 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
| 10815 | { (exit 1); exit 1; }; }; } |
| 10816 | |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 10817 | # echo "creating $dirpart/$file" |
| 10818 | echo '# dummy' > "$dirpart/$file" |
| 10819 | done |
| 10820 | done |
| 10821 | ;; |
| 10822 | esac |
| 10823 | done |
| 10824 | _ACEOF |
| 10825 | |
| 10826 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 10827 | |
| 10828 | { (exit 0); exit 0; } |
| 10829 | _ACEOF |
| 10830 | chmod +x $CONFIG_STATUS |
| 10831 | ac_clean_files=$ac_clean_files_save |
| 10832 | |
| 10833 | |
| 10834 | # configure is writing to config.log, and then calls config.status. |
| 10835 | # config.status does its own redirection, appending to config.log. |
| 10836 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 10837 | # by configure, so config.status won't be able to write to it; its |
| 10838 | # output is simply discarded. So we exec the FD to /dev/null, |
| 10839 | # effectively closing config.log, so it can be properly (re)opened and |
| 10840 | # appended to by config.status. When coming back to configure, we |
| 10841 | # need to make the FD available again. |
| 10842 | if test "$no_create" != yes; then |
| 10843 | ac_cs_success=: |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 10844 | ac_config_status_args= |
| 10845 | test "$silent" = yes && |
| 10846 | ac_config_status_args="$ac_config_status_args --quiet" |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 10847 | exec 5>/dev/null |
hp.com!davidm | 01b02dd | 2003-09-24 21:51:53 +0000 | [diff] [blame] | 10848 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
mostang.com!davidm | aa54b9f | 2002-09-26 23:09:01 +0000 | [diff] [blame] | 10849 | exec 5>>config.log |
| 10850 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 10851 | # would make configure fail if this is the last instruction. |
| 10852 | $ac_cs_success || { (exit 1); exit 1; } |
| 10853 | fi |
| 10854 | |