drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1 | #! /bin/sh |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.57. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 4 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6 | # Free Software Foundation, Inc. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 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. |
| 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 |
| 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 |
| 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 |
| 92 | PATH_SEPARATOR=';' |
| 93 | else |
| 94 | PATH_SEPARATOR=: |
| 95 | fi |
| 96 | rm -f conf$$.sh |
| 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 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 242 | |
drh | 71eb93e | 2001-09-28 01:34:43 +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 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 248 | *-DOS) lt_cv_sys_path_separator=';' ;; |
| 249 | *) lt_cv_sys_path_separator=':' ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 250 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 251 | PATH_SEPARATOR=$lt_cv_sys_path_separator |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 252 | fi |
| 253 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 254 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 284 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 318 | IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 319 | for dir in $PATH /usr/ucb; do |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 328 | IFS="$save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 400 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 401 | |
| 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 | # |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 412 | ac_default_prefix=/usr/local |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 413 | ac_config_libobj_dir=. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 414 | cross_compiling=no |
| 415 | subdirs= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 416 | MFLAGS= |
| 417 | MAKEFLAGS= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 425 | # Identity of this package. |
| 426 | PACKAGE_NAME= |
| 427 | PACKAGE_TARNAME= |
| 428 | PACKAGE_VERSION= |
| 429 | PACKAGE_STRING= |
| 430 | PACKAGE_BUGREPORT= |
| 431 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 432 | ac_unique_file="src/sqlite.h.in" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 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 | |
paul | 2dc96f9 | 2003-04-20 11:46:34 +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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP EGREP LIBTOOL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA program_prefix VERSION BUILD_CC BUILD_CFLAGS BUILD_LIBS TARGET_CC TARGET_CFLAGS TARGET_LINK TARGET_LFLAGS TARGET_RANLIB TARGET_AR ENCODING ALLOWATTACHMEM INMEMORYDB TEMP_STORE BUILD_EXEEXT OS_UNIX OS_WIN TARGET_EXEEXT TARGET_LIBS TARGET_TCL_LIBS TARGET_TCL_INC TARGET_READLINE_LIBS TARGET_READLINE_INC TARGET_HAVE_READLINE LIBOBJS LTLIBOBJS' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 471 | ac_subst_files='' |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 472 | |
| 473 | # Initialize some variables set by options. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 474 | ac_init_help= |
| 475 | ac_init_version=false |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 476 | # The variables have the same names as the options, with |
| 477 | # dashes changed to underlines. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 478 | cache_file=/dev/null |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 479 | exec_prefix=NONE |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 480 | no_create= |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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= |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 489 | verbose= |
| 490 | x_includes=NONE |
| 491 | x_libraries=NONE |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 511 | ac_prev= |
| 512 | for ac_option |
| 513 | do |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 521 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 522 | |
| 523 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 524 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 525 | case $ac_option in |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 526 | |
| 527 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 528 | ac_prev=bindir ;; |
| 529 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 530 | bindir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 531 | |
| 532 | -build | --build | --buil | --bui | --bu) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 533 | ac_prev=build_alias ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 534 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 535 | build_alias=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 542 | cache_file=$ac_optarg ;; |
| 543 | |
| 544 | --config-cache | -C) |
| 545 | cache_file=config.cache ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 546 | |
| 547 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 548 | ac_prev=datadir ;; |
| 549 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 550 | | --da=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 551 | datadir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 552 | |
| 553 | -disable-* | --disable-*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 554 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 555 | # Reject names that are not valid shell variable names. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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" ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 561 | |
| 562 | -enable-* | --enable-*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 563 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 564 | # Reject names that are not valid shell variable names. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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"`;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 571 | *) ac_optarg=yes ;; |
| 572 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 573 | eval "enable_$ac_feature='$ac_optarg'" ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 582 | exec_prefix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 583 | |
| 584 | -gas | --gas | --ga | --g) |
| 585 | # Obsolete; use --with-gas. |
| 586 | with_gas=yes ;; |
| 587 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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 ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 594 | |
| 595 | -host | --host | --hos | --ho) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 596 | ac_prev=host_alias ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 597 | -host=* | --host=* | --hos=* | --ho=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 598 | host_alias=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 605 | includedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 606 | |
| 607 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 608 | ac_prev=infodir ;; |
| 609 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 610 | infodir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 611 | |
| 612 | -libdir | --libdir | --libdi | --libd) |
| 613 | ac_prev=libdir ;; |
| 614 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 615 | libdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 622 | libexecdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 631 | localstatedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 632 | |
| 633 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 634 | ac_prev=mandir ;; |
| 635 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 636 | mandir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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 \ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 643 | | --no-cr | --no-c | -n) |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 657 | oldincludedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 658 | |
| 659 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 660 | ac_prev=prefix ;; |
| 661 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 662 | prefix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 669 | program_prefix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 676 | program_suffix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 693 | program_transform_name=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 703 | sbindir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 714 | sharedstatedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 715 | |
| 716 | -site | --site | --sit) |
| 717 | ac_prev=site ;; |
| 718 | -site=* | --site=* | --sit=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 719 | site=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 720 | |
| 721 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 722 | ac_prev=srcdir ;; |
| 723 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 724 | srcdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 731 | sysconfdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 732 | |
| 733 | -target | --target | --targe | --targ | --tar | --ta | --t) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 734 | ac_prev=target_alias ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 735 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 736 | target_alias=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 737 | |
| 738 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 739 | verbose=yes ;; |
| 740 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 741 | -version | --version | --versio | --versi | --vers | -V) |
| 742 | ac_init_version=: ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 743 | |
| 744 | -with-* | --with-*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 745 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 746 | # Reject names that are not valid shell variable names. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 750 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 751 | case $ac_option in |
| 752 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 753 | *) ac_optarg=yes ;; |
| 754 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 755 | eval "with_$ac_package='$ac_optarg'" ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 756 | |
| 757 | -without-* | --without-*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 758 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 759 | # Reject names that are not valid shell variable names. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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" ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 775 | x_includes=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 782 | x_libraries=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 783 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 784 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 785 | Try \`$0 --help' for more information." >&2 |
| 786 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 787 | ;; |
| 788 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 799 | *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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} |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 805 | ;; |
| 806 | |
| 807 | esac |
| 808 | done |
| 809 | |
| 810 | if test -n "$ac_prev"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 814 | fi |
| 815 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 816 | # Be sure to have absolute paths. |
| 817 | for ac_var in exec_prefix prefix |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 818 | do |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 819 | eval ac_val=$`echo $ac_var` |
| 820 | case $ac_val in |
| 821 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 822 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 823 | { (exit 1); exit 1; }; };; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 824 | esac |
| 825 | done |
| 826 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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 | [\\/$]* | ?:[\\/]* ) ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 834 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 835 | { (exit 1); exit 1; }; };; |
| 836 | esac |
| 837 | done |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 838 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 839 | # There might be people who depend on the old broken behavior: `$host' |
| 840 | # used to hold the argument of --host etc. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 841 | # FIXME: To remove some day. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 842 | build=$build_alias |
| 843 | host=$host_alias |
| 844 | target=$target_alias |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 845 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 846 | # FIXME: To remove some day. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 861 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 862 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 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'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 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 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 888 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 889 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 890 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 891 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 892 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 893 | fi |
| 894 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 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; }; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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 |
| 927 | ac_env_CPP_set=${CPP+set} |
| 928 | ac_env_CPP_value=$CPP |
| 929 | ac_cv_env_CPP_set=${CPP+set} |
| 930 | ac_cv_env_CPP_value=$CPP |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 931 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 932 | # |
| 933 | # Report the --help message. |
| 934 | # |
| 935 | if test "$ac_init_help" = "long"; then |
| 936 | # Omit some internal or obsolete options to make the list less imposing. |
| 937 | # This message is too long to be a string in the A/UX 3.1 sh. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 938 | cat <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 939 | \`configure' configures this package to adapt to many kinds of systems. |
| 940 | |
| 941 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 942 | |
| 943 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 944 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 945 | |
| 946 | Defaults for the options are specified in brackets. |
| 947 | |
| 948 | Configuration: |
| 949 | -h, --help display this help and exit |
| 950 | --help=short display options specific to this package |
| 951 | --help=recursive display the short help of all the included packages |
| 952 | -V, --version display version information and exit |
| 953 | -q, --quiet, --silent do not print \`checking...' messages |
| 954 | --cache-file=FILE cache test results in FILE [disabled] |
| 955 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 956 | -n, --no-create do not create output files |
| 957 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 958 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 959 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 960 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 961 | cat <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 962 | Installation directories: |
| 963 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 964 | [$ac_default_prefix] |
| 965 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 966 | [PREFIX] |
| 967 | |
| 968 | By default, \`make install' will install all the files in |
| 969 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 970 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 971 | for instance \`--prefix=\$HOME'. |
| 972 | |
| 973 | For better control, use the options below. |
| 974 | |
| 975 | Fine tuning of the installation directories: |
| 976 | --bindir=DIR user executables [EPREFIX/bin] |
| 977 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 978 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 979 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 980 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 981 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 982 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 983 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 984 | --includedir=DIR C header files [PREFIX/include] |
| 985 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 986 | --infodir=DIR info documentation [PREFIX/info] |
| 987 | --mandir=DIR man documentation [PREFIX/man] |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 988 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 989 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 990 | cat <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 991 | |
| 992 | System types: |
| 993 | --build=BUILD configure for building on BUILD [guessed] |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 994 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 995 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 996 | fi |
| 997 | |
| 998 | if test -n "$ac_init_help"; then |
| 999 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1000 | cat <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1001 | |
| 1002 | Optional Features: |
| 1003 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1004 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1005 | --enable-shared=PKGS build shared libraries default=yes |
| 1006 | --enable-static=PKGS build static libraries default=yes |
| 1007 | --enable-fast-install=PKGS optimize for fast installation default=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1008 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1009 | --enable-utf8 Use UTF-8 encodings |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 1010 | --enable-incore-db Support incore database |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 1011 | --enable-releasemode Support libtool link to release mode |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 1012 | --enable-tempdb-in-ram Use an in-ram database for temporary tables |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1013 | |
| 1014 | Optional Packages: |
| 1015 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1016 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1017 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 1018 | --with-pic try to use only PIC/non-PIC objects default=use both |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1019 | --with-hints=FILE Read configuration options from FILE |
| 1020 | |
| 1021 | Some influential environment variables: |
| 1022 | CC C compiler command |
| 1023 | CFLAGS C compiler flags |
| 1024 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1025 | nonstandard directory <lib dir> |
| 1026 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 1027 | headers in a nonstandard directory <include dir> |
| 1028 | CPP C preprocessor |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1029 | |
| 1030 | Use these variables to override the choices made by `configure' or to help |
| 1031 | it to find libraries and programs with nonstandard names/locations. |
| 1032 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1033 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1034 | fi |
| 1035 | |
| 1036 | if test "$ac_init_help" = "recursive"; then |
| 1037 | # If there are subdirs, report their specific --help. |
| 1038 | ac_popdir=`pwd` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1039 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1040 | test -d $ac_dir || continue |
| 1041 | ac_builddir=. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1042 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1043 | if test "$ac_dir" != .; then |
| 1044 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 1045 | # A "../" for each directory in $ac_dir_suffix. |
| 1046 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 1047 | else |
| 1048 | ac_dir_suffix= ac_top_builddir= |
| 1049 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1050 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1051 | case $srcdir in |
| 1052 | .) # No --srcdir option. We are building in place. |
| 1053 | ac_srcdir=. |
| 1054 | if test -z "$ac_top_builddir"; then |
| 1055 | ac_top_srcdir=. |
| 1056 | else |
| 1057 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 1058 | fi ;; |
| 1059 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 1060 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1061 | ac_top_srcdir=$srcdir ;; |
| 1062 | *) # Relative path. |
| 1063 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 1064 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 1065 | esac |
| 1066 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 1067 | # absolute. |
| 1068 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 1069 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
| 1070 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 1071 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 1072 | |
| 1073 | cd $ac_dir |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1074 | # Check for guested configure; otherwise get Cygnus style configure. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1075 | if test -f $ac_srcdir/configure.gnu; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1076 | echo |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1077 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 1078 | elif test -f $ac_srcdir/configure; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1079 | echo |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1080 | $SHELL $ac_srcdir/configure --help=recursive |
| 1081 | elif test -f $ac_srcdir/configure.ac || |
| 1082 | test -f $ac_srcdir/configure.in; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1083 | echo |
| 1084 | $ac_configure --help |
| 1085 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1086 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1087 | fi |
| 1088 | cd $ac_popdir |
| 1089 | done |
| 1090 | fi |
| 1091 | |
| 1092 | test -n "$ac_init_help" && exit 0 |
| 1093 | if $ac_init_version; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1094 | cat <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1095 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1096 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1097 | Free Software Foundation, Inc. |
| 1098 | This configure script is free software; the Free Software Foundation |
| 1099 | gives unlimited permission to copy, distribute and modify it. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1100 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1101 | exit 0 |
| 1102 | fi |
| 1103 | exec 5>config.log |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1104 | cat >&5 <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1105 | This file contains any messages produced by compilers while |
| 1106 | running configure, to aid debugging if configure makes a mistake. |
| 1107 | |
| 1108 | It was created by $as_me, which was |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1109 | generated by GNU Autoconf 2.57. Invocation command line was |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1110 | |
| 1111 | $ $0 $@ |
| 1112 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1113 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1114 | { |
| 1115 | cat <<_ASUNAME |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1116 | ## --------- ## |
| 1117 | ## Platform. ## |
| 1118 | ## --------- ## |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1119 | |
| 1120 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1121 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1122 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1123 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1124 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1125 | |
| 1126 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1127 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1128 | |
| 1129 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1130 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1131 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1132 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1133 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1134 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1135 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1136 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1137 | _ASUNAME |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1138 | |
| 1139 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1140 | for as_dir in $PATH |
| 1141 | do |
| 1142 | IFS=$as_save_IFS |
| 1143 | test -z "$as_dir" && as_dir=. |
| 1144 | echo "PATH: $as_dir" |
| 1145 | done |
| 1146 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1147 | } >&5 |
| 1148 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1149 | cat >&5 <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1150 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1151 | |
| 1152 | ## ----------- ## |
| 1153 | ## Core tests. ## |
| 1154 | ## ----------- ## |
| 1155 | |
| 1156 | _ACEOF |
| 1157 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1158 | |
| 1159 | # Keep a trace of the command line. |
| 1160 | # Strip out --no-create and --no-recursion so they do not pile up. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1161 | # Strip out --silent because we don't want to record it for future runs. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1162 | # Also quote any args containing shell meta-characters. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1163 | # Make two passes to allow for proper duplicate-argument suppression. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1164 | ac_configure_args= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1165 | ac_configure_args0= |
| 1166 | ac_configure_args1= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1167 | ac_sep= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1168 | ac_must_keep_next=false |
| 1169 | for ac_pass in 1 2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1170 | do |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1171 | for ac_arg |
| 1172 | do |
| 1173 | case $ac_arg in |
| 1174 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1175 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1176 | | -silent | --silent | --silen | --sile | --sil) |
| 1177 | continue ;; |
| 1178 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1179 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1180 | esac |
| 1181 | case $ac_pass in |
| 1182 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1183 | 2) |
| 1184 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1185 | if test $ac_must_keep_next = true; then |
| 1186 | ac_must_keep_next=false # Got value, back to normal. |
| 1187 | else |
| 1188 | case $ac_arg in |
| 1189 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1190 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1191 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1192 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1193 | case "$ac_configure_args0 " in |
| 1194 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1195 | esac |
| 1196 | ;; |
| 1197 | -* ) ac_must_keep_next=true ;; |
| 1198 | esac |
| 1199 | fi |
| 1200 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1201 | # Get rid of the leading space. |
| 1202 | ac_sep=" " |
| 1203 | ;; |
| 1204 | esac |
| 1205 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1206 | done |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1207 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1208 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1209 | |
| 1210 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1211 | # config.log. We remove comments because anyway the quotes in there |
| 1212 | # would cause problems or look ugly. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1213 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1214 | # such as our DU 5.0 friend, will then `close' the trap. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1215 | trap 'exit_status=$? |
| 1216 | # Save into config.log some information that might help in debugging. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1217 | { |
| 1218 | echo |
| 1219 | |
| 1220 | cat <<\_ASBOX |
| 1221 | ## ---------------- ## |
| 1222 | ## Cache variables. ## |
| 1223 | ## ---------------- ## |
| 1224 | _ASBOX |
| 1225 | echo |
| 1226 | # The following way of writing the cache mishandles newlines in values, |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1227 | { |
| 1228 | (set) 2>&1 | |
| 1229 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1230 | *ac_space=\ *) |
| 1231 | sed -n \ |
| 1232 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1233 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1234 | ;; |
| 1235 | *) |
| 1236 | sed -n \ |
| 1237 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1238 | ;; |
| 1239 | esac; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1240 | } |
| 1241 | echo |
| 1242 | |
| 1243 | cat <<\_ASBOX |
| 1244 | ## ----------------- ## |
| 1245 | ## Output variables. ## |
| 1246 | ## ----------------- ## |
| 1247 | _ASBOX |
| 1248 | echo |
| 1249 | for ac_var in $ac_subst_vars |
| 1250 | do |
| 1251 | eval ac_val=$`echo $ac_var` |
| 1252 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1253 | done | sort |
| 1254 | echo |
| 1255 | |
| 1256 | if test -n "$ac_subst_files"; then |
| 1257 | cat <<\_ASBOX |
| 1258 | ## ------------- ## |
| 1259 | ## Output files. ## |
| 1260 | ## ------------- ## |
| 1261 | _ASBOX |
| 1262 | echo |
| 1263 | for ac_var in $ac_subst_files |
| 1264 | do |
| 1265 | eval ac_val=$`echo $ac_var` |
| 1266 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1267 | done | sort |
| 1268 | echo |
| 1269 | fi |
| 1270 | |
| 1271 | if test -s confdefs.h; then |
| 1272 | cat <<\_ASBOX |
| 1273 | ## ----------- ## |
| 1274 | ## confdefs.h. ## |
| 1275 | ## ----------- ## |
| 1276 | _ASBOX |
| 1277 | echo |
| 1278 | sed "/^$/d" confdefs.h | sort |
| 1279 | echo |
| 1280 | fi |
| 1281 | test "$ac_signal" != 0 && |
| 1282 | echo "$as_me: caught signal $ac_signal" |
| 1283 | echo "$as_me: exit $exit_status" |
| 1284 | } >&5 |
| 1285 | rm -f core core.* *.core && |
| 1286 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1287 | exit $exit_status |
| 1288 | ' 0 |
| 1289 | for ac_signal in 1 2 13 15; do |
| 1290 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1291 | done |
| 1292 | ac_signal=0 |
| 1293 | |
| 1294 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1295 | rm -rf conftest* confdefs.h |
| 1296 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1297 | echo >confdefs.h |
| 1298 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1299 | # Predefined preprocessor variables. |
| 1300 | |
| 1301 | cat >>confdefs.h <<_ACEOF |
| 1302 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1303 | _ACEOF |
| 1304 | |
| 1305 | |
| 1306 | cat >>confdefs.h <<_ACEOF |
| 1307 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1308 | _ACEOF |
| 1309 | |
| 1310 | |
| 1311 | cat >>confdefs.h <<_ACEOF |
| 1312 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1313 | _ACEOF |
| 1314 | |
| 1315 | |
| 1316 | cat >>confdefs.h <<_ACEOF |
| 1317 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1318 | _ACEOF |
| 1319 | |
| 1320 | |
| 1321 | cat >>confdefs.h <<_ACEOF |
| 1322 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1323 | _ACEOF |
| 1324 | |
| 1325 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1326 | # Let the site file select an alternate cache file if it wants to. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1327 | # Prefer explicitly selected file to automatically selected ones. |
| 1328 | if test -z "$CONFIG_SITE"; then |
| 1329 | if test "x$prefix" != xNONE; then |
| 1330 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1331 | else |
| 1332 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1333 | fi |
| 1334 | fi |
| 1335 | for ac_site_file in $CONFIG_SITE; do |
| 1336 | if test -r "$ac_site_file"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1337 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1338 | echo "$as_me: loading site script $ac_site_file" >&6;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1339 | sed 's/^/| /' "$ac_site_file" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1340 | . "$ac_site_file" |
| 1341 | fi |
| 1342 | done |
| 1343 | |
| 1344 | if test -r "$cache_file"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1345 | # Some versions of bash will fail to source /dev/null (special |
| 1346 | # files actually), so we avoid doing that. |
| 1347 | if test -f "$cache_file"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1348 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1349 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1350 | case $cache_file in |
| 1351 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1352 | *) . ./$cache_file;; |
| 1353 | esac |
| 1354 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1355 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1356 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1357 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1358 | >$cache_file |
| 1359 | fi |
| 1360 | |
| 1361 | # Check that the precious variables saved in the cache have kept the same |
| 1362 | # value. |
| 1363 | ac_cache_corrupted=false |
| 1364 | for ac_var in `(set) 2>&1 | |
| 1365 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1366 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1367 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1368 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1369 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1370 | case $ac_old_set,$ac_new_set in |
| 1371 | set,) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1372 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1373 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1374 | ac_cache_corrupted=: ;; |
| 1375 | ,set) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1376 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1377 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1378 | ac_cache_corrupted=: ;; |
| 1379 | ,);; |
| 1380 | *) |
| 1381 | if test "x$ac_old_val" != "x$ac_new_val"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1382 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1383 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1384 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1385 | echo "$as_me: former value: $ac_old_val" >&2;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1386 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1387 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1388 | ac_cache_corrupted=: |
| 1389 | fi;; |
| 1390 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1391 | # Pass precious variables to config.status. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1392 | if test "$ac_new_set" = set; then |
| 1393 | case $ac_new_val in |
| 1394 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1395 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1396 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1397 | esac |
| 1398 | case " $ac_configure_args " in |
| 1399 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1400 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1401 | esac |
| 1402 | fi |
| 1403 | done |
| 1404 | if $ac_cache_corrupted; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1405 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1406 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1407 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1408 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1409 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1410 | fi |
| 1411 | |
| 1412 | ac_ext=c |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1413 | ac_cpp='$CPP $CPPFLAGS' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1414 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1415 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1416 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1417 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1418 | |
| 1419 | |
| 1420 | |
| 1421 | |
| 1422 | |
| 1423 | |
| 1424 | |
| 1425 | |
| 1426 | |
| 1427 | |
| 1428 | |
| 1429 | |
| 1430 | |
| 1431 | |
| 1432 | |
| 1433 | |
| 1434 | |
| 1435 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1436 | |
| 1437 | # The following RCS revision string applies to configure.in |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 1438 | # $Revision: 1.18 $ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1439 | |
| 1440 | ######### |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1441 | # Programs needed |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1442 | # |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1443 | # Check whether --enable-shared or --disable-shared was given. |
| 1444 | if test "${enable_shared+set}" = set; then |
| 1445 | enableval="$enable_shared" |
| 1446 | p=${PACKAGE-default} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1447 | case $enableval in |
| 1448 | yes) enable_shared=yes ;; |
| 1449 | no) enable_shared=no ;; |
| 1450 | *) |
| 1451 | enable_shared=no |
| 1452 | # Look at the argument we got. We use all the common list separators. |
| 1453 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 1454 | for pkg in $enableval; do |
| 1455 | if test "X$pkg" = "X$p"; then |
| 1456 | enable_shared=yes |
| 1457 | fi |
| 1458 | done |
| 1459 | IFS="$ac_save_ifs" |
| 1460 | ;; |
| 1461 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1462 | else |
| 1463 | enable_shared=yes |
| 1464 | fi; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1465 | # Check whether --enable-static or --disable-static was given. |
| 1466 | if test "${enable_static+set}" = set; then |
| 1467 | enableval="$enable_static" |
| 1468 | p=${PACKAGE-default} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1469 | case $enableval in |
| 1470 | yes) enable_static=yes ;; |
| 1471 | no) enable_static=no ;; |
| 1472 | *) |
| 1473 | enable_static=no |
| 1474 | # Look at the argument we got. We use all the common list separators. |
| 1475 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 1476 | for pkg in $enableval; do |
| 1477 | if test "X$pkg" = "X$p"; then |
| 1478 | enable_static=yes |
| 1479 | fi |
| 1480 | done |
| 1481 | IFS="$ac_save_ifs" |
| 1482 | ;; |
| 1483 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1484 | else |
| 1485 | enable_static=yes |
| 1486 | fi; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1487 | # Check whether --enable-fast-install or --disable-fast-install was given. |
| 1488 | if test "${enable_fast_install+set}" = set; then |
| 1489 | enableval="$enable_fast_install" |
| 1490 | p=${PACKAGE-default} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1491 | case $enableval in |
| 1492 | yes) enable_fast_install=yes ;; |
| 1493 | no) enable_fast_install=no ;; |
| 1494 | *) |
| 1495 | enable_fast_install=no |
| 1496 | # Look at the argument we got. We use all the common list separators. |
| 1497 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 1498 | for pkg in $enableval; do |
| 1499 | if test "X$pkg" = "X$p"; then |
| 1500 | enable_fast_install=yes |
| 1501 | fi |
| 1502 | done |
| 1503 | IFS="$ac_save_ifs" |
| 1504 | ;; |
| 1505 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1506 | else |
| 1507 | enable_fast_install=yes |
| 1508 | fi; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1509 | ac_aux_dir= |
| 1510 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1511 | if test -f $ac_dir/install-sh; then |
| 1512 | ac_aux_dir=$ac_dir |
| 1513 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1514 | break |
| 1515 | elif test -f $ac_dir/install.sh; then |
| 1516 | ac_aux_dir=$ac_dir |
| 1517 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1518 | break |
| 1519 | elif test -f $ac_dir/shtool; then |
| 1520 | ac_aux_dir=$ac_dir |
| 1521 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1522 | break |
| 1523 | fi |
| 1524 | done |
| 1525 | if test -z "$ac_aux_dir"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1526 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1527 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 1528 | { (exit 1); exit 1; }; } |
| 1529 | fi |
| 1530 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1531 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1532 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1533 | |
| 1534 | # Make sure we can run config.sub. |
| 1535 | $ac_config_sub sun4 >/dev/null 2>&1 || |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1536 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1537 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1538 | { (exit 1); exit 1; }; } |
| 1539 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1540 | echo "$as_me:$LINENO: checking build system type" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1541 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1542 | if test "${ac_cv_build+set}" = set; then |
| 1543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1544 | else |
| 1545 | ac_cv_build_alias=$build_alias |
| 1546 | test -z "$ac_cv_build_alias" && |
| 1547 | ac_cv_build_alias=`$ac_config_guess` |
| 1548 | test -z "$ac_cv_build_alias" && |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1549 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1550 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1551 | { (exit 1); exit 1; }; } |
| 1552 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1553 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1554 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1555 | { (exit 1); exit 1; }; } |
| 1556 | |
| 1557 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1558 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1559 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1560 | build=$ac_cv_build |
| 1561 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1562 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1563 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1564 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1565 | |
| 1566 | echo "$as_me:$LINENO: checking host system type" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1567 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1568 | if test "${ac_cv_host+set}" = set; then |
| 1569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1570 | else |
| 1571 | ac_cv_host_alias=$host_alias |
| 1572 | test -z "$ac_cv_host_alias" && |
| 1573 | ac_cv_host_alias=$ac_cv_build_alias |
| 1574 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1575 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1576 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1577 | { (exit 1); exit 1; }; } |
| 1578 | |
| 1579 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1580 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1581 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1582 | host=$ac_cv_host |
| 1583 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1584 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1585 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1586 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1587 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1588 | ac_ext=c |
| 1589 | ac_cpp='$CPP $CPPFLAGS' |
| 1590 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1591 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1592 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1593 | if test -n "$ac_tool_prefix"; then |
| 1594 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1595 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1596 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1597 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1598 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1600 | else |
| 1601 | if test -n "$CC"; then |
| 1602 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1603 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1605 | for as_dir in $PATH |
| 1606 | do |
| 1607 | IFS=$as_save_IFS |
| 1608 | test -z "$as_dir" && as_dir=. |
| 1609 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1610 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1611 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1612 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1613 | break 2 |
| 1614 | fi |
| 1615 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1616 | done |
| 1617 | |
| 1618 | fi |
| 1619 | fi |
| 1620 | CC=$ac_cv_prog_CC |
| 1621 | if test -n "$CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1622 | echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1623 | echo "${ECHO_T}$CC" >&6 |
| 1624 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1625 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1626 | echo "${ECHO_T}no" >&6 |
| 1627 | fi |
| 1628 | |
| 1629 | fi |
| 1630 | if test -z "$ac_cv_prog_CC"; then |
| 1631 | ac_ct_CC=$CC |
| 1632 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1633 | set dummy gcc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1634 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1635 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1636 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1638 | else |
| 1639 | if test -n "$ac_ct_CC"; then |
| 1640 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1641 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1643 | for as_dir in $PATH |
| 1644 | do |
| 1645 | IFS=$as_save_IFS |
| 1646 | test -z "$as_dir" && as_dir=. |
| 1647 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1648 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1649 | ac_cv_prog_ac_ct_CC="gcc" |
| 1650 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1651 | break 2 |
| 1652 | fi |
| 1653 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1654 | done |
| 1655 | |
| 1656 | fi |
| 1657 | fi |
| 1658 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1659 | if test -n "$ac_ct_CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1660 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1661 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1662 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1663 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1664 | echo "${ECHO_T}no" >&6 |
| 1665 | fi |
| 1666 | |
| 1667 | CC=$ac_ct_CC |
| 1668 | else |
| 1669 | CC="$ac_cv_prog_CC" |
| 1670 | fi |
| 1671 | |
| 1672 | if test -z "$CC"; then |
| 1673 | if test -n "$ac_tool_prefix"; then |
| 1674 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1675 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1676 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1677 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1678 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1680 | else |
| 1681 | if test -n "$CC"; then |
| 1682 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1683 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1685 | for as_dir in $PATH |
| 1686 | do |
| 1687 | IFS=$as_save_IFS |
| 1688 | test -z "$as_dir" && as_dir=. |
| 1689 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1690 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1691 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1692 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1693 | break 2 |
| 1694 | fi |
| 1695 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1696 | done |
| 1697 | |
| 1698 | fi |
| 1699 | fi |
| 1700 | CC=$ac_cv_prog_CC |
| 1701 | if test -n "$CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1702 | echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1703 | echo "${ECHO_T}$CC" >&6 |
| 1704 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1705 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1706 | echo "${ECHO_T}no" >&6 |
| 1707 | fi |
| 1708 | |
| 1709 | fi |
| 1710 | if test -z "$ac_cv_prog_CC"; then |
| 1711 | ac_ct_CC=$CC |
| 1712 | # Extract the first word of "cc", so it can be a program name with args. |
| 1713 | set dummy cc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1714 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1715 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1716 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1718 | else |
| 1719 | if test -n "$ac_ct_CC"; then |
| 1720 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1721 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1723 | for as_dir in $PATH |
| 1724 | do |
| 1725 | IFS=$as_save_IFS |
| 1726 | test -z "$as_dir" && as_dir=. |
| 1727 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1728 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1729 | ac_cv_prog_ac_ct_CC="cc" |
| 1730 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1731 | break 2 |
| 1732 | fi |
| 1733 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1734 | done |
| 1735 | |
| 1736 | fi |
| 1737 | fi |
| 1738 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1739 | if test -n "$ac_ct_CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1740 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1741 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1742 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1743 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1744 | echo "${ECHO_T}no" >&6 |
| 1745 | fi |
| 1746 | |
| 1747 | CC=$ac_ct_CC |
| 1748 | else |
| 1749 | CC="$ac_cv_prog_CC" |
| 1750 | fi |
| 1751 | |
| 1752 | fi |
| 1753 | if test -z "$CC"; then |
| 1754 | # Extract the first word of "cc", so it can be a program name with args. |
| 1755 | set dummy cc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1756 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1757 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1758 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1760 | else |
| 1761 | if test -n "$CC"; then |
| 1762 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1763 | else |
| 1764 | ac_prog_rejected=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1766 | for as_dir in $PATH |
| 1767 | do |
| 1768 | IFS=$as_save_IFS |
| 1769 | test -z "$as_dir" && as_dir=. |
| 1770 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1771 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1772 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1773 | ac_prog_rejected=yes |
| 1774 | continue |
| 1775 | fi |
| 1776 | ac_cv_prog_CC="cc" |
| 1777 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1778 | break 2 |
| 1779 | fi |
| 1780 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1781 | done |
| 1782 | |
| 1783 | if test $ac_prog_rejected = yes; then |
| 1784 | # We found a bogon in the path, so make sure we never use it. |
| 1785 | set dummy $ac_cv_prog_CC |
| 1786 | shift |
| 1787 | if test $# != 0; then |
| 1788 | # We chose a different compiler from the bogus one. |
| 1789 | # However, it has the same basename, so the bogon will be chosen |
| 1790 | # first if we set CC to just the basename; use the full file name. |
| 1791 | shift |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1792 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1793 | fi |
| 1794 | fi |
| 1795 | fi |
| 1796 | fi |
| 1797 | CC=$ac_cv_prog_CC |
| 1798 | if test -n "$CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1799 | echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1800 | echo "${ECHO_T}$CC" >&6 |
| 1801 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1802 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1803 | echo "${ECHO_T}no" >&6 |
| 1804 | fi |
| 1805 | |
| 1806 | fi |
| 1807 | if test -z "$CC"; then |
| 1808 | if test -n "$ac_tool_prefix"; then |
| 1809 | for ac_prog in cl |
| 1810 | do |
| 1811 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1812 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1813 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1814 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1815 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1817 | else |
| 1818 | if test -n "$CC"; then |
| 1819 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1820 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1822 | for as_dir in $PATH |
| 1823 | do |
| 1824 | IFS=$as_save_IFS |
| 1825 | test -z "$as_dir" && as_dir=. |
| 1826 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1827 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1828 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1829 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1830 | break 2 |
| 1831 | fi |
| 1832 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1833 | done |
| 1834 | |
| 1835 | fi |
| 1836 | fi |
| 1837 | CC=$ac_cv_prog_CC |
| 1838 | if test -n "$CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1839 | echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1840 | echo "${ECHO_T}$CC" >&6 |
| 1841 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1842 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1843 | echo "${ECHO_T}no" >&6 |
| 1844 | fi |
| 1845 | |
| 1846 | test -n "$CC" && break |
| 1847 | done |
| 1848 | fi |
| 1849 | if test -z "$CC"; then |
| 1850 | ac_ct_CC=$CC |
| 1851 | for ac_prog in cl |
| 1852 | do |
| 1853 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1854 | set dummy $ac_prog; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1855 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1856 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1857 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1859 | else |
| 1860 | if test -n "$ac_ct_CC"; then |
| 1861 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1862 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1864 | for as_dir in $PATH |
| 1865 | do |
| 1866 | IFS=$as_save_IFS |
| 1867 | test -z "$as_dir" && as_dir=. |
| 1868 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1869 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1870 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1871 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1872 | break 2 |
| 1873 | fi |
| 1874 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1875 | done |
| 1876 | |
| 1877 | fi |
| 1878 | fi |
| 1879 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1880 | if test -n "$ac_ct_CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1881 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1882 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1883 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1884 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1885 | echo "${ECHO_T}no" >&6 |
| 1886 | fi |
| 1887 | |
| 1888 | test -n "$ac_ct_CC" && break |
| 1889 | done |
| 1890 | |
| 1891 | CC=$ac_ct_CC |
| 1892 | fi |
| 1893 | |
| 1894 | fi |
| 1895 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1896 | |
| 1897 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1898 | See \`config.log' for more details." >&5 |
| 1899 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1900 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1901 | { (exit 1); exit 1; }; } |
| 1902 | |
| 1903 | # Provide some information about the compiler. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1904 | echo "$as_me:$LINENO:" \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1905 | "checking for C compiler version" >&5 |
| 1906 | ac_compiler=`set X $ac_compile; echo $2` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1907 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1908 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1909 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1911 | (exit $ac_status); } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1912 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1913 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1914 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1916 | (exit $ac_status); } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1917 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1918 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1919 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1921 | (exit $ac_status); } |
| 1922 | |
| 1923 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1924 | #line $LINENO "configure" |
| 1925 | /* confdefs.h. */ |
| 1926 | _ACEOF |
| 1927 | cat confdefs.h >>conftest.$ac_ext |
| 1928 | cat >>conftest.$ac_ext <<_ACEOF |
| 1929 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1930 | |
| 1931 | int |
| 1932 | main () |
| 1933 | { |
| 1934 | |
| 1935 | ; |
| 1936 | return 0; |
| 1937 | } |
| 1938 | _ACEOF |
| 1939 | ac_clean_files_save=$ac_clean_files |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1940 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1941 | # Try to create an executable without -o first, disregard a.out. |
| 1942 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1943 | # of exeext. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1944 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1945 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 1946 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1947 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1948 | (eval $ac_link_default) 2>&5 |
| 1949 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1951 | (exit $ac_status); }; then |
| 1952 | # Find the output, starting from the most likely. This scheme is |
| 1953 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1954 | # resort. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1955 | |
| 1956 | # Be careful to initialize this variable, since it used to be cached. |
| 1957 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1958 | ac_cv_exeext= |
| 1959 | # b.out is created by i960 compilers. |
| 1960 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1961 | do |
| 1962 | test -f "$ac_file" || continue |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1963 | case $ac_file in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1964 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1965 | ;; |
| 1966 | conftest.$ac_ext ) |
| 1967 | # This is the source file. |
| 1968 | ;; |
| 1969 | [ab].out ) |
| 1970 | # We found the default executable, but exeext='' is most |
| 1971 | # certainly right. |
| 1972 | break;; |
| 1973 | *.* ) |
| 1974 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1975 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1976 | # but it would be cool to find out if it's true. Does anybody |
| 1977 | # maintain Libtool? --akim. |
| 1978 | export ac_cv_exeext |
| 1979 | break;; |
| 1980 | * ) |
| 1981 | break;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1982 | esac |
| 1983 | done |
| 1984 | else |
| 1985 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1986 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1987 | |
| 1988 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 1989 | See \`config.log' for more details." >&5 |
| 1990 | echo "$as_me: error: C compiler cannot create executables |
| 1991 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1992 | { (exit 77); exit 77; }; } |
| 1993 | fi |
| 1994 | |
| 1995 | ac_exeext=$ac_cv_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1996 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1997 | echo "${ECHO_T}$ac_file" >&6 |
| 1998 | |
| 1999 | # Check the compiler produces executables we can run. If not, either |
| 2000 | # the compiler is broken, or we cross compile. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2001 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2002 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2003 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2004 | # If not cross compiling, check that we can run a simple program. |
| 2005 | if test "$cross_compiling" != yes; then |
| 2006 | if { ac_try='./$ac_file' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2008 | (eval $ac_try) 2>&5 |
| 2009 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2011 | (exit $ac_status); }; }; then |
| 2012 | cross_compiling=no |
| 2013 | else |
| 2014 | if test "$cross_compiling" = maybe; then |
| 2015 | cross_compiling=yes |
| 2016 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2017 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2018 | If you meant to cross compile, use \`--host'. |
| 2019 | See \`config.log' for more details." >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2020 | echo "$as_me: error: cannot run C compiled programs. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2021 | If you meant to cross compile, use \`--host'. |
| 2022 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2023 | { (exit 1); exit 1; }; } |
| 2024 | fi |
| 2025 | fi |
| 2026 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2027 | echo "$as_me:$LINENO: result: yes" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2028 | echo "${ECHO_T}yes" >&6 |
| 2029 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2030 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2031 | ac_clean_files=$ac_clean_files_save |
| 2032 | # Check the compiler produces executables we can run. If not, either |
| 2033 | # the compiler is broken, or we cross compile. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2034 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2035 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2036 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2037 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2038 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2039 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2040 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2041 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2042 | (eval $ac_link) 2>&5 |
| 2043 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2045 | (exit $ac_status); }; then |
| 2046 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2047 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2048 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2049 | # `rm'. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2050 | for ac_file in conftest.exe conftest conftest.*; do |
| 2051 | test -f "$ac_file" || continue |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2052 | case $ac_file in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2053 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2054 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2055 | export ac_cv_exeext |
| 2056 | break;; |
| 2057 | * ) break;; |
| 2058 | esac |
| 2059 | done |
| 2060 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2061 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2062 | See \`config.log' for more details." >&5 |
| 2063 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2064 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2065 | { (exit 1); exit 1; }; } |
| 2066 | fi |
| 2067 | |
| 2068 | rm -f conftest$ac_cv_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2069 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2070 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2071 | |
| 2072 | rm -f conftest.$ac_ext |
| 2073 | EXEEXT=$ac_cv_exeext |
| 2074 | ac_exeext=$EXEEXT |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2075 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2076 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2077 | if test "${ac_cv_objext+set}" = set; then |
| 2078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2079 | else |
| 2080 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2081 | #line $LINENO "configure" |
| 2082 | /* confdefs.h. */ |
| 2083 | _ACEOF |
| 2084 | cat confdefs.h >>conftest.$ac_ext |
| 2085 | cat >>conftest.$ac_ext <<_ACEOF |
| 2086 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2087 | |
| 2088 | int |
| 2089 | main () |
| 2090 | { |
| 2091 | |
| 2092 | ; |
| 2093 | return 0; |
| 2094 | } |
| 2095 | _ACEOF |
| 2096 | rm -f conftest.o conftest.obj |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2097 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2098 | (eval $ac_compile) 2>&5 |
| 2099 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2101 | (exit $ac_status); }; then |
| 2102 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2103 | case $ac_file in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2104 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2105 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2106 | break;; |
| 2107 | esac |
| 2108 | done |
| 2109 | else |
| 2110 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2111 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2112 | |
| 2113 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2114 | See \`config.log' for more details." >&5 |
| 2115 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2116 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2117 | { (exit 1); exit 1; }; } |
| 2118 | fi |
| 2119 | |
| 2120 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2121 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2122 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2123 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2124 | OBJEXT=$ac_cv_objext |
| 2125 | ac_objext=$OBJEXT |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2126 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2127 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2128 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2130 | else |
| 2131 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2132 | #line $LINENO "configure" |
| 2133 | /* confdefs.h. */ |
| 2134 | _ACEOF |
| 2135 | cat confdefs.h >>conftest.$ac_ext |
| 2136 | cat >>conftest.$ac_ext <<_ACEOF |
| 2137 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2138 | |
| 2139 | int |
| 2140 | main () |
| 2141 | { |
| 2142 | #ifndef __GNUC__ |
| 2143 | choke me |
| 2144 | #endif |
| 2145 | |
| 2146 | ; |
| 2147 | return 0; |
| 2148 | } |
| 2149 | _ACEOF |
| 2150 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2151 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2152 | (eval $ac_compile) 2>&5 |
| 2153 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2155 | (exit $ac_status); } && |
| 2156 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2158 | (eval $ac_try) 2>&5 |
| 2159 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2161 | (exit $ac_status); }; }; then |
| 2162 | ac_compiler_gnu=yes |
| 2163 | else |
| 2164 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2165 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2166 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2167 | ac_compiler_gnu=no |
| 2168 | fi |
| 2169 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2170 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2171 | |
| 2172 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2173 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2174 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2175 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2176 | ac_test_CFLAGS=${CFLAGS+set} |
| 2177 | ac_save_CFLAGS=$CFLAGS |
| 2178 | CFLAGS="-g" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2179 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2180 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2181 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2183 | else |
| 2184 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2185 | #line $LINENO "configure" |
| 2186 | /* confdefs.h. */ |
| 2187 | _ACEOF |
| 2188 | cat confdefs.h >>conftest.$ac_ext |
| 2189 | cat >>conftest.$ac_ext <<_ACEOF |
| 2190 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2191 | |
| 2192 | int |
| 2193 | main () |
| 2194 | { |
| 2195 | |
| 2196 | ; |
| 2197 | return 0; |
| 2198 | } |
| 2199 | _ACEOF |
| 2200 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2202 | (eval $ac_compile) 2>&5 |
| 2203 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2205 | (exit $ac_status); } && |
| 2206 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2208 | (eval $ac_try) 2>&5 |
| 2209 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2211 | (exit $ac_status); }; }; then |
| 2212 | ac_cv_prog_cc_g=yes |
| 2213 | else |
| 2214 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2215 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2216 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2217 | ac_cv_prog_cc_g=no |
| 2218 | fi |
| 2219 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2220 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2221 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2222 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2223 | if test "$ac_test_CFLAGS" = set; then |
| 2224 | CFLAGS=$ac_save_CFLAGS |
| 2225 | elif test $ac_cv_prog_cc_g = yes; then |
| 2226 | if test "$GCC" = yes; then |
| 2227 | CFLAGS="-g -O2" |
| 2228 | else |
| 2229 | CFLAGS="-g" |
| 2230 | fi |
| 2231 | else |
| 2232 | if test "$GCC" = yes; then |
| 2233 | CFLAGS="-O2" |
| 2234 | else |
| 2235 | CFLAGS= |
| 2236 | fi |
| 2237 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2238 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2239 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2240 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2242 | else |
| 2243 | ac_cv_prog_cc_stdc=no |
| 2244 | ac_save_CC=$CC |
| 2245 | cat >conftest.$ac_ext <<_ACEOF |
| 2246 | #line $LINENO "configure" |
| 2247 | /* confdefs.h. */ |
| 2248 | _ACEOF |
| 2249 | cat confdefs.h >>conftest.$ac_ext |
| 2250 | cat >>conftest.$ac_ext <<_ACEOF |
| 2251 | /* end confdefs.h. */ |
| 2252 | #include <stdarg.h> |
| 2253 | #include <stdio.h> |
| 2254 | #include <sys/types.h> |
| 2255 | #include <sys/stat.h> |
| 2256 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2257 | struct buf { int x; }; |
| 2258 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2259 | static char *e (p, i) |
| 2260 | char **p; |
| 2261 | int i; |
| 2262 | { |
| 2263 | return p[i]; |
| 2264 | } |
| 2265 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2266 | { |
| 2267 | char *s; |
| 2268 | va_list v; |
| 2269 | va_start (v,p); |
| 2270 | s = g (p, va_arg (v,int)); |
| 2271 | va_end (v); |
| 2272 | return s; |
| 2273 | } |
| 2274 | int test (int i, double x); |
| 2275 | struct s1 {int (*f) (int a);}; |
| 2276 | struct s2 {int (*f) (double a);}; |
| 2277 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2278 | int argc; |
| 2279 | char **argv; |
| 2280 | int |
| 2281 | main () |
| 2282 | { |
| 2283 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2284 | ; |
| 2285 | return 0; |
| 2286 | } |
| 2287 | _ACEOF |
| 2288 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2289 | # breaks some systems' header files. |
| 2290 | # AIX -qlanglvl=ansi |
| 2291 | # Ultrix and OSF/1 -std1 |
| 2292 | # HP-UX 10.20 and later -Ae |
| 2293 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2294 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2295 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2296 | do |
| 2297 | CC="$ac_save_CC $ac_arg" |
| 2298 | rm -f conftest.$ac_objext |
| 2299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2300 | (eval $ac_compile) 2>&5 |
| 2301 | ac_status=$? |
| 2302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2303 | (exit $ac_status); } && |
| 2304 | { ac_try='test -s conftest.$ac_objext' |
| 2305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2306 | (eval $ac_try) 2>&5 |
| 2307 | ac_status=$? |
| 2308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2309 | (exit $ac_status); }; }; then |
| 2310 | ac_cv_prog_cc_stdc=$ac_arg |
| 2311 | break |
| 2312 | else |
| 2313 | echo "$as_me: failed program was:" >&5 |
| 2314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2315 | |
| 2316 | fi |
| 2317 | rm -f conftest.$ac_objext |
| 2318 | done |
| 2319 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2320 | CC=$ac_save_CC |
| 2321 | |
| 2322 | fi |
| 2323 | |
| 2324 | case "x$ac_cv_prog_cc_stdc" in |
| 2325 | x|xno) |
| 2326 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2327 | echo "${ECHO_T}none needed" >&6 ;; |
| 2328 | *) |
| 2329 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2330 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2331 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2332 | esac |
| 2333 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2334 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2335 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2336 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2337 | # the declaration of exit, since it's the most demanding environment. |
| 2338 | cat >conftest.$ac_ext <<_ACEOF |
| 2339 | #ifndef __cplusplus |
| 2340 | choke me |
| 2341 | #endif |
| 2342 | _ACEOF |
| 2343 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2344 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2345 | (eval $ac_compile) 2>&5 |
| 2346 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2348 | (exit $ac_status); } && |
| 2349 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2351 | (eval $ac_try) 2>&5 |
| 2352 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2354 | (exit $ac_status); }; }; then |
| 2355 | for ac_declaration in \ |
| 2356 | ''\ |
| 2357 | '#include <stdlib.h>' \ |
| 2358 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2359 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2360 | 'extern "C" void exit (int) throw ();' \ |
| 2361 | 'extern "C" void exit (int);' \ |
| 2362 | 'void exit (int);' |
| 2363 | do |
| 2364 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2365 | #line $LINENO "configure" |
| 2366 | /* confdefs.h. */ |
| 2367 | _ACEOF |
| 2368 | cat confdefs.h >>conftest.$ac_ext |
| 2369 | cat >>conftest.$ac_ext <<_ACEOF |
| 2370 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2371 | #include <stdlib.h> |
| 2372 | $ac_declaration |
| 2373 | int |
| 2374 | main () |
| 2375 | { |
| 2376 | exit (42); |
| 2377 | ; |
| 2378 | return 0; |
| 2379 | } |
| 2380 | _ACEOF |
| 2381 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2382 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2383 | (eval $ac_compile) 2>&5 |
| 2384 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2386 | (exit $ac_status); } && |
| 2387 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2389 | (eval $ac_try) 2>&5 |
| 2390 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2392 | (exit $ac_status); }; }; then |
| 2393 | : |
| 2394 | else |
| 2395 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2396 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2397 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2398 | continue |
| 2399 | fi |
| 2400 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2401 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2402 | #line $LINENO "configure" |
| 2403 | /* confdefs.h. */ |
| 2404 | _ACEOF |
| 2405 | cat confdefs.h >>conftest.$ac_ext |
| 2406 | cat >>conftest.$ac_ext <<_ACEOF |
| 2407 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2408 | $ac_declaration |
| 2409 | int |
| 2410 | main () |
| 2411 | { |
| 2412 | exit (42); |
| 2413 | ; |
| 2414 | return 0; |
| 2415 | } |
| 2416 | _ACEOF |
| 2417 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2419 | (eval $ac_compile) 2>&5 |
| 2420 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2422 | (exit $ac_status); } && |
| 2423 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2425 | (eval $ac_try) 2>&5 |
| 2426 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2428 | (exit $ac_status); }; }; then |
| 2429 | break |
| 2430 | else |
| 2431 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2432 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2433 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2434 | fi |
| 2435 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2436 | done |
| 2437 | rm -f conftest* |
| 2438 | if test -n "$ac_declaration"; then |
| 2439 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2440 | echo $ac_declaration >>confdefs.h |
| 2441 | echo '#endif' >>confdefs.h |
| 2442 | fi |
| 2443 | |
| 2444 | else |
| 2445 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2446 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2447 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2448 | fi |
| 2449 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2450 | ac_ext=c |
| 2451 | ac_cpp='$CPP $CPPFLAGS' |
| 2452 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2453 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2454 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2455 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2456 | # Find the correct PATH separator. Usually this is `:', but |
| 2457 | # DJGPP uses `;' like DOS. |
| 2458 | if test "X${PATH_SEPARATOR+set}" != Xset; then |
| 2459 | UNAME=${UNAME-`uname 2>/dev/null`} |
| 2460 | case X$UNAME in |
| 2461 | *-DOS) lt_cv_sys_path_separator=';' ;; |
| 2462 | *) lt_cv_sys_path_separator=':' ;; |
| 2463 | esac |
| 2464 | PATH_SEPARATOR=$lt_cv_sys_path_separator |
| 2465 | fi |
| 2466 | |
| 2467 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2468 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 2469 | if test "${with_gnu_ld+set}" = set; then |
| 2470 | withval="$with_gnu_ld" |
| 2471 | test "$withval" = no || with_gnu_ld=yes |
| 2472 | else |
| 2473 | with_gnu_ld=no |
| 2474 | fi; |
| 2475 | ac_prog=ld |
| 2476 | if test "$GCC" = yes; then |
| 2477 | # Check if gcc -print-prog-name=ld gives a path. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2478 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2479 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
| 2480 | case $host in |
| 2481 | *-*-mingw*) |
| 2482 | # gcc leaves a trailing carriage return which upsets mingw |
| 2483 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 2484 | *) |
| 2485 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 2486 | esac |
| 2487 | case $ac_prog in |
| 2488 | # Accept absolute paths. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2489 | [\\/]* | [A-Za-z]:[\\/]*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2490 | re_direlt='/[^/][^/]*/\.\./' |
| 2491 | # Canonicalize the path of ld |
| 2492 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 2493 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 2494 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 2495 | done |
| 2496 | test -z "$LD" && LD="$ac_prog" |
| 2497 | ;; |
| 2498 | "") |
| 2499 | # If it fails, then pretend we aren't using GCC. |
| 2500 | ac_prog=ld |
| 2501 | ;; |
| 2502 | *) |
| 2503 | # If it is relative, then search for the first ld in PATH. |
| 2504 | with_gnu_ld=unknown |
| 2505 | ;; |
| 2506 | esac |
| 2507 | elif test "$with_gnu_ld" = yes; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2508 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2509 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 2510 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2511 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2512 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 2513 | fi |
| 2514 | if test "${lt_cv_path_LD+set}" = set; then |
| 2515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2516 | else |
| 2517 | if test -z "$LD"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2518 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2519 | for ac_dir in $PATH; do |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2520 | test -z "$ac_dir" && ac_dir=. |
| 2521 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 2522 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 2523 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 2524 | # but apparently some GNU ld's only accept -v. |
| 2525 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 2526 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
| 2527 | test "$with_gnu_ld" != no && break |
| 2528 | else |
| 2529 | test "$with_gnu_ld" != yes && break |
| 2530 | fi |
| 2531 | fi |
| 2532 | done |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2533 | IFS="$ac_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2534 | else |
| 2535 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 2536 | fi |
| 2537 | fi |
| 2538 | |
| 2539 | LD="$lt_cv_path_LD" |
| 2540 | if test -n "$LD"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2541 | echo "$as_me:$LINENO: result: $LD" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2542 | echo "${ECHO_T}$LD" >&6 |
| 2543 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2544 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2545 | echo "${ECHO_T}no" >&6 |
| 2546 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2547 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2548 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 2549 | { (exit 1); exit 1; }; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2550 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2551 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 2552 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 2553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2554 | else |
| 2555 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 2556 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
| 2557 | lt_cv_prog_gnu_ld=yes |
| 2558 | else |
| 2559 | lt_cv_prog_gnu_ld=no |
| 2560 | fi |
| 2561 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2562 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2563 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 2564 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 2565 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2566 | |
| 2567 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2568 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
| 2569 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 2570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2571 | else |
| 2572 | lt_cv_ld_reload_flag='-r' |
| 2573 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2574 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2575 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
| 2576 | reload_flag=$lt_cv_ld_reload_flag |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2577 | test -n "$reload_flag" && reload_flag=" $reload_flag" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2578 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2579 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2580 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
| 2581 | if test "${lt_cv_path_NM+set}" = set; then |
| 2582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2583 | else |
| 2584 | if test -n "$NM"; then |
| 2585 | # Let the user override the test. |
| 2586 | lt_cv_path_NM="$NM" |
| 2587 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2588 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2589 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2590 | test -z "$ac_dir" && ac_dir=. |
| 2591 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
| 2592 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then |
| 2593 | # Check to see if the nm accepts a BSD-compat flag. |
| 2594 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 2595 | # nm: unknown option "B" ignored |
| 2596 | # Tru64's nm complains that /dev/null is an invalid object file |
| 2597 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then |
| 2598 | lt_cv_path_NM="$tmp_nm -B" |
| 2599 | break |
| 2600 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
| 2601 | lt_cv_path_NM="$tmp_nm -p" |
| 2602 | break |
| 2603 | else |
| 2604 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 2605 | continue # so that we can try to find one that supports BSD flags |
| 2606 | fi |
| 2607 | fi |
| 2608 | done |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2609 | IFS="$ac_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2610 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 2611 | fi |
| 2612 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2613 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2614 | NM="$lt_cv_path_NM" |
| 2615 | echo "$as_me:$LINENO: result: $NM" >&5 |
| 2616 | echo "${ECHO_T}$NM" >&6 |
| 2617 | |
| 2618 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 2619 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
| 2620 | if test "${lt_cv_path_SED+set}" = set; then |
| 2621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2622 | else |
| 2623 | # Loop through the user's path and test for sed and gsed. |
| 2624 | # Then use that list of sed's as ones to test for truncation. |
| 2625 | as_executable_p="test -f" |
| 2626 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2627 | for as_dir in $PATH |
| 2628 | do |
| 2629 | IFS=$as_save_IFS |
| 2630 | test -z "$as_dir" && as_dir=. |
| 2631 | for ac_prog in sed gsed; do |
| 2632 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2633 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 2634 | _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext" |
| 2635 | fi |
| 2636 | done |
| 2637 | done |
| 2638 | done |
| 2639 | |
| 2640 | # Create a temporary directory, and hook for its removal unless debugging. |
| 2641 | $debug || |
| 2642 | { |
| 2643 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 2644 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 2645 | } |
| 2646 | |
| 2647 | # Create a (secure) tmp directory for tmp files. |
| 2648 | : ${TMPDIR=/tmp} |
| 2649 | { |
| 2650 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` && |
| 2651 | test -n "$tmp" && test -d "$tmp" |
| 2652 | } || |
| 2653 | { |
| 2654 | tmp=$TMPDIR/sed$$-$RANDOM |
| 2655 | (umask 077 && mkdir $tmp) |
| 2656 | } || |
| 2657 | { |
| 2658 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 2659 | { (exit 1); exit 1; } |
| 2660 | } |
| 2661 | _max=0 |
| 2662 | _count=0 |
| 2663 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 2664 | # along with /bin/sed that truncates output. |
| 2665 | for _sed in $_sed_list /usr/xpg4/bin/sed; do |
| 2666 | test ! -f ${_sed} && break |
| 2667 | cat /dev/null > "$tmp/sed.in" |
| 2668 | _count=0 |
| 2669 | echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in" |
| 2670 | # Check for GNU sed and select it if it is found. |
| 2671 | if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then |
| 2672 | lt_cv_path_SED=${_sed} |
| 2673 | break |
| 2674 | fi |
| 2675 | while true; do |
| 2676 | cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp" |
| 2677 | mv "$tmp/sed.tmp" "$tmp/sed.in" |
| 2678 | cp "$tmp/sed.in" "$tmp/sed.nl" |
| 2679 | echo >>"$tmp/sed.nl" |
| 2680 | ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break |
| 2681 | cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break |
| 2682 | # 40000 chars as input seems more than enough |
| 2683 | test $_count -gt 10 && break |
| 2684 | _count=`expr $_count + 1` |
| 2685 | if test $_count -gt $_max; then |
| 2686 | _max=$_count |
| 2687 | lt_cv_path_SED=$_sed |
| 2688 | fi |
| 2689 | done |
| 2690 | done |
| 2691 | rm -rf "$tmp" |
| 2692 | |
| 2693 | fi |
| 2694 | |
| 2695 | if test "X$SED" != "X"; then |
| 2696 | lt_cv_path_SED=$SED |
| 2697 | else |
| 2698 | SED=$lt_cv_path_SED |
| 2699 | fi |
| 2700 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 2701 | echo "${ECHO_T}$SED" >&6 |
| 2702 | |
| 2703 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2704 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 2705 | LN_S=$as_ln_s |
| 2706 | if test "$LN_S" = "ln -s"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2707 | echo "$as_me:$LINENO: result: yes" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2708 | echo "${ECHO_T}yes" >&6 |
| 2709 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2710 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2711 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 2712 | fi |
| 2713 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2714 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 2715 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2716 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 2717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2718 | else |
| 2719 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 2720 | lt_cv_file_magic_test_file= |
| 2721 | lt_cv_deplibs_check_method='unknown' |
| 2722 | # Need to set the preceding variable on all platforms that support |
| 2723 | # interlibrary dependencies. |
| 2724 | # 'none' -- dependencies not supported. |
| 2725 | # `unknown' -- same as none, but documents that we really don't know. |
| 2726 | # 'pass_all' -- all dependencies passed with no checks. |
| 2727 | # 'test_compile' -- check by making test program. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2728 | # 'file_magic [[regex]]' -- check by looking for files in library path |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2729 | # which responds to the $file_magic_cmd with a given egrep regex. |
| 2730 | # If you have `file' or equivalent on your system and you're not sure |
| 2731 | # whether `pass_all' will *always* work, you probably want this one. |
| 2732 | |
| 2733 | case $host_os in |
| 2734 | aix4* | aix5*) |
| 2735 | lt_cv_deplibs_check_method=pass_all |
| 2736 | ;; |
| 2737 | |
| 2738 | beos*) |
| 2739 | lt_cv_deplibs_check_method=pass_all |
| 2740 | ;; |
| 2741 | |
| 2742 | bsdi4*) |
| 2743 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 2744 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 2745 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 2746 | ;; |
| 2747 | |
| 2748 | cygwin* | mingw* | pw32*) |
| 2749 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 2750 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 2751 | ;; |
| 2752 | |
| 2753 | darwin* | rhapsody*) |
| 2754 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
| 2755 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 2756 | case "$host_os" in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2757 | rhapsody* | darwin1.[012]) |
| 2758 | lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2759 | ;; |
| 2760 | *) # Darwin 1.3 on |
| 2761 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
| 2762 | ;; |
| 2763 | esac |
| 2764 | ;; |
| 2765 | |
| 2766 | freebsd*) |
| 2767 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 2768 | case $host_cpu in |
| 2769 | i*86 ) |
| 2770 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 2771 | # Let's accept both of them until this is cleared up. |
| 2772 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
| 2773 | lt_cv_file_magic_cmd=/usr/bin/file |
| 2774 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 2775 | ;; |
| 2776 | esac |
| 2777 | else |
| 2778 | lt_cv_deplibs_check_method=pass_all |
| 2779 | fi |
| 2780 | ;; |
| 2781 | |
| 2782 | gnu*) |
| 2783 | lt_cv_deplibs_check_method=pass_all |
| 2784 | ;; |
| 2785 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2786 | hpux10.20*|hpux11*) |
| 2787 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2788 | lt_cv_file_magic_cmd=/usr/bin/file |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2789 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2790 | ;; |
| 2791 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2792 | irix5* | irix6* | nonstopux*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2793 | case $host_os in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2794 | irix5* | nonstopux*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2795 | # this will be overridden with pass_all, but let us keep it just in case |
| 2796 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
| 2797 | ;; |
| 2798 | *) |
| 2799 | case $LD in |
| 2800 | *-32|*"-32 ") libmagic=32-bit;; |
| 2801 | *-n32|*"-n32 ") libmagic=N32;; |
| 2802 | *-64|*"-64 ") libmagic=64-bit;; |
| 2803 | *) libmagic=never-match;; |
| 2804 | esac |
| 2805 | # this will be overridden with pass_all, but let us keep it just in case |
| 2806 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
| 2807 | ;; |
| 2808 | esac |
| 2809 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
| 2810 | lt_cv_deplibs_check_method=pass_all |
| 2811 | ;; |
| 2812 | |
| 2813 | # This must be Linux ELF. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2814 | linux-gnu*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2815 | case $host_cpu in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2816 | alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2817 | lt_cv_deplibs_check_method=pass_all ;; |
| 2818 | *) |
| 2819 | # glibc up to 2.1.1 does not perform some relocations on ARM |
| 2820 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
| 2821 | esac |
| 2822 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
| 2823 | ;; |
| 2824 | |
| 2825 | netbsd*) |
| 2826 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 2827 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
| 2828 | else |
| 2829 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
| 2830 | fi |
| 2831 | ;; |
| 2832 | |
| 2833 | newos6*) |
| 2834 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 2835 | lt_cv_file_magic_cmd=/usr/bin/file |
| 2836 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 2837 | ;; |
| 2838 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2839 | openbsd*) |
| 2840 | lt_cv_file_magic_cmd=/usr/bin/file |
| 2841 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 2842 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 2843 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
| 2844 | else |
| 2845 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
| 2846 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2847 | ;; |
| 2848 | |
| 2849 | osf3* | osf4* | osf5*) |
| 2850 | # this will be overridden with pass_all, but let us keep it just in case |
| 2851 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
| 2852 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 2853 | lt_cv_deplibs_check_method=pass_all |
| 2854 | ;; |
| 2855 | |
| 2856 | sco3.2v5*) |
| 2857 | lt_cv_deplibs_check_method=pass_all |
| 2858 | ;; |
| 2859 | |
| 2860 | solaris*) |
| 2861 | lt_cv_deplibs_check_method=pass_all |
| 2862 | lt_cv_file_magic_test_file=/lib/libc.so |
| 2863 | ;; |
| 2864 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2865 | sysv5uw[78]* | sysv4*uw2*) |
| 2866 | lt_cv_deplibs_check_method=pass_all |
| 2867 | ;; |
| 2868 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2869 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 2870 | case $host_vendor in |
| 2871 | motorola) |
| 2872 | 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]' |
| 2873 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 2874 | ;; |
| 2875 | ncr) |
| 2876 | lt_cv_deplibs_check_method=pass_all |
| 2877 | ;; |
| 2878 | sequent) |
| 2879 | lt_cv_file_magic_cmd='/bin/file' |
| 2880 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 2881 | ;; |
| 2882 | sni) |
| 2883 | lt_cv_file_magic_cmd='/bin/file' |
| 2884 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 2885 | lt_cv_file_magic_test_file=/lib/libc.so |
| 2886 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2887 | siemens) |
| 2888 | lt_cv_deplibs_check_method=pass_all |
| 2889 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2890 | esac |
| 2891 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2892 | esac |
| 2893 | |
| 2894 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2895 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2896 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
| 2897 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 2898 | deplibs_check_method=$lt_cv_deplibs_check_method |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2899 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2900 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2901 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2902 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2903 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2904 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2905 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2906 | |
| 2907 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2908 | echo "$as_me:$LINENO: checking command to parse $NM output" >&5 |
| 2909 | echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2910 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 2911 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2912 | else |
| 2913 | |
| 2914 | # These are sane defaults that work on at least a few old systems. |
| 2915 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 2916 | |
| 2917 | # Character class describing NM global symbol codes. |
| 2918 | symcode='[BCDEGRST]' |
| 2919 | |
| 2920 | # Regexp to match symbols that can be accessed directly from C. |
| 2921 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 2922 | |
| 2923 | # Transform the above into a raw symbol and a C symbol. |
| 2924 | symxfrm='\1 \2\3 \3' |
| 2925 | |
| 2926 | # Transform an extracted symbol line into a proper C declaration |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2927 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2928 | |
| 2929 | # Transform an extracted symbol line into symbol name and symbol address |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2930 | 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'" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2931 | |
| 2932 | # Define system-specific variables. |
| 2933 | case $host_os in |
| 2934 | aix*) |
| 2935 | symcode='[BCDT]' |
| 2936 | ;; |
| 2937 | cygwin* | mingw* | pw32*) |
| 2938 | symcode='[ABCDGISTW]' |
| 2939 | ;; |
| 2940 | hpux*) # Its linker distinguishes data from code symbols |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2941 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 2942 | 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'" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2943 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2944 | irix* | nonstopux*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2945 | symcode='[BCDEGRST]' |
| 2946 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2947 | osf*) |
| 2948 | symcode='[BCDEGQRST]' |
| 2949 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2950 | solaris* | sysv5*) |
| 2951 | symcode='[BDT]' |
| 2952 | ;; |
| 2953 | sysv4) |
| 2954 | symcode='[DFNSTU]' |
| 2955 | ;; |
| 2956 | esac |
| 2957 | |
| 2958 | # Handle CRLF in mingw tool chain |
| 2959 | opt_cr= |
| 2960 | case $host_os in |
| 2961 | mingw*) |
| 2962 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 2963 | ;; |
| 2964 | esac |
| 2965 | |
| 2966 | # If we're using GNU nm, then use its standard symbol codes. |
| 2967 | if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then |
| 2968 | symcode='[ABCDGISTW]' |
| 2969 | fi |
| 2970 | |
| 2971 | # Try without a prefix undercore, then with it. |
| 2972 | for ac_symprfx in "" "_"; do |
| 2973 | |
| 2974 | # Write the raw and C identifiers. |
| 2975 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 2976 | |
| 2977 | # Check to see that the pipe works correctly. |
| 2978 | pipe_works=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2979 | rm -f conftest* |
| 2980 | cat > conftest.$ac_ext <<EOF |
| 2981 | #ifdef __cplusplus |
| 2982 | extern "C" { |
| 2983 | #endif |
| 2984 | char nm_test_var; |
| 2985 | void nm_test_func(){} |
| 2986 | #ifdef __cplusplus |
| 2987 | } |
| 2988 | #endif |
| 2989 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 2990 | EOF |
| 2991 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2992 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2993 | (eval $ac_compile) 2>&5 |
| 2994 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2996 | (exit $ac_status); }; then |
| 2997 | # Now try to grab the symbols. |
| 2998 | nlist=conftest.nm |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2999 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3000 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 3001 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3003 | (exit $ac_status); } && test -s "$nlist"; then |
| 3004 | # Try sorting and uniquifying the output. |
| 3005 | if sort "$nlist" | uniq > "$nlist"T; then |
| 3006 | mv -f "$nlist"T "$nlist" |
| 3007 | else |
| 3008 | rm -f "$nlist"T |
| 3009 | fi |
| 3010 | |
| 3011 | # Make sure that we snagged all the symbols we need. |
| 3012 | if egrep ' nm_test_var$' "$nlist" >/dev/null; then |
| 3013 | if egrep ' nm_test_func$' "$nlist" >/dev/null; then |
| 3014 | cat <<EOF > conftest.$ac_ext |
| 3015 | #ifdef __cplusplus |
| 3016 | extern "C" { |
| 3017 | #endif |
| 3018 | |
| 3019 | EOF |
| 3020 | # Now generate the symbol file. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3021 | eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3022 | |
| 3023 | cat <<EOF >> conftest.$ac_ext |
| 3024 | #if defined (__STDC__) && __STDC__ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3025 | # define lt_ptr void * |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3026 | #else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3027 | # define lt_ptr char * |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3028 | # define const |
| 3029 | #endif |
| 3030 | |
| 3031 | /* The mapping between symbol names and symbols. */ |
| 3032 | const struct { |
| 3033 | const char *name; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3034 | lt_ptr address; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3035 | } |
| 3036 | lt_preloaded_symbols[] = |
| 3037 | { |
| 3038 | EOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3039 | sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3040 | cat <<\EOF >> conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3041 | {0, (lt_ptr) 0} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3042 | }; |
| 3043 | |
| 3044 | #ifdef __cplusplus |
| 3045 | } |
| 3046 | #endif |
| 3047 | EOF |
| 3048 | # Now try linking the two files. |
| 3049 | mv conftest.$ac_objext conftstm.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3050 | save_LIBS="$LIBS" |
| 3051 | save_CFLAGS="$CFLAGS" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3052 | LIBS="conftstm.$ac_objext" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3053 | CFLAGS="$CFLAGS$no_builtin_flag" |
| 3054 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3055 | (eval $ac_link) 2>&5 |
| 3056 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3058 | (exit $ac_status); } && test -s conftest$ac_exeext; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3059 | pipe_works=yes |
| 3060 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3061 | LIBS="$save_LIBS" |
| 3062 | CFLAGS="$save_CFLAGS" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3063 | else |
| 3064 | echo "cannot find nm_test_func in $nlist" >&5 |
| 3065 | fi |
| 3066 | else |
| 3067 | echo "cannot find nm_test_var in $nlist" >&5 |
| 3068 | fi |
| 3069 | else |
| 3070 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 3071 | fi |
| 3072 | else |
| 3073 | echo "$progname: failed program was:" >&5 |
| 3074 | cat conftest.$ac_ext >&5 |
| 3075 | fi |
| 3076 | rm -f conftest* conftst* |
| 3077 | |
| 3078 | # Do not use the global_symbol_pipe unless it works. |
| 3079 | if test "$pipe_works" = yes; then |
| 3080 | break |
| 3081 | else |
| 3082 | lt_cv_sys_global_symbol_pipe= |
| 3083 | fi |
| 3084 | done |
| 3085 | |
| 3086 | fi |
| 3087 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3088 | global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3089 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3090 | global_symbol_to_cdecl= |
| 3091 | global_symbol_to_c_name_address= |
| 3092 | else |
| 3093 | global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" |
| 3094 | global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3095 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3096 | if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; |
| 3097 | then |
| 3098 | echo "$as_me:$LINENO: result: failed" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3099 | echo "${ECHO_T}failed" >&6 |
| 3100 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3101 | echo "$as_me:$LINENO: result: ok" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3102 | echo "${ECHO_T}ok" >&6 |
| 3103 | fi |
| 3104 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3105 | ac_ext=c |
| 3106 | ac_cpp='$CPP $CPPFLAGS' |
| 3107 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3108 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3109 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3110 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3111 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 3112 | # On Suns, sometimes $CPP names a directory. |
| 3113 | if test -n "$CPP" && test -d "$CPP"; then |
| 3114 | CPP= |
| 3115 | fi |
| 3116 | if test -z "$CPP"; then |
| 3117 | if test "${ac_cv_prog_CPP+set}" = set; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3119 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3120 | # Double quotes because CPP needs to be expanded |
| 3121 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3122 | do |
| 3123 | ac_preproc_ok=false |
| 3124 | for ac_c_preproc_warn_flag in '' yes |
| 3125 | do |
| 3126 | # Use a header file that comes with gcc, so configuring glibc |
| 3127 | # with a fresh cross-compiler works. |
| 3128 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3129 | # <limits.h> exists even on freestanding compilers. |
| 3130 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3131 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3132 | cat >conftest.$ac_ext <<_ACEOF |
| 3133 | #line $LINENO "configure" |
| 3134 | /* confdefs.h. */ |
| 3135 | _ACEOF |
| 3136 | cat confdefs.h >>conftest.$ac_ext |
| 3137 | cat >>conftest.$ac_ext <<_ACEOF |
| 3138 | /* end confdefs.h. */ |
| 3139 | #ifdef __STDC__ |
| 3140 | # include <limits.h> |
| 3141 | #else |
| 3142 | # include <assert.h> |
| 3143 | #endif |
| 3144 | Syntax error |
| 3145 | _ACEOF |
| 3146 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3147 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3148 | ac_status=$? |
| 3149 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3150 | rm -f conftest.er1 |
| 3151 | cat conftest.err >&5 |
| 3152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3153 | (exit $ac_status); } >/dev/null; then |
| 3154 | if test -s conftest.err; then |
| 3155 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3156 | else |
| 3157 | ac_cpp_err= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3158 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3159 | else |
| 3160 | ac_cpp_err=yes |
| 3161 | fi |
| 3162 | if test -z "$ac_cpp_err"; then |
| 3163 | : |
| 3164 | else |
| 3165 | echo "$as_me: failed program was:" >&5 |
| 3166 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3167 | |
| 3168 | # Broken: fails on valid input. |
| 3169 | continue |
| 3170 | fi |
| 3171 | rm -f conftest.err conftest.$ac_ext |
| 3172 | |
| 3173 | # OK, works on sane cases. Now check whether non-existent headers |
| 3174 | # can be detected and how. |
| 3175 | cat >conftest.$ac_ext <<_ACEOF |
| 3176 | #line $LINENO "configure" |
| 3177 | /* confdefs.h. */ |
| 3178 | _ACEOF |
| 3179 | cat confdefs.h >>conftest.$ac_ext |
| 3180 | cat >>conftest.$ac_ext <<_ACEOF |
| 3181 | /* end confdefs.h. */ |
| 3182 | #include <ac_nonexistent.h> |
| 3183 | _ACEOF |
| 3184 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3185 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3186 | ac_status=$? |
| 3187 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3188 | rm -f conftest.er1 |
| 3189 | cat conftest.err >&5 |
| 3190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3191 | (exit $ac_status); } >/dev/null; then |
| 3192 | if test -s conftest.err; then |
| 3193 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3194 | else |
| 3195 | ac_cpp_err= |
| 3196 | fi |
| 3197 | else |
| 3198 | ac_cpp_err=yes |
| 3199 | fi |
| 3200 | if test -z "$ac_cpp_err"; then |
| 3201 | # Broken: success on invalid input. |
| 3202 | continue |
| 3203 | else |
| 3204 | echo "$as_me: failed program was:" >&5 |
| 3205 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3206 | |
| 3207 | # Passes both tests. |
| 3208 | ac_preproc_ok=: |
| 3209 | break |
| 3210 | fi |
| 3211 | rm -f conftest.err conftest.$ac_ext |
| 3212 | |
| 3213 | done |
| 3214 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3215 | rm -f conftest.err conftest.$ac_ext |
| 3216 | if $ac_preproc_ok; then |
| 3217 | break |
| 3218 | fi |
| 3219 | |
| 3220 | done |
| 3221 | ac_cv_prog_CPP=$CPP |
| 3222 | |
| 3223 | fi |
| 3224 | CPP=$ac_cv_prog_CPP |
| 3225 | else |
| 3226 | ac_cv_prog_CPP=$CPP |
| 3227 | fi |
| 3228 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3229 | echo "${ECHO_T}$CPP" >&6 |
| 3230 | ac_preproc_ok=false |
| 3231 | for ac_c_preproc_warn_flag in '' yes |
| 3232 | do |
| 3233 | # Use a header file that comes with gcc, so configuring glibc |
| 3234 | # with a fresh cross-compiler works. |
| 3235 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3236 | # <limits.h> exists even on freestanding compilers. |
| 3237 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3238 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3239 | cat >conftest.$ac_ext <<_ACEOF |
| 3240 | #line $LINENO "configure" |
| 3241 | /* confdefs.h. */ |
| 3242 | _ACEOF |
| 3243 | cat confdefs.h >>conftest.$ac_ext |
| 3244 | cat >>conftest.$ac_ext <<_ACEOF |
| 3245 | /* end confdefs.h. */ |
| 3246 | #ifdef __STDC__ |
| 3247 | # include <limits.h> |
| 3248 | #else |
| 3249 | # include <assert.h> |
| 3250 | #endif |
| 3251 | Syntax error |
| 3252 | _ACEOF |
| 3253 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3254 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3255 | ac_status=$? |
| 3256 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3257 | rm -f conftest.er1 |
| 3258 | cat conftest.err >&5 |
| 3259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3260 | (exit $ac_status); } >/dev/null; then |
| 3261 | if test -s conftest.err; then |
| 3262 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3263 | else |
| 3264 | ac_cpp_err= |
| 3265 | fi |
| 3266 | else |
| 3267 | ac_cpp_err=yes |
| 3268 | fi |
| 3269 | if test -z "$ac_cpp_err"; then |
| 3270 | : |
| 3271 | else |
| 3272 | echo "$as_me: failed program was:" >&5 |
| 3273 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3274 | |
| 3275 | # Broken: fails on valid input. |
| 3276 | continue |
| 3277 | fi |
| 3278 | rm -f conftest.err conftest.$ac_ext |
| 3279 | |
| 3280 | # OK, works on sane cases. Now check whether non-existent headers |
| 3281 | # can be detected and how. |
| 3282 | cat >conftest.$ac_ext <<_ACEOF |
| 3283 | #line $LINENO "configure" |
| 3284 | /* confdefs.h. */ |
| 3285 | _ACEOF |
| 3286 | cat confdefs.h >>conftest.$ac_ext |
| 3287 | cat >>conftest.$ac_ext <<_ACEOF |
| 3288 | /* end confdefs.h. */ |
| 3289 | #include <ac_nonexistent.h> |
| 3290 | _ACEOF |
| 3291 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3292 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3293 | ac_status=$? |
| 3294 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3295 | rm -f conftest.er1 |
| 3296 | cat conftest.err >&5 |
| 3297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3298 | (exit $ac_status); } >/dev/null; then |
| 3299 | if test -s conftest.err; then |
| 3300 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3301 | else |
| 3302 | ac_cpp_err= |
| 3303 | fi |
| 3304 | else |
| 3305 | ac_cpp_err=yes |
| 3306 | fi |
| 3307 | if test -z "$ac_cpp_err"; then |
| 3308 | # Broken: success on invalid input. |
| 3309 | continue |
| 3310 | else |
| 3311 | echo "$as_me: failed program was:" >&5 |
| 3312 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3313 | |
| 3314 | # Passes both tests. |
| 3315 | ac_preproc_ok=: |
| 3316 | break |
| 3317 | fi |
| 3318 | rm -f conftest.err conftest.$ac_ext |
| 3319 | |
| 3320 | done |
| 3321 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3322 | rm -f conftest.err conftest.$ac_ext |
| 3323 | if $ac_preproc_ok; then |
| 3324 | : |
| 3325 | else |
| 3326 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3327 | See \`config.log' for more details." >&5 |
| 3328 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3329 | See \`config.log' for more details." >&2;} |
| 3330 | { (exit 1); exit 1; }; } |
| 3331 | fi |
| 3332 | |
| 3333 | ac_ext=c |
| 3334 | ac_cpp='$CPP $CPPFLAGS' |
| 3335 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3336 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3337 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3338 | |
| 3339 | |
| 3340 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3341 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 3342 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 3343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3344 | else |
| 3345 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 3346 | then ac_cv_prog_egrep='grep -E' |
| 3347 | else ac_cv_prog_egrep='egrep' |
| 3348 | fi |
| 3349 | fi |
| 3350 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 3351 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 3352 | EGREP=$ac_cv_prog_egrep |
| 3353 | |
| 3354 | |
| 3355 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3356 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3357 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3359 | else |
| 3360 | cat >conftest.$ac_ext <<_ACEOF |
| 3361 | #line $LINENO "configure" |
| 3362 | /* confdefs.h. */ |
| 3363 | _ACEOF |
| 3364 | cat confdefs.h >>conftest.$ac_ext |
| 3365 | cat >>conftest.$ac_ext <<_ACEOF |
| 3366 | /* end confdefs.h. */ |
| 3367 | #include <stdlib.h> |
| 3368 | #include <stdarg.h> |
| 3369 | #include <string.h> |
| 3370 | #include <float.h> |
| 3371 | |
| 3372 | int |
| 3373 | main () |
| 3374 | { |
| 3375 | |
| 3376 | ; |
| 3377 | return 0; |
| 3378 | } |
| 3379 | _ACEOF |
| 3380 | rm -f conftest.$ac_objext |
| 3381 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3382 | (eval $ac_compile) 2>&5 |
| 3383 | ac_status=$? |
| 3384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3385 | (exit $ac_status); } && |
| 3386 | { ac_try='test -s conftest.$ac_objext' |
| 3387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3388 | (eval $ac_try) 2>&5 |
| 3389 | ac_status=$? |
| 3390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3391 | (exit $ac_status); }; }; then |
| 3392 | ac_cv_header_stdc=yes |
| 3393 | else |
| 3394 | echo "$as_me: failed program was:" >&5 |
| 3395 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3396 | |
| 3397 | ac_cv_header_stdc=no |
| 3398 | fi |
| 3399 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3400 | |
| 3401 | if test $ac_cv_header_stdc = yes; then |
| 3402 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3403 | cat >conftest.$ac_ext <<_ACEOF |
| 3404 | #line $LINENO "configure" |
| 3405 | /* confdefs.h. */ |
| 3406 | _ACEOF |
| 3407 | cat confdefs.h >>conftest.$ac_ext |
| 3408 | cat >>conftest.$ac_ext <<_ACEOF |
| 3409 | /* end confdefs.h. */ |
| 3410 | #include <string.h> |
| 3411 | |
| 3412 | _ACEOF |
| 3413 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3414 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3415 | : |
| 3416 | else |
| 3417 | ac_cv_header_stdc=no |
| 3418 | fi |
| 3419 | rm -f conftest* |
| 3420 | |
| 3421 | fi |
| 3422 | |
| 3423 | if test $ac_cv_header_stdc = yes; then |
| 3424 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3425 | cat >conftest.$ac_ext <<_ACEOF |
| 3426 | #line $LINENO "configure" |
| 3427 | /* confdefs.h. */ |
| 3428 | _ACEOF |
| 3429 | cat confdefs.h >>conftest.$ac_ext |
| 3430 | cat >>conftest.$ac_ext <<_ACEOF |
| 3431 | /* end confdefs.h. */ |
| 3432 | #include <stdlib.h> |
| 3433 | |
| 3434 | _ACEOF |
| 3435 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3436 | $EGREP "free" >/dev/null 2>&1; then |
| 3437 | : |
| 3438 | else |
| 3439 | ac_cv_header_stdc=no |
| 3440 | fi |
| 3441 | rm -f conftest* |
| 3442 | |
| 3443 | fi |
| 3444 | |
| 3445 | if test $ac_cv_header_stdc = yes; then |
| 3446 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3447 | if test "$cross_compiling" = yes; then |
| 3448 | : |
| 3449 | else |
| 3450 | cat >conftest.$ac_ext <<_ACEOF |
| 3451 | #line $LINENO "configure" |
| 3452 | /* confdefs.h. */ |
| 3453 | _ACEOF |
| 3454 | cat confdefs.h >>conftest.$ac_ext |
| 3455 | cat >>conftest.$ac_ext <<_ACEOF |
| 3456 | /* end confdefs.h. */ |
| 3457 | #include <ctype.h> |
| 3458 | #if ((' ' & 0x0FF) == 0x020) |
| 3459 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3460 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3461 | #else |
| 3462 | # define ISLOWER(c) \ |
| 3463 | (('a' <= (c) && (c) <= 'i') \ |
| 3464 | || ('j' <= (c) && (c) <= 'r') \ |
| 3465 | || ('s' <= (c) && (c) <= 'z')) |
| 3466 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3467 | #endif |
| 3468 | |
| 3469 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3470 | int |
| 3471 | main () |
| 3472 | { |
| 3473 | int i; |
| 3474 | for (i = 0; i < 256; i++) |
| 3475 | if (XOR (islower (i), ISLOWER (i)) |
| 3476 | || toupper (i) != TOUPPER (i)) |
| 3477 | exit(2); |
| 3478 | exit (0); |
| 3479 | } |
| 3480 | _ACEOF |
| 3481 | rm -f conftest$ac_exeext |
| 3482 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3483 | (eval $ac_link) 2>&5 |
| 3484 | ac_status=$? |
| 3485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3486 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3488 | (eval $ac_try) 2>&5 |
| 3489 | ac_status=$? |
| 3490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3491 | (exit $ac_status); }; }; then |
| 3492 | : |
| 3493 | else |
| 3494 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3495 | echo "$as_me: failed program was:" >&5 |
| 3496 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3497 | |
| 3498 | ( exit $ac_status ) |
| 3499 | ac_cv_header_stdc=no |
| 3500 | fi |
| 3501 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3502 | fi |
| 3503 | fi |
| 3504 | fi |
| 3505 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3506 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 3507 | if test $ac_cv_header_stdc = yes; then |
| 3508 | |
| 3509 | cat >>confdefs.h <<\_ACEOF |
| 3510 | #define STDC_HEADERS 1 |
| 3511 | _ACEOF |
| 3512 | |
| 3513 | fi |
| 3514 | |
| 3515 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3516 | |
| 3517 | |
| 3518 | |
| 3519 | |
| 3520 | |
| 3521 | |
| 3522 | |
| 3523 | |
| 3524 | |
| 3525 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3526 | inttypes.h stdint.h unistd.h |
| 3527 | do |
| 3528 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3529 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3530 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3531 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3532 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3533 | else |
| 3534 | cat >conftest.$ac_ext <<_ACEOF |
| 3535 | #line $LINENO "configure" |
| 3536 | /* confdefs.h. */ |
| 3537 | _ACEOF |
| 3538 | cat confdefs.h >>conftest.$ac_ext |
| 3539 | cat >>conftest.$ac_ext <<_ACEOF |
| 3540 | /* end confdefs.h. */ |
| 3541 | $ac_includes_default |
| 3542 | |
| 3543 | #include <$ac_header> |
| 3544 | _ACEOF |
| 3545 | rm -f conftest.$ac_objext |
| 3546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3547 | (eval $ac_compile) 2>&5 |
| 3548 | ac_status=$? |
| 3549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3550 | (exit $ac_status); } && |
| 3551 | { ac_try='test -s conftest.$ac_objext' |
| 3552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3553 | (eval $ac_try) 2>&5 |
| 3554 | ac_status=$? |
| 3555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3556 | (exit $ac_status); }; }; then |
| 3557 | eval "$as_ac_Header=yes" |
| 3558 | else |
| 3559 | echo "$as_me: failed program was:" >&5 |
| 3560 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3561 | |
| 3562 | eval "$as_ac_Header=no" |
| 3563 | fi |
| 3564 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3565 | fi |
| 3566 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3567 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3568 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3569 | cat >>confdefs.h <<_ACEOF |
| 3570 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3571 | _ACEOF |
| 3572 | |
| 3573 | fi |
| 3574 | |
| 3575 | done |
| 3576 | |
| 3577 | |
| 3578 | |
| 3579 | for ac_header in dlfcn.h |
| 3580 | do |
| 3581 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3582 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3583 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3584 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3585 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3587 | fi |
| 3588 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3589 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3590 | else |
| 3591 | # Is the header compilable? |
| 3592 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3593 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3594 | cat >conftest.$ac_ext <<_ACEOF |
| 3595 | #line $LINENO "configure" |
| 3596 | /* confdefs.h. */ |
| 3597 | _ACEOF |
| 3598 | cat confdefs.h >>conftest.$ac_ext |
| 3599 | cat >>conftest.$ac_ext <<_ACEOF |
| 3600 | /* end confdefs.h. */ |
| 3601 | $ac_includes_default |
| 3602 | #include <$ac_header> |
| 3603 | _ACEOF |
| 3604 | rm -f conftest.$ac_objext |
| 3605 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3606 | (eval $ac_compile) 2>&5 |
| 3607 | ac_status=$? |
| 3608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3609 | (exit $ac_status); } && |
| 3610 | { ac_try='test -s conftest.$ac_objext' |
| 3611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3612 | (eval $ac_try) 2>&5 |
| 3613 | ac_status=$? |
| 3614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3615 | (exit $ac_status); }; }; then |
| 3616 | ac_header_compiler=yes |
| 3617 | else |
| 3618 | echo "$as_me: failed program was:" >&5 |
| 3619 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3620 | |
| 3621 | ac_header_compiler=no |
| 3622 | fi |
| 3623 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3624 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3625 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3626 | |
| 3627 | # Is the header present? |
| 3628 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3629 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3630 | cat >conftest.$ac_ext <<_ACEOF |
| 3631 | #line $LINENO "configure" |
| 3632 | /* confdefs.h. */ |
| 3633 | _ACEOF |
| 3634 | cat confdefs.h >>conftest.$ac_ext |
| 3635 | cat >>conftest.$ac_ext <<_ACEOF |
| 3636 | /* end confdefs.h. */ |
| 3637 | #include <$ac_header> |
| 3638 | _ACEOF |
| 3639 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3640 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3641 | ac_status=$? |
| 3642 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3643 | rm -f conftest.er1 |
| 3644 | cat conftest.err >&5 |
| 3645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3646 | (exit $ac_status); } >/dev/null; then |
| 3647 | if test -s conftest.err; then |
| 3648 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3649 | else |
| 3650 | ac_cpp_err= |
| 3651 | fi |
| 3652 | else |
| 3653 | ac_cpp_err=yes |
| 3654 | fi |
| 3655 | if test -z "$ac_cpp_err"; then |
| 3656 | ac_header_preproc=yes |
| 3657 | else |
| 3658 | echo "$as_me: failed program was:" >&5 |
| 3659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3660 | |
| 3661 | ac_header_preproc=no |
| 3662 | fi |
| 3663 | rm -f conftest.err conftest.$ac_ext |
| 3664 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3665 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3666 | |
| 3667 | # So? What about this header? |
| 3668 | case $ac_header_compiler:$ac_header_preproc in |
| 3669 | yes:no ) |
| 3670 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3671 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3672 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3673 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 3674 | ( |
| 3675 | cat <<\_ASBOX |
| 3676 | ## ------------------------------------ ## |
| 3677 | ## Report this to bug-autoconf@gnu.org. ## |
| 3678 | ## ------------------------------------ ## |
| 3679 | _ASBOX |
| 3680 | ) | |
| 3681 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3682 | ;; |
| 3683 | no:yes ) |
| 3684 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3685 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 3686 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3687 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3688 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3689 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 3690 | ( |
| 3691 | cat <<\_ASBOX |
| 3692 | ## ------------------------------------ ## |
| 3693 | ## Report this to bug-autoconf@gnu.org. ## |
| 3694 | ## ------------------------------------ ## |
| 3695 | _ASBOX |
| 3696 | ) | |
| 3697 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3698 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3699 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3700 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3701 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3702 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3704 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3705 | eval "$as_ac_Header=$ac_header_preproc" |
| 3706 | fi |
| 3707 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3708 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3709 | |
| 3710 | fi |
| 3711 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3712 | cat >>confdefs.h <<_ACEOF |
| 3713 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3714 | _ACEOF |
| 3715 | |
| 3716 | fi |
| 3717 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3718 | done |
| 3719 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3720 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3721 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3722 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3723 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3724 | |
| 3725 | # Only perform the check for file, if the check method requires it |
| 3726 | case $deplibs_check_method in |
| 3727 | file_magic*) |
| 3728 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3729 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3730 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
| 3731 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 3732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3733 | else |
| 3734 | case $MAGIC_CMD in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3735 | /*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3736 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 3737 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3738 | ?:/*) |
| 3739 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
| 3740 | ;; |
| 3741 | *) |
| 3742 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
| 3743 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3744 | ac_dummy="/usr/bin:$PATH" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3745 | for ac_dir in $ac_dummy; do |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3746 | test -z "$ac_dir" && ac_dir=. |
| 3747 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 3748 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 3749 | if test -n "$file_magic_test_file"; then |
| 3750 | case $deplibs_check_method in |
| 3751 | "file_magic "*) |
| 3752 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 3753 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 3754 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 3755 | egrep "$file_magic_regex" > /dev/null; then |
| 3756 | : |
| 3757 | else |
| 3758 | cat <<EOF 1>&2 |
| 3759 | |
| 3760 | *** Warning: the command libtool uses to detect shared libraries, |
| 3761 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 3762 | *** The result is that libtool may fail to recognize shared libraries |
| 3763 | *** as such. This will affect the creation of libtool libraries that |
| 3764 | *** depend on shared libraries, but programs linked with such libtool |
| 3765 | *** libraries will work regardless of this problem. Nevertheless, you |
| 3766 | *** may want to report the problem to your system manager and/or to |
| 3767 | *** bug-libtool@gnu.org |
| 3768 | |
| 3769 | EOF |
| 3770 | fi ;; |
| 3771 | esac |
| 3772 | fi |
| 3773 | break |
| 3774 | fi |
| 3775 | done |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3776 | IFS="$ac_save_ifs" |
| 3777 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3778 | ;; |
| 3779 | esac |
| 3780 | fi |
| 3781 | |
| 3782 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 3783 | if test -n "$MAGIC_CMD"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3784 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3785 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 3786 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3787 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3788 | echo "${ECHO_T}no" >&6 |
| 3789 | fi |
| 3790 | |
| 3791 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 3792 | if test -n "$ac_tool_prefix"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3793 | echo "$as_me:$LINENO: checking for file" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3794 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
| 3795 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 3796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3797 | else |
| 3798 | case $MAGIC_CMD in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3799 | /*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3800 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 3801 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3802 | ?:/*) |
| 3803 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
| 3804 | ;; |
| 3805 | *) |
| 3806 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
| 3807 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3808 | ac_dummy="/usr/bin:$PATH" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3809 | for ac_dir in $ac_dummy; do |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3810 | test -z "$ac_dir" && ac_dir=. |
| 3811 | if test -f $ac_dir/file; then |
| 3812 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 3813 | if test -n "$file_magic_test_file"; then |
| 3814 | case $deplibs_check_method in |
| 3815 | "file_magic "*) |
| 3816 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 3817 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 3818 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 3819 | egrep "$file_magic_regex" > /dev/null; then |
| 3820 | : |
| 3821 | else |
| 3822 | cat <<EOF 1>&2 |
| 3823 | |
| 3824 | *** Warning: the command libtool uses to detect shared libraries, |
| 3825 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 3826 | *** The result is that libtool may fail to recognize shared libraries |
| 3827 | *** as such. This will affect the creation of libtool libraries that |
| 3828 | *** depend on shared libraries, but programs linked with such libtool |
| 3829 | *** libraries will work regardless of this problem. Nevertheless, you |
| 3830 | *** may want to report the problem to your system manager and/or to |
| 3831 | *** bug-libtool@gnu.org |
| 3832 | |
| 3833 | EOF |
| 3834 | fi ;; |
| 3835 | esac |
| 3836 | fi |
| 3837 | break |
| 3838 | fi |
| 3839 | done |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3840 | IFS="$ac_save_ifs" |
| 3841 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3842 | ;; |
| 3843 | esac |
| 3844 | fi |
| 3845 | |
| 3846 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 3847 | if test -n "$MAGIC_CMD"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3848 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3849 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 3850 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3851 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3852 | echo "${ECHO_T}no" >&6 |
| 3853 | fi |
| 3854 | |
| 3855 | else |
| 3856 | MAGIC_CMD=: |
| 3857 | fi |
| 3858 | fi |
| 3859 | |
| 3860 | fi |
| 3861 | ;; |
| 3862 | esac |
| 3863 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3864 | if test -n "$ac_tool_prefix"; then |
| 3865 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3866 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3867 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3868 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3869 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3871 | else |
| 3872 | if test -n "$RANLIB"; then |
| 3873 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3874 | else |
| 3875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3876 | for as_dir in $PATH |
| 3877 | do |
| 3878 | IFS=$as_save_IFS |
| 3879 | test -z "$as_dir" && as_dir=. |
| 3880 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3881 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3882 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3883 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3884 | break 2 |
| 3885 | fi |
| 3886 | done |
| 3887 | done |
| 3888 | |
| 3889 | fi |
| 3890 | fi |
| 3891 | RANLIB=$ac_cv_prog_RANLIB |
| 3892 | if test -n "$RANLIB"; then |
| 3893 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3894 | echo "${ECHO_T}$RANLIB" >&6 |
| 3895 | else |
| 3896 | echo "$as_me:$LINENO: result: no" >&5 |
| 3897 | echo "${ECHO_T}no" >&6 |
| 3898 | fi |
| 3899 | |
| 3900 | fi |
| 3901 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3902 | ac_ct_RANLIB=$RANLIB |
| 3903 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3904 | set dummy ranlib; ac_word=$2 |
| 3905 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3906 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3907 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3909 | else |
| 3910 | if test -n "$ac_ct_RANLIB"; then |
| 3911 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3912 | else |
| 3913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3914 | for as_dir in $PATH |
| 3915 | do |
| 3916 | IFS=$as_save_IFS |
| 3917 | test -z "$as_dir" && as_dir=. |
| 3918 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3919 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3920 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3921 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3922 | break 2 |
| 3923 | fi |
| 3924 | done |
| 3925 | done |
| 3926 | |
| 3927 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3928 | fi |
| 3929 | fi |
| 3930 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3931 | if test -n "$ac_ct_RANLIB"; then |
| 3932 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3933 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3934 | else |
| 3935 | echo "$as_me:$LINENO: result: no" >&5 |
| 3936 | echo "${ECHO_T}no" >&6 |
| 3937 | fi |
| 3938 | |
| 3939 | RANLIB=$ac_ct_RANLIB |
| 3940 | else |
| 3941 | RANLIB="$ac_cv_prog_RANLIB" |
| 3942 | fi |
| 3943 | |
| 3944 | if test -n "$ac_tool_prefix"; then |
| 3945 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 3946 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 3947 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3948 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3949 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 3950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3951 | else |
| 3952 | if test -n "$STRIP"; then |
| 3953 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 3954 | else |
| 3955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3956 | for as_dir in $PATH |
| 3957 | do |
| 3958 | IFS=$as_save_IFS |
| 3959 | test -z "$as_dir" && as_dir=. |
| 3960 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3961 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3962 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 3963 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3964 | break 2 |
| 3965 | fi |
| 3966 | done |
| 3967 | done |
| 3968 | |
| 3969 | fi |
| 3970 | fi |
| 3971 | STRIP=$ac_cv_prog_STRIP |
| 3972 | if test -n "$STRIP"; then |
| 3973 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 3974 | echo "${ECHO_T}$STRIP" >&6 |
| 3975 | else |
| 3976 | echo "$as_me:$LINENO: result: no" >&5 |
| 3977 | echo "${ECHO_T}no" >&6 |
| 3978 | fi |
| 3979 | |
| 3980 | fi |
| 3981 | if test -z "$ac_cv_prog_STRIP"; then |
| 3982 | ac_ct_STRIP=$STRIP |
| 3983 | # Extract the first word of "strip", so it can be a program name with args. |
| 3984 | set dummy strip; ac_word=$2 |
| 3985 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3986 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3987 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 3988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3989 | else |
| 3990 | if test -n "$ac_ct_STRIP"; then |
| 3991 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 3992 | else |
| 3993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3994 | for as_dir in $PATH |
| 3995 | do |
| 3996 | IFS=$as_save_IFS |
| 3997 | test -z "$as_dir" && as_dir=. |
| 3998 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3999 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4000 | ac_cv_prog_ac_ct_STRIP="strip" |
| 4001 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4002 | break 2 |
| 4003 | fi |
| 4004 | done |
| 4005 | done |
| 4006 | |
| 4007 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 4008 | fi |
| 4009 | fi |
| 4010 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 4011 | if test -n "$ac_ct_STRIP"; then |
| 4012 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 4013 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 4014 | else |
| 4015 | echo "$as_me:$LINENO: result: no" >&5 |
| 4016 | echo "${ECHO_T}no" >&6 |
| 4017 | fi |
| 4018 | |
| 4019 | STRIP=$ac_ct_STRIP |
| 4020 | else |
| 4021 | STRIP="$ac_cv_prog_STRIP" |
| 4022 | fi |
| 4023 | |
| 4024 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4025 | enable_dlopen=no |
| 4026 | enable_win32_dll=no |
| 4027 | |
| 4028 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 4029 | if test "${enable_libtool_lock+set}" = set; then |
| 4030 | enableval="$enable_libtool_lock" |
| 4031 | |
| 4032 | fi; |
| 4033 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 4034 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4035 | # Some flags need to be propagated to the compiler or linker for good |
| 4036 | # libtool support. |
| 4037 | case $host in |
| 4038 | *-*-irix6*) |
| 4039 | # Find out which ABI we are using. |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 4040 | echo '#line 4039 "configure"' > conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4041 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4042 | (eval $ac_compile) 2>&5 |
| 4043 | ac_status=$? |
| 4044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4045 | (exit $ac_status); }; then |
| 4046 | case `/usr/bin/file conftest.$ac_objext` in |
| 4047 | *32-bit*) |
| 4048 | LD="${LD-ld} -32" |
| 4049 | ;; |
| 4050 | *N32*) |
| 4051 | LD="${LD-ld} -n32" |
| 4052 | ;; |
| 4053 | *64-bit*) |
| 4054 | LD="${LD-ld} -64" |
| 4055 | ;; |
| 4056 | esac |
| 4057 | fi |
| 4058 | rm -rf conftest* |
| 4059 | ;; |
| 4060 | |
| 4061 | *-*-sco3.2v5*) |
| 4062 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 4063 | SAVE_CFLAGS="$CFLAGS" |
| 4064 | CFLAGS="$CFLAGS -belf" |
| 4065 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 4066 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
| 4067 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 4068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4069 | else |
| 4070 | |
| 4071 | |
| 4072 | ac_ext=c |
| 4073 | ac_cpp='$CPP $CPPFLAGS' |
| 4074 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4075 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4076 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4077 | |
| 4078 | cat >conftest.$ac_ext <<_ACEOF |
| 4079 | #line $LINENO "configure" |
| 4080 | /* confdefs.h. */ |
| 4081 | _ACEOF |
| 4082 | cat confdefs.h >>conftest.$ac_ext |
| 4083 | cat >>conftest.$ac_ext <<_ACEOF |
| 4084 | /* end confdefs.h. */ |
| 4085 | |
| 4086 | int |
| 4087 | main () |
| 4088 | { |
| 4089 | |
| 4090 | ; |
| 4091 | return 0; |
| 4092 | } |
| 4093 | _ACEOF |
| 4094 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4095 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4096 | (eval $ac_link) 2>&5 |
| 4097 | ac_status=$? |
| 4098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4099 | (exit $ac_status); } && |
| 4100 | { ac_try='test -s conftest$ac_exeext' |
| 4101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4102 | (eval $ac_try) 2>&5 |
| 4103 | ac_status=$? |
| 4104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4105 | (exit $ac_status); }; }; then |
| 4106 | lt_cv_cc_needs_belf=yes |
| 4107 | else |
| 4108 | echo "$as_me: failed program was:" >&5 |
| 4109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4110 | |
| 4111 | lt_cv_cc_needs_belf=no |
| 4112 | fi |
| 4113 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4114 | ac_ext=c |
| 4115 | ac_cpp='$CPP $CPPFLAGS' |
| 4116 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4117 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4118 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4119 | |
| 4120 | fi |
| 4121 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 4122 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
| 4123 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 4124 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 4125 | CFLAGS="$SAVE_CFLAGS" |
| 4126 | fi |
| 4127 | ;; |
| 4128 | |
| 4129 | |
| 4130 | esac |
| 4131 | |
| 4132 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 4133 | # metacharacters that are still active within double-quoted strings. |
| 4134 | Xsed='sed -e s/^X//' |
| 4135 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 4136 | |
| 4137 | # Same as above, but do not quote variable references. |
| 4138 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 4139 | |
| 4140 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 4141 | # double_quote_subst'ed string. |
| 4142 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 4143 | |
| 4144 | # Constants: |
| 4145 | rm="rm -f" |
| 4146 | |
| 4147 | # Global variables: |
| 4148 | default_ofile=libtool |
| 4149 | can_build_shared=yes |
| 4150 | |
| 4151 | # All known linkers require a `.a' archive for static linking (except M$VC, |
| 4152 | # which needs '.lib'). |
| 4153 | libext=a |
| 4154 | ltmain="$ac_aux_dir/ltmain.sh" |
| 4155 | ofile="$default_ofile" |
| 4156 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 4157 | need_locks="$enable_libtool_lock" |
| 4158 | |
| 4159 | old_CC="$CC" |
| 4160 | old_CFLAGS="$CFLAGS" |
| 4161 | |
| 4162 | # Set sane defaults for various variables |
| 4163 | test -z "$AR" && AR=ar |
| 4164 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 4165 | test -z "$AS" && AS=as |
| 4166 | test -z "$CC" && CC=cc |
| 4167 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 4168 | test -z "$LD" && LD=ld |
| 4169 | test -z "$LN_S" && LN_S="ln -s" |
| 4170 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 4171 | test -z "$NM" && NM=nm |
| 4172 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 4173 | test -z "$RANLIB" && RANLIB=: |
| 4174 | test -z "$STRIP" && STRIP=: |
| 4175 | test -z "$ac_objext" && ac_objext=o |
| 4176 | |
| 4177 | if test x"$host" != x"$build"; then |
| 4178 | ac_tool_prefix=${host_alias}- |
| 4179 | else |
| 4180 | ac_tool_prefix= |
| 4181 | fi |
| 4182 | |
| 4183 | # Transform linux* to *-*-linux-gnu*, to support old configure scripts. |
| 4184 | case $host_os in |
| 4185 | linux-gnu*) ;; |
| 4186 | linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` |
| 4187 | esac |
| 4188 | |
| 4189 | case $host_os in |
| 4190 | aix3*) |
| 4191 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 4192 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 4193 | # vanish in a puff of smoke. |
| 4194 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 4195 | COLLECT_NAMES= |
| 4196 | export COLLECT_NAMES |
| 4197 | fi |
| 4198 | ;; |
| 4199 | esac |
| 4200 | |
| 4201 | # Determine commands to create old-style static archives. |
| 4202 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 4203 | old_postinstall_cmds='chmod 644 $oldlib' |
| 4204 | old_postuninstall_cmds= |
| 4205 | |
| 4206 | if test -n "$RANLIB"; then |
| 4207 | case $host_os in |
| 4208 | openbsd*) |
| 4209 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
| 4210 | ;; |
| 4211 | *) |
| 4212 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
| 4213 | ;; |
| 4214 | esac |
| 4215 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 4216 | fi |
| 4217 | |
| 4218 | # Allow CC to be a program name with arguments. |
| 4219 | set dummy $CC |
| 4220 | compiler="$2" |
| 4221 | |
| 4222 | echo "$as_me:$LINENO: checking for objdir" >&5 |
| 4223 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| 4224 | rm -f .libs 2>/dev/null |
| 4225 | mkdir .libs 2>/dev/null |
| 4226 | if test -d .libs; then |
| 4227 | objdir=.libs |
| 4228 | else |
| 4229 | # MS-DOS does not allow filenames that begin with a dot. |
| 4230 | objdir=_libs |
| 4231 | fi |
| 4232 | rmdir .libs 2>/dev/null |
| 4233 | echo "$as_me:$LINENO: result: $objdir" >&5 |
| 4234 | echo "${ECHO_T}$objdir" >&6 |
| 4235 | |
| 4236 | |
| 4237 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4238 | # Check whether --with-pic or --without-pic was given. |
| 4239 | if test "${with_pic+set}" = set; then |
| 4240 | withval="$with_pic" |
| 4241 | pic_mode="$withval" |
| 4242 | else |
| 4243 | pic_mode=default |
| 4244 | fi; |
| 4245 | test -z "$pic_mode" && pic_mode=default |
| 4246 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4247 | # We assume here that the value for lt_cv_prog_cc_pic will not be cached |
| 4248 | # in isolation, and that seeing it set (from the cache) indicates that |
| 4249 | # the associated values are set (in the cache) correctly too. |
| 4250 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4251 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4252 | if test "${lt_cv_prog_cc_pic+set}" = set; then |
| 4253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4254 | else |
| 4255 | lt_cv_prog_cc_pic= |
| 4256 | lt_cv_prog_cc_shlib= |
| 4257 | lt_cv_prog_cc_wl= |
| 4258 | lt_cv_prog_cc_static= |
| 4259 | lt_cv_prog_cc_no_builtin= |
| 4260 | lt_cv_prog_cc_can_build_shared=$can_build_shared |
| 4261 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4262 | if test "$GCC" = yes; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4263 | lt_cv_prog_cc_wl='-Wl,' |
| 4264 | lt_cv_prog_cc_static='-static' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4265 | |
| 4266 | case $host_os in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4267 | aix*) |
| 4268 | # Below there is a dirty hack to force normal static linking with -ldl |
| 4269 | # The problem is because libdl dynamically linked with both libc and |
| 4270 | # libC (AIX C++ library), which obviously doesn't included in libraries |
| 4271 | # list by gcc. This cause undefined symbols with -static flags. |
| 4272 | # This hack allows C programs to be linked with "-static -ldl", but |
| 4273 | # not sure about C++ programs. |
| 4274 | lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4275 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4276 | amigaos*) |
| 4277 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 4278 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 4279 | # like `-m68040'. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4280 | lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4281 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4282 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4283 | # PIC is the default for these OSes. |
| 4284 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4285 | darwin* | rhapsody*) |
| 4286 | # PIC is the default on this platform |
| 4287 | # Common symbols not allowed in MH_DYLIB files |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4288 | lt_cv_prog_cc_pic='-fno-common' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4289 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4290 | cygwin* | mingw* | pw32* | os2*) |
| 4291 | # This hack is so that the source file can tell whether it is being |
| 4292 | # built for inclusion in a dll (and should export symbols for example). |
| 4293 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4294 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4295 | sysv4*MP*) |
| 4296 | if test -d /usr/nec; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4297 | lt_cv_prog_cc_pic=-Kconform_pic |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4298 | fi |
| 4299 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4300 | *) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4301 | lt_cv_prog_cc_pic='-fPIC' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4302 | ;; |
| 4303 | esac |
| 4304 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4305 | # PORTME Check for PIC flags for the system compiler. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4306 | case $host_os in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4307 | aix3* | aix4* | aix5*) |
| 4308 | lt_cv_prog_cc_wl='-Wl,' |
| 4309 | # All AIX code is PIC. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4310 | if test "$host_cpu" = ia64; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4311 | # AIX 5 now supports IA64 processor |
| 4312 | lt_cv_prog_cc_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4313 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4314 | lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4315 | fi |
| 4316 | ;; |
| 4317 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4318 | hpux9* | hpux10* | hpux11*) |
| 4319 | # Is there a better lt_cv_prog_cc_static that works with the bundled CC? |
| 4320 | lt_cv_prog_cc_wl='-Wl,' |
| 4321 | lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" |
| 4322 | lt_cv_prog_cc_pic='+Z' |
| 4323 | ;; |
| 4324 | |
| 4325 | irix5* | irix6* | nonstopux*) |
| 4326 | lt_cv_prog_cc_wl='-Wl,' |
| 4327 | lt_cv_prog_cc_static='-non_shared' |
| 4328 | # PIC (with -KPIC) is the default. |
| 4329 | ;; |
| 4330 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4331 | cygwin* | mingw* | pw32* | os2*) |
| 4332 | # This hack is so that the source file can tell whether it is being |
| 4333 | # built for inclusion in a dll (and should export symbols for example). |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4334 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4335 | ;; |
| 4336 | |
| 4337 | newsos6) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4338 | lt_cv_prog_cc_pic='-KPIC' |
| 4339 | lt_cv_prog_cc_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4340 | ;; |
| 4341 | |
| 4342 | osf3* | osf4* | osf5*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4343 | # All OSF/1 code is PIC. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4344 | lt_cv_prog_cc_wl='-Wl,' |
| 4345 | lt_cv_prog_cc_static='-non_shared' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4346 | ;; |
| 4347 | |
| 4348 | sco3.2v5*) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4349 | lt_cv_prog_cc_pic='-Kpic' |
| 4350 | lt_cv_prog_cc_static='-dn' |
| 4351 | lt_cv_prog_cc_shlib='-belf' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4352 | ;; |
| 4353 | |
| 4354 | solaris*) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4355 | lt_cv_prog_cc_pic='-KPIC' |
| 4356 | lt_cv_prog_cc_static='-Bstatic' |
| 4357 | lt_cv_prog_cc_wl='-Wl,' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4358 | ;; |
| 4359 | |
| 4360 | sunos4*) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4361 | lt_cv_prog_cc_pic='-PIC' |
| 4362 | lt_cv_prog_cc_static='-Bstatic' |
| 4363 | lt_cv_prog_cc_wl='-Qoption ld ' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4364 | ;; |
| 4365 | |
| 4366 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4367 | lt_cv_prog_cc_pic='-KPIC' |
| 4368 | lt_cv_prog_cc_static='-Bstatic' |
| 4369 | lt_cv_prog_cc_wl='-Wl,' |
| 4370 | ;; |
| 4371 | |
| 4372 | uts4*) |
| 4373 | lt_cv_prog_cc_pic='-pic' |
| 4374 | lt_cv_prog_cc_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4375 | ;; |
| 4376 | |
| 4377 | sysv4*MP*) |
| 4378 | if test -d /usr/nec ;then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4379 | lt_cv_prog_cc_pic='-Kconform_pic' |
| 4380 | lt_cv_prog_cc_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4381 | fi |
| 4382 | ;; |
| 4383 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4384 | *) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4385 | lt_cv_prog_cc_can_build_shared=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4386 | ;; |
| 4387 | esac |
| 4388 | fi |
| 4389 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4390 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4391 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4392 | if test -z "$lt_cv_prog_cc_pic"; then |
| 4393 | echo "$as_me:$LINENO: result: none" >&5 |
| 4394 | echo "${ECHO_T}none" >&6 |
| 4395 | else |
| 4396 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5 |
| 4397 | echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6 |
| 4398 | |
| 4399 | # Check to make sure the pic_flag actually works. |
| 4400 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 |
| 4401 | echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6 |
| 4402 | if test "${lt_cv_prog_cc_pic_works+set}" = set; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4404 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4405 | save_CFLAGS="$CFLAGS" |
| 4406 | CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" |
| 4407 | cat >conftest.$ac_ext <<_ACEOF |
| 4408 | #line $LINENO "configure" |
| 4409 | /* confdefs.h. */ |
| 4410 | _ACEOF |
| 4411 | cat confdefs.h >>conftest.$ac_ext |
| 4412 | cat >>conftest.$ac_ext <<_ACEOF |
| 4413 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4414 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4415 | int |
| 4416 | main () |
| 4417 | { |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4418 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4419 | ; |
| 4420 | return 0; |
| 4421 | } |
| 4422 | _ACEOF |
| 4423 | rm -f conftest.$ac_objext |
| 4424 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4425 | (eval $ac_compile) 2>&5 |
| 4426 | ac_status=$? |
| 4427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4428 | (exit $ac_status); } && |
| 4429 | { ac_try='test -s conftest.$ac_objext' |
| 4430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4431 | (eval $ac_try) 2>&5 |
| 4432 | ac_status=$? |
| 4433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4434 | (exit $ac_status); }; }; then |
| 4435 | case $host_os in |
| 4436 | hpux9* | hpux10* | hpux11*) |
| 4437 | # On HP-UX, both CC and GCC only warn that PIC is supported... then |
| 4438 | # they create non-PIC objects. So, if there were any warnings, we |
| 4439 | # assume that PIC is not supported. |
| 4440 | if test -s conftest.err; then |
| 4441 | lt_cv_prog_cc_pic_works=no |
| 4442 | else |
| 4443 | lt_cv_prog_cc_pic_works=yes |
| 4444 | fi |
| 4445 | ;; |
| 4446 | *) |
| 4447 | lt_cv_prog_cc_pic_works=yes |
| 4448 | ;; |
| 4449 | esac |
| 4450 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4451 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4452 | echo "$as_me: failed program was:" >&5 |
| 4453 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4454 | |
| 4455 | lt_cv_prog_cc_pic_works=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4456 | |
| 4457 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4458 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4459 | CFLAGS="$save_CFLAGS" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4460 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4461 | fi |
| 4462 | |
| 4463 | |
| 4464 | if test "X$lt_cv_prog_cc_pic_works" = Xno; then |
| 4465 | lt_cv_prog_cc_pic= |
| 4466 | lt_cv_prog_cc_can_build_shared=no |
| 4467 | else |
| 4468 | lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" |
| 4469 | fi |
| 4470 | |
| 4471 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5 |
| 4472 | echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6 |
| 4473 | fi |
| 4474 | |
| 4475 | # Check for any special shared library compilation flags. |
| 4476 | if test -n "$lt_cv_prog_cc_shlib"; then |
| 4477 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5 |
| 4478 | echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;} |
| 4479 | if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : |
| 4480 | else |
| 4481 | { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
| 4482 | echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
| 4483 | lt_cv_prog_cc_can_build_shared=no |
| 4484 | fi |
| 4485 | fi |
| 4486 | |
| 4487 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 |
| 4488 | echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 |
| 4489 | if test "${lt_cv_prog_cc_static_works+set}" = set; then |
| 4490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4491 | else |
| 4492 | lt_cv_prog_cc_static_works=no |
| 4493 | save_LDFLAGS="$LDFLAGS" |
| 4494 | LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" |
| 4495 | cat >conftest.$ac_ext <<_ACEOF |
| 4496 | #line $LINENO "configure" |
| 4497 | /* confdefs.h. */ |
| 4498 | _ACEOF |
| 4499 | cat confdefs.h >>conftest.$ac_ext |
| 4500 | cat >>conftest.$ac_ext <<_ACEOF |
| 4501 | /* end confdefs.h. */ |
| 4502 | |
| 4503 | int |
| 4504 | main () |
| 4505 | { |
| 4506 | |
| 4507 | ; |
| 4508 | return 0; |
| 4509 | } |
| 4510 | _ACEOF |
| 4511 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4512 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4513 | (eval $ac_link) 2>&5 |
| 4514 | ac_status=$? |
| 4515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4516 | (exit $ac_status); } && |
| 4517 | { ac_try='test -s conftest$ac_exeext' |
| 4518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4519 | (eval $ac_try) 2>&5 |
| 4520 | ac_status=$? |
| 4521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4522 | (exit $ac_status); }; }; then |
| 4523 | lt_cv_prog_cc_static_works=yes |
| 4524 | else |
| 4525 | echo "$as_me: failed program was:" >&5 |
| 4526 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4527 | |
| 4528 | fi |
| 4529 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4530 | LDFLAGS="$save_LDFLAGS" |
| 4531 | |
| 4532 | fi |
| 4533 | |
| 4534 | |
| 4535 | # Belt *and* braces to stop my trousers falling down: |
| 4536 | test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= |
| 4537 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5 |
| 4538 | echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6 |
| 4539 | |
| 4540 | pic_flag="$lt_cv_prog_cc_pic" |
| 4541 | special_shlib_compile_flags="$lt_cv_prog_cc_shlib" |
| 4542 | wl="$lt_cv_prog_cc_wl" |
| 4543 | link_static_flag="$lt_cv_prog_cc_static" |
| 4544 | no_builtin_flag="$lt_cv_prog_cc_no_builtin" |
| 4545 | can_build_shared="$lt_cv_prog_cc_can_build_shared" |
| 4546 | |
| 4547 | |
| 4548 | # Check to see if options -o and -c are simultaneously supported by compiler |
| 4549 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4550 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4551 | if test "${lt_cv_compiler_c_o+set}" = set; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4553 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4554 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4555 | $rm -r conftest 2>/dev/null |
| 4556 | mkdir conftest |
| 4557 | cd conftest |
| 4558 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 4559 | mkdir out |
| 4560 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 4561 | # that will create temporary files in the current directory regardless of |
| 4562 | # the output directory. Thus, making CWD read-only will cause this test |
| 4563 | # to fail, enabling locking or at least warning the user not to do parallel |
| 4564 | # builds. |
| 4565 | chmod -w . |
| 4566 | save_CFLAGS="$CFLAGS" |
| 4567 | CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" |
| 4568 | compiler_c_o=no |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 4569 | if { (eval echo configure:4568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4570 | # The compiler can only warn and ignore the option if not recognized |
| 4571 | # So say no if there are warnings |
| 4572 | if test -s out/conftest.err; then |
| 4573 | lt_cv_compiler_c_o=no |
| 4574 | else |
| 4575 | lt_cv_compiler_c_o=yes |
| 4576 | fi |
| 4577 | else |
| 4578 | # Append any errors to the config.log. |
| 4579 | cat out/conftest.err 1>&5 |
| 4580 | lt_cv_compiler_c_o=no |
| 4581 | fi |
| 4582 | CFLAGS="$save_CFLAGS" |
| 4583 | chmod u+w . |
| 4584 | $rm conftest* out/* |
| 4585 | rmdir out |
| 4586 | cd .. |
| 4587 | rmdir conftest |
| 4588 | $rm -r conftest 2>/dev/null |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4589 | |
| 4590 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4591 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4592 | compiler_c_o=$lt_cv_compiler_c_o |
| 4593 | echo "$as_me:$LINENO: result: $compiler_c_o" >&5 |
| 4594 | echo "${ECHO_T}$compiler_c_o" >&6 |
| 4595 | |
| 4596 | if test x"$compiler_c_o" = x"yes"; then |
| 4597 | # Check to see if we can write to a .lo |
| 4598 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5 |
| 4599 | echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6 |
| 4600 | if test "${lt_cv_compiler_o_lo+set}" = set; then |
| 4601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4602 | else |
| 4603 | |
| 4604 | lt_cv_compiler_o_lo=no |
| 4605 | save_CFLAGS="$CFLAGS" |
| 4606 | CFLAGS="$CFLAGS -c -o conftest.lo" |
| 4607 | save_objext="$ac_objext" |
| 4608 | ac_objext=lo |
| 4609 | cat >conftest.$ac_ext <<_ACEOF |
| 4610 | #line $LINENO "configure" |
| 4611 | /* confdefs.h. */ |
| 4612 | _ACEOF |
| 4613 | cat confdefs.h >>conftest.$ac_ext |
| 4614 | cat >>conftest.$ac_ext <<_ACEOF |
| 4615 | /* end confdefs.h. */ |
| 4616 | |
| 4617 | int |
| 4618 | main () |
| 4619 | { |
| 4620 | int some_variable = 0; |
| 4621 | ; |
| 4622 | return 0; |
| 4623 | } |
| 4624 | _ACEOF |
| 4625 | rm -f conftest.$ac_objext |
| 4626 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4627 | (eval $ac_compile) 2>&5 |
| 4628 | ac_status=$? |
| 4629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4630 | (exit $ac_status); } && |
| 4631 | { ac_try='test -s conftest.$ac_objext' |
| 4632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4633 | (eval $ac_try) 2>&5 |
| 4634 | ac_status=$? |
| 4635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4636 | (exit $ac_status); }; }; then |
| 4637 | # The compiler can only warn and ignore the option if not recognized |
| 4638 | # So say no if there are warnings |
| 4639 | if test -s conftest.err; then |
| 4640 | lt_cv_compiler_o_lo=no |
| 4641 | else |
| 4642 | lt_cv_compiler_o_lo=yes |
| 4643 | fi |
| 4644 | |
| 4645 | else |
| 4646 | echo "$as_me: failed program was:" >&5 |
| 4647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4648 | |
| 4649 | fi |
| 4650 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4651 | ac_objext="$save_objext" |
| 4652 | CFLAGS="$save_CFLAGS" |
| 4653 | |
| 4654 | fi |
| 4655 | |
| 4656 | compiler_o_lo=$lt_cv_compiler_o_lo |
| 4657 | echo "$as_me:$LINENO: result: $compiler_o_lo" >&5 |
| 4658 | echo "${ECHO_T}$compiler_o_lo" >&6 |
| 4659 | else |
| 4660 | compiler_o_lo=no |
| 4661 | fi |
| 4662 | |
| 4663 | # Check to see if we can do hard links to lock some files if needed |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4664 | hard_links="nottested" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4665 | if test "$compiler_c_o" = no && test "$need_locks" != no; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4666 | # do not overwrite the value of need_locks provided by the user |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4667 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4668 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 4669 | hard_links=yes |
| 4670 | $rm conftest* |
| 4671 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 4672 | touch conftest.a |
| 4673 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 4674 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4675 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4676 | echo "${ECHO_T}$hard_links" >&6 |
| 4677 | if test "$hard_links" = no; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4678 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4679 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 4680 | need_locks=warn |
| 4681 | fi |
| 4682 | else |
| 4683 | need_locks=no |
| 4684 | fi |
| 4685 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4686 | if test "$GCC" = yes; then |
| 4687 | # Check to see if options -fno-rtti -fno-exceptions are supported by compiler |
| 4688 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 4689 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 4690 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 4691 | save_CFLAGS="$CFLAGS" |
| 4692 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" |
| 4693 | compiler_rtti_exceptions=no |
| 4694 | cat >conftest.$ac_ext <<_ACEOF |
| 4695 | #line $LINENO "configure" |
| 4696 | /* confdefs.h. */ |
| 4697 | _ACEOF |
| 4698 | cat confdefs.h >>conftest.$ac_ext |
| 4699 | cat >>conftest.$ac_ext <<_ACEOF |
| 4700 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4701 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4702 | int |
| 4703 | main () |
| 4704 | { |
| 4705 | int some_variable = 0; |
| 4706 | ; |
| 4707 | return 0; |
| 4708 | } |
| 4709 | _ACEOF |
| 4710 | rm -f conftest.$ac_objext |
| 4711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4712 | (eval $ac_compile) 2>&5 |
| 4713 | ac_status=$? |
| 4714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4715 | (exit $ac_status); } && |
| 4716 | { ac_try='test -s conftest.$ac_objext' |
| 4717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4718 | (eval $ac_try) 2>&5 |
| 4719 | ac_status=$? |
| 4720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4721 | (exit $ac_status); }; }; then |
| 4722 | # The compiler can only warn and ignore the option if not recognized |
| 4723 | # So say no if there are warnings |
| 4724 | if test -s conftest.err; then |
| 4725 | compiler_rtti_exceptions=no |
| 4726 | else |
| 4727 | compiler_rtti_exceptions=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4728 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4729 | |
| 4730 | else |
| 4731 | echo "$as_me: failed program was:" >&5 |
| 4732 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4733 | |
| 4734 | fi |
| 4735 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4736 | CFLAGS="$save_CFLAGS" |
| 4737 | echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5 |
| 4738 | echo "${ECHO_T}$compiler_rtti_exceptions" >&6 |
| 4739 | |
| 4740 | if test "$compiler_rtti_exceptions" = "yes"; then |
| 4741 | no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' |
| 4742 | else |
| 4743 | no_builtin_flag=' -fno-builtin' |
| 4744 | fi |
| 4745 | fi |
| 4746 | |
| 4747 | # See if the linker supports building shared libraries. |
| 4748 | echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5 |
| 4749 | echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 4750 | |
| 4751 | allow_undefined_flag= |
| 4752 | no_undefined_flag= |
| 4753 | need_lib_prefix=unknown |
| 4754 | need_version=unknown |
| 4755 | # when you set need_version to no, make sure it does not cause -set_version |
| 4756 | # flags to be left without arguments |
| 4757 | archive_cmds= |
| 4758 | archive_expsym_cmds= |
| 4759 | old_archive_from_new_cmds= |
| 4760 | old_archive_from_expsyms_cmds= |
| 4761 | export_dynamic_flag_spec= |
| 4762 | whole_archive_flag_spec= |
| 4763 | thread_safe_flag_spec= |
| 4764 | hardcode_into_libs=no |
| 4765 | hardcode_libdir_flag_spec= |
| 4766 | hardcode_libdir_separator= |
| 4767 | hardcode_direct=no |
| 4768 | hardcode_minus_L=no |
| 4769 | hardcode_shlibpath_var=unsupported |
| 4770 | runpath_var= |
| 4771 | link_all_deplibs=unknown |
| 4772 | always_export_symbols=no |
| 4773 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 4774 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 4775 | # included in the symbol list |
| 4776 | include_expsyms= |
| 4777 | # exclude_expsyms can be an egrep regular expression of symbols to exclude |
| 4778 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 4779 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 4780 | # as well as any symbol that contains `d'. |
| 4781 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 4782 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 4783 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 4784 | # the symbol is explicitly referenced. Since portable code cannot |
| 4785 | # rely on this symbol name, it's probably fine to never include it in |
| 4786 | # preloaded symbol tables. |
| 4787 | extract_expsyms_cmds= |
| 4788 | |
| 4789 | case $host_os in |
| 4790 | cygwin* | mingw* | pw32*) |
| 4791 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 4792 | # When not using gcc, we currently assume that we are using |
| 4793 | # Microsoft Visual C++. |
| 4794 | if test "$GCC" != yes; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4795 | with_gnu_ld=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4796 | fi |
| 4797 | ;; |
| 4798 | openbsd*) |
| 4799 | with_gnu_ld=no |
| 4800 | ;; |
| 4801 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4802 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4803 | ld_shlibs=yes |
| 4804 | if test "$with_gnu_ld" = yes; then |
| 4805 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 4806 | wlarc='${wl}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4807 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4808 | # See if GNU ld supports shared libraries. |
| 4809 | case $host_os in |
| 4810 | aix3* | aix4* | aix5*) |
| 4811 | # On AIX, the GNU linker is very broken |
| 4812 | # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. |
| 4813 | ld_shlibs=no |
| 4814 | cat <<EOF 1>&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4815 | |
| 4816 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 4817 | *** to be unable to reliably create shared libraries on AIX. |
| 4818 | *** Therefore, libtool is disabling shared libraries support. If you |
| 4819 | *** really care for shared libraries, you may want to modify your PATH |
| 4820 | *** so that a non-GNU linker is found, and then restart. |
| 4821 | |
| 4822 | EOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4823 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4824 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4825 | amigaos*) |
| 4826 | 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)' |
| 4827 | hardcode_libdir_flag_spec='-L$libdir' |
| 4828 | hardcode_minus_L=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4829 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4830 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 4831 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 4832 | # to version 4, is to share data among multiple programs linked |
| 4833 | # with the same dynamic library. Since this doesn't match the |
| 4834 | # behavior of shared libraries on other platforms, we can use |
| 4835 | # them. |
| 4836 | ld_shlibs=no |
| 4837 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4838 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4839 | beos*) |
| 4840 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4841 | allow_undefined_flag=unsupported |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4842 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 4843 | # support --undefined. This deserves some investigation. FIXME |
| 4844 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 4845 | else |
| 4846 | ld_shlibs=no |
| 4847 | fi |
| 4848 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4849 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4850 | cygwin* | mingw* | pw32*) |
| 4851 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 4852 | # no search path for DLLs. |
| 4853 | hardcode_libdir_flag_spec='-L$libdir' |
| 4854 | allow_undefined_flag=unsupported |
| 4855 | always_export_symbols=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4856 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4857 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ |
| 4858 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ |
| 4859 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ |
| 4860 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ |
| 4861 | else $CC -o impgen impgen.c ; fi)~ |
| 4862 | $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4863 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4864 | old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4865 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4866 | # cygwin and mingw dlls have different entry points and sets of symbols |
| 4867 | # to exclude. |
| 4868 | # FIXME: what about values for MSVC? |
| 4869 | dll_entry=__cygwin_dll_entry@12 |
| 4870 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ |
| 4871 | case $host_os in |
| 4872 | mingw*) |
| 4873 | # mingw values |
| 4874 | dll_entry=_DllMainCRTStartup@12 |
| 4875 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ |
| 4876 | ;; |
| 4877 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4878 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4879 | # mingw and cygwin differ, and it's simplest to just exclude the union |
| 4880 | # of the two symbol sets. |
| 4881 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 |
| 4882 | |
| 4883 | # recent cygwin and mingw systems supply a stub DllMain which the user |
| 4884 | # can override, but on older systems we have to supply one (in ltdll.c) |
| 4885 | if test "x$lt_cv_need_dllmain" = "xyes"; then |
| 4886 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
| 4887 | 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~ |
| 4888 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
| 4889 | else |
| 4890 | ltdll_obj= |
| 4891 | ltdll_cmds= |
| 4892 | fi |
| 4893 | |
| 4894 | # Extract the symbol export list from an `--export-all' def file, |
| 4895 | # then regenerate the def file from the symbol export list, so that |
| 4896 | # the compiled dll only exports the symbol export list. |
| 4897 | # Be careful not to strip the DATA tag left be newer dlltools. |
| 4898 | export_symbols_cmds="$ltdll_cmds"' |
| 4899 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
| 4900 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' |
| 4901 | |
| 4902 | # If the export-symbols file already is a .def file (1st line |
| 4903 | # is EXPORTS), use it as is. |
| 4904 | # If DATA tags from a recent dlltool are present, honour them! |
| 4905 | archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then |
| 4906 | cp $export_symbols $output_objdir/$soname-def; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4907 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4908 | echo EXPORTS > $output_objdir/$soname-def; |
| 4909 | _lt_hint=1; |
| 4910 | cat $export_symbols | while read symbol; do |
| 4911 | set dummy \$symbol; |
| 4912 | case \$# in |
| 4913 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
| 4914 | 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;; |
| 4915 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; |
| 4916 | esac; |
| 4917 | _lt_hint=`expr 1 + \$_lt_hint`; |
| 4918 | done; |
| 4919 | fi~ |
| 4920 | '"$ltdll_cmds"' |
| 4921 | $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~ |
| 4922 | $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~ |
| 4923 | $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~ |
| 4924 | $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~ |
| 4925 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' |
| 4926 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4927 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4928 | netbsd*) |
| 4929 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 4930 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 4931 | wlarc= |
| 4932 | else |
| 4933 | archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 4934 | archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 4935 | fi |
| 4936 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4937 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4938 | solaris* | sysv5*) |
| 4939 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
| 4940 | ld_shlibs=no |
| 4941 | cat <<EOF 1>&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4942 | |
| 4943 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 4944 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 4945 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 4946 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 4947 | *** your PATH or compiler configuration so that the native linker is |
| 4948 | *** used, and then restart. |
| 4949 | |
| 4950 | EOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4951 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 4952 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 4953 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 4954 | else |
| 4955 | ld_shlibs=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4956 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4957 | ;; |
| 4958 | |
| 4959 | sunos4*) |
| 4960 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 4961 | wlarc= |
| 4962 | hardcode_direct=yes |
| 4963 | hardcode_shlibpath_var=no |
| 4964 | ;; |
| 4965 | |
| 4966 | *) |
| 4967 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 4968 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 4969 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 4970 | else |
| 4971 | ld_shlibs=no |
| 4972 | fi |
| 4973 | ;; |
| 4974 | esac |
| 4975 | |
| 4976 | if test "$ld_shlibs" = yes; then |
| 4977 | runpath_var=LD_RUN_PATH |
| 4978 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 4979 | export_dynamic_flag_spec='${wl}--export-dynamic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4980 | case $host_os in |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4981 | cygwin* | mingw* | pw32*) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4982 | # dlltool doesn't understand --whole-archive et. al. |
| 4983 | whole_archive_flag_spec= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4984 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4985 | *) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4986 | # ancient GNU ld didn't support --whole-archive et. al. |
| 4987 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then |
| 4988 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 4989 | else |
| 4990 | whole_archive_flag_spec= |
| 4991 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4992 | ;; |
| 4993 | esac |
| 4994 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4995 | else |
| 4996 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 4997 | case $host_os in |
| 4998 | aix3*) |
| 4999 | allow_undefined_flag=unsupported |
| 5000 | always_export_symbols=yes |
| 5001 | 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' |
| 5002 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 5003 | # are no directories specified by -L. |
| 5004 | hardcode_minus_L=yes |
| 5005 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 5006 | # Neither direct hardcoding nor static linking is supported with a |
| 5007 | # broken collect2. |
| 5008 | hardcode_direct=unsupported |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5009 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5010 | ;; |
| 5011 | |
| 5012 | aix4* | aix5*) |
| 5013 | if test "$host_cpu" = ia64; then |
| 5014 | # On IA64, the linker does run time linking by default, so we don't |
| 5015 | # have to do anything special. |
| 5016 | aix_use_runtimelinking=no |
| 5017 | exp_sym_flag='-Bexport' |
| 5018 | no_entry_flag="" |
| 5019 | else |
| 5020 | aix_use_runtimelinking=no |
| 5021 | |
| 5022 | # Test if we are trying to use run time linking or normal |
| 5023 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 5024 | # need to do runtime linking. |
| 5025 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 5026 | for ld_flag in $LDFLAGS; do |
| 5027 | case $ld_flag in |
| 5028 | *-brtl*) |
| 5029 | aix_use_runtimelinking=yes |
| 5030 | break |
| 5031 | ;; |
| 5032 | esac |
| 5033 | done |
| 5034 | esac |
| 5035 | |
| 5036 | exp_sym_flag='-bexport' |
| 5037 | no_entry_flag='-bnoentry' |
| 5038 | fi |
| 5039 | |
| 5040 | # When large executables or shared objects are built, AIX ld can |
| 5041 | # have problems creating the table of contents. If linking a library |
| 5042 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 5043 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 5044 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 5045 | |
| 5046 | hardcode_direct=yes |
| 5047 | archive_cmds='' |
| 5048 | hardcode_libdir_separator=':' |
| 5049 | if test "$GCC" = yes; then |
| 5050 | case $host_os in aix4.[012]|aix4.[012].*) |
| 5051 | collect2name=`${CC} -print-prog-name=collect2` |
| 5052 | if test -f "$collect2name" && \ |
| 5053 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 5054 | then |
| 5055 | # We have reworked collect2 |
| 5056 | hardcode_direct=yes |
| 5057 | else |
| 5058 | # We have old collect2 |
| 5059 | hardcode_direct=unsupported |
| 5060 | # It fails to find uninstalled libraries when the uninstalled |
| 5061 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 5062 | # to unsupported forces relinking |
| 5063 | hardcode_minus_L=yes |
| 5064 | hardcode_libdir_flag_spec='-L$libdir' |
| 5065 | hardcode_libdir_separator= |
| 5066 | fi |
| 5067 | esac |
| 5068 | |
| 5069 | shared_flag='-shared' |
| 5070 | else |
| 5071 | # not using gcc |
| 5072 | if test "$host_cpu" = ia64; then |
| 5073 | shared_flag='${wl}-G' |
| 5074 | else |
| 5075 | if test "$aix_use_runtimelinking" = yes; then |
| 5076 | shared_flag='${wl}-G' |
| 5077 | else |
| 5078 | shared_flag='${wl}-bM:SRE' |
| 5079 | fi |
| 5080 | fi |
| 5081 | fi |
| 5082 | |
| 5083 | # It seems that -bexpall can do strange things, so it is better to |
| 5084 | # generate a list of symbols to export. |
| 5085 | always_export_symbols=yes |
| 5086 | if test "$aix_use_runtimelinking" = yes; then |
| 5087 | # Warning - without using the other runtime loading flags (-brtl), |
| 5088 | # -berok will link without error, but may produce a broken library. |
| 5089 | allow_undefined_flag='-berok' |
| 5090 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' |
| 5091 | 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" |
| 5092 | else |
| 5093 | if test "$host_cpu" = ia64; then |
| 5094 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 5095 | allow_undefined_flag="-z nodefs" |
| 5096 | 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" |
| 5097 | else |
| 5098 | hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' |
| 5099 | # Warning - without using the other run time loading flags, |
| 5100 | # -berok will link without error, but may produce a broken library. |
| 5101 | allow_undefined_flag='${wl}-berok' |
| 5102 | # This is a bit strange, but is similar to how AIX traditionally builds |
| 5103 | # it's shared libraries. |
| 5104 | 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' |
| 5105 | fi |
| 5106 | fi |
| 5107 | ;; |
| 5108 | |
| 5109 | amigaos*) |
| 5110 | 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)' |
| 5111 | hardcode_libdir_flag_spec='-L$libdir' |
| 5112 | hardcode_minus_L=yes |
| 5113 | # see comment about different semantics on the GNU ld section |
| 5114 | ld_shlibs=no |
| 5115 | ;; |
| 5116 | |
| 5117 | cygwin* | mingw* | pw32*) |
| 5118 | # When not using gcc, we currently assume that we are using |
| 5119 | # Microsoft Visual C++. |
| 5120 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 5121 | # no search path for DLLs. |
| 5122 | hardcode_libdir_flag_spec=' ' |
| 5123 | allow_undefined_flag=unsupported |
| 5124 | # Tell ltmain to make .lib files, not .a files. |
| 5125 | libext=lib |
| 5126 | # FIXME: Setting linknames here is a bad hack. |
| 5127 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 5128 | # The linker will automatically build a .lib file if we build a DLL. |
| 5129 | old_archive_from_new_cmds='true' |
| 5130 | # FIXME: Should let the user specify the lib program. |
| 5131 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 5132 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 5133 | ;; |
| 5134 | |
| 5135 | darwin* | rhapsody*) |
| 5136 | case "$host_os" in |
| 5137 | rhapsody* | darwin1.[012]) |
| 5138 | allow_undefined_flag='-undefined suppress' |
| 5139 | ;; |
| 5140 | *) # Darwin 1.3 on |
| 5141 | allow_undefined_flag='-flat_namespace -undefined suppress' |
| 5142 | ;; |
| 5143 | esac |
| 5144 | # FIXME: Relying on posixy $() will cause problems for |
| 5145 | # cross-compilation, but unfortunately the echo tests do not |
| 5146 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles |
| 5147 | # `"' quotes if we put them in here... so don't! |
| 5148 | 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)' |
| 5149 | # We need to add '_' to the symbols in $export_symbols first |
| 5150 | #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' |
| 5151 | hardcode_direct=yes |
| 5152 | hardcode_shlibpath_var=no |
| 5153 | whole_archive_flag_spec='-all_load $convenience' |
| 5154 | ;; |
| 5155 | |
| 5156 | freebsd1*) |
| 5157 | ld_shlibs=no |
| 5158 | ;; |
| 5159 | |
| 5160 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 5161 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 5162 | # does not break anything, and helps significantly (at the cost of a little |
| 5163 | # extra space). |
| 5164 | freebsd2.2*) |
| 5165 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 5166 | hardcode_libdir_flag_spec='-R$libdir' |
| 5167 | hardcode_direct=yes |
| 5168 | hardcode_shlibpath_var=no |
| 5169 | ;; |
| 5170 | |
| 5171 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 5172 | freebsd2*) |
| 5173 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 5174 | hardcode_direct=yes |
| 5175 | hardcode_minus_L=yes |
| 5176 | hardcode_shlibpath_var=no |
| 5177 | ;; |
| 5178 | |
| 5179 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 5180 | freebsd*) |
| 5181 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 5182 | hardcode_libdir_flag_spec='-R$libdir' |
| 5183 | hardcode_direct=yes |
| 5184 | hardcode_shlibpath_var=no |
| 5185 | ;; |
| 5186 | |
| 5187 | hpux9* | hpux10* | hpux11*) |
| 5188 | case $host_os in |
| 5189 | 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' ;; |
| 5190 | *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; |
| 5191 | esac |
| 5192 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 5193 | hardcode_libdir_separator=: |
| 5194 | hardcode_direct=yes |
| 5195 | hardcode_minus_L=yes # Not in the search PATH, but as the default |
| 5196 | # location of the library. |
| 5197 | export_dynamic_flag_spec='${wl}-E' |
| 5198 | ;; |
| 5199 | |
| 5200 | irix5* | irix6* | nonstopux*) |
| 5201 | if test "$GCC" = yes; then |
| 5202 | 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' |
| 5203 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 5204 | else |
| 5205 | 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' |
| 5206 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 5207 | fi |
| 5208 | hardcode_libdir_separator=: |
| 5209 | link_all_deplibs=yes |
| 5210 | ;; |
| 5211 | |
| 5212 | netbsd*) |
| 5213 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 5214 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 5215 | else |
| 5216 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 5217 | fi |
| 5218 | hardcode_libdir_flag_spec='-R$libdir' |
| 5219 | hardcode_direct=yes |
| 5220 | hardcode_shlibpath_var=no |
| 5221 | ;; |
| 5222 | |
| 5223 | newsos6) |
| 5224 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5225 | hardcode_direct=yes |
| 5226 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 5227 | hardcode_libdir_separator=: |
| 5228 | hardcode_shlibpath_var=no |
| 5229 | ;; |
| 5230 | |
| 5231 | openbsd*) |
| 5232 | hardcode_direct=yes |
| 5233 | hardcode_shlibpath_var=no |
| 5234 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 5235 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 5236 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 5237 | export_dynamic_flag_spec='${wl}-E' |
| 5238 | else |
| 5239 | case "$host_os" in |
| 5240 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 5241 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 5242 | hardcode_libdir_flag_spec='-R$libdir' |
| 5243 | ;; |
| 5244 | *) |
| 5245 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 5246 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 5247 | ;; |
| 5248 | esac |
| 5249 | fi |
| 5250 | ;; |
| 5251 | |
| 5252 | os2*) |
| 5253 | hardcode_libdir_flag_spec='-L$libdir' |
| 5254 | hardcode_minus_L=yes |
| 5255 | allow_undefined_flag=unsupported |
| 5256 | 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' |
| 5257 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 5258 | ;; |
| 5259 | |
| 5260 | osf3*) |
| 5261 | if test "$GCC" = yes; then |
| 5262 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 5263 | 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' |
| 5264 | else |
| 5265 | allow_undefined_flag=' -expect_unresolved \*' |
| 5266 | 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' |
| 5267 | fi |
| 5268 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 5269 | hardcode_libdir_separator=: |
| 5270 | ;; |
| 5271 | |
| 5272 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 5273 | if test "$GCC" = yes; then |
| 5274 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 5275 | 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' |
| 5276 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 5277 | else |
| 5278 | allow_undefined_flag=' -expect_unresolved \*' |
| 5279 | 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' |
| 5280 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 5281 | $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' |
| 5282 | |
| 5283 | #Both c and cxx compiler support -rpath directly |
| 5284 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 5285 | fi |
| 5286 | hardcode_libdir_separator=: |
| 5287 | ;; |
| 5288 | |
| 5289 | sco3.2v5*) |
| 5290 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5291 | hardcode_shlibpath_var=no |
| 5292 | runpath_var=LD_RUN_PATH |
| 5293 | hardcode_runpath_var=yes |
| 5294 | export_dynamic_flag_spec='${wl}-Bexport' |
| 5295 | ;; |
| 5296 | |
| 5297 | solaris*) |
| 5298 | # gcc --version < 3.0 without binutils cannot create self contained |
| 5299 | # shared libraries reliably, requiring libgcc.a to resolve some of |
| 5300 | # the object symbols generated in some cases. Libraries that use |
| 5301 | # assert need libgcc.a to resolve __eprintf, for example. Linking |
| 5302 | # a copy of libgcc.a into every shared library to guarantee resolving |
| 5303 | # such symbols causes other problems: According to Tim Van Holder |
| 5304 | # <tim.van.holder@pandora.be>, C++ libraries end up with a separate |
| 5305 | # (to the application) exception stack for one thing. |
| 5306 | no_undefined_flag=' -z defs' |
| 5307 | if test "$GCC" = yes; then |
| 5308 | case `$CC --version 2>/dev/null` in |
| 5309 | [12].*) |
| 5310 | cat <<EOF 1>&2 |
| 5311 | |
| 5312 | *** Warning: Releases of GCC earlier than version 3.0 cannot reliably |
| 5313 | *** create self contained shared libraries on Solaris systems, without |
| 5314 | *** introducing a dependency on libgcc.a. Therefore, libtool is disabling |
| 5315 | *** -no-undefined support, which will at least allow you to build shared |
| 5316 | *** libraries. However, you may find that when you link such libraries |
| 5317 | *** into an application without using GCC, you have to manually add |
| 5318 | *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to |
| 5319 | *** upgrade to a newer version of GCC. Another option is to rebuild your |
| 5320 | *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. |
| 5321 | |
| 5322 | EOF |
| 5323 | no_undefined_flag= |
| 5324 | ;; |
| 5325 | esac |
| 5326 | fi |
| 5327 | # $CC -shared without GNU ld will not create a library from C++ |
| 5328 | # object files and a static libstdc++, better avoid it by now |
| 5329 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5330 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 5331 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 5332 | hardcode_libdir_flag_spec='-R$libdir' |
| 5333 | hardcode_shlibpath_var=no |
| 5334 | case $host_os in |
| 5335 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 5336 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 5337 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 5338 | esac |
| 5339 | link_all_deplibs=yes |
| 5340 | ;; |
| 5341 | |
| 5342 | sunos4*) |
| 5343 | if test "x$host_vendor" = xsequent; then |
| 5344 | # Use $CC to link under sequent, because it throws in some extra .o |
| 5345 | # files that make .init and .fini sections work. |
| 5346 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 5347 | else |
| 5348 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 5349 | fi |
| 5350 | hardcode_libdir_flag_spec='-L$libdir' |
| 5351 | hardcode_direct=yes |
| 5352 | hardcode_minus_L=yes |
| 5353 | hardcode_shlibpath_var=no |
| 5354 | ;; |
| 5355 | |
| 5356 | sysv4) |
| 5357 | case $host_vendor in |
| 5358 | sni) |
| 5359 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5360 | hardcode_direct=yes # is this really true??? |
| 5361 | ;; |
| 5362 | siemens) |
| 5363 | ## LD is ld it makes a PLAMLIB |
| 5364 | ## CC just makes a GrossModule. |
| 5365 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 5366 | reload_cmds='$CC -r -o $output$reload_objs' |
| 5367 | hardcode_direct=no |
| 5368 | ;; |
| 5369 | motorola) |
| 5370 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5371 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 5372 | ;; |
| 5373 | esac |
| 5374 | runpath_var='LD_RUN_PATH' |
| 5375 | hardcode_shlibpath_var=no |
| 5376 | ;; |
| 5377 | |
| 5378 | sysv4.3*) |
| 5379 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5380 | hardcode_shlibpath_var=no |
| 5381 | export_dynamic_flag_spec='-Bexport' |
| 5382 | ;; |
| 5383 | |
| 5384 | sysv5*) |
| 5385 | no_undefined_flag=' -z text' |
| 5386 | # $CC -shared without GNU ld will not create a library from C++ |
| 5387 | # object files and a static libstdc++, better avoid it by now |
| 5388 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5389 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 5390 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 5391 | hardcode_libdir_flag_spec= |
| 5392 | hardcode_shlibpath_var=no |
| 5393 | runpath_var='LD_RUN_PATH' |
| 5394 | ;; |
| 5395 | |
| 5396 | uts4*) |
| 5397 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5398 | hardcode_libdir_flag_spec='-L$libdir' |
| 5399 | hardcode_shlibpath_var=no |
| 5400 | ;; |
| 5401 | |
| 5402 | dgux*) |
| 5403 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5404 | hardcode_libdir_flag_spec='-L$libdir' |
| 5405 | hardcode_shlibpath_var=no |
| 5406 | ;; |
| 5407 | |
| 5408 | sysv4*MP*) |
| 5409 | if test -d /usr/nec; then |
| 5410 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5411 | hardcode_shlibpath_var=no |
| 5412 | runpath_var=LD_RUN_PATH |
| 5413 | hardcode_runpath_var=yes |
| 5414 | ld_shlibs=yes |
| 5415 | fi |
| 5416 | ;; |
| 5417 | |
| 5418 | sysv4.2uw2*) |
| 5419 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 5420 | hardcode_direct=yes |
| 5421 | hardcode_minus_L=no |
| 5422 | hardcode_shlibpath_var=no |
| 5423 | hardcode_runpath_var=yes |
| 5424 | runpath_var=LD_RUN_PATH |
| 5425 | ;; |
| 5426 | |
| 5427 | sysv5uw7* | unixware7*) |
| 5428 | no_undefined_flag='${wl}-z ${wl}text' |
| 5429 | if test "$GCC" = yes; then |
| 5430 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 5431 | else |
| 5432 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 5433 | fi |
| 5434 | runpath_var='LD_RUN_PATH' |
| 5435 | hardcode_shlibpath_var=no |
| 5436 | ;; |
| 5437 | |
| 5438 | *) |
| 5439 | ld_shlibs=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5440 | ;; |
| 5441 | esac |
| 5442 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5443 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 5444 | echo "${ECHO_T}$ld_shlibs" >&6 |
| 5445 | test "$ld_shlibs" = no && can_build_shared=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5446 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5447 | # Check hardcoding attributes. |
| 5448 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5449 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 5450 | hardcode_action= |
| 5451 | if test -n "$hardcode_libdir_flag_spec" || \ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5452 | test -n "$runpath_var"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5453 | |
| 5454 | # We can hardcode non-existant directories. |
| 5455 | if test "$hardcode_direct" != no && |
| 5456 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 5457 | # have to relink, otherwise we might link with an installed library |
| 5458 | # when we should be linking with a yet-to-be-installed one |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5459 | ## test "$hardcode_shlibpath_var" != no && |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5460 | test "$hardcode_minus_L" != no; then |
| 5461 | # Linking always hardcodes the temporary library directory. |
| 5462 | hardcode_action=relink |
| 5463 | else |
| 5464 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 5465 | hardcode_action=immediate |
| 5466 | fi |
| 5467 | else |
| 5468 | # We cannot hardcode anything, or else we can only hardcode existing |
| 5469 | # directories. |
| 5470 | hardcode_action=unsupported |
| 5471 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5472 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5473 | echo "${ECHO_T}$hardcode_action" >&6 |
| 5474 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5475 | striplib= |
| 5476 | old_striplib= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5477 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5478 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 5479 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 5480 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 5481 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5482 | echo "$as_me:$LINENO: result: yes" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5483 | echo "${ECHO_T}yes" >&6 |
| 5484 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5485 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5486 | echo "${ECHO_T}no" >&6 |
| 5487 | fi |
| 5488 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5489 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5490 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 5491 | |
| 5492 | # PORTME Fill in your ld.so characteristics |
| 5493 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5494 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 5495 | library_names_spec= |
| 5496 | libname_spec='lib$name' |
| 5497 | soname_spec= |
| 5498 | postinstall_cmds= |
| 5499 | postuninstall_cmds= |
| 5500 | finish_cmds= |
| 5501 | finish_eval= |
| 5502 | shlibpath_var= |
| 5503 | shlibpath_overrides_runpath=unknown |
| 5504 | version_type=none |
| 5505 | dynamic_linker="$host_os ld.so" |
| 5506 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 5507 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5508 | |
| 5509 | case $host_os in |
| 5510 | aix3*) |
| 5511 | version_type=linux |
| 5512 | library_names_spec='${libname}${release}.so$versuffix $libname.a' |
| 5513 | shlibpath_var=LIBPATH |
| 5514 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5515 | # AIX has no versioning support, so we append a major version to the name. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5516 | soname_spec='${libname}${release}.so$major' |
| 5517 | ;; |
| 5518 | |
| 5519 | aix4* | aix5*) |
| 5520 | version_type=linux |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5521 | need_lib_prefix=no |
| 5522 | need_version=no |
| 5523 | hardcode_into_libs=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5524 | if test "$host_cpu" = ia64; then |
| 5525 | # AIX 5 supports IA64 |
| 5526 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' |
| 5527 | shlibpath_var=LD_LIBRARY_PATH |
| 5528 | else |
| 5529 | # With GCC up to 2.95.x, collect2 would create an import file |
| 5530 | # for dependence libraries. The import file would start with |
| 5531 | # the line `#! .'. This would cause the generated library to |
| 5532 | # depend on `.', always an invalid library. This was fixed in |
| 5533 | # development snapshots of GCC prior to 3.0. |
| 5534 | case $host_os in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5535 | aix4 | aix4.[01] | aix4.[01].*) |
| 5536 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 5537 | echo ' yes ' |
| 5538 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 5539 | : |
| 5540 | else |
| 5541 | can_build_shared=no |
| 5542 | fi |
| 5543 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5544 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5545 | # AIX (on Power*) has no versioning support, so currently we can |
| 5546 | # not hardcode correct soname into executable. Probably we can |
| 5547 | # add versioning support to collect2, so additional links can |
| 5548 | # be useful in future. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5549 | if test "$aix_use_runtimelinking" = yes; then |
| 5550 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 5551 | # instead of lib<name>.a to let people know that these are not |
| 5552 | # typical AIX shared libraries. |
| 5553 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5554 | else |
| 5555 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 5556 | # and later when we are not doing run time linking. |
| 5557 | library_names_spec='${libname}${release}.a $libname.a' |
| 5558 | soname_spec='${libname}${release}.so$major' |
| 5559 | fi |
| 5560 | shlibpath_var=LIBPATH |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5561 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5562 | hardcode_into_libs=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5563 | ;; |
| 5564 | |
| 5565 | amigaos*) |
| 5566 | library_names_spec='$libname.ixlibrary $libname.a' |
| 5567 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 5568 | 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' |
| 5569 | ;; |
| 5570 | |
| 5571 | beos*) |
| 5572 | library_names_spec='${libname}.so' |
| 5573 | dynamic_linker="$host_os ld.so" |
| 5574 | shlibpath_var=LIBRARY_PATH |
| 5575 | ;; |
| 5576 | |
| 5577 | bsdi4*) |
| 5578 | version_type=linux |
| 5579 | need_version=no |
| 5580 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5581 | soname_spec='${libname}${release}.so$major' |
| 5582 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 5583 | shlibpath_var=LD_LIBRARY_PATH |
| 5584 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 5585 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5586 | export_dynamic_flag_spec=-rdynamic |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5587 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 5588 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 5589 | # libtool to hard-code these into programs |
| 5590 | ;; |
| 5591 | |
| 5592 | cygwin* | mingw* | pw32*) |
| 5593 | version_type=windows |
| 5594 | need_version=no |
| 5595 | need_lib_prefix=no |
| 5596 | case $GCC,$host_os in |
| 5597 | yes,cygwin*) |
| 5598 | library_names_spec='$libname.dll.a' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5599 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
| 5600 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ |
| 5601 | dldir=$destdir/`dirname \$dlpath`~ |
| 5602 | test -d \$dldir || mkdir -p \$dldir~ |
| 5603 | $install_prog .libs/$dlname \$dldir/$dlname' |
| 5604 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 5605 | dlpath=$dir/\$dldll~ |
| 5606 | $rm \$dlpath' |
| 5607 | ;; |
| 5608 | yes,mingw*) |
| 5609 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5610 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5611 | ;; |
| 5612 | yes,pw32*) |
| 5613 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' |
| 5614 | ;; |
| 5615 | *) |
| 5616 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' |
| 5617 | ;; |
| 5618 | esac |
| 5619 | dynamic_linker='Win32 ld.exe' |
| 5620 | # FIXME: first we should search . and the directory the executable is in |
| 5621 | shlibpath_var=PATH |
| 5622 | ;; |
| 5623 | |
| 5624 | darwin* | rhapsody*) |
| 5625 | dynamic_linker="$host_os dyld" |
| 5626 | version_type=darwin |
| 5627 | need_lib_prefix=no |
| 5628 | need_version=no |
| 5629 | # FIXME: Relying on posixy $() will cause problems for |
| 5630 | # cross-compilation, but unfortunately the echo tests do not |
| 5631 | # yet detect zsh echo's removal of \ escapes. |
| 5632 | 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)' |
| 5633 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' |
| 5634 | shlibpath_overrides_runpath=yes |
| 5635 | shlibpath_var=DYLD_LIBRARY_PATH |
| 5636 | ;; |
| 5637 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5638 | freebsd1*) |
| 5639 | dynamic_linker=no |
| 5640 | ;; |
| 5641 | |
| 5642 | freebsd*-gnu*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5643 | version_type=linux |
| 5644 | need_lib_prefix=no |
| 5645 | need_version=no |
| 5646 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5647 | soname_spec='${libname}${release}.so$major' |
| 5648 | shlibpath_var=LD_LIBRARY_PATH |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5649 | shlibpath_overrides_runpath=no |
| 5650 | hardcode_into_libs=yes |
| 5651 | dynamic_linker='GNU/FreeBSD ld.so' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5652 | ;; |
| 5653 | |
| 5654 | freebsd*) |
| 5655 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 5656 | version_type=freebsd-$objformat |
| 5657 | case $version_type in |
| 5658 | freebsd-elf*) |
| 5659 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
| 5660 | need_version=no |
| 5661 | need_lib_prefix=no |
| 5662 | ;; |
| 5663 | freebsd-*) |
| 5664 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' |
| 5665 | need_version=yes |
| 5666 | ;; |
| 5667 | esac |
| 5668 | shlibpath_var=LD_LIBRARY_PATH |
| 5669 | case $host_os in |
| 5670 | freebsd2*) |
| 5671 | shlibpath_overrides_runpath=yes |
| 5672 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5673 | *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5674 | shlibpath_overrides_runpath=no |
| 5675 | hardcode_into_libs=yes |
| 5676 | ;; |
| 5677 | esac |
| 5678 | ;; |
| 5679 | |
| 5680 | gnu*) |
| 5681 | version_type=linux |
| 5682 | need_lib_prefix=no |
| 5683 | need_version=no |
| 5684 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' |
| 5685 | soname_spec='${libname}${release}.so$major' |
| 5686 | shlibpath_var=LD_LIBRARY_PATH |
| 5687 | hardcode_into_libs=yes |
| 5688 | ;; |
| 5689 | |
| 5690 | hpux9* | hpux10* | hpux11*) |
| 5691 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 5692 | # link against other versions. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5693 | dynamic_linker="$host_os dld.sl" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5694 | version_type=sunos |
| 5695 | need_lib_prefix=no |
| 5696 | need_version=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5697 | shlibpath_var=SHLIB_PATH |
| 5698 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 5699 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' |
| 5700 | soname_spec='${libname}${release}.sl$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5701 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 5702 | postinstall_cmds='chmod 555 $lib' |
| 5703 | ;; |
| 5704 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5705 | irix5* | irix6* | nonstopux*) |
| 5706 | case $host_os in |
| 5707 | nonstopux*) version_type=nonstopux ;; |
| 5708 | *) version_type=irix ;; |
| 5709 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5710 | need_lib_prefix=no |
| 5711 | need_version=no |
| 5712 | soname_spec='${libname}${release}.so$major' |
| 5713 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
| 5714 | case $host_os in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5715 | irix5* | nonstopux*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5716 | libsuff= shlibsuff= |
| 5717 | ;; |
| 5718 | *) |
| 5719 | case $LD in # libtool.m4 will add one of these switches to LD |
| 5720 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; |
| 5721 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 5722 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 5723 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 5724 | esac |
| 5725 | ;; |
| 5726 | esac |
| 5727 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 5728 | shlibpath_overrides_runpath=no |
| 5729 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 5730 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 5731 | ;; |
| 5732 | |
| 5733 | # No shared lib support for Linux oldld, aout, or coff. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5734 | linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5735 | dynamic_linker=no |
| 5736 | ;; |
| 5737 | |
| 5738 | # This must be Linux ELF. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5739 | linux-gnu*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5740 | version_type=linux |
| 5741 | need_lib_prefix=no |
| 5742 | need_version=no |
| 5743 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5744 | soname_spec='${libname}${release}.so$major' |
| 5745 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 5746 | shlibpath_var=LD_LIBRARY_PATH |
| 5747 | shlibpath_overrides_runpath=no |
| 5748 | # This implies no fast_install, which is unacceptable. |
| 5749 | # Some rework will be needed to allow for fast_install |
| 5750 | # before this can be enabled. |
| 5751 | hardcode_into_libs=yes |
| 5752 | |
| 5753 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 5754 | # powerpc, because MkLinux only supported shared libraries with the |
| 5755 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 5756 | # most powerpc-linux boxes support dynamic linking these days and |
| 5757 | # people can always --disable-shared, the test was removed, and we |
| 5758 | # assume the GNU/Linux dynamic linker is in use. |
| 5759 | dynamic_linker='GNU/Linux ld.so' |
| 5760 | ;; |
| 5761 | |
| 5762 | netbsd*) |
| 5763 | version_type=sunos |
| 5764 | need_lib_prefix=no |
| 5765 | need_version=no |
| 5766 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 5767 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 5768 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 5769 | dynamic_linker='NetBSD (a.out) ld.so' |
| 5770 | else |
| 5771 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' |
| 5772 | soname_spec='${libname}${release}.so$major' |
| 5773 | dynamic_linker='NetBSD ld.elf_so' |
| 5774 | fi |
| 5775 | shlibpath_var=LD_LIBRARY_PATH |
| 5776 | shlibpath_overrides_runpath=yes |
| 5777 | hardcode_into_libs=yes |
| 5778 | ;; |
| 5779 | |
| 5780 | newsos6) |
| 5781 | version_type=linux |
| 5782 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5783 | shlibpath_var=LD_LIBRARY_PATH |
| 5784 | shlibpath_overrides_runpath=yes |
| 5785 | ;; |
| 5786 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5787 | openbsd*) |
| 5788 | version_type=sunos |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5789 | need_lib_prefix=no |
| 5790 | need_version=no |
| 5791 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 5792 | case "$host_os" in |
| 5793 | openbsd2.[89] | openbsd2.[89].*) |
| 5794 | shlibpath_overrides_runpath=no |
| 5795 | ;; |
| 5796 | *) |
| 5797 | shlibpath_overrides_runpath=yes |
| 5798 | ;; |
| 5799 | esac |
| 5800 | else |
| 5801 | shlibpath_overrides_runpath=yes |
| 5802 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5803 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 5804 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 5805 | shlibpath_var=LD_LIBRARY_PATH |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5806 | ;; |
| 5807 | |
| 5808 | os2*) |
| 5809 | libname_spec='$name' |
| 5810 | need_lib_prefix=no |
| 5811 | library_names_spec='$libname.dll $libname.a' |
| 5812 | dynamic_linker='OS/2 ld.exe' |
| 5813 | shlibpath_var=LIBPATH |
| 5814 | ;; |
| 5815 | |
| 5816 | osf3* | osf4* | osf5*) |
| 5817 | version_type=osf |
| 5818 | need_version=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5819 | need_lib_prefix=no |
| 5820 | soname_spec='${libname}${release}.so$major' |
| 5821 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5822 | shlibpath_var=LD_LIBRARY_PATH |
| 5823 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 5824 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5825 | hardcode_into_libs=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5826 | ;; |
| 5827 | |
| 5828 | sco3.2v5*) |
| 5829 | version_type=osf |
| 5830 | soname_spec='${libname}${release}.so$major' |
| 5831 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5832 | shlibpath_var=LD_LIBRARY_PATH |
| 5833 | ;; |
| 5834 | |
| 5835 | solaris*) |
| 5836 | version_type=linux |
| 5837 | need_lib_prefix=no |
| 5838 | need_version=no |
| 5839 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5840 | soname_spec='${libname}${release}.so$major' |
| 5841 | shlibpath_var=LD_LIBRARY_PATH |
| 5842 | shlibpath_overrides_runpath=yes |
| 5843 | hardcode_into_libs=yes |
| 5844 | # ldd complains unless libraries are executable |
| 5845 | postinstall_cmds='chmod +x $lib' |
| 5846 | ;; |
| 5847 | |
| 5848 | sunos4*) |
| 5849 | version_type=sunos |
| 5850 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 5851 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 5852 | shlibpath_var=LD_LIBRARY_PATH |
| 5853 | shlibpath_overrides_runpath=yes |
| 5854 | if test "$with_gnu_ld" = yes; then |
| 5855 | need_lib_prefix=no |
| 5856 | fi |
| 5857 | need_version=yes |
| 5858 | ;; |
| 5859 | |
| 5860 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 5861 | version_type=linux |
| 5862 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5863 | soname_spec='${libname}${release}.so$major' |
| 5864 | shlibpath_var=LD_LIBRARY_PATH |
| 5865 | case $host_vendor in |
| 5866 | sni) |
| 5867 | shlibpath_overrides_runpath=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5868 | need_lib_prefix=no |
| 5869 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 5870 | runpath_var=LD_RUN_PATH |
| 5871 | ;; |
| 5872 | siemens) |
| 5873 | need_lib_prefix=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5874 | ;; |
| 5875 | motorola) |
| 5876 | need_lib_prefix=no |
| 5877 | need_version=no |
| 5878 | shlibpath_overrides_runpath=no |
| 5879 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 5880 | ;; |
| 5881 | esac |
| 5882 | ;; |
| 5883 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5884 | uts4*) |
| 5885 | version_type=linux |
| 5886 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5887 | soname_spec='${libname}${release}.so$major' |
| 5888 | shlibpath_var=LD_LIBRARY_PATH |
| 5889 | ;; |
| 5890 | |
| 5891 | dgux*) |
| 5892 | version_type=linux |
| 5893 | need_lib_prefix=no |
| 5894 | need_version=no |
| 5895 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5896 | soname_spec='${libname}${release}.so$major' |
| 5897 | shlibpath_var=LD_LIBRARY_PATH |
| 5898 | ;; |
| 5899 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5900 | sysv4*MP*) |
| 5901 | if test -d /usr/nec ;then |
| 5902 | version_type=linux |
| 5903 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' |
| 5904 | soname_spec='$libname.so.$major' |
| 5905 | shlibpath_var=LD_LIBRARY_PATH |
| 5906 | fi |
| 5907 | ;; |
| 5908 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5909 | *) |
| 5910 | dynamic_linker=no |
| 5911 | ;; |
| 5912 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5913 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5914 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 5915 | test "$dynamic_linker" = no && can_build_shared=no |
| 5916 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5917 | # Report the final consequences. |
| 5918 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 5919 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 5920 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 5921 | echo "${ECHO_T}$can_build_shared" >&6 |
| 5922 | |
| 5923 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 5924 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 5925 | test "$can_build_shared" = "no" && enable_shared=no |
| 5926 | |
| 5927 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 5928 | # are all built from PIC. |
| 5929 | case "$host_os" in |
| 5930 | aix3*) |
| 5931 | test "$enable_shared" = yes && enable_static=no |
| 5932 | if test -n "$RANLIB"; then |
| 5933 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 5934 | postinstall_cmds='$RANLIB $lib' |
| 5935 | fi |
| 5936 | ;; |
| 5937 | |
| 5938 | aix4*) |
| 5939 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 5940 | test "$enable_shared" = yes && enable_static=no |
| 5941 | fi |
| 5942 | ;; |
| 5943 | esac |
| 5944 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 5945 | echo "${ECHO_T}$enable_shared" >&6 |
| 5946 | |
| 5947 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 5948 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 5949 | # Make sure either enable_shared or enable_static is yes. |
| 5950 | test "$enable_shared" = yes || enable_static=yes |
| 5951 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 5952 | echo "${ECHO_T}$enable_static" >&6 |
| 5953 | |
| 5954 | if test "$hardcode_action" = relink; then |
| 5955 | # Fast installation is not supported |
| 5956 | enable_fast_install=no |
| 5957 | elif test "$shlibpath_overrides_runpath" = yes || |
| 5958 | test "$enable_shared" = no; then |
| 5959 | # Fast installation is not necessary |
| 5960 | enable_fast_install=needless |
| 5961 | fi |
| 5962 | |
| 5963 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 5964 | if test "$GCC" = yes; then |
| 5965 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 5966 | fi |
| 5967 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5968 | if test "x$enable_dlopen" != xyes; then |
| 5969 | enable_dlopen=unknown |
| 5970 | enable_dlopen_self=unknown |
| 5971 | enable_dlopen_self_static=unknown |
| 5972 | else |
| 5973 | lt_cv_dlopen=no |
| 5974 | lt_cv_dlopen_libs= |
| 5975 | |
| 5976 | case $host_os in |
| 5977 | beos*) |
| 5978 | lt_cv_dlopen="load_add_on" |
| 5979 | lt_cv_dlopen_libs= |
| 5980 | lt_cv_dlopen_self=yes |
| 5981 | ;; |
| 5982 | |
| 5983 | cygwin* | mingw* | pw32*) |
| 5984 | lt_cv_dlopen="LoadLibrary" |
| 5985 | lt_cv_dlopen_libs= |
| 5986 | ;; |
| 5987 | |
| 5988 | *) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5989 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5990 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 5991 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 5992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5993 | else |
| 5994 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5995 | #line $LINENO "configure" |
| 5996 | /* confdefs.h. */ |
| 5997 | _ACEOF |
| 5998 | cat confdefs.h >>conftest.$ac_ext |
| 5999 | cat >>conftest.$ac_ext <<_ACEOF |
| 6000 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6001 | /* System header to define __stub macros and hopefully few prototypes, |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6002 | which can conflict with char shl_load (); below. |
| 6003 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6004 | <limits.h> exists even on freestanding compilers. */ |
| 6005 | #ifdef __STDC__ |
| 6006 | # include <limits.h> |
| 6007 | #else |
| 6008 | # include <assert.h> |
| 6009 | #endif |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6010 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6011 | #ifdef __cplusplus |
| 6012 | extern "C" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6013 | { |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6014 | #endif |
| 6015 | /* We use char because int might match the return type of a gcc2 |
| 6016 | builtin and then its argument prototype would still apply. */ |
| 6017 | char shl_load (); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6018 | /* The GNU C library defines this for functions which it implements |
| 6019 | to always fail with ENOSYS. Some functions are actually named |
| 6020 | something starting with __ and the normal name is an alias. */ |
| 6021 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 6022 | choke me |
| 6023 | #else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6024 | char (*f) () = shl_load; |
| 6025 | #endif |
| 6026 | #ifdef __cplusplus |
| 6027 | } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6028 | #endif |
| 6029 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6030 | int |
| 6031 | main () |
| 6032 | { |
| 6033 | return f != shl_load; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6034 | ; |
| 6035 | return 0; |
| 6036 | } |
| 6037 | _ACEOF |
| 6038 | rm -f conftest.$ac_objext conftest$ac_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6039 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6040 | (eval $ac_link) 2>&5 |
| 6041 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6043 | (exit $ac_status); } && |
| 6044 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6046 | (eval $ac_try) 2>&5 |
| 6047 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6049 | (exit $ac_status); }; }; then |
| 6050 | ac_cv_func_shl_load=yes |
| 6051 | else |
| 6052 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6053 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6054 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6055 | ac_cv_func_shl_load=no |
| 6056 | fi |
| 6057 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6058 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6059 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6060 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 6061 | if test $ac_cv_func_shl_load = yes; then |
| 6062 | lt_cv_dlopen="shl_load" |
| 6063 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6064 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6065 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 6066 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 6067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6068 | else |
| 6069 | ac_check_lib_save_LIBS=$LIBS |
| 6070 | LIBS="-ldld $LIBS" |
| 6071 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6072 | #line $LINENO "configure" |
| 6073 | /* confdefs.h. */ |
| 6074 | _ACEOF |
| 6075 | cat confdefs.h >>conftest.$ac_ext |
| 6076 | cat >>conftest.$ac_ext <<_ACEOF |
| 6077 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6078 | |
| 6079 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6080 | #ifdef __cplusplus |
| 6081 | extern "C" |
| 6082 | #endif |
| 6083 | /* We use char because int might match the return type of a gcc2 |
| 6084 | builtin and then its argument prototype would still apply. */ |
| 6085 | char shl_load (); |
| 6086 | int |
| 6087 | main () |
| 6088 | { |
| 6089 | shl_load (); |
| 6090 | ; |
| 6091 | return 0; |
| 6092 | } |
| 6093 | _ACEOF |
| 6094 | rm -f conftest.$ac_objext conftest$ac_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6095 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6096 | (eval $ac_link) 2>&5 |
| 6097 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6099 | (exit $ac_status); } && |
| 6100 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6102 | (eval $ac_try) 2>&5 |
| 6103 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6105 | (exit $ac_status); }; }; then |
| 6106 | ac_cv_lib_dld_shl_load=yes |
| 6107 | else |
| 6108 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6110 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6111 | ac_cv_lib_dld_shl_load=no |
| 6112 | fi |
| 6113 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6114 | LIBS=$ac_check_lib_save_LIBS |
| 6115 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6116 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6117 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 6118 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 6119 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 6120 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6121 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 6122 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 6123 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 6124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6125 | else |
| 6126 | cat >conftest.$ac_ext <<_ACEOF |
| 6127 | #line $LINENO "configure" |
| 6128 | /* confdefs.h. */ |
| 6129 | _ACEOF |
| 6130 | cat confdefs.h >>conftest.$ac_ext |
| 6131 | cat >>conftest.$ac_ext <<_ACEOF |
| 6132 | /* end confdefs.h. */ |
| 6133 | /* System header to define __stub macros and hopefully few prototypes, |
| 6134 | which can conflict with char dlopen (); below. |
| 6135 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6136 | <limits.h> exists even on freestanding compilers. */ |
| 6137 | #ifdef __STDC__ |
| 6138 | # include <limits.h> |
| 6139 | #else |
| 6140 | # include <assert.h> |
| 6141 | #endif |
| 6142 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6143 | #ifdef __cplusplus |
| 6144 | extern "C" |
| 6145 | { |
| 6146 | #endif |
| 6147 | /* We use char because int might match the return type of a gcc2 |
| 6148 | builtin and then its argument prototype would still apply. */ |
| 6149 | char dlopen (); |
| 6150 | /* The GNU C library defines this for functions which it implements |
| 6151 | to always fail with ENOSYS. Some functions are actually named |
| 6152 | something starting with __ and the normal name is an alias. */ |
| 6153 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 6154 | choke me |
| 6155 | #else |
| 6156 | char (*f) () = dlopen; |
| 6157 | #endif |
| 6158 | #ifdef __cplusplus |
| 6159 | } |
| 6160 | #endif |
| 6161 | |
| 6162 | int |
| 6163 | main () |
| 6164 | { |
| 6165 | return f != dlopen; |
| 6166 | ; |
| 6167 | return 0; |
| 6168 | } |
| 6169 | _ACEOF |
| 6170 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6171 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6172 | (eval $ac_link) 2>&5 |
| 6173 | ac_status=$? |
| 6174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6175 | (exit $ac_status); } && |
| 6176 | { ac_try='test -s conftest$ac_exeext' |
| 6177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6178 | (eval $ac_try) 2>&5 |
| 6179 | ac_status=$? |
| 6180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6181 | (exit $ac_status); }; }; then |
| 6182 | ac_cv_func_dlopen=yes |
| 6183 | else |
| 6184 | echo "$as_me: failed program was:" >&5 |
| 6185 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6186 | |
| 6187 | ac_cv_func_dlopen=no |
| 6188 | fi |
| 6189 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6190 | fi |
| 6191 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 6192 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 6193 | if test $ac_cv_func_dlopen = yes; then |
| 6194 | lt_cv_dlopen="dlopen" |
| 6195 | else |
| 6196 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6197 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 6198 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 6199 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6200 | else |
| 6201 | ac_check_lib_save_LIBS=$LIBS |
| 6202 | LIBS="-ldl $LIBS" |
| 6203 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6204 | #line $LINENO "configure" |
| 6205 | /* confdefs.h. */ |
| 6206 | _ACEOF |
| 6207 | cat confdefs.h >>conftest.$ac_ext |
| 6208 | cat >>conftest.$ac_ext <<_ACEOF |
| 6209 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6210 | |
| 6211 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6212 | #ifdef __cplusplus |
| 6213 | extern "C" |
| 6214 | #endif |
| 6215 | /* We use char because int might match the return type of a gcc2 |
| 6216 | builtin and then its argument prototype would still apply. */ |
| 6217 | char dlopen (); |
| 6218 | int |
| 6219 | main () |
| 6220 | { |
| 6221 | dlopen (); |
| 6222 | ; |
| 6223 | return 0; |
| 6224 | } |
| 6225 | _ACEOF |
| 6226 | rm -f conftest.$ac_objext conftest$ac_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6227 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6228 | (eval $ac_link) 2>&5 |
| 6229 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6231 | (exit $ac_status); } && |
| 6232 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6234 | (eval $ac_try) 2>&5 |
| 6235 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6237 | (exit $ac_status); }; }; then |
| 6238 | ac_cv_lib_dl_dlopen=yes |
| 6239 | else |
| 6240 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6241 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6242 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6243 | ac_cv_lib_dl_dlopen=no |
| 6244 | fi |
| 6245 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6246 | LIBS=$ac_check_lib_save_LIBS |
| 6247 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6248 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6249 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 6250 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 6251 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 6252 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6253 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6254 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 6255 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 6256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6257 | else |
| 6258 | ac_check_lib_save_LIBS=$LIBS |
| 6259 | LIBS="-lsvld $LIBS" |
| 6260 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6261 | #line $LINENO "configure" |
| 6262 | /* confdefs.h. */ |
| 6263 | _ACEOF |
| 6264 | cat confdefs.h >>conftest.$ac_ext |
| 6265 | cat >>conftest.$ac_ext <<_ACEOF |
| 6266 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6267 | |
| 6268 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6269 | #ifdef __cplusplus |
| 6270 | extern "C" |
| 6271 | #endif |
| 6272 | /* We use char because int might match the return type of a gcc2 |
| 6273 | builtin and then its argument prototype would still apply. */ |
| 6274 | char dlopen (); |
| 6275 | int |
| 6276 | main () |
| 6277 | { |
| 6278 | dlopen (); |
| 6279 | ; |
| 6280 | return 0; |
| 6281 | } |
| 6282 | _ACEOF |
| 6283 | rm -f conftest.$ac_objext conftest$ac_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6284 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6285 | (eval $ac_link) 2>&5 |
| 6286 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6288 | (exit $ac_status); } && |
| 6289 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6291 | (eval $ac_try) 2>&5 |
| 6292 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6294 | (exit $ac_status); }; }; then |
| 6295 | ac_cv_lib_svld_dlopen=yes |
| 6296 | else |
| 6297 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6298 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6299 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6300 | ac_cv_lib_svld_dlopen=no |
| 6301 | fi |
| 6302 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6303 | LIBS=$ac_check_lib_save_LIBS |
| 6304 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6305 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6306 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 6307 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 6308 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6309 | else |
| 6310 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 6311 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 6312 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 6313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6314 | else |
| 6315 | ac_check_lib_save_LIBS=$LIBS |
| 6316 | LIBS="-ldld $LIBS" |
| 6317 | cat >conftest.$ac_ext <<_ACEOF |
| 6318 | #line $LINENO "configure" |
| 6319 | /* confdefs.h. */ |
| 6320 | _ACEOF |
| 6321 | cat confdefs.h >>conftest.$ac_ext |
| 6322 | cat >>conftest.$ac_ext <<_ACEOF |
| 6323 | /* end confdefs.h. */ |
| 6324 | |
| 6325 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6326 | #ifdef __cplusplus |
| 6327 | extern "C" |
| 6328 | #endif |
| 6329 | /* We use char because int might match the return type of a gcc2 |
| 6330 | builtin and then its argument prototype would still apply. */ |
| 6331 | char dld_link (); |
| 6332 | int |
| 6333 | main () |
| 6334 | { |
| 6335 | dld_link (); |
| 6336 | ; |
| 6337 | return 0; |
| 6338 | } |
| 6339 | _ACEOF |
| 6340 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6341 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6342 | (eval $ac_link) 2>&5 |
| 6343 | ac_status=$? |
| 6344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6345 | (exit $ac_status); } && |
| 6346 | { ac_try='test -s conftest$ac_exeext' |
| 6347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6348 | (eval $ac_try) 2>&5 |
| 6349 | ac_status=$? |
| 6350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6351 | (exit $ac_status); }; }; then |
| 6352 | ac_cv_lib_dld_dld_link=yes |
| 6353 | else |
| 6354 | echo "$as_me: failed program was:" >&5 |
| 6355 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6356 | |
| 6357 | ac_cv_lib_dld_dld_link=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6358 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6359 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6360 | LIBS=$ac_check_lib_save_LIBS |
| 6361 | fi |
| 6362 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 6363 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 6364 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 6365 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 6366 | fi |
| 6367 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6368 | |
| 6369 | fi |
| 6370 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6371 | |
| 6372 | fi |
| 6373 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6374 | |
| 6375 | fi |
| 6376 | |
| 6377 | |
| 6378 | fi |
| 6379 | |
| 6380 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6381 | fi |
| 6382 | |
| 6383 | ;; |
| 6384 | esac |
| 6385 | |
| 6386 | if test "x$lt_cv_dlopen" != xno; then |
| 6387 | enable_dlopen=yes |
| 6388 | else |
| 6389 | enable_dlopen=no |
| 6390 | fi |
| 6391 | |
| 6392 | case $lt_cv_dlopen in |
| 6393 | dlopen) |
| 6394 | save_CPPFLAGS="$CPPFLAGS" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6395 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6396 | |
| 6397 | save_LDFLAGS="$LDFLAGS" |
| 6398 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 6399 | |
| 6400 | save_LIBS="$LIBS" |
| 6401 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 6402 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6403 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6404 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 6405 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 6406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6407 | else |
| 6408 | if test "$cross_compiling" = yes; then : |
| 6409 | lt_cv_dlopen_self=cross |
| 6410 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6411 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6412 | lt_status=$lt_dlunknown |
| 6413 | cat > conftest.$ac_ext <<EOF |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 6414 | #line 6413 "configure" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6415 | #include "confdefs.h" |
| 6416 | |
| 6417 | #if HAVE_DLFCN_H |
| 6418 | #include <dlfcn.h> |
| 6419 | #endif |
| 6420 | |
| 6421 | #include <stdio.h> |
| 6422 | |
| 6423 | #ifdef RTLD_GLOBAL |
| 6424 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 6425 | #else |
| 6426 | # ifdef DL_GLOBAL |
| 6427 | # define LT_DLGLOBAL DL_GLOBAL |
| 6428 | # else |
| 6429 | # define LT_DLGLOBAL 0 |
| 6430 | # endif |
| 6431 | #endif |
| 6432 | |
| 6433 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 6434 | find out it does not work in some platform. */ |
| 6435 | #ifndef LT_DLLAZY_OR_NOW |
| 6436 | # ifdef RTLD_LAZY |
| 6437 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 6438 | # else |
| 6439 | # ifdef DL_LAZY |
| 6440 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 6441 | # else |
| 6442 | # ifdef RTLD_NOW |
| 6443 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 6444 | # else |
| 6445 | # ifdef DL_NOW |
| 6446 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 6447 | # else |
| 6448 | # define LT_DLLAZY_OR_NOW 0 |
| 6449 | # endif |
| 6450 | # endif |
| 6451 | # endif |
| 6452 | # endif |
| 6453 | #endif |
| 6454 | |
| 6455 | #ifdef __cplusplus |
| 6456 | extern "C" void exit (int); |
| 6457 | #endif |
| 6458 | |
| 6459 | void fnord() { int i=42;} |
| 6460 | int main () |
| 6461 | { |
| 6462 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 6463 | int status = $lt_dlunknown; |
| 6464 | |
| 6465 | if (self) |
| 6466 | { |
| 6467 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 6468 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 6469 | /* dlclose (self); */ |
| 6470 | } |
| 6471 | |
| 6472 | exit (status); |
| 6473 | } |
| 6474 | EOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6475 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6476 | (eval $ac_link) 2>&5 |
| 6477 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6479 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 6480 | (./conftest; exit; ) 2>/dev/null |
| 6481 | lt_status=$? |
| 6482 | case x$lt_status in |
| 6483 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 6484 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 6485 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 6486 | esac |
| 6487 | else : |
| 6488 | # compilation failed |
| 6489 | lt_cv_dlopen_self=no |
| 6490 | fi |
| 6491 | fi |
| 6492 | rm -fr conftest* |
| 6493 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6494 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6495 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6496 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6497 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 6498 | |
| 6499 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 6500 | LDFLAGS="$LDFLAGS $link_static_flag" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6501 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6502 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 6503 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 6504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6505 | else |
| 6506 | if test "$cross_compiling" = yes; then : |
| 6507 | lt_cv_dlopen_self_static=cross |
| 6508 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6509 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6510 | lt_status=$lt_dlunknown |
| 6511 | cat > conftest.$ac_ext <<EOF |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 6512 | #line 6511 "configure" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6513 | #include "confdefs.h" |
| 6514 | |
| 6515 | #if HAVE_DLFCN_H |
| 6516 | #include <dlfcn.h> |
| 6517 | #endif |
| 6518 | |
| 6519 | #include <stdio.h> |
| 6520 | |
| 6521 | #ifdef RTLD_GLOBAL |
| 6522 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 6523 | #else |
| 6524 | # ifdef DL_GLOBAL |
| 6525 | # define LT_DLGLOBAL DL_GLOBAL |
| 6526 | # else |
| 6527 | # define LT_DLGLOBAL 0 |
| 6528 | # endif |
| 6529 | #endif |
| 6530 | |
| 6531 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 6532 | find out it does not work in some platform. */ |
| 6533 | #ifndef LT_DLLAZY_OR_NOW |
| 6534 | # ifdef RTLD_LAZY |
| 6535 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 6536 | # else |
| 6537 | # ifdef DL_LAZY |
| 6538 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 6539 | # else |
| 6540 | # ifdef RTLD_NOW |
| 6541 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 6542 | # else |
| 6543 | # ifdef DL_NOW |
| 6544 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 6545 | # else |
| 6546 | # define LT_DLLAZY_OR_NOW 0 |
| 6547 | # endif |
| 6548 | # endif |
| 6549 | # endif |
| 6550 | # endif |
| 6551 | #endif |
| 6552 | |
| 6553 | #ifdef __cplusplus |
| 6554 | extern "C" void exit (int); |
| 6555 | #endif |
| 6556 | |
| 6557 | void fnord() { int i=42;} |
| 6558 | int main () |
| 6559 | { |
| 6560 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 6561 | int status = $lt_dlunknown; |
| 6562 | |
| 6563 | if (self) |
| 6564 | { |
| 6565 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 6566 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 6567 | /* dlclose (self); */ |
| 6568 | } |
| 6569 | |
| 6570 | exit (status); |
| 6571 | } |
| 6572 | EOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6573 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6574 | (eval $ac_link) 2>&5 |
| 6575 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6577 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 6578 | (./conftest; exit; ) 2>/dev/null |
| 6579 | lt_status=$? |
| 6580 | case x$lt_status in |
| 6581 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 6582 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 6583 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 6584 | esac |
| 6585 | else : |
| 6586 | # compilation failed |
| 6587 | lt_cv_dlopen_self_static=no |
| 6588 | fi |
| 6589 | fi |
| 6590 | rm -fr conftest* |
| 6591 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6592 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6593 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6594 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6595 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 6596 | fi |
| 6597 | |
| 6598 | CPPFLAGS="$save_CPPFLAGS" |
| 6599 | LDFLAGS="$save_LDFLAGS" |
| 6600 | LIBS="$save_LIBS" |
| 6601 | ;; |
| 6602 | esac |
| 6603 | |
| 6604 | case $lt_cv_dlopen_self in |
| 6605 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 6606 | *) enable_dlopen_self=unknown ;; |
| 6607 | esac |
| 6608 | |
| 6609 | case $lt_cv_dlopen_self_static in |
| 6610 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 6611 | *) enable_dlopen_self_static=unknown ;; |
| 6612 | esac |
| 6613 | fi |
| 6614 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6615 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6616 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 6617 | case $archive_cmds in |
| 6618 | *'~'*) |
| 6619 | # FIXME: we may have to deal with multi-command sequences. |
| 6620 | ;; |
| 6621 | '$CC '*) |
| 6622 | # Test whether the compiler implicitly links with -lc since on some |
| 6623 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 6624 | # to ld, don't add -lc before -lgcc. |
| 6625 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 6626 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 6627 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then |
| 6628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6629 | else |
| 6630 | $rm conftest* |
| 6631 | echo 'static int dummy;' > conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6632 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6633 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6634 | (eval $ac_compile) 2>&5 |
| 6635 | ac_status=$? |
| 6636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6637 | (exit $ac_status); }; then |
| 6638 | soname=conftest |
| 6639 | lib=conftest |
| 6640 | libobjs=conftest.$ac_objext |
| 6641 | deplibs= |
| 6642 | wl=$lt_cv_prog_cc_wl |
| 6643 | compiler_flags=-v |
| 6644 | linker_flags=-v |
| 6645 | verstring= |
| 6646 | output_objdir=. |
| 6647 | libname=conftest |
| 6648 | save_allow_undefined_flag=$allow_undefined_flag |
| 6649 | allow_undefined_flag= |
| 6650 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 6651 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 6652 | ac_status=$? |
| 6653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6654 | (exit $ac_status); } |
| 6655 | then |
| 6656 | lt_cv_archive_cmds_need_lc=no |
| 6657 | else |
| 6658 | lt_cv_archive_cmds_need_lc=yes |
| 6659 | fi |
| 6660 | allow_undefined_flag=$save_allow_undefined_flag |
| 6661 | else |
| 6662 | cat conftest.err 1>&5 |
| 6663 | fi |
| 6664 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6665 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6666 | echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 6667 | echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 |
| 6668 | ;; |
| 6669 | esac |
| 6670 | fi |
| 6671 | need_lc=${lt_cv_archive_cmds_need_lc-yes} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6672 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6673 | # The second clause should only fire when bootstrapping the |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6674 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 6675 | # with your package, and you will get complaints that there are |
| 6676 | # no rules to generate ltmain.sh. |
| 6677 | if test -f "$ltmain"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6678 | : |
| 6679 | else |
| 6680 | # If there is no Makefile yet, we rely on a make rule to execute |
| 6681 | # `config.status --recheck' to rerun these tests and create the |
| 6682 | # libtool script then. |
| 6683 | test -f Makefile && make "$ltmain" |
| 6684 | fi |
| 6685 | |
| 6686 | if test -f "$ltmain"; then |
| 6687 | trap "$rm \"${ofile}T\"; exit 1" 1 2 15 |
| 6688 | $rm -f "${ofile}T" |
| 6689 | |
| 6690 | echo creating $ofile |
| 6691 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6692 | # Now quote all the things that may contain metacharacters while being |
| 6693 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 6694 | # variables and quote the copies for generation of the libtool script. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6695 | for var in echo old_CC old_CFLAGS SED \ |
| 6696 | AR AR_FLAGS CC LD LN_S NM SHELL \ |
| 6697 | reload_flag reload_cmds wl \ |
| 6698 | pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ |
| 6699 | thread_safe_flag_spec whole_archive_flag_spec libname_spec \ |
| 6700 | library_names_spec soname_spec \ |
| 6701 | RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ |
| 6702 | old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ |
| 6703 | postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ |
| 6704 | old_striplib striplib file_magic_cmd export_symbols_cmds \ |
| 6705 | deplibs_check_method allow_undefined_flag no_undefined_flag \ |
| 6706 | finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ |
| 6707 | global_symbol_to_c_name_address \ |
| 6708 | hardcode_libdir_flag_spec hardcode_libdir_separator \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6709 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6710 | compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6711 | |
| 6712 | case $var in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6713 | reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6714 | old_postinstall_cmds | old_postuninstall_cmds | \ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6715 | export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ |
| 6716 | extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ |
| 6717 | postinstall_cmds | postuninstall_cmds | \ |
| 6718 | finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6719 | # Double-quote double-evaled strings. |
| 6720 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 6721 | ;; |
| 6722 | *) |
| 6723 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 6724 | ;; |
| 6725 | esac |
| 6726 | done |
| 6727 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6728 | cat <<__EOF__ > "${ofile}T" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6729 | #! $SHELL |
| 6730 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6731 | # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6732 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 6733 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 6734 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6735 | # Copyright (C) 1996-2000 Free Software Foundation, Inc. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6736 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 6737 | # |
| 6738 | # This program is free software; you can redistribute it and/or modify |
| 6739 | # it under the terms of the GNU General Public License as published by |
| 6740 | # the Free Software Foundation; either version 2 of the License, or |
| 6741 | # (at your option) any later version. |
| 6742 | # |
| 6743 | # This program is distributed in the hope that it will be useful, but |
| 6744 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 6745 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 6746 | # General Public License for more details. |
| 6747 | # |
| 6748 | # You should have received a copy of the GNU General Public License |
| 6749 | # along with this program; if not, write to the Free Software |
| 6750 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 6751 | # |
| 6752 | # As a special exception to the GNU General Public License, if you |
| 6753 | # distribute this file as part of a program that contains a |
| 6754 | # configuration script generated by Autoconf, you may include it under |
| 6755 | # the same distribution terms that you use for the rest of that program. |
| 6756 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6757 | # A sed that does not truncate output. |
| 6758 | SED=$lt_SED |
| 6759 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6760 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6761 | Xsed="${SED} -e s/^X//" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6762 | |
| 6763 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 6764 | # if CDPATH is set. |
| 6765 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 6766 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6767 | # ### BEGIN LIBTOOL CONFIG |
| 6768 | |
| 6769 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 6770 | |
| 6771 | # Shell to use when invoking shell scripts. |
| 6772 | SHELL=$lt_SHELL |
| 6773 | |
| 6774 | # Whether or not to build shared libraries. |
| 6775 | build_libtool_libs=$enable_shared |
| 6776 | |
| 6777 | # Whether or not to build static libraries. |
| 6778 | build_old_libs=$enable_static |
| 6779 | |
| 6780 | # Whether or not to add -lc for building shared libraries. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6781 | build_libtool_need_lc=$need_lc |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6782 | |
| 6783 | # Whether or not to optimize for fast installation. |
| 6784 | fast_install=$enable_fast_install |
| 6785 | |
| 6786 | # The host system. |
| 6787 | host_alias=$host_alias |
| 6788 | host=$host |
| 6789 | |
| 6790 | # An echo program that does not interpret backslashes. |
| 6791 | echo=$lt_echo |
| 6792 | |
| 6793 | # The archiver. |
| 6794 | AR=$lt_AR |
| 6795 | AR_FLAGS=$lt_AR_FLAGS |
| 6796 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6797 | # The default C compiler. |
| 6798 | CC=$lt_CC |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6799 | |
| 6800 | # Is the compiler the GNU C compiler? |
| 6801 | with_gcc=$GCC |
| 6802 | |
| 6803 | # The linker used to build libraries. |
| 6804 | LD=$lt_LD |
| 6805 | |
| 6806 | # Whether we need hard or soft links. |
| 6807 | LN_S=$lt_LN_S |
| 6808 | |
| 6809 | # A BSD-compatible nm program. |
| 6810 | NM=$lt_NM |
| 6811 | |
| 6812 | # A symbol stripping program |
| 6813 | STRIP=$STRIP |
| 6814 | |
| 6815 | # Used to examine libraries when file_magic_cmd begins "file" |
| 6816 | MAGIC_CMD=$MAGIC_CMD |
| 6817 | |
| 6818 | # Used on cygwin: DLL creation program. |
| 6819 | DLLTOOL="$DLLTOOL" |
| 6820 | |
| 6821 | # Used on cygwin: object dumper. |
| 6822 | OBJDUMP="$OBJDUMP" |
| 6823 | |
| 6824 | # Used on cygwin: assembler. |
| 6825 | AS="$AS" |
| 6826 | |
| 6827 | # The name of the directory that contains temporary libtool files. |
| 6828 | objdir=$objdir |
| 6829 | |
| 6830 | # How to create reloadable object files. |
| 6831 | reload_flag=$lt_reload_flag |
| 6832 | reload_cmds=$lt_reload_cmds |
| 6833 | |
| 6834 | # How to pass a linker flag through the compiler. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6835 | wl=$lt_wl |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6836 | |
| 6837 | # Object file suffix (normally "o"). |
| 6838 | objext="$ac_objext" |
| 6839 | |
| 6840 | # Old archive suffix (normally "a"). |
| 6841 | libext="$libext" |
| 6842 | |
| 6843 | # Executable file suffix (normally ""). |
| 6844 | exeext="$exeext" |
| 6845 | |
| 6846 | # Additional compiler flags for building library objects. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6847 | pic_flag=$lt_pic_flag |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6848 | pic_mode=$pic_mode |
| 6849 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6850 | # Does compiler simultaneously support -c and -o options? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6851 | compiler_c_o=$lt_compiler_c_o |
| 6852 | |
| 6853 | # Can we write directly to a .lo ? |
| 6854 | compiler_o_lo=$lt_compiler_o_lo |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6855 | |
| 6856 | # Must we lock files when doing compilation ? |
| 6857 | need_locks=$lt_need_locks |
| 6858 | |
| 6859 | # Do we need the lib prefix for modules? |
| 6860 | need_lib_prefix=$need_lib_prefix |
| 6861 | |
| 6862 | # Do we need a version for libraries? |
| 6863 | need_version=$need_version |
| 6864 | |
| 6865 | # Whether dlopen is supported. |
| 6866 | dlopen_support=$enable_dlopen |
| 6867 | |
| 6868 | # Whether dlopen of programs is supported. |
| 6869 | dlopen_self=$enable_dlopen_self |
| 6870 | |
| 6871 | # Whether dlopen of statically linked programs is supported. |
| 6872 | dlopen_self_static=$enable_dlopen_self_static |
| 6873 | |
| 6874 | # Compiler flag to prevent dynamic linking. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6875 | link_static_flag=$lt_link_static_flag |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6876 | |
| 6877 | # Compiler flag to turn off builtin functions. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6878 | no_builtin_flag=$lt_no_builtin_flag |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6879 | |
| 6880 | # Compiler flag to allow reflexive dlopens. |
| 6881 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 6882 | |
| 6883 | # Compiler flag to generate shared objects directly from archives. |
| 6884 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 6885 | |
| 6886 | # Compiler flag to generate thread-safe objects. |
| 6887 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 6888 | |
| 6889 | # Library versioning type. |
| 6890 | version_type=$version_type |
| 6891 | |
| 6892 | # Format of library name prefix. |
| 6893 | libname_spec=$lt_libname_spec |
| 6894 | |
| 6895 | # List of archive names. First name is the real one, the rest are links. |
| 6896 | # The last name is the one that the linker finds with -lNAME. |
| 6897 | library_names_spec=$lt_library_names_spec |
| 6898 | |
| 6899 | # The coded name of the library, if different from the real name. |
| 6900 | soname_spec=$lt_soname_spec |
| 6901 | |
| 6902 | # Commands used to build and install an old-style archive. |
| 6903 | RANLIB=$lt_RANLIB |
| 6904 | old_archive_cmds=$lt_old_archive_cmds |
| 6905 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 6906 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 6907 | |
| 6908 | # Create an old-style archive from a shared archive. |
| 6909 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 6910 | |
| 6911 | # Create a temporary old-style archive to link instead of a shared archive. |
| 6912 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 6913 | |
| 6914 | # Commands used to build and install a shared archive. |
| 6915 | archive_cmds=$lt_archive_cmds |
| 6916 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 6917 | postinstall_cmds=$lt_postinstall_cmds |
| 6918 | postuninstall_cmds=$lt_postuninstall_cmds |
| 6919 | |
| 6920 | # Commands to strip libraries. |
| 6921 | old_striplib=$lt_old_striplib |
| 6922 | striplib=$lt_striplib |
| 6923 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6924 | # Method to check whether dependent libraries are shared objects. |
| 6925 | deplibs_check_method=$lt_deplibs_check_method |
| 6926 | |
| 6927 | # Command to use when deplibs_check_method == file_magic. |
| 6928 | file_magic_cmd=$lt_file_magic_cmd |
| 6929 | |
| 6930 | # Flag that allows shared libraries with undefined symbols to be built. |
| 6931 | allow_undefined_flag=$lt_allow_undefined_flag |
| 6932 | |
| 6933 | # Flag that forces no undefined symbols. |
| 6934 | no_undefined_flag=$lt_no_undefined_flag |
| 6935 | |
| 6936 | # Commands used to finish a libtool library installation in a directory. |
| 6937 | finish_cmds=$lt_finish_cmds |
| 6938 | |
| 6939 | # Same as above, but a single script fragment to be evaled but not shown. |
| 6940 | finish_eval=$lt_finish_eval |
| 6941 | |
| 6942 | # Take the output of nm and produce a listing of raw symbols and C names. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6943 | global_symbol_pipe=$lt_global_symbol_pipe |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6944 | |
| 6945 | # Transform the output of nm in a proper C declaration |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6946 | global_symbol_to_cdecl=$lt_global_symbol_to_cdecl |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6947 | |
| 6948 | # Transform the output of nm in a C name address pair |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6949 | global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6950 | |
| 6951 | # This is the shared library runtime path variable. |
| 6952 | runpath_var=$runpath_var |
| 6953 | |
| 6954 | # This is the shared library path variable. |
| 6955 | shlibpath_var=$shlibpath_var |
| 6956 | |
| 6957 | # Is shlibpath searched before the hard-coded library search path? |
| 6958 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 6959 | |
| 6960 | # How to hardcode a shared library path into an executable. |
| 6961 | hardcode_action=$hardcode_action |
| 6962 | |
| 6963 | # Whether we should hardcode library paths into libraries. |
| 6964 | hardcode_into_libs=$hardcode_into_libs |
| 6965 | |
| 6966 | # Flag to hardcode \$libdir into a binary during linking. |
| 6967 | # This must work even if \$libdir does not exist. |
| 6968 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 6969 | |
| 6970 | # Whether we need a single -rpath flag with a separated argument. |
| 6971 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 6972 | |
| 6973 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the |
| 6974 | # resulting binary. |
| 6975 | hardcode_direct=$hardcode_direct |
| 6976 | |
| 6977 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 6978 | # resulting binary. |
| 6979 | hardcode_minus_L=$hardcode_minus_L |
| 6980 | |
| 6981 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 6982 | # the resulting binary. |
| 6983 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 6984 | |
| 6985 | # Variables whose values should be saved in libtool wrapper scripts and |
| 6986 | # restored at relink time. |
| 6987 | variables_saved_for_relink="$variables_saved_for_relink" |
| 6988 | |
| 6989 | # Whether libtool must link a program against all its dependency libraries. |
| 6990 | link_all_deplibs=$link_all_deplibs |
| 6991 | |
| 6992 | # Compile-time system search path for libraries |
| 6993 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 6994 | |
| 6995 | # Run-time system search path for libraries |
| 6996 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 6997 | |
| 6998 | # Fix the shell variable \$srcfile for the compiler. |
| 6999 | fix_srcfile_path="$fix_srcfile_path" |
| 7000 | |
| 7001 | # Set to yes if exported symbols are required. |
| 7002 | always_export_symbols=$always_export_symbols |
| 7003 | |
| 7004 | # The commands to list exported symbols. |
| 7005 | export_symbols_cmds=$lt_export_symbols_cmds |
| 7006 | |
| 7007 | # The commands to extract the exported symbol list from a shared archive. |
| 7008 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 7009 | |
| 7010 | # Symbols that should not be listed in the preloaded symbols. |
| 7011 | exclude_expsyms=$lt_exclude_expsyms |
| 7012 | |
| 7013 | # Symbols that must always be exported. |
| 7014 | include_expsyms=$lt_include_expsyms |
| 7015 | |
| 7016 | # ### END LIBTOOL CONFIG |
| 7017 | |
| 7018 | __EOF__ |
| 7019 | |
| 7020 | case $host_os in |
| 7021 | aix3*) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7022 | cat <<\EOF >> "${ofile}T" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7023 | |
| 7024 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 7025 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 7026 | # vanish in a puff of smoke. |
| 7027 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 7028 | COLLECT_NAMES= |
| 7029 | export COLLECT_NAMES |
| 7030 | fi |
| 7031 | EOF |
| 7032 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7033 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7034 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7035 | case $host_os in |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7036 | cygwin* | mingw* | pw32* | os2*) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7037 | cat <<'EOF' >> "${ofile}T" |
| 7038 | # This is a source program that is used to create dlls on Windows |
| 7039 | # Don't remove nor modify the starting and closing comments |
| 7040 | # /* ltdll.c starts here */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7041 | # #define WIN32_LEAN_AND_MEAN |
| 7042 | # #include <windows.h> |
| 7043 | # #undef WIN32_LEAN_AND_MEAN |
| 7044 | # #include <stdio.h> |
| 7045 | # |
| 7046 | # #ifndef __CYGWIN__ |
| 7047 | # # ifdef __CYGWIN32__ |
| 7048 | # # define __CYGWIN__ __CYGWIN32__ |
| 7049 | # # endif |
| 7050 | # #endif |
| 7051 | # |
| 7052 | # #ifdef __cplusplus |
| 7053 | # extern "C" { |
| 7054 | # #endif |
| 7055 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); |
| 7056 | # #ifdef __cplusplus |
| 7057 | # } |
| 7058 | # #endif |
| 7059 | # |
| 7060 | # #ifdef __CYGWIN__ |
| 7061 | # #include <cygwin/cygwin_dll.h> |
| 7062 | # DECLARE_CYGWIN_DLL( DllMain ); |
| 7063 | # #endif |
| 7064 | # HINSTANCE __hDllInstance_base; |
| 7065 | # |
| 7066 | # BOOL APIENTRY |
| 7067 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) |
| 7068 | # { |
| 7069 | # __hDllInstance_base = hInst; |
| 7070 | # return TRUE; |
| 7071 | # } |
| 7072 | # /* ltdll.c ends here */ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7073 | # This is a source program that is used to create import libraries |
| 7074 | # on Windows for dlls which lack them. Don't remove nor modify the |
| 7075 | # starting and closing comments |
| 7076 | # /* impgen.c starts here */ |
| 7077 | # /* Copyright (C) 1999-2000 Free Software Foundation, Inc. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7078 | # |
| 7079 | # This file is part of GNU libtool. |
| 7080 | # |
| 7081 | # This program is free software; you can redistribute it and/or modify |
| 7082 | # it under the terms of the GNU General Public License as published by |
| 7083 | # the Free Software Foundation; either version 2 of the License, or |
| 7084 | # (at your option) any later version. |
| 7085 | # |
| 7086 | # This program is distributed in the hope that it will be useful, |
| 7087 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 7088 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 7089 | # GNU General Public License for more details. |
| 7090 | # |
| 7091 | # You should have received a copy of the GNU General Public License |
| 7092 | # along with this program; if not, write to the Free Software |
| 7093 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 7094 | # */ |
| 7095 | # |
| 7096 | # #include <stdio.h> /* for printf() */ |
| 7097 | # #include <unistd.h> /* for open(), lseek(), read() */ |
| 7098 | # #include <fcntl.h> /* for O_RDONLY, O_BINARY */ |
| 7099 | # #include <string.h> /* for strdup() */ |
| 7100 | # |
| 7101 | # /* O_BINARY isn't required (or even defined sometimes) under Unix */ |
| 7102 | # #ifndef O_BINARY |
| 7103 | # #define O_BINARY 0 |
| 7104 | # #endif |
| 7105 | # |
| 7106 | # static unsigned int |
| 7107 | # pe_get16 (fd, offset) |
| 7108 | # int fd; |
| 7109 | # int offset; |
| 7110 | # { |
| 7111 | # unsigned char b[2]; |
| 7112 | # lseek (fd, offset, SEEK_SET); |
| 7113 | # read (fd, b, 2); |
| 7114 | # return b[0] + (b[1]<<8); |
| 7115 | # } |
| 7116 | # |
| 7117 | # static unsigned int |
| 7118 | # pe_get32 (fd, offset) |
| 7119 | # int fd; |
| 7120 | # int offset; |
| 7121 | # { |
| 7122 | # unsigned char b[4]; |
| 7123 | # lseek (fd, offset, SEEK_SET); |
| 7124 | # read (fd, b, 4); |
| 7125 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
| 7126 | # } |
| 7127 | # |
| 7128 | # static unsigned int |
| 7129 | # pe_as32 (ptr) |
| 7130 | # void *ptr; |
| 7131 | # { |
| 7132 | # unsigned char *b = ptr; |
| 7133 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
| 7134 | # } |
| 7135 | # |
| 7136 | # int |
| 7137 | # main (argc, argv) |
| 7138 | # int argc; |
| 7139 | # char *argv[]; |
| 7140 | # { |
| 7141 | # int dll; |
| 7142 | # unsigned long pe_header_offset, opthdr_ofs, num_entries, i; |
| 7143 | # unsigned long export_rva, export_size, nsections, secptr, expptr; |
| 7144 | # unsigned long name_rvas, nexp; |
| 7145 | # unsigned char *expdata, *erva; |
| 7146 | # char *filename, *dll_name; |
| 7147 | # |
| 7148 | # filename = argv[1]; |
| 7149 | # |
| 7150 | # dll = open(filename, O_RDONLY|O_BINARY); |
| 7151 | # if (dll < 1) |
| 7152 | # return 1; |
| 7153 | # |
| 7154 | # dll_name = filename; |
| 7155 | # |
| 7156 | # for (i=0; filename[i]; i++) |
| 7157 | # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') |
| 7158 | # dll_name = filename + i +1; |
| 7159 | # |
| 7160 | # pe_header_offset = pe_get32 (dll, 0x3c); |
| 7161 | # opthdr_ofs = pe_header_offset + 4 + 20; |
| 7162 | # num_entries = pe_get32 (dll, opthdr_ofs + 92); |
| 7163 | # |
| 7164 | # if (num_entries < 1) /* no exports */ |
| 7165 | # return 1; |
| 7166 | # |
| 7167 | # export_rva = pe_get32 (dll, opthdr_ofs + 96); |
| 7168 | # export_size = pe_get32 (dll, opthdr_ofs + 100); |
| 7169 | # nsections = pe_get16 (dll, pe_header_offset + 4 +2); |
| 7170 | # secptr = (pe_header_offset + 4 + 20 + |
| 7171 | # pe_get16 (dll, pe_header_offset + 4 + 16)); |
| 7172 | # |
| 7173 | # expptr = 0; |
| 7174 | # for (i = 0; i < nsections; i++) |
| 7175 | # { |
| 7176 | # char sname[8]; |
| 7177 | # unsigned long secptr1 = secptr + 40 * i; |
| 7178 | # unsigned long vaddr = pe_get32 (dll, secptr1 + 12); |
| 7179 | # unsigned long vsize = pe_get32 (dll, secptr1 + 16); |
| 7180 | # unsigned long fptr = pe_get32 (dll, secptr1 + 20); |
| 7181 | # lseek(dll, secptr1, SEEK_SET); |
| 7182 | # read(dll, sname, 8); |
| 7183 | # if (vaddr <= export_rva && vaddr+vsize > export_rva) |
| 7184 | # { |
| 7185 | # expptr = fptr + (export_rva - vaddr); |
| 7186 | # if (export_rva + export_size > vaddr + vsize) |
| 7187 | # export_size = vsize - (export_rva - vaddr); |
| 7188 | # break; |
| 7189 | # } |
| 7190 | # } |
| 7191 | # |
| 7192 | # expdata = (unsigned char*)malloc(export_size); |
| 7193 | # lseek (dll, expptr, SEEK_SET); |
| 7194 | # read (dll, expdata, export_size); |
| 7195 | # erva = expdata - export_rva; |
| 7196 | # |
| 7197 | # nexp = pe_as32 (expdata+24); |
| 7198 | # name_rvas = pe_as32 (expdata+32); |
| 7199 | # |
| 7200 | # printf ("EXPORTS\n"); |
| 7201 | # for (i = 0; i<nexp; i++) |
| 7202 | # { |
| 7203 | # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); |
| 7204 | # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); |
| 7205 | # } |
| 7206 | # |
| 7207 | # return 0; |
| 7208 | # } |
| 7209 | # /* impgen.c ends here */ |
| 7210 | |
| 7211 | EOF |
| 7212 | ;; |
| 7213 | esac |
| 7214 | |
| 7215 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 7216 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 7217 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 7218 | # is reportedly fixed, but why not run on old versions too? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7219 | sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7220 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7221 | mv -f "${ofile}T" "$ofile" || \ |
| 7222 | (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7223 | chmod +x "$ofile" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7224 | fi |
| 7225 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7226 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7227 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7228 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7229 | |
| 7230 | # This can be used to rebuild libtool when needed |
| 7231 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 7232 | |
| 7233 | # Always use our own libtool. |
| 7234 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 7235 | |
| 7236 | # Prevent multiple expansion |
| 7237 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7238 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7239 | # Find a good install program. We prefer a C program (faster), |
| 7240 | # so one script is as good as another. But avoid the broken or |
| 7241 | # incompatible versions: |
| 7242 | # SysV /etc/install, /usr/sbin/install |
| 7243 | # SunOS /usr/etc/install |
| 7244 | # IRIX /sbin/install |
| 7245 | # AIX /bin/install |
| 7246 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 7247 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 7248 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 7249 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 7250 | # ./install, which can be erroneously created by make from ./install.sh. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7251 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 7252 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7253 | if test -z "$INSTALL"; then |
| 7254 | if test "${ac_cv_path_install+set}" = set; then |
| 7255 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7256 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7258 | for as_dir in $PATH |
| 7259 | do |
| 7260 | IFS=$as_save_IFS |
| 7261 | test -z "$as_dir" && as_dir=. |
| 7262 | # Account for people who put trailing slashes in PATH elements. |
| 7263 | case $as_dir/ in |
| 7264 | ./ | .// | /cC/* | \ |
| 7265 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 7266 | /usr/ucb/* ) ;; |
| 7267 | *) |
| 7268 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7269 | # Don't use installbsd from OSF since it installs stuff as root |
| 7270 | # by default. |
| 7271 | for ac_prog in ginstall scoinst install; do |
| 7272 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7273 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 7274 | if test $ac_prog = install && |
| 7275 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7276 | # AIX install. It has an incompatible calling convention. |
| 7277 | : |
| 7278 | elif test $ac_prog = install && |
| 7279 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7280 | # program-specific install script used by HP pwplus--don't use. |
| 7281 | : |
| 7282 | else |
| 7283 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7284 | break 3 |
| 7285 | fi |
| 7286 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7287 | done |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7288 | done |
| 7289 | ;; |
| 7290 | esac |
| 7291 | done |
| 7292 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7293 | |
| 7294 | fi |
| 7295 | if test "${ac_cv_path_install+set}" = set; then |
| 7296 | INSTALL=$ac_cv_path_install |
| 7297 | else |
| 7298 | # As a last resort, use the slow shell script. We don't cache a |
| 7299 | # path for INSTALL within a source directory, because that will |
| 7300 | # break other packages using the cache if that directory is |
| 7301 | # removed, or if the path is relative. |
| 7302 | INSTALL=$ac_install_sh |
| 7303 | fi |
| 7304 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7305 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7306 | echo "${ECHO_T}$INSTALL" >&6 |
| 7307 | |
| 7308 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7309 | # It thinks the first close brace ends the variable substitution. |
| 7310 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7311 | |
| 7312 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7313 | |
| 7314 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7315 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7316 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7317 | ######### |
| 7318 | # Set up an appropriate program prefix |
| 7319 | # |
| 7320 | if test "$program_prefix" = "NONE"; then |
| 7321 | program_prefix="" |
| 7322 | fi |
| 7323 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7324 | |
| 7325 | if test -f VERSION; then |
| 7326 | VERSION=`cat VERSION` |
| 7327 | echo "Version set to $VERSION" |
| 7328 | fi |
| 7329 | |
| 7330 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7331 | ######### |
| 7332 | # Check to see if the --with-hints=FILE option is used. If there is none, |
| 7333 | # then check for a files named "$host.hints" and ../$hosts.hints where |
| 7334 | # $host is the hostname of the build system. If still no hints are |
| 7335 | # found, try looking in $system.hints and ../$system.hints where |
| 7336 | # $system is the result of uname -s. |
| 7337 | # |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7338 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7339 | # Check whether --with-hints or --without-hints was given. |
| 7340 | if test "${with_hints+set}" = set; then |
| 7341 | withval="$with_hints" |
| 7342 | hints=$withval |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7343 | fi; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7344 | if test "$hints" = ""; then |
| 7345 | host=`hostname | sed 's/\..*//'` |
| 7346 | if test -r $host.hints; then |
| 7347 | hints=$host.hints |
| 7348 | else |
| 7349 | if test -r ../$host.hints; then |
| 7350 | hints=../$host.hints |
| 7351 | fi |
| 7352 | fi |
| 7353 | fi |
| 7354 | if test "$hints" = ""; then |
| 7355 | sys=`uname -s` |
| 7356 | if test -r $sys.hints; then |
| 7357 | hints=$sys.hints |
| 7358 | else |
| 7359 | if test -r ../$sys.hints; then |
| 7360 | hints=../$sys.hints |
| 7361 | fi |
| 7362 | fi |
| 7363 | fi |
| 7364 | if test "$hints" != ""; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7365 | echo "$as_me:$LINENO: result: reading hints from $hints" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7366 | echo "${ECHO_T}reading hints from $hints" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7367 | . $hints |
| 7368 | fi |
| 7369 | |
| 7370 | ######### |
| 7371 | # Locate a compiler for the build machine. This compiler should |
| 7372 | # generate command-line programs that run on the build machine. |
| 7373 | # |
| 7374 | default_build_cflags="-g" |
| 7375 | if test "$config_BUILD_CC" = ""; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7376 | ac_ext=c |
| 7377 | ac_cpp='$CPP $CPPFLAGS' |
| 7378 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7379 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7380 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7381 | if test -n "$ac_tool_prefix"; then |
| 7382 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 7383 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7384 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7385 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7386 | if test "${ac_cv_prog_CC+set}" = set; then |
| 7387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7388 | else |
| 7389 | if test -n "$CC"; then |
| 7390 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 7391 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7393 | for as_dir in $PATH |
| 7394 | do |
| 7395 | IFS=$as_save_IFS |
| 7396 | test -z "$as_dir" && as_dir=. |
| 7397 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7398 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7399 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 7400 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7401 | break 2 |
| 7402 | fi |
| 7403 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7404 | done |
| 7405 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7406 | fi |
| 7407 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7408 | CC=$ac_cv_prog_CC |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7409 | if test -n "$CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7410 | echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7411 | echo "${ECHO_T}$CC" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7412 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7413 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7414 | echo "${ECHO_T}no" >&6 |
| 7415 | fi |
| 7416 | |
| 7417 | fi |
| 7418 | if test -z "$ac_cv_prog_CC"; then |
| 7419 | ac_ct_CC=$CC |
| 7420 | # Extract the first word of "gcc", so it can be a program name with args. |
| 7421 | set dummy gcc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7422 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7423 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7424 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 7425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7426 | else |
| 7427 | if test -n "$ac_ct_CC"; then |
| 7428 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 7429 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7431 | for as_dir in $PATH |
| 7432 | do |
| 7433 | IFS=$as_save_IFS |
| 7434 | test -z "$as_dir" && as_dir=. |
| 7435 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7436 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7437 | ac_cv_prog_ac_ct_CC="gcc" |
| 7438 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7439 | break 2 |
| 7440 | fi |
| 7441 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7442 | done |
| 7443 | |
| 7444 | fi |
| 7445 | fi |
| 7446 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 7447 | if test -n "$ac_ct_CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7448 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7449 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 7450 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7451 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7452 | echo "${ECHO_T}no" >&6 |
| 7453 | fi |
| 7454 | |
| 7455 | CC=$ac_ct_CC |
| 7456 | else |
| 7457 | CC="$ac_cv_prog_CC" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7458 | fi |
| 7459 | |
| 7460 | if test -z "$CC"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7461 | if test -n "$ac_tool_prefix"; then |
| 7462 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 7463 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7464 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7465 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7466 | if test "${ac_cv_prog_CC+set}" = set; then |
| 7467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7468 | else |
| 7469 | if test -n "$CC"; then |
| 7470 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 7471 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7473 | for as_dir in $PATH |
| 7474 | do |
| 7475 | IFS=$as_save_IFS |
| 7476 | test -z "$as_dir" && as_dir=. |
| 7477 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7478 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7479 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 7480 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7481 | break 2 |
| 7482 | fi |
| 7483 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7484 | done |
| 7485 | |
| 7486 | fi |
| 7487 | fi |
| 7488 | CC=$ac_cv_prog_CC |
| 7489 | if test -n "$CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7490 | echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7491 | echo "${ECHO_T}$CC" >&6 |
| 7492 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7493 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7494 | echo "${ECHO_T}no" >&6 |
| 7495 | fi |
| 7496 | |
| 7497 | fi |
| 7498 | if test -z "$ac_cv_prog_CC"; then |
| 7499 | ac_ct_CC=$CC |
| 7500 | # Extract the first word of "cc", so it can be a program name with args. |
| 7501 | set dummy cc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7502 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7503 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7504 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 7505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7506 | else |
| 7507 | if test -n "$ac_ct_CC"; then |
| 7508 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 7509 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7511 | for as_dir in $PATH |
| 7512 | do |
| 7513 | IFS=$as_save_IFS |
| 7514 | test -z "$as_dir" && as_dir=. |
| 7515 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7516 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7517 | ac_cv_prog_ac_ct_CC="cc" |
| 7518 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7519 | break 2 |
| 7520 | fi |
| 7521 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7522 | done |
| 7523 | |
| 7524 | fi |
| 7525 | fi |
| 7526 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 7527 | if test -n "$ac_ct_CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7528 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7529 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 7530 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7531 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7532 | echo "${ECHO_T}no" >&6 |
| 7533 | fi |
| 7534 | |
| 7535 | CC=$ac_ct_CC |
| 7536 | else |
| 7537 | CC="$ac_cv_prog_CC" |
| 7538 | fi |
| 7539 | |
| 7540 | fi |
| 7541 | if test -z "$CC"; then |
| 7542 | # Extract the first word of "cc", so it can be a program name with args. |
| 7543 | set dummy cc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7544 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7545 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7546 | if test "${ac_cv_prog_CC+set}" = set; then |
| 7547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7548 | else |
| 7549 | if test -n "$CC"; then |
| 7550 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 7551 | else |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7552 | ac_prog_rejected=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7554 | for as_dir in $PATH |
| 7555 | do |
| 7556 | IFS=$as_save_IFS |
| 7557 | test -z "$as_dir" && as_dir=. |
| 7558 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7559 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7560 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 7561 | ac_prog_rejected=yes |
| 7562 | continue |
| 7563 | fi |
| 7564 | ac_cv_prog_CC="cc" |
| 7565 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7566 | break 2 |
| 7567 | fi |
| 7568 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7569 | done |
| 7570 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7571 | if test $ac_prog_rejected = yes; then |
| 7572 | # We found a bogon in the path, so make sure we never use it. |
| 7573 | set dummy $ac_cv_prog_CC |
| 7574 | shift |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7575 | if test $# != 0; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7576 | # We chose a different compiler from the bogus one. |
| 7577 | # However, it has the same basename, so the bogon will be chosen |
| 7578 | # first if we set CC to just the basename; use the full file name. |
| 7579 | shift |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7580 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7581 | fi |
| 7582 | fi |
| 7583 | fi |
| 7584 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7585 | CC=$ac_cv_prog_CC |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7586 | if test -n "$CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7587 | echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7588 | echo "${ECHO_T}$CC" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7589 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7590 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7591 | echo "${ECHO_T}no" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7592 | fi |
| 7593 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7594 | fi |
| 7595 | if test -z "$CC"; then |
| 7596 | if test -n "$ac_tool_prefix"; then |
| 7597 | for ac_prog in cl |
| 7598 | do |
| 7599 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 7600 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7601 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7602 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7603 | if test "${ac_cv_prog_CC+set}" = set; then |
| 7604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7605 | else |
| 7606 | if test -n "$CC"; then |
| 7607 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 7608 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7610 | for as_dir in $PATH |
| 7611 | do |
| 7612 | IFS=$as_save_IFS |
| 7613 | test -z "$as_dir" && as_dir=. |
| 7614 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7615 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7616 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 7617 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7618 | break 2 |
| 7619 | fi |
| 7620 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7621 | done |
| 7622 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7623 | fi |
| 7624 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7625 | CC=$ac_cv_prog_CC |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7626 | if test -n "$CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7627 | echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7628 | echo "${ECHO_T}$CC" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7629 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7630 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7631 | echo "${ECHO_T}no" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7632 | fi |
| 7633 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7634 | test -n "$CC" && break |
| 7635 | done |
| 7636 | fi |
| 7637 | if test -z "$CC"; then |
| 7638 | ac_ct_CC=$CC |
| 7639 | for ac_prog in cl |
| 7640 | do |
| 7641 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7642 | set dummy $ac_prog; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7643 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7644 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7645 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 7646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7647 | else |
| 7648 | if test -n "$ac_ct_CC"; then |
| 7649 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 7650 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7652 | for as_dir in $PATH |
| 7653 | do |
| 7654 | IFS=$as_save_IFS |
| 7655 | test -z "$as_dir" && as_dir=. |
| 7656 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7657 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7658 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 7659 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7660 | break 2 |
| 7661 | fi |
| 7662 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7663 | done |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7664 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7665 | fi |
| 7666 | fi |
| 7667 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 7668 | if test -n "$ac_ct_CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7669 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7670 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 7671 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7672 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7673 | echo "${ECHO_T}no" >&6 |
| 7674 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7675 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7676 | test -n "$ac_ct_CC" && break |
| 7677 | done |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7678 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7679 | CC=$ac_ct_CC |
| 7680 | fi |
| 7681 | |
| 7682 | fi |
| 7683 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7684 | |
| 7685 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 7686 | See \`config.log' for more details." >&5 |
| 7687 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 7688 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7689 | { (exit 1); exit 1; }; } |
| 7690 | |
| 7691 | # Provide some information about the compiler. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7692 | echo "$as_me:$LINENO:" \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7693 | "checking for C compiler version" >&5 |
| 7694 | ac_compiler=`set X $ac_compile; echo $2` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7695 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7696 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 7697 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7699 | (exit $ac_status); } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7700 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7701 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 7702 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7704 | (exit $ac_status); } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7705 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7706 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 7707 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7709 | (exit $ac_status); } |
| 7710 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7711 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7712 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 7713 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 7714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7715 | else |
| 7716 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7717 | #line $LINENO "configure" |
| 7718 | /* confdefs.h. */ |
| 7719 | _ACEOF |
| 7720 | cat confdefs.h >>conftest.$ac_ext |
| 7721 | cat >>conftest.$ac_ext <<_ACEOF |
| 7722 | /* end confdefs.h. */ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7723 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7724 | int |
| 7725 | main () |
| 7726 | { |
| 7727 | #ifndef __GNUC__ |
| 7728 | choke me |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7729 | #endif |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7730 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7731 | ; |
| 7732 | return 0; |
| 7733 | } |
| 7734 | _ACEOF |
| 7735 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7737 | (eval $ac_compile) 2>&5 |
| 7738 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7740 | (exit $ac_status); } && |
| 7741 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7743 | (eval $ac_try) 2>&5 |
| 7744 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7746 | (exit $ac_status); }; }; then |
| 7747 | ac_compiler_gnu=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7748 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7749 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7750 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7751 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7752 | ac_compiler_gnu=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7753 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7754 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7755 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7756 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7757 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7758 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7759 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 7760 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 7761 | ac_test_CFLAGS=${CFLAGS+set} |
| 7762 | ac_save_CFLAGS=$CFLAGS |
| 7763 | CFLAGS="-g" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7764 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7765 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 7766 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 7767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7768 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7769 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7770 | #line $LINENO "configure" |
| 7771 | /* confdefs.h. */ |
| 7772 | _ACEOF |
| 7773 | cat confdefs.h >>conftest.$ac_ext |
| 7774 | cat >>conftest.$ac_ext <<_ACEOF |
| 7775 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7776 | |
| 7777 | int |
| 7778 | main () |
| 7779 | { |
| 7780 | |
| 7781 | ; |
| 7782 | return 0; |
| 7783 | } |
| 7784 | _ACEOF |
| 7785 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7786 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7787 | (eval $ac_compile) 2>&5 |
| 7788 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7790 | (exit $ac_status); } && |
| 7791 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7793 | (eval $ac_try) 2>&5 |
| 7794 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7796 | (exit $ac_status); }; }; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7797 | ac_cv_prog_cc_g=yes |
| 7798 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7799 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7800 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7801 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7802 | ac_cv_prog_cc_g=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7803 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7804 | rm -f conftest.$ac_objext conftest.$ac_ext |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7805 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7806 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7807 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7808 | if test "$ac_test_CFLAGS" = set; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7809 | CFLAGS=$ac_save_CFLAGS |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7810 | elif test $ac_cv_prog_cc_g = yes; then |
| 7811 | if test "$GCC" = yes; then |
| 7812 | CFLAGS="-g -O2" |
| 7813 | else |
| 7814 | CFLAGS="-g" |
| 7815 | fi |
| 7816 | else |
| 7817 | if test "$GCC" = yes; then |
| 7818 | CFLAGS="-O2" |
| 7819 | else |
| 7820 | CFLAGS= |
| 7821 | fi |
| 7822 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7823 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 7824 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 7825 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 7826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7827 | else |
| 7828 | ac_cv_prog_cc_stdc=no |
| 7829 | ac_save_CC=$CC |
| 7830 | cat >conftest.$ac_ext <<_ACEOF |
| 7831 | #line $LINENO "configure" |
| 7832 | /* confdefs.h. */ |
| 7833 | _ACEOF |
| 7834 | cat confdefs.h >>conftest.$ac_ext |
| 7835 | cat >>conftest.$ac_ext <<_ACEOF |
| 7836 | /* end confdefs.h. */ |
| 7837 | #include <stdarg.h> |
| 7838 | #include <stdio.h> |
| 7839 | #include <sys/types.h> |
| 7840 | #include <sys/stat.h> |
| 7841 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 7842 | struct buf { int x; }; |
| 7843 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 7844 | static char *e (p, i) |
| 7845 | char **p; |
| 7846 | int i; |
| 7847 | { |
| 7848 | return p[i]; |
| 7849 | } |
| 7850 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 7851 | { |
| 7852 | char *s; |
| 7853 | va_list v; |
| 7854 | va_start (v,p); |
| 7855 | s = g (p, va_arg (v,int)); |
| 7856 | va_end (v); |
| 7857 | return s; |
| 7858 | } |
| 7859 | int test (int i, double x); |
| 7860 | struct s1 {int (*f) (int a);}; |
| 7861 | struct s2 {int (*f) (double a);}; |
| 7862 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 7863 | int argc; |
| 7864 | char **argv; |
| 7865 | int |
| 7866 | main () |
| 7867 | { |
| 7868 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 7869 | ; |
| 7870 | return 0; |
| 7871 | } |
| 7872 | _ACEOF |
| 7873 | # Don't try gcc -ansi; that turns off useful extensions and |
| 7874 | # breaks some systems' header files. |
| 7875 | # AIX -qlanglvl=ansi |
| 7876 | # Ultrix and OSF/1 -std1 |
| 7877 | # HP-UX 10.20 and later -Ae |
| 7878 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 7879 | # SVR4 -Xc -D__EXTENSIONS__ |
| 7880 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 7881 | do |
| 7882 | CC="$ac_save_CC $ac_arg" |
| 7883 | rm -f conftest.$ac_objext |
| 7884 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7885 | (eval $ac_compile) 2>&5 |
| 7886 | ac_status=$? |
| 7887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7888 | (exit $ac_status); } && |
| 7889 | { ac_try='test -s conftest.$ac_objext' |
| 7890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7891 | (eval $ac_try) 2>&5 |
| 7892 | ac_status=$? |
| 7893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7894 | (exit $ac_status); }; }; then |
| 7895 | ac_cv_prog_cc_stdc=$ac_arg |
| 7896 | break |
| 7897 | else |
| 7898 | echo "$as_me: failed program was:" >&5 |
| 7899 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7900 | |
| 7901 | fi |
| 7902 | rm -f conftest.$ac_objext |
| 7903 | done |
| 7904 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 7905 | CC=$ac_save_CC |
| 7906 | |
| 7907 | fi |
| 7908 | |
| 7909 | case "x$ac_cv_prog_cc_stdc" in |
| 7910 | x|xno) |
| 7911 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 7912 | echo "${ECHO_T}none needed" >&6 ;; |
| 7913 | *) |
| 7914 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 7915 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 7916 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 7917 | esac |
| 7918 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7919 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 7920 | # in C++ we need to declare it. In case someone uses the same compiler |
| 7921 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 7922 | # the declaration of exit, since it's the most demanding environment. |
| 7923 | cat >conftest.$ac_ext <<_ACEOF |
| 7924 | #ifndef __cplusplus |
| 7925 | choke me |
| 7926 | #endif |
| 7927 | _ACEOF |
| 7928 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7929 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7930 | (eval $ac_compile) 2>&5 |
| 7931 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7933 | (exit $ac_status); } && |
| 7934 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7936 | (eval $ac_try) 2>&5 |
| 7937 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7939 | (exit $ac_status); }; }; then |
| 7940 | for ac_declaration in \ |
| 7941 | ''\ |
| 7942 | '#include <stdlib.h>' \ |
| 7943 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 7944 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 7945 | 'extern "C" void exit (int) throw ();' \ |
| 7946 | 'extern "C" void exit (int);' \ |
| 7947 | 'void exit (int);' |
| 7948 | do |
| 7949 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7950 | #line $LINENO "configure" |
| 7951 | /* confdefs.h. */ |
| 7952 | _ACEOF |
| 7953 | cat confdefs.h >>conftest.$ac_ext |
| 7954 | cat >>conftest.$ac_ext <<_ACEOF |
| 7955 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7956 | #include <stdlib.h> |
| 7957 | $ac_declaration |
| 7958 | int |
| 7959 | main () |
| 7960 | { |
| 7961 | exit (42); |
| 7962 | ; |
| 7963 | return 0; |
| 7964 | } |
| 7965 | _ACEOF |
| 7966 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7967 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7968 | (eval $ac_compile) 2>&5 |
| 7969 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7971 | (exit $ac_status); } && |
| 7972 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7974 | (eval $ac_try) 2>&5 |
| 7975 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7977 | (exit $ac_status); }; }; then |
| 7978 | : |
| 7979 | else |
| 7980 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7982 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7983 | continue |
| 7984 | fi |
| 7985 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7986 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7987 | #line $LINENO "configure" |
| 7988 | /* confdefs.h. */ |
| 7989 | _ACEOF |
| 7990 | cat confdefs.h >>conftest.$ac_ext |
| 7991 | cat >>conftest.$ac_ext <<_ACEOF |
| 7992 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7993 | $ac_declaration |
| 7994 | int |
| 7995 | main () |
| 7996 | { |
| 7997 | exit (42); |
| 7998 | ; |
| 7999 | return 0; |
| 8000 | } |
| 8001 | _ACEOF |
| 8002 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8004 | (eval $ac_compile) 2>&5 |
| 8005 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8007 | (exit $ac_status); } && |
| 8008 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8010 | (eval $ac_try) 2>&5 |
| 8011 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8013 | (exit $ac_status); }; }; then |
| 8014 | break |
| 8015 | else |
| 8016 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8017 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8018 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8019 | fi |
| 8020 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8021 | done |
| 8022 | rm -f conftest* |
| 8023 | if test -n "$ac_declaration"; then |
| 8024 | echo '#ifdef __cplusplus' >>confdefs.h |
| 8025 | echo $ac_declaration >>confdefs.h |
| 8026 | echo '#endif' >>confdefs.h |
| 8027 | fi |
| 8028 | |
| 8029 | else |
| 8030 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8031 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8032 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8033 | fi |
| 8034 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8035 | ac_ext=c |
| 8036 | ac_cpp='$CPP $CPPFLAGS' |
| 8037 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8038 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8039 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8040 | |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 8041 | if test "$cross_compiling" = "yes"; then |
| 8042 | { { echo "$as_me:$LINENO: error: unable to find a compiler for building build tools" >&5 |
| 8043 | echo "$as_me: error: unable to find a compiler for building build tools" >&2;} |
| 8044 | { (exit 1); exit 1; }; } |
| 8045 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8046 | BUILD_CC=$CC |
| 8047 | default_build_cflags=$CFLAGS |
| 8048 | else |
| 8049 | BUILD_CC=$config_BUILD_CC |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8050 | echo "$as_me:$LINENO: checking host compiler" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8051 | echo $ECHO_N "checking host compiler... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8052 | CC=$BUILD_CC |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8053 | echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8054 | echo "${ECHO_T}$BUILD_CC" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8055 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8056 | echo "$as_me:$LINENO: checking switches for the host compiler" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8057 | echo $ECHO_N "checking switches for the host compiler... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8058 | if test "$config_BUILD_CFLAGS" != ""; then |
| 8059 | CFLAGS=$config_BUILD_CFLAGS |
| 8060 | BUILD_CFLAGS=$config_BUILD_CFLAGS |
| 8061 | else |
| 8062 | BUILD_CFLAGS=$default_build_cflags |
| 8063 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8064 | echo "$as_me:$LINENO: result: $BUILD_CFLAGS" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8065 | echo "${ECHO_T}$BUILD_CFLAGS" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8066 | if test "$config_BUILD_LIBS" != ""; then |
| 8067 | BUILD_LIBS=$config_BUILD_LIBS |
| 8068 | fi |
| 8069 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8070 | |
| 8071 | |
| 8072 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8073 | ########## |
| 8074 | # Locate a compiler that converts C code into *.o files that run on |
| 8075 | # the target machine. |
| 8076 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8077 | echo "$as_me:$LINENO: checking target compiler" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8078 | echo $ECHO_N "checking target compiler... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8079 | if test "$config_TARGET_CC" != ""; then |
| 8080 | TARGET_CC=$config_TARGET_CC |
| 8081 | else |
| 8082 | TARGET_CC=$BUILD_CC |
| 8083 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8084 | echo "$as_me:$LINENO: result: $TARGET_CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8085 | echo "${ECHO_T}$TARGET_CC" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8086 | echo "$as_me:$LINENO: checking switches on the target compiler" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8087 | echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8088 | if test "$config_TARGET_CFLAGS" != ""; then |
| 8089 | TARGET_CFLAGS=$config_TARGET_CFLAGS |
| 8090 | else |
| 8091 | TARGET_CFLAGS=$BUILD_CFLAGS |
| 8092 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8093 | echo "$as_me:$LINENO: result: $TARGET_CFLAGS" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8094 | echo "${ECHO_T}$TARGET_CFLAGS" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8095 | echo "$as_me:$LINENO: checking target linker" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8096 | echo $ECHO_N "checking target linker... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8097 | if test "$config_TARGET_LINK" = ""; then |
| 8098 | TARGET_LINK=$TARGET_CC |
| 8099 | else |
| 8100 | TARGET_LINK=$config_TARGET_LINK |
| 8101 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8102 | echo "$as_me:$LINENO: result: $TARGET_LINK" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8103 | echo "${ECHO_T}$TARGET_LINK" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8104 | echo "$as_me:$LINENO: checking switches on the target compiler" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8105 | echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8106 | if test "$config_TARGET_TFLAGS" != ""; then |
| 8107 | TARGET_TFLAGS=$config_TARGET_TFLAGS |
| 8108 | else |
| 8109 | TARGET_TFLAGS=$BUILD_CFLAGS |
| 8110 | fi |
| 8111 | if test "$config_TARGET_RANLIB" != ""; then |
| 8112 | TARGET_RANLIB=$config_TARGET_RANLIB |
| 8113 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8114 | if test -n "$ac_tool_prefix"; then |
| 8115 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 8116 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8117 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8118 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8119 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 8120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8121 | else |
| 8122 | if test -n "$RANLIB"; then |
| 8123 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 8124 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8126 | for as_dir in $PATH |
| 8127 | do |
| 8128 | IFS=$as_save_IFS |
| 8129 | test -z "$as_dir" && as_dir=. |
| 8130 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8131 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8132 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 8133 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8134 | break 2 |
| 8135 | fi |
| 8136 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8137 | done |
| 8138 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8139 | fi |
| 8140 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8141 | RANLIB=$ac_cv_prog_RANLIB |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8142 | if test -n "$RANLIB"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8143 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8144 | echo "${ECHO_T}$RANLIB" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8145 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8146 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8147 | echo "${ECHO_T}no" >&6 |
| 8148 | fi |
| 8149 | |
| 8150 | fi |
| 8151 | if test -z "$ac_cv_prog_RANLIB"; then |
| 8152 | ac_ct_RANLIB=$RANLIB |
| 8153 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 8154 | set dummy ranlib; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8155 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8156 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8157 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 8158 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8159 | else |
| 8160 | if test -n "$ac_ct_RANLIB"; then |
| 8161 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 8162 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8164 | for as_dir in $PATH |
| 8165 | do |
| 8166 | IFS=$as_save_IFS |
| 8167 | test -z "$as_dir" && as_dir=. |
| 8168 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8169 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8170 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 8171 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8172 | break 2 |
| 8173 | fi |
| 8174 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8175 | done |
| 8176 | |
| 8177 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 8178 | fi |
| 8179 | fi |
| 8180 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 8181 | if test -n "$ac_ct_RANLIB"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8182 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8183 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 8184 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8185 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8186 | echo "${ECHO_T}no" >&6 |
| 8187 | fi |
| 8188 | |
| 8189 | RANLIB=$ac_ct_RANLIB |
| 8190 | else |
| 8191 | RANLIB="$ac_cv_prog_RANLIB" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8192 | fi |
| 8193 | |
| 8194 | TARGET_RANLIB=$RANLIB |
| 8195 | fi |
| 8196 | if test "$config_TARGET_AR" != ""; then |
drh | 82ad383 | 2000-07-31 13:38:24 +0000 | [diff] [blame] | 8197 | TARGET_AR=$config_TARGET_AR |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8198 | else |
| 8199 | TARGET_AR='ar cr' |
| 8200 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8201 | echo "$as_me:$LINENO: result: $TARGET_TFLAGS" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8202 | echo "${ECHO_T}$TARGET_TFLAGS" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8203 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8204 | |
| 8205 | |
| 8206 | |
| 8207 | |
| 8208 | |
| 8209 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8210 | # Set the $cross variable if we are cross-compiling. Make |
| 8211 | # it 0 if we are not. |
| 8212 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8213 | echo "$as_me:$LINENO: checking if host and target compilers are the same" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8214 | echo $ECHO_N "checking if host and target compilers are the same... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8215 | if test "$BUILD_CC" = "$TARGET_CC"; then |
| 8216 | cross=0 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8217 | echo "$as_me:$LINENO: result: yes" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8218 | echo "${ECHO_T}yes" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8219 | else |
| 8220 | cross=1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8221 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8222 | echo "${ECHO_T}no" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8223 | fi |
| 8224 | |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 8225 | ########## |
| 8226 | # Are we using UTF-8 or iso8859 encodings? |
| 8227 | # |
| 8228 | # Check whether --enable-utf8 or --disable-utf8 was given. |
| 8229 | if test "${enable_utf8+set}" = set; then |
| 8230 | enableval="$enable_utf8" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8231 | |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 8232 | else |
| 8233 | enable_utf8=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8234 | fi; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8235 | echo "$as_me:$LINENO: checking character encoding" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8236 | echo $ECHO_N "checking character encoding... $ECHO_C" >&6 |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 8237 | if test "$enable_utf8" = "no"; then |
| 8238 | ENCODING=ISO8859 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8239 | echo "$as_me:$LINENO: result: iso8859" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8240 | echo "${ECHO_T}iso8859" >&6 |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 8241 | else |
| 8242 | ENCODING=UTF8 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8243 | echo "$as_me:$LINENO: result: UTF-8" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8244 | echo "${ECHO_T}UTF-8" >&6 |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 8245 | fi |
| 8246 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8247 | |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 8248 | ########## |
| 8249 | # Do we want to support in-ram databases for ATTACH DATABASE and sqlite_open |
| 8250 | # |
| 8251 | # Check whether --enable-incore-db or --disable-incore-db was given. |
| 8252 | if test "${enable_incore_db+set}" = set; then |
| 8253 | enableval="$enable_incore_db" |
| 8254 | |
| 8255 | else |
paul | 2dc96f9 | 2003-04-20 11:46:34 +0000 | [diff] [blame] | 8256 | enable_incore_db=yes |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 8257 | fi; |
| 8258 | echo "$as_me:$LINENO: checking whether to support incore databases for attach and open" >&5 |
| 8259 | echo $ECHO_N "checking whether to support incore databases for attach and open... $ECHO_C" >&6 |
paul | 2dc96f9 | 2003-04-20 11:46:34 +0000 | [diff] [blame] | 8260 | if test "$enable_incore_db" = "no"; then |
| 8261 | INMEMORYDB=0 |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 8262 | echo "$as_me:$LINENO: result: no" >&5 |
| 8263 | echo "${ECHO_T}no" >&6 |
| 8264 | else |
paul | 2dc96f9 | 2003-04-20 11:46:34 +0000 | [diff] [blame] | 8265 | INMEMORYDB=1 |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 8266 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8267 | echo "${ECHO_T}yes" >&6 |
| 8268 | fi |
| 8269 | |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 8270 | ########## |
| 8271 | # Do we want to support release |
| 8272 | # |
| 8273 | # Check whether --enable-releasemode or --disable-releasemode was given. |
| 8274 | if test "${enable_releasemode+set}" = set; then |
| 8275 | enableval="$enable_releasemode" |
| 8276 | |
| 8277 | else |
| 8278 | enable_releasemode=no |
| 8279 | fi; |
| 8280 | echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5 |
| 8281 | echo $ECHO_N "checking whether to support shared library linked as release mode or not... $ECHO_C" >&6 |
| 8282 | if test "$enable_releasemode" = "no"; then |
| 8283 | ALLOWRELEASE="" |
| 8284 | echo "$as_me:$LINENO: result: no" >&5 |
| 8285 | echo "${ECHO_T}no" >&6 |
| 8286 | else |
| 8287 | ALLOWRELEASE="-release `cat VERSION`" |
| 8288 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8289 | echo "${ECHO_T}yes" >&6 |
| 8290 | fi |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 8291 | |
| 8292 | ########## |
| 8293 | # Do we want temporary databases in memory |
| 8294 | # |
| 8295 | # Check whether --enable-tempdb-in-ram or --disable-tempdb-in-ram was given. |
| 8296 | if test "${enable_tempdb_in_ram+set}" = set; then |
| 8297 | enableval="$enable_tempdb_in_ram" |
| 8298 | |
| 8299 | else |
paul | 2dc96f9 | 2003-04-20 11:46:34 +0000 | [diff] [blame] | 8300 | enable_tempdb_in_ram=no |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 8301 | fi; |
| 8302 | echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5 |
| 8303 | echo $ECHO_N "checking whether to use an in-ram database for temporary tables... $ECHO_C" >&6 |
paul | 2dc96f9 | 2003-04-20 11:46:34 +0000 | [diff] [blame] | 8304 | case "$enable_tempdb_in_ram" in |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 8305 | never ) |
paul | 2dc96f9 | 2003-04-20 11:46:34 +0000 | [diff] [blame] | 8306 | TEMP_STORE=0 |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 8307 | echo "$as_me:$LINENO: result: never" >&5 |
| 8308 | echo "${ECHO_T}never" >&6 |
| 8309 | ;; |
| 8310 | no ) |
paul | 2dc96f9 | 2003-04-20 11:46:34 +0000 | [diff] [blame] | 8311 | INMEMORYDB=1 |
| 8312 | TEMP_STORE=1 |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 8313 | echo "$as_me:$LINENO: result: no" >&5 |
| 8314 | echo "${ECHO_T}no" >&6 |
| 8315 | ;; |
| 8316 | always ) |
paul | 2dc96f9 | 2003-04-20 11:46:34 +0000 | [diff] [blame] | 8317 | INMEMORYDB=1 |
| 8318 | TEMP_STORE=3 |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 8319 | echo "$as_me:$LINENO: result: always" >&5 |
| 8320 | echo "${ECHO_T}always" >&6 |
| 8321 | ;; |
| 8322 | * ) |
paul | 2dc96f9 | 2003-04-20 11:46:34 +0000 | [diff] [blame] | 8323 | INMEMORYDB=1 |
| 8324 | TEMP_STORE=2 |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 8325 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8326 | echo "${ECHO_T}yes" >&6 |
| 8327 | ;; |
| 8328 | esac |
| 8329 | |
| 8330 | |
| 8331 | |
paul | 2dc96f9 | 2003-04-20 11:46:34 +0000 | [diff] [blame] | 8332 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8333 | ########### |
| 8334 | # Lots of things are different if we are compiling for Windows using |
| 8335 | # the CYGWIN environment. So check for that special case and handle |
| 8336 | # things accordingly. |
| 8337 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8338 | echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8339 | echo $ECHO_N "checking if executables have the .exe suffix... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8340 | if test "$config_BUILD_EXEEXT" = ".exe"; then |
| 8341 | CYGWIN=yes |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8342 | echo "$as_me:$LINENO: result: yes" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8343 | echo "${ECHO_T}yes" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8344 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8345 | echo "$as_me:$LINENO: result: unknown" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8346 | echo "${ECHO_T}unknown" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8347 | fi |
| 8348 | if test "$CYGWIN" != "yes"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8349 | |
| 8350 | case $host_os in |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8351 | *cygwin* ) CYGWIN=yes;; |
| 8352 | * ) CYGWIN=no;; |
| 8353 | esac |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8354 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8355 | fi |
| 8356 | if test "$CYGWIN" = "yes"; then |
| 8357 | BUILD_EXEEXT=.exe |
| 8358 | else |
| 8359 | BUILD_EXEEXT="" |
| 8360 | fi |
| 8361 | if test "$cross" = "0"; then |
| 8362 | TARGET_EXEEXT=$BUILD_EXEEXT |
| 8363 | else |
| 8364 | TARGET_EXEEXT=$config_TARGET_EXEEXT |
| 8365 | fi |
| 8366 | if test "$TARGET_EXEEXT" = ".exe"; then |
| 8367 | OS_UNIX=0 |
| 8368 | OS_WIN=1 |
| 8369 | tclsubdir=win |
| 8370 | else |
| 8371 | OS_UNIX=1 |
| 8372 | OS_WIN=0 |
| 8373 | tclsubdir=unix |
| 8374 | fi |
| 8375 | TARGET_CFLAGS="$TARGET_CFLAGS -DOS_UNIX=$OS_UNIX -DOS_WIN=$OS_WIN" |
| 8376 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8377 | |
| 8378 | |
| 8379 | |
| 8380 | |
| 8381 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8382 | ########## |
| 8383 | # Extract generic linker options from the environment. |
| 8384 | # |
| 8385 | if test "$config_TARGET_LIBS" != ""; then |
| 8386 | TARGET_LIBS=$config_TARGET_LIBS |
| 8387 | else |
| 8388 | TARGET_LIBS="" |
| 8389 | fi |
| 8390 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8391 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8392 | ########## |
| 8393 | # Figure out what C libraries are required to compile Tcl programs. |
| 8394 | # |
| 8395 | if test "$config_TARGET_TCL_LIBS" != ""; then |
| 8396 | TARGET_TCL_LIBS="$config_TARGET_TCL_LIBS" |
| 8397 | else |
| 8398 | if test "$with_tcl" != ""; then |
| 8399 | extra=`echo $with_tcl/$tclsubdir/libtcl8*.a` |
| 8400 | fi |
| 8401 | CC=$TARGET_CC |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8402 | echo "$as_me:$LINENO: checking for sin" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8403 | echo $ECHO_N "checking for sin... $ECHO_C" >&6 |
| 8404 | if test "${ac_cv_func_sin+set}" = set; then |
| 8405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8406 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8407 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8408 | #line $LINENO "configure" |
| 8409 | /* confdefs.h. */ |
| 8410 | _ACEOF |
| 8411 | cat confdefs.h >>conftest.$ac_ext |
| 8412 | cat >>conftest.$ac_ext <<_ACEOF |
| 8413 | /* end confdefs.h. */ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8414 | /* System header to define __stub macros and hopefully few prototypes, |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8415 | which can conflict with char sin (); below. |
| 8416 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8417 | <limits.h> exists even on freestanding compilers. */ |
| 8418 | #ifdef __STDC__ |
| 8419 | # include <limits.h> |
| 8420 | #else |
| 8421 | # include <assert.h> |
| 8422 | #endif |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8423 | /* Override any gcc2 internal prototype to avoid an error. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8424 | #ifdef __cplusplus |
| 8425 | extern "C" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8426 | { |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8427 | #endif |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8428 | /* We use char because int might match the return type of a gcc2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8429 | builtin and then its argument prototype would still apply. */ |
| 8430 | char sin (); |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8431 | /* The GNU C library defines this for functions which it implements |
| 8432 | to always fail with ENOSYS. Some functions are actually named |
| 8433 | something starting with __ and the normal name is an alias. */ |
| 8434 | #if defined (__stub_sin) || defined (__stub___sin) |
| 8435 | choke me |
| 8436 | #else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8437 | char (*f) () = sin; |
| 8438 | #endif |
| 8439 | #ifdef __cplusplus |
| 8440 | } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8441 | #endif |
| 8442 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8443 | int |
| 8444 | main () |
| 8445 | { |
| 8446 | return f != sin; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8447 | ; |
| 8448 | return 0; |
| 8449 | } |
| 8450 | _ACEOF |
| 8451 | rm -f conftest.$ac_objext conftest$ac_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8452 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8453 | (eval $ac_link) 2>&5 |
| 8454 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8456 | (exit $ac_status); } && |
| 8457 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8459 | (eval $ac_try) 2>&5 |
| 8460 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8462 | (exit $ac_status); }; }; then |
| 8463 | ac_cv_func_sin=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8464 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8465 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8467 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8468 | ac_cv_func_sin=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8469 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8470 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8471 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8472 | echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8473 | echo "${ECHO_T}$ac_cv_func_sin" >&6 |
| 8474 | if test $ac_cv_func_sin = yes; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8475 | LIBS="" |
| 8476 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8477 | LIBS="-lm" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8478 | fi |
| 8479 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8480 | |
| 8481 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8482 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 8483 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 8484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8485 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8486 | ac_check_lib_save_LIBS=$LIBS |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8487 | LIBS="-ldl $LIBS" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8488 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8489 | #line $LINENO "configure" |
| 8490 | /* confdefs.h. */ |
| 8491 | _ACEOF |
| 8492 | cat confdefs.h >>conftest.$ac_ext |
| 8493 | cat >>conftest.$ac_ext <<_ACEOF |
| 8494 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8495 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8496 | /* Override any gcc2 internal prototype to avoid an error. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8497 | #ifdef __cplusplus |
| 8498 | extern "C" |
| 8499 | #endif |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8500 | /* We use char because int might match the return type of a gcc2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8501 | builtin and then its argument prototype would still apply. */ |
| 8502 | char dlopen (); |
| 8503 | int |
| 8504 | main () |
| 8505 | { |
| 8506 | dlopen (); |
| 8507 | ; |
| 8508 | return 0; |
| 8509 | } |
| 8510 | _ACEOF |
| 8511 | rm -f conftest.$ac_objext conftest$ac_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8512 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8513 | (eval $ac_link) 2>&5 |
| 8514 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8516 | (exit $ac_status); } && |
| 8517 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8519 | (eval $ac_try) 2>&5 |
| 8520 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8522 | (exit $ac_status); }; }; then |
| 8523 | ac_cv_lib_dl_dlopen=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8524 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8525 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8526 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8527 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8528 | ac_cv_lib_dl_dlopen=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8529 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8530 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8531 | LIBS=$ac_check_lib_save_LIBS |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8532 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8533 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8534 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 8535 | if test $ac_cv_lib_dl_dlopen = yes; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8536 | cat >>confdefs.h <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8537 | #define HAVE_LIBDL 1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8538 | _ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8539 | |
| 8540 | LIBS="-ldl $LIBS" |
| 8541 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8542 | fi |
| 8543 | |
| 8544 | otherlibs=$LIBS |
| 8545 | if test "$extra" != ""; then |
| 8546 | LIBS=$extra |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8547 | else |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8548 | LIBS="" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8549 | echo "$as_me:$LINENO: checking for library containing Tcl_Init" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8550 | echo $ECHO_N "checking for library containing Tcl_Init... $ECHO_C" >&6 |
| 8551 | if test "${ac_cv_search_Tcl_Init+set}" = set; then |
| 8552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8553 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8554 | ac_func_search_save_LIBS=$LIBS |
| 8555 | ac_cv_search_Tcl_Init=no |
| 8556 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8557 | #line $LINENO "configure" |
| 8558 | /* confdefs.h. */ |
| 8559 | _ACEOF |
| 8560 | cat confdefs.h >>conftest.$ac_ext |
| 8561 | cat >>conftest.$ac_ext <<_ACEOF |
| 8562 | /* end confdefs.h. */ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8563 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8564 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8565 | #ifdef __cplusplus |
| 8566 | extern "C" |
| 8567 | #endif |
| 8568 | /* We use char because int might match the return type of a gcc2 |
| 8569 | builtin and then its argument prototype would still apply. */ |
| 8570 | char Tcl_Init (); |
| 8571 | int |
| 8572 | main () |
| 8573 | { |
| 8574 | Tcl_Init (); |
| 8575 | ; |
| 8576 | return 0; |
| 8577 | } |
| 8578 | _ACEOF |
| 8579 | rm -f conftest.$ac_objext conftest$ac_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8580 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8581 | (eval $ac_link) 2>&5 |
| 8582 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8584 | (exit $ac_status); } && |
| 8585 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8587 | (eval $ac_try) 2>&5 |
| 8588 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8590 | (exit $ac_status); }; }; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8591 | ac_cv_search_Tcl_Init="none required" |
| 8592 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8593 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8595 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8596 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8597 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8598 | if test "$ac_cv_search_Tcl_Init" = no; then |
| 8599 | for ac_lib in tcl8.4 tcl8.3 tcl8.2 tcl8.1 tcl8.0 tcl80 tcl; do |
| 8600 | LIBS="-l$ac_lib $otherlibs $ac_func_search_save_LIBS" |
| 8601 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8602 | #line $LINENO "configure" |
| 8603 | /* confdefs.h. */ |
| 8604 | _ACEOF |
| 8605 | cat confdefs.h >>conftest.$ac_ext |
| 8606 | cat >>conftest.$ac_ext <<_ACEOF |
| 8607 | /* end confdefs.h. */ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8608 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8609 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8610 | #ifdef __cplusplus |
| 8611 | extern "C" |
| 8612 | #endif |
| 8613 | /* We use char because int might match the return type of a gcc2 |
| 8614 | builtin and then its argument prototype would still apply. */ |
| 8615 | char Tcl_Init (); |
| 8616 | int |
| 8617 | main () |
| 8618 | { |
| 8619 | Tcl_Init (); |
| 8620 | ; |
| 8621 | return 0; |
| 8622 | } |
| 8623 | _ACEOF |
| 8624 | rm -f conftest.$ac_objext conftest$ac_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8625 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8626 | (eval $ac_link) 2>&5 |
| 8627 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8629 | (exit $ac_status); } && |
| 8630 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8632 | (eval $ac_try) 2>&5 |
| 8633 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8635 | (exit $ac_status); }; }; then |
| 8636 | ac_cv_search_Tcl_Init="-l$ac_lib" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8637 | break |
| 8638 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8639 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8641 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8642 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8643 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8644 | done |
| 8645 | fi |
| 8646 | LIBS=$ac_func_search_save_LIBS |
| 8647 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8648 | echo "$as_me:$LINENO: result: $ac_cv_search_Tcl_Init" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8649 | echo "${ECHO_T}$ac_cv_search_Tcl_Init" >&6 |
| 8650 | if test "$ac_cv_search_Tcl_Init" != no; then |
| 8651 | test "$ac_cv_search_Tcl_Init" = "none required" || LIBS="$ac_cv_search_Tcl_Init $LIBS" |
| 8652 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8653 | fi |
| 8654 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8655 | fi |
| 8656 | TARGET_TCL_LIBS="$LIBS $otherlibs" |
| 8657 | fi |
| 8658 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8659 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8660 | ########## |
| 8661 | # Figure out where to get the TCL header files. |
| 8662 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8663 | echo "$as_me:$LINENO: checking TCL header files" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8664 | echo $ECHO_N "checking TCL header files... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8665 | found=no |
| 8666 | if test "$config_TARGET_TCL_INC" != ""; then |
| 8667 | TARGET_TCL_INC=$config_TARGET_TCL_INC |
| 8668 | found=yes |
| 8669 | else |
| 8670 | if test "$with_tcl" != ""; then |
| 8671 | TARGET_TCL_INC="-I$with_tcl/generic -I$with_tcl/$tclsubdir" |
| 8672 | found=yes |
| 8673 | else |
| 8674 | TARGET_TCL_INC="" |
| 8675 | found=no |
| 8676 | fi |
| 8677 | fi |
| 8678 | if test "$found" = "yes"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8679 | echo "$as_me:$LINENO: result: $TARGET_TCL_INC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8680 | echo "${ECHO_T}$TARGET_TCL_INC" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8681 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8682 | echo "$as_me:$LINENO: result: not specified: still searching..." >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8683 | echo "${ECHO_T}not specified: still searching..." >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8684 | if test "${ac_cv_header_tcl_h+set}" = set; then |
| 8685 | echo "$as_me:$LINENO: checking for tcl.h" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8686 | echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6 |
| 8687 | if test "${ac_cv_header_tcl_h+set}" = set; then |
| 8688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8689 | fi |
| 8690 | echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5 |
| 8691 | echo "${ECHO_T}$ac_cv_header_tcl_h" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8692 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8693 | # Is the header compilable? |
| 8694 | echo "$as_me:$LINENO: checking tcl.h usability" >&5 |
| 8695 | echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6 |
| 8696 | cat >conftest.$ac_ext <<_ACEOF |
| 8697 | #line $LINENO "configure" |
| 8698 | /* confdefs.h. */ |
| 8699 | _ACEOF |
| 8700 | cat confdefs.h >>conftest.$ac_ext |
| 8701 | cat >>conftest.$ac_ext <<_ACEOF |
| 8702 | /* end confdefs.h. */ |
| 8703 | $ac_includes_default |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8704 | #include <tcl.h> |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8705 | _ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8706 | rm -f conftest.$ac_objext |
| 8707 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8708 | (eval $ac_compile) 2>&5 |
| 8709 | ac_status=$? |
| 8710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8711 | (exit $ac_status); } && |
| 8712 | { ac_try='test -s conftest.$ac_objext' |
| 8713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8714 | (eval $ac_try) 2>&5 |
| 8715 | ac_status=$? |
| 8716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8717 | (exit $ac_status); }; }; then |
| 8718 | ac_header_compiler=yes |
| 8719 | else |
| 8720 | echo "$as_me: failed program was:" >&5 |
| 8721 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8722 | |
| 8723 | ac_header_compiler=no |
| 8724 | fi |
| 8725 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8726 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8727 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8728 | |
| 8729 | # Is the header present? |
| 8730 | echo "$as_me:$LINENO: checking tcl.h presence" >&5 |
| 8731 | echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6 |
| 8732 | cat >conftest.$ac_ext <<_ACEOF |
| 8733 | #line $LINENO "configure" |
| 8734 | /* confdefs.h. */ |
| 8735 | _ACEOF |
| 8736 | cat confdefs.h >>conftest.$ac_ext |
| 8737 | cat >>conftest.$ac_ext <<_ACEOF |
| 8738 | /* end confdefs.h. */ |
| 8739 | #include <tcl.h> |
| 8740 | _ACEOF |
| 8741 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8742 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8743 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8744 | grep -v '^ *+' conftest.er1 >conftest.err |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8745 | rm -f conftest.er1 |
| 8746 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8748 | (exit $ac_status); } >/dev/null; then |
| 8749 | if test -s conftest.err; then |
| 8750 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8751 | else |
| 8752 | ac_cpp_err= |
| 8753 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8754 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8755 | ac_cpp_err=yes |
| 8756 | fi |
| 8757 | if test -z "$ac_cpp_err"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8758 | ac_header_preproc=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8759 | else |
| 8760 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8761 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8762 | |
| 8763 | ac_header_preproc=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8764 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8765 | rm -f conftest.err conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8766 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8767 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8768 | |
| 8769 | # So? What about this header? |
| 8770 | case $ac_header_compiler:$ac_header_preproc in |
| 8771 | yes:no ) |
| 8772 | { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8773 | echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8774 | { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5 |
| 8775 | echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;} |
| 8776 | ( |
| 8777 | cat <<\_ASBOX |
| 8778 | ## ------------------------------------ ## |
| 8779 | ## Report this to bug-autoconf@gnu.org. ## |
| 8780 | ## ------------------------------------ ## |
| 8781 | _ASBOX |
| 8782 | ) | |
| 8783 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8784 | ;; |
| 8785 | no:yes ) |
| 8786 | { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5 |
| 8787 | echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;} |
| 8788 | { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5 |
| 8789 | echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;} |
| 8790 | { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5 |
| 8791 | echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;} |
| 8792 | ( |
| 8793 | cat <<\_ASBOX |
| 8794 | ## ------------------------------------ ## |
| 8795 | ## Report this to bug-autoconf@gnu.org. ## |
| 8796 | ## ------------------------------------ ## |
| 8797 | _ASBOX |
| 8798 | ) | |
| 8799 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8800 | ;; |
| 8801 | esac |
| 8802 | echo "$as_me:$LINENO: checking for tcl.h" >&5 |
| 8803 | echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6 |
| 8804 | if test "${ac_cv_header_tcl_h+set}" = set; then |
| 8805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8806 | else |
| 8807 | ac_cv_header_tcl_h=$ac_header_preproc |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8808 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8809 | echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8810 | echo "${ECHO_T}$ac_cv_header_tcl_h" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8811 | |
| 8812 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8813 | if test $ac_cv_header_tcl_h = yes; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8814 | found=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8815 | fi |
| 8816 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8817 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8818 | fi |
| 8819 | if test "$found" = "no"; then |
drh | fdc99e9 | 2000-09-29 15:15:51 +0000 | [diff] [blame] | 8820 | for dir in /usr/local /usr/X11 /usr/X11R6 /usr/pkg /usr/contrib /usr; do |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8821 | as_ac_File=`echo "ac_cv_file_$dir/include/tcl.h" | $as_tr_sh` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8822 | echo "$as_me:$LINENO: checking for $dir/include/tcl.h" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8823 | echo $ECHO_N "checking for $dir/include/tcl.h... $ECHO_C" >&6 |
| 8824 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
| 8825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 8826 | else |
| 8827 | test "$cross_compiling" = yes && |
| 8828 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
| 8829 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
| 8830 | { (exit 1); exit 1; }; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8831 | if test -r "$dir/include/tcl.h"; then |
| 8832 | eval "$as_ac_File=yes" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8833 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8834 | eval "$as_ac_File=no" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8835 | fi |
| 8836 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8837 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8838 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
| 8839 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8840 | found=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8841 | fi |
| 8842 | |
| 8843 | if test "$found" = "yes"; then |
| 8844 | TARGET_TCL_INC="-I$dir/include" |
| 8845 | break |
| 8846 | fi |
| 8847 | done |
| 8848 | fi |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 8849 | if test "$found" = "no"; then |
| 8850 | TARGET_TCL_INC="-DNO_TCL=1" |
| 8851 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8852 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8853 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8854 | ########## |
| 8855 | # Figure out what C libraries are required to compile programs |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8856 | # that use "readline()" library. |
| 8857 | # |
| 8858 | if test "$config_TARGET_READLINE_LIBS" != ""; then |
| 8859 | TARGET_READLINE_LIBS="$config_TARGET_READLINE_LIBS" |
| 8860 | else |
| 8861 | CC=$TARGET_CC |
| 8862 | LIBS="" |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 8863 | echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
| 8864 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6 |
| 8865 | if test "${ac_cv_search_tgetent+set}" = set; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8867 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8868 | ac_func_search_save_LIBS=$LIBS |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 8869 | ac_cv_search_tgetent=no |
| 8870 | cat >conftest.$ac_ext <<_ACEOF |
| 8871 | #line $LINENO "configure" |
| 8872 | /* confdefs.h. */ |
| 8873 | _ACEOF |
| 8874 | cat confdefs.h >>conftest.$ac_ext |
| 8875 | cat >>conftest.$ac_ext <<_ACEOF |
| 8876 | /* end confdefs.h. */ |
| 8877 | |
| 8878 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8879 | #ifdef __cplusplus |
| 8880 | extern "C" |
| 8881 | #endif |
| 8882 | /* We use char because int might match the return type of a gcc2 |
| 8883 | builtin and then its argument prototype would still apply. */ |
| 8884 | char tgetent (); |
| 8885 | int |
| 8886 | main () |
| 8887 | { |
| 8888 | tgetent (); |
| 8889 | ; |
| 8890 | return 0; |
| 8891 | } |
| 8892 | _ACEOF |
| 8893 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8894 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8895 | (eval $ac_link) 2>&5 |
| 8896 | ac_status=$? |
| 8897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8898 | (exit $ac_status); } && |
| 8899 | { ac_try='test -s conftest$ac_exeext' |
| 8900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8901 | (eval $ac_try) 2>&5 |
| 8902 | ac_status=$? |
| 8903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8904 | (exit $ac_status); }; }; then |
| 8905 | ac_cv_search_tgetent="none required" |
| 8906 | else |
| 8907 | echo "$as_me: failed program was:" >&5 |
| 8908 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8909 | |
| 8910 | fi |
| 8911 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8912 | if test "$ac_cv_search_tgetent" = no; then |
| 8913 | for ac_lib in readline ncurses curses termcap; do |
| 8914 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8915 | cat >conftest.$ac_ext <<_ACEOF |
| 8916 | #line $LINENO "configure" |
| 8917 | /* confdefs.h. */ |
| 8918 | _ACEOF |
| 8919 | cat confdefs.h >>conftest.$ac_ext |
| 8920 | cat >>conftest.$ac_ext <<_ACEOF |
| 8921 | /* end confdefs.h. */ |
| 8922 | |
| 8923 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8924 | #ifdef __cplusplus |
| 8925 | extern "C" |
| 8926 | #endif |
| 8927 | /* We use char because int might match the return type of a gcc2 |
| 8928 | builtin and then its argument prototype would still apply. */ |
| 8929 | char tgetent (); |
| 8930 | int |
| 8931 | main () |
| 8932 | { |
| 8933 | tgetent (); |
| 8934 | ; |
| 8935 | return 0; |
| 8936 | } |
| 8937 | _ACEOF |
| 8938 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8939 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8940 | (eval $ac_link) 2>&5 |
| 8941 | ac_status=$? |
| 8942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8943 | (exit $ac_status); } && |
| 8944 | { ac_try='test -s conftest$ac_exeext' |
| 8945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8946 | (eval $ac_try) 2>&5 |
| 8947 | ac_status=$? |
| 8948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8949 | (exit $ac_status); }; }; then |
| 8950 | ac_cv_search_tgetent="-l$ac_lib" |
| 8951 | break |
| 8952 | else |
| 8953 | echo "$as_me: failed program was:" >&5 |
| 8954 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8955 | |
| 8956 | fi |
| 8957 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8958 | done |
| 8959 | fi |
| 8960 | LIBS=$ac_func_search_save_LIBS |
| 8961 | fi |
| 8962 | echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
| 8963 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6 |
| 8964 | if test "$ac_cv_search_tgetent" != no; then |
| 8965 | test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" |
| 8966 | |
| 8967 | fi |
| 8968 | |
| 8969 | |
| 8970 | echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
| 8971 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6 |
| 8972 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
| 8973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8974 | else |
| 8975 | ac_check_lib_save_LIBS=$LIBS |
| 8976 | LIBS="-lreadline $LIBS" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8977 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8978 | #line $LINENO "configure" |
| 8979 | /* confdefs.h. */ |
| 8980 | _ACEOF |
| 8981 | cat confdefs.h >>conftest.$ac_ext |
| 8982 | cat >>conftest.$ac_ext <<_ACEOF |
| 8983 | /* end confdefs.h. */ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8984 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8985 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8986 | #ifdef __cplusplus |
| 8987 | extern "C" |
| 8988 | #endif |
| 8989 | /* We use char because int might match the return type of a gcc2 |
| 8990 | builtin and then its argument prototype would still apply. */ |
| 8991 | char readline (); |
| 8992 | int |
| 8993 | main () |
| 8994 | { |
| 8995 | readline (); |
| 8996 | ; |
| 8997 | return 0; |
| 8998 | } |
| 8999 | _ACEOF |
| 9000 | rm -f conftest.$ac_objext conftest$ac_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9001 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9002 | (eval $ac_link) 2>&5 |
| 9003 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9005 | (exit $ac_status); } && |
| 9006 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9008 | (eval $ac_try) 2>&5 |
| 9009 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9011 | (exit $ac_status); }; }; then |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 9012 | ac_cv_lib_readline_readline=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9013 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9014 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9015 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9016 | |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 9017 | ac_cv_lib_readline_readline=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9018 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9019 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 9020 | LIBS=$ac_check_lib_save_LIBS |
| 9021 | fi |
| 9022 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
| 9023 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6 |
| 9024 | if test $ac_cv_lib_readline_readline = yes; then |
| 9025 | cat >>confdefs.h <<_ACEOF |
| 9026 | #define HAVE_LIBREADLINE 1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9027 | _ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9028 | |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 9029 | LIBS="-lreadline $LIBS" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9030 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9031 | fi |
| 9032 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9033 | TARGET_READLINE_LIBS="$LIBS" |
| 9034 | fi |
| 9035 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9036 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9037 | ########## |
| 9038 | # Figure out where to get the READLINE header files. |
| 9039 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9040 | echo "$as_me:$LINENO: checking readline header files" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9041 | echo $ECHO_N "checking readline header files... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9042 | found=no |
| 9043 | if test "$config_TARGET_READLINE_INC" != ""; then |
| 9044 | TARGET_READLINE_INC=$config_TARGET_READLINE_INC |
| 9045 | found=yes |
| 9046 | fi |
| 9047 | if test "$found" = "yes"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9048 | echo "$as_me:$LINENO: result: $TARGET_READLINE_INC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9049 | echo "${ECHO_T}$TARGET_READLINE_INC" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9050 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9051 | echo "$as_me:$LINENO: result: not specified: still searching..." >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9052 | echo "${ECHO_T}not specified: still searching..." >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9053 | if test "${ac_cv_header_readline_h+set}" = set; then |
| 9054 | echo "$as_me:$LINENO: checking for readline.h" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9055 | echo $ECHO_N "checking for readline.h... $ECHO_C" >&6 |
| 9056 | if test "${ac_cv_header_readline_h+set}" = set; then |
| 9057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9058 | fi |
| 9059 | echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5 |
| 9060 | echo "${ECHO_T}$ac_cv_header_readline_h" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9061 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9062 | # Is the header compilable? |
| 9063 | echo "$as_me:$LINENO: checking readline.h usability" >&5 |
| 9064 | echo $ECHO_N "checking readline.h usability... $ECHO_C" >&6 |
| 9065 | cat >conftest.$ac_ext <<_ACEOF |
| 9066 | #line $LINENO "configure" |
| 9067 | /* confdefs.h. */ |
| 9068 | _ACEOF |
| 9069 | cat confdefs.h >>conftest.$ac_ext |
| 9070 | cat >>conftest.$ac_ext <<_ACEOF |
| 9071 | /* end confdefs.h. */ |
| 9072 | $ac_includes_default |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9073 | #include <readline.h> |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9074 | _ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9075 | rm -f conftest.$ac_objext |
| 9076 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9077 | (eval $ac_compile) 2>&5 |
| 9078 | ac_status=$? |
| 9079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9080 | (exit $ac_status); } && |
| 9081 | { ac_try='test -s conftest.$ac_objext' |
| 9082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9083 | (eval $ac_try) 2>&5 |
| 9084 | ac_status=$? |
| 9085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9086 | (exit $ac_status); }; }; then |
| 9087 | ac_header_compiler=yes |
| 9088 | else |
| 9089 | echo "$as_me: failed program was:" >&5 |
| 9090 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9091 | |
| 9092 | ac_header_compiler=no |
| 9093 | fi |
| 9094 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9095 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9096 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9097 | |
| 9098 | # Is the header present? |
| 9099 | echo "$as_me:$LINENO: checking readline.h presence" >&5 |
| 9100 | echo $ECHO_N "checking readline.h presence... $ECHO_C" >&6 |
| 9101 | cat >conftest.$ac_ext <<_ACEOF |
| 9102 | #line $LINENO "configure" |
| 9103 | /* confdefs.h. */ |
| 9104 | _ACEOF |
| 9105 | cat confdefs.h >>conftest.$ac_ext |
| 9106 | cat >>conftest.$ac_ext <<_ACEOF |
| 9107 | /* end confdefs.h. */ |
| 9108 | #include <readline.h> |
| 9109 | _ACEOF |
| 9110 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9111 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9112 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9113 | grep -v '^ *+' conftest.er1 >conftest.err |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9114 | rm -f conftest.er1 |
| 9115 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9117 | (exit $ac_status); } >/dev/null; then |
| 9118 | if test -s conftest.err; then |
| 9119 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9120 | else |
| 9121 | ac_cpp_err= |
| 9122 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9123 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9124 | ac_cpp_err=yes |
| 9125 | fi |
| 9126 | if test -z "$ac_cpp_err"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9127 | ac_header_preproc=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9128 | else |
| 9129 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9130 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9131 | |
| 9132 | ac_header_preproc=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9133 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9134 | rm -f conftest.err conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9135 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9136 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9137 | |
| 9138 | # So? What about this header? |
| 9139 | case $ac_header_compiler:$ac_header_preproc in |
| 9140 | yes:no ) |
| 9141 | { echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9142 | echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9143 | { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5 |
| 9144 | echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;} |
| 9145 | ( |
| 9146 | cat <<\_ASBOX |
| 9147 | ## ------------------------------------ ## |
| 9148 | ## Report this to bug-autoconf@gnu.org. ## |
| 9149 | ## ------------------------------------ ## |
| 9150 | _ASBOX |
| 9151 | ) | |
| 9152 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9153 | ;; |
| 9154 | no:yes ) |
| 9155 | { echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5 |
| 9156 | echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;} |
| 9157 | { echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5 |
| 9158 | echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;} |
| 9159 | { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5 |
| 9160 | echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;} |
| 9161 | ( |
| 9162 | cat <<\_ASBOX |
| 9163 | ## ------------------------------------ ## |
| 9164 | ## Report this to bug-autoconf@gnu.org. ## |
| 9165 | ## ------------------------------------ ## |
| 9166 | _ASBOX |
| 9167 | ) | |
| 9168 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9169 | ;; |
| 9170 | esac |
| 9171 | echo "$as_me:$LINENO: checking for readline.h" >&5 |
| 9172 | echo $ECHO_N "checking for readline.h... $ECHO_C" >&6 |
| 9173 | if test "${ac_cv_header_readline_h+set}" = set; then |
| 9174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9175 | else |
| 9176 | ac_cv_header_readline_h=$ac_header_preproc |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9177 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9178 | echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9179 | echo "${ECHO_T}$ac_cv_header_readline_h" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9180 | |
| 9181 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9182 | if test $ac_cv_header_readline_h = yes; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9183 | found=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9184 | fi |
| 9185 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9186 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9187 | fi |
| 9188 | if test "$found" = "no"; then |
| 9189 | for dir in /usr /usr/local /usr/local/readline /usr/contrib; do |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9190 | as_ac_File=`echo "ac_cv_file_$dir/include/readline.h" | $as_tr_sh` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9191 | echo "$as_me:$LINENO: checking for $dir/include/readline.h" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9192 | echo $ECHO_N "checking for $dir/include/readline.h... $ECHO_C" >&6 |
| 9193 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
| 9194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 9195 | else |
| 9196 | test "$cross_compiling" = yes && |
| 9197 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
| 9198 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
| 9199 | { (exit 1); exit 1; }; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9200 | if test -r "$dir/include/readline.h"; then |
| 9201 | eval "$as_ac_File=yes" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9202 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9203 | eval "$as_ac_File=no" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9204 | fi |
| 9205 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9206 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9207 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
| 9208 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9209 | found=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9210 | fi |
| 9211 | |
| 9212 | if test "$found" = "yes"; then |
| 9213 | TARGET_READLINE_INC="-I$dir/include" |
| 9214 | break |
| 9215 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9216 | as_ac_File=`echo "ac_cv_file_$dir/include/readline/readline.h" | $as_tr_sh` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9217 | echo "$as_me:$LINENO: checking for $dir/include/readline/readline.h" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9218 | echo $ECHO_N "checking for $dir/include/readline/readline.h... $ECHO_C" >&6 |
| 9219 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
| 9220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 9221 | else |
| 9222 | test "$cross_compiling" = yes && |
| 9223 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
| 9224 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
| 9225 | { (exit 1); exit 1; }; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9226 | if test -r "$dir/include/readline/readline.h"; then |
| 9227 | eval "$as_ac_File=yes" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9228 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9229 | eval "$as_ac_File=no" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9230 | fi |
| 9231 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9232 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9233 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
| 9234 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9235 | found=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9236 | fi |
| 9237 | |
| 9238 | if test "$found" = "yes"; then |
| 9239 | TARGET_READLINE_INC="-I$dir/include/readline" |
| 9240 | break |
| 9241 | fi |
| 9242 | done |
| 9243 | fi |
| 9244 | if test "$found" = "yes"; then |
drh | 82ad383 | 2000-07-31 13:38:24 +0000 | [diff] [blame] | 9245 | if test "$TARGET_READLINE_LIBS" = ""; then |
| 9246 | TARGET_HAVE_READLINE=0 |
| 9247 | else |
| 9248 | TARGET_HAVE_READLINE=1 |
| 9249 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9250 | else |
| 9251 | TARGET_HAVE_READLINE=0 |
| 9252 | fi |
| 9253 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9254 | |
| 9255 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9256 | ######### |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 9257 | # Figure out whether or not we have a "usleep()" function. |
| 9258 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9259 | echo "$as_me:$LINENO: checking for usleep" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9260 | echo $ECHO_N "checking for usleep... $ECHO_C" >&6 |
| 9261 | if test "${ac_cv_func_usleep+set}" = set; then |
| 9262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 9263 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9264 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9265 | #line $LINENO "configure" |
| 9266 | /* confdefs.h. */ |
| 9267 | _ACEOF |
| 9268 | cat confdefs.h >>conftest.$ac_ext |
| 9269 | cat >>conftest.$ac_ext <<_ACEOF |
| 9270 | /* end confdefs.h. */ |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 9271 | /* System header to define __stub macros and hopefully few prototypes, |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9272 | which can conflict with char usleep (); below. |
| 9273 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9274 | <limits.h> exists even on freestanding compilers. */ |
| 9275 | #ifdef __STDC__ |
| 9276 | # include <limits.h> |
| 9277 | #else |
| 9278 | # include <assert.h> |
| 9279 | #endif |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 9280 | /* Override any gcc2 internal prototype to avoid an error. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9281 | #ifdef __cplusplus |
| 9282 | extern "C" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9283 | { |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9284 | #endif |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 9285 | /* We use char because int might match the return type of a gcc2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9286 | builtin and then its argument prototype would still apply. */ |
| 9287 | char usleep (); |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 9288 | /* The GNU C library defines this for functions which it implements |
| 9289 | to always fail with ENOSYS. Some functions are actually named |
| 9290 | something starting with __ and the normal name is an alias. */ |
| 9291 | #if defined (__stub_usleep) || defined (__stub___usleep) |
| 9292 | choke me |
| 9293 | #else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9294 | char (*f) () = usleep; |
| 9295 | #endif |
| 9296 | #ifdef __cplusplus |
| 9297 | } |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 9298 | #endif |
| 9299 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9300 | int |
| 9301 | main () |
| 9302 | { |
| 9303 | return f != usleep; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9304 | ; |
| 9305 | return 0; |
| 9306 | } |
| 9307 | _ACEOF |
| 9308 | rm -f conftest.$ac_objext conftest$ac_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9309 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9310 | (eval $ac_link) 2>&5 |
| 9311 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9313 | (exit $ac_status); } && |
| 9314 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9316 | (eval $ac_try) 2>&5 |
| 9317 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9319 | (exit $ac_status); }; }; then |
| 9320 | ac_cv_func_usleep=yes |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 9321 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9322 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9323 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9324 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9325 | ac_cv_func_usleep=no |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 9326 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9327 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 9328 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9329 | echo "$as_me:$LINENO: result: $ac_cv_func_usleep" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9330 | echo "${ECHO_T}$ac_cv_func_usleep" >&6 |
| 9331 | if test $ac_cv_func_usleep = yes; then |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 9332 | TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_USLEEP=1" |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 9333 | fi |
| 9334 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9335 | |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 9336 | ######### |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9337 | # Generate the output files. |
| 9338 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9339 | ac_config_files="$ac_config_files Makefile sqlite.pc" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9340 | cat >confcache <<\_ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9341 | # This file is a shell script that caches the results of configure |
| 9342 | # tests run on this system so they can be shared between configure |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9343 | # scripts and configure runs, see configure's option --config-cache. |
| 9344 | # It is not useful on other systems. If it contains results you don't |
| 9345 | # want to keep, you may remove or edit it. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9346 | # |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9347 | # config.status only pays attention to the cache file if you give it |
| 9348 | # the --recheck option to rerun configure. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9349 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9350 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9351 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 9352 | # following values. |
| 9353 | |
| 9354 | _ACEOF |
| 9355 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9356 | # The following way of writing the cache mishandles newlines in values, |
| 9357 | # but we know of no workaround that is simple, portable, and efficient. |
| 9358 | # So, don't put newlines in cache variables' values. |
| 9359 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 9360 | # and sets the high bit in the cache file unless we assign to the vars. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9361 | { |
| 9362 | (set) 2>&1 | |
| 9363 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 9364 | *ac_space=\ *) |
| 9365 | # `set' does not quote correctly, so add quotes (double-quote |
| 9366 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 9367 | sed -n \ |
| 9368 | "s/'/'\\\\''/g; |
| 9369 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 9370 | ;; |
| 9371 | *) |
| 9372 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 9373 | sed -n \ |
| 9374 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 9375 | ;; |
| 9376 | esac; |
| 9377 | } | |
| 9378 | sed ' |
| 9379 | t clear |
| 9380 | : clear |
| 9381 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 9382 | t end |
| 9383 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 9384 | : end' >>confcache |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9385 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9386 | if test -w $cache_file; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9387 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 9388 | cat confcache >$cache_file |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9389 | else |
| 9390 | echo "not updating unwritable cache $cache_file" |
| 9391 | fi |
| 9392 | fi |
| 9393 | rm -f confcache |
| 9394 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9395 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 9396 | # Let make expand exec_prefix. |
| 9397 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 9398 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9399 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 9400 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 9401 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 9402 | # (actually we leave an empty line to preserve line numbers). |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9403 | if test "x$srcdir" = x.; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9404 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 9405 | s/:*\$(srcdir):*/:/; |
| 9406 | s/:*\${srcdir}:*/:/; |
| 9407 | s/:*@srcdir@:*/:/; |
| 9408 | s/^\([^=]*=[ ]*\):*/\1/; |
| 9409 | s/:*$//; |
| 9410 | s/^[^=]*=[ ]*$//; |
| 9411 | }' |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9412 | fi |
| 9413 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9414 | # Transform confdefs.h into DEFS. |
| 9415 | # Protect against shell expansion while executing Makefile rules. |
| 9416 | # Protect against Makefile macro expansion. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9417 | # |
| 9418 | # If the first sed substitution is executed (which looks for macros that |
| 9419 | # take arguments), then we branch to the quote section. Otherwise, |
| 9420 | # look for a macro that doesn't take arguments. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9421 | cat >confdef2opt.sed <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9422 | t clear |
| 9423 | : clear |
| 9424 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g |
| 9425 | t quote |
| 9426 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g |
| 9427 | t quote |
| 9428 | d |
| 9429 | : quote |
| 9430 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g |
| 9431 | s,\[,\\&,g |
| 9432 | s,\],\\&,g |
| 9433 | s,\$,$$,g |
| 9434 | p |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9435 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9436 | # We use echo to avoid assuming a particular line-breaking character. |
| 9437 | # The extra dot is to prevent the shell from consuming trailing |
| 9438 | # line-breaks from the sub-command output. A line-break within |
| 9439 | # single-quotes doesn't work because, if this script is created in a |
| 9440 | # platform that uses two characters for line-breaks (e.g., DOS), tr |
| 9441 | # would break. |
| 9442 | ac_LF_and_DOT=`echo; echo .` |
| 9443 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` |
| 9444 | rm -f confdef2opt.sed |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9445 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9446 | |
| 9447 | ac_libobjs= |
| 9448 | ac_ltlibobjs= |
| 9449 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 9450 | # 1. Remove the extension, and $U if already installed. |
| 9451 | ac_i=`echo "$ac_i" | |
| 9452 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 9453 | # 2. Add them. |
| 9454 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 9455 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 9456 | done |
| 9457 | LIBOBJS=$ac_libobjs |
| 9458 | |
| 9459 | LTLIBOBJS=$ac_ltlibobjs |
| 9460 | |
| 9461 | |
| 9462 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9463 | : ${CONFIG_STATUS=./config.status} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9464 | ac_clean_files_save=$ac_clean_files |
| 9465 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9466 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9467 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 9468 | cat >$CONFIG_STATUS <<_ACEOF |
| 9469 | #! $SHELL |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9470 | # Generated by $as_me. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9471 | # Run this file to recreate the current configuration. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9472 | # Compiler output produced by configure, useful for debugging |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9473 | # configure, is in config.log if it exists. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9474 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9475 | debug=false |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9476 | ac_cs_recheck=false |
| 9477 | ac_cs_silent=false |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9478 | SHELL=\${CONFIG_SHELL-$SHELL} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9479 | _ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9480 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9481 | cat >>$CONFIG_STATUS <<\_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9482 | ## --------------------- ## |
| 9483 | ## M4sh Initialization. ## |
| 9484 | ## --------------------- ## |
| 9485 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9486 | # Be Bourne compatible |
| 9487 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 9488 | emulate sh |
| 9489 | NULLCMD=: |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9490 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 9491 | # is contrary to our usage. Disable this feature. |
| 9492 | alias -g '${1+"$@"}'='"$@"' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9493 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 9494 | set -o posix |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9495 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9496 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9497 | # Support unset when possible. |
| 9498 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 9499 | as_unset=unset |
| 9500 | else |
| 9501 | as_unset=false |
| 9502 | fi |
| 9503 | |
| 9504 | |
| 9505 | # Work around bugs in pre-3.0 UWIN ksh. |
| 9506 | $as_unset ENV MAIL MAILPATH |
| 9507 | PS1='$ ' |
| 9508 | PS2='> ' |
| 9509 | PS4='+ ' |
| 9510 | |
| 9511 | # NLS nuisances. |
| 9512 | for as_var in \ |
| 9513 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 9514 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 9515 | LC_TELEPHONE LC_TIME |
| 9516 | do |
| 9517 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 9518 | eval $as_var=C; export $as_var |
| 9519 | else |
| 9520 | $as_unset $as_var |
| 9521 | fi |
| 9522 | done |
| 9523 | |
| 9524 | # Required to use basename. |
| 9525 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 9526 | as_expr=expr |
| 9527 | else |
| 9528 | as_expr=false |
| 9529 | fi |
| 9530 | |
| 9531 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 9532 | as_basename=basename |
| 9533 | else |
| 9534 | as_basename=false |
| 9535 | fi |
| 9536 | |
| 9537 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9538 | # Name of the executable. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9539 | as_me=`$as_basename "$0" || |
| 9540 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 9541 | X"$0" : 'X\(//\)$' \| \ |
| 9542 | X"$0" : 'X\(/\)$' \| \ |
| 9543 | . : '\(.\)' 2>/dev/null || |
| 9544 | echo X/"$0" | |
| 9545 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 9546 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 9547 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 9548 | s/.*/./; q'` |
| 9549 | |
| 9550 | |
| 9551 | # PATH needs CR, and LINENO needs CR and PATH. |
| 9552 | # Avoid depending upon Character Ranges. |
| 9553 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 9554 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 9555 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 9556 | as_cr_digits='0123456789' |
| 9557 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 9558 | |
| 9559 | # The user is always right. |
| 9560 | if test "${PATH_SEPARATOR+set}" != set; then |
| 9561 | echo "#! /bin/sh" >conf$$.sh |
| 9562 | echo "exit 0" >>conf$$.sh |
| 9563 | chmod +x conf$$.sh |
| 9564 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 9565 | PATH_SEPARATOR=';' |
| 9566 | else |
| 9567 | PATH_SEPARATOR=: |
| 9568 | fi |
| 9569 | rm -f conf$$.sh |
| 9570 | fi |
| 9571 | |
| 9572 | |
| 9573 | as_lineno_1=$LINENO |
| 9574 | as_lineno_2=$LINENO |
| 9575 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 9576 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 9577 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 9578 | # Find who we are. Look in the path if we contain no path at all |
| 9579 | # relative or not. |
| 9580 | case $0 in |
| 9581 | *[\\/]* ) as_myself=$0 ;; |
| 9582 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9583 | for as_dir in $PATH |
| 9584 | do |
| 9585 | IFS=$as_save_IFS |
| 9586 | test -z "$as_dir" && as_dir=. |
| 9587 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 9588 | done |
| 9589 | |
| 9590 | ;; |
| 9591 | esac |
| 9592 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 9593 | # in which case we are not to be found in the path. |
| 9594 | if test "x$as_myself" = x; then |
| 9595 | as_myself=$0 |
| 9596 | fi |
| 9597 | if test ! -f "$as_myself"; then |
| 9598 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 9599 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 9600 | { (exit 1); exit 1; }; } |
| 9601 | fi |
| 9602 | case $CONFIG_SHELL in |
| 9603 | '') |
| 9604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9605 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 9606 | do |
| 9607 | IFS=$as_save_IFS |
| 9608 | test -z "$as_dir" && as_dir=. |
| 9609 | for as_base in sh bash ksh sh5; do |
| 9610 | case $as_dir in |
| 9611 | /*) |
| 9612 | if ("$as_dir/$as_base" -c ' |
| 9613 | as_lineno_1=$LINENO |
| 9614 | as_lineno_2=$LINENO |
| 9615 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 9616 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 9617 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 9618 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 9619 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 9620 | CONFIG_SHELL=$as_dir/$as_base |
| 9621 | export CONFIG_SHELL |
| 9622 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 9623 | fi;; |
| 9624 | esac |
| 9625 | done |
| 9626 | done |
| 9627 | ;; |
| 9628 | esac |
| 9629 | |
| 9630 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 9631 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 9632 | # line-number line before each line; the second 'sed' does the real |
| 9633 | # work. The second script uses 'N' to pair each line-number line |
| 9634 | # with the numbered line, and appends trailing '-' during |
| 9635 | # substitution so that $LINENO is not a special case at line end. |
| 9636 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 9637 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 9638 | sed '=' <$as_myself | |
| 9639 | sed ' |
| 9640 | N |
| 9641 | s,$,-, |
| 9642 | : loop |
| 9643 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 9644 | t loop |
| 9645 | s,-$,, |
| 9646 | s,^['$as_cr_digits']*\n,, |
| 9647 | ' >$as_me.lineno && |
| 9648 | chmod +x $as_me.lineno || |
| 9649 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 9650 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 9651 | { (exit 1); exit 1; }; } |
| 9652 | |
| 9653 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 9654 | # (the dirname of $[0] is not the place where we might find the |
| 9655 | # original and so on. Autoconf is especially sensible to this). |
| 9656 | . ./$as_me.lineno |
| 9657 | # Exit status is that of the last command. |
| 9658 | exit |
| 9659 | } |
| 9660 | |
| 9661 | |
| 9662 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 9663 | *c*,-n*) ECHO_N= ECHO_C=' |
| 9664 | ' ECHO_T=' ' ;; |
| 9665 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 9666 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 9667 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9668 | |
| 9669 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 9670 | as_expr=expr |
| 9671 | else |
| 9672 | as_expr=false |
| 9673 | fi |
| 9674 | |
| 9675 | rm -f conf$$ conf$$.exe conf$$.file |
| 9676 | echo >conf$$.file |
| 9677 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 9678 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 9679 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 9680 | if test -f conf$$.exe; then |
| 9681 | # Don't use ln at all; we don't have any links |
| 9682 | as_ln_s='cp -p' |
| 9683 | else |
| 9684 | as_ln_s='ln -s' |
| 9685 | fi |
| 9686 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 9687 | as_ln_s=ln |
| 9688 | else |
| 9689 | as_ln_s='cp -p' |
| 9690 | fi |
| 9691 | rm -f conf$$ conf$$.exe conf$$.file |
| 9692 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9693 | if mkdir -p . 2>/dev/null; then |
| 9694 | as_mkdir_p=: |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9695 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9696 | as_mkdir_p=false |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9697 | fi |
| 9698 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9699 | as_executable_p="test -f" |
| 9700 | |
| 9701 | # Sed expression to map a string onto a valid CPP name. |
| 9702 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 9703 | |
| 9704 | # Sed expression to map a string onto a valid variable name. |
| 9705 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 9706 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9707 | |
| 9708 | # IFS |
| 9709 | # We need space, tab and new line, in precisely that order. |
| 9710 | as_nl=' |
| 9711 | ' |
| 9712 | IFS=" $as_nl" |
| 9713 | |
| 9714 | # CDPATH. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9715 | $as_unset CDPATH |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9716 | |
| 9717 | exec 6>&1 |
| 9718 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9719 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 9720 | # report actual input values of CONFIG_FILES etc. instead of their |
| 9721 | # values after options handling. Logging --version etc. is OK. |
| 9722 | exec 5>>config.log |
| 9723 | { |
| 9724 | echo |
| 9725 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 9726 | ## Running $as_me. ## |
| 9727 | _ASBOX |
| 9728 | } >&5 |
| 9729 | cat >&5 <<_CSEOF |
| 9730 | |
| 9731 | This file was extended by $as_me, which was |
| 9732 | generated by GNU Autoconf 2.57. Invocation command line was |
| 9733 | |
| 9734 | CONFIG_FILES = $CONFIG_FILES |
| 9735 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 9736 | CONFIG_LINKS = $CONFIG_LINKS |
| 9737 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 9738 | $ $0 $@ |
| 9739 | |
| 9740 | _CSEOF |
| 9741 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 9742 | echo >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9743 | _ACEOF |
| 9744 | |
| 9745 | # Files that config.status was made for. |
| 9746 | if test -n "$ac_config_files"; then |
| 9747 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 9748 | fi |
| 9749 | |
| 9750 | if test -n "$ac_config_headers"; then |
| 9751 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 9752 | fi |
| 9753 | |
| 9754 | if test -n "$ac_config_links"; then |
| 9755 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 9756 | fi |
| 9757 | |
| 9758 | if test -n "$ac_config_commands"; then |
| 9759 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 9760 | fi |
| 9761 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9762 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9763 | |
| 9764 | ac_cs_usage="\ |
| 9765 | \`$as_me' instantiates files from templates according to the |
| 9766 | current configuration. |
| 9767 | |
| 9768 | Usage: $0 [OPTIONS] [FILE]... |
| 9769 | |
| 9770 | -h, --help print this help, then exit |
| 9771 | -V, --version print version number, then exit |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9772 | -q, --quiet do not print progress messages |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9773 | -d, --debug don't remove temporary files |
| 9774 | --recheck update $as_me by reconfiguring in the same conditions |
| 9775 | --file=FILE[:TEMPLATE] |
| 9776 | instantiate the configuration file FILE |
| 9777 | |
| 9778 | Configuration files: |
| 9779 | $config_files |
| 9780 | |
| 9781 | Report bugs to <bug-autoconf@gnu.org>." |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9782 | _ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9783 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9784 | cat >>$CONFIG_STATUS <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9785 | ac_cs_version="\\ |
| 9786 | config.status |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9787 | configured by $0, generated by GNU Autoconf 2.57, |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9788 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9789 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9790 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 9791 | Free Software Foundation, Inc. |
| 9792 | This config.status script is free software; the Free Software Foundation |
| 9793 | gives unlimited permission to copy, distribute and modify it." |
| 9794 | srcdir=$srcdir |
| 9795 | INSTALL="$INSTALL" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9796 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9797 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9798 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9799 | # If no file are specified by the user, then we need to provide default |
| 9800 | # value. By we need to know if files were specified by the user. |
| 9801 | ac_need_defaults=: |
| 9802 | while test $# != 0 |
| 9803 | do |
| 9804 | case $1 in |
| 9805 | --*=*) |
| 9806 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 9807 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9808 | ac_shift=: |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9809 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9810 | -*) |
| 9811 | ac_option=$1 |
| 9812 | ac_optarg=$2 |
| 9813 | ac_shift=shift |
| 9814 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9815 | *) # This is not an option, so the user has probably given explicit |
| 9816 | # arguments. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9817 | ac_option=$1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9818 | ac_need_defaults=false;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9819 | esac |
| 9820 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9821 | case $ac_option in |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9822 | # Handling of the options. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9823 | _ACEOF |
| 9824 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9825 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9826 | ac_cs_recheck=: ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9827 | --version | --vers* | -V ) |
| 9828 | echo "$ac_cs_version"; exit 0 ;; |
| 9829 | --he | --h) |
| 9830 | # Conflict between --help and --header |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9831 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9832 | Try \`$0 --help' for more information." >&5 |
| 9833 | echo "$as_me: error: ambiguous option: $1 |
| 9834 | Try \`$0 --help' for more information." >&2;} |
| 9835 | { (exit 1); exit 1; }; };; |
| 9836 | --help | --hel | -h ) |
| 9837 | echo "$ac_cs_usage"; exit 0 ;; |
| 9838 | --debug | --d* | -d ) |
| 9839 | debug=: ;; |
| 9840 | --file | --fil | --fi | --f ) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9841 | $ac_shift |
| 9842 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9843 | ac_need_defaults=false;; |
| 9844 | --header | --heade | --head | --hea ) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9845 | $ac_shift |
| 9846 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9847 | ac_need_defaults=false;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9848 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 9849 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 9850 | ac_cs_silent=: ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9851 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9852 | # This is an error. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9853 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9854 | Try \`$0 --help' for more information." >&5 |
| 9855 | echo "$as_me: error: unrecognized option: $1 |
| 9856 | Try \`$0 --help' for more information." >&2;} |
| 9857 | { (exit 1); exit 1; }; } ;; |
| 9858 | |
| 9859 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 9860 | |
| 9861 | esac |
| 9862 | shift |
| 9863 | done |
| 9864 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9865 | ac_configure_extra_args= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9866 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9867 | if $ac_cs_silent; then |
| 9868 | exec 6>/dev/null |
| 9869 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 9870 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9871 | |
| 9872 | _ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9873 | cat >>$CONFIG_STATUS <<_ACEOF |
| 9874 | if \$ac_cs_recheck; then |
| 9875 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 9876 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 9877 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9878 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9879 | _ACEOF |
| 9880 | |
| 9881 | |
| 9882 | |
| 9883 | |
| 9884 | |
| 9885 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9886 | for ac_config_target in $ac_config_targets |
| 9887 | do |
| 9888 | case "$ac_config_target" in |
| 9889 | # Handling of arguments. |
| 9890 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9891 | "sqlite.pc" ) CONFIG_FILES="$CONFIG_FILES sqlite.pc" ;; |
| 9892 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9893 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 9894 | { (exit 1); exit 1; }; };; |
| 9895 | esac |
| 9896 | done |
| 9897 | |
| 9898 | # If the user did not use the arguments to specify the items to instantiate, |
| 9899 | # then the envvar interface is used. Set only those that are not. |
| 9900 | # We use the long form for the default assignment because of an extremely |
| 9901 | # bizarre bug on SunOS 4.1.3. |
| 9902 | if $ac_need_defaults; then |
| 9903 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 9904 | fi |
| 9905 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9906 | # Have a temporary directory for convenience. Make it in the build tree |
| 9907 | # simply because there is no reason to put it here, and in addition, |
| 9908 | # creating and moving files from /tmp can sometimes cause problems. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9909 | # Create a temporary directory, and hook for its removal unless debugging. |
| 9910 | $debug || |
| 9911 | { |
| 9912 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 9913 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 9914 | } |
| 9915 | |
| 9916 | # Create a (secure) tmp directory for tmp files. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9917 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9918 | { |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9919 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9920 | test -n "$tmp" && test -d "$tmp" |
| 9921 | } || |
| 9922 | { |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9923 | tmp=./confstat$$-$RANDOM |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9924 | (umask 077 && mkdir $tmp) |
| 9925 | } || |
| 9926 | { |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9927 | echo "$me: cannot create a temporary directory in ." >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9928 | { (exit 1); exit 1; } |
| 9929 | } |
| 9930 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9931 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9932 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9933 | cat >>$CONFIG_STATUS <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9934 | |
| 9935 | # |
| 9936 | # CONFIG_FILES section. |
| 9937 | # |
| 9938 | |
| 9939 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 9940 | # This happens for instance when ./config.status config.h |
| 9941 | if test -n "\$CONFIG_FILES"; then |
| 9942 | # Protect against being on the right side of a sed subst in config.status. |
| 9943 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 9944 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 9945 | s,@SHELL@,$SHELL,;t t |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9946 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 9947 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 9948 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 9949 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 9950 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 9951 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9952 | s,@exec_prefix@,$exec_prefix,;t t |
| 9953 | s,@prefix@,$prefix,;t t |
| 9954 | s,@program_transform_name@,$program_transform_name,;t t |
| 9955 | s,@bindir@,$bindir,;t t |
| 9956 | s,@sbindir@,$sbindir,;t t |
| 9957 | s,@libexecdir@,$libexecdir,;t t |
| 9958 | s,@datadir@,$datadir,;t t |
| 9959 | s,@sysconfdir@,$sysconfdir,;t t |
| 9960 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 9961 | s,@localstatedir@,$localstatedir,;t t |
| 9962 | s,@libdir@,$libdir,;t t |
| 9963 | s,@includedir@,$includedir,;t t |
| 9964 | s,@oldincludedir@,$oldincludedir,;t t |
| 9965 | s,@infodir@,$infodir,;t t |
| 9966 | s,@mandir@,$mandir,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9967 | s,@build_alias@,$build_alias,;t t |
| 9968 | s,@host_alias@,$host_alias,;t t |
| 9969 | s,@target_alias@,$target_alias,;t t |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9970 | s,@DEFS@,$DEFS,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9971 | s,@ECHO_C@,$ECHO_C,;t t |
| 9972 | s,@ECHO_N@,$ECHO_N,;t t |
| 9973 | s,@ECHO_T@,$ECHO_T,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9974 | s,@LIBS@,$LIBS,;t t |
| 9975 | s,@build@,$build,;t t |
| 9976 | s,@build_cpu@,$build_cpu,;t t |
| 9977 | s,@build_vendor@,$build_vendor,;t t |
| 9978 | s,@build_os@,$build_os,;t t |
| 9979 | s,@host@,$host,;t t |
| 9980 | s,@host_cpu@,$host_cpu,;t t |
| 9981 | s,@host_vendor@,$host_vendor,;t t |
| 9982 | s,@host_os@,$host_os,;t t |
| 9983 | s,@CC@,$CC,;t t |
| 9984 | s,@CFLAGS@,$CFLAGS,;t t |
| 9985 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 9986 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 9987 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 9988 | s,@EXEEXT@,$EXEEXT,;t t |
| 9989 | s,@OBJEXT@,$OBJEXT,;t t |
| 9990 | s,@LN_S@,$LN_S,;t t |
| 9991 | s,@ECHO@,$ECHO,;t t |
| 9992 | s,@RANLIB@,$RANLIB,;t t |
| 9993 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 9994 | s,@STRIP@,$STRIP,;t t |
| 9995 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 9996 | s,@CPP@,$CPP,;t t |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9997 | s,@EGREP@,$EGREP,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9998 | s,@LIBTOOL@,$LIBTOOL,;t t |
| 9999 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 10000 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 10001 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 10002 | s,@program_prefix@,$program_prefix,;t t |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10003 | s,@VERSION@,$VERSION,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10004 | s,@BUILD_CC@,$BUILD_CC,;t t |
| 10005 | s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t |
| 10006 | s,@BUILD_LIBS@,$BUILD_LIBS,;t t |
| 10007 | s,@TARGET_CC@,$TARGET_CC,;t t |
| 10008 | s,@TARGET_CFLAGS@,$TARGET_CFLAGS,;t t |
| 10009 | s,@TARGET_LINK@,$TARGET_LINK,;t t |
| 10010 | s,@TARGET_LFLAGS@,$TARGET_LFLAGS,;t t |
| 10011 | s,@TARGET_RANLIB@,$TARGET_RANLIB,;t t |
| 10012 | s,@TARGET_AR@,$TARGET_AR,;t t |
| 10013 | s,@ENCODING@,$ENCODING,;t t |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10014 | s,@ALLOWATTACHMEM@,$ALLOWATTACHMEM,;t t |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 10015 | s,@ALLOWRELEASE@,$ALLOWRELEASE,;t t |
paul | 2dc96f9 | 2003-04-20 11:46:34 +0000 | [diff] [blame] | 10016 | s,@INMEMORYDB@,$INMEMORYDB,;t t |
| 10017 | s,@TEMP_STORE@,$TEMP_STORE,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10018 | s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t |
| 10019 | s,@OS_UNIX@,$OS_UNIX,;t t |
| 10020 | s,@OS_WIN@,$OS_WIN,;t t |
| 10021 | s,@TARGET_EXEEXT@,$TARGET_EXEEXT,;t t |
| 10022 | s,@TARGET_LIBS@,$TARGET_LIBS,;t t |
| 10023 | s,@TARGET_TCL_LIBS@,$TARGET_TCL_LIBS,;t t |
| 10024 | s,@TARGET_TCL_INC@,$TARGET_TCL_INC,;t t |
| 10025 | s,@TARGET_READLINE_LIBS@,$TARGET_READLINE_LIBS,;t t |
| 10026 | s,@TARGET_READLINE_INC@,$TARGET_READLINE_INC,;t t |
| 10027 | s,@TARGET_HAVE_READLINE@,$TARGET_HAVE_READLINE,;t t |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10028 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 10029 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10030 | CEOF |
| 10031 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10032 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10033 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10034 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10035 | # Split the substitutions into bite-sized pieces for seds with |
| 10036 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 10037 | ac_max_sed_lines=48 |
| 10038 | ac_sed_frag=1 # Number of current file. |
| 10039 | ac_beg=1 # First line for current file. |
| 10040 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 10041 | ac_more_lines=: |
| 10042 | ac_sed_cmds= |
| 10043 | while $ac_more_lines; do |
| 10044 | if test $ac_beg -gt 1; then |
| 10045 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 10046 | else |
| 10047 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 10048 | fi |
| 10049 | if test ! -s $tmp/subs.frag; then |
| 10050 | ac_more_lines=false |
| 10051 | else |
| 10052 | # The purpose of the label and of the branching condition is to |
| 10053 | # speed up the sed processing (if there are no `@' at all, there |
| 10054 | # is no need to browse any of the substitutions). |
| 10055 | # These are the two extra sed commands mentioned above. |
| 10056 | (echo ':t |
| 10057 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 10058 | if test -z "$ac_sed_cmds"; then |
| 10059 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 10060 | else |
| 10061 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 10062 | fi |
| 10063 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 10064 | ac_beg=$ac_end |
| 10065 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 10066 | fi |
| 10067 | done |
| 10068 | if test -z "$ac_sed_cmds"; then |
| 10069 | ac_sed_cmds=cat |
| 10070 | fi |
| 10071 | fi # test -n "$CONFIG_FILES" |
| 10072 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10073 | _ACEOF |
| 10074 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10075 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 10076 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 10077 | case $ac_file in |
| 10078 | - | *:- | *:-:* ) # input from stdin |
| 10079 | cat >$tmp/stdin |
| 10080 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10081 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 10082 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 10083 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 10084 | * ) ac_file_in=$ac_file.in ;; |
| 10085 | esac |
| 10086 | |
| 10087 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10088 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 10089 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10090 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 10091 | X"$ac_file" : 'X\(//\)$' \| \ |
| 10092 | X"$ac_file" : 'X\(/\)' \| \ |
| 10093 | . : '\(.\)' 2>/dev/null || |
| 10094 | echo X"$ac_file" | |
| 10095 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10096 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10097 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10098 | /^X\(\/\).*/{ s//\1/; q; } |
| 10099 | s/.*/./; q'` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10100 | { if $as_mkdir_p; then |
| 10101 | mkdir -p "$ac_dir" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10102 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10103 | as_dir="$ac_dir" |
| 10104 | as_dirs= |
| 10105 | while test ! -d "$as_dir"; do |
| 10106 | as_dirs="$as_dir $as_dirs" |
| 10107 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 10108 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 10109 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 10110 | X"$as_dir" : 'X\(//\)$' \| \ |
| 10111 | X"$as_dir" : 'X\(/\)' \| \ |
| 10112 | . : '\(.\)' 2>/dev/null || |
| 10113 | echo X"$as_dir" | |
| 10114 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 10115 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 10116 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 10117 | /^X\(\/\).*/{ s//\1/; q; } |
| 10118 | s/.*/./; q'` |
| 10119 | done |
| 10120 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 10121 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 10122 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 10123 | { (exit 1); exit 1; }; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10124 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10125 | ac_builddir=. |
| 10126 | |
| 10127 | if test "$ac_dir" != .; then |
| 10128 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 10129 | # A "../" for each directory in $ac_dir_suffix. |
| 10130 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 10131 | else |
| 10132 | ac_dir_suffix= ac_top_builddir= |
| 10133 | fi |
| 10134 | |
| 10135 | case $srcdir in |
| 10136 | .) # No --srcdir option. We are building in place. |
| 10137 | ac_srcdir=. |
| 10138 | if test -z "$ac_top_builddir"; then |
| 10139 | ac_top_srcdir=. |
| 10140 | else |
| 10141 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 10142 | fi ;; |
| 10143 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 10144 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 10145 | ac_top_srcdir=$srcdir ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10146 | *) # Relative path. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10147 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 10148 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 10149 | esac |
| 10150 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 10151 | # absolute. |
| 10152 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 10153 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
| 10154 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 10155 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 10156 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10157 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10158 | case $INSTALL in |
| 10159 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10160 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10161 | esac |
| 10162 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10163 | if test x"$ac_file" != x-; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10164 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10165 | echo "$as_me: creating $ac_file" >&6;} |
| 10166 | rm -f "$ac_file" |
| 10167 | fi |
| 10168 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 10169 | # use $as_me), people would be surprised to read: |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10170 | # /* config.h. Generated by config.status. */ |
| 10171 | if test x"$ac_file" = x-; then |
| 10172 | configure_input= |
| 10173 | else |
| 10174 | configure_input="$ac_file. " |
| 10175 | fi |
| 10176 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 10177 | sed 's,.*/,,'` by configure." |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10178 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10179 | # First look for the input files in the build tree, otherwise in the |
| 10180 | # src tree. |
| 10181 | ac_file_inputs=`IFS=: |
| 10182 | for f in $ac_file_in; do |
| 10183 | case $f in |
| 10184 | -) echo $tmp/stdin ;; |
| 10185 | [\\/$]*) |
| 10186 | # Absolute (can't be DOS-style, as IFS=:) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10187 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10188 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 10189 | { (exit 1); exit 1; }; } |
| 10190 | echo $f;; |
| 10191 | *) # Relative |
| 10192 | if test -f "$f"; then |
| 10193 | # Build tree |
| 10194 | echo $f |
| 10195 | elif test -f "$srcdir/$f"; then |
| 10196 | # Source tree |
| 10197 | echo $srcdir/$f |
| 10198 | else |
| 10199 | # /dev/null tree |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10200 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10201 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 10202 | { (exit 1); exit 1; }; } |
| 10203 | fi;; |
| 10204 | esac |
| 10205 | done` || { (exit 1); exit 1; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10206 | _ACEOF |
| 10207 | cat >>$CONFIG_STATUS <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10208 | sed "$ac_vpsub |
| 10209 | $extrasub |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10210 | _ACEOF |
| 10211 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10212 | :t |
| 10213 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 10214 | s,@configure_input@,$configure_input,;t t |
| 10215 | s,@srcdir@,$ac_srcdir,;t t |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10216 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10217 | s,@top_srcdir@,$ac_top_srcdir,;t t |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10218 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 10219 | s,@builddir@,$ac_builddir,;t t |
| 10220 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 10221 | s,@top_builddir@,$ac_top_builddir,;t t |
| 10222 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10223 | s,@INSTALL@,$ac_INSTALL,;t t |
| 10224 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 10225 | rm -f $tmp/stdin |
| 10226 | if test x"$ac_file" != x-; then |
| 10227 | mv $tmp/out $ac_file |
| 10228 | else |
| 10229 | cat $tmp/out |
| 10230 | rm -f $tmp/out |
| 10231 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10232 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10233 | done |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10234 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10235 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10236 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10237 | |
| 10238 | { (exit 0); exit 0; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10239 | _ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10240 | chmod +x $CONFIG_STATUS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10241 | ac_clean_files=$ac_clean_files_save |
| 10242 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10243 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10244 | # configure is writing to config.log, and then calls config.status. |
| 10245 | # config.status does its own redirection, appending to config.log. |
| 10246 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 10247 | # by configure, so config.status won't be able to write to it; its |
| 10248 | # output is simply discarded. So we exec the FD to /dev/null, |
| 10249 | # effectively closing config.log, so it can be properly (re)opened and |
| 10250 | # appended to by config.status. When coming back to configure, we |
| 10251 | # need to make the FD available again. |
| 10252 | if test "$no_create" != yes; then |
| 10253 | ac_cs_success=: |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10254 | ac_config_status_args= |
| 10255 | test "$silent" = yes && |
| 10256 | ac_config_status_args="$ac_config_status_args --quiet" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10257 | exec 5>/dev/null |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10258 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10259 | exec 5>>config.log |
| 10260 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 10261 | # would make configure fail if this is the last instruction. |
| 10262 | $ac_cs_success || { (exit 1); exit 1; } |
| 10263 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10264 | |