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 | |
| 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 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' |
| 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 |
| 1010 | |
| 1011 | Optional Packages: |
| 1012 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1013 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1014 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 1015 | --with-pic try to use only PIC/non-PIC objects default=use both |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1016 | --with-hints=FILE Read configuration options from FILE |
| 1017 | |
| 1018 | Some influential environment variables: |
| 1019 | CC C compiler command |
| 1020 | CFLAGS C compiler flags |
| 1021 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1022 | nonstandard directory <lib dir> |
| 1023 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 1024 | headers in a nonstandard directory <include dir> |
| 1025 | CPP C preprocessor |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1026 | |
| 1027 | Use these variables to override the choices made by `configure' or to help |
| 1028 | it to find libraries and programs with nonstandard names/locations. |
| 1029 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1030 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1031 | fi |
| 1032 | |
| 1033 | if test "$ac_init_help" = "recursive"; then |
| 1034 | # If there are subdirs, report their specific --help. |
| 1035 | ac_popdir=`pwd` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1036 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1037 | test -d $ac_dir || continue |
| 1038 | ac_builddir=. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1039 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1040 | if test "$ac_dir" != .; then |
| 1041 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 1042 | # A "../" for each directory in $ac_dir_suffix. |
| 1043 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 1044 | else |
| 1045 | ac_dir_suffix= ac_top_builddir= |
| 1046 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1047 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1048 | case $srcdir in |
| 1049 | .) # No --srcdir option. We are building in place. |
| 1050 | ac_srcdir=. |
| 1051 | if test -z "$ac_top_builddir"; then |
| 1052 | ac_top_srcdir=. |
| 1053 | else |
| 1054 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 1055 | fi ;; |
| 1056 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 1057 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1058 | ac_top_srcdir=$srcdir ;; |
| 1059 | *) # Relative path. |
| 1060 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 1061 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 1062 | esac |
| 1063 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 1064 | # absolute. |
| 1065 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 1066 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
| 1067 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 1068 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 1069 | |
| 1070 | cd $ac_dir |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1071 | # Check for guested configure; otherwise get Cygnus style configure. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1072 | if test -f $ac_srcdir/configure.gnu; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1073 | echo |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1074 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 1075 | elif test -f $ac_srcdir/configure; 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 --help=recursive |
| 1078 | elif test -f $ac_srcdir/configure.ac || |
| 1079 | test -f $ac_srcdir/configure.in; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1080 | echo |
| 1081 | $ac_configure --help |
| 1082 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1083 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1084 | fi |
| 1085 | cd $ac_popdir |
| 1086 | done |
| 1087 | fi |
| 1088 | |
| 1089 | test -n "$ac_init_help" && exit 0 |
| 1090 | if $ac_init_version; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1091 | cat <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1092 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1093 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1094 | Free Software Foundation, Inc. |
| 1095 | This configure script is free software; the Free Software Foundation |
| 1096 | gives unlimited permission to copy, distribute and modify it. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1097 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1098 | exit 0 |
| 1099 | fi |
| 1100 | exec 5>config.log |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1101 | cat >&5 <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1102 | This file contains any messages produced by compilers while |
| 1103 | running configure, to aid debugging if configure makes a mistake. |
| 1104 | |
| 1105 | It was created by $as_me, which was |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1106 | generated by GNU Autoconf 2.57. Invocation command line was |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1107 | |
| 1108 | $ $0 $@ |
| 1109 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1110 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1111 | { |
| 1112 | cat <<_ASUNAME |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1113 | ## --------- ## |
| 1114 | ## Platform. ## |
| 1115 | ## --------- ## |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1116 | |
| 1117 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1118 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1119 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1120 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1121 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1122 | |
| 1123 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1124 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1125 | |
| 1126 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1127 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1128 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1129 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1130 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1131 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1132 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1133 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1134 | _ASUNAME |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1135 | |
| 1136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1137 | for as_dir in $PATH |
| 1138 | do |
| 1139 | IFS=$as_save_IFS |
| 1140 | test -z "$as_dir" && as_dir=. |
| 1141 | echo "PATH: $as_dir" |
| 1142 | done |
| 1143 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1144 | } >&5 |
| 1145 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1146 | cat >&5 <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1147 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1148 | |
| 1149 | ## ----------- ## |
| 1150 | ## Core tests. ## |
| 1151 | ## ----------- ## |
| 1152 | |
| 1153 | _ACEOF |
| 1154 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1155 | |
| 1156 | # Keep a trace of the command line. |
| 1157 | # 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] | 1158 | # 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] | 1159 | # Also quote any args containing shell meta-characters. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1160 | # Make two passes to allow for proper duplicate-argument suppression. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1161 | ac_configure_args= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1162 | ac_configure_args0= |
| 1163 | ac_configure_args1= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1164 | ac_sep= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1165 | ac_must_keep_next=false |
| 1166 | for ac_pass in 1 2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1167 | do |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1168 | for ac_arg |
| 1169 | do |
| 1170 | case $ac_arg in |
| 1171 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1172 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1173 | | -silent | --silent | --silen | --sile | --sil) |
| 1174 | continue ;; |
| 1175 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1176 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1177 | esac |
| 1178 | case $ac_pass in |
| 1179 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1180 | 2) |
| 1181 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1182 | if test $ac_must_keep_next = true; then |
| 1183 | ac_must_keep_next=false # Got value, back to normal. |
| 1184 | else |
| 1185 | case $ac_arg in |
| 1186 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1187 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1188 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1189 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1190 | case "$ac_configure_args0 " in |
| 1191 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1192 | esac |
| 1193 | ;; |
| 1194 | -* ) ac_must_keep_next=true ;; |
| 1195 | esac |
| 1196 | fi |
| 1197 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1198 | # Get rid of the leading space. |
| 1199 | ac_sep=" " |
| 1200 | ;; |
| 1201 | esac |
| 1202 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1203 | done |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1204 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1205 | $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] | 1206 | |
| 1207 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1208 | # config.log. We remove comments because anyway the quotes in there |
| 1209 | # would cause problems or look ugly. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1210 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1211 | # such as our DU 5.0 friend, will then `close' the trap. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1212 | trap 'exit_status=$? |
| 1213 | # Save into config.log some information that might help in debugging. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1214 | { |
| 1215 | echo |
| 1216 | |
| 1217 | cat <<\_ASBOX |
| 1218 | ## ---------------- ## |
| 1219 | ## Cache variables. ## |
| 1220 | ## ---------------- ## |
| 1221 | _ASBOX |
| 1222 | echo |
| 1223 | # The following way of writing the cache mishandles newlines in values, |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1224 | { |
| 1225 | (set) 2>&1 | |
| 1226 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1227 | *ac_space=\ *) |
| 1228 | sed -n \ |
| 1229 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1230 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1231 | ;; |
| 1232 | *) |
| 1233 | sed -n \ |
| 1234 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1235 | ;; |
| 1236 | esac; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1237 | } |
| 1238 | echo |
| 1239 | |
| 1240 | cat <<\_ASBOX |
| 1241 | ## ----------------- ## |
| 1242 | ## Output variables. ## |
| 1243 | ## ----------------- ## |
| 1244 | _ASBOX |
| 1245 | echo |
| 1246 | for ac_var in $ac_subst_vars |
| 1247 | do |
| 1248 | eval ac_val=$`echo $ac_var` |
| 1249 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1250 | done | sort |
| 1251 | echo |
| 1252 | |
| 1253 | if test -n "$ac_subst_files"; then |
| 1254 | cat <<\_ASBOX |
| 1255 | ## ------------- ## |
| 1256 | ## Output files. ## |
| 1257 | ## ------------- ## |
| 1258 | _ASBOX |
| 1259 | echo |
| 1260 | for ac_var in $ac_subst_files |
| 1261 | do |
| 1262 | eval ac_val=$`echo $ac_var` |
| 1263 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1264 | done | sort |
| 1265 | echo |
| 1266 | fi |
| 1267 | |
| 1268 | if test -s confdefs.h; then |
| 1269 | cat <<\_ASBOX |
| 1270 | ## ----------- ## |
| 1271 | ## confdefs.h. ## |
| 1272 | ## ----------- ## |
| 1273 | _ASBOX |
| 1274 | echo |
| 1275 | sed "/^$/d" confdefs.h | sort |
| 1276 | echo |
| 1277 | fi |
| 1278 | test "$ac_signal" != 0 && |
| 1279 | echo "$as_me: caught signal $ac_signal" |
| 1280 | echo "$as_me: exit $exit_status" |
| 1281 | } >&5 |
| 1282 | rm -f core core.* *.core && |
| 1283 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1284 | exit $exit_status |
| 1285 | ' 0 |
| 1286 | for ac_signal in 1 2 13 15; do |
| 1287 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1288 | done |
| 1289 | ac_signal=0 |
| 1290 | |
| 1291 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1292 | rm -rf conftest* confdefs.h |
| 1293 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1294 | echo >confdefs.h |
| 1295 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1296 | # Predefined preprocessor variables. |
| 1297 | |
| 1298 | cat >>confdefs.h <<_ACEOF |
| 1299 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1300 | _ACEOF |
| 1301 | |
| 1302 | |
| 1303 | cat >>confdefs.h <<_ACEOF |
| 1304 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1305 | _ACEOF |
| 1306 | |
| 1307 | |
| 1308 | cat >>confdefs.h <<_ACEOF |
| 1309 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1310 | _ACEOF |
| 1311 | |
| 1312 | |
| 1313 | cat >>confdefs.h <<_ACEOF |
| 1314 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1315 | _ACEOF |
| 1316 | |
| 1317 | |
| 1318 | cat >>confdefs.h <<_ACEOF |
| 1319 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1320 | _ACEOF |
| 1321 | |
| 1322 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1323 | # Let the site file select an alternate cache file if it wants to. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1324 | # Prefer explicitly selected file to automatically selected ones. |
| 1325 | if test -z "$CONFIG_SITE"; then |
| 1326 | if test "x$prefix" != xNONE; then |
| 1327 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1328 | else |
| 1329 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1330 | fi |
| 1331 | fi |
| 1332 | for ac_site_file in $CONFIG_SITE; do |
| 1333 | if test -r "$ac_site_file"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1334 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1335 | echo "$as_me: loading site script $ac_site_file" >&6;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1336 | sed 's/^/| /' "$ac_site_file" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1337 | . "$ac_site_file" |
| 1338 | fi |
| 1339 | done |
| 1340 | |
| 1341 | if test -r "$cache_file"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1342 | # Some versions of bash will fail to source /dev/null (special |
| 1343 | # files actually), so we avoid doing that. |
| 1344 | if test -f "$cache_file"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1345 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1346 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1347 | case $cache_file in |
| 1348 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1349 | *) . ./$cache_file;; |
| 1350 | esac |
| 1351 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1352 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1353 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1354 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1355 | >$cache_file |
| 1356 | fi |
| 1357 | |
| 1358 | # Check that the precious variables saved in the cache have kept the same |
| 1359 | # value. |
| 1360 | ac_cache_corrupted=false |
| 1361 | for ac_var in `(set) 2>&1 | |
| 1362 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1363 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1364 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1365 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1366 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1367 | case $ac_old_set,$ac_new_set in |
| 1368 | set,) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1369 | { 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] | 1370 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1371 | ac_cache_corrupted=: ;; |
| 1372 | ,set) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1373 | { 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] | 1374 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1375 | ac_cache_corrupted=: ;; |
| 1376 | ,);; |
| 1377 | *) |
| 1378 | if test "x$ac_old_val" != "x$ac_new_val"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1379 | { 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] | 1380 | 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] | 1381 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1382 | echo "$as_me: former value: $ac_old_val" >&2;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1383 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1384 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1385 | ac_cache_corrupted=: |
| 1386 | fi;; |
| 1387 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1388 | # Pass precious variables to config.status. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1389 | if test "$ac_new_set" = set; then |
| 1390 | case $ac_new_val in |
| 1391 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1392 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1393 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1394 | esac |
| 1395 | case " $ac_configure_args " in |
| 1396 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1397 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1398 | esac |
| 1399 | fi |
| 1400 | done |
| 1401 | if $ac_cache_corrupted; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1402 | { 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] | 1403 | 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] | 1404 | { { 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] | 1405 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1406 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1407 | fi |
| 1408 | |
| 1409 | ac_ext=c |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1410 | ac_cpp='$CPP $CPPFLAGS' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1411 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1412 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1413 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1414 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1415 | |
| 1416 | |
| 1417 | |
| 1418 | |
| 1419 | |
| 1420 | |
| 1421 | |
| 1422 | |
| 1423 | |
| 1424 | |
| 1425 | |
| 1426 | |
| 1427 | |
| 1428 | |
| 1429 | |
| 1430 | |
| 1431 | |
| 1432 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1433 | |
| 1434 | # The following RCS revision string applies to configure.in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1435 | # $Revision: 1.13 $ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1436 | |
| 1437 | ######### |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1438 | # Programs needed |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1439 | # |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1440 | # Check whether --enable-shared or --disable-shared was given. |
| 1441 | if test "${enable_shared+set}" = set; then |
| 1442 | enableval="$enable_shared" |
| 1443 | p=${PACKAGE-default} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1444 | case $enableval in |
| 1445 | yes) enable_shared=yes ;; |
| 1446 | no) enable_shared=no ;; |
| 1447 | *) |
| 1448 | enable_shared=no |
| 1449 | # Look at the argument we got. We use all the common list separators. |
| 1450 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 1451 | for pkg in $enableval; do |
| 1452 | if test "X$pkg" = "X$p"; then |
| 1453 | enable_shared=yes |
| 1454 | fi |
| 1455 | done |
| 1456 | IFS="$ac_save_ifs" |
| 1457 | ;; |
| 1458 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1459 | else |
| 1460 | enable_shared=yes |
| 1461 | fi; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1462 | # Check whether --enable-static or --disable-static was given. |
| 1463 | if test "${enable_static+set}" = set; then |
| 1464 | enableval="$enable_static" |
| 1465 | p=${PACKAGE-default} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1466 | case $enableval in |
| 1467 | yes) enable_static=yes ;; |
| 1468 | no) enable_static=no ;; |
| 1469 | *) |
| 1470 | enable_static=no |
| 1471 | # Look at the argument we got. We use all the common list separators. |
| 1472 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 1473 | for pkg in $enableval; do |
| 1474 | if test "X$pkg" = "X$p"; then |
| 1475 | enable_static=yes |
| 1476 | fi |
| 1477 | done |
| 1478 | IFS="$ac_save_ifs" |
| 1479 | ;; |
| 1480 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1481 | else |
| 1482 | enable_static=yes |
| 1483 | fi; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1484 | # Check whether --enable-fast-install or --disable-fast-install was given. |
| 1485 | if test "${enable_fast_install+set}" = set; then |
| 1486 | enableval="$enable_fast_install" |
| 1487 | p=${PACKAGE-default} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1488 | case $enableval in |
| 1489 | yes) enable_fast_install=yes ;; |
| 1490 | no) enable_fast_install=no ;; |
| 1491 | *) |
| 1492 | enable_fast_install=no |
| 1493 | # Look at the argument we got. We use all the common list separators. |
| 1494 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 1495 | for pkg in $enableval; do |
| 1496 | if test "X$pkg" = "X$p"; then |
| 1497 | enable_fast_install=yes |
| 1498 | fi |
| 1499 | done |
| 1500 | IFS="$ac_save_ifs" |
| 1501 | ;; |
| 1502 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1503 | else |
| 1504 | enable_fast_install=yes |
| 1505 | fi; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1506 | ac_aux_dir= |
| 1507 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1508 | if test -f $ac_dir/install-sh; then |
| 1509 | ac_aux_dir=$ac_dir |
| 1510 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1511 | break |
| 1512 | elif test -f $ac_dir/install.sh; then |
| 1513 | ac_aux_dir=$ac_dir |
| 1514 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1515 | break |
| 1516 | elif test -f $ac_dir/shtool; then |
| 1517 | ac_aux_dir=$ac_dir |
| 1518 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1519 | break |
| 1520 | fi |
| 1521 | done |
| 1522 | if test -z "$ac_aux_dir"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1523 | { { 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] | 1524 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 1525 | { (exit 1); exit 1; }; } |
| 1526 | fi |
| 1527 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1528 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1529 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1530 | |
| 1531 | # Make sure we can run config.sub. |
| 1532 | $ac_config_sub sun4 >/dev/null 2>&1 || |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1533 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1534 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1535 | { (exit 1); exit 1; }; } |
| 1536 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1537 | echo "$as_me:$LINENO: checking build system type" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1538 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1539 | if test "${ac_cv_build+set}" = set; then |
| 1540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1541 | else |
| 1542 | ac_cv_build_alias=$build_alias |
| 1543 | test -z "$ac_cv_build_alias" && |
| 1544 | ac_cv_build_alias=`$ac_config_guess` |
| 1545 | test -z "$ac_cv_build_alias" && |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1546 | { { 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] | 1547 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1548 | { (exit 1); exit 1; }; } |
| 1549 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1550 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1551 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1552 | { (exit 1); exit 1; }; } |
| 1553 | |
| 1554 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1555 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1556 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1557 | build=$ac_cv_build |
| 1558 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1559 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1560 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1561 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1562 | |
| 1563 | echo "$as_me:$LINENO: checking host system type" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1564 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1565 | if test "${ac_cv_host+set}" = set; then |
| 1566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1567 | else |
| 1568 | ac_cv_host_alias=$host_alias |
| 1569 | test -z "$ac_cv_host_alias" && |
| 1570 | ac_cv_host_alias=$ac_cv_build_alias |
| 1571 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1572 | { { 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] | 1573 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1574 | { (exit 1); exit 1; }; } |
| 1575 | |
| 1576 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1577 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1578 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1579 | host=$ac_cv_host |
| 1580 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1581 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1582 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1583 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1584 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1585 | ac_ext=c |
| 1586 | ac_cpp='$CPP $CPPFLAGS' |
| 1587 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1588 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1589 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1590 | if test -n "$ac_tool_prefix"; then |
| 1591 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1592 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1593 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1594 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1595 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1597 | else |
| 1598 | if test -n "$CC"; then |
| 1599 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1600 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1601 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1602 | for as_dir in $PATH |
| 1603 | do |
| 1604 | IFS=$as_save_IFS |
| 1605 | test -z "$as_dir" && as_dir=. |
| 1606 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1607 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1608 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1609 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1610 | break 2 |
| 1611 | fi |
| 1612 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1613 | done |
| 1614 | |
| 1615 | fi |
| 1616 | fi |
| 1617 | CC=$ac_cv_prog_CC |
| 1618 | if test -n "$CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1619 | echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1620 | echo "${ECHO_T}$CC" >&6 |
| 1621 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1622 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1623 | echo "${ECHO_T}no" >&6 |
| 1624 | fi |
| 1625 | |
| 1626 | fi |
| 1627 | if test -z "$ac_cv_prog_CC"; then |
| 1628 | ac_ct_CC=$CC |
| 1629 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1630 | set dummy gcc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1631 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1632 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1633 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1635 | else |
| 1636 | if test -n "$ac_ct_CC"; then |
| 1637 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1638 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1640 | for as_dir in $PATH |
| 1641 | do |
| 1642 | IFS=$as_save_IFS |
| 1643 | test -z "$as_dir" && as_dir=. |
| 1644 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1645 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1646 | ac_cv_prog_ac_ct_CC="gcc" |
| 1647 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1648 | break 2 |
| 1649 | fi |
| 1650 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1651 | done |
| 1652 | |
| 1653 | fi |
| 1654 | fi |
| 1655 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1656 | if test -n "$ac_ct_CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1657 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1658 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1659 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1660 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1661 | echo "${ECHO_T}no" >&6 |
| 1662 | fi |
| 1663 | |
| 1664 | CC=$ac_ct_CC |
| 1665 | else |
| 1666 | CC="$ac_cv_prog_CC" |
| 1667 | fi |
| 1668 | |
| 1669 | if test -z "$CC"; then |
| 1670 | if test -n "$ac_tool_prefix"; then |
| 1671 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1672 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1673 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1674 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1675 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1677 | else |
| 1678 | if test -n "$CC"; then |
| 1679 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1680 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1682 | for as_dir in $PATH |
| 1683 | do |
| 1684 | IFS=$as_save_IFS |
| 1685 | test -z "$as_dir" && as_dir=. |
| 1686 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1687 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1688 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1689 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1690 | break 2 |
| 1691 | fi |
| 1692 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1693 | done |
| 1694 | |
| 1695 | fi |
| 1696 | fi |
| 1697 | CC=$ac_cv_prog_CC |
| 1698 | if test -n "$CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1699 | echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1700 | echo "${ECHO_T}$CC" >&6 |
| 1701 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1702 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1703 | echo "${ECHO_T}no" >&6 |
| 1704 | fi |
| 1705 | |
| 1706 | fi |
| 1707 | if test -z "$ac_cv_prog_CC"; then |
| 1708 | ac_ct_CC=$CC |
| 1709 | # Extract the first word of "cc", so it can be a program name with args. |
| 1710 | set dummy cc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1711 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1712 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1713 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1715 | else |
| 1716 | if test -n "$ac_ct_CC"; then |
| 1717 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1718 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1720 | for as_dir in $PATH |
| 1721 | do |
| 1722 | IFS=$as_save_IFS |
| 1723 | test -z "$as_dir" && as_dir=. |
| 1724 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1725 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1726 | ac_cv_prog_ac_ct_CC="cc" |
| 1727 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1728 | break 2 |
| 1729 | fi |
| 1730 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1731 | done |
| 1732 | |
| 1733 | fi |
| 1734 | fi |
| 1735 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1736 | if test -n "$ac_ct_CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1737 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1738 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1739 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1740 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1741 | echo "${ECHO_T}no" >&6 |
| 1742 | fi |
| 1743 | |
| 1744 | CC=$ac_ct_CC |
| 1745 | else |
| 1746 | CC="$ac_cv_prog_CC" |
| 1747 | fi |
| 1748 | |
| 1749 | fi |
| 1750 | if test -z "$CC"; then |
| 1751 | # Extract the first word of "cc", so it can be a program name with args. |
| 1752 | set dummy cc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1753 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1754 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1755 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1757 | else |
| 1758 | if test -n "$CC"; then |
| 1759 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1760 | else |
| 1761 | ac_prog_rejected=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1763 | for as_dir in $PATH |
| 1764 | do |
| 1765 | IFS=$as_save_IFS |
| 1766 | test -z "$as_dir" && as_dir=. |
| 1767 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1768 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1769 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1770 | ac_prog_rejected=yes |
| 1771 | continue |
| 1772 | fi |
| 1773 | ac_cv_prog_CC="cc" |
| 1774 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1775 | break 2 |
| 1776 | fi |
| 1777 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1778 | done |
| 1779 | |
| 1780 | if test $ac_prog_rejected = yes; then |
| 1781 | # We found a bogon in the path, so make sure we never use it. |
| 1782 | set dummy $ac_cv_prog_CC |
| 1783 | shift |
| 1784 | if test $# != 0; then |
| 1785 | # We chose a different compiler from the bogus one. |
| 1786 | # However, it has the same basename, so the bogon will be chosen |
| 1787 | # first if we set CC to just the basename; use the full file name. |
| 1788 | shift |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1789 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1790 | fi |
| 1791 | fi |
| 1792 | fi |
| 1793 | fi |
| 1794 | CC=$ac_cv_prog_CC |
| 1795 | if test -n "$CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1796 | echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1797 | echo "${ECHO_T}$CC" >&6 |
| 1798 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1799 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1800 | echo "${ECHO_T}no" >&6 |
| 1801 | fi |
| 1802 | |
| 1803 | fi |
| 1804 | if test -z "$CC"; then |
| 1805 | if test -n "$ac_tool_prefix"; then |
| 1806 | for ac_prog in cl |
| 1807 | do |
| 1808 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1809 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1810 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1811 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1812 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1814 | else |
| 1815 | if test -n "$CC"; then |
| 1816 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1817 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1819 | for as_dir in $PATH |
| 1820 | do |
| 1821 | IFS=$as_save_IFS |
| 1822 | test -z "$as_dir" && as_dir=. |
| 1823 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1824 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1825 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1826 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1827 | break 2 |
| 1828 | fi |
| 1829 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1830 | done |
| 1831 | |
| 1832 | fi |
| 1833 | fi |
| 1834 | CC=$ac_cv_prog_CC |
| 1835 | if test -n "$CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1836 | echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1837 | echo "${ECHO_T}$CC" >&6 |
| 1838 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1839 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1840 | echo "${ECHO_T}no" >&6 |
| 1841 | fi |
| 1842 | |
| 1843 | test -n "$CC" && break |
| 1844 | done |
| 1845 | fi |
| 1846 | if test -z "$CC"; then |
| 1847 | ac_ct_CC=$CC |
| 1848 | for ac_prog in cl |
| 1849 | do |
| 1850 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1851 | set dummy $ac_prog; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1852 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1853 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1854 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1856 | else |
| 1857 | if test -n "$ac_ct_CC"; then |
| 1858 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1859 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1861 | for as_dir in $PATH |
| 1862 | do |
| 1863 | IFS=$as_save_IFS |
| 1864 | test -z "$as_dir" && as_dir=. |
| 1865 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1866 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1867 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1868 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1869 | break 2 |
| 1870 | fi |
| 1871 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1872 | done |
| 1873 | |
| 1874 | fi |
| 1875 | fi |
| 1876 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1877 | if test -n "$ac_ct_CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1878 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1879 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1880 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1881 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1882 | echo "${ECHO_T}no" >&6 |
| 1883 | fi |
| 1884 | |
| 1885 | test -n "$ac_ct_CC" && break |
| 1886 | done |
| 1887 | |
| 1888 | CC=$ac_ct_CC |
| 1889 | fi |
| 1890 | |
| 1891 | fi |
| 1892 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1893 | |
| 1894 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1895 | See \`config.log' for more details." >&5 |
| 1896 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1897 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1898 | { (exit 1); exit 1; }; } |
| 1899 | |
| 1900 | # Provide some information about the compiler. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1901 | echo "$as_me:$LINENO:" \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1902 | "checking for C compiler version" >&5 |
| 1903 | ac_compiler=`set X $ac_compile; echo $2` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1904 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1905 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1906 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1908 | (exit $ac_status); } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1909 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1910 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1911 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1913 | (exit $ac_status); } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1914 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1915 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1916 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1918 | (exit $ac_status); } |
| 1919 | |
| 1920 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1921 | #line $LINENO "configure" |
| 1922 | /* confdefs.h. */ |
| 1923 | _ACEOF |
| 1924 | cat confdefs.h >>conftest.$ac_ext |
| 1925 | cat >>conftest.$ac_ext <<_ACEOF |
| 1926 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1927 | |
| 1928 | int |
| 1929 | main () |
| 1930 | { |
| 1931 | |
| 1932 | ; |
| 1933 | return 0; |
| 1934 | } |
| 1935 | _ACEOF |
| 1936 | ac_clean_files_save=$ac_clean_files |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1937 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1938 | # Try to create an executable without -o first, disregard a.out. |
| 1939 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1940 | # of exeext. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1941 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1942 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 1943 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1944 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1945 | (eval $ac_link_default) 2>&5 |
| 1946 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1948 | (exit $ac_status); }; then |
| 1949 | # Find the output, starting from the most likely. This scheme is |
| 1950 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1951 | # resort. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1952 | |
| 1953 | # Be careful to initialize this variable, since it used to be cached. |
| 1954 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1955 | ac_cv_exeext= |
| 1956 | # b.out is created by i960 compilers. |
| 1957 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1958 | do |
| 1959 | test -f "$ac_file" || continue |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1960 | case $ac_file in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1961 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1962 | ;; |
| 1963 | conftest.$ac_ext ) |
| 1964 | # This is the source file. |
| 1965 | ;; |
| 1966 | [ab].out ) |
| 1967 | # We found the default executable, but exeext='' is most |
| 1968 | # certainly right. |
| 1969 | break;; |
| 1970 | *.* ) |
| 1971 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1972 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1973 | # but it would be cool to find out if it's true. Does anybody |
| 1974 | # maintain Libtool? --akim. |
| 1975 | export ac_cv_exeext |
| 1976 | break;; |
| 1977 | * ) |
| 1978 | break;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1979 | esac |
| 1980 | done |
| 1981 | else |
| 1982 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1983 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1984 | |
| 1985 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 1986 | See \`config.log' for more details." >&5 |
| 1987 | echo "$as_me: error: C compiler cannot create executables |
| 1988 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1989 | { (exit 77); exit 77; }; } |
| 1990 | fi |
| 1991 | |
| 1992 | ac_exeext=$ac_cv_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1993 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1994 | echo "${ECHO_T}$ac_file" >&6 |
| 1995 | |
| 1996 | # Check the compiler produces executables we can run. If not, either |
| 1997 | # the compiler is broken, or we cross compile. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1998 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1999 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2000 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2001 | # If not cross compiling, check that we can run a simple program. |
| 2002 | if test "$cross_compiling" != yes; then |
| 2003 | if { ac_try='./$ac_file' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2005 | (eval $ac_try) 2>&5 |
| 2006 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2008 | (exit $ac_status); }; }; then |
| 2009 | cross_compiling=no |
| 2010 | else |
| 2011 | if test "$cross_compiling" = maybe; then |
| 2012 | cross_compiling=yes |
| 2013 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2014 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2015 | If you meant to cross compile, use \`--host'. |
| 2016 | See \`config.log' for more details." >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2017 | echo "$as_me: error: cannot run C compiled programs. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2018 | If you meant to cross compile, use \`--host'. |
| 2019 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2020 | { (exit 1); exit 1; }; } |
| 2021 | fi |
| 2022 | fi |
| 2023 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2024 | echo "$as_me:$LINENO: result: yes" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2025 | echo "${ECHO_T}yes" >&6 |
| 2026 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2027 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2028 | ac_clean_files=$ac_clean_files_save |
| 2029 | # Check the compiler produces executables we can run. If not, either |
| 2030 | # the compiler is broken, or we cross compile. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2031 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2032 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2033 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2034 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2035 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2036 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2037 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2038 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2039 | (eval $ac_link) 2>&5 |
| 2040 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2042 | (exit $ac_status); }; then |
| 2043 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2044 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2045 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2046 | # `rm'. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2047 | for ac_file in conftest.exe conftest conftest.*; do |
| 2048 | test -f "$ac_file" || continue |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2049 | case $ac_file in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2050 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2051 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2052 | export ac_cv_exeext |
| 2053 | break;; |
| 2054 | * ) break;; |
| 2055 | esac |
| 2056 | done |
| 2057 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2058 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2059 | See \`config.log' for more details." >&5 |
| 2060 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2061 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2062 | { (exit 1); exit 1; }; } |
| 2063 | fi |
| 2064 | |
| 2065 | rm -f conftest$ac_cv_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2066 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2067 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2068 | |
| 2069 | rm -f conftest.$ac_ext |
| 2070 | EXEEXT=$ac_cv_exeext |
| 2071 | ac_exeext=$EXEEXT |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2072 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2073 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2074 | if test "${ac_cv_objext+set}" = set; then |
| 2075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2076 | else |
| 2077 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2078 | #line $LINENO "configure" |
| 2079 | /* confdefs.h. */ |
| 2080 | _ACEOF |
| 2081 | cat confdefs.h >>conftest.$ac_ext |
| 2082 | cat >>conftest.$ac_ext <<_ACEOF |
| 2083 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2084 | |
| 2085 | int |
| 2086 | main () |
| 2087 | { |
| 2088 | |
| 2089 | ; |
| 2090 | return 0; |
| 2091 | } |
| 2092 | _ACEOF |
| 2093 | rm -f conftest.o conftest.obj |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2095 | (eval $ac_compile) 2>&5 |
| 2096 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2098 | (exit $ac_status); }; then |
| 2099 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2100 | case $ac_file in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2101 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2102 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2103 | break;; |
| 2104 | esac |
| 2105 | done |
| 2106 | else |
| 2107 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2109 | |
| 2110 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2111 | See \`config.log' for more details." >&5 |
| 2112 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2113 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2114 | { (exit 1); exit 1; }; } |
| 2115 | fi |
| 2116 | |
| 2117 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2118 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2119 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2120 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2121 | OBJEXT=$ac_cv_objext |
| 2122 | ac_objext=$OBJEXT |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2123 | 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] | 2124 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2125 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2127 | else |
| 2128 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2129 | #line $LINENO "configure" |
| 2130 | /* confdefs.h. */ |
| 2131 | _ACEOF |
| 2132 | cat confdefs.h >>conftest.$ac_ext |
| 2133 | cat >>conftest.$ac_ext <<_ACEOF |
| 2134 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2135 | |
| 2136 | int |
| 2137 | main () |
| 2138 | { |
| 2139 | #ifndef __GNUC__ |
| 2140 | choke me |
| 2141 | #endif |
| 2142 | |
| 2143 | ; |
| 2144 | return 0; |
| 2145 | } |
| 2146 | _ACEOF |
| 2147 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2148 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2149 | (eval $ac_compile) 2>&5 |
| 2150 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2152 | (exit $ac_status); } && |
| 2153 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2155 | (eval $ac_try) 2>&5 |
| 2156 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2158 | (exit $ac_status); }; }; then |
| 2159 | ac_compiler_gnu=yes |
| 2160 | else |
| 2161 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2162 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2163 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2164 | ac_compiler_gnu=no |
| 2165 | fi |
| 2166 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2167 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2168 | |
| 2169 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2170 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2171 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2172 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2173 | ac_test_CFLAGS=${CFLAGS+set} |
| 2174 | ac_save_CFLAGS=$CFLAGS |
| 2175 | CFLAGS="-g" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2176 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2177 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2178 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2180 | else |
| 2181 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2182 | #line $LINENO "configure" |
| 2183 | /* confdefs.h. */ |
| 2184 | _ACEOF |
| 2185 | cat confdefs.h >>conftest.$ac_ext |
| 2186 | cat >>conftest.$ac_ext <<_ACEOF |
| 2187 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2188 | |
| 2189 | int |
| 2190 | main () |
| 2191 | { |
| 2192 | |
| 2193 | ; |
| 2194 | return 0; |
| 2195 | } |
| 2196 | _ACEOF |
| 2197 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2198 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2199 | (eval $ac_compile) 2>&5 |
| 2200 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2202 | (exit $ac_status); } && |
| 2203 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2205 | (eval $ac_try) 2>&5 |
| 2206 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2208 | (exit $ac_status); }; }; then |
| 2209 | ac_cv_prog_cc_g=yes |
| 2210 | else |
| 2211 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2212 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2213 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2214 | ac_cv_prog_cc_g=no |
| 2215 | fi |
| 2216 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2217 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2218 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2219 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2220 | if test "$ac_test_CFLAGS" = set; then |
| 2221 | CFLAGS=$ac_save_CFLAGS |
| 2222 | elif test $ac_cv_prog_cc_g = yes; then |
| 2223 | if test "$GCC" = yes; then |
| 2224 | CFLAGS="-g -O2" |
| 2225 | else |
| 2226 | CFLAGS="-g" |
| 2227 | fi |
| 2228 | else |
| 2229 | if test "$GCC" = yes; then |
| 2230 | CFLAGS="-O2" |
| 2231 | else |
| 2232 | CFLAGS= |
| 2233 | fi |
| 2234 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2235 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2236 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2237 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2239 | else |
| 2240 | ac_cv_prog_cc_stdc=no |
| 2241 | ac_save_CC=$CC |
| 2242 | cat >conftest.$ac_ext <<_ACEOF |
| 2243 | #line $LINENO "configure" |
| 2244 | /* confdefs.h. */ |
| 2245 | _ACEOF |
| 2246 | cat confdefs.h >>conftest.$ac_ext |
| 2247 | cat >>conftest.$ac_ext <<_ACEOF |
| 2248 | /* end confdefs.h. */ |
| 2249 | #include <stdarg.h> |
| 2250 | #include <stdio.h> |
| 2251 | #include <sys/types.h> |
| 2252 | #include <sys/stat.h> |
| 2253 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2254 | struct buf { int x; }; |
| 2255 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2256 | static char *e (p, i) |
| 2257 | char **p; |
| 2258 | int i; |
| 2259 | { |
| 2260 | return p[i]; |
| 2261 | } |
| 2262 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2263 | { |
| 2264 | char *s; |
| 2265 | va_list v; |
| 2266 | va_start (v,p); |
| 2267 | s = g (p, va_arg (v,int)); |
| 2268 | va_end (v); |
| 2269 | return s; |
| 2270 | } |
| 2271 | int test (int i, double x); |
| 2272 | struct s1 {int (*f) (int a);}; |
| 2273 | struct s2 {int (*f) (double a);}; |
| 2274 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2275 | int argc; |
| 2276 | char **argv; |
| 2277 | int |
| 2278 | main () |
| 2279 | { |
| 2280 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2281 | ; |
| 2282 | return 0; |
| 2283 | } |
| 2284 | _ACEOF |
| 2285 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2286 | # breaks some systems' header files. |
| 2287 | # AIX -qlanglvl=ansi |
| 2288 | # Ultrix and OSF/1 -std1 |
| 2289 | # HP-UX 10.20 and later -Ae |
| 2290 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2291 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2292 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2293 | do |
| 2294 | CC="$ac_save_CC $ac_arg" |
| 2295 | rm -f conftest.$ac_objext |
| 2296 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2297 | (eval $ac_compile) 2>&5 |
| 2298 | ac_status=$? |
| 2299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2300 | (exit $ac_status); } && |
| 2301 | { ac_try='test -s conftest.$ac_objext' |
| 2302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2303 | (eval $ac_try) 2>&5 |
| 2304 | ac_status=$? |
| 2305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2306 | (exit $ac_status); }; }; then |
| 2307 | ac_cv_prog_cc_stdc=$ac_arg |
| 2308 | break |
| 2309 | else |
| 2310 | echo "$as_me: failed program was:" >&5 |
| 2311 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2312 | |
| 2313 | fi |
| 2314 | rm -f conftest.$ac_objext |
| 2315 | done |
| 2316 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2317 | CC=$ac_save_CC |
| 2318 | |
| 2319 | fi |
| 2320 | |
| 2321 | case "x$ac_cv_prog_cc_stdc" in |
| 2322 | x|xno) |
| 2323 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2324 | echo "${ECHO_T}none needed" >&6 ;; |
| 2325 | *) |
| 2326 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2327 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2328 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2329 | esac |
| 2330 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2331 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2332 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2333 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2334 | # the declaration of exit, since it's the most demanding environment. |
| 2335 | cat >conftest.$ac_ext <<_ACEOF |
| 2336 | #ifndef __cplusplus |
| 2337 | choke me |
| 2338 | #endif |
| 2339 | _ACEOF |
| 2340 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2341 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2342 | (eval $ac_compile) 2>&5 |
| 2343 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2345 | (exit $ac_status); } && |
| 2346 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2348 | (eval $ac_try) 2>&5 |
| 2349 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2351 | (exit $ac_status); }; }; then |
| 2352 | for ac_declaration in \ |
| 2353 | ''\ |
| 2354 | '#include <stdlib.h>' \ |
| 2355 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2356 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2357 | 'extern "C" void exit (int) throw ();' \ |
| 2358 | 'extern "C" void exit (int);' \ |
| 2359 | 'void exit (int);' |
| 2360 | do |
| 2361 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2362 | #line $LINENO "configure" |
| 2363 | /* confdefs.h. */ |
| 2364 | _ACEOF |
| 2365 | cat confdefs.h >>conftest.$ac_ext |
| 2366 | cat >>conftest.$ac_ext <<_ACEOF |
| 2367 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2368 | #include <stdlib.h> |
| 2369 | $ac_declaration |
| 2370 | int |
| 2371 | main () |
| 2372 | { |
| 2373 | exit (42); |
| 2374 | ; |
| 2375 | return 0; |
| 2376 | } |
| 2377 | _ACEOF |
| 2378 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2380 | (eval $ac_compile) 2>&5 |
| 2381 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2383 | (exit $ac_status); } && |
| 2384 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2386 | (eval $ac_try) 2>&5 |
| 2387 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2389 | (exit $ac_status); }; }; then |
| 2390 | : |
| 2391 | else |
| 2392 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2393 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2394 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2395 | continue |
| 2396 | fi |
| 2397 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2398 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2399 | #line $LINENO "configure" |
| 2400 | /* confdefs.h. */ |
| 2401 | _ACEOF |
| 2402 | cat confdefs.h >>conftest.$ac_ext |
| 2403 | cat >>conftest.$ac_ext <<_ACEOF |
| 2404 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2405 | $ac_declaration |
| 2406 | int |
| 2407 | main () |
| 2408 | { |
| 2409 | exit (42); |
| 2410 | ; |
| 2411 | return 0; |
| 2412 | } |
| 2413 | _ACEOF |
| 2414 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2415 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2416 | (eval $ac_compile) 2>&5 |
| 2417 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2419 | (exit $ac_status); } && |
| 2420 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2422 | (eval $ac_try) 2>&5 |
| 2423 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2425 | (exit $ac_status); }; }; then |
| 2426 | break |
| 2427 | else |
| 2428 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2429 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2430 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2431 | fi |
| 2432 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2433 | done |
| 2434 | rm -f conftest* |
| 2435 | if test -n "$ac_declaration"; then |
| 2436 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2437 | echo $ac_declaration >>confdefs.h |
| 2438 | echo '#endif' >>confdefs.h |
| 2439 | fi |
| 2440 | |
| 2441 | else |
| 2442 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2444 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2445 | fi |
| 2446 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2447 | ac_ext=c |
| 2448 | ac_cpp='$CPP $CPPFLAGS' |
| 2449 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2450 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2451 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2452 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2453 | # Find the correct PATH separator. Usually this is `:', but |
| 2454 | # DJGPP uses `;' like DOS. |
| 2455 | if test "X${PATH_SEPARATOR+set}" != Xset; then |
| 2456 | UNAME=${UNAME-`uname 2>/dev/null`} |
| 2457 | case X$UNAME in |
| 2458 | *-DOS) lt_cv_sys_path_separator=';' ;; |
| 2459 | *) lt_cv_sys_path_separator=':' ;; |
| 2460 | esac |
| 2461 | PATH_SEPARATOR=$lt_cv_sys_path_separator |
| 2462 | fi |
| 2463 | |
| 2464 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2465 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 2466 | if test "${with_gnu_ld+set}" = set; then |
| 2467 | withval="$with_gnu_ld" |
| 2468 | test "$withval" = no || with_gnu_ld=yes |
| 2469 | else |
| 2470 | with_gnu_ld=no |
| 2471 | fi; |
| 2472 | ac_prog=ld |
| 2473 | if test "$GCC" = yes; then |
| 2474 | # Check if gcc -print-prog-name=ld gives a path. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2475 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2476 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
| 2477 | case $host in |
| 2478 | *-*-mingw*) |
| 2479 | # gcc leaves a trailing carriage return which upsets mingw |
| 2480 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 2481 | *) |
| 2482 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 2483 | esac |
| 2484 | case $ac_prog in |
| 2485 | # Accept absolute paths. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2486 | [\\/]* | [A-Za-z]:[\\/]*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2487 | re_direlt='/[^/][^/]*/\.\./' |
| 2488 | # Canonicalize the path of ld |
| 2489 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 2490 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 2491 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 2492 | done |
| 2493 | test -z "$LD" && LD="$ac_prog" |
| 2494 | ;; |
| 2495 | "") |
| 2496 | # If it fails, then pretend we aren't using GCC. |
| 2497 | ac_prog=ld |
| 2498 | ;; |
| 2499 | *) |
| 2500 | # If it is relative, then search for the first ld in PATH. |
| 2501 | with_gnu_ld=unknown |
| 2502 | ;; |
| 2503 | esac |
| 2504 | elif test "$with_gnu_ld" = yes; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2505 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2506 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 2507 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2508 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2509 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 2510 | fi |
| 2511 | if test "${lt_cv_path_LD+set}" = set; then |
| 2512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2513 | else |
| 2514 | if test -z "$LD"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2515 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2516 | for ac_dir in $PATH; do |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2517 | test -z "$ac_dir" && ac_dir=. |
| 2518 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 2519 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 2520 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 2521 | # but apparently some GNU ld's only accept -v. |
| 2522 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 2523 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
| 2524 | test "$with_gnu_ld" != no && break |
| 2525 | else |
| 2526 | test "$with_gnu_ld" != yes && break |
| 2527 | fi |
| 2528 | fi |
| 2529 | done |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2530 | IFS="$ac_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2531 | else |
| 2532 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 2533 | fi |
| 2534 | fi |
| 2535 | |
| 2536 | LD="$lt_cv_path_LD" |
| 2537 | if test -n "$LD"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2538 | echo "$as_me:$LINENO: result: $LD" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2539 | echo "${ECHO_T}$LD" >&6 |
| 2540 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2541 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2542 | echo "${ECHO_T}no" >&6 |
| 2543 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2544 | 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] | 2545 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 2546 | { (exit 1); exit 1; }; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2547 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2548 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 2549 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 2550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2551 | else |
| 2552 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 2553 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
| 2554 | lt_cv_prog_gnu_ld=yes |
| 2555 | else |
| 2556 | lt_cv_prog_gnu_ld=no |
| 2557 | fi |
| 2558 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2559 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2560 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 2561 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 2562 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2563 | |
| 2564 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2565 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
| 2566 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 2567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2568 | else |
| 2569 | lt_cv_ld_reload_flag='-r' |
| 2570 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2571 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2572 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
| 2573 | reload_flag=$lt_cv_ld_reload_flag |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2574 | test -n "$reload_flag" && reload_flag=" $reload_flag" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2575 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2576 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2577 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
| 2578 | if test "${lt_cv_path_NM+set}" = set; then |
| 2579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2580 | else |
| 2581 | if test -n "$NM"; then |
| 2582 | # Let the user override the test. |
| 2583 | lt_cv_path_NM="$NM" |
| 2584 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2585 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2586 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2587 | test -z "$ac_dir" && ac_dir=. |
| 2588 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
| 2589 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then |
| 2590 | # Check to see if the nm accepts a BSD-compat flag. |
| 2591 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 2592 | # nm: unknown option "B" ignored |
| 2593 | # Tru64's nm complains that /dev/null is an invalid object file |
| 2594 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then |
| 2595 | lt_cv_path_NM="$tmp_nm -B" |
| 2596 | break |
| 2597 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
| 2598 | lt_cv_path_NM="$tmp_nm -p" |
| 2599 | break |
| 2600 | else |
| 2601 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 2602 | continue # so that we can try to find one that supports BSD flags |
| 2603 | fi |
| 2604 | fi |
| 2605 | done |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2606 | IFS="$ac_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2607 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 2608 | fi |
| 2609 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2610 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2611 | NM="$lt_cv_path_NM" |
| 2612 | echo "$as_me:$LINENO: result: $NM" >&5 |
| 2613 | echo "${ECHO_T}$NM" >&6 |
| 2614 | |
| 2615 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 2616 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
| 2617 | if test "${lt_cv_path_SED+set}" = set; then |
| 2618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2619 | else |
| 2620 | # Loop through the user's path and test for sed and gsed. |
| 2621 | # Then use that list of sed's as ones to test for truncation. |
| 2622 | as_executable_p="test -f" |
| 2623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2624 | for as_dir in $PATH |
| 2625 | do |
| 2626 | IFS=$as_save_IFS |
| 2627 | test -z "$as_dir" && as_dir=. |
| 2628 | for ac_prog in sed gsed; do |
| 2629 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2630 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 2631 | _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext" |
| 2632 | fi |
| 2633 | done |
| 2634 | done |
| 2635 | done |
| 2636 | |
| 2637 | # Create a temporary directory, and hook for its removal unless debugging. |
| 2638 | $debug || |
| 2639 | { |
| 2640 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 2641 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 2642 | } |
| 2643 | |
| 2644 | # Create a (secure) tmp directory for tmp files. |
| 2645 | : ${TMPDIR=/tmp} |
| 2646 | { |
| 2647 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` && |
| 2648 | test -n "$tmp" && test -d "$tmp" |
| 2649 | } || |
| 2650 | { |
| 2651 | tmp=$TMPDIR/sed$$-$RANDOM |
| 2652 | (umask 077 && mkdir $tmp) |
| 2653 | } || |
| 2654 | { |
| 2655 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 2656 | { (exit 1); exit 1; } |
| 2657 | } |
| 2658 | _max=0 |
| 2659 | _count=0 |
| 2660 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 2661 | # along with /bin/sed that truncates output. |
| 2662 | for _sed in $_sed_list /usr/xpg4/bin/sed; do |
| 2663 | test ! -f ${_sed} && break |
| 2664 | cat /dev/null > "$tmp/sed.in" |
| 2665 | _count=0 |
| 2666 | echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in" |
| 2667 | # Check for GNU sed and select it if it is found. |
| 2668 | if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then |
| 2669 | lt_cv_path_SED=${_sed} |
| 2670 | break |
| 2671 | fi |
| 2672 | while true; do |
| 2673 | cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp" |
| 2674 | mv "$tmp/sed.tmp" "$tmp/sed.in" |
| 2675 | cp "$tmp/sed.in" "$tmp/sed.nl" |
| 2676 | echo >>"$tmp/sed.nl" |
| 2677 | ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break |
| 2678 | cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break |
| 2679 | # 40000 chars as input seems more than enough |
| 2680 | test $_count -gt 10 && break |
| 2681 | _count=`expr $_count + 1` |
| 2682 | if test $_count -gt $_max; then |
| 2683 | _max=$_count |
| 2684 | lt_cv_path_SED=$_sed |
| 2685 | fi |
| 2686 | done |
| 2687 | done |
| 2688 | rm -rf "$tmp" |
| 2689 | |
| 2690 | fi |
| 2691 | |
| 2692 | if test "X$SED" != "X"; then |
| 2693 | lt_cv_path_SED=$SED |
| 2694 | else |
| 2695 | SED=$lt_cv_path_SED |
| 2696 | fi |
| 2697 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 2698 | echo "${ECHO_T}$SED" >&6 |
| 2699 | |
| 2700 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2701 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 2702 | LN_S=$as_ln_s |
| 2703 | if test "$LN_S" = "ln -s"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2704 | echo "$as_me:$LINENO: result: yes" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2705 | echo "${ECHO_T}yes" >&6 |
| 2706 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2707 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2708 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 2709 | fi |
| 2710 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2711 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 2712 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2713 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 2714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2715 | else |
| 2716 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 2717 | lt_cv_file_magic_test_file= |
| 2718 | lt_cv_deplibs_check_method='unknown' |
| 2719 | # Need to set the preceding variable on all platforms that support |
| 2720 | # interlibrary dependencies. |
| 2721 | # 'none' -- dependencies not supported. |
| 2722 | # `unknown' -- same as none, but documents that we really don't know. |
| 2723 | # 'pass_all' -- all dependencies passed with no checks. |
| 2724 | # 'test_compile' -- check by making test program. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2725 | # 'file_magic [[regex]]' -- check by looking for files in library path |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2726 | # which responds to the $file_magic_cmd with a given egrep regex. |
| 2727 | # If you have `file' or equivalent on your system and you're not sure |
| 2728 | # whether `pass_all' will *always* work, you probably want this one. |
| 2729 | |
| 2730 | case $host_os in |
| 2731 | aix4* | aix5*) |
| 2732 | lt_cv_deplibs_check_method=pass_all |
| 2733 | ;; |
| 2734 | |
| 2735 | beos*) |
| 2736 | lt_cv_deplibs_check_method=pass_all |
| 2737 | ;; |
| 2738 | |
| 2739 | bsdi4*) |
| 2740 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 2741 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 2742 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 2743 | ;; |
| 2744 | |
| 2745 | cygwin* | mingw* | pw32*) |
| 2746 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 2747 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 2748 | ;; |
| 2749 | |
| 2750 | darwin* | rhapsody*) |
| 2751 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
| 2752 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 2753 | case "$host_os" in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2754 | rhapsody* | darwin1.[012]) |
| 2755 | 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] | 2756 | ;; |
| 2757 | *) # Darwin 1.3 on |
| 2758 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
| 2759 | ;; |
| 2760 | esac |
| 2761 | ;; |
| 2762 | |
| 2763 | freebsd*) |
| 2764 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 2765 | case $host_cpu in |
| 2766 | i*86 ) |
| 2767 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 2768 | # Let's accept both of them until this is cleared up. |
| 2769 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
| 2770 | lt_cv_file_magic_cmd=/usr/bin/file |
| 2771 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 2772 | ;; |
| 2773 | esac |
| 2774 | else |
| 2775 | lt_cv_deplibs_check_method=pass_all |
| 2776 | fi |
| 2777 | ;; |
| 2778 | |
| 2779 | gnu*) |
| 2780 | lt_cv_deplibs_check_method=pass_all |
| 2781 | ;; |
| 2782 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2783 | hpux10.20*|hpux11*) |
| 2784 | 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] | 2785 | lt_cv_file_magic_cmd=/usr/bin/file |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2786 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2787 | ;; |
| 2788 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2789 | irix5* | irix6* | nonstopux*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2790 | case $host_os in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2791 | irix5* | nonstopux*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2792 | # this will be overridden with pass_all, but let us keep it just in case |
| 2793 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
| 2794 | ;; |
| 2795 | *) |
| 2796 | case $LD in |
| 2797 | *-32|*"-32 ") libmagic=32-bit;; |
| 2798 | *-n32|*"-n32 ") libmagic=N32;; |
| 2799 | *-64|*"-64 ") libmagic=64-bit;; |
| 2800 | *) libmagic=never-match;; |
| 2801 | esac |
| 2802 | # this will be overridden with pass_all, but let us keep it just in case |
| 2803 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
| 2804 | ;; |
| 2805 | esac |
| 2806 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
| 2807 | lt_cv_deplibs_check_method=pass_all |
| 2808 | ;; |
| 2809 | |
| 2810 | # This must be Linux ELF. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2811 | linux-gnu*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2812 | case $host_cpu in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2813 | alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2814 | lt_cv_deplibs_check_method=pass_all ;; |
| 2815 | *) |
| 2816 | # glibc up to 2.1.1 does not perform some relocations on ARM |
| 2817 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
| 2818 | esac |
| 2819 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
| 2820 | ;; |
| 2821 | |
| 2822 | netbsd*) |
| 2823 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 2824 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
| 2825 | else |
| 2826 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
| 2827 | fi |
| 2828 | ;; |
| 2829 | |
| 2830 | newos6*) |
| 2831 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 2832 | lt_cv_file_magic_cmd=/usr/bin/file |
| 2833 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 2834 | ;; |
| 2835 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2836 | openbsd*) |
| 2837 | lt_cv_file_magic_cmd=/usr/bin/file |
| 2838 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 2839 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 2840 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
| 2841 | else |
| 2842 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
| 2843 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2844 | ;; |
| 2845 | |
| 2846 | osf3* | osf4* | osf5*) |
| 2847 | # this will be overridden with pass_all, but let us keep it just in case |
| 2848 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
| 2849 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 2850 | lt_cv_deplibs_check_method=pass_all |
| 2851 | ;; |
| 2852 | |
| 2853 | sco3.2v5*) |
| 2854 | lt_cv_deplibs_check_method=pass_all |
| 2855 | ;; |
| 2856 | |
| 2857 | solaris*) |
| 2858 | lt_cv_deplibs_check_method=pass_all |
| 2859 | lt_cv_file_magic_test_file=/lib/libc.so |
| 2860 | ;; |
| 2861 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2862 | sysv5uw[78]* | sysv4*uw2*) |
| 2863 | lt_cv_deplibs_check_method=pass_all |
| 2864 | ;; |
| 2865 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2866 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 2867 | case $host_vendor in |
| 2868 | motorola) |
| 2869 | 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]' |
| 2870 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 2871 | ;; |
| 2872 | ncr) |
| 2873 | lt_cv_deplibs_check_method=pass_all |
| 2874 | ;; |
| 2875 | sequent) |
| 2876 | lt_cv_file_magic_cmd='/bin/file' |
| 2877 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 2878 | ;; |
| 2879 | sni) |
| 2880 | lt_cv_file_magic_cmd='/bin/file' |
| 2881 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 2882 | lt_cv_file_magic_test_file=/lib/libc.so |
| 2883 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2884 | siemens) |
| 2885 | lt_cv_deplibs_check_method=pass_all |
| 2886 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2887 | esac |
| 2888 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2889 | esac |
| 2890 | |
| 2891 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2892 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2893 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
| 2894 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 2895 | deplibs_check_method=$lt_cv_deplibs_check_method |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2896 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2897 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2898 | |
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 | |
| 2904 | # 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] | 2905 | echo "$as_me:$LINENO: checking command to parse $NM output" >&5 |
| 2906 | echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2907 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 2908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2909 | else |
| 2910 | |
| 2911 | # These are sane defaults that work on at least a few old systems. |
| 2912 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 2913 | |
| 2914 | # Character class describing NM global symbol codes. |
| 2915 | symcode='[BCDEGRST]' |
| 2916 | |
| 2917 | # Regexp to match symbols that can be accessed directly from C. |
| 2918 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 2919 | |
| 2920 | # Transform the above into a raw symbol and a C symbol. |
| 2921 | symxfrm='\1 \2\3 \3' |
| 2922 | |
| 2923 | # Transform an extracted symbol line into a proper C declaration |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2924 | 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] | 2925 | |
| 2926 | # Transform an extracted symbol line into symbol name and symbol address |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2927 | 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] | 2928 | |
| 2929 | # Define system-specific variables. |
| 2930 | case $host_os in |
| 2931 | aix*) |
| 2932 | symcode='[BCDT]' |
| 2933 | ;; |
| 2934 | cygwin* | mingw* | pw32*) |
| 2935 | symcode='[ABCDGISTW]' |
| 2936 | ;; |
| 2937 | hpux*) # Its linker distinguishes data from code symbols |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2938 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 2939 | 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] | 2940 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2941 | irix* | nonstopux*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2942 | symcode='[BCDEGRST]' |
| 2943 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2944 | osf*) |
| 2945 | symcode='[BCDEGQRST]' |
| 2946 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2947 | solaris* | sysv5*) |
| 2948 | symcode='[BDT]' |
| 2949 | ;; |
| 2950 | sysv4) |
| 2951 | symcode='[DFNSTU]' |
| 2952 | ;; |
| 2953 | esac |
| 2954 | |
| 2955 | # Handle CRLF in mingw tool chain |
| 2956 | opt_cr= |
| 2957 | case $host_os in |
| 2958 | mingw*) |
| 2959 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 2960 | ;; |
| 2961 | esac |
| 2962 | |
| 2963 | # If we're using GNU nm, then use its standard symbol codes. |
| 2964 | if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then |
| 2965 | symcode='[ABCDGISTW]' |
| 2966 | fi |
| 2967 | |
| 2968 | # Try without a prefix undercore, then with it. |
| 2969 | for ac_symprfx in "" "_"; do |
| 2970 | |
| 2971 | # Write the raw and C identifiers. |
| 2972 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 2973 | |
| 2974 | # Check to see that the pipe works correctly. |
| 2975 | pipe_works=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2976 | rm -f conftest* |
| 2977 | cat > conftest.$ac_ext <<EOF |
| 2978 | #ifdef __cplusplus |
| 2979 | extern "C" { |
| 2980 | #endif |
| 2981 | char nm_test_var; |
| 2982 | void nm_test_func(){} |
| 2983 | #ifdef __cplusplus |
| 2984 | } |
| 2985 | #endif |
| 2986 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 2987 | EOF |
| 2988 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2990 | (eval $ac_compile) 2>&5 |
| 2991 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2993 | (exit $ac_status); }; then |
| 2994 | # Now try to grab the symbols. |
| 2995 | nlist=conftest.nm |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2996 | 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] | 2997 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 2998 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3000 | (exit $ac_status); } && test -s "$nlist"; then |
| 3001 | # Try sorting and uniquifying the output. |
| 3002 | if sort "$nlist" | uniq > "$nlist"T; then |
| 3003 | mv -f "$nlist"T "$nlist" |
| 3004 | else |
| 3005 | rm -f "$nlist"T |
| 3006 | fi |
| 3007 | |
| 3008 | # Make sure that we snagged all the symbols we need. |
| 3009 | if egrep ' nm_test_var$' "$nlist" >/dev/null; then |
| 3010 | if egrep ' nm_test_func$' "$nlist" >/dev/null; then |
| 3011 | cat <<EOF > conftest.$ac_ext |
| 3012 | #ifdef __cplusplus |
| 3013 | extern "C" { |
| 3014 | #endif |
| 3015 | |
| 3016 | EOF |
| 3017 | # Now generate the symbol file. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3018 | eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3019 | |
| 3020 | cat <<EOF >> conftest.$ac_ext |
| 3021 | #if defined (__STDC__) && __STDC__ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3022 | # define lt_ptr void * |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3023 | #else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3024 | # define lt_ptr char * |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3025 | # define const |
| 3026 | #endif |
| 3027 | |
| 3028 | /* The mapping between symbol names and symbols. */ |
| 3029 | const struct { |
| 3030 | const char *name; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3031 | lt_ptr address; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3032 | } |
| 3033 | lt_preloaded_symbols[] = |
| 3034 | { |
| 3035 | EOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3036 | sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3037 | cat <<\EOF >> conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3038 | {0, (lt_ptr) 0} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3039 | }; |
| 3040 | |
| 3041 | #ifdef __cplusplus |
| 3042 | } |
| 3043 | #endif |
| 3044 | EOF |
| 3045 | # Now try linking the two files. |
| 3046 | mv conftest.$ac_objext conftstm.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3047 | save_LIBS="$LIBS" |
| 3048 | save_CFLAGS="$CFLAGS" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3049 | LIBS="conftstm.$ac_objext" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3050 | CFLAGS="$CFLAGS$no_builtin_flag" |
| 3051 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3052 | (eval $ac_link) 2>&5 |
| 3053 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3055 | (exit $ac_status); } && test -s conftest$ac_exeext; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3056 | pipe_works=yes |
| 3057 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3058 | LIBS="$save_LIBS" |
| 3059 | CFLAGS="$save_CFLAGS" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3060 | else |
| 3061 | echo "cannot find nm_test_func in $nlist" >&5 |
| 3062 | fi |
| 3063 | else |
| 3064 | echo "cannot find nm_test_var in $nlist" >&5 |
| 3065 | fi |
| 3066 | else |
| 3067 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 3068 | fi |
| 3069 | else |
| 3070 | echo "$progname: failed program was:" >&5 |
| 3071 | cat conftest.$ac_ext >&5 |
| 3072 | fi |
| 3073 | rm -f conftest* conftst* |
| 3074 | |
| 3075 | # Do not use the global_symbol_pipe unless it works. |
| 3076 | if test "$pipe_works" = yes; then |
| 3077 | break |
| 3078 | else |
| 3079 | lt_cv_sys_global_symbol_pipe= |
| 3080 | fi |
| 3081 | done |
| 3082 | |
| 3083 | fi |
| 3084 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3085 | global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3086 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3087 | global_symbol_to_cdecl= |
| 3088 | global_symbol_to_c_name_address= |
| 3089 | else |
| 3090 | global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" |
| 3091 | 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] | 3092 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3093 | if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; |
| 3094 | then |
| 3095 | echo "$as_me:$LINENO: result: failed" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3096 | echo "${ECHO_T}failed" >&6 |
| 3097 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3098 | echo "$as_me:$LINENO: result: ok" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3099 | echo "${ECHO_T}ok" >&6 |
| 3100 | fi |
| 3101 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3102 | ac_ext=c |
| 3103 | ac_cpp='$CPP $CPPFLAGS' |
| 3104 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3105 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3106 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3107 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3108 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 3109 | # On Suns, sometimes $CPP names a directory. |
| 3110 | if test -n "$CPP" && test -d "$CPP"; then |
| 3111 | CPP= |
| 3112 | fi |
| 3113 | if test -z "$CPP"; then |
| 3114 | if test "${ac_cv_prog_CPP+set}" = set; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3116 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3117 | # Double quotes because CPP needs to be expanded |
| 3118 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3119 | do |
| 3120 | ac_preproc_ok=false |
| 3121 | for ac_c_preproc_warn_flag in '' yes |
| 3122 | do |
| 3123 | # Use a header file that comes with gcc, so configuring glibc |
| 3124 | # with a fresh cross-compiler works. |
| 3125 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3126 | # <limits.h> exists even on freestanding compilers. |
| 3127 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3128 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3129 | cat >conftest.$ac_ext <<_ACEOF |
| 3130 | #line $LINENO "configure" |
| 3131 | /* confdefs.h. */ |
| 3132 | _ACEOF |
| 3133 | cat confdefs.h >>conftest.$ac_ext |
| 3134 | cat >>conftest.$ac_ext <<_ACEOF |
| 3135 | /* end confdefs.h. */ |
| 3136 | #ifdef __STDC__ |
| 3137 | # include <limits.h> |
| 3138 | #else |
| 3139 | # include <assert.h> |
| 3140 | #endif |
| 3141 | Syntax error |
| 3142 | _ACEOF |
| 3143 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3144 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3145 | ac_status=$? |
| 3146 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3147 | rm -f conftest.er1 |
| 3148 | cat conftest.err >&5 |
| 3149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3150 | (exit $ac_status); } >/dev/null; then |
| 3151 | if test -s conftest.err; then |
| 3152 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3153 | else |
| 3154 | ac_cpp_err= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3155 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3156 | else |
| 3157 | ac_cpp_err=yes |
| 3158 | fi |
| 3159 | if test -z "$ac_cpp_err"; then |
| 3160 | : |
| 3161 | else |
| 3162 | echo "$as_me: failed program was:" >&5 |
| 3163 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3164 | |
| 3165 | # Broken: fails on valid input. |
| 3166 | continue |
| 3167 | fi |
| 3168 | rm -f conftest.err conftest.$ac_ext |
| 3169 | |
| 3170 | # OK, works on sane cases. Now check whether non-existent headers |
| 3171 | # can be detected and how. |
| 3172 | cat >conftest.$ac_ext <<_ACEOF |
| 3173 | #line $LINENO "configure" |
| 3174 | /* confdefs.h. */ |
| 3175 | _ACEOF |
| 3176 | cat confdefs.h >>conftest.$ac_ext |
| 3177 | cat >>conftest.$ac_ext <<_ACEOF |
| 3178 | /* end confdefs.h. */ |
| 3179 | #include <ac_nonexistent.h> |
| 3180 | _ACEOF |
| 3181 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3182 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3183 | ac_status=$? |
| 3184 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3185 | rm -f conftest.er1 |
| 3186 | cat conftest.err >&5 |
| 3187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3188 | (exit $ac_status); } >/dev/null; then |
| 3189 | if test -s conftest.err; then |
| 3190 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3191 | else |
| 3192 | ac_cpp_err= |
| 3193 | fi |
| 3194 | else |
| 3195 | ac_cpp_err=yes |
| 3196 | fi |
| 3197 | if test -z "$ac_cpp_err"; then |
| 3198 | # Broken: success on invalid input. |
| 3199 | continue |
| 3200 | else |
| 3201 | echo "$as_me: failed program was:" >&5 |
| 3202 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3203 | |
| 3204 | # Passes both tests. |
| 3205 | ac_preproc_ok=: |
| 3206 | break |
| 3207 | fi |
| 3208 | rm -f conftest.err conftest.$ac_ext |
| 3209 | |
| 3210 | done |
| 3211 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3212 | rm -f conftest.err conftest.$ac_ext |
| 3213 | if $ac_preproc_ok; then |
| 3214 | break |
| 3215 | fi |
| 3216 | |
| 3217 | done |
| 3218 | ac_cv_prog_CPP=$CPP |
| 3219 | |
| 3220 | fi |
| 3221 | CPP=$ac_cv_prog_CPP |
| 3222 | else |
| 3223 | ac_cv_prog_CPP=$CPP |
| 3224 | fi |
| 3225 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3226 | echo "${ECHO_T}$CPP" >&6 |
| 3227 | ac_preproc_ok=false |
| 3228 | for ac_c_preproc_warn_flag in '' yes |
| 3229 | do |
| 3230 | # Use a header file that comes with gcc, so configuring glibc |
| 3231 | # with a fresh cross-compiler works. |
| 3232 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3233 | # <limits.h> exists even on freestanding compilers. |
| 3234 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3235 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3236 | cat >conftest.$ac_ext <<_ACEOF |
| 3237 | #line $LINENO "configure" |
| 3238 | /* confdefs.h. */ |
| 3239 | _ACEOF |
| 3240 | cat confdefs.h >>conftest.$ac_ext |
| 3241 | cat >>conftest.$ac_ext <<_ACEOF |
| 3242 | /* end confdefs.h. */ |
| 3243 | #ifdef __STDC__ |
| 3244 | # include <limits.h> |
| 3245 | #else |
| 3246 | # include <assert.h> |
| 3247 | #endif |
| 3248 | Syntax error |
| 3249 | _ACEOF |
| 3250 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3251 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3252 | ac_status=$? |
| 3253 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3254 | rm -f conftest.er1 |
| 3255 | cat conftest.err >&5 |
| 3256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3257 | (exit $ac_status); } >/dev/null; then |
| 3258 | if test -s conftest.err; then |
| 3259 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3260 | else |
| 3261 | ac_cpp_err= |
| 3262 | fi |
| 3263 | else |
| 3264 | ac_cpp_err=yes |
| 3265 | fi |
| 3266 | if test -z "$ac_cpp_err"; then |
| 3267 | : |
| 3268 | else |
| 3269 | echo "$as_me: failed program was:" >&5 |
| 3270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3271 | |
| 3272 | # Broken: fails on valid input. |
| 3273 | continue |
| 3274 | fi |
| 3275 | rm -f conftest.err conftest.$ac_ext |
| 3276 | |
| 3277 | # OK, works on sane cases. Now check whether non-existent headers |
| 3278 | # can be detected and how. |
| 3279 | cat >conftest.$ac_ext <<_ACEOF |
| 3280 | #line $LINENO "configure" |
| 3281 | /* confdefs.h. */ |
| 3282 | _ACEOF |
| 3283 | cat confdefs.h >>conftest.$ac_ext |
| 3284 | cat >>conftest.$ac_ext <<_ACEOF |
| 3285 | /* end confdefs.h. */ |
| 3286 | #include <ac_nonexistent.h> |
| 3287 | _ACEOF |
| 3288 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3289 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3290 | ac_status=$? |
| 3291 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3292 | rm -f conftest.er1 |
| 3293 | cat conftest.err >&5 |
| 3294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3295 | (exit $ac_status); } >/dev/null; then |
| 3296 | if test -s conftest.err; then |
| 3297 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3298 | else |
| 3299 | ac_cpp_err= |
| 3300 | fi |
| 3301 | else |
| 3302 | ac_cpp_err=yes |
| 3303 | fi |
| 3304 | if test -z "$ac_cpp_err"; then |
| 3305 | # Broken: success on invalid input. |
| 3306 | continue |
| 3307 | else |
| 3308 | echo "$as_me: failed program was:" >&5 |
| 3309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3310 | |
| 3311 | # Passes both tests. |
| 3312 | ac_preproc_ok=: |
| 3313 | break |
| 3314 | fi |
| 3315 | rm -f conftest.err conftest.$ac_ext |
| 3316 | |
| 3317 | done |
| 3318 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3319 | rm -f conftest.err conftest.$ac_ext |
| 3320 | if $ac_preproc_ok; then |
| 3321 | : |
| 3322 | else |
| 3323 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3324 | See \`config.log' for more details." >&5 |
| 3325 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3326 | See \`config.log' for more details." >&2;} |
| 3327 | { (exit 1); exit 1; }; } |
| 3328 | fi |
| 3329 | |
| 3330 | ac_ext=c |
| 3331 | ac_cpp='$CPP $CPPFLAGS' |
| 3332 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3333 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3334 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3335 | |
| 3336 | |
| 3337 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3338 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 3339 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 3340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3341 | else |
| 3342 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 3343 | then ac_cv_prog_egrep='grep -E' |
| 3344 | else ac_cv_prog_egrep='egrep' |
| 3345 | fi |
| 3346 | fi |
| 3347 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 3348 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 3349 | EGREP=$ac_cv_prog_egrep |
| 3350 | |
| 3351 | |
| 3352 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3353 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3354 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3356 | else |
| 3357 | cat >conftest.$ac_ext <<_ACEOF |
| 3358 | #line $LINENO "configure" |
| 3359 | /* confdefs.h. */ |
| 3360 | _ACEOF |
| 3361 | cat confdefs.h >>conftest.$ac_ext |
| 3362 | cat >>conftest.$ac_ext <<_ACEOF |
| 3363 | /* end confdefs.h. */ |
| 3364 | #include <stdlib.h> |
| 3365 | #include <stdarg.h> |
| 3366 | #include <string.h> |
| 3367 | #include <float.h> |
| 3368 | |
| 3369 | int |
| 3370 | main () |
| 3371 | { |
| 3372 | |
| 3373 | ; |
| 3374 | return 0; |
| 3375 | } |
| 3376 | _ACEOF |
| 3377 | rm -f conftest.$ac_objext |
| 3378 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3379 | (eval $ac_compile) 2>&5 |
| 3380 | ac_status=$? |
| 3381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3382 | (exit $ac_status); } && |
| 3383 | { ac_try='test -s conftest.$ac_objext' |
| 3384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3385 | (eval $ac_try) 2>&5 |
| 3386 | ac_status=$? |
| 3387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3388 | (exit $ac_status); }; }; then |
| 3389 | ac_cv_header_stdc=yes |
| 3390 | else |
| 3391 | echo "$as_me: failed program was:" >&5 |
| 3392 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3393 | |
| 3394 | ac_cv_header_stdc=no |
| 3395 | fi |
| 3396 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3397 | |
| 3398 | if test $ac_cv_header_stdc = yes; then |
| 3399 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3400 | cat >conftest.$ac_ext <<_ACEOF |
| 3401 | #line $LINENO "configure" |
| 3402 | /* confdefs.h. */ |
| 3403 | _ACEOF |
| 3404 | cat confdefs.h >>conftest.$ac_ext |
| 3405 | cat >>conftest.$ac_ext <<_ACEOF |
| 3406 | /* end confdefs.h. */ |
| 3407 | #include <string.h> |
| 3408 | |
| 3409 | _ACEOF |
| 3410 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3411 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3412 | : |
| 3413 | else |
| 3414 | ac_cv_header_stdc=no |
| 3415 | fi |
| 3416 | rm -f conftest* |
| 3417 | |
| 3418 | fi |
| 3419 | |
| 3420 | if test $ac_cv_header_stdc = yes; then |
| 3421 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3422 | cat >conftest.$ac_ext <<_ACEOF |
| 3423 | #line $LINENO "configure" |
| 3424 | /* confdefs.h. */ |
| 3425 | _ACEOF |
| 3426 | cat confdefs.h >>conftest.$ac_ext |
| 3427 | cat >>conftest.$ac_ext <<_ACEOF |
| 3428 | /* end confdefs.h. */ |
| 3429 | #include <stdlib.h> |
| 3430 | |
| 3431 | _ACEOF |
| 3432 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3433 | $EGREP "free" >/dev/null 2>&1; then |
| 3434 | : |
| 3435 | else |
| 3436 | ac_cv_header_stdc=no |
| 3437 | fi |
| 3438 | rm -f conftest* |
| 3439 | |
| 3440 | fi |
| 3441 | |
| 3442 | if test $ac_cv_header_stdc = yes; then |
| 3443 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3444 | if test "$cross_compiling" = yes; then |
| 3445 | : |
| 3446 | else |
| 3447 | cat >conftest.$ac_ext <<_ACEOF |
| 3448 | #line $LINENO "configure" |
| 3449 | /* confdefs.h. */ |
| 3450 | _ACEOF |
| 3451 | cat confdefs.h >>conftest.$ac_ext |
| 3452 | cat >>conftest.$ac_ext <<_ACEOF |
| 3453 | /* end confdefs.h. */ |
| 3454 | #include <ctype.h> |
| 3455 | #if ((' ' & 0x0FF) == 0x020) |
| 3456 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3457 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3458 | #else |
| 3459 | # define ISLOWER(c) \ |
| 3460 | (('a' <= (c) && (c) <= 'i') \ |
| 3461 | || ('j' <= (c) && (c) <= 'r') \ |
| 3462 | || ('s' <= (c) && (c) <= 'z')) |
| 3463 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3464 | #endif |
| 3465 | |
| 3466 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3467 | int |
| 3468 | main () |
| 3469 | { |
| 3470 | int i; |
| 3471 | for (i = 0; i < 256; i++) |
| 3472 | if (XOR (islower (i), ISLOWER (i)) |
| 3473 | || toupper (i) != TOUPPER (i)) |
| 3474 | exit(2); |
| 3475 | exit (0); |
| 3476 | } |
| 3477 | _ACEOF |
| 3478 | rm -f conftest$ac_exeext |
| 3479 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3480 | (eval $ac_link) 2>&5 |
| 3481 | ac_status=$? |
| 3482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3483 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3485 | (eval $ac_try) 2>&5 |
| 3486 | ac_status=$? |
| 3487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3488 | (exit $ac_status); }; }; then |
| 3489 | : |
| 3490 | else |
| 3491 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3492 | echo "$as_me: failed program was:" >&5 |
| 3493 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3494 | |
| 3495 | ( exit $ac_status ) |
| 3496 | ac_cv_header_stdc=no |
| 3497 | fi |
| 3498 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3499 | fi |
| 3500 | fi |
| 3501 | fi |
| 3502 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3503 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 3504 | if test $ac_cv_header_stdc = yes; then |
| 3505 | |
| 3506 | cat >>confdefs.h <<\_ACEOF |
| 3507 | #define STDC_HEADERS 1 |
| 3508 | _ACEOF |
| 3509 | |
| 3510 | fi |
| 3511 | |
| 3512 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3513 | |
| 3514 | |
| 3515 | |
| 3516 | |
| 3517 | |
| 3518 | |
| 3519 | |
| 3520 | |
| 3521 | |
| 3522 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3523 | inttypes.h stdint.h unistd.h |
| 3524 | do |
| 3525 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3526 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3527 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3528 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3530 | else |
| 3531 | cat >conftest.$ac_ext <<_ACEOF |
| 3532 | #line $LINENO "configure" |
| 3533 | /* confdefs.h. */ |
| 3534 | _ACEOF |
| 3535 | cat confdefs.h >>conftest.$ac_ext |
| 3536 | cat >>conftest.$ac_ext <<_ACEOF |
| 3537 | /* end confdefs.h. */ |
| 3538 | $ac_includes_default |
| 3539 | |
| 3540 | #include <$ac_header> |
| 3541 | _ACEOF |
| 3542 | rm -f conftest.$ac_objext |
| 3543 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3544 | (eval $ac_compile) 2>&5 |
| 3545 | ac_status=$? |
| 3546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3547 | (exit $ac_status); } && |
| 3548 | { ac_try='test -s conftest.$ac_objext' |
| 3549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3550 | (eval $ac_try) 2>&5 |
| 3551 | ac_status=$? |
| 3552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3553 | (exit $ac_status); }; }; then |
| 3554 | eval "$as_ac_Header=yes" |
| 3555 | else |
| 3556 | echo "$as_me: failed program was:" >&5 |
| 3557 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3558 | |
| 3559 | eval "$as_ac_Header=no" |
| 3560 | fi |
| 3561 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3562 | fi |
| 3563 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3564 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3565 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3566 | cat >>confdefs.h <<_ACEOF |
| 3567 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3568 | _ACEOF |
| 3569 | |
| 3570 | fi |
| 3571 | |
| 3572 | done |
| 3573 | |
| 3574 | |
| 3575 | |
| 3576 | for ac_header in dlfcn.h |
| 3577 | do |
| 3578 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3579 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3580 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3581 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3582 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3584 | fi |
| 3585 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3586 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3587 | else |
| 3588 | # Is the header compilable? |
| 3589 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3590 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3591 | cat >conftest.$ac_ext <<_ACEOF |
| 3592 | #line $LINENO "configure" |
| 3593 | /* confdefs.h. */ |
| 3594 | _ACEOF |
| 3595 | cat confdefs.h >>conftest.$ac_ext |
| 3596 | cat >>conftest.$ac_ext <<_ACEOF |
| 3597 | /* end confdefs.h. */ |
| 3598 | $ac_includes_default |
| 3599 | #include <$ac_header> |
| 3600 | _ACEOF |
| 3601 | rm -f conftest.$ac_objext |
| 3602 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3603 | (eval $ac_compile) 2>&5 |
| 3604 | ac_status=$? |
| 3605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3606 | (exit $ac_status); } && |
| 3607 | { ac_try='test -s conftest.$ac_objext' |
| 3608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3609 | (eval $ac_try) 2>&5 |
| 3610 | ac_status=$? |
| 3611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3612 | (exit $ac_status); }; }; then |
| 3613 | ac_header_compiler=yes |
| 3614 | else |
| 3615 | echo "$as_me: failed program was:" >&5 |
| 3616 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3617 | |
| 3618 | ac_header_compiler=no |
| 3619 | fi |
| 3620 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3621 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3622 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3623 | |
| 3624 | # Is the header present? |
| 3625 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3626 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3627 | cat >conftest.$ac_ext <<_ACEOF |
| 3628 | #line $LINENO "configure" |
| 3629 | /* confdefs.h. */ |
| 3630 | _ACEOF |
| 3631 | cat confdefs.h >>conftest.$ac_ext |
| 3632 | cat >>conftest.$ac_ext <<_ACEOF |
| 3633 | /* end confdefs.h. */ |
| 3634 | #include <$ac_header> |
| 3635 | _ACEOF |
| 3636 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3637 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3638 | ac_status=$? |
| 3639 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3640 | rm -f conftest.er1 |
| 3641 | cat conftest.err >&5 |
| 3642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3643 | (exit $ac_status); } >/dev/null; then |
| 3644 | if test -s conftest.err; then |
| 3645 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3646 | else |
| 3647 | ac_cpp_err= |
| 3648 | fi |
| 3649 | else |
| 3650 | ac_cpp_err=yes |
| 3651 | fi |
| 3652 | if test -z "$ac_cpp_err"; then |
| 3653 | ac_header_preproc=yes |
| 3654 | else |
| 3655 | echo "$as_me: failed program was:" >&5 |
| 3656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3657 | |
| 3658 | ac_header_preproc=no |
| 3659 | fi |
| 3660 | rm -f conftest.err conftest.$ac_ext |
| 3661 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3662 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3663 | |
| 3664 | # So? What about this header? |
| 3665 | case $ac_header_compiler:$ac_header_preproc in |
| 3666 | yes:no ) |
| 3667 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3668 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3669 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3670 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 3671 | ( |
| 3672 | cat <<\_ASBOX |
| 3673 | ## ------------------------------------ ## |
| 3674 | ## Report this to bug-autoconf@gnu.org. ## |
| 3675 | ## ------------------------------------ ## |
| 3676 | _ASBOX |
| 3677 | ) | |
| 3678 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3679 | ;; |
| 3680 | no:yes ) |
| 3681 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3682 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 3683 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3684 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3685 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3686 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 3687 | ( |
| 3688 | cat <<\_ASBOX |
| 3689 | ## ------------------------------------ ## |
| 3690 | ## Report this to bug-autoconf@gnu.org. ## |
| 3691 | ## ------------------------------------ ## |
| 3692 | _ASBOX |
| 3693 | ) | |
| 3694 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3695 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3696 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3697 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3698 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3699 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3701 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3702 | eval "$as_ac_Header=$ac_header_preproc" |
| 3703 | fi |
| 3704 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3705 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3706 | |
| 3707 | fi |
| 3708 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3709 | cat >>confdefs.h <<_ACEOF |
| 3710 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3711 | _ACEOF |
| 3712 | |
| 3713 | fi |
| 3714 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3715 | done |
| 3716 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3717 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3718 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 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 | |
| 3722 | # Only perform the check for file, if the check method requires it |
| 3723 | case $deplibs_check_method in |
| 3724 | file_magic*) |
| 3725 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3726 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3727 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
| 3728 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 3729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3730 | else |
| 3731 | case $MAGIC_CMD in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3732 | /*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3733 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 3734 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3735 | ?:/*) |
| 3736 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
| 3737 | ;; |
| 3738 | *) |
| 3739 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
| 3740 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3741 | ac_dummy="/usr/bin:$PATH" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3742 | for ac_dir in $ac_dummy; do |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3743 | test -z "$ac_dir" && ac_dir=. |
| 3744 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 3745 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 3746 | if test -n "$file_magic_test_file"; then |
| 3747 | case $deplibs_check_method in |
| 3748 | "file_magic "*) |
| 3749 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 3750 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 3751 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 3752 | egrep "$file_magic_regex" > /dev/null; then |
| 3753 | : |
| 3754 | else |
| 3755 | cat <<EOF 1>&2 |
| 3756 | |
| 3757 | *** Warning: the command libtool uses to detect shared libraries, |
| 3758 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 3759 | *** The result is that libtool may fail to recognize shared libraries |
| 3760 | *** as such. This will affect the creation of libtool libraries that |
| 3761 | *** depend on shared libraries, but programs linked with such libtool |
| 3762 | *** libraries will work regardless of this problem. Nevertheless, you |
| 3763 | *** may want to report the problem to your system manager and/or to |
| 3764 | *** bug-libtool@gnu.org |
| 3765 | |
| 3766 | EOF |
| 3767 | fi ;; |
| 3768 | esac |
| 3769 | fi |
| 3770 | break |
| 3771 | fi |
| 3772 | done |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3773 | IFS="$ac_save_ifs" |
| 3774 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3775 | ;; |
| 3776 | esac |
| 3777 | fi |
| 3778 | |
| 3779 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 3780 | if test -n "$MAGIC_CMD"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3781 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3782 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 3783 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3784 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3785 | echo "${ECHO_T}no" >&6 |
| 3786 | fi |
| 3787 | |
| 3788 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 3789 | if test -n "$ac_tool_prefix"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3790 | echo "$as_me:$LINENO: checking for file" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3791 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
| 3792 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 3793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3794 | else |
| 3795 | case $MAGIC_CMD in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3796 | /*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3797 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 3798 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3799 | ?:/*) |
| 3800 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
| 3801 | ;; |
| 3802 | *) |
| 3803 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
| 3804 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3805 | ac_dummy="/usr/bin:$PATH" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3806 | for ac_dir in $ac_dummy; do |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3807 | test -z "$ac_dir" && ac_dir=. |
| 3808 | if test -f $ac_dir/file; then |
| 3809 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 3810 | if test -n "$file_magic_test_file"; then |
| 3811 | case $deplibs_check_method in |
| 3812 | "file_magic "*) |
| 3813 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 3814 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 3815 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 3816 | egrep "$file_magic_regex" > /dev/null; then |
| 3817 | : |
| 3818 | else |
| 3819 | cat <<EOF 1>&2 |
| 3820 | |
| 3821 | *** Warning: the command libtool uses to detect shared libraries, |
| 3822 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 3823 | *** The result is that libtool may fail to recognize shared libraries |
| 3824 | *** as such. This will affect the creation of libtool libraries that |
| 3825 | *** depend on shared libraries, but programs linked with such libtool |
| 3826 | *** libraries will work regardless of this problem. Nevertheless, you |
| 3827 | *** may want to report the problem to your system manager and/or to |
| 3828 | *** bug-libtool@gnu.org |
| 3829 | |
| 3830 | EOF |
| 3831 | fi ;; |
| 3832 | esac |
| 3833 | fi |
| 3834 | break |
| 3835 | fi |
| 3836 | done |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3837 | IFS="$ac_save_ifs" |
| 3838 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3839 | ;; |
| 3840 | esac |
| 3841 | fi |
| 3842 | |
| 3843 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 3844 | if test -n "$MAGIC_CMD"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3845 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3846 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 3847 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3848 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3849 | echo "${ECHO_T}no" >&6 |
| 3850 | fi |
| 3851 | |
| 3852 | else |
| 3853 | MAGIC_CMD=: |
| 3854 | fi |
| 3855 | fi |
| 3856 | |
| 3857 | fi |
| 3858 | ;; |
| 3859 | esac |
| 3860 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3861 | if test -n "$ac_tool_prefix"; then |
| 3862 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3863 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3864 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3865 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3866 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3868 | else |
| 3869 | if test -n "$RANLIB"; then |
| 3870 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3871 | else |
| 3872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3873 | for as_dir in $PATH |
| 3874 | do |
| 3875 | IFS=$as_save_IFS |
| 3876 | test -z "$as_dir" && as_dir=. |
| 3877 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3878 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3879 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3880 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3881 | break 2 |
| 3882 | fi |
| 3883 | done |
| 3884 | done |
| 3885 | |
| 3886 | fi |
| 3887 | fi |
| 3888 | RANLIB=$ac_cv_prog_RANLIB |
| 3889 | if test -n "$RANLIB"; then |
| 3890 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3891 | echo "${ECHO_T}$RANLIB" >&6 |
| 3892 | else |
| 3893 | echo "$as_me:$LINENO: result: no" >&5 |
| 3894 | echo "${ECHO_T}no" >&6 |
| 3895 | fi |
| 3896 | |
| 3897 | fi |
| 3898 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3899 | ac_ct_RANLIB=$RANLIB |
| 3900 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3901 | set dummy ranlib; ac_word=$2 |
| 3902 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3903 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3904 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3906 | else |
| 3907 | if test -n "$ac_ct_RANLIB"; then |
| 3908 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3909 | else |
| 3910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3911 | for as_dir in $PATH |
| 3912 | do |
| 3913 | IFS=$as_save_IFS |
| 3914 | test -z "$as_dir" && as_dir=. |
| 3915 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3916 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3917 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3918 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3919 | break 2 |
| 3920 | fi |
| 3921 | done |
| 3922 | done |
| 3923 | |
| 3924 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3925 | fi |
| 3926 | fi |
| 3927 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3928 | if test -n "$ac_ct_RANLIB"; then |
| 3929 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3930 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3931 | else |
| 3932 | echo "$as_me:$LINENO: result: no" >&5 |
| 3933 | echo "${ECHO_T}no" >&6 |
| 3934 | fi |
| 3935 | |
| 3936 | RANLIB=$ac_ct_RANLIB |
| 3937 | else |
| 3938 | RANLIB="$ac_cv_prog_RANLIB" |
| 3939 | fi |
| 3940 | |
| 3941 | if test -n "$ac_tool_prefix"; then |
| 3942 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 3943 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 3944 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3945 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3946 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 3947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3948 | else |
| 3949 | if test -n "$STRIP"; then |
| 3950 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 3951 | else |
| 3952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3953 | for as_dir in $PATH |
| 3954 | do |
| 3955 | IFS=$as_save_IFS |
| 3956 | test -z "$as_dir" && as_dir=. |
| 3957 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3958 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3959 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 3960 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3961 | break 2 |
| 3962 | fi |
| 3963 | done |
| 3964 | done |
| 3965 | |
| 3966 | fi |
| 3967 | fi |
| 3968 | STRIP=$ac_cv_prog_STRIP |
| 3969 | if test -n "$STRIP"; then |
| 3970 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 3971 | echo "${ECHO_T}$STRIP" >&6 |
| 3972 | else |
| 3973 | echo "$as_me:$LINENO: result: no" >&5 |
| 3974 | echo "${ECHO_T}no" >&6 |
| 3975 | fi |
| 3976 | |
| 3977 | fi |
| 3978 | if test -z "$ac_cv_prog_STRIP"; then |
| 3979 | ac_ct_STRIP=$STRIP |
| 3980 | # Extract the first word of "strip", so it can be a program name with args. |
| 3981 | set dummy strip; ac_word=$2 |
| 3982 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3983 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3984 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 3985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3986 | else |
| 3987 | if test -n "$ac_ct_STRIP"; then |
| 3988 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 3989 | else |
| 3990 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3991 | for as_dir in $PATH |
| 3992 | do |
| 3993 | IFS=$as_save_IFS |
| 3994 | test -z "$as_dir" && as_dir=. |
| 3995 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3996 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3997 | ac_cv_prog_ac_ct_STRIP="strip" |
| 3998 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3999 | break 2 |
| 4000 | fi |
| 4001 | done |
| 4002 | done |
| 4003 | |
| 4004 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 4005 | fi |
| 4006 | fi |
| 4007 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 4008 | if test -n "$ac_ct_STRIP"; then |
| 4009 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 4010 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 4011 | else |
| 4012 | echo "$as_me:$LINENO: result: no" >&5 |
| 4013 | echo "${ECHO_T}no" >&6 |
| 4014 | fi |
| 4015 | |
| 4016 | STRIP=$ac_ct_STRIP |
| 4017 | else |
| 4018 | STRIP="$ac_cv_prog_STRIP" |
| 4019 | fi |
| 4020 | |
| 4021 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4022 | enable_dlopen=no |
| 4023 | enable_win32_dll=no |
| 4024 | |
| 4025 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 4026 | if test "${enable_libtool_lock+set}" = set; then |
| 4027 | enableval="$enable_libtool_lock" |
| 4028 | |
| 4029 | fi; |
| 4030 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 4031 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4032 | # Some flags need to be propagated to the compiler or linker for good |
| 4033 | # libtool support. |
| 4034 | case $host in |
| 4035 | *-*-irix6*) |
| 4036 | # Find out which ABI we are using. |
| 4037 | echo '#line 4037 "configure"' > conftest.$ac_ext |
| 4038 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4039 | (eval $ac_compile) 2>&5 |
| 4040 | ac_status=$? |
| 4041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4042 | (exit $ac_status); }; then |
| 4043 | case `/usr/bin/file conftest.$ac_objext` in |
| 4044 | *32-bit*) |
| 4045 | LD="${LD-ld} -32" |
| 4046 | ;; |
| 4047 | *N32*) |
| 4048 | LD="${LD-ld} -n32" |
| 4049 | ;; |
| 4050 | *64-bit*) |
| 4051 | LD="${LD-ld} -64" |
| 4052 | ;; |
| 4053 | esac |
| 4054 | fi |
| 4055 | rm -rf conftest* |
| 4056 | ;; |
| 4057 | |
| 4058 | *-*-sco3.2v5*) |
| 4059 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 4060 | SAVE_CFLAGS="$CFLAGS" |
| 4061 | CFLAGS="$CFLAGS -belf" |
| 4062 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 4063 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
| 4064 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 4065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4066 | else |
| 4067 | |
| 4068 | |
| 4069 | ac_ext=c |
| 4070 | ac_cpp='$CPP $CPPFLAGS' |
| 4071 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4072 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4073 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4074 | |
| 4075 | cat >conftest.$ac_ext <<_ACEOF |
| 4076 | #line $LINENO "configure" |
| 4077 | /* confdefs.h. */ |
| 4078 | _ACEOF |
| 4079 | cat confdefs.h >>conftest.$ac_ext |
| 4080 | cat >>conftest.$ac_ext <<_ACEOF |
| 4081 | /* end confdefs.h. */ |
| 4082 | |
| 4083 | int |
| 4084 | main () |
| 4085 | { |
| 4086 | |
| 4087 | ; |
| 4088 | return 0; |
| 4089 | } |
| 4090 | _ACEOF |
| 4091 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4092 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4093 | (eval $ac_link) 2>&5 |
| 4094 | ac_status=$? |
| 4095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4096 | (exit $ac_status); } && |
| 4097 | { ac_try='test -s conftest$ac_exeext' |
| 4098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4099 | (eval $ac_try) 2>&5 |
| 4100 | ac_status=$? |
| 4101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4102 | (exit $ac_status); }; }; then |
| 4103 | lt_cv_cc_needs_belf=yes |
| 4104 | else |
| 4105 | echo "$as_me: failed program was:" >&5 |
| 4106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4107 | |
| 4108 | lt_cv_cc_needs_belf=no |
| 4109 | fi |
| 4110 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4111 | ac_ext=c |
| 4112 | ac_cpp='$CPP $CPPFLAGS' |
| 4113 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4114 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4115 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4116 | |
| 4117 | fi |
| 4118 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 4119 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
| 4120 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 4121 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 4122 | CFLAGS="$SAVE_CFLAGS" |
| 4123 | fi |
| 4124 | ;; |
| 4125 | |
| 4126 | |
| 4127 | esac |
| 4128 | |
| 4129 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 4130 | # metacharacters that are still active within double-quoted strings. |
| 4131 | Xsed='sed -e s/^X//' |
| 4132 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 4133 | |
| 4134 | # Same as above, but do not quote variable references. |
| 4135 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 4136 | |
| 4137 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 4138 | # double_quote_subst'ed string. |
| 4139 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 4140 | |
| 4141 | # Constants: |
| 4142 | rm="rm -f" |
| 4143 | |
| 4144 | # Global variables: |
| 4145 | default_ofile=libtool |
| 4146 | can_build_shared=yes |
| 4147 | |
| 4148 | # All known linkers require a `.a' archive for static linking (except M$VC, |
| 4149 | # which needs '.lib'). |
| 4150 | libext=a |
| 4151 | ltmain="$ac_aux_dir/ltmain.sh" |
| 4152 | ofile="$default_ofile" |
| 4153 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 4154 | need_locks="$enable_libtool_lock" |
| 4155 | |
| 4156 | old_CC="$CC" |
| 4157 | old_CFLAGS="$CFLAGS" |
| 4158 | |
| 4159 | # Set sane defaults for various variables |
| 4160 | test -z "$AR" && AR=ar |
| 4161 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 4162 | test -z "$AS" && AS=as |
| 4163 | test -z "$CC" && CC=cc |
| 4164 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 4165 | test -z "$LD" && LD=ld |
| 4166 | test -z "$LN_S" && LN_S="ln -s" |
| 4167 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 4168 | test -z "$NM" && NM=nm |
| 4169 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 4170 | test -z "$RANLIB" && RANLIB=: |
| 4171 | test -z "$STRIP" && STRIP=: |
| 4172 | test -z "$ac_objext" && ac_objext=o |
| 4173 | |
| 4174 | if test x"$host" != x"$build"; then |
| 4175 | ac_tool_prefix=${host_alias}- |
| 4176 | else |
| 4177 | ac_tool_prefix= |
| 4178 | fi |
| 4179 | |
| 4180 | # Transform linux* to *-*-linux-gnu*, to support old configure scripts. |
| 4181 | case $host_os in |
| 4182 | linux-gnu*) ;; |
| 4183 | linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` |
| 4184 | esac |
| 4185 | |
| 4186 | case $host_os in |
| 4187 | aix3*) |
| 4188 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 4189 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 4190 | # vanish in a puff of smoke. |
| 4191 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 4192 | COLLECT_NAMES= |
| 4193 | export COLLECT_NAMES |
| 4194 | fi |
| 4195 | ;; |
| 4196 | esac |
| 4197 | |
| 4198 | # Determine commands to create old-style static archives. |
| 4199 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 4200 | old_postinstall_cmds='chmod 644 $oldlib' |
| 4201 | old_postuninstall_cmds= |
| 4202 | |
| 4203 | if test -n "$RANLIB"; then |
| 4204 | case $host_os in |
| 4205 | openbsd*) |
| 4206 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
| 4207 | ;; |
| 4208 | *) |
| 4209 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
| 4210 | ;; |
| 4211 | esac |
| 4212 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 4213 | fi |
| 4214 | |
| 4215 | # Allow CC to be a program name with arguments. |
| 4216 | set dummy $CC |
| 4217 | compiler="$2" |
| 4218 | |
| 4219 | echo "$as_me:$LINENO: checking for objdir" >&5 |
| 4220 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| 4221 | rm -f .libs 2>/dev/null |
| 4222 | mkdir .libs 2>/dev/null |
| 4223 | if test -d .libs; then |
| 4224 | objdir=.libs |
| 4225 | else |
| 4226 | # MS-DOS does not allow filenames that begin with a dot. |
| 4227 | objdir=_libs |
| 4228 | fi |
| 4229 | rmdir .libs 2>/dev/null |
| 4230 | echo "$as_me:$LINENO: result: $objdir" >&5 |
| 4231 | echo "${ECHO_T}$objdir" >&6 |
| 4232 | |
| 4233 | |
| 4234 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4235 | # Check whether --with-pic or --without-pic was given. |
| 4236 | if test "${with_pic+set}" = set; then |
| 4237 | withval="$with_pic" |
| 4238 | pic_mode="$withval" |
| 4239 | else |
| 4240 | pic_mode=default |
| 4241 | fi; |
| 4242 | test -z "$pic_mode" && pic_mode=default |
| 4243 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4244 | # We assume here that the value for lt_cv_prog_cc_pic will not be cached |
| 4245 | # in isolation, and that seeing it set (from the cache) indicates that |
| 4246 | # the associated values are set (in the cache) correctly too. |
| 4247 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4248 | 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] | 4249 | if test "${lt_cv_prog_cc_pic+set}" = set; then |
| 4250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4251 | else |
| 4252 | lt_cv_prog_cc_pic= |
| 4253 | lt_cv_prog_cc_shlib= |
| 4254 | lt_cv_prog_cc_wl= |
| 4255 | lt_cv_prog_cc_static= |
| 4256 | lt_cv_prog_cc_no_builtin= |
| 4257 | lt_cv_prog_cc_can_build_shared=$can_build_shared |
| 4258 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4259 | if test "$GCC" = yes; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4260 | lt_cv_prog_cc_wl='-Wl,' |
| 4261 | lt_cv_prog_cc_static='-static' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4262 | |
| 4263 | case $host_os in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4264 | aix*) |
| 4265 | # Below there is a dirty hack to force normal static linking with -ldl |
| 4266 | # The problem is because libdl dynamically linked with both libc and |
| 4267 | # libC (AIX C++ library), which obviously doesn't included in libraries |
| 4268 | # list by gcc. This cause undefined symbols with -static flags. |
| 4269 | # This hack allows C programs to be linked with "-static -ldl", but |
| 4270 | # not sure about C++ programs. |
| 4271 | 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] | 4272 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4273 | amigaos*) |
| 4274 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 4275 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 4276 | # like `-m68040'. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4277 | lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4278 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4279 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4280 | # PIC is the default for these OSes. |
| 4281 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4282 | darwin* | rhapsody*) |
| 4283 | # PIC is the default on this platform |
| 4284 | # Common symbols not allowed in MH_DYLIB files |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4285 | lt_cv_prog_cc_pic='-fno-common' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4286 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4287 | cygwin* | mingw* | pw32* | os2*) |
| 4288 | # This hack is so that the source file can tell whether it is being |
| 4289 | # built for inclusion in a dll (and should export symbols for example). |
| 4290 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4291 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4292 | sysv4*MP*) |
| 4293 | if test -d /usr/nec; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4294 | lt_cv_prog_cc_pic=-Kconform_pic |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4295 | fi |
| 4296 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4297 | *) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4298 | lt_cv_prog_cc_pic='-fPIC' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4299 | ;; |
| 4300 | esac |
| 4301 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4302 | # PORTME Check for PIC flags for the system compiler. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4303 | case $host_os in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4304 | aix3* | aix4* | aix5*) |
| 4305 | lt_cv_prog_cc_wl='-Wl,' |
| 4306 | # All AIX code is PIC. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4307 | if test "$host_cpu" = ia64; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4308 | # AIX 5 now supports IA64 processor |
| 4309 | lt_cv_prog_cc_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4310 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4311 | lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4312 | fi |
| 4313 | ;; |
| 4314 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4315 | hpux9* | hpux10* | hpux11*) |
| 4316 | # Is there a better lt_cv_prog_cc_static that works with the bundled CC? |
| 4317 | lt_cv_prog_cc_wl='-Wl,' |
| 4318 | lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" |
| 4319 | lt_cv_prog_cc_pic='+Z' |
| 4320 | ;; |
| 4321 | |
| 4322 | irix5* | irix6* | nonstopux*) |
| 4323 | lt_cv_prog_cc_wl='-Wl,' |
| 4324 | lt_cv_prog_cc_static='-non_shared' |
| 4325 | # PIC (with -KPIC) is the default. |
| 4326 | ;; |
| 4327 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4328 | cygwin* | mingw* | pw32* | os2*) |
| 4329 | # This hack is so that the source file can tell whether it is being |
| 4330 | # built for inclusion in a dll (and should export symbols for example). |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4331 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4332 | ;; |
| 4333 | |
| 4334 | newsos6) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4335 | lt_cv_prog_cc_pic='-KPIC' |
| 4336 | lt_cv_prog_cc_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4337 | ;; |
| 4338 | |
| 4339 | osf3* | osf4* | osf5*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4340 | # All OSF/1 code is PIC. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4341 | lt_cv_prog_cc_wl='-Wl,' |
| 4342 | lt_cv_prog_cc_static='-non_shared' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4343 | ;; |
| 4344 | |
| 4345 | sco3.2v5*) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4346 | lt_cv_prog_cc_pic='-Kpic' |
| 4347 | lt_cv_prog_cc_static='-dn' |
| 4348 | lt_cv_prog_cc_shlib='-belf' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4349 | ;; |
| 4350 | |
| 4351 | solaris*) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4352 | lt_cv_prog_cc_pic='-KPIC' |
| 4353 | lt_cv_prog_cc_static='-Bstatic' |
| 4354 | lt_cv_prog_cc_wl='-Wl,' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4355 | ;; |
| 4356 | |
| 4357 | sunos4*) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4358 | lt_cv_prog_cc_pic='-PIC' |
| 4359 | lt_cv_prog_cc_static='-Bstatic' |
| 4360 | lt_cv_prog_cc_wl='-Qoption ld ' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4361 | ;; |
| 4362 | |
| 4363 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4364 | lt_cv_prog_cc_pic='-KPIC' |
| 4365 | lt_cv_prog_cc_static='-Bstatic' |
| 4366 | lt_cv_prog_cc_wl='-Wl,' |
| 4367 | ;; |
| 4368 | |
| 4369 | uts4*) |
| 4370 | lt_cv_prog_cc_pic='-pic' |
| 4371 | lt_cv_prog_cc_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4372 | ;; |
| 4373 | |
| 4374 | sysv4*MP*) |
| 4375 | if test -d /usr/nec ;then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4376 | lt_cv_prog_cc_pic='-Kconform_pic' |
| 4377 | lt_cv_prog_cc_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4378 | fi |
| 4379 | ;; |
| 4380 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4381 | *) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4382 | lt_cv_prog_cc_can_build_shared=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4383 | ;; |
| 4384 | esac |
| 4385 | fi |
| 4386 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4387 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4388 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4389 | if test -z "$lt_cv_prog_cc_pic"; then |
| 4390 | echo "$as_me:$LINENO: result: none" >&5 |
| 4391 | echo "${ECHO_T}none" >&6 |
| 4392 | else |
| 4393 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5 |
| 4394 | echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6 |
| 4395 | |
| 4396 | # Check to make sure the pic_flag actually works. |
| 4397 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 |
| 4398 | echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6 |
| 4399 | if test "${lt_cv_prog_cc_pic_works+set}" = set; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4401 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4402 | save_CFLAGS="$CFLAGS" |
| 4403 | CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" |
| 4404 | cat >conftest.$ac_ext <<_ACEOF |
| 4405 | #line $LINENO "configure" |
| 4406 | /* confdefs.h. */ |
| 4407 | _ACEOF |
| 4408 | cat confdefs.h >>conftest.$ac_ext |
| 4409 | cat >>conftest.$ac_ext <<_ACEOF |
| 4410 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4411 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4412 | int |
| 4413 | main () |
| 4414 | { |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4415 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4416 | ; |
| 4417 | return 0; |
| 4418 | } |
| 4419 | _ACEOF |
| 4420 | rm -f conftest.$ac_objext |
| 4421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4422 | (eval $ac_compile) 2>&5 |
| 4423 | ac_status=$? |
| 4424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4425 | (exit $ac_status); } && |
| 4426 | { ac_try='test -s conftest.$ac_objext' |
| 4427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4428 | (eval $ac_try) 2>&5 |
| 4429 | ac_status=$? |
| 4430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4431 | (exit $ac_status); }; }; then |
| 4432 | case $host_os in |
| 4433 | hpux9* | hpux10* | hpux11*) |
| 4434 | # On HP-UX, both CC and GCC only warn that PIC is supported... then |
| 4435 | # they create non-PIC objects. So, if there were any warnings, we |
| 4436 | # assume that PIC is not supported. |
| 4437 | if test -s conftest.err; then |
| 4438 | lt_cv_prog_cc_pic_works=no |
| 4439 | else |
| 4440 | lt_cv_prog_cc_pic_works=yes |
| 4441 | fi |
| 4442 | ;; |
| 4443 | *) |
| 4444 | lt_cv_prog_cc_pic_works=yes |
| 4445 | ;; |
| 4446 | esac |
| 4447 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4448 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4449 | echo "$as_me: failed program was:" >&5 |
| 4450 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4451 | |
| 4452 | lt_cv_prog_cc_pic_works=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4453 | |
| 4454 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4455 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4456 | CFLAGS="$save_CFLAGS" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4457 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4458 | fi |
| 4459 | |
| 4460 | |
| 4461 | if test "X$lt_cv_prog_cc_pic_works" = Xno; then |
| 4462 | lt_cv_prog_cc_pic= |
| 4463 | lt_cv_prog_cc_can_build_shared=no |
| 4464 | else |
| 4465 | lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" |
| 4466 | fi |
| 4467 | |
| 4468 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5 |
| 4469 | echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6 |
| 4470 | fi |
| 4471 | |
| 4472 | # Check for any special shared library compilation flags. |
| 4473 | if test -n "$lt_cv_prog_cc_shlib"; then |
| 4474 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5 |
| 4475 | echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;} |
| 4476 | if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : |
| 4477 | else |
| 4478 | { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
| 4479 | echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
| 4480 | lt_cv_prog_cc_can_build_shared=no |
| 4481 | fi |
| 4482 | fi |
| 4483 | |
| 4484 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 |
| 4485 | echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 |
| 4486 | if test "${lt_cv_prog_cc_static_works+set}" = set; then |
| 4487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4488 | else |
| 4489 | lt_cv_prog_cc_static_works=no |
| 4490 | save_LDFLAGS="$LDFLAGS" |
| 4491 | LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" |
| 4492 | cat >conftest.$ac_ext <<_ACEOF |
| 4493 | #line $LINENO "configure" |
| 4494 | /* confdefs.h. */ |
| 4495 | _ACEOF |
| 4496 | cat confdefs.h >>conftest.$ac_ext |
| 4497 | cat >>conftest.$ac_ext <<_ACEOF |
| 4498 | /* end confdefs.h. */ |
| 4499 | |
| 4500 | int |
| 4501 | main () |
| 4502 | { |
| 4503 | |
| 4504 | ; |
| 4505 | return 0; |
| 4506 | } |
| 4507 | _ACEOF |
| 4508 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4509 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4510 | (eval $ac_link) 2>&5 |
| 4511 | ac_status=$? |
| 4512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4513 | (exit $ac_status); } && |
| 4514 | { ac_try='test -s conftest$ac_exeext' |
| 4515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4516 | (eval $ac_try) 2>&5 |
| 4517 | ac_status=$? |
| 4518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4519 | (exit $ac_status); }; }; then |
| 4520 | lt_cv_prog_cc_static_works=yes |
| 4521 | else |
| 4522 | echo "$as_me: failed program was:" >&5 |
| 4523 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4524 | |
| 4525 | fi |
| 4526 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4527 | LDFLAGS="$save_LDFLAGS" |
| 4528 | |
| 4529 | fi |
| 4530 | |
| 4531 | |
| 4532 | # Belt *and* braces to stop my trousers falling down: |
| 4533 | test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= |
| 4534 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5 |
| 4535 | echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6 |
| 4536 | |
| 4537 | pic_flag="$lt_cv_prog_cc_pic" |
| 4538 | special_shlib_compile_flags="$lt_cv_prog_cc_shlib" |
| 4539 | wl="$lt_cv_prog_cc_wl" |
| 4540 | link_static_flag="$lt_cv_prog_cc_static" |
| 4541 | no_builtin_flag="$lt_cv_prog_cc_no_builtin" |
| 4542 | can_build_shared="$lt_cv_prog_cc_can_build_shared" |
| 4543 | |
| 4544 | |
| 4545 | # Check to see if options -o and -c are simultaneously supported by compiler |
| 4546 | 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] | 4547 | 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] | 4548 | if test "${lt_cv_compiler_c_o+set}" = set; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4550 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4551 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4552 | $rm -r conftest 2>/dev/null |
| 4553 | mkdir conftest |
| 4554 | cd conftest |
| 4555 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 4556 | mkdir out |
| 4557 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 4558 | # that will create temporary files in the current directory regardless of |
| 4559 | # the output directory. Thus, making CWD read-only will cause this test |
| 4560 | # to fail, enabling locking or at least warning the user not to do parallel |
| 4561 | # builds. |
| 4562 | chmod -w . |
| 4563 | save_CFLAGS="$CFLAGS" |
| 4564 | CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" |
| 4565 | compiler_c_o=no |
| 4566 | if { (eval echo configure:4566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then |
| 4567 | # The compiler can only warn and ignore the option if not recognized |
| 4568 | # So say no if there are warnings |
| 4569 | if test -s out/conftest.err; then |
| 4570 | lt_cv_compiler_c_o=no |
| 4571 | else |
| 4572 | lt_cv_compiler_c_o=yes |
| 4573 | fi |
| 4574 | else |
| 4575 | # Append any errors to the config.log. |
| 4576 | cat out/conftest.err 1>&5 |
| 4577 | lt_cv_compiler_c_o=no |
| 4578 | fi |
| 4579 | CFLAGS="$save_CFLAGS" |
| 4580 | chmod u+w . |
| 4581 | $rm conftest* out/* |
| 4582 | rmdir out |
| 4583 | cd .. |
| 4584 | rmdir conftest |
| 4585 | $rm -r conftest 2>/dev/null |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4586 | |
| 4587 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4588 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4589 | compiler_c_o=$lt_cv_compiler_c_o |
| 4590 | echo "$as_me:$LINENO: result: $compiler_c_o" >&5 |
| 4591 | echo "${ECHO_T}$compiler_c_o" >&6 |
| 4592 | |
| 4593 | if test x"$compiler_c_o" = x"yes"; then |
| 4594 | # Check to see if we can write to a .lo |
| 4595 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5 |
| 4596 | echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6 |
| 4597 | if test "${lt_cv_compiler_o_lo+set}" = set; then |
| 4598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4599 | else |
| 4600 | |
| 4601 | lt_cv_compiler_o_lo=no |
| 4602 | save_CFLAGS="$CFLAGS" |
| 4603 | CFLAGS="$CFLAGS -c -o conftest.lo" |
| 4604 | save_objext="$ac_objext" |
| 4605 | ac_objext=lo |
| 4606 | cat >conftest.$ac_ext <<_ACEOF |
| 4607 | #line $LINENO "configure" |
| 4608 | /* confdefs.h. */ |
| 4609 | _ACEOF |
| 4610 | cat confdefs.h >>conftest.$ac_ext |
| 4611 | cat >>conftest.$ac_ext <<_ACEOF |
| 4612 | /* end confdefs.h. */ |
| 4613 | |
| 4614 | int |
| 4615 | main () |
| 4616 | { |
| 4617 | int some_variable = 0; |
| 4618 | ; |
| 4619 | return 0; |
| 4620 | } |
| 4621 | _ACEOF |
| 4622 | rm -f conftest.$ac_objext |
| 4623 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4624 | (eval $ac_compile) 2>&5 |
| 4625 | ac_status=$? |
| 4626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4627 | (exit $ac_status); } && |
| 4628 | { ac_try='test -s conftest.$ac_objext' |
| 4629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4630 | (eval $ac_try) 2>&5 |
| 4631 | ac_status=$? |
| 4632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4633 | (exit $ac_status); }; }; then |
| 4634 | # The compiler can only warn and ignore the option if not recognized |
| 4635 | # So say no if there are warnings |
| 4636 | if test -s conftest.err; then |
| 4637 | lt_cv_compiler_o_lo=no |
| 4638 | else |
| 4639 | lt_cv_compiler_o_lo=yes |
| 4640 | fi |
| 4641 | |
| 4642 | else |
| 4643 | echo "$as_me: failed program was:" >&5 |
| 4644 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4645 | |
| 4646 | fi |
| 4647 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4648 | ac_objext="$save_objext" |
| 4649 | CFLAGS="$save_CFLAGS" |
| 4650 | |
| 4651 | fi |
| 4652 | |
| 4653 | compiler_o_lo=$lt_cv_compiler_o_lo |
| 4654 | echo "$as_me:$LINENO: result: $compiler_o_lo" >&5 |
| 4655 | echo "${ECHO_T}$compiler_o_lo" >&6 |
| 4656 | else |
| 4657 | compiler_o_lo=no |
| 4658 | fi |
| 4659 | |
| 4660 | # 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] | 4661 | hard_links="nottested" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4662 | if test "$compiler_c_o" = no && test "$need_locks" != no; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4663 | # do not overwrite the value of need_locks provided by the user |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4664 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4665 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 4666 | hard_links=yes |
| 4667 | $rm conftest* |
| 4668 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 4669 | touch conftest.a |
| 4670 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 4671 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4672 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4673 | echo "${ECHO_T}$hard_links" >&6 |
| 4674 | if test "$hard_links" = no; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4675 | { 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] | 4676 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 4677 | need_locks=warn |
| 4678 | fi |
| 4679 | else |
| 4680 | need_locks=no |
| 4681 | fi |
| 4682 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4683 | if test "$GCC" = yes; then |
| 4684 | # Check to see if options -fno-rtti -fno-exceptions are supported by compiler |
| 4685 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 4686 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 4687 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 4688 | save_CFLAGS="$CFLAGS" |
| 4689 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" |
| 4690 | compiler_rtti_exceptions=no |
| 4691 | cat >conftest.$ac_ext <<_ACEOF |
| 4692 | #line $LINENO "configure" |
| 4693 | /* confdefs.h. */ |
| 4694 | _ACEOF |
| 4695 | cat confdefs.h >>conftest.$ac_ext |
| 4696 | cat >>conftest.$ac_ext <<_ACEOF |
| 4697 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4698 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4699 | int |
| 4700 | main () |
| 4701 | { |
| 4702 | int some_variable = 0; |
| 4703 | ; |
| 4704 | return 0; |
| 4705 | } |
| 4706 | _ACEOF |
| 4707 | rm -f conftest.$ac_objext |
| 4708 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4709 | (eval $ac_compile) 2>&5 |
| 4710 | ac_status=$? |
| 4711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4712 | (exit $ac_status); } && |
| 4713 | { ac_try='test -s conftest.$ac_objext' |
| 4714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4715 | (eval $ac_try) 2>&5 |
| 4716 | ac_status=$? |
| 4717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4718 | (exit $ac_status); }; }; then |
| 4719 | # The compiler can only warn and ignore the option if not recognized |
| 4720 | # So say no if there are warnings |
| 4721 | if test -s conftest.err; then |
| 4722 | compiler_rtti_exceptions=no |
| 4723 | else |
| 4724 | compiler_rtti_exceptions=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4725 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4726 | |
| 4727 | else |
| 4728 | echo "$as_me: failed program was:" >&5 |
| 4729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4730 | |
| 4731 | fi |
| 4732 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4733 | CFLAGS="$save_CFLAGS" |
| 4734 | echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5 |
| 4735 | echo "${ECHO_T}$compiler_rtti_exceptions" >&6 |
| 4736 | |
| 4737 | if test "$compiler_rtti_exceptions" = "yes"; then |
| 4738 | no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' |
| 4739 | else |
| 4740 | no_builtin_flag=' -fno-builtin' |
| 4741 | fi |
| 4742 | fi |
| 4743 | |
| 4744 | # See if the linker supports building shared libraries. |
| 4745 | echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5 |
| 4746 | echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 4747 | |
| 4748 | allow_undefined_flag= |
| 4749 | no_undefined_flag= |
| 4750 | need_lib_prefix=unknown |
| 4751 | need_version=unknown |
| 4752 | # when you set need_version to no, make sure it does not cause -set_version |
| 4753 | # flags to be left without arguments |
| 4754 | archive_cmds= |
| 4755 | archive_expsym_cmds= |
| 4756 | old_archive_from_new_cmds= |
| 4757 | old_archive_from_expsyms_cmds= |
| 4758 | export_dynamic_flag_spec= |
| 4759 | whole_archive_flag_spec= |
| 4760 | thread_safe_flag_spec= |
| 4761 | hardcode_into_libs=no |
| 4762 | hardcode_libdir_flag_spec= |
| 4763 | hardcode_libdir_separator= |
| 4764 | hardcode_direct=no |
| 4765 | hardcode_minus_L=no |
| 4766 | hardcode_shlibpath_var=unsupported |
| 4767 | runpath_var= |
| 4768 | link_all_deplibs=unknown |
| 4769 | always_export_symbols=no |
| 4770 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 4771 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 4772 | # included in the symbol list |
| 4773 | include_expsyms= |
| 4774 | # exclude_expsyms can be an egrep regular expression of symbols to exclude |
| 4775 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 4776 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 4777 | # as well as any symbol that contains `d'. |
| 4778 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 4779 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 4780 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 4781 | # the symbol is explicitly referenced. Since portable code cannot |
| 4782 | # rely on this symbol name, it's probably fine to never include it in |
| 4783 | # preloaded symbol tables. |
| 4784 | extract_expsyms_cmds= |
| 4785 | |
| 4786 | case $host_os in |
| 4787 | cygwin* | mingw* | pw32*) |
| 4788 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 4789 | # When not using gcc, we currently assume that we are using |
| 4790 | # Microsoft Visual C++. |
| 4791 | if test "$GCC" != yes; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4792 | with_gnu_ld=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4793 | fi |
| 4794 | ;; |
| 4795 | openbsd*) |
| 4796 | with_gnu_ld=no |
| 4797 | ;; |
| 4798 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4799 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4800 | ld_shlibs=yes |
| 4801 | if test "$with_gnu_ld" = yes; then |
| 4802 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 4803 | wlarc='${wl}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4804 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4805 | # See if GNU ld supports shared libraries. |
| 4806 | case $host_os in |
| 4807 | aix3* | aix4* | aix5*) |
| 4808 | # On AIX, the GNU linker is very broken |
| 4809 | # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. |
| 4810 | ld_shlibs=no |
| 4811 | cat <<EOF 1>&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4812 | |
| 4813 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 4814 | *** to be unable to reliably create shared libraries on AIX. |
| 4815 | *** Therefore, libtool is disabling shared libraries support. If you |
| 4816 | *** really care for shared libraries, you may want to modify your PATH |
| 4817 | *** so that a non-GNU linker is found, and then restart. |
| 4818 | |
| 4819 | EOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4820 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4821 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4822 | amigaos*) |
| 4823 | 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)' |
| 4824 | hardcode_libdir_flag_spec='-L$libdir' |
| 4825 | hardcode_minus_L=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4826 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4827 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 4828 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 4829 | # to version 4, is to share data among multiple programs linked |
| 4830 | # with the same dynamic library. Since this doesn't match the |
| 4831 | # behavior of shared libraries on other platforms, we can use |
| 4832 | # them. |
| 4833 | ld_shlibs=no |
| 4834 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4835 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4836 | beos*) |
| 4837 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4838 | allow_undefined_flag=unsupported |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4839 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 4840 | # support --undefined. This deserves some investigation. FIXME |
| 4841 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 4842 | else |
| 4843 | ld_shlibs=no |
| 4844 | fi |
| 4845 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4846 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4847 | cygwin* | mingw* | pw32*) |
| 4848 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 4849 | # no search path for DLLs. |
| 4850 | hardcode_libdir_flag_spec='-L$libdir' |
| 4851 | allow_undefined_flag=unsupported |
| 4852 | always_export_symbols=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4853 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4854 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ |
| 4855 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ |
| 4856 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ |
| 4857 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ |
| 4858 | else $CC -o impgen impgen.c ; fi)~ |
| 4859 | $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4860 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4861 | 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] | 4862 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4863 | # cygwin and mingw dlls have different entry points and sets of symbols |
| 4864 | # to exclude. |
| 4865 | # FIXME: what about values for MSVC? |
| 4866 | dll_entry=__cygwin_dll_entry@12 |
| 4867 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ |
| 4868 | case $host_os in |
| 4869 | mingw*) |
| 4870 | # mingw values |
| 4871 | dll_entry=_DllMainCRTStartup@12 |
| 4872 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ |
| 4873 | ;; |
| 4874 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4875 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4876 | # mingw and cygwin differ, and it's simplest to just exclude the union |
| 4877 | # of the two symbol sets. |
| 4878 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 |
| 4879 | |
| 4880 | # recent cygwin and mingw systems supply a stub DllMain which the user |
| 4881 | # can override, but on older systems we have to supply one (in ltdll.c) |
| 4882 | if test "x$lt_cv_need_dllmain" = "xyes"; then |
| 4883 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
| 4884 | 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~ |
| 4885 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
| 4886 | else |
| 4887 | ltdll_obj= |
| 4888 | ltdll_cmds= |
| 4889 | fi |
| 4890 | |
| 4891 | # Extract the symbol export list from an `--export-all' def file, |
| 4892 | # then regenerate the def file from the symbol export list, so that |
| 4893 | # the compiled dll only exports the symbol export list. |
| 4894 | # Be careful not to strip the DATA tag left be newer dlltools. |
| 4895 | export_symbols_cmds="$ltdll_cmds"' |
| 4896 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
| 4897 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' |
| 4898 | |
| 4899 | # If the export-symbols file already is a .def file (1st line |
| 4900 | # is EXPORTS), use it as is. |
| 4901 | # If DATA tags from a recent dlltool are present, honour them! |
| 4902 | archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then |
| 4903 | cp $export_symbols $output_objdir/$soname-def; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4904 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4905 | echo EXPORTS > $output_objdir/$soname-def; |
| 4906 | _lt_hint=1; |
| 4907 | cat $export_symbols | while read symbol; do |
| 4908 | set dummy \$symbol; |
| 4909 | case \$# in |
| 4910 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
| 4911 | 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;; |
| 4912 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; |
| 4913 | esac; |
| 4914 | _lt_hint=`expr 1 + \$_lt_hint`; |
| 4915 | done; |
| 4916 | fi~ |
| 4917 | '"$ltdll_cmds"' |
| 4918 | $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~ |
| 4919 | $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~ |
| 4920 | $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~ |
| 4921 | $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~ |
| 4922 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' |
| 4923 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4924 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4925 | netbsd*) |
| 4926 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 4927 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 4928 | wlarc= |
| 4929 | else |
| 4930 | archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 4931 | archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 4932 | fi |
| 4933 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4934 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4935 | solaris* | sysv5*) |
| 4936 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
| 4937 | ld_shlibs=no |
| 4938 | cat <<EOF 1>&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4939 | |
| 4940 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 4941 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 4942 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 4943 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 4944 | *** your PATH or compiler configuration so that the native linker is |
| 4945 | *** used, and then restart. |
| 4946 | |
| 4947 | EOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4948 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 4949 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 4950 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 4951 | else |
| 4952 | ld_shlibs=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4953 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4954 | ;; |
| 4955 | |
| 4956 | sunos4*) |
| 4957 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 4958 | wlarc= |
| 4959 | hardcode_direct=yes |
| 4960 | hardcode_shlibpath_var=no |
| 4961 | ;; |
| 4962 | |
| 4963 | *) |
| 4964 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 4965 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 4966 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 4967 | else |
| 4968 | ld_shlibs=no |
| 4969 | fi |
| 4970 | ;; |
| 4971 | esac |
| 4972 | |
| 4973 | if test "$ld_shlibs" = yes; then |
| 4974 | runpath_var=LD_RUN_PATH |
| 4975 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 4976 | export_dynamic_flag_spec='${wl}--export-dynamic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4977 | case $host_os in |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4978 | cygwin* | mingw* | pw32*) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4979 | # dlltool doesn't understand --whole-archive et. al. |
| 4980 | whole_archive_flag_spec= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4981 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4982 | *) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4983 | # ancient GNU ld didn't support --whole-archive et. al. |
| 4984 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then |
| 4985 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 4986 | else |
| 4987 | whole_archive_flag_spec= |
| 4988 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4989 | ;; |
| 4990 | esac |
| 4991 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4992 | else |
| 4993 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 4994 | case $host_os in |
| 4995 | aix3*) |
| 4996 | allow_undefined_flag=unsupported |
| 4997 | always_export_symbols=yes |
| 4998 | 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' |
| 4999 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 5000 | # are no directories specified by -L. |
| 5001 | hardcode_minus_L=yes |
| 5002 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 5003 | # Neither direct hardcoding nor static linking is supported with a |
| 5004 | # broken collect2. |
| 5005 | hardcode_direct=unsupported |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5006 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5007 | ;; |
| 5008 | |
| 5009 | aix4* | aix5*) |
| 5010 | if test "$host_cpu" = ia64; then |
| 5011 | # On IA64, the linker does run time linking by default, so we don't |
| 5012 | # have to do anything special. |
| 5013 | aix_use_runtimelinking=no |
| 5014 | exp_sym_flag='-Bexport' |
| 5015 | no_entry_flag="" |
| 5016 | else |
| 5017 | aix_use_runtimelinking=no |
| 5018 | |
| 5019 | # Test if we are trying to use run time linking or normal |
| 5020 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 5021 | # need to do runtime linking. |
| 5022 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 5023 | for ld_flag in $LDFLAGS; do |
| 5024 | case $ld_flag in |
| 5025 | *-brtl*) |
| 5026 | aix_use_runtimelinking=yes |
| 5027 | break |
| 5028 | ;; |
| 5029 | esac |
| 5030 | done |
| 5031 | esac |
| 5032 | |
| 5033 | exp_sym_flag='-bexport' |
| 5034 | no_entry_flag='-bnoentry' |
| 5035 | fi |
| 5036 | |
| 5037 | # When large executables or shared objects are built, AIX ld can |
| 5038 | # have problems creating the table of contents. If linking a library |
| 5039 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 5040 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 5041 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 5042 | |
| 5043 | hardcode_direct=yes |
| 5044 | archive_cmds='' |
| 5045 | hardcode_libdir_separator=':' |
| 5046 | if test "$GCC" = yes; then |
| 5047 | case $host_os in aix4.[012]|aix4.[012].*) |
| 5048 | collect2name=`${CC} -print-prog-name=collect2` |
| 5049 | if test -f "$collect2name" && \ |
| 5050 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 5051 | then |
| 5052 | # We have reworked collect2 |
| 5053 | hardcode_direct=yes |
| 5054 | else |
| 5055 | # We have old collect2 |
| 5056 | hardcode_direct=unsupported |
| 5057 | # It fails to find uninstalled libraries when the uninstalled |
| 5058 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 5059 | # to unsupported forces relinking |
| 5060 | hardcode_minus_L=yes |
| 5061 | hardcode_libdir_flag_spec='-L$libdir' |
| 5062 | hardcode_libdir_separator= |
| 5063 | fi |
| 5064 | esac |
| 5065 | |
| 5066 | shared_flag='-shared' |
| 5067 | else |
| 5068 | # not using gcc |
| 5069 | if test "$host_cpu" = ia64; then |
| 5070 | shared_flag='${wl}-G' |
| 5071 | else |
| 5072 | if test "$aix_use_runtimelinking" = yes; then |
| 5073 | shared_flag='${wl}-G' |
| 5074 | else |
| 5075 | shared_flag='${wl}-bM:SRE' |
| 5076 | fi |
| 5077 | fi |
| 5078 | fi |
| 5079 | |
| 5080 | # It seems that -bexpall can do strange things, so it is better to |
| 5081 | # generate a list of symbols to export. |
| 5082 | always_export_symbols=yes |
| 5083 | if test "$aix_use_runtimelinking" = yes; then |
| 5084 | # Warning - without using the other runtime loading flags (-brtl), |
| 5085 | # -berok will link without error, but may produce a broken library. |
| 5086 | allow_undefined_flag='-berok' |
| 5087 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' |
| 5088 | 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" |
| 5089 | else |
| 5090 | if test "$host_cpu" = ia64; then |
| 5091 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 5092 | allow_undefined_flag="-z nodefs" |
| 5093 | 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" |
| 5094 | else |
| 5095 | hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' |
| 5096 | # Warning - without using the other run time loading flags, |
| 5097 | # -berok will link without error, but may produce a broken library. |
| 5098 | allow_undefined_flag='${wl}-berok' |
| 5099 | # This is a bit strange, but is similar to how AIX traditionally builds |
| 5100 | # it's shared libraries. |
| 5101 | 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' |
| 5102 | fi |
| 5103 | fi |
| 5104 | ;; |
| 5105 | |
| 5106 | amigaos*) |
| 5107 | 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)' |
| 5108 | hardcode_libdir_flag_spec='-L$libdir' |
| 5109 | hardcode_minus_L=yes |
| 5110 | # see comment about different semantics on the GNU ld section |
| 5111 | ld_shlibs=no |
| 5112 | ;; |
| 5113 | |
| 5114 | cygwin* | mingw* | pw32*) |
| 5115 | # When not using gcc, we currently assume that we are using |
| 5116 | # Microsoft Visual C++. |
| 5117 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 5118 | # no search path for DLLs. |
| 5119 | hardcode_libdir_flag_spec=' ' |
| 5120 | allow_undefined_flag=unsupported |
| 5121 | # Tell ltmain to make .lib files, not .a files. |
| 5122 | libext=lib |
| 5123 | # FIXME: Setting linknames here is a bad hack. |
| 5124 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 5125 | # The linker will automatically build a .lib file if we build a DLL. |
| 5126 | old_archive_from_new_cmds='true' |
| 5127 | # FIXME: Should let the user specify the lib program. |
| 5128 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 5129 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 5130 | ;; |
| 5131 | |
| 5132 | darwin* | rhapsody*) |
| 5133 | case "$host_os" in |
| 5134 | rhapsody* | darwin1.[012]) |
| 5135 | allow_undefined_flag='-undefined suppress' |
| 5136 | ;; |
| 5137 | *) # Darwin 1.3 on |
| 5138 | allow_undefined_flag='-flat_namespace -undefined suppress' |
| 5139 | ;; |
| 5140 | esac |
| 5141 | # FIXME: Relying on posixy $() will cause problems for |
| 5142 | # cross-compilation, but unfortunately the echo tests do not |
| 5143 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles |
| 5144 | # `"' quotes if we put them in here... so don't! |
| 5145 | 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)' |
| 5146 | # We need to add '_' to the symbols in $export_symbols first |
| 5147 | #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' |
| 5148 | hardcode_direct=yes |
| 5149 | hardcode_shlibpath_var=no |
| 5150 | whole_archive_flag_spec='-all_load $convenience' |
| 5151 | ;; |
| 5152 | |
| 5153 | freebsd1*) |
| 5154 | ld_shlibs=no |
| 5155 | ;; |
| 5156 | |
| 5157 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 5158 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 5159 | # does not break anything, and helps significantly (at the cost of a little |
| 5160 | # extra space). |
| 5161 | freebsd2.2*) |
| 5162 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 5163 | hardcode_libdir_flag_spec='-R$libdir' |
| 5164 | hardcode_direct=yes |
| 5165 | hardcode_shlibpath_var=no |
| 5166 | ;; |
| 5167 | |
| 5168 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 5169 | freebsd2*) |
| 5170 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 5171 | hardcode_direct=yes |
| 5172 | hardcode_minus_L=yes |
| 5173 | hardcode_shlibpath_var=no |
| 5174 | ;; |
| 5175 | |
| 5176 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 5177 | freebsd*) |
| 5178 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 5179 | hardcode_libdir_flag_spec='-R$libdir' |
| 5180 | hardcode_direct=yes |
| 5181 | hardcode_shlibpath_var=no |
| 5182 | ;; |
| 5183 | |
| 5184 | hpux9* | hpux10* | hpux11*) |
| 5185 | case $host_os in |
| 5186 | 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' ;; |
| 5187 | *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; |
| 5188 | esac |
| 5189 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 5190 | hardcode_libdir_separator=: |
| 5191 | hardcode_direct=yes |
| 5192 | hardcode_minus_L=yes # Not in the search PATH, but as the default |
| 5193 | # location of the library. |
| 5194 | export_dynamic_flag_spec='${wl}-E' |
| 5195 | ;; |
| 5196 | |
| 5197 | irix5* | irix6* | nonstopux*) |
| 5198 | if test "$GCC" = yes; then |
| 5199 | 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' |
| 5200 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 5201 | else |
| 5202 | 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' |
| 5203 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 5204 | fi |
| 5205 | hardcode_libdir_separator=: |
| 5206 | link_all_deplibs=yes |
| 5207 | ;; |
| 5208 | |
| 5209 | netbsd*) |
| 5210 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 5211 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 5212 | else |
| 5213 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 5214 | fi |
| 5215 | hardcode_libdir_flag_spec='-R$libdir' |
| 5216 | hardcode_direct=yes |
| 5217 | hardcode_shlibpath_var=no |
| 5218 | ;; |
| 5219 | |
| 5220 | newsos6) |
| 5221 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5222 | hardcode_direct=yes |
| 5223 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 5224 | hardcode_libdir_separator=: |
| 5225 | hardcode_shlibpath_var=no |
| 5226 | ;; |
| 5227 | |
| 5228 | openbsd*) |
| 5229 | hardcode_direct=yes |
| 5230 | hardcode_shlibpath_var=no |
| 5231 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 5232 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 5233 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 5234 | export_dynamic_flag_spec='${wl}-E' |
| 5235 | else |
| 5236 | case "$host_os" in |
| 5237 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 5238 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 5239 | hardcode_libdir_flag_spec='-R$libdir' |
| 5240 | ;; |
| 5241 | *) |
| 5242 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 5243 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 5244 | ;; |
| 5245 | esac |
| 5246 | fi |
| 5247 | ;; |
| 5248 | |
| 5249 | os2*) |
| 5250 | hardcode_libdir_flag_spec='-L$libdir' |
| 5251 | hardcode_minus_L=yes |
| 5252 | allow_undefined_flag=unsupported |
| 5253 | 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' |
| 5254 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 5255 | ;; |
| 5256 | |
| 5257 | osf3*) |
| 5258 | if test "$GCC" = yes; then |
| 5259 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 5260 | 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' |
| 5261 | else |
| 5262 | allow_undefined_flag=' -expect_unresolved \*' |
| 5263 | 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' |
| 5264 | fi |
| 5265 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 5266 | hardcode_libdir_separator=: |
| 5267 | ;; |
| 5268 | |
| 5269 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 5270 | if test "$GCC" = yes; then |
| 5271 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 5272 | 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' |
| 5273 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 5274 | else |
| 5275 | allow_undefined_flag=' -expect_unresolved \*' |
| 5276 | 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' |
| 5277 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 5278 | $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' |
| 5279 | |
| 5280 | #Both c and cxx compiler support -rpath directly |
| 5281 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 5282 | fi |
| 5283 | hardcode_libdir_separator=: |
| 5284 | ;; |
| 5285 | |
| 5286 | sco3.2v5*) |
| 5287 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5288 | hardcode_shlibpath_var=no |
| 5289 | runpath_var=LD_RUN_PATH |
| 5290 | hardcode_runpath_var=yes |
| 5291 | export_dynamic_flag_spec='${wl}-Bexport' |
| 5292 | ;; |
| 5293 | |
| 5294 | solaris*) |
| 5295 | # gcc --version < 3.0 without binutils cannot create self contained |
| 5296 | # shared libraries reliably, requiring libgcc.a to resolve some of |
| 5297 | # the object symbols generated in some cases. Libraries that use |
| 5298 | # assert need libgcc.a to resolve __eprintf, for example. Linking |
| 5299 | # a copy of libgcc.a into every shared library to guarantee resolving |
| 5300 | # such symbols causes other problems: According to Tim Van Holder |
| 5301 | # <tim.van.holder@pandora.be>, C++ libraries end up with a separate |
| 5302 | # (to the application) exception stack for one thing. |
| 5303 | no_undefined_flag=' -z defs' |
| 5304 | if test "$GCC" = yes; then |
| 5305 | case `$CC --version 2>/dev/null` in |
| 5306 | [12].*) |
| 5307 | cat <<EOF 1>&2 |
| 5308 | |
| 5309 | *** Warning: Releases of GCC earlier than version 3.0 cannot reliably |
| 5310 | *** create self contained shared libraries on Solaris systems, without |
| 5311 | *** introducing a dependency on libgcc.a. Therefore, libtool is disabling |
| 5312 | *** -no-undefined support, which will at least allow you to build shared |
| 5313 | *** libraries. However, you may find that when you link such libraries |
| 5314 | *** into an application without using GCC, you have to manually add |
| 5315 | *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to |
| 5316 | *** upgrade to a newer version of GCC. Another option is to rebuild your |
| 5317 | *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. |
| 5318 | |
| 5319 | EOF |
| 5320 | no_undefined_flag= |
| 5321 | ;; |
| 5322 | esac |
| 5323 | fi |
| 5324 | # $CC -shared without GNU ld will not create a library from C++ |
| 5325 | # object files and a static libstdc++, better avoid it by now |
| 5326 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5327 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 5328 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 5329 | hardcode_libdir_flag_spec='-R$libdir' |
| 5330 | hardcode_shlibpath_var=no |
| 5331 | case $host_os in |
| 5332 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 5333 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 5334 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 5335 | esac |
| 5336 | link_all_deplibs=yes |
| 5337 | ;; |
| 5338 | |
| 5339 | sunos4*) |
| 5340 | if test "x$host_vendor" = xsequent; then |
| 5341 | # Use $CC to link under sequent, because it throws in some extra .o |
| 5342 | # files that make .init and .fini sections work. |
| 5343 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 5344 | else |
| 5345 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 5346 | fi |
| 5347 | hardcode_libdir_flag_spec='-L$libdir' |
| 5348 | hardcode_direct=yes |
| 5349 | hardcode_minus_L=yes |
| 5350 | hardcode_shlibpath_var=no |
| 5351 | ;; |
| 5352 | |
| 5353 | sysv4) |
| 5354 | case $host_vendor in |
| 5355 | sni) |
| 5356 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5357 | hardcode_direct=yes # is this really true??? |
| 5358 | ;; |
| 5359 | siemens) |
| 5360 | ## LD is ld it makes a PLAMLIB |
| 5361 | ## CC just makes a GrossModule. |
| 5362 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 5363 | reload_cmds='$CC -r -o $output$reload_objs' |
| 5364 | hardcode_direct=no |
| 5365 | ;; |
| 5366 | motorola) |
| 5367 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5368 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 5369 | ;; |
| 5370 | esac |
| 5371 | runpath_var='LD_RUN_PATH' |
| 5372 | hardcode_shlibpath_var=no |
| 5373 | ;; |
| 5374 | |
| 5375 | sysv4.3*) |
| 5376 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5377 | hardcode_shlibpath_var=no |
| 5378 | export_dynamic_flag_spec='-Bexport' |
| 5379 | ;; |
| 5380 | |
| 5381 | sysv5*) |
| 5382 | no_undefined_flag=' -z text' |
| 5383 | # $CC -shared without GNU ld will not create a library from C++ |
| 5384 | # object files and a static libstdc++, better avoid it by now |
| 5385 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5386 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 5387 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 5388 | hardcode_libdir_flag_spec= |
| 5389 | hardcode_shlibpath_var=no |
| 5390 | runpath_var='LD_RUN_PATH' |
| 5391 | ;; |
| 5392 | |
| 5393 | uts4*) |
| 5394 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5395 | hardcode_libdir_flag_spec='-L$libdir' |
| 5396 | hardcode_shlibpath_var=no |
| 5397 | ;; |
| 5398 | |
| 5399 | dgux*) |
| 5400 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5401 | hardcode_libdir_flag_spec='-L$libdir' |
| 5402 | hardcode_shlibpath_var=no |
| 5403 | ;; |
| 5404 | |
| 5405 | sysv4*MP*) |
| 5406 | if test -d /usr/nec; then |
| 5407 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 5408 | hardcode_shlibpath_var=no |
| 5409 | runpath_var=LD_RUN_PATH |
| 5410 | hardcode_runpath_var=yes |
| 5411 | ld_shlibs=yes |
| 5412 | fi |
| 5413 | ;; |
| 5414 | |
| 5415 | sysv4.2uw2*) |
| 5416 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 5417 | hardcode_direct=yes |
| 5418 | hardcode_minus_L=no |
| 5419 | hardcode_shlibpath_var=no |
| 5420 | hardcode_runpath_var=yes |
| 5421 | runpath_var=LD_RUN_PATH |
| 5422 | ;; |
| 5423 | |
| 5424 | sysv5uw7* | unixware7*) |
| 5425 | no_undefined_flag='${wl}-z ${wl}text' |
| 5426 | if test "$GCC" = yes; then |
| 5427 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 5428 | else |
| 5429 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 5430 | fi |
| 5431 | runpath_var='LD_RUN_PATH' |
| 5432 | hardcode_shlibpath_var=no |
| 5433 | ;; |
| 5434 | |
| 5435 | *) |
| 5436 | ld_shlibs=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5437 | ;; |
| 5438 | esac |
| 5439 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5440 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 5441 | echo "${ECHO_T}$ld_shlibs" >&6 |
| 5442 | test "$ld_shlibs" = no && can_build_shared=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5443 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5444 | # Check hardcoding attributes. |
| 5445 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5446 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 5447 | hardcode_action= |
| 5448 | if test -n "$hardcode_libdir_flag_spec" || \ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5449 | test -n "$runpath_var"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5450 | |
| 5451 | # We can hardcode non-existant directories. |
| 5452 | if test "$hardcode_direct" != no && |
| 5453 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 5454 | # have to relink, otherwise we might link with an installed library |
| 5455 | # when we should be linking with a yet-to-be-installed one |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5456 | ## test "$hardcode_shlibpath_var" != no && |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5457 | test "$hardcode_minus_L" != no; then |
| 5458 | # Linking always hardcodes the temporary library directory. |
| 5459 | hardcode_action=relink |
| 5460 | else |
| 5461 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 5462 | hardcode_action=immediate |
| 5463 | fi |
| 5464 | else |
| 5465 | # We cannot hardcode anything, or else we can only hardcode existing |
| 5466 | # directories. |
| 5467 | hardcode_action=unsupported |
| 5468 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5469 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5470 | echo "${ECHO_T}$hardcode_action" >&6 |
| 5471 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5472 | striplib= |
| 5473 | old_striplib= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5474 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5475 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 5476 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 5477 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 5478 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5479 | echo "$as_me:$LINENO: result: yes" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5480 | echo "${ECHO_T}yes" >&6 |
| 5481 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5482 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5483 | echo "${ECHO_T}no" >&6 |
| 5484 | fi |
| 5485 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5486 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5487 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 5488 | |
| 5489 | # PORTME Fill in your ld.so characteristics |
| 5490 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5491 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 5492 | library_names_spec= |
| 5493 | libname_spec='lib$name' |
| 5494 | soname_spec= |
| 5495 | postinstall_cmds= |
| 5496 | postuninstall_cmds= |
| 5497 | finish_cmds= |
| 5498 | finish_eval= |
| 5499 | shlibpath_var= |
| 5500 | shlibpath_overrides_runpath=unknown |
| 5501 | version_type=none |
| 5502 | dynamic_linker="$host_os ld.so" |
| 5503 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 5504 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5505 | |
| 5506 | case $host_os in |
| 5507 | aix3*) |
| 5508 | version_type=linux |
| 5509 | library_names_spec='${libname}${release}.so$versuffix $libname.a' |
| 5510 | shlibpath_var=LIBPATH |
| 5511 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5512 | # 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] | 5513 | soname_spec='${libname}${release}.so$major' |
| 5514 | ;; |
| 5515 | |
| 5516 | aix4* | aix5*) |
| 5517 | version_type=linux |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5518 | need_lib_prefix=no |
| 5519 | need_version=no |
| 5520 | hardcode_into_libs=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5521 | if test "$host_cpu" = ia64; then |
| 5522 | # AIX 5 supports IA64 |
| 5523 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' |
| 5524 | shlibpath_var=LD_LIBRARY_PATH |
| 5525 | else |
| 5526 | # With GCC up to 2.95.x, collect2 would create an import file |
| 5527 | # for dependence libraries. The import file would start with |
| 5528 | # the line `#! .'. This would cause the generated library to |
| 5529 | # depend on `.', always an invalid library. This was fixed in |
| 5530 | # development snapshots of GCC prior to 3.0. |
| 5531 | case $host_os in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5532 | aix4 | aix4.[01] | aix4.[01].*) |
| 5533 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 5534 | echo ' yes ' |
| 5535 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 5536 | : |
| 5537 | else |
| 5538 | can_build_shared=no |
| 5539 | fi |
| 5540 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5541 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5542 | # AIX (on Power*) has no versioning support, so currently we can |
| 5543 | # not hardcode correct soname into executable. Probably we can |
| 5544 | # add versioning support to collect2, so additional links can |
| 5545 | # be useful in future. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5546 | if test "$aix_use_runtimelinking" = yes; then |
| 5547 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 5548 | # instead of lib<name>.a to let people know that these are not |
| 5549 | # typical AIX shared libraries. |
| 5550 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5551 | else |
| 5552 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 5553 | # and later when we are not doing run time linking. |
| 5554 | library_names_spec='${libname}${release}.a $libname.a' |
| 5555 | soname_spec='${libname}${release}.so$major' |
| 5556 | fi |
| 5557 | shlibpath_var=LIBPATH |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5558 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5559 | hardcode_into_libs=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5560 | ;; |
| 5561 | |
| 5562 | amigaos*) |
| 5563 | library_names_spec='$libname.ixlibrary $libname.a' |
| 5564 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 5565 | 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' |
| 5566 | ;; |
| 5567 | |
| 5568 | beos*) |
| 5569 | library_names_spec='${libname}.so' |
| 5570 | dynamic_linker="$host_os ld.so" |
| 5571 | shlibpath_var=LIBRARY_PATH |
| 5572 | ;; |
| 5573 | |
| 5574 | bsdi4*) |
| 5575 | version_type=linux |
| 5576 | need_version=no |
| 5577 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5578 | soname_spec='${libname}${release}.so$major' |
| 5579 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 5580 | shlibpath_var=LD_LIBRARY_PATH |
| 5581 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 5582 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5583 | export_dynamic_flag_spec=-rdynamic |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5584 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 5585 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 5586 | # libtool to hard-code these into programs |
| 5587 | ;; |
| 5588 | |
| 5589 | cygwin* | mingw* | pw32*) |
| 5590 | version_type=windows |
| 5591 | need_version=no |
| 5592 | need_lib_prefix=no |
| 5593 | case $GCC,$host_os in |
| 5594 | yes,cygwin*) |
| 5595 | library_names_spec='$libname.dll.a' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5596 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
| 5597 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ |
| 5598 | dldir=$destdir/`dirname \$dlpath`~ |
| 5599 | test -d \$dldir || mkdir -p \$dldir~ |
| 5600 | $install_prog .libs/$dlname \$dldir/$dlname' |
| 5601 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 5602 | dlpath=$dir/\$dldll~ |
| 5603 | $rm \$dlpath' |
| 5604 | ;; |
| 5605 | yes,mingw*) |
| 5606 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5607 | 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] | 5608 | ;; |
| 5609 | yes,pw32*) |
| 5610 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' |
| 5611 | ;; |
| 5612 | *) |
| 5613 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' |
| 5614 | ;; |
| 5615 | esac |
| 5616 | dynamic_linker='Win32 ld.exe' |
| 5617 | # FIXME: first we should search . and the directory the executable is in |
| 5618 | shlibpath_var=PATH |
| 5619 | ;; |
| 5620 | |
| 5621 | darwin* | rhapsody*) |
| 5622 | dynamic_linker="$host_os dyld" |
| 5623 | version_type=darwin |
| 5624 | need_lib_prefix=no |
| 5625 | need_version=no |
| 5626 | # FIXME: Relying on posixy $() will cause problems for |
| 5627 | # cross-compilation, but unfortunately the echo tests do not |
| 5628 | # yet detect zsh echo's removal of \ escapes. |
| 5629 | 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)' |
| 5630 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' |
| 5631 | shlibpath_overrides_runpath=yes |
| 5632 | shlibpath_var=DYLD_LIBRARY_PATH |
| 5633 | ;; |
| 5634 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5635 | freebsd1*) |
| 5636 | dynamic_linker=no |
| 5637 | ;; |
| 5638 | |
| 5639 | freebsd*-gnu*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5640 | version_type=linux |
| 5641 | need_lib_prefix=no |
| 5642 | need_version=no |
| 5643 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5644 | soname_spec='${libname}${release}.so$major' |
| 5645 | shlibpath_var=LD_LIBRARY_PATH |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5646 | shlibpath_overrides_runpath=no |
| 5647 | hardcode_into_libs=yes |
| 5648 | dynamic_linker='GNU/FreeBSD ld.so' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5649 | ;; |
| 5650 | |
| 5651 | freebsd*) |
| 5652 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 5653 | version_type=freebsd-$objformat |
| 5654 | case $version_type in |
| 5655 | freebsd-elf*) |
| 5656 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
| 5657 | need_version=no |
| 5658 | need_lib_prefix=no |
| 5659 | ;; |
| 5660 | freebsd-*) |
| 5661 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' |
| 5662 | need_version=yes |
| 5663 | ;; |
| 5664 | esac |
| 5665 | shlibpath_var=LD_LIBRARY_PATH |
| 5666 | case $host_os in |
| 5667 | freebsd2*) |
| 5668 | shlibpath_overrides_runpath=yes |
| 5669 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5670 | *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5671 | shlibpath_overrides_runpath=no |
| 5672 | hardcode_into_libs=yes |
| 5673 | ;; |
| 5674 | esac |
| 5675 | ;; |
| 5676 | |
| 5677 | gnu*) |
| 5678 | version_type=linux |
| 5679 | need_lib_prefix=no |
| 5680 | need_version=no |
| 5681 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' |
| 5682 | soname_spec='${libname}${release}.so$major' |
| 5683 | shlibpath_var=LD_LIBRARY_PATH |
| 5684 | hardcode_into_libs=yes |
| 5685 | ;; |
| 5686 | |
| 5687 | hpux9* | hpux10* | hpux11*) |
| 5688 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 5689 | # link against other versions. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5690 | dynamic_linker="$host_os dld.sl" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5691 | version_type=sunos |
| 5692 | need_lib_prefix=no |
| 5693 | need_version=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5694 | shlibpath_var=SHLIB_PATH |
| 5695 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 5696 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' |
| 5697 | soname_spec='${libname}${release}.sl$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5698 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 5699 | postinstall_cmds='chmod 555 $lib' |
| 5700 | ;; |
| 5701 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5702 | irix5* | irix6* | nonstopux*) |
| 5703 | case $host_os in |
| 5704 | nonstopux*) version_type=nonstopux ;; |
| 5705 | *) version_type=irix ;; |
| 5706 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5707 | need_lib_prefix=no |
| 5708 | need_version=no |
| 5709 | soname_spec='${libname}${release}.so$major' |
| 5710 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
| 5711 | case $host_os in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5712 | irix5* | nonstopux*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5713 | libsuff= shlibsuff= |
| 5714 | ;; |
| 5715 | *) |
| 5716 | case $LD in # libtool.m4 will add one of these switches to LD |
| 5717 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; |
| 5718 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 5719 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 5720 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 5721 | esac |
| 5722 | ;; |
| 5723 | esac |
| 5724 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 5725 | shlibpath_overrides_runpath=no |
| 5726 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 5727 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 5728 | ;; |
| 5729 | |
| 5730 | # No shared lib support for Linux oldld, aout, or coff. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5731 | linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5732 | dynamic_linker=no |
| 5733 | ;; |
| 5734 | |
| 5735 | # This must be Linux ELF. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5736 | linux-gnu*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5737 | version_type=linux |
| 5738 | need_lib_prefix=no |
| 5739 | need_version=no |
| 5740 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5741 | soname_spec='${libname}${release}.so$major' |
| 5742 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 5743 | shlibpath_var=LD_LIBRARY_PATH |
| 5744 | shlibpath_overrides_runpath=no |
| 5745 | # This implies no fast_install, which is unacceptable. |
| 5746 | # Some rework will be needed to allow for fast_install |
| 5747 | # before this can be enabled. |
| 5748 | hardcode_into_libs=yes |
| 5749 | |
| 5750 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 5751 | # powerpc, because MkLinux only supported shared libraries with the |
| 5752 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 5753 | # most powerpc-linux boxes support dynamic linking these days and |
| 5754 | # people can always --disable-shared, the test was removed, and we |
| 5755 | # assume the GNU/Linux dynamic linker is in use. |
| 5756 | dynamic_linker='GNU/Linux ld.so' |
| 5757 | ;; |
| 5758 | |
| 5759 | netbsd*) |
| 5760 | version_type=sunos |
| 5761 | need_lib_prefix=no |
| 5762 | need_version=no |
| 5763 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 5764 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 5765 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 5766 | dynamic_linker='NetBSD (a.out) ld.so' |
| 5767 | else |
| 5768 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' |
| 5769 | soname_spec='${libname}${release}.so$major' |
| 5770 | dynamic_linker='NetBSD ld.elf_so' |
| 5771 | fi |
| 5772 | shlibpath_var=LD_LIBRARY_PATH |
| 5773 | shlibpath_overrides_runpath=yes |
| 5774 | hardcode_into_libs=yes |
| 5775 | ;; |
| 5776 | |
| 5777 | newsos6) |
| 5778 | version_type=linux |
| 5779 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5780 | shlibpath_var=LD_LIBRARY_PATH |
| 5781 | shlibpath_overrides_runpath=yes |
| 5782 | ;; |
| 5783 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5784 | openbsd*) |
| 5785 | version_type=sunos |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5786 | need_lib_prefix=no |
| 5787 | need_version=no |
| 5788 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 5789 | case "$host_os" in |
| 5790 | openbsd2.[89] | openbsd2.[89].*) |
| 5791 | shlibpath_overrides_runpath=no |
| 5792 | ;; |
| 5793 | *) |
| 5794 | shlibpath_overrides_runpath=yes |
| 5795 | ;; |
| 5796 | esac |
| 5797 | else |
| 5798 | shlibpath_overrides_runpath=yes |
| 5799 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5800 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 5801 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 5802 | shlibpath_var=LD_LIBRARY_PATH |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5803 | ;; |
| 5804 | |
| 5805 | os2*) |
| 5806 | libname_spec='$name' |
| 5807 | need_lib_prefix=no |
| 5808 | library_names_spec='$libname.dll $libname.a' |
| 5809 | dynamic_linker='OS/2 ld.exe' |
| 5810 | shlibpath_var=LIBPATH |
| 5811 | ;; |
| 5812 | |
| 5813 | osf3* | osf4* | osf5*) |
| 5814 | version_type=osf |
| 5815 | need_version=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5816 | need_lib_prefix=no |
| 5817 | soname_spec='${libname}${release}.so$major' |
| 5818 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5819 | shlibpath_var=LD_LIBRARY_PATH |
| 5820 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 5821 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5822 | hardcode_into_libs=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5823 | ;; |
| 5824 | |
| 5825 | sco3.2v5*) |
| 5826 | version_type=osf |
| 5827 | soname_spec='${libname}${release}.so$major' |
| 5828 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5829 | shlibpath_var=LD_LIBRARY_PATH |
| 5830 | ;; |
| 5831 | |
| 5832 | solaris*) |
| 5833 | version_type=linux |
| 5834 | need_lib_prefix=no |
| 5835 | need_version=no |
| 5836 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5837 | soname_spec='${libname}${release}.so$major' |
| 5838 | shlibpath_var=LD_LIBRARY_PATH |
| 5839 | shlibpath_overrides_runpath=yes |
| 5840 | hardcode_into_libs=yes |
| 5841 | # ldd complains unless libraries are executable |
| 5842 | postinstall_cmds='chmod +x $lib' |
| 5843 | ;; |
| 5844 | |
| 5845 | sunos4*) |
| 5846 | version_type=sunos |
| 5847 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 5848 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 5849 | shlibpath_var=LD_LIBRARY_PATH |
| 5850 | shlibpath_overrides_runpath=yes |
| 5851 | if test "$with_gnu_ld" = yes; then |
| 5852 | need_lib_prefix=no |
| 5853 | fi |
| 5854 | need_version=yes |
| 5855 | ;; |
| 5856 | |
| 5857 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 5858 | version_type=linux |
| 5859 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5860 | soname_spec='${libname}${release}.so$major' |
| 5861 | shlibpath_var=LD_LIBRARY_PATH |
| 5862 | case $host_vendor in |
| 5863 | sni) |
| 5864 | shlibpath_overrides_runpath=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5865 | need_lib_prefix=no |
| 5866 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 5867 | runpath_var=LD_RUN_PATH |
| 5868 | ;; |
| 5869 | siemens) |
| 5870 | need_lib_prefix=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5871 | ;; |
| 5872 | motorola) |
| 5873 | need_lib_prefix=no |
| 5874 | need_version=no |
| 5875 | shlibpath_overrides_runpath=no |
| 5876 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 5877 | ;; |
| 5878 | esac |
| 5879 | ;; |
| 5880 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5881 | uts4*) |
| 5882 | version_type=linux |
| 5883 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5884 | soname_spec='${libname}${release}.so$major' |
| 5885 | shlibpath_var=LD_LIBRARY_PATH |
| 5886 | ;; |
| 5887 | |
| 5888 | dgux*) |
| 5889 | version_type=linux |
| 5890 | need_lib_prefix=no |
| 5891 | need_version=no |
| 5892 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5893 | soname_spec='${libname}${release}.so$major' |
| 5894 | shlibpath_var=LD_LIBRARY_PATH |
| 5895 | ;; |
| 5896 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5897 | sysv4*MP*) |
| 5898 | if test -d /usr/nec ;then |
| 5899 | version_type=linux |
| 5900 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' |
| 5901 | soname_spec='$libname.so.$major' |
| 5902 | shlibpath_var=LD_LIBRARY_PATH |
| 5903 | fi |
| 5904 | ;; |
| 5905 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5906 | *) |
| 5907 | dynamic_linker=no |
| 5908 | ;; |
| 5909 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5910 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5911 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 5912 | test "$dynamic_linker" = no && can_build_shared=no |
| 5913 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5914 | # Report the final consequences. |
| 5915 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 5916 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 5917 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 5918 | echo "${ECHO_T}$can_build_shared" >&6 |
| 5919 | |
| 5920 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 5921 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 5922 | test "$can_build_shared" = "no" && enable_shared=no |
| 5923 | |
| 5924 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 5925 | # are all built from PIC. |
| 5926 | case "$host_os" in |
| 5927 | aix3*) |
| 5928 | test "$enable_shared" = yes && enable_static=no |
| 5929 | if test -n "$RANLIB"; then |
| 5930 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 5931 | postinstall_cmds='$RANLIB $lib' |
| 5932 | fi |
| 5933 | ;; |
| 5934 | |
| 5935 | aix4*) |
| 5936 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 5937 | test "$enable_shared" = yes && enable_static=no |
| 5938 | fi |
| 5939 | ;; |
| 5940 | esac |
| 5941 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 5942 | echo "${ECHO_T}$enable_shared" >&6 |
| 5943 | |
| 5944 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 5945 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 5946 | # Make sure either enable_shared or enable_static is yes. |
| 5947 | test "$enable_shared" = yes || enable_static=yes |
| 5948 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 5949 | echo "${ECHO_T}$enable_static" >&6 |
| 5950 | |
| 5951 | if test "$hardcode_action" = relink; then |
| 5952 | # Fast installation is not supported |
| 5953 | enable_fast_install=no |
| 5954 | elif test "$shlibpath_overrides_runpath" = yes || |
| 5955 | test "$enable_shared" = no; then |
| 5956 | # Fast installation is not necessary |
| 5957 | enable_fast_install=needless |
| 5958 | fi |
| 5959 | |
| 5960 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 5961 | if test "$GCC" = yes; then |
| 5962 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 5963 | fi |
| 5964 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5965 | if test "x$enable_dlopen" != xyes; then |
| 5966 | enable_dlopen=unknown |
| 5967 | enable_dlopen_self=unknown |
| 5968 | enable_dlopen_self_static=unknown |
| 5969 | else |
| 5970 | lt_cv_dlopen=no |
| 5971 | lt_cv_dlopen_libs= |
| 5972 | |
| 5973 | case $host_os in |
| 5974 | beos*) |
| 5975 | lt_cv_dlopen="load_add_on" |
| 5976 | lt_cv_dlopen_libs= |
| 5977 | lt_cv_dlopen_self=yes |
| 5978 | ;; |
| 5979 | |
| 5980 | cygwin* | mingw* | pw32*) |
| 5981 | lt_cv_dlopen="LoadLibrary" |
| 5982 | lt_cv_dlopen_libs= |
| 5983 | ;; |
| 5984 | |
| 5985 | *) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5986 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5987 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 5988 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 5989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5990 | else |
| 5991 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5992 | #line $LINENO "configure" |
| 5993 | /* confdefs.h. */ |
| 5994 | _ACEOF |
| 5995 | cat confdefs.h >>conftest.$ac_ext |
| 5996 | cat >>conftest.$ac_ext <<_ACEOF |
| 5997 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5998 | /* System header to define __stub macros and hopefully few prototypes, |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5999 | which can conflict with char shl_load (); below. |
| 6000 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6001 | <limits.h> exists even on freestanding compilers. */ |
| 6002 | #ifdef __STDC__ |
| 6003 | # include <limits.h> |
| 6004 | #else |
| 6005 | # include <assert.h> |
| 6006 | #endif |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6007 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6008 | #ifdef __cplusplus |
| 6009 | extern "C" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6010 | { |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6011 | #endif |
| 6012 | /* We use char because int might match the return type of a gcc2 |
| 6013 | builtin and then its argument prototype would still apply. */ |
| 6014 | char shl_load (); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6015 | /* The GNU C library defines this for functions which it implements |
| 6016 | to always fail with ENOSYS. Some functions are actually named |
| 6017 | something starting with __ and the normal name is an alias. */ |
| 6018 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 6019 | choke me |
| 6020 | #else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6021 | char (*f) () = shl_load; |
| 6022 | #endif |
| 6023 | #ifdef __cplusplus |
| 6024 | } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6025 | #endif |
| 6026 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6027 | int |
| 6028 | main () |
| 6029 | { |
| 6030 | return f != shl_load; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6031 | ; |
| 6032 | return 0; |
| 6033 | } |
| 6034 | _ACEOF |
| 6035 | rm -f conftest.$ac_objext conftest$ac_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6036 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6037 | (eval $ac_link) 2>&5 |
| 6038 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6040 | (exit $ac_status); } && |
| 6041 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6043 | (eval $ac_try) 2>&5 |
| 6044 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6046 | (exit $ac_status); }; }; then |
| 6047 | ac_cv_func_shl_load=yes |
| 6048 | else |
| 6049 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6050 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6051 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6052 | ac_cv_func_shl_load=no |
| 6053 | fi |
| 6054 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6055 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6056 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6057 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 6058 | if test $ac_cv_func_shl_load = yes; then |
| 6059 | lt_cv_dlopen="shl_load" |
| 6060 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6061 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6062 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 6063 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 6064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6065 | else |
| 6066 | ac_check_lib_save_LIBS=$LIBS |
| 6067 | LIBS="-ldld $LIBS" |
| 6068 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6069 | #line $LINENO "configure" |
| 6070 | /* confdefs.h. */ |
| 6071 | _ACEOF |
| 6072 | cat confdefs.h >>conftest.$ac_ext |
| 6073 | cat >>conftest.$ac_ext <<_ACEOF |
| 6074 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6075 | |
| 6076 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6077 | #ifdef __cplusplus |
| 6078 | extern "C" |
| 6079 | #endif |
| 6080 | /* We use char because int might match the return type of a gcc2 |
| 6081 | builtin and then its argument prototype would still apply. */ |
| 6082 | char shl_load (); |
| 6083 | int |
| 6084 | main () |
| 6085 | { |
| 6086 | shl_load (); |
| 6087 | ; |
| 6088 | return 0; |
| 6089 | } |
| 6090 | _ACEOF |
| 6091 | rm -f conftest.$ac_objext conftest$ac_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6092 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6093 | (eval $ac_link) 2>&5 |
| 6094 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6096 | (exit $ac_status); } && |
| 6097 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6099 | (eval $ac_try) 2>&5 |
| 6100 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6102 | (exit $ac_status); }; }; then |
| 6103 | ac_cv_lib_dld_shl_load=yes |
| 6104 | else |
| 6105 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6107 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6108 | ac_cv_lib_dld_shl_load=no |
| 6109 | fi |
| 6110 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6111 | LIBS=$ac_check_lib_save_LIBS |
| 6112 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6113 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6114 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 6115 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 6116 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 6117 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6118 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 6119 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 6120 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 6121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6122 | else |
| 6123 | cat >conftest.$ac_ext <<_ACEOF |
| 6124 | #line $LINENO "configure" |
| 6125 | /* confdefs.h. */ |
| 6126 | _ACEOF |
| 6127 | cat confdefs.h >>conftest.$ac_ext |
| 6128 | cat >>conftest.$ac_ext <<_ACEOF |
| 6129 | /* end confdefs.h. */ |
| 6130 | /* System header to define __stub macros and hopefully few prototypes, |
| 6131 | which can conflict with char dlopen (); below. |
| 6132 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6133 | <limits.h> exists even on freestanding compilers. */ |
| 6134 | #ifdef __STDC__ |
| 6135 | # include <limits.h> |
| 6136 | #else |
| 6137 | # include <assert.h> |
| 6138 | #endif |
| 6139 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6140 | #ifdef __cplusplus |
| 6141 | extern "C" |
| 6142 | { |
| 6143 | #endif |
| 6144 | /* We use char because int might match the return type of a gcc2 |
| 6145 | builtin and then its argument prototype would still apply. */ |
| 6146 | char dlopen (); |
| 6147 | /* The GNU C library defines this for functions which it implements |
| 6148 | to always fail with ENOSYS. Some functions are actually named |
| 6149 | something starting with __ and the normal name is an alias. */ |
| 6150 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 6151 | choke me |
| 6152 | #else |
| 6153 | char (*f) () = dlopen; |
| 6154 | #endif |
| 6155 | #ifdef __cplusplus |
| 6156 | } |
| 6157 | #endif |
| 6158 | |
| 6159 | int |
| 6160 | main () |
| 6161 | { |
| 6162 | return f != dlopen; |
| 6163 | ; |
| 6164 | return 0; |
| 6165 | } |
| 6166 | _ACEOF |
| 6167 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6168 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6169 | (eval $ac_link) 2>&5 |
| 6170 | ac_status=$? |
| 6171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6172 | (exit $ac_status); } && |
| 6173 | { ac_try='test -s conftest$ac_exeext' |
| 6174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6175 | (eval $ac_try) 2>&5 |
| 6176 | ac_status=$? |
| 6177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6178 | (exit $ac_status); }; }; then |
| 6179 | ac_cv_func_dlopen=yes |
| 6180 | else |
| 6181 | echo "$as_me: failed program was:" >&5 |
| 6182 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6183 | |
| 6184 | ac_cv_func_dlopen=no |
| 6185 | fi |
| 6186 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6187 | fi |
| 6188 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 6189 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 6190 | if test $ac_cv_func_dlopen = yes; then |
| 6191 | lt_cv_dlopen="dlopen" |
| 6192 | else |
| 6193 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6194 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 6195 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 6196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6197 | else |
| 6198 | ac_check_lib_save_LIBS=$LIBS |
| 6199 | LIBS="-ldl $LIBS" |
| 6200 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6201 | #line $LINENO "configure" |
| 6202 | /* confdefs.h. */ |
| 6203 | _ACEOF |
| 6204 | cat confdefs.h >>conftest.$ac_ext |
| 6205 | cat >>conftest.$ac_ext <<_ACEOF |
| 6206 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6207 | |
| 6208 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6209 | #ifdef __cplusplus |
| 6210 | extern "C" |
| 6211 | #endif |
| 6212 | /* We use char because int might match the return type of a gcc2 |
| 6213 | builtin and then its argument prototype would still apply. */ |
| 6214 | char dlopen (); |
| 6215 | int |
| 6216 | main () |
| 6217 | { |
| 6218 | dlopen (); |
| 6219 | ; |
| 6220 | return 0; |
| 6221 | } |
| 6222 | _ACEOF |
| 6223 | rm -f conftest.$ac_objext conftest$ac_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6224 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6225 | (eval $ac_link) 2>&5 |
| 6226 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6228 | (exit $ac_status); } && |
| 6229 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6231 | (eval $ac_try) 2>&5 |
| 6232 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6234 | (exit $ac_status); }; }; then |
| 6235 | ac_cv_lib_dl_dlopen=yes |
| 6236 | else |
| 6237 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6238 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6239 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6240 | ac_cv_lib_dl_dlopen=no |
| 6241 | fi |
| 6242 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6243 | LIBS=$ac_check_lib_save_LIBS |
| 6244 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6245 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6246 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 6247 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 6248 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 6249 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6250 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6251 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 6252 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 6253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6254 | else |
| 6255 | ac_check_lib_save_LIBS=$LIBS |
| 6256 | LIBS="-lsvld $LIBS" |
| 6257 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6258 | #line $LINENO "configure" |
| 6259 | /* confdefs.h. */ |
| 6260 | _ACEOF |
| 6261 | cat confdefs.h >>conftest.$ac_ext |
| 6262 | cat >>conftest.$ac_ext <<_ACEOF |
| 6263 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6264 | |
| 6265 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6266 | #ifdef __cplusplus |
| 6267 | extern "C" |
| 6268 | #endif |
| 6269 | /* We use char because int might match the return type of a gcc2 |
| 6270 | builtin and then its argument prototype would still apply. */ |
| 6271 | char dlopen (); |
| 6272 | int |
| 6273 | main () |
| 6274 | { |
| 6275 | dlopen (); |
| 6276 | ; |
| 6277 | return 0; |
| 6278 | } |
| 6279 | _ACEOF |
| 6280 | rm -f conftest.$ac_objext conftest$ac_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6281 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6282 | (eval $ac_link) 2>&5 |
| 6283 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6285 | (exit $ac_status); } && |
| 6286 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6288 | (eval $ac_try) 2>&5 |
| 6289 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6291 | (exit $ac_status); }; }; then |
| 6292 | ac_cv_lib_svld_dlopen=yes |
| 6293 | else |
| 6294 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6295 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6296 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6297 | ac_cv_lib_svld_dlopen=no |
| 6298 | fi |
| 6299 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6300 | LIBS=$ac_check_lib_save_LIBS |
| 6301 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6302 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6303 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 6304 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 6305 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6306 | else |
| 6307 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 6308 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 6309 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 6310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6311 | else |
| 6312 | ac_check_lib_save_LIBS=$LIBS |
| 6313 | LIBS="-ldld $LIBS" |
| 6314 | cat >conftest.$ac_ext <<_ACEOF |
| 6315 | #line $LINENO "configure" |
| 6316 | /* confdefs.h. */ |
| 6317 | _ACEOF |
| 6318 | cat confdefs.h >>conftest.$ac_ext |
| 6319 | cat >>conftest.$ac_ext <<_ACEOF |
| 6320 | /* end confdefs.h. */ |
| 6321 | |
| 6322 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6323 | #ifdef __cplusplus |
| 6324 | extern "C" |
| 6325 | #endif |
| 6326 | /* We use char because int might match the return type of a gcc2 |
| 6327 | builtin and then its argument prototype would still apply. */ |
| 6328 | char dld_link (); |
| 6329 | int |
| 6330 | main () |
| 6331 | { |
| 6332 | dld_link (); |
| 6333 | ; |
| 6334 | return 0; |
| 6335 | } |
| 6336 | _ACEOF |
| 6337 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6338 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6339 | (eval $ac_link) 2>&5 |
| 6340 | ac_status=$? |
| 6341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6342 | (exit $ac_status); } && |
| 6343 | { ac_try='test -s conftest$ac_exeext' |
| 6344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6345 | (eval $ac_try) 2>&5 |
| 6346 | ac_status=$? |
| 6347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6348 | (exit $ac_status); }; }; then |
| 6349 | ac_cv_lib_dld_dld_link=yes |
| 6350 | else |
| 6351 | echo "$as_me: failed program was:" >&5 |
| 6352 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6353 | |
| 6354 | ac_cv_lib_dld_dld_link=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6355 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6356 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6357 | LIBS=$ac_check_lib_save_LIBS |
| 6358 | fi |
| 6359 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 6360 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 6361 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 6362 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 6363 | fi |
| 6364 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6365 | |
| 6366 | fi |
| 6367 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6368 | |
| 6369 | fi |
| 6370 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6371 | |
| 6372 | fi |
| 6373 | |
| 6374 | |
| 6375 | fi |
| 6376 | |
| 6377 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6378 | fi |
| 6379 | |
| 6380 | ;; |
| 6381 | esac |
| 6382 | |
| 6383 | if test "x$lt_cv_dlopen" != xno; then |
| 6384 | enable_dlopen=yes |
| 6385 | else |
| 6386 | enable_dlopen=no |
| 6387 | fi |
| 6388 | |
| 6389 | case $lt_cv_dlopen in |
| 6390 | dlopen) |
| 6391 | save_CPPFLAGS="$CPPFLAGS" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6392 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6393 | |
| 6394 | save_LDFLAGS="$LDFLAGS" |
| 6395 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 6396 | |
| 6397 | save_LIBS="$LIBS" |
| 6398 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 6399 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6400 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6401 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 6402 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 6403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6404 | else |
| 6405 | if test "$cross_compiling" = yes; then : |
| 6406 | lt_cv_dlopen_self=cross |
| 6407 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6408 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6409 | lt_status=$lt_dlunknown |
| 6410 | cat > conftest.$ac_ext <<EOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6411 | #line 6411 "configure" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6412 | #include "confdefs.h" |
| 6413 | |
| 6414 | #if HAVE_DLFCN_H |
| 6415 | #include <dlfcn.h> |
| 6416 | #endif |
| 6417 | |
| 6418 | #include <stdio.h> |
| 6419 | |
| 6420 | #ifdef RTLD_GLOBAL |
| 6421 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 6422 | #else |
| 6423 | # ifdef DL_GLOBAL |
| 6424 | # define LT_DLGLOBAL DL_GLOBAL |
| 6425 | # else |
| 6426 | # define LT_DLGLOBAL 0 |
| 6427 | # endif |
| 6428 | #endif |
| 6429 | |
| 6430 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 6431 | find out it does not work in some platform. */ |
| 6432 | #ifndef LT_DLLAZY_OR_NOW |
| 6433 | # ifdef RTLD_LAZY |
| 6434 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 6435 | # else |
| 6436 | # ifdef DL_LAZY |
| 6437 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 6438 | # else |
| 6439 | # ifdef RTLD_NOW |
| 6440 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 6441 | # else |
| 6442 | # ifdef DL_NOW |
| 6443 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 6444 | # else |
| 6445 | # define LT_DLLAZY_OR_NOW 0 |
| 6446 | # endif |
| 6447 | # endif |
| 6448 | # endif |
| 6449 | # endif |
| 6450 | #endif |
| 6451 | |
| 6452 | #ifdef __cplusplus |
| 6453 | extern "C" void exit (int); |
| 6454 | #endif |
| 6455 | |
| 6456 | void fnord() { int i=42;} |
| 6457 | int main () |
| 6458 | { |
| 6459 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 6460 | int status = $lt_dlunknown; |
| 6461 | |
| 6462 | if (self) |
| 6463 | { |
| 6464 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 6465 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 6466 | /* dlclose (self); */ |
| 6467 | } |
| 6468 | |
| 6469 | exit (status); |
| 6470 | } |
| 6471 | EOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6472 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6473 | (eval $ac_link) 2>&5 |
| 6474 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6476 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 6477 | (./conftest; exit; ) 2>/dev/null |
| 6478 | lt_status=$? |
| 6479 | case x$lt_status in |
| 6480 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 6481 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 6482 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 6483 | esac |
| 6484 | else : |
| 6485 | # compilation failed |
| 6486 | lt_cv_dlopen_self=no |
| 6487 | fi |
| 6488 | fi |
| 6489 | rm -fr conftest* |
| 6490 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6491 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6492 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6493 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6494 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 6495 | |
| 6496 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 6497 | LDFLAGS="$LDFLAGS $link_static_flag" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6498 | 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] | 6499 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 6500 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 6501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6502 | else |
| 6503 | if test "$cross_compiling" = yes; then : |
| 6504 | lt_cv_dlopen_self_static=cross |
| 6505 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6506 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6507 | lt_status=$lt_dlunknown |
| 6508 | cat > conftest.$ac_ext <<EOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6509 | #line 6509 "configure" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6510 | #include "confdefs.h" |
| 6511 | |
| 6512 | #if HAVE_DLFCN_H |
| 6513 | #include <dlfcn.h> |
| 6514 | #endif |
| 6515 | |
| 6516 | #include <stdio.h> |
| 6517 | |
| 6518 | #ifdef RTLD_GLOBAL |
| 6519 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 6520 | #else |
| 6521 | # ifdef DL_GLOBAL |
| 6522 | # define LT_DLGLOBAL DL_GLOBAL |
| 6523 | # else |
| 6524 | # define LT_DLGLOBAL 0 |
| 6525 | # endif |
| 6526 | #endif |
| 6527 | |
| 6528 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 6529 | find out it does not work in some platform. */ |
| 6530 | #ifndef LT_DLLAZY_OR_NOW |
| 6531 | # ifdef RTLD_LAZY |
| 6532 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 6533 | # else |
| 6534 | # ifdef DL_LAZY |
| 6535 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 6536 | # else |
| 6537 | # ifdef RTLD_NOW |
| 6538 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 6539 | # else |
| 6540 | # ifdef DL_NOW |
| 6541 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 6542 | # else |
| 6543 | # define LT_DLLAZY_OR_NOW 0 |
| 6544 | # endif |
| 6545 | # endif |
| 6546 | # endif |
| 6547 | # endif |
| 6548 | #endif |
| 6549 | |
| 6550 | #ifdef __cplusplus |
| 6551 | extern "C" void exit (int); |
| 6552 | #endif |
| 6553 | |
| 6554 | void fnord() { int i=42;} |
| 6555 | int main () |
| 6556 | { |
| 6557 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 6558 | int status = $lt_dlunknown; |
| 6559 | |
| 6560 | if (self) |
| 6561 | { |
| 6562 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 6563 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 6564 | /* dlclose (self); */ |
| 6565 | } |
| 6566 | |
| 6567 | exit (status); |
| 6568 | } |
| 6569 | EOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6570 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6571 | (eval $ac_link) 2>&5 |
| 6572 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6574 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 6575 | (./conftest; exit; ) 2>/dev/null |
| 6576 | lt_status=$? |
| 6577 | case x$lt_status in |
| 6578 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 6579 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 6580 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 6581 | esac |
| 6582 | else : |
| 6583 | # compilation failed |
| 6584 | lt_cv_dlopen_self_static=no |
| 6585 | fi |
| 6586 | fi |
| 6587 | rm -fr conftest* |
| 6588 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6589 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6590 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6591 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6592 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 6593 | fi |
| 6594 | |
| 6595 | CPPFLAGS="$save_CPPFLAGS" |
| 6596 | LDFLAGS="$save_LDFLAGS" |
| 6597 | LIBS="$save_LIBS" |
| 6598 | ;; |
| 6599 | esac |
| 6600 | |
| 6601 | case $lt_cv_dlopen_self in |
| 6602 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 6603 | *) enable_dlopen_self=unknown ;; |
| 6604 | esac |
| 6605 | |
| 6606 | case $lt_cv_dlopen_self_static in |
| 6607 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 6608 | *) enable_dlopen_self_static=unknown ;; |
| 6609 | esac |
| 6610 | fi |
| 6611 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6612 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6613 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 6614 | case $archive_cmds in |
| 6615 | *'~'*) |
| 6616 | # FIXME: we may have to deal with multi-command sequences. |
| 6617 | ;; |
| 6618 | '$CC '*) |
| 6619 | # Test whether the compiler implicitly links with -lc since on some |
| 6620 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 6621 | # to ld, don't add -lc before -lgcc. |
| 6622 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 6623 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 6624 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then |
| 6625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6626 | else |
| 6627 | $rm conftest* |
| 6628 | echo 'static int dummy;' > conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6629 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6630 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6631 | (eval $ac_compile) 2>&5 |
| 6632 | ac_status=$? |
| 6633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6634 | (exit $ac_status); }; then |
| 6635 | soname=conftest |
| 6636 | lib=conftest |
| 6637 | libobjs=conftest.$ac_objext |
| 6638 | deplibs= |
| 6639 | wl=$lt_cv_prog_cc_wl |
| 6640 | compiler_flags=-v |
| 6641 | linker_flags=-v |
| 6642 | verstring= |
| 6643 | output_objdir=. |
| 6644 | libname=conftest |
| 6645 | save_allow_undefined_flag=$allow_undefined_flag |
| 6646 | allow_undefined_flag= |
| 6647 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 6648 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 6649 | ac_status=$? |
| 6650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6651 | (exit $ac_status); } |
| 6652 | then |
| 6653 | lt_cv_archive_cmds_need_lc=no |
| 6654 | else |
| 6655 | lt_cv_archive_cmds_need_lc=yes |
| 6656 | fi |
| 6657 | allow_undefined_flag=$save_allow_undefined_flag |
| 6658 | else |
| 6659 | cat conftest.err 1>&5 |
| 6660 | fi |
| 6661 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6662 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6663 | echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 6664 | echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 |
| 6665 | ;; |
| 6666 | esac |
| 6667 | fi |
| 6668 | need_lc=${lt_cv_archive_cmds_need_lc-yes} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6669 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6670 | # The second clause should only fire when bootstrapping the |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6671 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 6672 | # with your package, and you will get complaints that there are |
| 6673 | # no rules to generate ltmain.sh. |
| 6674 | if test -f "$ltmain"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6675 | : |
| 6676 | else |
| 6677 | # If there is no Makefile yet, we rely on a make rule to execute |
| 6678 | # `config.status --recheck' to rerun these tests and create the |
| 6679 | # libtool script then. |
| 6680 | test -f Makefile && make "$ltmain" |
| 6681 | fi |
| 6682 | |
| 6683 | if test -f "$ltmain"; then |
| 6684 | trap "$rm \"${ofile}T\"; exit 1" 1 2 15 |
| 6685 | $rm -f "${ofile}T" |
| 6686 | |
| 6687 | echo creating $ofile |
| 6688 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6689 | # Now quote all the things that may contain metacharacters while being |
| 6690 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 6691 | # variables and quote the copies for generation of the libtool script. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6692 | for var in echo old_CC old_CFLAGS SED \ |
| 6693 | AR AR_FLAGS CC LD LN_S NM SHELL \ |
| 6694 | reload_flag reload_cmds wl \ |
| 6695 | pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ |
| 6696 | thread_safe_flag_spec whole_archive_flag_spec libname_spec \ |
| 6697 | library_names_spec soname_spec \ |
| 6698 | RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ |
| 6699 | old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ |
| 6700 | postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ |
| 6701 | old_striplib striplib file_magic_cmd export_symbols_cmds \ |
| 6702 | deplibs_check_method allow_undefined_flag no_undefined_flag \ |
| 6703 | finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ |
| 6704 | global_symbol_to_c_name_address \ |
| 6705 | hardcode_libdir_flag_spec hardcode_libdir_separator \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6706 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6707 | compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6708 | |
| 6709 | case $var in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6710 | reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6711 | old_postinstall_cmds | old_postuninstall_cmds | \ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6712 | export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ |
| 6713 | extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ |
| 6714 | postinstall_cmds | postuninstall_cmds | \ |
| 6715 | finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6716 | # Double-quote double-evaled strings. |
| 6717 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 6718 | ;; |
| 6719 | *) |
| 6720 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 6721 | ;; |
| 6722 | esac |
| 6723 | done |
| 6724 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6725 | cat <<__EOF__ > "${ofile}T" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6726 | #! $SHELL |
| 6727 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6728 | # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6729 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 6730 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 6731 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6732 | # Copyright (C) 1996-2000 Free Software Foundation, Inc. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6733 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 6734 | # |
| 6735 | # This program is free software; you can redistribute it and/or modify |
| 6736 | # it under the terms of the GNU General Public License as published by |
| 6737 | # the Free Software Foundation; either version 2 of the License, or |
| 6738 | # (at your option) any later version. |
| 6739 | # |
| 6740 | # This program is distributed in the hope that it will be useful, but |
| 6741 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 6742 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 6743 | # General Public License for more details. |
| 6744 | # |
| 6745 | # You should have received a copy of the GNU General Public License |
| 6746 | # along with this program; if not, write to the Free Software |
| 6747 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 6748 | # |
| 6749 | # As a special exception to the GNU General Public License, if you |
| 6750 | # distribute this file as part of a program that contains a |
| 6751 | # configuration script generated by Autoconf, you may include it under |
| 6752 | # the same distribution terms that you use for the rest of that program. |
| 6753 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6754 | # A sed that does not truncate output. |
| 6755 | SED=$lt_SED |
| 6756 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6757 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6758 | Xsed="${SED} -e s/^X//" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6759 | |
| 6760 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 6761 | # if CDPATH is set. |
| 6762 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 6763 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6764 | # ### BEGIN LIBTOOL CONFIG |
| 6765 | |
| 6766 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 6767 | |
| 6768 | # Shell to use when invoking shell scripts. |
| 6769 | SHELL=$lt_SHELL |
| 6770 | |
| 6771 | # Whether or not to build shared libraries. |
| 6772 | build_libtool_libs=$enable_shared |
| 6773 | |
| 6774 | # Whether or not to build static libraries. |
| 6775 | build_old_libs=$enable_static |
| 6776 | |
| 6777 | # Whether or not to add -lc for building shared libraries. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6778 | build_libtool_need_lc=$need_lc |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6779 | |
| 6780 | # Whether or not to optimize for fast installation. |
| 6781 | fast_install=$enable_fast_install |
| 6782 | |
| 6783 | # The host system. |
| 6784 | host_alias=$host_alias |
| 6785 | host=$host |
| 6786 | |
| 6787 | # An echo program that does not interpret backslashes. |
| 6788 | echo=$lt_echo |
| 6789 | |
| 6790 | # The archiver. |
| 6791 | AR=$lt_AR |
| 6792 | AR_FLAGS=$lt_AR_FLAGS |
| 6793 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6794 | # The default C compiler. |
| 6795 | CC=$lt_CC |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6796 | |
| 6797 | # Is the compiler the GNU C compiler? |
| 6798 | with_gcc=$GCC |
| 6799 | |
| 6800 | # The linker used to build libraries. |
| 6801 | LD=$lt_LD |
| 6802 | |
| 6803 | # Whether we need hard or soft links. |
| 6804 | LN_S=$lt_LN_S |
| 6805 | |
| 6806 | # A BSD-compatible nm program. |
| 6807 | NM=$lt_NM |
| 6808 | |
| 6809 | # A symbol stripping program |
| 6810 | STRIP=$STRIP |
| 6811 | |
| 6812 | # Used to examine libraries when file_magic_cmd begins "file" |
| 6813 | MAGIC_CMD=$MAGIC_CMD |
| 6814 | |
| 6815 | # Used on cygwin: DLL creation program. |
| 6816 | DLLTOOL="$DLLTOOL" |
| 6817 | |
| 6818 | # Used on cygwin: object dumper. |
| 6819 | OBJDUMP="$OBJDUMP" |
| 6820 | |
| 6821 | # Used on cygwin: assembler. |
| 6822 | AS="$AS" |
| 6823 | |
| 6824 | # The name of the directory that contains temporary libtool files. |
| 6825 | objdir=$objdir |
| 6826 | |
| 6827 | # How to create reloadable object files. |
| 6828 | reload_flag=$lt_reload_flag |
| 6829 | reload_cmds=$lt_reload_cmds |
| 6830 | |
| 6831 | # How to pass a linker flag through the compiler. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6832 | wl=$lt_wl |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6833 | |
| 6834 | # Object file suffix (normally "o"). |
| 6835 | objext="$ac_objext" |
| 6836 | |
| 6837 | # Old archive suffix (normally "a"). |
| 6838 | libext="$libext" |
| 6839 | |
| 6840 | # Executable file suffix (normally ""). |
| 6841 | exeext="$exeext" |
| 6842 | |
| 6843 | # Additional compiler flags for building library objects. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6844 | pic_flag=$lt_pic_flag |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6845 | pic_mode=$pic_mode |
| 6846 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6847 | # Does compiler simultaneously support -c and -o options? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6848 | compiler_c_o=$lt_compiler_c_o |
| 6849 | |
| 6850 | # Can we write directly to a .lo ? |
| 6851 | compiler_o_lo=$lt_compiler_o_lo |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6852 | |
| 6853 | # Must we lock files when doing compilation ? |
| 6854 | need_locks=$lt_need_locks |
| 6855 | |
| 6856 | # Do we need the lib prefix for modules? |
| 6857 | need_lib_prefix=$need_lib_prefix |
| 6858 | |
| 6859 | # Do we need a version for libraries? |
| 6860 | need_version=$need_version |
| 6861 | |
| 6862 | # Whether dlopen is supported. |
| 6863 | dlopen_support=$enable_dlopen |
| 6864 | |
| 6865 | # Whether dlopen of programs is supported. |
| 6866 | dlopen_self=$enable_dlopen_self |
| 6867 | |
| 6868 | # Whether dlopen of statically linked programs is supported. |
| 6869 | dlopen_self_static=$enable_dlopen_self_static |
| 6870 | |
| 6871 | # Compiler flag to prevent dynamic linking. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6872 | link_static_flag=$lt_link_static_flag |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6873 | |
| 6874 | # Compiler flag to turn off builtin functions. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6875 | no_builtin_flag=$lt_no_builtin_flag |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6876 | |
| 6877 | # Compiler flag to allow reflexive dlopens. |
| 6878 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 6879 | |
| 6880 | # Compiler flag to generate shared objects directly from archives. |
| 6881 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 6882 | |
| 6883 | # Compiler flag to generate thread-safe objects. |
| 6884 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 6885 | |
| 6886 | # Library versioning type. |
| 6887 | version_type=$version_type |
| 6888 | |
| 6889 | # Format of library name prefix. |
| 6890 | libname_spec=$lt_libname_spec |
| 6891 | |
| 6892 | # List of archive names. First name is the real one, the rest are links. |
| 6893 | # The last name is the one that the linker finds with -lNAME. |
| 6894 | library_names_spec=$lt_library_names_spec |
| 6895 | |
| 6896 | # The coded name of the library, if different from the real name. |
| 6897 | soname_spec=$lt_soname_spec |
| 6898 | |
| 6899 | # Commands used to build and install an old-style archive. |
| 6900 | RANLIB=$lt_RANLIB |
| 6901 | old_archive_cmds=$lt_old_archive_cmds |
| 6902 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 6903 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 6904 | |
| 6905 | # Create an old-style archive from a shared archive. |
| 6906 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 6907 | |
| 6908 | # Create a temporary old-style archive to link instead of a shared archive. |
| 6909 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 6910 | |
| 6911 | # Commands used to build and install a shared archive. |
| 6912 | archive_cmds=$lt_archive_cmds |
| 6913 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 6914 | postinstall_cmds=$lt_postinstall_cmds |
| 6915 | postuninstall_cmds=$lt_postuninstall_cmds |
| 6916 | |
| 6917 | # Commands to strip libraries. |
| 6918 | old_striplib=$lt_old_striplib |
| 6919 | striplib=$lt_striplib |
| 6920 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6921 | # Method to check whether dependent libraries are shared objects. |
| 6922 | deplibs_check_method=$lt_deplibs_check_method |
| 6923 | |
| 6924 | # Command to use when deplibs_check_method == file_magic. |
| 6925 | file_magic_cmd=$lt_file_magic_cmd |
| 6926 | |
| 6927 | # Flag that allows shared libraries with undefined symbols to be built. |
| 6928 | allow_undefined_flag=$lt_allow_undefined_flag |
| 6929 | |
| 6930 | # Flag that forces no undefined symbols. |
| 6931 | no_undefined_flag=$lt_no_undefined_flag |
| 6932 | |
| 6933 | # Commands used to finish a libtool library installation in a directory. |
| 6934 | finish_cmds=$lt_finish_cmds |
| 6935 | |
| 6936 | # Same as above, but a single script fragment to be evaled but not shown. |
| 6937 | finish_eval=$lt_finish_eval |
| 6938 | |
| 6939 | # 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] | 6940 | global_symbol_pipe=$lt_global_symbol_pipe |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6941 | |
| 6942 | # Transform the output of nm in a proper C declaration |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6943 | global_symbol_to_cdecl=$lt_global_symbol_to_cdecl |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6944 | |
| 6945 | # Transform the output of nm in a C name address pair |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6946 | global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6947 | |
| 6948 | # This is the shared library runtime path variable. |
| 6949 | runpath_var=$runpath_var |
| 6950 | |
| 6951 | # This is the shared library path variable. |
| 6952 | shlibpath_var=$shlibpath_var |
| 6953 | |
| 6954 | # Is shlibpath searched before the hard-coded library search path? |
| 6955 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 6956 | |
| 6957 | # How to hardcode a shared library path into an executable. |
| 6958 | hardcode_action=$hardcode_action |
| 6959 | |
| 6960 | # Whether we should hardcode library paths into libraries. |
| 6961 | hardcode_into_libs=$hardcode_into_libs |
| 6962 | |
| 6963 | # Flag to hardcode \$libdir into a binary during linking. |
| 6964 | # This must work even if \$libdir does not exist. |
| 6965 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 6966 | |
| 6967 | # Whether we need a single -rpath flag with a separated argument. |
| 6968 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 6969 | |
| 6970 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the |
| 6971 | # resulting binary. |
| 6972 | hardcode_direct=$hardcode_direct |
| 6973 | |
| 6974 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 6975 | # resulting binary. |
| 6976 | hardcode_minus_L=$hardcode_minus_L |
| 6977 | |
| 6978 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 6979 | # the resulting binary. |
| 6980 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 6981 | |
| 6982 | # Variables whose values should be saved in libtool wrapper scripts and |
| 6983 | # restored at relink time. |
| 6984 | variables_saved_for_relink="$variables_saved_for_relink" |
| 6985 | |
| 6986 | # Whether libtool must link a program against all its dependency libraries. |
| 6987 | link_all_deplibs=$link_all_deplibs |
| 6988 | |
| 6989 | # Compile-time system search path for libraries |
| 6990 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 6991 | |
| 6992 | # Run-time system search path for libraries |
| 6993 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 6994 | |
| 6995 | # Fix the shell variable \$srcfile for the compiler. |
| 6996 | fix_srcfile_path="$fix_srcfile_path" |
| 6997 | |
| 6998 | # Set to yes if exported symbols are required. |
| 6999 | always_export_symbols=$always_export_symbols |
| 7000 | |
| 7001 | # The commands to list exported symbols. |
| 7002 | export_symbols_cmds=$lt_export_symbols_cmds |
| 7003 | |
| 7004 | # The commands to extract the exported symbol list from a shared archive. |
| 7005 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 7006 | |
| 7007 | # Symbols that should not be listed in the preloaded symbols. |
| 7008 | exclude_expsyms=$lt_exclude_expsyms |
| 7009 | |
| 7010 | # Symbols that must always be exported. |
| 7011 | include_expsyms=$lt_include_expsyms |
| 7012 | |
| 7013 | # ### END LIBTOOL CONFIG |
| 7014 | |
| 7015 | __EOF__ |
| 7016 | |
| 7017 | case $host_os in |
| 7018 | aix3*) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7019 | cat <<\EOF >> "${ofile}T" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7020 | |
| 7021 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 7022 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 7023 | # vanish in a puff of smoke. |
| 7024 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 7025 | COLLECT_NAMES= |
| 7026 | export COLLECT_NAMES |
| 7027 | fi |
| 7028 | EOF |
| 7029 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7030 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7031 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7032 | case $host_os in |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7033 | cygwin* | mingw* | pw32* | os2*) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7034 | cat <<'EOF' >> "${ofile}T" |
| 7035 | # This is a source program that is used to create dlls on Windows |
| 7036 | # Don't remove nor modify the starting and closing comments |
| 7037 | # /* ltdll.c starts here */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7038 | # #define WIN32_LEAN_AND_MEAN |
| 7039 | # #include <windows.h> |
| 7040 | # #undef WIN32_LEAN_AND_MEAN |
| 7041 | # #include <stdio.h> |
| 7042 | # |
| 7043 | # #ifndef __CYGWIN__ |
| 7044 | # # ifdef __CYGWIN32__ |
| 7045 | # # define __CYGWIN__ __CYGWIN32__ |
| 7046 | # # endif |
| 7047 | # #endif |
| 7048 | # |
| 7049 | # #ifdef __cplusplus |
| 7050 | # extern "C" { |
| 7051 | # #endif |
| 7052 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); |
| 7053 | # #ifdef __cplusplus |
| 7054 | # } |
| 7055 | # #endif |
| 7056 | # |
| 7057 | # #ifdef __CYGWIN__ |
| 7058 | # #include <cygwin/cygwin_dll.h> |
| 7059 | # DECLARE_CYGWIN_DLL( DllMain ); |
| 7060 | # #endif |
| 7061 | # HINSTANCE __hDllInstance_base; |
| 7062 | # |
| 7063 | # BOOL APIENTRY |
| 7064 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) |
| 7065 | # { |
| 7066 | # __hDllInstance_base = hInst; |
| 7067 | # return TRUE; |
| 7068 | # } |
| 7069 | # /* ltdll.c ends here */ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7070 | # This is a source program that is used to create import libraries |
| 7071 | # on Windows for dlls which lack them. Don't remove nor modify the |
| 7072 | # starting and closing comments |
| 7073 | # /* impgen.c starts here */ |
| 7074 | # /* Copyright (C) 1999-2000 Free Software Foundation, Inc. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7075 | # |
| 7076 | # This file is part of GNU libtool. |
| 7077 | # |
| 7078 | # This program is free software; you can redistribute it and/or modify |
| 7079 | # it under the terms of the GNU General Public License as published by |
| 7080 | # the Free Software Foundation; either version 2 of the License, or |
| 7081 | # (at your option) any later version. |
| 7082 | # |
| 7083 | # This program is distributed in the hope that it will be useful, |
| 7084 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 7085 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 7086 | # GNU General Public License for more details. |
| 7087 | # |
| 7088 | # You should have received a copy of the GNU General Public License |
| 7089 | # along with this program; if not, write to the Free Software |
| 7090 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 7091 | # */ |
| 7092 | # |
| 7093 | # #include <stdio.h> /* for printf() */ |
| 7094 | # #include <unistd.h> /* for open(), lseek(), read() */ |
| 7095 | # #include <fcntl.h> /* for O_RDONLY, O_BINARY */ |
| 7096 | # #include <string.h> /* for strdup() */ |
| 7097 | # |
| 7098 | # /* O_BINARY isn't required (or even defined sometimes) under Unix */ |
| 7099 | # #ifndef O_BINARY |
| 7100 | # #define O_BINARY 0 |
| 7101 | # #endif |
| 7102 | # |
| 7103 | # static unsigned int |
| 7104 | # pe_get16 (fd, offset) |
| 7105 | # int fd; |
| 7106 | # int offset; |
| 7107 | # { |
| 7108 | # unsigned char b[2]; |
| 7109 | # lseek (fd, offset, SEEK_SET); |
| 7110 | # read (fd, b, 2); |
| 7111 | # return b[0] + (b[1]<<8); |
| 7112 | # } |
| 7113 | # |
| 7114 | # static unsigned int |
| 7115 | # pe_get32 (fd, offset) |
| 7116 | # int fd; |
| 7117 | # int offset; |
| 7118 | # { |
| 7119 | # unsigned char b[4]; |
| 7120 | # lseek (fd, offset, SEEK_SET); |
| 7121 | # read (fd, b, 4); |
| 7122 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
| 7123 | # } |
| 7124 | # |
| 7125 | # static unsigned int |
| 7126 | # pe_as32 (ptr) |
| 7127 | # void *ptr; |
| 7128 | # { |
| 7129 | # unsigned char *b = ptr; |
| 7130 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
| 7131 | # } |
| 7132 | # |
| 7133 | # int |
| 7134 | # main (argc, argv) |
| 7135 | # int argc; |
| 7136 | # char *argv[]; |
| 7137 | # { |
| 7138 | # int dll; |
| 7139 | # unsigned long pe_header_offset, opthdr_ofs, num_entries, i; |
| 7140 | # unsigned long export_rva, export_size, nsections, secptr, expptr; |
| 7141 | # unsigned long name_rvas, nexp; |
| 7142 | # unsigned char *expdata, *erva; |
| 7143 | # char *filename, *dll_name; |
| 7144 | # |
| 7145 | # filename = argv[1]; |
| 7146 | # |
| 7147 | # dll = open(filename, O_RDONLY|O_BINARY); |
| 7148 | # if (dll < 1) |
| 7149 | # return 1; |
| 7150 | # |
| 7151 | # dll_name = filename; |
| 7152 | # |
| 7153 | # for (i=0; filename[i]; i++) |
| 7154 | # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') |
| 7155 | # dll_name = filename + i +1; |
| 7156 | # |
| 7157 | # pe_header_offset = pe_get32 (dll, 0x3c); |
| 7158 | # opthdr_ofs = pe_header_offset + 4 + 20; |
| 7159 | # num_entries = pe_get32 (dll, opthdr_ofs + 92); |
| 7160 | # |
| 7161 | # if (num_entries < 1) /* no exports */ |
| 7162 | # return 1; |
| 7163 | # |
| 7164 | # export_rva = pe_get32 (dll, opthdr_ofs + 96); |
| 7165 | # export_size = pe_get32 (dll, opthdr_ofs + 100); |
| 7166 | # nsections = pe_get16 (dll, pe_header_offset + 4 +2); |
| 7167 | # secptr = (pe_header_offset + 4 + 20 + |
| 7168 | # pe_get16 (dll, pe_header_offset + 4 + 16)); |
| 7169 | # |
| 7170 | # expptr = 0; |
| 7171 | # for (i = 0; i < nsections; i++) |
| 7172 | # { |
| 7173 | # char sname[8]; |
| 7174 | # unsigned long secptr1 = secptr + 40 * i; |
| 7175 | # unsigned long vaddr = pe_get32 (dll, secptr1 + 12); |
| 7176 | # unsigned long vsize = pe_get32 (dll, secptr1 + 16); |
| 7177 | # unsigned long fptr = pe_get32 (dll, secptr1 + 20); |
| 7178 | # lseek(dll, secptr1, SEEK_SET); |
| 7179 | # read(dll, sname, 8); |
| 7180 | # if (vaddr <= export_rva && vaddr+vsize > export_rva) |
| 7181 | # { |
| 7182 | # expptr = fptr + (export_rva - vaddr); |
| 7183 | # if (export_rva + export_size > vaddr + vsize) |
| 7184 | # export_size = vsize - (export_rva - vaddr); |
| 7185 | # break; |
| 7186 | # } |
| 7187 | # } |
| 7188 | # |
| 7189 | # expdata = (unsigned char*)malloc(export_size); |
| 7190 | # lseek (dll, expptr, SEEK_SET); |
| 7191 | # read (dll, expdata, export_size); |
| 7192 | # erva = expdata - export_rva; |
| 7193 | # |
| 7194 | # nexp = pe_as32 (expdata+24); |
| 7195 | # name_rvas = pe_as32 (expdata+32); |
| 7196 | # |
| 7197 | # printf ("EXPORTS\n"); |
| 7198 | # for (i = 0; i<nexp; i++) |
| 7199 | # { |
| 7200 | # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); |
| 7201 | # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); |
| 7202 | # } |
| 7203 | # |
| 7204 | # return 0; |
| 7205 | # } |
| 7206 | # /* impgen.c ends here */ |
| 7207 | |
| 7208 | EOF |
| 7209 | ;; |
| 7210 | esac |
| 7211 | |
| 7212 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 7213 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 7214 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 7215 | # is reportedly fixed, but why not run on old versions too? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7216 | sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7217 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7218 | mv -f "${ofile}T" "$ofile" || \ |
| 7219 | (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7220 | chmod +x "$ofile" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7221 | fi |
| 7222 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7223 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7224 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7225 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7226 | |
| 7227 | # This can be used to rebuild libtool when needed |
| 7228 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 7229 | |
| 7230 | # Always use our own libtool. |
| 7231 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 7232 | |
| 7233 | # Prevent multiple expansion |
| 7234 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7235 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7236 | # Find a good install program. We prefer a C program (faster), |
| 7237 | # so one script is as good as another. But avoid the broken or |
| 7238 | # incompatible versions: |
| 7239 | # SysV /etc/install, /usr/sbin/install |
| 7240 | # SunOS /usr/etc/install |
| 7241 | # IRIX /sbin/install |
| 7242 | # AIX /bin/install |
| 7243 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 7244 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 7245 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 7246 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 7247 | # ./install, which can be erroneously created by make from ./install.sh. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7248 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 7249 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7250 | if test -z "$INSTALL"; then |
| 7251 | if test "${ac_cv_path_install+set}" = set; then |
| 7252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7253 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7255 | for as_dir in $PATH |
| 7256 | do |
| 7257 | IFS=$as_save_IFS |
| 7258 | test -z "$as_dir" && as_dir=. |
| 7259 | # Account for people who put trailing slashes in PATH elements. |
| 7260 | case $as_dir/ in |
| 7261 | ./ | .// | /cC/* | \ |
| 7262 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 7263 | /usr/ucb/* ) ;; |
| 7264 | *) |
| 7265 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7266 | # Don't use installbsd from OSF since it installs stuff as root |
| 7267 | # by default. |
| 7268 | for ac_prog in ginstall scoinst install; do |
| 7269 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7270 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 7271 | if test $ac_prog = install && |
| 7272 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7273 | # AIX install. It has an incompatible calling convention. |
| 7274 | : |
| 7275 | elif test $ac_prog = install && |
| 7276 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7277 | # program-specific install script used by HP pwplus--don't use. |
| 7278 | : |
| 7279 | else |
| 7280 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7281 | break 3 |
| 7282 | fi |
| 7283 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7284 | done |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7285 | done |
| 7286 | ;; |
| 7287 | esac |
| 7288 | done |
| 7289 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7290 | |
| 7291 | fi |
| 7292 | if test "${ac_cv_path_install+set}" = set; then |
| 7293 | INSTALL=$ac_cv_path_install |
| 7294 | else |
| 7295 | # As a last resort, use the slow shell script. We don't cache a |
| 7296 | # path for INSTALL within a source directory, because that will |
| 7297 | # break other packages using the cache if that directory is |
| 7298 | # removed, or if the path is relative. |
| 7299 | INSTALL=$ac_install_sh |
| 7300 | fi |
| 7301 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7302 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7303 | echo "${ECHO_T}$INSTALL" >&6 |
| 7304 | |
| 7305 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7306 | # It thinks the first close brace ends the variable substitution. |
| 7307 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7308 | |
| 7309 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7310 | |
| 7311 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7312 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7313 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7314 | ######### |
| 7315 | # Set up an appropriate program prefix |
| 7316 | # |
| 7317 | if test "$program_prefix" = "NONE"; then |
| 7318 | program_prefix="" |
| 7319 | fi |
| 7320 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7321 | |
| 7322 | if test -f VERSION; then |
| 7323 | VERSION=`cat VERSION` |
| 7324 | echo "Version set to $VERSION" |
| 7325 | fi |
| 7326 | |
| 7327 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7328 | ######### |
| 7329 | # Check to see if the --with-hints=FILE option is used. If there is none, |
| 7330 | # then check for a files named "$host.hints" and ../$hosts.hints where |
| 7331 | # $host is the hostname of the build system. If still no hints are |
| 7332 | # found, try looking in $system.hints and ../$system.hints where |
| 7333 | # $system is the result of uname -s. |
| 7334 | # |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7335 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7336 | # Check whether --with-hints or --without-hints was given. |
| 7337 | if test "${with_hints+set}" = set; then |
| 7338 | withval="$with_hints" |
| 7339 | hints=$withval |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7340 | fi; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7341 | if test "$hints" = ""; then |
| 7342 | host=`hostname | sed 's/\..*//'` |
| 7343 | if test -r $host.hints; then |
| 7344 | hints=$host.hints |
| 7345 | else |
| 7346 | if test -r ../$host.hints; then |
| 7347 | hints=../$host.hints |
| 7348 | fi |
| 7349 | fi |
| 7350 | fi |
| 7351 | if test "$hints" = ""; then |
| 7352 | sys=`uname -s` |
| 7353 | if test -r $sys.hints; then |
| 7354 | hints=$sys.hints |
| 7355 | else |
| 7356 | if test -r ../$sys.hints; then |
| 7357 | hints=../$sys.hints |
| 7358 | fi |
| 7359 | fi |
| 7360 | fi |
| 7361 | if test "$hints" != ""; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7362 | echo "$as_me:$LINENO: result: reading hints from $hints" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7363 | echo "${ECHO_T}reading hints from $hints" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7364 | . $hints |
| 7365 | fi |
| 7366 | |
| 7367 | ######### |
| 7368 | # Locate a compiler for the build machine. This compiler should |
| 7369 | # generate command-line programs that run on the build machine. |
| 7370 | # |
| 7371 | default_build_cflags="-g" |
| 7372 | if test "$config_BUILD_CC" = ""; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7373 | ac_ext=c |
| 7374 | ac_cpp='$CPP $CPPFLAGS' |
| 7375 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7376 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7377 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7378 | if test -n "$ac_tool_prefix"; then |
| 7379 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 7380 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7381 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7382 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7383 | if test "${ac_cv_prog_CC+set}" = set; then |
| 7384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7385 | else |
| 7386 | if test -n "$CC"; then |
| 7387 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 7388 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7390 | for as_dir in $PATH |
| 7391 | do |
| 7392 | IFS=$as_save_IFS |
| 7393 | test -z "$as_dir" && as_dir=. |
| 7394 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7395 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7396 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 7397 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7398 | break 2 |
| 7399 | fi |
| 7400 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7401 | done |
| 7402 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7403 | fi |
| 7404 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7405 | CC=$ac_cv_prog_CC |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7406 | if test -n "$CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7407 | echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7408 | echo "${ECHO_T}$CC" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7409 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7410 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7411 | echo "${ECHO_T}no" >&6 |
| 7412 | fi |
| 7413 | |
| 7414 | fi |
| 7415 | if test -z "$ac_cv_prog_CC"; then |
| 7416 | ac_ct_CC=$CC |
| 7417 | # Extract the first word of "gcc", so it can be a program name with args. |
| 7418 | set dummy gcc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7419 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7420 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7421 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 7422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7423 | else |
| 7424 | if test -n "$ac_ct_CC"; then |
| 7425 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 7426 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7427 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7428 | for as_dir in $PATH |
| 7429 | do |
| 7430 | IFS=$as_save_IFS |
| 7431 | test -z "$as_dir" && as_dir=. |
| 7432 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7433 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7434 | ac_cv_prog_ac_ct_CC="gcc" |
| 7435 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7436 | break 2 |
| 7437 | fi |
| 7438 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7439 | done |
| 7440 | |
| 7441 | fi |
| 7442 | fi |
| 7443 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 7444 | if test -n "$ac_ct_CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7445 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7446 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 7447 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7448 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7449 | echo "${ECHO_T}no" >&6 |
| 7450 | fi |
| 7451 | |
| 7452 | CC=$ac_ct_CC |
| 7453 | else |
| 7454 | CC="$ac_cv_prog_CC" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7455 | fi |
| 7456 | |
| 7457 | if test -z "$CC"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7458 | if test -n "$ac_tool_prefix"; then |
| 7459 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 7460 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7461 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7462 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7463 | if test "${ac_cv_prog_CC+set}" = set; then |
| 7464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7465 | else |
| 7466 | if test -n "$CC"; then |
| 7467 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 7468 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7469 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7470 | for as_dir in $PATH |
| 7471 | do |
| 7472 | IFS=$as_save_IFS |
| 7473 | test -z "$as_dir" && as_dir=. |
| 7474 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7475 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7476 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 7477 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7478 | break 2 |
| 7479 | fi |
| 7480 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7481 | done |
| 7482 | |
| 7483 | fi |
| 7484 | fi |
| 7485 | CC=$ac_cv_prog_CC |
| 7486 | if test -n "$CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7487 | echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7488 | echo "${ECHO_T}$CC" >&6 |
| 7489 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7490 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7491 | echo "${ECHO_T}no" >&6 |
| 7492 | fi |
| 7493 | |
| 7494 | fi |
| 7495 | if test -z "$ac_cv_prog_CC"; then |
| 7496 | ac_ct_CC=$CC |
| 7497 | # Extract the first word of "cc", so it can be a program name with args. |
| 7498 | set dummy cc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7499 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7500 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7501 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 7502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7503 | else |
| 7504 | if test -n "$ac_ct_CC"; then |
| 7505 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 7506 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7508 | for as_dir in $PATH |
| 7509 | do |
| 7510 | IFS=$as_save_IFS |
| 7511 | test -z "$as_dir" && as_dir=. |
| 7512 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7513 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7514 | ac_cv_prog_ac_ct_CC="cc" |
| 7515 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7516 | break 2 |
| 7517 | fi |
| 7518 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7519 | done |
| 7520 | |
| 7521 | fi |
| 7522 | fi |
| 7523 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 7524 | if test -n "$ac_ct_CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7525 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7526 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 7527 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7528 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7529 | echo "${ECHO_T}no" >&6 |
| 7530 | fi |
| 7531 | |
| 7532 | CC=$ac_ct_CC |
| 7533 | else |
| 7534 | CC="$ac_cv_prog_CC" |
| 7535 | fi |
| 7536 | |
| 7537 | fi |
| 7538 | if test -z "$CC"; then |
| 7539 | # Extract the first word of "cc", so it can be a program name with args. |
| 7540 | set dummy cc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7541 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7542 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7543 | if test "${ac_cv_prog_CC+set}" = set; then |
| 7544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7545 | else |
| 7546 | if test -n "$CC"; then |
| 7547 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 7548 | else |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7549 | ac_prog_rejected=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7551 | for as_dir in $PATH |
| 7552 | do |
| 7553 | IFS=$as_save_IFS |
| 7554 | test -z "$as_dir" && as_dir=. |
| 7555 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7556 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7557 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 7558 | ac_prog_rejected=yes |
| 7559 | continue |
| 7560 | fi |
| 7561 | ac_cv_prog_CC="cc" |
| 7562 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7563 | break 2 |
| 7564 | fi |
| 7565 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7566 | done |
| 7567 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7568 | if test $ac_prog_rejected = yes; then |
| 7569 | # We found a bogon in the path, so make sure we never use it. |
| 7570 | set dummy $ac_cv_prog_CC |
| 7571 | shift |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7572 | if test $# != 0; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7573 | # We chose a different compiler from the bogus one. |
| 7574 | # However, it has the same basename, so the bogon will be chosen |
| 7575 | # first if we set CC to just the basename; use the full file name. |
| 7576 | shift |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7577 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7578 | fi |
| 7579 | fi |
| 7580 | fi |
| 7581 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7582 | CC=$ac_cv_prog_CC |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7583 | if test -n "$CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7584 | echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7585 | echo "${ECHO_T}$CC" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7586 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7587 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7588 | echo "${ECHO_T}no" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7589 | fi |
| 7590 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7591 | fi |
| 7592 | if test -z "$CC"; then |
| 7593 | if test -n "$ac_tool_prefix"; then |
| 7594 | for ac_prog in cl |
| 7595 | do |
| 7596 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 7597 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7598 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7599 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7600 | if test "${ac_cv_prog_CC+set}" = set; then |
| 7601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7602 | else |
| 7603 | if test -n "$CC"; then |
| 7604 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 7605 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7607 | for as_dir in $PATH |
| 7608 | do |
| 7609 | IFS=$as_save_IFS |
| 7610 | test -z "$as_dir" && as_dir=. |
| 7611 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7612 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7613 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 7614 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7615 | break 2 |
| 7616 | fi |
| 7617 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7618 | done |
| 7619 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7620 | fi |
| 7621 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7622 | CC=$ac_cv_prog_CC |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7623 | if test -n "$CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7624 | echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7625 | echo "${ECHO_T}$CC" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7626 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7627 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7628 | echo "${ECHO_T}no" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7629 | fi |
| 7630 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7631 | test -n "$CC" && break |
| 7632 | done |
| 7633 | fi |
| 7634 | if test -z "$CC"; then |
| 7635 | ac_ct_CC=$CC |
| 7636 | for ac_prog in cl |
| 7637 | do |
| 7638 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7639 | set dummy $ac_prog; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7640 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7641 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7642 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 7643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7644 | else |
| 7645 | if test -n "$ac_ct_CC"; then |
| 7646 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 7647 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7649 | for as_dir in $PATH |
| 7650 | do |
| 7651 | IFS=$as_save_IFS |
| 7652 | test -z "$as_dir" && as_dir=. |
| 7653 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7654 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7655 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 7656 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7657 | break 2 |
| 7658 | fi |
| 7659 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7660 | done |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7661 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7662 | fi |
| 7663 | fi |
| 7664 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 7665 | if test -n "$ac_ct_CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7666 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7667 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 7668 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7669 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7670 | echo "${ECHO_T}no" >&6 |
| 7671 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7672 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7673 | test -n "$ac_ct_CC" && break |
| 7674 | done |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7675 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7676 | CC=$ac_ct_CC |
| 7677 | fi |
| 7678 | |
| 7679 | fi |
| 7680 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7681 | |
| 7682 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 7683 | See \`config.log' for more details." >&5 |
| 7684 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 7685 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7686 | { (exit 1); exit 1; }; } |
| 7687 | |
| 7688 | # Provide some information about the compiler. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7689 | echo "$as_me:$LINENO:" \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7690 | "checking for C compiler version" >&5 |
| 7691 | ac_compiler=`set X $ac_compile; echo $2` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7692 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7693 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 7694 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7696 | (exit $ac_status); } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7697 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7698 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 7699 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7701 | (exit $ac_status); } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7702 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7703 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 7704 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7706 | (exit $ac_status); } |
| 7707 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7708 | 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] | 7709 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 7710 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 7711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7712 | else |
| 7713 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7714 | #line $LINENO "configure" |
| 7715 | /* confdefs.h. */ |
| 7716 | _ACEOF |
| 7717 | cat confdefs.h >>conftest.$ac_ext |
| 7718 | cat >>conftest.$ac_ext <<_ACEOF |
| 7719 | /* end confdefs.h. */ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7720 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7721 | int |
| 7722 | main () |
| 7723 | { |
| 7724 | #ifndef __GNUC__ |
| 7725 | choke me |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7726 | #endif |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7727 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7728 | ; |
| 7729 | return 0; |
| 7730 | } |
| 7731 | _ACEOF |
| 7732 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7733 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7734 | (eval $ac_compile) 2>&5 |
| 7735 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7737 | (exit $ac_status); } && |
| 7738 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7740 | (eval $ac_try) 2>&5 |
| 7741 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7743 | (exit $ac_status); }; }; then |
| 7744 | ac_compiler_gnu=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7745 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7746 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7747 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7748 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7749 | ac_compiler_gnu=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7750 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7751 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7752 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7753 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7754 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7755 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7756 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 7757 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 7758 | ac_test_CFLAGS=${CFLAGS+set} |
| 7759 | ac_save_CFLAGS=$CFLAGS |
| 7760 | CFLAGS="-g" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7761 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7762 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 7763 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 7764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7765 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7766 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7767 | #line $LINENO "configure" |
| 7768 | /* confdefs.h. */ |
| 7769 | _ACEOF |
| 7770 | cat confdefs.h >>conftest.$ac_ext |
| 7771 | cat >>conftest.$ac_ext <<_ACEOF |
| 7772 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7773 | |
| 7774 | int |
| 7775 | main () |
| 7776 | { |
| 7777 | |
| 7778 | ; |
| 7779 | return 0; |
| 7780 | } |
| 7781 | _ACEOF |
| 7782 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7784 | (eval $ac_compile) 2>&5 |
| 7785 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7787 | (exit $ac_status); } && |
| 7788 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7790 | (eval $ac_try) 2>&5 |
| 7791 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7793 | (exit $ac_status); }; }; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7794 | ac_cv_prog_cc_g=yes |
| 7795 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7796 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7797 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7798 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7799 | ac_cv_prog_cc_g=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7800 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7801 | rm -f conftest.$ac_objext conftest.$ac_ext |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7802 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7803 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7804 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7805 | if test "$ac_test_CFLAGS" = set; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7806 | CFLAGS=$ac_save_CFLAGS |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7807 | elif test $ac_cv_prog_cc_g = yes; then |
| 7808 | if test "$GCC" = yes; then |
| 7809 | CFLAGS="-g -O2" |
| 7810 | else |
| 7811 | CFLAGS="-g" |
| 7812 | fi |
| 7813 | else |
| 7814 | if test "$GCC" = yes; then |
| 7815 | CFLAGS="-O2" |
| 7816 | else |
| 7817 | CFLAGS= |
| 7818 | fi |
| 7819 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7820 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 7821 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 7822 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 7823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7824 | else |
| 7825 | ac_cv_prog_cc_stdc=no |
| 7826 | ac_save_CC=$CC |
| 7827 | cat >conftest.$ac_ext <<_ACEOF |
| 7828 | #line $LINENO "configure" |
| 7829 | /* confdefs.h. */ |
| 7830 | _ACEOF |
| 7831 | cat confdefs.h >>conftest.$ac_ext |
| 7832 | cat >>conftest.$ac_ext <<_ACEOF |
| 7833 | /* end confdefs.h. */ |
| 7834 | #include <stdarg.h> |
| 7835 | #include <stdio.h> |
| 7836 | #include <sys/types.h> |
| 7837 | #include <sys/stat.h> |
| 7838 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 7839 | struct buf { int x; }; |
| 7840 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 7841 | static char *e (p, i) |
| 7842 | char **p; |
| 7843 | int i; |
| 7844 | { |
| 7845 | return p[i]; |
| 7846 | } |
| 7847 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 7848 | { |
| 7849 | char *s; |
| 7850 | va_list v; |
| 7851 | va_start (v,p); |
| 7852 | s = g (p, va_arg (v,int)); |
| 7853 | va_end (v); |
| 7854 | return s; |
| 7855 | } |
| 7856 | int test (int i, double x); |
| 7857 | struct s1 {int (*f) (int a);}; |
| 7858 | struct s2 {int (*f) (double a);}; |
| 7859 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 7860 | int argc; |
| 7861 | char **argv; |
| 7862 | int |
| 7863 | main () |
| 7864 | { |
| 7865 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 7866 | ; |
| 7867 | return 0; |
| 7868 | } |
| 7869 | _ACEOF |
| 7870 | # Don't try gcc -ansi; that turns off useful extensions and |
| 7871 | # breaks some systems' header files. |
| 7872 | # AIX -qlanglvl=ansi |
| 7873 | # Ultrix and OSF/1 -std1 |
| 7874 | # HP-UX 10.20 and later -Ae |
| 7875 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 7876 | # SVR4 -Xc -D__EXTENSIONS__ |
| 7877 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 7878 | do |
| 7879 | CC="$ac_save_CC $ac_arg" |
| 7880 | rm -f conftest.$ac_objext |
| 7881 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7882 | (eval $ac_compile) 2>&5 |
| 7883 | ac_status=$? |
| 7884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7885 | (exit $ac_status); } && |
| 7886 | { ac_try='test -s conftest.$ac_objext' |
| 7887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7888 | (eval $ac_try) 2>&5 |
| 7889 | ac_status=$? |
| 7890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7891 | (exit $ac_status); }; }; then |
| 7892 | ac_cv_prog_cc_stdc=$ac_arg |
| 7893 | break |
| 7894 | else |
| 7895 | echo "$as_me: failed program was:" >&5 |
| 7896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7897 | |
| 7898 | fi |
| 7899 | rm -f conftest.$ac_objext |
| 7900 | done |
| 7901 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 7902 | CC=$ac_save_CC |
| 7903 | |
| 7904 | fi |
| 7905 | |
| 7906 | case "x$ac_cv_prog_cc_stdc" in |
| 7907 | x|xno) |
| 7908 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 7909 | echo "${ECHO_T}none needed" >&6 ;; |
| 7910 | *) |
| 7911 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 7912 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 7913 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 7914 | esac |
| 7915 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7916 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 7917 | # in C++ we need to declare it. In case someone uses the same compiler |
| 7918 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 7919 | # the declaration of exit, since it's the most demanding environment. |
| 7920 | cat >conftest.$ac_ext <<_ACEOF |
| 7921 | #ifndef __cplusplus |
| 7922 | choke me |
| 7923 | #endif |
| 7924 | _ACEOF |
| 7925 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7926 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7927 | (eval $ac_compile) 2>&5 |
| 7928 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7930 | (exit $ac_status); } && |
| 7931 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7933 | (eval $ac_try) 2>&5 |
| 7934 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7936 | (exit $ac_status); }; }; then |
| 7937 | for ac_declaration in \ |
| 7938 | ''\ |
| 7939 | '#include <stdlib.h>' \ |
| 7940 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 7941 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 7942 | 'extern "C" void exit (int) throw ();' \ |
| 7943 | 'extern "C" void exit (int);' \ |
| 7944 | 'void exit (int);' |
| 7945 | do |
| 7946 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7947 | #line $LINENO "configure" |
| 7948 | /* confdefs.h. */ |
| 7949 | _ACEOF |
| 7950 | cat confdefs.h >>conftest.$ac_ext |
| 7951 | cat >>conftest.$ac_ext <<_ACEOF |
| 7952 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7953 | #include <stdlib.h> |
| 7954 | $ac_declaration |
| 7955 | int |
| 7956 | main () |
| 7957 | { |
| 7958 | exit (42); |
| 7959 | ; |
| 7960 | return 0; |
| 7961 | } |
| 7962 | _ACEOF |
| 7963 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7965 | (eval $ac_compile) 2>&5 |
| 7966 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7968 | (exit $ac_status); } && |
| 7969 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7971 | (eval $ac_try) 2>&5 |
| 7972 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7974 | (exit $ac_status); }; }; then |
| 7975 | : |
| 7976 | else |
| 7977 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7978 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7979 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7980 | continue |
| 7981 | fi |
| 7982 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7983 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7984 | #line $LINENO "configure" |
| 7985 | /* confdefs.h. */ |
| 7986 | _ACEOF |
| 7987 | cat confdefs.h >>conftest.$ac_ext |
| 7988 | cat >>conftest.$ac_ext <<_ACEOF |
| 7989 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7990 | $ac_declaration |
| 7991 | int |
| 7992 | main () |
| 7993 | { |
| 7994 | exit (42); |
| 7995 | ; |
| 7996 | return 0; |
| 7997 | } |
| 7998 | _ACEOF |
| 7999 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8000 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8001 | (eval $ac_compile) 2>&5 |
| 8002 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8004 | (exit $ac_status); } && |
| 8005 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8007 | (eval $ac_try) 2>&5 |
| 8008 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8010 | (exit $ac_status); }; }; then |
| 8011 | break |
| 8012 | else |
| 8013 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8014 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8015 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8016 | fi |
| 8017 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8018 | done |
| 8019 | rm -f conftest* |
| 8020 | if test -n "$ac_declaration"; then |
| 8021 | echo '#ifdef __cplusplus' >>confdefs.h |
| 8022 | echo $ac_declaration >>confdefs.h |
| 8023 | echo '#endif' >>confdefs.h |
| 8024 | fi |
| 8025 | |
| 8026 | else |
| 8027 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8028 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8029 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8030 | fi |
| 8031 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8032 | ac_ext=c |
| 8033 | ac_cpp='$CPP $CPPFLAGS' |
| 8034 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8035 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8036 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8037 | |
| 8038 | if test "$cross_compiling" = "yes"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8039 | { { echo "$as_me:$LINENO: error: unable to find a compiler for building build tools" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8040 | echo "$as_me: error: unable to find a compiler for building build tools" >&2;} |
| 8041 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8042 | fi |
| 8043 | BUILD_CC=$CC |
| 8044 | default_build_cflags=$CFLAGS |
| 8045 | else |
| 8046 | BUILD_CC=$config_BUILD_CC |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8047 | echo "$as_me:$LINENO: checking host compiler" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8048 | echo $ECHO_N "checking host compiler... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8049 | CC=$BUILD_CC |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8050 | echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8051 | echo "${ECHO_T}$BUILD_CC" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8052 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8053 | echo "$as_me:$LINENO: checking switches for the host compiler" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8054 | echo $ECHO_N "checking switches for the host compiler... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8055 | if test "$config_BUILD_CFLAGS" != ""; then |
| 8056 | CFLAGS=$config_BUILD_CFLAGS |
| 8057 | BUILD_CFLAGS=$config_BUILD_CFLAGS |
| 8058 | else |
| 8059 | BUILD_CFLAGS=$default_build_cflags |
| 8060 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8061 | echo "$as_me:$LINENO: result: $BUILD_CFLAGS" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8062 | echo "${ECHO_T}$BUILD_CFLAGS" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8063 | if test "$config_BUILD_LIBS" != ""; then |
| 8064 | BUILD_LIBS=$config_BUILD_LIBS |
| 8065 | fi |
| 8066 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8067 | |
| 8068 | |
| 8069 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8070 | ########## |
| 8071 | # Locate a compiler that converts C code into *.o files that run on |
| 8072 | # the target machine. |
| 8073 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8074 | echo "$as_me:$LINENO: checking target compiler" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8075 | echo $ECHO_N "checking target compiler... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8076 | if test "$config_TARGET_CC" != ""; then |
| 8077 | TARGET_CC=$config_TARGET_CC |
| 8078 | else |
| 8079 | TARGET_CC=$BUILD_CC |
| 8080 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8081 | echo "$as_me:$LINENO: result: $TARGET_CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8082 | echo "${ECHO_T}$TARGET_CC" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8083 | echo "$as_me:$LINENO: checking switches on the target compiler" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8084 | echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8085 | if test "$config_TARGET_CFLAGS" != ""; then |
| 8086 | TARGET_CFLAGS=$config_TARGET_CFLAGS |
| 8087 | else |
| 8088 | TARGET_CFLAGS=$BUILD_CFLAGS |
| 8089 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8090 | echo "$as_me:$LINENO: result: $TARGET_CFLAGS" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8091 | echo "${ECHO_T}$TARGET_CFLAGS" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8092 | echo "$as_me:$LINENO: checking target linker" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8093 | echo $ECHO_N "checking target linker... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8094 | if test "$config_TARGET_LINK" = ""; then |
| 8095 | TARGET_LINK=$TARGET_CC |
| 8096 | else |
| 8097 | TARGET_LINK=$config_TARGET_LINK |
| 8098 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8099 | echo "$as_me:$LINENO: result: $TARGET_LINK" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8100 | echo "${ECHO_T}$TARGET_LINK" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8101 | echo "$as_me:$LINENO: checking switches on the target compiler" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8102 | echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8103 | if test "$config_TARGET_TFLAGS" != ""; then |
| 8104 | TARGET_TFLAGS=$config_TARGET_TFLAGS |
| 8105 | else |
| 8106 | TARGET_TFLAGS=$BUILD_CFLAGS |
| 8107 | fi |
| 8108 | if test "$config_TARGET_RANLIB" != ""; then |
| 8109 | TARGET_RANLIB=$config_TARGET_RANLIB |
| 8110 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8111 | if test -n "$ac_tool_prefix"; then |
| 8112 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 8113 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8114 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8115 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8116 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 8117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8118 | else |
| 8119 | if test -n "$RANLIB"; then |
| 8120 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 8121 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8123 | for as_dir in $PATH |
| 8124 | do |
| 8125 | IFS=$as_save_IFS |
| 8126 | test -z "$as_dir" && as_dir=. |
| 8127 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8128 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8129 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 8130 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8131 | break 2 |
| 8132 | fi |
| 8133 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8134 | done |
| 8135 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8136 | fi |
| 8137 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8138 | RANLIB=$ac_cv_prog_RANLIB |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8139 | if test -n "$RANLIB"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8140 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8141 | echo "${ECHO_T}$RANLIB" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8142 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8143 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8144 | echo "${ECHO_T}no" >&6 |
| 8145 | fi |
| 8146 | |
| 8147 | fi |
| 8148 | if test -z "$ac_cv_prog_RANLIB"; then |
| 8149 | ac_ct_RANLIB=$RANLIB |
| 8150 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 8151 | set dummy ranlib; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8152 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8153 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8154 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 8155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8156 | else |
| 8157 | if test -n "$ac_ct_RANLIB"; then |
| 8158 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 8159 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8161 | for as_dir in $PATH |
| 8162 | do |
| 8163 | IFS=$as_save_IFS |
| 8164 | test -z "$as_dir" && as_dir=. |
| 8165 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8166 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8167 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 8168 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8169 | break 2 |
| 8170 | fi |
| 8171 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8172 | done |
| 8173 | |
| 8174 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 8175 | fi |
| 8176 | fi |
| 8177 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 8178 | if test -n "$ac_ct_RANLIB"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8179 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8180 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 8181 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8182 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8183 | echo "${ECHO_T}no" >&6 |
| 8184 | fi |
| 8185 | |
| 8186 | RANLIB=$ac_ct_RANLIB |
| 8187 | else |
| 8188 | RANLIB="$ac_cv_prog_RANLIB" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8189 | fi |
| 8190 | |
| 8191 | TARGET_RANLIB=$RANLIB |
| 8192 | fi |
| 8193 | if test "$config_TARGET_AR" != ""; then |
drh | 82ad383 | 2000-07-31 13:38:24 +0000 | [diff] [blame] | 8194 | TARGET_AR=$config_TARGET_AR |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8195 | else |
| 8196 | TARGET_AR='ar cr' |
| 8197 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8198 | echo "$as_me:$LINENO: result: $TARGET_TFLAGS" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8199 | echo "${ECHO_T}$TARGET_TFLAGS" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8200 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8201 | |
| 8202 | |
| 8203 | |
| 8204 | |
| 8205 | |
| 8206 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8207 | # Set the $cross variable if we are cross-compiling. Make |
| 8208 | # it 0 if we are not. |
| 8209 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8210 | 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] | 8211 | 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] | 8212 | if test "$BUILD_CC" = "$TARGET_CC"; then |
| 8213 | cross=0 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8214 | echo "$as_me:$LINENO: result: yes" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8215 | echo "${ECHO_T}yes" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8216 | else |
| 8217 | cross=1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8218 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8219 | echo "${ECHO_T}no" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8220 | fi |
| 8221 | |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 8222 | ########## |
| 8223 | # Are we using UTF-8 or iso8859 encodings? |
| 8224 | # |
| 8225 | # Check whether --enable-utf8 or --disable-utf8 was given. |
| 8226 | if test "${enable_utf8+set}" = set; then |
| 8227 | enableval="$enable_utf8" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8228 | |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 8229 | else |
| 8230 | enable_utf8=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8231 | fi; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8232 | echo "$as_me:$LINENO: checking character encoding" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8233 | echo $ECHO_N "checking character encoding... $ECHO_C" >&6 |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 8234 | if test "$enable_utf8" = "no"; then |
| 8235 | ENCODING=ISO8859 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8236 | echo "$as_me:$LINENO: result: iso8859" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8237 | echo "${ECHO_T}iso8859" >&6 |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 8238 | else |
| 8239 | ENCODING=UTF8 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8240 | echo "$as_me:$LINENO: result: UTF-8" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8241 | echo "${ECHO_T}UTF-8" >&6 |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 8242 | fi |
| 8243 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8244 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8245 | ########### |
| 8246 | # Lots of things are different if we are compiling for Windows using |
| 8247 | # the CYGWIN environment. So check for that special case and handle |
| 8248 | # things accordingly. |
| 8249 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8250 | echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8251 | echo $ECHO_N "checking if executables have the .exe suffix... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8252 | if test "$config_BUILD_EXEEXT" = ".exe"; then |
| 8253 | CYGWIN=yes |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8254 | echo "$as_me:$LINENO: result: yes" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8255 | echo "${ECHO_T}yes" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8256 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8257 | echo "$as_me:$LINENO: result: unknown" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8258 | echo "${ECHO_T}unknown" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8259 | fi |
| 8260 | if test "$CYGWIN" != "yes"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8261 | |
| 8262 | case $host_os in |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8263 | *cygwin* ) CYGWIN=yes;; |
| 8264 | * ) CYGWIN=no;; |
| 8265 | esac |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8266 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8267 | fi |
| 8268 | if test "$CYGWIN" = "yes"; then |
| 8269 | BUILD_EXEEXT=.exe |
| 8270 | else |
| 8271 | BUILD_EXEEXT="" |
| 8272 | fi |
| 8273 | if test "$cross" = "0"; then |
| 8274 | TARGET_EXEEXT=$BUILD_EXEEXT |
| 8275 | else |
| 8276 | TARGET_EXEEXT=$config_TARGET_EXEEXT |
| 8277 | fi |
| 8278 | if test "$TARGET_EXEEXT" = ".exe"; then |
| 8279 | OS_UNIX=0 |
| 8280 | OS_WIN=1 |
| 8281 | tclsubdir=win |
| 8282 | else |
| 8283 | OS_UNIX=1 |
| 8284 | OS_WIN=0 |
| 8285 | tclsubdir=unix |
| 8286 | fi |
| 8287 | TARGET_CFLAGS="$TARGET_CFLAGS -DOS_UNIX=$OS_UNIX -DOS_WIN=$OS_WIN" |
| 8288 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8289 | |
| 8290 | |
| 8291 | |
| 8292 | |
| 8293 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8294 | ########## |
| 8295 | # Extract generic linker options from the environment. |
| 8296 | # |
| 8297 | if test "$config_TARGET_LIBS" != ""; then |
| 8298 | TARGET_LIBS=$config_TARGET_LIBS |
| 8299 | else |
| 8300 | TARGET_LIBS="" |
| 8301 | fi |
| 8302 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8303 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8304 | ########## |
| 8305 | # Figure out what C libraries are required to compile Tcl programs. |
| 8306 | # |
| 8307 | if test "$config_TARGET_TCL_LIBS" != ""; then |
| 8308 | TARGET_TCL_LIBS="$config_TARGET_TCL_LIBS" |
| 8309 | else |
| 8310 | if test "$with_tcl" != ""; then |
| 8311 | extra=`echo $with_tcl/$tclsubdir/libtcl8*.a` |
| 8312 | fi |
| 8313 | CC=$TARGET_CC |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8314 | echo "$as_me:$LINENO: checking for sin" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8315 | echo $ECHO_N "checking for sin... $ECHO_C" >&6 |
| 8316 | if test "${ac_cv_func_sin+set}" = set; then |
| 8317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8318 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8319 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8320 | #line $LINENO "configure" |
| 8321 | /* confdefs.h. */ |
| 8322 | _ACEOF |
| 8323 | cat confdefs.h >>conftest.$ac_ext |
| 8324 | cat >>conftest.$ac_ext <<_ACEOF |
| 8325 | /* end confdefs.h. */ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8326 | /* System header to define __stub macros and hopefully few prototypes, |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8327 | which can conflict with char sin (); below. |
| 8328 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8329 | <limits.h> exists even on freestanding compilers. */ |
| 8330 | #ifdef __STDC__ |
| 8331 | # include <limits.h> |
| 8332 | #else |
| 8333 | # include <assert.h> |
| 8334 | #endif |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8335 | /* Override any gcc2 internal prototype to avoid an error. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8336 | #ifdef __cplusplus |
| 8337 | extern "C" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8338 | { |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8339 | #endif |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8340 | /* We use char because int might match the return type of a gcc2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8341 | builtin and then its argument prototype would still apply. */ |
| 8342 | char sin (); |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8343 | /* The GNU C library defines this for functions which it implements |
| 8344 | to always fail with ENOSYS. Some functions are actually named |
| 8345 | something starting with __ and the normal name is an alias. */ |
| 8346 | #if defined (__stub_sin) || defined (__stub___sin) |
| 8347 | choke me |
| 8348 | #else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8349 | char (*f) () = sin; |
| 8350 | #endif |
| 8351 | #ifdef __cplusplus |
| 8352 | } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8353 | #endif |
| 8354 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8355 | int |
| 8356 | main () |
| 8357 | { |
| 8358 | return f != sin; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8359 | ; |
| 8360 | return 0; |
| 8361 | } |
| 8362 | _ACEOF |
| 8363 | rm -f conftest.$ac_objext conftest$ac_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8364 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8365 | (eval $ac_link) 2>&5 |
| 8366 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8368 | (exit $ac_status); } && |
| 8369 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8371 | (eval $ac_try) 2>&5 |
| 8372 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8374 | (exit $ac_status); }; }; then |
| 8375 | ac_cv_func_sin=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8376 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8377 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8378 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8379 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8380 | ac_cv_func_sin=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8381 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8382 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8383 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8384 | echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8385 | echo "${ECHO_T}$ac_cv_func_sin" >&6 |
| 8386 | if test $ac_cv_func_sin = yes; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8387 | LIBS="" |
| 8388 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8389 | LIBS="-lm" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8390 | fi |
| 8391 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8392 | |
| 8393 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8394 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 8395 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 8396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8397 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8398 | ac_check_lib_save_LIBS=$LIBS |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8399 | LIBS="-ldl $LIBS" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8400 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8401 | #line $LINENO "configure" |
| 8402 | /* confdefs.h. */ |
| 8403 | _ACEOF |
| 8404 | cat confdefs.h >>conftest.$ac_ext |
| 8405 | cat >>conftest.$ac_ext <<_ACEOF |
| 8406 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8407 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8408 | /* Override any gcc2 internal prototype to avoid an error. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8409 | #ifdef __cplusplus |
| 8410 | extern "C" |
| 8411 | #endif |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8412 | /* We use char because int might match the return type of a gcc2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8413 | builtin and then its argument prototype would still apply. */ |
| 8414 | char dlopen (); |
| 8415 | int |
| 8416 | main () |
| 8417 | { |
| 8418 | dlopen (); |
| 8419 | ; |
| 8420 | return 0; |
| 8421 | } |
| 8422 | _ACEOF |
| 8423 | rm -f conftest.$ac_objext conftest$ac_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8424 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8425 | (eval $ac_link) 2>&5 |
| 8426 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8428 | (exit $ac_status); } && |
| 8429 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8431 | (eval $ac_try) 2>&5 |
| 8432 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8434 | (exit $ac_status); }; }; then |
| 8435 | ac_cv_lib_dl_dlopen=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8436 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8437 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8439 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8440 | ac_cv_lib_dl_dlopen=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8441 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8442 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8443 | LIBS=$ac_check_lib_save_LIBS |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8444 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8445 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8446 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 8447 | if test $ac_cv_lib_dl_dlopen = yes; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8448 | cat >>confdefs.h <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8449 | #define HAVE_LIBDL 1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8450 | _ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8451 | |
| 8452 | LIBS="-ldl $LIBS" |
| 8453 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8454 | fi |
| 8455 | |
| 8456 | otherlibs=$LIBS |
| 8457 | if test "$extra" != ""; then |
| 8458 | LIBS=$extra |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8459 | else |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8460 | LIBS="" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8461 | echo "$as_me:$LINENO: checking for library containing Tcl_Init" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8462 | echo $ECHO_N "checking for library containing Tcl_Init... $ECHO_C" >&6 |
| 8463 | if test "${ac_cv_search_Tcl_Init+set}" = set; then |
| 8464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8465 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8466 | ac_func_search_save_LIBS=$LIBS |
| 8467 | ac_cv_search_Tcl_Init=no |
| 8468 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8469 | #line $LINENO "configure" |
| 8470 | /* confdefs.h. */ |
| 8471 | _ACEOF |
| 8472 | cat confdefs.h >>conftest.$ac_ext |
| 8473 | cat >>conftest.$ac_ext <<_ACEOF |
| 8474 | /* end confdefs.h. */ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8475 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8476 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8477 | #ifdef __cplusplus |
| 8478 | extern "C" |
| 8479 | #endif |
| 8480 | /* We use char because int might match the return type of a gcc2 |
| 8481 | builtin and then its argument prototype would still apply. */ |
| 8482 | char Tcl_Init (); |
| 8483 | int |
| 8484 | main () |
| 8485 | { |
| 8486 | Tcl_Init (); |
| 8487 | ; |
| 8488 | return 0; |
| 8489 | } |
| 8490 | _ACEOF |
| 8491 | rm -f conftest.$ac_objext conftest$ac_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8492 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8493 | (eval $ac_link) 2>&5 |
| 8494 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8496 | (exit $ac_status); } && |
| 8497 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8499 | (eval $ac_try) 2>&5 |
| 8500 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8502 | (exit $ac_status); }; }; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8503 | ac_cv_search_Tcl_Init="none required" |
| 8504 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8505 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8506 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8507 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8508 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8509 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8510 | if test "$ac_cv_search_Tcl_Init" = no; then |
| 8511 | for ac_lib in tcl8.4 tcl8.3 tcl8.2 tcl8.1 tcl8.0 tcl80 tcl; do |
| 8512 | LIBS="-l$ac_lib $otherlibs $ac_func_search_save_LIBS" |
| 8513 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8514 | #line $LINENO "configure" |
| 8515 | /* confdefs.h. */ |
| 8516 | _ACEOF |
| 8517 | cat confdefs.h >>conftest.$ac_ext |
| 8518 | cat >>conftest.$ac_ext <<_ACEOF |
| 8519 | /* end confdefs.h. */ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8520 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8521 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8522 | #ifdef __cplusplus |
| 8523 | extern "C" |
| 8524 | #endif |
| 8525 | /* We use char because int might match the return type of a gcc2 |
| 8526 | builtin and then its argument prototype would still apply. */ |
| 8527 | char Tcl_Init (); |
| 8528 | int |
| 8529 | main () |
| 8530 | { |
| 8531 | Tcl_Init (); |
| 8532 | ; |
| 8533 | return 0; |
| 8534 | } |
| 8535 | _ACEOF |
| 8536 | rm -f conftest.$ac_objext conftest$ac_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8537 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8538 | (eval $ac_link) 2>&5 |
| 8539 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8541 | (exit $ac_status); } && |
| 8542 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8544 | (eval $ac_try) 2>&5 |
| 8545 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8547 | (exit $ac_status); }; }; then |
| 8548 | ac_cv_search_Tcl_Init="-l$ac_lib" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8549 | break |
| 8550 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8551 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8552 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8553 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8554 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8555 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8556 | done |
| 8557 | fi |
| 8558 | LIBS=$ac_func_search_save_LIBS |
| 8559 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8560 | echo "$as_me:$LINENO: result: $ac_cv_search_Tcl_Init" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8561 | echo "${ECHO_T}$ac_cv_search_Tcl_Init" >&6 |
| 8562 | if test "$ac_cv_search_Tcl_Init" != no; then |
| 8563 | test "$ac_cv_search_Tcl_Init" = "none required" || LIBS="$ac_cv_search_Tcl_Init $LIBS" |
| 8564 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8565 | fi |
| 8566 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8567 | fi |
| 8568 | TARGET_TCL_LIBS="$LIBS $otherlibs" |
| 8569 | fi |
| 8570 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8571 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8572 | ########## |
| 8573 | # Figure out where to get the TCL header files. |
| 8574 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8575 | echo "$as_me:$LINENO: checking TCL header files" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8576 | echo $ECHO_N "checking TCL header files... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8577 | found=no |
| 8578 | if test "$config_TARGET_TCL_INC" != ""; then |
| 8579 | TARGET_TCL_INC=$config_TARGET_TCL_INC |
| 8580 | found=yes |
| 8581 | else |
| 8582 | if test "$with_tcl" != ""; then |
| 8583 | TARGET_TCL_INC="-I$with_tcl/generic -I$with_tcl/$tclsubdir" |
| 8584 | found=yes |
| 8585 | else |
| 8586 | TARGET_TCL_INC="" |
| 8587 | found=no |
| 8588 | fi |
| 8589 | fi |
| 8590 | if test "$found" = "yes"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8591 | echo "$as_me:$LINENO: result: $TARGET_TCL_INC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8592 | echo "${ECHO_T}$TARGET_TCL_INC" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8593 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8594 | echo "$as_me:$LINENO: result: not specified: still searching..." >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8595 | echo "${ECHO_T}not specified: still searching..." >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8596 | if test "${ac_cv_header_tcl_h+set}" = set; then |
| 8597 | echo "$as_me:$LINENO: checking for tcl.h" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8598 | echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6 |
| 8599 | if test "${ac_cv_header_tcl_h+set}" = set; then |
| 8600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8601 | fi |
| 8602 | echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5 |
| 8603 | echo "${ECHO_T}$ac_cv_header_tcl_h" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8604 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8605 | # Is the header compilable? |
| 8606 | echo "$as_me:$LINENO: checking tcl.h usability" >&5 |
| 8607 | echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6 |
| 8608 | cat >conftest.$ac_ext <<_ACEOF |
| 8609 | #line $LINENO "configure" |
| 8610 | /* confdefs.h. */ |
| 8611 | _ACEOF |
| 8612 | cat confdefs.h >>conftest.$ac_ext |
| 8613 | cat >>conftest.$ac_ext <<_ACEOF |
| 8614 | /* end confdefs.h. */ |
| 8615 | $ac_includes_default |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8616 | #include <tcl.h> |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8617 | _ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8618 | rm -f conftest.$ac_objext |
| 8619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8620 | (eval $ac_compile) 2>&5 |
| 8621 | ac_status=$? |
| 8622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8623 | (exit $ac_status); } && |
| 8624 | { ac_try='test -s conftest.$ac_objext' |
| 8625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8626 | (eval $ac_try) 2>&5 |
| 8627 | ac_status=$? |
| 8628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8629 | (exit $ac_status); }; }; then |
| 8630 | ac_header_compiler=yes |
| 8631 | else |
| 8632 | echo "$as_me: failed program was:" >&5 |
| 8633 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8634 | |
| 8635 | ac_header_compiler=no |
| 8636 | fi |
| 8637 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8638 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8639 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8640 | |
| 8641 | # Is the header present? |
| 8642 | echo "$as_me:$LINENO: checking tcl.h presence" >&5 |
| 8643 | echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6 |
| 8644 | cat >conftest.$ac_ext <<_ACEOF |
| 8645 | #line $LINENO "configure" |
| 8646 | /* confdefs.h. */ |
| 8647 | _ACEOF |
| 8648 | cat confdefs.h >>conftest.$ac_ext |
| 8649 | cat >>conftest.$ac_ext <<_ACEOF |
| 8650 | /* end confdefs.h. */ |
| 8651 | #include <tcl.h> |
| 8652 | _ACEOF |
| 8653 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8654 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8655 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8656 | grep -v '^ *+' conftest.er1 >conftest.err |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8657 | rm -f conftest.er1 |
| 8658 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8660 | (exit $ac_status); } >/dev/null; then |
| 8661 | if test -s conftest.err; then |
| 8662 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8663 | else |
| 8664 | ac_cpp_err= |
| 8665 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8666 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8667 | ac_cpp_err=yes |
| 8668 | fi |
| 8669 | if test -z "$ac_cpp_err"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8670 | ac_header_preproc=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8671 | else |
| 8672 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8674 | |
| 8675 | ac_header_preproc=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8676 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8677 | rm -f conftest.err conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8678 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8679 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8680 | |
| 8681 | # So? What about this header? |
| 8682 | case $ac_header_compiler:$ac_header_preproc in |
| 8683 | yes:no ) |
| 8684 | { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8685 | echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8686 | { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5 |
| 8687 | echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;} |
| 8688 | ( |
| 8689 | cat <<\_ASBOX |
| 8690 | ## ------------------------------------ ## |
| 8691 | ## Report this to bug-autoconf@gnu.org. ## |
| 8692 | ## ------------------------------------ ## |
| 8693 | _ASBOX |
| 8694 | ) | |
| 8695 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8696 | ;; |
| 8697 | no:yes ) |
| 8698 | { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5 |
| 8699 | echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;} |
| 8700 | { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5 |
| 8701 | echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;} |
| 8702 | { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5 |
| 8703 | echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;} |
| 8704 | ( |
| 8705 | cat <<\_ASBOX |
| 8706 | ## ------------------------------------ ## |
| 8707 | ## Report this to bug-autoconf@gnu.org. ## |
| 8708 | ## ------------------------------------ ## |
| 8709 | _ASBOX |
| 8710 | ) | |
| 8711 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8712 | ;; |
| 8713 | esac |
| 8714 | echo "$as_me:$LINENO: checking for tcl.h" >&5 |
| 8715 | echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6 |
| 8716 | if test "${ac_cv_header_tcl_h+set}" = set; then |
| 8717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8718 | else |
| 8719 | ac_cv_header_tcl_h=$ac_header_preproc |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8720 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8721 | echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8722 | echo "${ECHO_T}$ac_cv_header_tcl_h" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8723 | |
| 8724 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8725 | if test $ac_cv_header_tcl_h = yes; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8726 | found=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8727 | fi |
| 8728 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8729 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8730 | fi |
| 8731 | if test "$found" = "no"; then |
drh | fdc99e9 | 2000-09-29 15:15:51 +0000 | [diff] [blame] | 8732 | 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] | 8733 | 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] | 8734 | echo "$as_me:$LINENO: checking for $dir/include/tcl.h" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8735 | echo $ECHO_N "checking for $dir/include/tcl.h... $ECHO_C" >&6 |
| 8736 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
| 8737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8738 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8739 | test "$cross_compiling" = yes && |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8740 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8741 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
| 8742 | { (exit 1); exit 1; }; } |
| 8743 | if test -r "$dir/include/tcl.h"; then |
| 8744 | eval "$as_ac_File=yes" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8745 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8746 | eval "$as_ac_File=no" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8747 | fi |
| 8748 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8749 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8750 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
| 8751 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8752 | found=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8753 | fi |
| 8754 | |
| 8755 | if test "$found" = "yes"; then |
| 8756 | TARGET_TCL_INC="-I$dir/include" |
| 8757 | break |
| 8758 | fi |
| 8759 | done |
| 8760 | fi |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 8761 | if test "$found" = "no"; then |
| 8762 | TARGET_TCL_INC="-DNO_TCL=1" |
| 8763 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8764 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8765 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8766 | ########## |
| 8767 | # Figure out what C libraries are required to compile programs |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8768 | # that use "readline()" library. |
| 8769 | # |
| 8770 | if test "$config_TARGET_READLINE_LIBS" != ""; then |
| 8771 | TARGET_READLINE_LIBS="$config_TARGET_READLINE_LIBS" |
| 8772 | else |
| 8773 | CC=$TARGET_CC |
| 8774 | LIBS="" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8775 | echo "$as_me:$LINENO: checking for library containing readline" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8776 | echo $ECHO_N "checking for library containing readline... $ECHO_C" >&6 |
| 8777 | if test "${ac_cv_search_readline+set}" = set; then |
| 8778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8779 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8780 | ac_func_search_save_LIBS=$LIBS |
| 8781 | ac_cv_search_readline=no |
| 8782 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8783 | #line $LINENO "configure" |
| 8784 | /* confdefs.h. */ |
| 8785 | _ACEOF |
| 8786 | cat confdefs.h >>conftest.$ac_ext |
| 8787 | cat >>conftest.$ac_ext <<_ACEOF |
| 8788 | /* end confdefs.h. */ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8789 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8790 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8791 | #ifdef __cplusplus |
| 8792 | extern "C" |
| 8793 | #endif |
| 8794 | /* We use char because int might match the return type of a gcc2 |
| 8795 | builtin and then its argument prototype would still apply. */ |
| 8796 | char readline (); |
| 8797 | int |
| 8798 | main () |
| 8799 | { |
| 8800 | readline (); |
| 8801 | ; |
| 8802 | return 0; |
| 8803 | } |
| 8804 | _ACEOF |
| 8805 | rm -f conftest.$ac_objext conftest$ac_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8806 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8807 | (eval $ac_link) 2>&5 |
| 8808 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8810 | (exit $ac_status); } && |
| 8811 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8813 | (eval $ac_try) 2>&5 |
| 8814 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8816 | (exit $ac_status); }; }; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8817 | ac_cv_search_readline="none required" |
| 8818 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8819 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8820 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8821 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8822 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8823 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8824 | if test "$ac_cv_search_readline" = no; then |
| 8825 | for ac_lib in readline; do |
| 8826 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8827 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8828 | #line $LINENO "configure" |
| 8829 | /* confdefs.h. */ |
| 8830 | _ACEOF |
| 8831 | cat confdefs.h >>conftest.$ac_ext |
| 8832 | cat >>conftest.$ac_ext <<_ACEOF |
| 8833 | /* end confdefs.h. */ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8834 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8835 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8836 | #ifdef __cplusplus |
| 8837 | extern "C" |
| 8838 | #endif |
| 8839 | /* We use char because int might match the return type of a gcc2 |
| 8840 | builtin and then its argument prototype would still apply. */ |
| 8841 | char readline (); |
| 8842 | int |
| 8843 | main () |
| 8844 | { |
| 8845 | readline (); |
| 8846 | ; |
| 8847 | return 0; |
| 8848 | } |
| 8849 | _ACEOF |
| 8850 | rm -f conftest.$ac_objext conftest$ac_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8851 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8852 | (eval $ac_link) 2>&5 |
| 8853 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8855 | (exit $ac_status); } && |
| 8856 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8858 | (eval $ac_try) 2>&5 |
| 8859 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8861 | (exit $ac_status); }; }; then |
| 8862 | ac_cv_search_readline="-l$ac_lib" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8863 | break |
| 8864 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8865 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8866 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8867 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8868 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8869 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8870 | done |
| 8871 | fi |
| 8872 | LIBS=$ac_func_search_save_LIBS |
| 8873 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8874 | echo "$as_me:$LINENO: result: $ac_cv_search_readline" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8875 | echo "${ECHO_T}$ac_cv_search_readline" >&6 |
| 8876 | if test "$ac_cv_search_readline" != no; then |
| 8877 | test "$ac_cv_search_readline" = "none required" || LIBS="$ac_cv_search_readline $LIBS" |
| 8878 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8879 | fi |
| 8880 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8881 | TARGET_READLINE_LIBS="$LIBS" |
| 8882 | fi |
| 8883 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8884 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8885 | ########## |
| 8886 | # Figure out where to get the READLINE header files. |
| 8887 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8888 | echo "$as_me:$LINENO: checking readline header files" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8889 | echo $ECHO_N "checking readline header files... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8890 | found=no |
| 8891 | if test "$config_TARGET_READLINE_INC" != ""; then |
| 8892 | TARGET_READLINE_INC=$config_TARGET_READLINE_INC |
| 8893 | found=yes |
| 8894 | fi |
| 8895 | if test "$found" = "yes"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8896 | echo "$as_me:$LINENO: result: $TARGET_READLINE_INC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8897 | echo "${ECHO_T}$TARGET_READLINE_INC" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8898 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8899 | echo "$as_me:$LINENO: result: not specified: still searching..." >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8900 | echo "${ECHO_T}not specified: still searching..." >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8901 | if test "${ac_cv_header_readline_h+set}" = set; then |
| 8902 | echo "$as_me:$LINENO: checking for readline.h" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8903 | echo $ECHO_N "checking for readline.h... $ECHO_C" >&6 |
| 8904 | if test "${ac_cv_header_readline_h+set}" = set; then |
| 8905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8906 | fi |
| 8907 | echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5 |
| 8908 | echo "${ECHO_T}$ac_cv_header_readline_h" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8909 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8910 | # Is the header compilable? |
| 8911 | echo "$as_me:$LINENO: checking readline.h usability" >&5 |
| 8912 | echo $ECHO_N "checking readline.h usability... $ECHO_C" >&6 |
| 8913 | cat >conftest.$ac_ext <<_ACEOF |
| 8914 | #line $LINENO "configure" |
| 8915 | /* confdefs.h. */ |
| 8916 | _ACEOF |
| 8917 | cat confdefs.h >>conftest.$ac_ext |
| 8918 | cat >>conftest.$ac_ext <<_ACEOF |
| 8919 | /* end confdefs.h. */ |
| 8920 | $ac_includes_default |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8921 | #include <readline.h> |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8922 | _ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8923 | rm -f conftest.$ac_objext |
| 8924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8925 | (eval $ac_compile) 2>&5 |
| 8926 | ac_status=$? |
| 8927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8928 | (exit $ac_status); } && |
| 8929 | { ac_try='test -s conftest.$ac_objext' |
| 8930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8931 | (eval $ac_try) 2>&5 |
| 8932 | ac_status=$? |
| 8933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8934 | (exit $ac_status); }; }; then |
| 8935 | ac_header_compiler=yes |
| 8936 | else |
| 8937 | echo "$as_me: failed program was:" >&5 |
| 8938 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8939 | |
| 8940 | ac_header_compiler=no |
| 8941 | fi |
| 8942 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8943 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8944 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8945 | |
| 8946 | # Is the header present? |
| 8947 | echo "$as_me:$LINENO: checking readline.h presence" >&5 |
| 8948 | echo $ECHO_N "checking readline.h presence... $ECHO_C" >&6 |
| 8949 | cat >conftest.$ac_ext <<_ACEOF |
| 8950 | #line $LINENO "configure" |
| 8951 | /* confdefs.h. */ |
| 8952 | _ACEOF |
| 8953 | cat confdefs.h >>conftest.$ac_ext |
| 8954 | cat >>conftest.$ac_ext <<_ACEOF |
| 8955 | /* end confdefs.h. */ |
| 8956 | #include <readline.h> |
| 8957 | _ACEOF |
| 8958 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8959 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8960 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8961 | grep -v '^ *+' conftest.er1 >conftest.err |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8962 | rm -f conftest.er1 |
| 8963 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8965 | (exit $ac_status); } >/dev/null; then |
| 8966 | if test -s conftest.err; then |
| 8967 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8968 | else |
| 8969 | ac_cpp_err= |
| 8970 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8971 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8972 | ac_cpp_err=yes |
| 8973 | fi |
| 8974 | if test -z "$ac_cpp_err"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8975 | ac_header_preproc=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8976 | else |
| 8977 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8978 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8979 | |
| 8980 | ac_header_preproc=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 8981 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8982 | rm -f conftest.err conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8983 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8984 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8985 | |
| 8986 | # So? What about this header? |
| 8987 | case $ac_header_compiler:$ac_header_preproc in |
| 8988 | yes:no ) |
| 8989 | { echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8990 | echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8991 | { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5 |
| 8992 | echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;} |
| 8993 | ( |
| 8994 | cat <<\_ASBOX |
| 8995 | ## ------------------------------------ ## |
| 8996 | ## Report this to bug-autoconf@gnu.org. ## |
| 8997 | ## ------------------------------------ ## |
| 8998 | _ASBOX |
| 8999 | ) | |
| 9000 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9001 | ;; |
| 9002 | no:yes ) |
| 9003 | { echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5 |
| 9004 | echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;} |
| 9005 | { echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5 |
| 9006 | echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;} |
| 9007 | { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5 |
| 9008 | echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;} |
| 9009 | ( |
| 9010 | cat <<\_ASBOX |
| 9011 | ## ------------------------------------ ## |
| 9012 | ## Report this to bug-autoconf@gnu.org. ## |
| 9013 | ## ------------------------------------ ## |
| 9014 | _ASBOX |
| 9015 | ) | |
| 9016 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9017 | ;; |
| 9018 | esac |
| 9019 | echo "$as_me:$LINENO: checking for readline.h" >&5 |
| 9020 | echo $ECHO_N "checking for readline.h... $ECHO_C" >&6 |
| 9021 | if test "${ac_cv_header_readline_h+set}" = set; then |
| 9022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9023 | else |
| 9024 | ac_cv_header_readline_h=$ac_header_preproc |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9025 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9026 | echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9027 | echo "${ECHO_T}$ac_cv_header_readline_h" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9028 | |
| 9029 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9030 | if test $ac_cv_header_readline_h = yes; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9031 | found=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9032 | fi |
| 9033 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9034 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9035 | fi |
| 9036 | if test "$found" = "no"; then |
| 9037 | for dir in /usr /usr/local /usr/local/readline /usr/contrib; do |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9038 | 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] | 9039 | echo "$as_me:$LINENO: checking for $dir/include/readline.h" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9040 | echo $ECHO_N "checking for $dir/include/readline.h... $ECHO_C" >&6 |
| 9041 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
| 9042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9043 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9044 | test "$cross_compiling" = yes && |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9045 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9046 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
| 9047 | { (exit 1); exit 1; }; } |
| 9048 | if test -r "$dir/include/readline.h"; then |
| 9049 | eval "$as_ac_File=yes" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9050 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9051 | eval "$as_ac_File=no" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9052 | fi |
| 9053 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9054 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9055 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
| 9056 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9057 | found=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9058 | fi |
| 9059 | |
| 9060 | if test "$found" = "yes"; then |
| 9061 | TARGET_READLINE_INC="-I$dir/include" |
| 9062 | break |
| 9063 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9064 | 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] | 9065 | echo "$as_me:$LINENO: checking for $dir/include/readline/readline.h" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9066 | echo $ECHO_N "checking for $dir/include/readline/readline.h... $ECHO_C" >&6 |
| 9067 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
| 9068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9069 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9070 | test "$cross_compiling" = yes && |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9071 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9072 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
| 9073 | { (exit 1); exit 1; }; } |
| 9074 | if test -r "$dir/include/readline/readline.h"; then |
| 9075 | eval "$as_ac_File=yes" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9076 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9077 | eval "$as_ac_File=no" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9078 | fi |
| 9079 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9080 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9081 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
| 9082 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9083 | found=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9084 | fi |
| 9085 | |
| 9086 | if test "$found" = "yes"; then |
| 9087 | TARGET_READLINE_INC="-I$dir/include/readline" |
| 9088 | break |
| 9089 | fi |
| 9090 | done |
| 9091 | fi |
| 9092 | if test "$found" = "yes"; then |
drh | 82ad383 | 2000-07-31 13:38:24 +0000 | [diff] [blame] | 9093 | if test "$TARGET_READLINE_LIBS" = ""; then |
| 9094 | TARGET_HAVE_READLINE=0 |
| 9095 | else |
| 9096 | TARGET_HAVE_READLINE=1 |
| 9097 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9098 | else |
| 9099 | TARGET_HAVE_READLINE=0 |
| 9100 | fi |
| 9101 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9102 | |
| 9103 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9104 | ######### |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 9105 | # Figure out whether or not we have a "usleep()" function. |
| 9106 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9107 | echo "$as_me:$LINENO: checking for usleep" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9108 | echo $ECHO_N "checking for usleep... $ECHO_C" >&6 |
| 9109 | if test "${ac_cv_func_usleep+set}" = set; then |
| 9110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 9111 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9112 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9113 | #line $LINENO "configure" |
| 9114 | /* confdefs.h. */ |
| 9115 | _ACEOF |
| 9116 | cat confdefs.h >>conftest.$ac_ext |
| 9117 | cat >>conftest.$ac_ext <<_ACEOF |
| 9118 | /* end confdefs.h. */ |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 9119 | /* System header to define __stub macros and hopefully few prototypes, |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9120 | which can conflict with char usleep (); below. |
| 9121 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9122 | <limits.h> exists even on freestanding compilers. */ |
| 9123 | #ifdef __STDC__ |
| 9124 | # include <limits.h> |
| 9125 | #else |
| 9126 | # include <assert.h> |
| 9127 | #endif |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 9128 | /* Override any gcc2 internal prototype to avoid an error. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9129 | #ifdef __cplusplus |
| 9130 | extern "C" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9131 | { |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9132 | #endif |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 9133 | /* We use char because int might match the return type of a gcc2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9134 | builtin and then its argument prototype would still apply. */ |
| 9135 | char usleep (); |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 9136 | /* The GNU C library defines this for functions which it implements |
| 9137 | to always fail with ENOSYS. Some functions are actually named |
| 9138 | something starting with __ and the normal name is an alias. */ |
| 9139 | #if defined (__stub_usleep) || defined (__stub___usleep) |
| 9140 | choke me |
| 9141 | #else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9142 | char (*f) () = usleep; |
| 9143 | #endif |
| 9144 | #ifdef __cplusplus |
| 9145 | } |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 9146 | #endif |
| 9147 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9148 | int |
| 9149 | main () |
| 9150 | { |
| 9151 | return f != usleep; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9152 | ; |
| 9153 | return 0; |
| 9154 | } |
| 9155 | _ACEOF |
| 9156 | rm -f conftest.$ac_objext conftest$ac_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9157 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9158 | (eval $ac_link) 2>&5 |
| 9159 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9161 | (exit $ac_status); } && |
| 9162 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9164 | (eval $ac_try) 2>&5 |
| 9165 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9167 | (exit $ac_status); }; }; then |
| 9168 | ac_cv_func_usleep=yes |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 9169 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9170 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9172 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9173 | ac_cv_func_usleep=no |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 9174 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9175 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 9176 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9177 | echo "$as_me:$LINENO: result: $ac_cv_func_usleep" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9178 | echo "${ECHO_T}$ac_cv_func_usleep" >&6 |
| 9179 | if test $ac_cv_func_usleep = yes; then |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 9180 | TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_USLEEP=1" |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 9181 | fi |
| 9182 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9183 | |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 9184 | ######### |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9185 | # Generate the output files. |
| 9186 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9187 | ac_config_files="$ac_config_files Makefile sqlite.pc" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9188 | cat >confcache <<\_ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9189 | # This file is a shell script that caches the results of configure |
| 9190 | # tests run on this system so they can be shared between configure |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9191 | # scripts and configure runs, see configure's option --config-cache. |
| 9192 | # It is not useful on other systems. If it contains results you don't |
| 9193 | # want to keep, you may remove or edit it. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9194 | # |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9195 | # config.status only pays attention to the cache file if you give it |
| 9196 | # the --recheck option to rerun configure. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9197 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9198 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9199 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 9200 | # following values. |
| 9201 | |
| 9202 | _ACEOF |
| 9203 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9204 | # The following way of writing the cache mishandles newlines in values, |
| 9205 | # but we know of no workaround that is simple, portable, and efficient. |
| 9206 | # So, don't put newlines in cache variables' values. |
| 9207 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 9208 | # 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] | 9209 | { |
| 9210 | (set) 2>&1 | |
| 9211 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 9212 | *ac_space=\ *) |
| 9213 | # `set' does not quote correctly, so add quotes (double-quote |
| 9214 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 9215 | sed -n \ |
| 9216 | "s/'/'\\\\''/g; |
| 9217 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 9218 | ;; |
| 9219 | *) |
| 9220 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 9221 | sed -n \ |
| 9222 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 9223 | ;; |
| 9224 | esac; |
| 9225 | } | |
| 9226 | sed ' |
| 9227 | t clear |
| 9228 | : clear |
| 9229 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 9230 | t end |
| 9231 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 9232 | : end' >>confcache |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9233 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9234 | if test -w $cache_file; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9235 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 9236 | cat confcache >$cache_file |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9237 | else |
| 9238 | echo "not updating unwritable cache $cache_file" |
| 9239 | fi |
| 9240 | fi |
| 9241 | rm -f confcache |
| 9242 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9243 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 9244 | # Let make expand exec_prefix. |
| 9245 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 9246 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9247 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 9248 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 9249 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 9250 | # (actually we leave an empty line to preserve line numbers). |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9251 | if test "x$srcdir" = x.; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9252 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 9253 | s/:*\$(srcdir):*/:/; |
| 9254 | s/:*\${srcdir}:*/:/; |
| 9255 | s/:*@srcdir@:*/:/; |
| 9256 | s/^\([^=]*=[ ]*\):*/\1/; |
| 9257 | s/:*$//; |
| 9258 | s/^[^=]*=[ ]*$//; |
| 9259 | }' |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9260 | fi |
| 9261 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9262 | # Transform confdefs.h into DEFS. |
| 9263 | # Protect against shell expansion while executing Makefile rules. |
| 9264 | # Protect against Makefile macro expansion. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9265 | # |
| 9266 | # If the first sed substitution is executed (which looks for macros that |
| 9267 | # take arguments), then we branch to the quote section. Otherwise, |
| 9268 | # look for a macro that doesn't take arguments. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9269 | cat >confdef2opt.sed <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9270 | t clear |
| 9271 | : clear |
| 9272 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g |
| 9273 | t quote |
| 9274 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g |
| 9275 | t quote |
| 9276 | d |
| 9277 | : quote |
| 9278 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g |
| 9279 | s,\[,\\&,g |
| 9280 | s,\],\\&,g |
| 9281 | s,\$,$$,g |
| 9282 | p |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9283 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9284 | # We use echo to avoid assuming a particular line-breaking character. |
| 9285 | # The extra dot is to prevent the shell from consuming trailing |
| 9286 | # line-breaks from the sub-command output. A line-break within |
| 9287 | # single-quotes doesn't work because, if this script is created in a |
| 9288 | # platform that uses two characters for line-breaks (e.g., DOS), tr |
| 9289 | # would break. |
| 9290 | ac_LF_and_DOT=`echo; echo .` |
| 9291 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` |
| 9292 | rm -f confdef2opt.sed |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9293 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9294 | |
| 9295 | ac_libobjs= |
| 9296 | ac_ltlibobjs= |
| 9297 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 9298 | # 1. Remove the extension, and $U if already installed. |
| 9299 | ac_i=`echo "$ac_i" | |
| 9300 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 9301 | # 2. Add them. |
| 9302 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 9303 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 9304 | done |
| 9305 | LIBOBJS=$ac_libobjs |
| 9306 | |
| 9307 | LTLIBOBJS=$ac_ltlibobjs |
| 9308 | |
| 9309 | |
| 9310 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9311 | : ${CONFIG_STATUS=./config.status} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9312 | ac_clean_files_save=$ac_clean_files |
| 9313 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9314 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9315 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 9316 | cat >$CONFIG_STATUS <<_ACEOF |
| 9317 | #! $SHELL |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9318 | # Generated by $as_me. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9319 | # Run this file to recreate the current configuration. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9320 | # Compiler output produced by configure, useful for debugging |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9321 | # configure, is in config.log if it exists. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9322 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9323 | debug=false |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9324 | ac_cs_recheck=false |
| 9325 | ac_cs_silent=false |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9326 | SHELL=\${CONFIG_SHELL-$SHELL} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9327 | _ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9328 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9329 | cat >>$CONFIG_STATUS <<\_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9330 | ## --------------------- ## |
| 9331 | ## M4sh Initialization. ## |
| 9332 | ## --------------------- ## |
| 9333 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9334 | # Be Bourne compatible |
| 9335 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 9336 | emulate sh |
| 9337 | NULLCMD=: |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9338 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 9339 | # is contrary to our usage. Disable this feature. |
| 9340 | alias -g '${1+"$@"}'='"$@"' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9341 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 9342 | set -o posix |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9343 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9344 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9345 | # Support unset when possible. |
| 9346 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 9347 | as_unset=unset |
| 9348 | else |
| 9349 | as_unset=false |
| 9350 | fi |
| 9351 | |
| 9352 | |
| 9353 | # Work around bugs in pre-3.0 UWIN ksh. |
| 9354 | $as_unset ENV MAIL MAILPATH |
| 9355 | PS1='$ ' |
| 9356 | PS2='> ' |
| 9357 | PS4='+ ' |
| 9358 | |
| 9359 | # NLS nuisances. |
| 9360 | for as_var in \ |
| 9361 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 9362 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 9363 | LC_TELEPHONE LC_TIME |
| 9364 | do |
| 9365 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 9366 | eval $as_var=C; export $as_var |
| 9367 | else |
| 9368 | $as_unset $as_var |
| 9369 | fi |
| 9370 | done |
| 9371 | |
| 9372 | # Required to use basename. |
| 9373 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 9374 | as_expr=expr |
| 9375 | else |
| 9376 | as_expr=false |
| 9377 | fi |
| 9378 | |
| 9379 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 9380 | as_basename=basename |
| 9381 | else |
| 9382 | as_basename=false |
| 9383 | fi |
| 9384 | |
| 9385 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9386 | # Name of the executable. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9387 | as_me=`$as_basename "$0" || |
| 9388 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 9389 | X"$0" : 'X\(//\)$' \| \ |
| 9390 | X"$0" : 'X\(/\)$' \| \ |
| 9391 | . : '\(.\)' 2>/dev/null || |
| 9392 | echo X/"$0" | |
| 9393 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 9394 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 9395 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 9396 | s/.*/./; q'` |
| 9397 | |
| 9398 | |
| 9399 | # PATH needs CR, and LINENO needs CR and PATH. |
| 9400 | # Avoid depending upon Character Ranges. |
| 9401 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 9402 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 9403 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 9404 | as_cr_digits='0123456789' |
| 9405 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 9406 | |
| 9407 | # The user is always right. |
| 9408 | if test "${PATH_SEPARATOR+set}" != set; then |
| 9409 | echo "#! /bin/sh" >conf$$.sh |
| 9410 | echo "exit 0" >>conf$$.sh |
| 9411 | chmod +x conf$$.sh |
| 9412 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 9413 | PATH_SEPARATOR=';' |
| 9414 | else |
| 9415 | PATH_SEPARATOR=: |
| 9416 | fi |
| 9417 | rm -f conf$$.sh |
| 9418 | fi |
| 9419 | |
| 9420 | |
| 9421 | as_lineno_1=$LINENO |
| 9422 | as_lineno_2=$LINENO |
| 9423 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 9424 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 9425 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 9426 | # Find who we are. Look in the path if we contain no path at all |
| 9427 | # relative or not. |
| 9428 | case $0 in |
| 9429 | *[\\/]* ) as_myself=$0 ;; |
| 9430 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9431 | for as_dir in $PATH |
| 9432 | do |
| 9433 | IFS=$as_save_IFS |
| 9434 | test -z "$as_dir" && as_dir=. |
| 9435 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 9436 | done |
| 9437 | |
| 9438 | ;; |
| 9439 | esac |
| 9440 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 9441 | # in which case we are not to be found in the path. |
| 9442 | if test "x$as_myself" = x; then |
| 9443 | as_myself=$0 |
| 9444 | fi |
| 9445 | if test ! -f "$as_myself"; then |
| 9446 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 9447 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 9448 | { (exit 1); exit 1; }; } |
| 9449 | fi |
| 9450 | case $CONFIG_SHELL in |
| 9451 | '') |
| 9452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9453 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 9454 | do |
| 9455 | IFS=$as_save_IFS |
| 9456 | test -z "$as_dir" && as_dir=. |
| 9457 | for as_base in sh bash ksh sh5; do |
| 9458 | case $as_dir in |
| 9459 | /*) |
| 9460 | if ("$as_dir/$as_base" -c ' |
| 9461 | as_lineno_1=$LINENO |
| 9462 | as_lineno_2=$LINENO |
| 9463 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 9464 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 9465 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 9466 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 9467 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 9468 | CONFIG_SHELL=$as_dir/$as_base |
| 9469 | export CONFIG_SHELL |
| 9470 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 9471 | fi;; |
| 9472 | esac |
| 9473 | done |
| 9474 | done |
| 9475 | ;; |
| 9476 | esac |
| 9477 | |
| 9478 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 9479 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 9480 | # line-number line before each line; the second 'sed' does the real |
| 9481 | # work. The second script uses 'N' to pair each line-number line |
| 9482 | # with the numbered line, and appends trailing '-' during |
| 9483 | # substitution so that $LINENO is not a special case at line end. |
| 9484 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 9485 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 9486 | sed '=' <$as_myself | |
| 9487 | sed ' |
| 9488 | N |
| 9489 | s,$,-, |
| 9490 | : loop |
| 9491 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 9492 | t loop |
| 9493 | s,-$,, |
| 9494 | s,^['$as_cr_digits']*\n,, |
| 9495 | ' >$as_me.lineno && |
| 9496 | chmod +x $as_me.lineno || |
| 9497 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 9498 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 9499 | { (exit 1); exit 1; }; } |
| 9500 | |
| 9501 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 9502 | # (the dirname of $[0] is not the place where we might find the |
| 9503 | # original and so on. Autoconf is especially sensible to this). |
| 9504 | . ./$as_me.lineno |
| 9505 | # Exit status is that of the last command. |
| 9506 | exit |
| 9507 | } |
| 9508 | |
| 9509 | |
| 9510 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 9511 | *c*,-n*) ECHO_N= ECHO_C=' |
| 9512 | ' ECHO_T=' ' ;; |
| 9513 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 9514 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 9515 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9516 | |
| 9517 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 9518 | as_expr=expr |
| 9519 | else |
| 9520 | as_expr=false |
| 9521 | fi |
| 9522 | |
| 9523 | rm -f conf$$ conf$$.exe conf$$.file |
| 9524 | echo >conf$$.file |
| 9525 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 9526 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 9527 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 9528 | if test -f conf$$.exe; then |
| 9529 | # Don't use ln at all; we don't have any links |
| 9530 | as_ln_s='cp -p' |
| 9531 | else |
| 9532 | as_ln_s='ln -s' |
| 9533 | fi |
| 9534 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 9535 | as_ln_s=ln |
| 9536 | else |
| 9537 | as_ln_s='cp -p' |
| 9538 | fi |
| 9539 | rm -f conf$$ conf$$.exe conf$$.file |
| 9540 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9541 | if mkdir -p . 2>/dev/null; then |
| 9542 | as_mkdir_p=: |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9543 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9544 | as_mkdir_p=false |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9545 | fi |
| 9546 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9547 | as_executable_p="test -f" |
| 9548 | |
| 9549 | # Sed expression to map a string onto a valid CPP name. |
| 9550 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 9551 | |
| 9552 | # Sed expression to map a string onto a valid variable name. |
| 9553 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 9554 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9555 | |
| 9556 | # IFS |
| 9557 | # We need space, tab and new line, in precisely that order. |
| 9558 | as_nl=' |
| 9559 | ' |
| 9560 | IFS=" $as_nl" |
| 9561 | |
| 9562 | # CDPATH. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9563 | $as_unset CDPATH |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9564 | |
| 9565 | exec 6>&1 |
| 9566 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9567 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 9568 | # report actual input values of CONFIG_FILES etc. instead of their |
| 9569 | # values after options handling. Logging --version etc. is OK. |
| 9570 | exec 5>>config.log |
| 9571 | { |
| 9572 | echo |
| 9573 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 9574 | ## Running $as_me. ## |
| 9575 | _ASBOX |
| 9576 | } >&5 |
| 9577 | cat >&5 <<_CSEOF |
| 9578 | |
| 9579 | This file was extended by $as_me, which was |
| 9580 | generated by GNU Autoconf 2.57. Invocation command line was |
| 9581 | |
| 9582 | CONFIG_FILES = $CONFIG_FILES |
| 9583 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 9584 | CONFIG_LINKS = $CONFIG_LINKS |
| 9585 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 9586 | $ $0 $@ |
| 9587 | |
| 9588 | _CSEOF |
| 9589 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 9590 | echo >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9591 | _ACEOF |
| 9592 | |
| 9593 | # Files that config.status was made for. |
| 9594 | if test -n "$ac_config_files"; then |
| 9595 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 9596 | fi |
| 9597 | |
| 9598 | if test -n "$ac_config_headers"; then |
| 9599 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 9600 | fi |
| 9601 | |
| 9602 | if test -n "$ac_config_links"; then |
| 9603 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 9604 | fi |
| 9605 | |
| 9606 | if test -n "$ac_config_commands"; then |
| 9607 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 9608 | fi |
| 9609 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9610 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9611 | |
| 9612 | ac_cs_usage="\ |
| 9613 | \`$as_me' instantiates files from templates according to the |
| 9614 | current configuration. |
| 9615 | |
| 9616 | Usage: $0 [OPTIONS] [FILE]... |
| 9617 | |
| 9618 | -h, --help print this help, then exit |
| 9619 | -V, --version print version number, then exit |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9620 | -q, --quiet do not print progress messages |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9621 | -d, --debug don't remove temporary files |
| 9622 | --recheck update $as_me by reconfiguring in the same conditions |
| 9623 | --file=FILE[:TEMPLATE] |
| 9624 | instantiate the configuration file FILE |
| 9625 | |
| 9626 | Configuration files: |
| 9627 | $config_files |
| 9628 | |
| 9629 | Report bugs to <bug-autoconf@gnu.org>." |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9630 | _ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9631 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9632 | cat >>$CONFIG_STATUS <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9633 | ac_cs_version="\\ |
| 9634 | config.status |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9635 | configured by $0, generated by GNU Autoconf 2.57, |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9636 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9637 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9638 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 9639 | Free Software Foundation, Inc. |
| 9640 | This config.status script is free software; the Free Software Foundation |
| 9641 | gives unlimited permission to copy, distribute and modify it." |
| 9642 | srcdir=$srcdir |
| 9643 | INSTALL="$INSTALL" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9644 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9645 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9646 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9647 | # If no file are specified by the user, then we need to provide default |
| 9648 | # value. By we need to know if files were specified by the user. |
| 9649 | ac_need_defaults=: |
| 9650 | while test $# != 0 |
| 9651 | do |
| 9652 | case $1 in |
| 9653 | --*=*) |
| 9654 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 9655 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9656 | ac_shift=: |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9657 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9658 | -*) |
| 9659 | ac_option=$1 |
| 9660 | ac_optarg=$2 |
| 9661 | ac_shift=shift |
| 9662 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9663 | *) # This is not an option, so the user has probably given explicit |
| 9664 | # arguments. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9665 | ac_option=$1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9666 | ac_need_defaults=false;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9667 | esac |
| 9668 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9669 | case $ac_option in |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9670 | # Handling of the options. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9671 | _ACEOF |
| 9672 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9673 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9674 | ac_cs_recheck=: ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9675 | --version | --vers* | -V ) |
| 9676 | echo "$ac_cs_version"; exit 0 ;; |
| 9677 | --he | --h) |
| 9678 | # Conflict between --help and --header |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9679 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9680 | Try \`$0 --help' for more information." >&5 |
| 9681 | echo "$as_me: error: ambiguous option: $1 |
| 9682 | Try \`$0 --help' for more information." >&2;} |
| 9683 | { (exit 1); exit 1; }; };; |
| 9684 | --help | --hel | -h ) |
| 9685 | echo "$ac_cs_usage"; exit 0 ;; |
| 9686 | --debug | --d* | -d ) |
| 9687 | debug=: ;; |
| 9688 | --file | --fil | --fi | --f ) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9689 | $ac_shift |
| 9690 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9691 | ac_need_defaults=false;; |
| 9692 | --header | --heade | --head | --hea ) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9693 | $ac_shift |
| 9694 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9695 | ac_need_defaults=false;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9696 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 9697 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 9698 | ac_cs_silent=: ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9699 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9700 | # This is an error. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9701 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9702 | Try \`$0 --help' for more information." >&5 |
| 9703 | echo "$as_me: error: unrecognized option: $1 |
| 9704 | Try \`$0 --help' for more information." >&2;} |
| 9705 | { (exit 1); exit 1; }; } ;; |
| 9706 | |
| 9707 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 9708 | |
| 9709 | esac |
| 9710 | shift |
| 9711 | done |
| 9712 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9713 | ac_configure_extra_args= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9714 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9715 | if $ac_cs_silent; then |
| 9716 | exec 6>/dev/null |
| 9717 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 9718 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9719 | |
| 9720 | _ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9721 | cat >>$CONFIG_STATUS <<_ACEOF |
| 9722 | if \$ac_cs_recheck; then |
| 9723 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 9724 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 9725 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9726 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9727 | _ACEOF |
| 9728 | |
| 9729 | |
| 9730 | |
| 9731 | |
| 9732 | |
| 9733 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9734 | for ac_config_target in $ac_config_targets |
| 9735 | do |
| 9736 | case "$ac_config_target" in |
| 9737 | # Handling of arguments. |
| 9738 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9739 | "sqlite.pc" ) CONFIG_FILES="$CONFIG_FILES sqlite.pc" ;; |
| 9740 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9741 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 9742 | { (exit 1); exit 1; }; };; |
| 9743 | esac |
| 9744 | done |
| 9745 | |
| 9746 | # If the user did not use the arguments to specify the items to instantiate, |
| 9747 | # then the envvar interface is used. Set only those that are not. |
| 9748 | # We use the long form for the default assignment because of an extremely |
| 9749 | # bizarre bug on SunOS 4.1.3. |
| 9750 | if $ac_need_defaults; then |
| 9751 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 9752 | fi |
| 9753 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9754 | # Have a temporary directory for convenience. Make it in the build tree |
| 9755 | # simply because there is no reason to put it here, and in addition, |
| 9756 | # creating and moving files from /tmp can sometimes cause problems. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9757 | # Create a temporary directory, and hook for its removal unless debugging. |
| 9758 | $debug || |
| 9759 | { |
| 9760 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 9761 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 9762 | } |
| 9763 | |
| 9764 | # Create a (secure) tmp directory for tmp files. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9765 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9766 | { |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9767 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9768 | test -n "$tmp" && test -d "$tmp" |
| 9769 | } || |
| 9770 | { |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9771 | tmp=./confstat$$-$RANDOM |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9772 | (umask 077 && mkdir $tmp) |
| 9773 | } || |
| 9774 | { |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9775 | echo "$me: cannot create a temporary directory in ." >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9776 | { (exit 1); exit 1; } |
| 9777 | } |
| 9778 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9779 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9780 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9781 | cat >>$CONFIG_STATUS <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9782 | |
| 9783 | # |
| 9784 | # CONFIG_FILES section. |
| 9785 | # |
| 9786 | |
| 9787 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 9788 | # This happens for instance when ./config.status config.h |
| 9789 | if test -n "\$CONFIG_FILES"; then |
| 9790 | # Protect against being on the right side of a sed subst in config.status. |
| 9791 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 9792 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 9793 | s,@SHELL@,$SHELL,;t t |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9794 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 9795 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 9796 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 9797 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 9798 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 9799 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9800 | s,@exec_prefix@,$exec_prefix,;t t |
| 9801 | s,@prefix@,$prefix,;t t |
| 9802 | s,@program_transform_name@,$program_transform_name,;t t |
| 9803 | s,@bindir@,$bindir,;t t |
| 9804 | s,@sbindir@,$sbindir,;t t |
| 9805 | s,@libexecdir@,$libexecdir,;t t |
| 9806 | s,@datadir@,$datadir,;t t |
| 9807 | s,@sysconfdir@,$sysconfdir,;t t |
| 9808 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 9809 | s,@localstatedir@,$localstatedir,;t t |
| 9810 | s,@libdir@,$libdir,;t t |
| 9811 | s,@includedir@,$includedir,;t t |
| 9812 | s,@oldincludedir@,$oldincludedir,;t t |
| 9813 | s,@infodir@,$infodir,;t t |
| 9814 | s,@mandir@,$mandir,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9815 | s,@build_alias@,$build_alias,;t t |
| 9816 | s,@host_alias@,$host_alias,;t t |
| 9817 | s,@target_alias@,$target_alias,;t t |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9818 | s,@DEFS@,$DEFS,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9819 | s,@ECHO_C@,$ECHO_C,;t t |
| 9820 | s,@ECHO_N@,$ECHO_N,;t t |
| 9821 | s,@ECHO_T@,$ECHO_T,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9822 | s,@LIBS@,$LIBS,;t t |
| 9823 | s,@build@,$build,;t t |
| 9824 | s,@build_cpu@,$build_cpu,;t t |
| 9825 | s,@build_vendor@,$build_vendor,;t t |
| 9826 | s,@build_os@,$build_os,;t t |
| 9827 | s,@host@,$host,;t t |
| 9828 | s,@host_cpu@,$host_cpu,;t t |
| 9829 | s,@host_vendor@,$host_vendor,;t t |
| 9830 | s,@host_os@,$host_os,;t t |
| 9831 | s,@CC@,$CC,;t t |
| 9832 | s,@CFLAGS@,$CFLAGS,;t t |
| 9833 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 9834 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 9835 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 9836 | s,@EXEEXT@,$EXEEXT,;t t |
| 9837 | s,@OBJEXT@,$OBJEXT,;t t |
| 9838 | s,@LN_S@,$LN_S,;t t |
| 9839 | s,@ECHO@,$ECHO,;t t |
| 9840 | s,@RANLIB@,$RANLIB,;t t |
| 9841 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 9842 | s,@STRIP@,$STRIP,;t t |
| 9843 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 9844 | s,@CPP@,$CPP,;t t |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9845 | s,@EGREP@,$EGREP,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9846 | s,@LIBTOOL@,$LIBTOOL,;t t |
| 9847 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 9848 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 9849 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 9850 | s,@program_prefix@,$program_prefix,;t t |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9851 | s,@VERSION@,$VERSION,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9852 | s,@BUILD_CC@,$BUILD_CC,;t t |
| 9853 | s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t |
| 9854 | s,@BUILD_LIBS@,$BUILD_LIBS,;t t |
| 9855 | s,@TARGET_CC@,$TARGET_CC,;t t |
| 9856 | s,@TARGET_CFLAGS@,$TARGET_CFLAGS,;t t |
| 9857 | s,@TARGET_LINK@,$TARGET_LINK,;t t |
| 9858 | s,@TARGET_LFLAGS@,$TARGET_LFLAGS,;t t |
| 9859 | s,@TARGET_RANLIB@,$TARGET_RANLIB,;t t |
| 9860 | s,@TARGET_AR@,$TARGET_AR,;t t |
| 9861 | s,@ENCODING@,$ENCODING,;t t |
| 9862 | s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t |
| 9863 | s,@OS_UNIX@,$OS_UNIX,;t t |
| 9864 | s,@OS_WIN@,$OS_WIN,;t t |
| 9865 | s,@TARGET_EXEEXT@,$TARGET_EXEEXT,;t t |
| 9866 | s,@TARGET_LIBS@,$TARGET_LIBS,;t t |
| 9867 | s,@TARGET_TCL_LIBS@,$TARGET_TCL_LIBS,;t t |
| 9868 | s,@TARGET_TCL_INC@,$TARGET_TCL_INC,;t t |
| 9869 | s,@TARGET_READLINE_LIBS@,$TARGET_READLINE_LIBS,;t t |
| 9870 | s,@TARGET_READLINE_INC@,$TARGET_READLINE_INC,;t t |
| 9871 | s,@TARGET_HAVE_READLINE@,$TARGET_HAVE_READLINE,;t t |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9872 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 9873 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9874 | CEOF |
| 9875 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9876 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9877 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9878 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9879 | # Split the substitutions into bite-sized pieces for seds with |
| 9880 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 9881 | ac_max_sed_lines=48 |
| 9882 | ac_sed_frag=1 # Number of current file. |
| 9883 | ac_beg=1 # First line for current file. |
| 9884 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 9885 | ac_more_lines=: |
| 9886 | ac_sed_cmds= |
| 9887 | while $ac_more_lines; do |
| 9888 | if test $ac_beg -gt 1; then |
| 9889 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 9890 | else |
| 9891 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 9892 | fi |
| 9893 | if test ! -s $tmp/subs.frag; then |
| 9894 | ac_more_lines=false |
| 9895 | else |
| 9896 | # The purpose of the label and of the branching condition is to |
| 9897 | # speed up the sed processing (if there are no `@' at all, there |
| 9898 | # is no need to browse any of the substitutions). |
| 9899 | # These are the two extra sed commands mentioned above. |
| 9900 | (echo ':t |
| 9901 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 9902 | if test -z "$ac_sed_cmds"; then |
| 9903 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 9904 | else |
| 9905 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 9906 | fi |
| 9907 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 9908 | ac_beg=$ac_end |
| 9909 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 9910 | fi |
| 9911 | done |
| 9912 | if test -z "$ac_sed_cmds"; then |
| 9913 | ac_sed_cmds=cat |
| 9914 | fi |
| 9915 | fi # test -n "$CONFIG_FILES" |
| 9916 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9917 | _ACEOF |
| 9918 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9919 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 9920 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 9921 | case $ac_file in |
| 9922 | - | *:- | *:-:* ) # input from stdin |
| 9923 | cat >$tmp/stdin |
| 9924 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 9925 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 9926 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 9927 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 9928 | * ) ac_file_in=$ac_file.in ;; |
| 9929 | esac |
| 9930 | |
| 9931 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9932 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 9933 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9934 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 9935 | X"$ac_file" : 'X\(//\)$' \| \ |
| 9936 | X"$ac_file" : 'X\(/\)' \| \ |
| 9937 | . : '\(.\)' 2>/dev/null || |
| 9938 | echo X"$ac_file" | |
| 9939 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 9940 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 9941 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 9942 | /^X\(\/\).*/{ s//\1/; q; } |
| 9943 | s/.*/./; q'` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9944 | { if $as_mkdir_p; then |
| 9945 | mkdir -p "$ac_dir" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9946 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9947 | as_dir="$ac_dir" |
| 9948 | as_dirs= |
| 9949 | while test ! -d "$as_dir"; do |
| 9950 | as_dirs="$as_dir $as_dirs" |
| 9951 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 9952 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 9953 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 9954 | X"$as_dir" : 'X\(//\)$' \| \ |
| 9955 | X"$as_dir" : 'X\(/\)' \| \ |
| 9956 | . : '\(.\)' 2>/dev/null || |
| 9957 | echo X"$as_dir" | |
| 9958 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 9959 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 9960 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 9961 | /^X\(\/\).*/{ s//\1/; q; } |
| 9962 | s/.*/./; q'` |
| 9963 | done |
| 9964 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 9965 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 9966 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 9967 | { (exit 1); exit 1; }; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9968 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9969 | ac_builddir=. |
| 9970 | |
| 9971 | if test "$ac_dir" != .; then |
| 9972 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 9973 | # A "../" for each directory in $ac_dir_suffix. |
| 9974 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 9975 | else |
| 9976 | ac_dir_suffix= ac_top_builddir= |
| 9977 | fi |
| 9978 | |
| 9979 | case $srcdir in |
| 9980 | .) # No --srcdir option. We are building in place. |
| 9981 | ac_srcdir=. |
| 9982 | if test -z "$ac_top_builddir"; then |
| 9983 | ac_top_srcdir=. |
| 9984 | else |
| 9985 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 9986 | fi ;; |
| 9987 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 9988 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 9989 | ac_top_srcdir=$srcdir ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9990 | *) # Relative path. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9991 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 9992 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 9993 | esac |
| 9994 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 9995 | # absolute. |
| 9996 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 9997 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
| 9998 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 9999 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 10000 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10001 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10002 | case $INSTALL in |
| 10003 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10004 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10005 | esac |
| 10006 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10007 | if test x"$ac_file" != x-; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10008 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10009 | echo "$as_me: creating $ac_file" >&6;} |
| 10010 | rm -f "$ac_file" |
| 10011 | fi |
| 10012 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 10013 | # use $as_me), people would be surprised to read: |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10014 | # /* config.h. Generated by config.status. */ |
| 10015 | if test x"$ac_file" = x-; then |
| 10016 | configure_input= |
| 10017 | else |
| 10018 | configure_input="$ac_file. " |
| 10019 | fi |
| 10020 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 10021 | sed 's,.*/,,'` by configure." |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10022 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10023 | # First look for the input files in the build tree, otherwise in the |
| 10024 | # src tree. |
| 10025 | ac_file_inputs=`IFS=: |
| 10026 | for f in $ac_file_in; do |
| 10027 | case $f in |
| 10028 | -) echo $tmp/stdin ;; |
| 10029 | [\\/$]*) |
| 10030 | # Absolute (can't be DOS-style, as IFS=:) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10031 | 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] | 10032 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 10033 | { (exit 1); exit 1; }; } |
| 10034 | echo $f;; |
| 10035 | *) # Relative |
| 10036 | if test -f "$f"; then |
| 10037 | # Build tree |
| 10038 | echo $f |
| 10039 | elif test -f "$srcdir/$f"; then |
| 10040 | # Source tree |
| 10041 | echo $srcdir/$f |
| 10042 | else |
| 10043 | # /dev/null tree |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10044 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10045 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 10046 | { (exit 1); exit 1; }; } |
| 10047 | fi;; |
| 10048 | esac |
| 10049 | done` || { (exit 1); exit 1; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10050 | _ACEOF |
| 10051 | cat >>$CONFIG_STATUS <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10052 | sed "$ac_vpsub |
| 10053 | $extrasub |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10054 | _ACEOF |
| 10055 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10056 | :t |
| 10057 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 10058 | s,@configure_input@,$configure_input,;t t |
| 10059 | s,@srcdir@,$ac_srcdir,;t t |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10060 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10061 | s,@top_srcdir@,$ac_top_srcdir,;t t |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10062 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 10063 | s,@builddir@,$ac_builddir,;t t |
| 10064 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 10065 | s,@top_builddir@,$ac_top_builddir,;t t |
| 10066 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10067 | s,@INSTALL@,$ac_INSTALL,;t t |
| 10068 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 10069 | rm -f $tmp/stdin |
| 10070 | if test x"$ac_file" != x-; then |
| 10071 | mv $tmp/out $ac_file |
| 10072 | else |
| 10073 | cat $tmp/out |
| 10074 | rm -f $tmp/out |
| 10075 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10076 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10077 | done |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10078 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10079 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10080 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10081 | |
| 10082 | { (exit 0); exit 0; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10083 | _ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10084 | chmod +x $CONFIG_STATUS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10085 | ac_clean_files=$ac_clean_files_save |
| 10086 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10087 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10088 | # configure is writing to config.log, and then calls config.status. |
| 10089 | # config.status does its own redirection, appending to config.log. |
| 10090 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 10091 | # by configure, so config.status won't be able to write to it; its |
| 10092 | # output is simply discarded. So we exec the FD to /dev/null, |
| 10093 | # effectively closing config.log, so it can be properly (re)opened and |
| 10094 | # appended to by config.status. When coming back to configure, we |
| 10095 | # need to make the FD available again. |
| 10096 | if test "$no_create" != yes; then |
| 10097 | ac_cs_success=: |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10098 | ac_config_status_args= |
| 10099 | test "$silent" = yes && |
| 10100 | ac_config_status_args="$ac_config_status_args --quiet" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10101 | exec 5>/dev/null |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10102 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10103 | exec 5>>config.log |
| 10104 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 10105 | # would make configure fail if this is the last instruction. |
| 10106 | $ac_cs_success || { (exit 1); exit 1; } |
| 10107 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10108 | |