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 | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.59. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 4 | # |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 6 | # This configure script is free software; the Free Software Foundation |
| 7 | # gives unlimited permission to copy, distribute and modify it. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8 | ## --------------------- ## |
| 9 | ## M4sh Initialization. ## |
| 10 | ## --------------------- ## |
| 11 | |
| 12 | # Be Bourne compatible |
| 13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 14 | emulate sh |
| 15 | NULLCMD=: |
| 16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 17 | # is contrary to our usage. Disable this feature. |
| 18 | alias -g '${1+"$@"}'='"$@"' |
| 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 20 | set -o posix |
| 21 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 22 | DUALCASE=1; export DUALCASE # for MKS sh |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 23 | |
| 24 | # Support unset when possible. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 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 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 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 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 221 | test -d ./-p && rmdir ./-p |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 222 | as_mkdir_p=false |
| 223 | fi |
| 224 | |
| 225 | as_executable_p="test -f" |
| 226 | |
| 227 | # Sed expression to map a string onto a valid CPP name. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 229 | |
| 230 | # Sed expression to map a string onto a valid variable name. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 232 | |
| 233 | |
| 234 | # IFS |
| 235 | # We need space, tab and new line, in precisely that order. |
| 236 | as_nl=' |
| 237 | ' |
| 238 | IFS=" $as_nl" |
| 239 | |
| 240 | # CDPATH. |
| 241 | $as_unset CDPATH |
| 242 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 243 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 244 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 245 | # Check that we are running under the correct shell. |
| 246 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 247 | |
| 248 | case X$ECHO in |
| 249 | X*--fallback-echo) |
| 250 | # Remove one level of quotation (which was required for Make). |
| 251 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 252 | ;; |
| 253 | esac |
| 254 | |
| 255 | echo=${ECHO-echo} |
| 256 | if test "X$1" = X--no-reexec; then |
| 257 | # Discard the --no-reexec flag, and continue. |
| 258 | shift |
| 259 | elif test "X$1" = X--fallback-echo; then |
| 260 | # Avoid inline document here, it may be left over |
| 261 | : |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 262 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 263 | # Yippee, $echo works! |
| 264 | : |
| 265 | else |
| 266 | # Restart under the correct shell. |
| 267 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 268 | fi |
| 269 | |
| 270 | if test "X$1" = X--fallback-echo; then |
| 271 | # used as fallback echo |
| 272 | shift |
| 273 | cat <<EOF |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 274 | $* |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 275 | EOF |
| 276 | exit 0 |
| 277 | fi |
| 278 | |
| 279 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 280 | # if CDPATH is set. |
| 281 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 282 | |
| 283 | if test -z "$ECHO"; then |
| 284 | if test "X${echo_test_string+set}" != Xset; then |
| 285 | # find a string as large as possible, as long as the shell can cope with it |
| 286 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 287 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 288 | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
| 289 | echo_test_string="`eval $cmd`" && |
| 290 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 291 | then |
| 292 | break |
| 293 | fi |
| 294 | done |
| 295 | fi |
| 296 | |
| 297 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 298 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 299 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 300 | : |
| 301 | else |
| 302 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 303 | # backslashes. This makes it impossible to quote backslashes using |
| 304 | # echo "$something" | sed 's/\\/\\\\/g' |
| 305 | # |
| 306 | # So, first we look for a working echo in the user's PATH. |
| 307 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 308 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 309 | for dir in $PATH /usr/ucb; do |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 310 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 311 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 312 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 313 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 314 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 315 | echo="$dir/echo" |
| 316 | break |
| 317 | fi |
| 318 | done |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 319 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 320 | |
| 321 | if test "X$echo" = Xecho; then |
| 322 | # We didn't find a better echo, so look for alternatives. |
| 323 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 324 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 325 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 326 | # This shell has a builtin print -r that does the trick. |
| 327 | echo='print -r' |
| 328 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 329 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 330 | # If we have ksh, try running configure again with it. |
| 331 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 332 | export ORIGINAL_CONFIG_SHELL |
| 333 | CONFIG_SHELL=/bin/ksh |
| 334 | export CONFIG_SHELL |
| 335 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 336 | else |
| 337 | # Try using printf. |
| 338 | echo='printf %s\n' |
| 339 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 340 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 341 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 342 | # Cool, printf works |
| 343 | : |
| 344 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 345 | test "X$echo_testing_string" = 'X\t' && |
| 346 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 347 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 348 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 349 | export CONFIG_SHELL |
| 350 | SHELL="$CONFIG_SHELL" |
| 351 | export SHELL |
| 352 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 353 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 354 | test "X$echo_testing_string" = 'X\t' && |
| 355 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 356 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 357 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 358 | else |
| 359 | # maybe with a smaller string... |
| 360 | prev=: |
| 361 | |
| 362 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 363 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 364 | then |
| 365 | break |
| 366 | fi |
| 367 | prev="$cmd" |
| 368 | done |
| 369 | |
| 370 | if test "$prev" != 'sed 50q "$0"'; then |
| 371 | echo_test_string=`eval $prev` |
| 372 | export echo_test_string |
| 373 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 374 | else |
| 375 | # Oops. We lost completely, so just stick with echo. |
| 376 | echo=echo |
| 377 | fi |
| 378 | fi |
| 379 | fi |
| 380 | fi |
| 381 | fi |
| 382 | fi |
| 383 | |
| 384 | # Copy echo and quote the copy suitably for passing to libtool from |
| 385 | # the Makefile, instead of quoting the original, which is used later. |
| 386 | ECHO=$echo |
| 387 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 388 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 389 | fi |
| 390 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 391 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 392 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 393 | |
| 394 | tagnames=${tagnames+${tagnames},}CXX |
| 395 | |
| 396 | tagnames=${tagnames+${tagnames},}F77 |
| 397 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 398 | # Name of the host. |
| 399 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 400 | # so uname gets run too. |
| 401 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 402 | |
| 403 | exec 6>&1 |
| 404 | |
| 405 | # |
| 406 | # Initializations. |
| 407 | # |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 408 | ac_default_prefix=/usr/local |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 409 | ac_config_libobj_dir=. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 410 | cross_compiling=no |
| 411 | subdirs= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 412 | MFLAGS= |
| 413 | MAKEFLAGS= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 414 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 415 | |
| 416 | # Maximum number of lines to put in a shell here document. |
| 417 | # This variable seems obsolete. It should probably be removed, and |
| 418 | # only ac_max_sed_lines should be used. |
| 419 | : ${ac_max_here_lines=38} |
| 420 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 421 | # Identity of this package. |
| 422 | PACKAGE_NAME= |
| 423 | PACKAGE_TARNAME= |
| 424 | PACKAGE_VERSION= |
| 425 | PACKAGE_STRING= |
| 426 | PACKAGE_BUGREPORT= |
| 427 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 428 | ac_unique_file="src/sqlite.h.in" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 429 | # Factoring default headers for most tests. |
| 430 | ac_includes_default="\ |
| 431 | #include <stdio.h> |
| 432 | #if HAVE_SYS_TYPES_H |
| 433 | # include <sys/types.h> |
| 434 | #endif |
| 435 | #if HAVE_SYS_STAT_H |
| 436 | # include <sys/stat.h> |
| 437 | #endif |
| 438 | #if STDC_HEADERS |
| 439 | # include <stdlib.h> |
| 440 | # include <stddef.h> |
| 441 | #else |
| 442 | # if HAVE_STDLIB_H |
| 443 | # include <stdlib.h> |
| 444 | # endif |
| 445 | #endif |
| 446 | #if HAVE_STRING_H |
| 447 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 448 | # include <memory.h> |
| 449 | # endif |
| 450 | # include <string.h> |
| 451 | #endif |
| 452 | #if HAVE_STRINGS_H |
| 453 | # include <strings.h> |
| 454 | #endif |
| 455 | #if HAVE_INTTYPES_H |
| 456 | # include <inttypes.h> |
| 457 | #else |
| 458 | # if HAVE_STDINT_H |
| 459 | # include <stdint.h> |
| 460 | # endif |
| 461 | #endif |
| 462 | #if HAVE_UNISTD_H |
| 463 | # include <unistd.h> |
| 464 | #endif" |
| 465 | |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 466 | 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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA program_prefix VERSION RELEASE BUILD_CC BUILD_CFLAGS BUILD_LIBS TARGET_CC TARGET_CFLAGS TARGET_LINK TARGET_LFLAGS TARGET_RANLIB TARGET_AR THREADSAFE TARGET_THREAD_LIB ALLOWRELEASE TEMP_STORE BUILD_EXEEXT OS_UNIX OS_WIN TARGET_EXEEXT TARGET_LIBS TCL_VERSION TCL_BIN_DIR TCL_SRC_DIR TCL_LIBS TCL_INCLUDE_SPEC TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC HAVE_TCL TARGET_READLINE_LIBS TARGET_READLINE_INC TARGET_HAVE_READLINE LIBOBJS LTLIBOBJS' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 467 | ac_subst_files='' |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 468 | |
| 469 | # Initialize some variables set by options. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 470 | ac_init_help= |
| 471 | ac_init_version=false |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 472 | # The variables have the same names as the options, with |
| 473 | # dashes changed to underlines. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 474 | cache_file=/dev/null |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 475 | exec_prefix=NONE |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 476 | no_create= |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 477 | no_recursion= |
| 478 | prefix=NONE |
| 479 | program_prefix=NONE |
| 480 | program_suffix=NONE |
| 481 | program_transform_name=s,x,x, |
| 482 | silent= |
| 483 | site= |
| 484 | srcdir= |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 485 | verbose= |
| 486 | x_includes=NONE |
| 487 | x_libraries=NONE |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 488 | |
| 489 | # Installation directory options. |
| 490 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 491 | # and all the variables that are supposed to be based on exec_prefix |
| 492 | # by default will actually change. |
| 493 | # Use braces instead of parens because sh, perl, etc. also accept them. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 494 | bindir='${exec_prefix}/bin' |
| 495 | sbindir='${exec_prefix}/sbin' |
| 496 | libexecdir='${exec_prefix}/libexec' |
| 497 | datadir='${prefix}/share' |
| 498 | sysconfdir='${prefix}/etc' |
| 499 | sharedstatedir='${prefix}/com' |
| 500 | localstatedir='${prefix}/var' |
| 501 | libdir='${exec_prefix}/lib' |
| 502 | includedir='${prefix}/include' |
| 503 | oldincludedir='/usr/include' |
| 504 | infodir='${prefix}/info' |
| 505 | mandir='${prefix}/man' |
| 506 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 507 | ac_prev= |
| 508 | for ac_option |
| 509 | do |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 510 | # If the previous option needs an argument, assign it. |
| 511 | if test -n "$ac_prev"; then |
| 512 | eval "$ac_prev=\$ac_option" |
| 513 | ac_prev= |
| 514 | continue |
| 515 | fi |
| 516 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 517 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 518 | |
| 519 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 520 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 521 | case $ac_option in |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 522 | |
| 523 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 524 | ac_prev=bindir ;; |
| 525 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 526 | bindir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 527 | |
| 528 | -build | --build | --buil | --bui | --bu) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 529 | ac_prev=build_alias ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 530 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 531 | build_alias=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 532 | |
| 533 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 534 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 535 | ac_prev=cache_file ;; |
| 536 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 537 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 538 | cache_file=$ac_optarg ;; |
| 539 | |
| 540 | --config-cache | -C) |
| 541 | cache_file=config.cache ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 542 | |
| 543 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 544 | ac_prev=datadir ;; |
| 545 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 546 | | --da=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 547 | datadir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 548 | |
| 549 | -disable-* | --disable-*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 550 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 551 | # Reject names that are not valid shell variable names. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 552 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 553 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 554 | { (exit 1); exit 1; }; } |
| 555 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 556 | eval "enable_$ac_feature=no" ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 557 | |
| 558 | -enable-* | --enable-*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 559 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 560 | # Reject names that are not valid shell variable names. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 561 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 562 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 563 | { (exit 1); exit 1; }; } |
| 564 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 565 | case $ac_option in |
| 566 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 567 | *) ac_optarg=yes ;; |
| 568 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 569 | eval "enable_$ac_feature='$ac_optarg'" ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 570 | |
| 571 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 572 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 573 | | --exec | --exe | --ex) |
| 574 | ac_prev=exec_prefix ;; |
| 575 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 576 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 577 | | --exec=* | --exe=* | --ex=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 578 | exec_prefix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 579 | |
| 580 | -gas | --gas | --ga | --g) |
| 581 | # Obsolete; use --with-gas. |
| 582 | with_gas=yes ;; |
| 583 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 584 | -help | --help | --hel | --he | -h) |
| 585 | ac_init_help=long ;; |
| 586 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 587 | ac_init_help=recursive ;; |
| 588 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 589 | ac_init_help=short ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 590 | |
| 591 | -host | --host | --hos | --ho) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 592 | ac_prev=host_alias ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 593 | -host=* | --host=* | --hos=* | --ho=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 594 | host_alias=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 595 | |
| 596 | -includedir | --includedir | --includedi | --included | --include \ |
| 597 | | --includ | --inclu | --incl | --inc) |
| 598 | ac_prev=includedir ;; |
| 599 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 600 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 601 | includedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 602 | |
| 603 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 604 | ac_prev=infodir ;; |
| 605 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 606 | infodir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 607 | |
| 608 | -libdir | --libdir | --libdi | --libd) |
| 609 | ac_prev=libdir ;; |
| 610 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 611 | libdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 612 | |
| 613 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 614 | | --libexe | --libex | --libe) |
| 615 | ac_prev=libexecdir ;; |
| 616 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 617 | | --libexe=* | --libex=* | --libe=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 618 | libexecdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 619 | |
| 620 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 621 | | --localstate | --localstat | --localsta | --localst \ |
| 622 | | --locals | --local | --loca | --loc | --lo) |
| 623 | ac_prev=localstatedir ;; |
| 624 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 625 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 626 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 627 | localstatedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 628 | |
| 629 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 630 | ac_prev=mandir ;; |
| 631 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 632 | mandir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 633 | |
| 634 | -nfp | --nfp | --nf) |
| 635 | # Obsolete; use --without-fp. |
| 636 | with_fp=no ;; |
| 637 | |
| 638 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 639 | | --no-cr | --no-c | -n) |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 640 | no_create=yes ;; |
| 641 | |
| 642 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 643 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 644 | no_recursion=yes ;; |
| 645 | |
| 646 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 647 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 648 | | --oldin | --oldi | --old | --ol | --o) |
| 649 | ac_prev=oldincludedir ;; |
| 650 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 651 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 652 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 653 | oldincludedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 654 | |
| 655 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 656 | ac_prev=prefix ;; |
| 657 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 658 | prefix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 659 | |
| 660 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 661 | | --program-pre | --program-pr | --program-p) |
| 662 | ac_prev=program_prefix ;; |
| 663 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 664 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 665 | program_prefix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 666 | |
| 667 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 668 | | --program-suf | --program-su | --program-s) |
| 669 | ac_prev=program_suffix ;; |
| 670 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 671 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 672 | program_suffix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 673 | |
| 674 | -program-transform-name | --program-transform-name \ |
| 675 | | --program-transform-nam | --program-transform-na \ |
| 676 | | --program-transform-n | --program-transform- \ |
| 677 | | --program-transform | --program-transfor \ |
| 678 | | --program-transfo | --program-transf \ |
| 679 | | --program-trans | --program-tran \ |
| 680 | | --progr-tra | --program-tr | --program-t) |
| 681 | ac_prev=program_transform_name ;; |
| 682 | -program-transform-name=* | --program-transform-name=* \ |
| 683 | | --program-transform-nam=* | --program-transform-na=* \ |
| 684 | | --program-transform-n=* | --program-transform-=* \ |
| 685 | | --program-transform=* | --program-transfor=* \ |
| 686 | | --program-transfo=* | --program-transf=* \ |
| 687 | | --program-trans=* | --program-tran=* \ |
| 688 | | --progr-tra=* | --program-tr=* | --program-t=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 689 | program_transform_name=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 690 | |
| 691 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 692 | | -silent | --silent | --silen | --sile | --sil) |
| 693 | silent=yes ;; |
| 694 | |
| 695 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 696 | ac_prev=sbindir ;; |
| 697 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 698 | | --sbi=* | --sb=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 699 | sbindir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 700 | |
| 701 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 702 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 703 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 704 | | --sha | --sh) |
| 705 | ac_prev=sharedstatedir ;; |
| 706 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 707 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 708 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 709 | | --sha=* | --sh=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 710 | sharedstatedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 711 | |
| 712 | -site | --site | --sit) |
| 713 | ac_prev=site ;; |
| 714 | -site=* | --site=* | --sit=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 715 | site=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 716 | |
| 717 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 718 | ac_prev=srcdir ;; |
| 719 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 720 | srcdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 721 | |
| 722 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 723 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 724 | ac_prev=sysconfdir ;; |
| 725 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 726 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 727 | sysconfdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 728 | |
| 729 | -target | --target | --targe | --targ | --tar | --ta | --t) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 730 | ac_prev=target_alias ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 731 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 732 | target_alias=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 733 | |
| 734 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 735 | verbose=yes ;; |
| 736 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 737 | -version | --version | --versio | --versi | --vers | -V) |
| 738 | ac_init_version=: ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 739 | |
| 740 | -with-* | --with-*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 741 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 742 | # Reject names that are not valid shell variable names. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 743 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 744 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 745 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 746 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 747 | case $ac_option in |
| 748 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 749 | *) ac_optarg=yes ;; |
| 750 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 751 | eval "with_$ac_package='$ac_optarg'" ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 752 | |
| 753 | -without-* | --without-*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 754 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 755 | # Reject names that are not valid shell variable names. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 756 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 757 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 758 | { (exit 1); exit 1; }; } |
| 759 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 760 | eval "with_$ac_package=no" ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 761 | |
| 762 | --x) |
| 763 | # Obsolete; use --with-x. |
| 764 | with_x=yes ;; |
| 765 | |
| 766 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 767 | | --x-incl | --x-inc | --x-in | --x-i) |
| 768 | ac_prev=x_includes ;; |
| 769 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 770 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 771 | x_includes=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 772 | |
| 773 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 774 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 775 | ac_prev=x_libraries ;; |
| 776 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 777 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 778 | x_libraries=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 779 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 780 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 781 | Try \`$0 --help' for more information." >&2 |
| 782 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 783 | ;; |
| 784 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 785 | *=*) |
| 786 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 787 | # Reject names that are not valid shell variable names. |
| 788 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 789 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 790 | { (exit 1); exit 1; }; } |
| 791 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 792 | eval "$ac_envvar='$ac_optarg'" |
| 793 | export $ac_envvar ;; |
| 794 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 795 | *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 796 | # FIXME: should be removed in autoconf 3.0. |
| 797 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 798 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 799 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 800 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 801 | ;; |
| 802 | |
| 803 | esac |
| 804 | done |
| 805 | |
| 806 | if test -n "$ac_prev"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 807 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 808 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 809 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 810 | fi |
| 811 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 812 | # Be sure to have absolute paths. |
| 813 | for ac_var in exec_prefix prefix |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 814 | do |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 815 | eval ac_val=$`echo $ac_var` |
| 816 | case $ac_val in |
| 817 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 818 | *) { 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] | 819 | { (exit 1); exit 1; }; };; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 820 | esac |
| 821 | done |
| 822 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 823 | # Be sure to have absolute paths. |
| 824 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 825 | localstatedir libdir includedir oldincludedir infodir mandir |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 826 | do |
| 827 | eval ac_val=$`echo $ac_var` |
| 828 | case $ac_val in |
| 829 | [\\/$]* | ?:[\\/]* ) ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 830 | *) { 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] | 831 | { (exit 1); exit 1; }; };; |
| 832 | esac |
| 833 | done |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 834 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 835 | # There might be people who depend on the old broken behavior: `$host' |
| 836 | # used to hold the argument of --host etc. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 837 | # FIXME: To remove some day. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 838 | build=$build_alias |
| 839 | host=$host_alias |
| 840 | target=$target_alias |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 841 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 842 | # FIXME: To remove some day. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 843 | if test "x$host_alias" != x; then |
| 844 | if test "x$build_alias" = x; then |
| 845 | cross_compiling=maybe |
| 846 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 847 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 848 | elif test "x$build_alias" != "x$host_alias"; then |
| 849 | cross_compiling=yes |
| 850 | fi |
| 851 | fi |
| 852 | |
| 853 | ac_tool_prefix= |
| 854 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 855 | |
| 856 | test "$silent" = yes && exec 6>/dev/null |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 857 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 858 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 859 | # Find the source files, if location was not specified. |
| 860 | if test -z "$srcdir"; then |
| 861 | ac_srcdir_defaulted=yes |
| 862 | # Try the directory containing this script, then its parent. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 863 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 864 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 865 | X"$0" : 'X\(//\)[^/]' \| \ |
| 866 | X"$0" : 'X\(//\)$' \| \ |
| 867 | X"$0" : 'X\(/\)' \| \ |
| 868 | . : '\(.\)' 2>/dev/null || |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 869 | echo X"$0" | |
| 870 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 871 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 872 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 873 | /^X\(\/\).*/{ s//\1/; q; } |
| 874 | s/.*/./; q'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 875 | srcdir=$ac_confdir |
| 876 | if test ! -r $srcdir/$ac_unique_file; then |
| 877 | srcdir=.. |
| 878 | fi |
| 879 | else |
| 880 | ac_srcdir_defaulted=no |
| 881 | fi |
| 882 | if test ! -r $srcdir/$ac_unique_file; then |
| 883 | if test "$ac_srcdir_defaulted" = yes; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 884 | { 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] | 885 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 886 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 887 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 888 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 889 | fi |
| 890 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 891 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 892 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 893 | { (exit 1); exit 1; }; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 894 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 895 | ac_env_build_alias_set=${build_alias+set} |
| 896 | ac_env_build_alias_value=$build_alias |
| 897 | ac_cv_env_build_alias_set=${build_alias+set} |
| 898 | ac_cv_env_build_alias_value=$build_alias |
| 899 | ac_env_host_alias_set=${host_alias+set} |
| 900 | ac_env_host_alias_value=$host_alias |
| 901 | ac_cv_env_host_alias_set=${host_alias+set} |
| 902 | ac_cv_env_host_alias_value=$host_alias |
| 903 | ac_env_target_alias_set=${target_alias+set} |
| 904 | ac_env_target_alias_value=$target_alias |
| 905 | ac_cv_env_target_alias_set=${target_alias+set} |
| 906 | ac_cv_env_target_alias_value=$target_alias |
| 907 | ac_env_CC_set=${CC+set} |
| 908 | ac_env_CC_value=$CC |
| 909 | ac_cv_env_CC_set=${CC+set} |
| 910 | ac_cv_env_CC_value=$CC |
| 911 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 912 | ac_env_CFLAGS_value=$CFLAGS |
| 913 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 914 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 915 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 916 | ac_env_LDFLAGS_value=$LDFLAGS |
| 917 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 918 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 919 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 920 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 921 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 922 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 923 | ac_env_CPP_set=${CPP+set} |
| 924 | ac_env_CPP_value=$CPP |
| 925 | ac_cv_env_CPP_set=${CPP+set} |
| 926 | ac_cv_env_CPP_value=$CPP |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 927 | ac_env_CXX_set=${CXX+set} |
| 928 | ac_env_CXX_value=$CXX |
| 929 | ac_cv_env_CXX_set=${CXX+set} |
| 930 | ac_cv_env_CXX_value=$CXX |
| 931 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 932 | ac_env_CXXFLAGS_value=$CXXFLAGS |
| 933 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 934 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
| 935 | ac_env_CXXCPP_set=${CXXCPP+set} |
| 936 | ac_env_CXXCPP_value=$CXXCPP |
| 937 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
| 938 | ac_cv_env_CXXCPP_value=$CXXCPP |
| 939 | ac_env_F77_set=${F77+set} |
| 940 | ac_env_F77_value=$F77 |
| 941 | ac_cv_env_F77_set=${F77+set} |
| 942 | ac_cv_env_F77_value=$F77 |
| 943 | ac_env_FFLAGS_set=${FFLAGS+set} |
| 944 | ac_env_FFLAGS_value=$FFLAGS |
| 945 | ac_cv_env_FFLAGS_set=${FFLAGS+set} |
| 946 | ac_cv_env_FFLAGS_value=$FFLAGS |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 947 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 948 | # |
| 949 | # Report the --help message. |
| 950 | # |
| 951 | if test "$ac_init_help" = "long"; then |
| 952 | # Omit some internal or obsolete options to make the list less imposing. |
| 953 | # 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] | 954 | cat <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 955 | \`configure' configures this package to adapt to many kinds of systems. |
| 956 | |
| 957 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 958 | |
| 959 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 960 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 961 | |
| 962 | Defaults for the options are specified in brackets. |
| 963 | |
| 964 | Configuration: |
| 965 | -h, --help display this help and exit |
| 966 | --help=short display options specific to this package |
| 967 | --help=recursive display the short help of all the included packages |
| 968 | -V, --version display version information and exit |
| 969 | -q, --quiet, --silent do not print \`checking...' messages |
| 970 | --cache-file=FILE cache test results in FILE [disabled] |
| 971 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 972 | -n, --no-create do not create output files |
| 973 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 974 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 975 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 976 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 977 | cat <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 978 | Installation directories: |
| 979 | --prefix=PREFIX install architecture-independent files in PREFIX |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 980 | [$ac_default_prefix] |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 981 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 982 | [PREFIX] |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 983 | |
| 984 | By default, \`make install' will install all the files in |
| 985 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 986 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 987 | for instance \`--prefix=\$HOME'. |
| 988 | |
| 989 | For better control, use the options below. |
| 990 | |
| 991 | Fine tuning of the installation directories: |
| 992 | --bindir=DIR user executables [EPREFIX/bin] |
| 993 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 994 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 995 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 996 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 997 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 998 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 999 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1000 | --includedir=DIR C header files [PREFIX/include] |
| 1001 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1002 | --infodir=DIR info documentation [PREFIX/info] |
| 1003 | --mandir=DIR man documentation [PREFIX/man] |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1004 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1005 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1006 | cat <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1007 | |
| 1008 | System types: |
| 1009 | --build=BUILD configure for building on BUILD [guessed] |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1010 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1011 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1012 | fi |
| 1013 | |
| 1014 | if test -n "$ac_init_help"; then |
| 1015 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1016 | cat <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1017 | |
| 1018 | Optional Features: |
| 1019 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1020 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1021 | --enable-shared[=PKGS] |
| 1022 | build shared libraries [default=yes] |
| 1023 | --enable-static[=PKGS] |
| 1024 | build static libraries [default=yes] |
| 1025 | --enable-fast-install[=PKGS] |
| 1026 | optimize for fast installation [default=yes] |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1027 | --disable-libtool-lock avoid locking (might break parallel builds) |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 1028 | --enable-threadsafe Support threadsafe operation |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 1029 | --enable-releasemode Support libtool link to release mode |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 1030 | --enable-tempstore Use an in-ram database for temporary tables (never,no,yes,always) |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 1031 | --disable-tcl do not build TCL extension |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1032 | |
| 1033 | Optional Packages: |
| 1034 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1035 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1036 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1037 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1038 | both] |
| 1039 | --with-tags[=TAGS] |
| 1040 | include additional configurations [automatic] |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1041 | --with-hints=FILE Read configuration options from FILE |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 1042 | --with-tcl directory containing tcl configuration (tclConfig.sh) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1043 | |
| 1044 | Some influential environment variables: |
| 1045 | CC C compiler command |
| 1046 | CFLAGS C compiler flags |
| 1047 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1048 | nonstandard directory <lib dir> |
| 1049 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 1050 | headers in a nonstandard directory <include dir> |
| 1051 | CPP C preprocessor |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1052 | CXX C++ compiler command |
| 1053 | CXXFLAGS C++ compiler flags |
| 1054 | CXXCPP C++ preprocessor |
| 1055 | F77 Fortran 77 compiler command |
| 1056 | FFLAGS Fortran 77 compiler flags |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1057 | |
| 1058 | Use these variables to override the choices made by `configure' or to help |
| 1059 | it to find libraries and programs with nonstandard names/locations. |
| 1060 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1061 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1062 | fi |
| 1063 | |
| 1064 | if test "$ac_init_help" = "recursive"; then |
| 1065 | # If there are subdirs, report their specific --help. |
| 1066 | ac_popdir=`pwd` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1067 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1068 | test -d $ac_dir || continue |
| 1069 | ac_builddir=. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1070 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1071 | if test "$ac_dir" != .; then |
| 1072 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 1073 | # A "../" for each directory in $ac_dir_suffix. |
| 1074 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 1075 | else |
| 1076 | ac_dir_suffix= ac_top_builddir= |
| 1077 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1078 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1079 | case $srcdir in |
| 1080 | .) # No --srcdir option. We are building in place. |
| 1081 | ac_srcdir=. |
| 1082 | if test -z "$ac_top_builddir"; then |
| 1083 | ac_top_srcdir=. |
| 1084 | else |
| 1085 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 1086 | fi ;; |
| 1087 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 1088 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1089 | ac_top_srcdir=$srcdir ;; |
| 1090 | *) # Relative path. |
| 1091 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 1092 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 1093 | esac |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1094 | |
| 1095 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 1096 | # the directories may not exist. |
| 1097 | case `pwd` in |
| 1098 | .) ac_abs_builddir="$ac_dir";; |
| 1099 | *) |
| 1100 | case "$ac_dir" in |
| 1101 | .) ac_abs_builddir=`pwd`;; |
| 1102 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 1103 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 1104 | esac;; |
| 1105 | esac |
| 1106 | case $ac_abs_builddir in |
| 1107 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 1108 | *) |
| 1109 | case ${ac_top_builddir}. in |
| 1110 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 1111 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 1112 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 1113 | esac;; |
| 1114 | esac |
| 1115 | case $ac_abs_builddir in |
| 1116 | .) ac_abs_srcdir=$ac_srcdir;; |
| 1117 | *) |
| 1118 | case $ac_srcdir in |
| 1119 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 1120 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 1121 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 1122 | esac;; |
| 1123 | esac |
| 1124 | case $ac_abs_builddir in |
| 1125 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 1126 | *) |
| 1127 | case $ac_top_srcdir in |
| 1128 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 1129 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 1130 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 1131 | esac;; |
| 1132 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1133 | |
| 1134 | cd $ac_dir |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1135 | # Check for guested configure; otherwise get Cygnus style configure. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1136 | if test -f $ac_srcdir/configure.gnu; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1137 | echo |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1138 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 1139 | elif test -f $ac_srcdir/configure; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1140 | echo |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1141 | $SHELL $ac_srcdir/configure --help=recursive |
| 1142 | elif test -f $ac_srcdir/configure.ac || |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1143 | test -f $ac_srcdir/configure.in; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1144 | echo |
| 1145 | $ac_configure --help |
| 1146 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1147 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1148 | fi |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 1149 | cd $ac_popdir |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1150 | done |
| 1151 | fi |
| 1152 | |
| 1153 | test -n "$ac_init_help" && exit 0 |
| 1154 | if $ac_init_version; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1155 | cat <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1156 | |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1157 | Copyright (C) 2003 Free Software Foundation, Inc. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1158 | This configure script is free software; the Free Software Foundation |
| 1159 | gives unlimited permission to copy, distribute and modify it. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1160 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1161 | exit 0 |
| 1162 | fi |
| 1163 | exec 5>config.log |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1164 | cat >&5 <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1165 | This file contains any messages produced by compilers while |
| 1166 | running configure, to aid debugging if configure makes a mistake. |
| 1167 | |
| 1168 | It was created by $as_me, which was |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1169 | generated by GNU Autoconf 2.59. Invocation command line was |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1170 | |
| 1171 | $ $0 $@ |
| 1172 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1173 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1174 | { |
| 1175 | cat <<_ASUNAME |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1176 | ## --------- ## |
| 1177 | ## Platform. ## |
| 1178 | ## --------- ## |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1179 | |
| 1180 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1181 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1182 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1183 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1184 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1185 | |
| 1186 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1187 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1188 | |
| 1189 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1190 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1191 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1192 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1193 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1194 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1195 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1196 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1197 | _ASUNAME |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1198 | |
| 1199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1200 | for as_dir in $PATH |
| 1201 | do |
| 1202 | IFS=$as_save_IFS |
| 1203 | test -z "$as_dir" && as_dir=. |
| 1204 | echo "PATH: $as_dir" |
| 1205 | done |
| 1206 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1207 | } >&5 |
| 1208 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1209 | cat >&5 <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1210 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1211 | |
| 1212 | ## ----------- ## |
| 1213 | ## Core tests. ## |
| 1214 | ## ----------- ## |
| 1215 | |
| 1216 | _ACEOF |
| 1217 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1218 | |
| 1219 | # Keep a trace of the command line. |
| 1220 | # 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] | 1221 | # 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] | 1222 | # Also quote any args containing shell meta-characters. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1223 | # Make two passes to allow for proper duplicate-argument suppression. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1224 | ac_configure_args= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1225 | ac_configure_args0= |
| 1226 | ac_configure_args1= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1227 | ac_sep= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1228 | ac_must_keep_next=false |
| 1229 | for ac_pass in 1 2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1230 | do |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1231 | for ac_arg |
| 1232 | do |
| 1233 | case $ac_arg in |
| 1234 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1235 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1236 | | -silent | --silent | --silen | --sile | --sil) |
| 1237 | continue ;; |
| 1238 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1239 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1240 | esac |
| 1241 | case $ac_pass in |
| 1242 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1243 | 2) |
| 1244 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1245 | if test $ac_must_keep_next = true; then |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1246 | ac_must_keep_next=false # Got value, back to normal. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1247 | else |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1248 | case $ac_arg in |
| 1249 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1250 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1251 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1252 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1253 | case "$ac_configure_args0 " in |
| 1254 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1255 | esac |
| 1256 | ;; |
| 1257 | -* ) ac_must_keep_next=true ;; |
| 1258 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1259 | fi |
| 1260 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1261 | # Get rid of the leading space. |
| 1262 | ac_sep=" " |
| 1263 | ;; |
| 1264 | esac |
| 1265 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1266 | done |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1267 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1268 | $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] | 1269 | |
| 1270 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1271 | # config.log. We remove comments because anyway the quotes in there |
| 1272 | # would cause problems or look ugly. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1273 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1274 | # such as our DU 5.0 friend, will then `close' the trap. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1275 | trap 'exit_status=$? |
| 1276 | # Save into config.log some information that might help in debugging. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1277 | { |
| 1278 | echo |
| 1279 | |
| 1280 | cat <<\_ASBOX |
| 1281 | ## ---------------- ## |
| 1282 | ## Cache variables. ## |
| 1283 | ## ---------------- ## |
| 1284 | _ASBOX |
| 1285 | echo |
| 1286 | # The following way of writing the cache mishandles newlines in values, |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1287 | { |
| 1288 | (set) 2>&1 | |
| 1289 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1290 | *ac_space=\ *) |
| 1291 | sed -n \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1292 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1293 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1294 | ;; |
| 1295 | *) |
| 1296 | sed -n \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1297 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1298 | ;; |
| 1299 | esac; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1300 | } |
| 1301 | echo |
| 1302 | |
| 1303 | cat <<\_ASBOX |
| 1304 | ## ----------------- ## |
| 1305 | ## Output variables. ## |
| 1306 | ## ----------------- ## |
| 1307 | _ASBOX |
| 1308 | echo |
| 1309 | for ac_var in $ac_subst_vars |
| 1310 | do |
| 1311 | eval ac_val=$`echo $ac_var` |
| 1312 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1313 | done | sort |
| 1314 | echo |
| 1315 | |
| 1316 | if test -n "$ac_subst_files"; then |
| 1317 | cat <<\_ASBOX |
| 1318 | ## ------------- ## |
| 1319 | ## Output files. ## |
| 1320 | ## ------------- ## |
| 1321 | _ASBOX |
| 1322 | echo |
| 1323 | for ac_var in $ac_subst_files |
| 1324 | do |
| 1325 | eval ac_val=$`echo $ac_var` |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1326 | echo "$ac_var='"'"'$ac_val'"'"'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1327 | done | sort |
| 1328 | echo |
| 1329 | fi |
| 1330 | |
| 1331 | if test -s confdefs.h; then |
| 1332 | cat <<\_ASBOX |
| 1333 | ## ----------- ## |
| 1334 | ## confdefs.h. ## |
| 1335 | ## ----------- ## |
| 1336 | _ASBOX |
| 1337 | echo |
| 1338 | sed "/^$/d" confdefs.h | sort |
| 1339 | echo |
| 1340 | fi |
| 1341 | test "$ac_signal" != 0 && |
| 1342 | echo "$as_me: caught signal $ac_signal" |
| 1343 | echo "$as_me: exit $exit_status" |
| 1344 | } >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1345 | rm -f core *.core && |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1346 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1347 | exit $exit_status |
| 1348 | ' 0 |
| 1349 | for ac_signal in 1 2 13 15; do |
| 1350 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1351 | done |
| 1352 | ac_signal=0 |
| 1353 | |
| 1354 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1355 | rm -rf conftest* confdefs.h |
| 1356 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1357 | echo >confdefs.h |
| 1358 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1359 | # Predefined preprocessor variables. |
| 1360 | |
| 1361 | cat >>confdefs.h <<_ACEOF |
| 1362 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1363 | _ACEOF |
| 1364 | |
| 1365 | |
| 1366 | cat >>confdefs.h <<_ACEOF |
| 1367 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1368 | _ACEOF |
| 1369 | |
| 1370 | |
| 1371 | cat >>confdefs.h <<_ACEOF |
| 1372 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1373 | _ACEOF |
| 1374 | |
| 1375 | |
| 1376 | cat >>confdefs.h <<_ACEOF |
| 1377 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1378 | _ACEOF |
| 1379 | |
| 1380 | |
| 1381 | cat >>confdefs.h <<_ACEOF |
| 1382 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1383 | _ACEOF |
| 1384 | |
| 1385 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1386 | # Let the site file select an alternate cache file if it wants to. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1387 | # Prefer explicitly selected file to automatically selected ones. |
| 1388 | if test -z "$CONFIG_SITE"; then |
| 1389 | if test "x$prefix" != xNONE; then |
| 1390 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1391 | else |
| 1392 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1393 | fi |
| 1394 | fi |
| 1395 | for ac_site_file in $CONFIG_SITE; do |
| 1396 | if test -r "$ac_site_file"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1397 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1398 | echo "$as_me: loading site script $ac_site_file" >&6;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1399 | sed 's/^/| /' "$ac_site_file" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1400 | . "$ac_site_file" |
| 1401 | fi |
| 1402 | done |
| 1403 | |
| 1404 | if test -r "$cache_file"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1405 | # Some versions of bash will fail to source /dev/null (special |
| 1406 | # files actually), so we avoid doing that. |
| 1407 | if test -f "$cache_file"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1408 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1409 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1410 | case $cache_file in |
| 1411 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1412 | *) . ./$cache_file;; |
| 1413 | esac |
| 1414 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1415 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1416 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1417 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1418 | >$cache_file |
| 1419 | fi |
| 1420 | |
| 1421 | # Check that the precious variables saved in the cache have kept the same |
| 1422 | # value. |
| 1423 | ac_cache_corrupted=false |
| 1424 | for ac_var in `(set) 2>&1 | |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1425 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1426 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1427 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1428 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1429 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1430 | case $ac_old_set,$ac_new_set in |
| 1431 | set,) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1432 | { 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] | 1433 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1434 | ac_cache_corrupted=: ;; |
| 1435 | ,set) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1436 | { 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] | 1437 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1438 | ac_cache_corrupted=: ;; |
| 1439 | ,);; |
| 1440 | *) |
| 1441 | if test "x$ac_old_val" != "x$ac_new_val"; then |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1442 | { 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] | 1443 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1444 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1445 | echo "$as_me: former value: $ac_old_val" >&2;} |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1446 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1447 | echo "$as_me: current value: $ac_new_val" >&2;} |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1448 | ac_cache_corrupted=: |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1449 | fi;; |
| 1450 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1451 | # Pass precious variables to config.status. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1452 | if test "$ac_new_set" = set; then |
| 1453 | case $ac_new_val in |
| 1454 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1455 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1456 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1457 | esac |
| 1458 | case " $ac_configure_args " in |
| 1459 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1460 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1461 | esac |
| 1462 | fi |
| 1463 | done |
| 1464 | if $ac_cache_corrupted; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1465 | { 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] | 1466 | 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] | 1467 | { { 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] | 1468 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1469 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1470 | fi |
| 1471 | |
| 1472 | ac_ext=c |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1473 | ac_cpp='$CPP $CPPFLAGS' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1474 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1475 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1476 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1477 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1478 | |
| 1479 | |
| 1480 | |
| 1481 | |
| 1482 | |
| 1483 | |
| 1484 | |
| 1485 | |
| 1486 | |
| 1487 | |
| 1488 | |
| 1489 | |
| 1490 | |
| 1491 | |
| 1492 | |
| 1493 | |
| 1494 | |
| 1495 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1496 | |
| 1497 | # The following RCS revision string applies to configure.in |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 1498 | # $Revision: 1.27 $ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1499 | |
| 1500 | ######### |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1501 | # Programs needed |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1502 | # |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1503 | # Check whether --enable-shared or --disable-shared was given. |
| 1504 | if test "${enable_shared+set}" = set; then |
| 1505 | enableval="$enable_shared" |
| 1506 | p=${PACKAGE-default} |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1507 | case $enableval in |
| 1508 | yes) enable_shared=yes ;; |
| 1509 | no) enable_shared=no ;; |
| 1510 | *) |
| 1511 | enable_shared=no |
| 1512 | # Look at the argument we got. We use all the common list separators. |
| 1513 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 1514 | for pkg in $enableval; do |
| 1515 | IFS="$lt_save_ifs" |
| 1516 | if test "X$pkg" = "X$p"; then |
| 1517 | enable_shared=yes |
| 1518 | fi |
| 1519 | done |
| 1520 | IFS="$lt_save_ifs" |
| 1521 | ;; |
| 1522 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1523 | else |
| 1524 | enable_shared=yes |
| 1525 | fi; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1526 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1527 | # Check whether --enable-static or --disable-static was given. |
| 1528 | if test "${enable_static+set}" = set; then |
| 1529 | enableval="$enable_static" |
| 1530 | p=${PACKAGE-default} |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1531 | case $enableval in |
| 1532 | yes) enable_static=yes ;; |
| 1533 | no) enable_static=no ;; |
| 1534 | *) |
| 1535 | enable_static=no |
| 1536 | # Look at the argument we got. We use all the common list separators. |
| 1537 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 1538 | for pkg in $enableval; do |
| 1539 | IFS="$lt_save_ifs" |
| 1540 | if test "X$pkg" = "X$p"; then |
| 1541 | enable_static=yes |
| 1542 | fi |
| 1543 | done |
| 1544 | IFS="$lt_save_ifs" |
| 1545 | ;; |
| 1546 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1547 | else |
| 1548 | enable_static=yes |
| 1549 | fi; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1550 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1551 | # Check whether --enable-fast-install or --disable-fast-install was given. |
| 1552 | if test "${enable_fast_install+set}" = set; then |
| 1553 | enableval="$enable_fast_install" |
| 1554 | p=${PACKAGE-default} |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1555 | case $enableval in |
| 1556 | yes) enable_fast_install=yes ;; |
| 1557 | no) enable_fast_install=no ;; |
| 1558 | *) |
| 1559 | enable_fast_install=no |
| 1560 | # Look at the argument we got. We use all the common list separators. |
| 1561 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 1562 | for pkg in $enableval; do |
| 1563 | IFS="$lt_save_ifs" |
| 1564 | if test "X$pkg" = "X$p"; then |
| 1565 | enable_fast_install=yes |
| 1566 | fi |
| 1567 | done |
| 1568 | IFS="$lt_save_ifs" |
| 1569 | ;; |
| 1570 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1571 | else |
| 1572 | enable_fast_install=yes |
| 1573 | fi; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1574 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1575 | ac_aux_dir= |
| 1576 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1577 | if test -f $ac_dir/install-sh; then |
| 1578 | ac_aux_dir=$ac_dir |
| 1579 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1580 | break |
| 1581 | elif test -f $ac_dir/install.sh; then |
| 1582 | ac_aux_dir=$ac_dir |
| 1583 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1584 | break |
| 1585 | elif test -f $ac_dir/shtool; then |
| 1586 | ac_aux_dir=$ac_dir |
| 1587 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1588 | break |
| 1589 | fi |
| 1590 | done |
| 1591 | if test -z "$ac_aux_dir"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1592 | { { 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] | 1593 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 1594 | { (exit 1); exit 1; }; } |
| 1595 | fi |
| 1596 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1597 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1598 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1599 | |
| 1600 | # Make sure we can run config.sub. |
| 1601 | $ac_config_sub sun4 >/dev/null 2>&1 || |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1602 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1603 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1604 | { (exit 1); exit 1; }; } |
| 1605 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1606 | echo "$as_me:$LINENO: checking build system type" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1607 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1608 | if test "${ac_cv_build+set}" = set; then |
| 1609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1610 | else |
| 1611 | ac_cv_build_alias=$build_alias |
| 1612 | test -z "$ac_cv_build_alias" && |
| 1613 | ac_cv_build_alias=`$ac_config_guess` |
| 1614 | test -z "$ac_cv_build_alias" && |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1615 | { { 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] | 1616 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1617 | { (exit 1); exit 1; }; } |
| 1618 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1619 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1620 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1621 | { (exit 1); exit 1; }; } |
| 1622 | |
| 1623 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1624 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1625 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1626 | build=$ac_cv_build |
| 1627 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1628 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1629 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1630 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1631 | |
| 1632 | echo "$as_me:$LINENO: checking host system type" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1633 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1634 | if test "${ac_cv_host+set}" = set; then |
| 1635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1636 | else |
| 1637 | ac_cv_host_alias=$host_alias |
| 1638 | test -z "$ac_cv_host_alias" && |
| 1639 | ac_cv_host_alias=$ac_cv_build_alias |
| 1640 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1641 | { { 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] | 1642 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1643 | { (exit 1); exit 1; }; } |
| 1644 | |
| 1645 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1646 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1647 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1648 | host=$ac_cv_host |
| 1649 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1650 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1651 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1652 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1653 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1654 | ac_ext=c |
| 1655 | ac_cpp='$CPP $CPPFLAGS' |
| 1656 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1657 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1658 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1659 | if test -n "$ac_tool_prefix"; then |
| 1660 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1661 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1662 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1663 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1664 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1666 | else |
| 1667 | if test -n "$CC"; then |
| 1668 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1669 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1671 | for as_dir in $PATH |
| 1672 | do |
| 1673 | IFS=$as_save_IFS |
| 1674 | test -z "$as_dir" && as_dir=. |
| 1675 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1676 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1677 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1678 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1679 | break 2 |
| 1680 | fi |
| 1681 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1682 | done |
| 1683 | |
| 1684 | fi |
| 1685 | fi |
| 1686 | CC=$ac_cv_prog_CC |
| 1687 | if test -n "$CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1688 | echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1689 | echo "${ECHO_T}$CC" >&6 |
| 1690 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1691 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1692 | echo "${ECHO_T}no" >&6 |
| 1693 | fi |
| 1694 | |
| 1695 | fi |
| 1696 | if test -z "$ac_cv_prog_CC"; then |
| 1697 | ac_ct_CC=$CC |
| 1698 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1699 | set dummy gcc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1700 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1701 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1702 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1704 | else |
| 1705 | if test -n "$ac_ct_CC"; then |
| 1706 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1707 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1709 | for as_dir in $PATH |
| 1710 | do |
| 1711 | IFS=$as_save_IFS |
| 1712 | test -z "$as_dir" && as_dir=. |
| 1713 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1714 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1715 | ac_cv_prog_ac_ct_CC="gcc" |
| 1716 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1717 | break 2 |
| 1718 | fi |
| 1719 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1720 | done |
| 1721 | |
| 1722 | fi |
| 1723 | fi |
| 1724 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1725 | if test -n "$ac_ct_CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1726 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1727 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1728 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1729 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1730 | echo "${ECHO_T}no" >&6 |
| 1731 | fi |
| 1732 | |
| 1733 | CC=$ac_ct_CC |
| 1734 | else |
| 1735 | CC="$ac_cv_prog_CC" |
| 1736 | fi |
| 1737 | |
| 1738 | if test -z "$CC"; then |
| 1739 | if test -n "$ac_tool_prefix"; then |
| 1740 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1741 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1742 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1743 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1744 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1746 | else |
| 1747 | if test -n "$CC"; then |
| 1748 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1749 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1751 | for as_dir in $PATH |
| 1752 | do |
| 1753 | IFS=$as_save_IFS |
| 1754 | test -z "$as_dir" && as_dir=. |
| 1755 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1756 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1757 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1758 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1759 | break 2 |
| 1760 | fi |
| 1761 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1762 | done |
| 1763 | |
| 1764 | fi |
| 1765 | fi |
| 1766 | CC=$ac_cv_prog_CC |
| 1767 | if test -n "$CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1768 | echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1769 | echo "${ECHO_T}$CC" >&6 |
| 1770 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1771 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1772 | echo "${ECHO_T}no" >&6 |
| 1773 | fi |
| 1774 | |
| 1775 | fi |
| 1776 | if test -z "$ac_cv_prog_CC"; then |
| 1777 | ac_ct_CC=$CC |
| 1778 | # Extract the first word of "cc", so it can be a program name with args. |
| 1779 | set dummy cc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1780 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1781 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1782 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1784 | else |
| 1785 | if test -n "$ac_ct_CC"; then |
| 1786 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1787 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1789 | for as_dir in $PATH |
| 1790 | do |
| 1791 | IFS=$as_save_IFS |
| 1792 | test -z "$as_dir" && as_dir=. |
| 1793 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1794 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1795 | ac_cv_prog_ac_ct_CC="cc" |
| 1796 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1797 | break 2 |
| 1798 | fi |
| 1799 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1800 | done |
| 1801 | |
| 1802 | fi |
| 1803 | fi |
| 1804 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1805 | if test -n "$ac_ct_CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1806 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1807 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1808 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1809 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1810 | echo "${ECHO_T}no" >&6 |
| 1811 | fi |
| 1812 | |
| 1813 | CC=$ac_ct_CC |
| 1814 | else |
| 1815 | CC="$ac_cv_prog_CC" |
| 1816 | fi |
| 1817 | |
| 1818 | fi |
| 1819 | if test -z "$CC"; then |
| 1820 | # Extract the first word of "cc", so it can be a program name with args. |
| 1821 | set dummy cc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1822 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1823 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1824 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1826 | else |
| 1827 | if test -n "$CC"; then |
| 1828 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1829 | else |
| 1830 | ac_prog_rejected=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1832 | for as_dir in $PATH |
| 1833 | do |
| 1834 | IFS=$as_save_IFS |
| 1835 | test -z "$as_dir" && as_dir=. |
| 1836 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1837 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1838 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1839 | ac_prog_rejected=yes |
| 1840 | continue |
| 1841 | fi |
| 1842 | ac_cv_prog_CC="cc" |
| 1843 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1844 | break 2 |
| 1845 | fi |
| 1846 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1847 | done |
| 1848 | |
| 1849 | if test $ac_prog_rejected = yes; then |
| 1850 | # We found a bogon in the path, so make sure we never use it. |
| 1851 | set dummy $ac_cv_prog_CC |
| 1852 | shift |
| 1853 | if test $# != 0; then |
| 1854 | # We chose a different compiler from the bogus one. |
| 1855 | # However, it has the same basename, so the bogon will be chosen |
| 1856 | # first if we set CC to just the basename; use the full file name. |
| 1857 | shift |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1858 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1859 | fi |
| 1860 | fi |
| 1861 | fi |
| 1862 | fi |
| 1863 | CC=$ac_cv_prog_CC |
| 1864 | if test -n "$CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1865 | echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1866 | echo "${ECHO_T}$CC" >&6 |
| 1867 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1868 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1869 | echo "${ECHO_T}no" >&6 |
| 1870 | fi |
| 1871 | |
| 1872 | fi |
| 1873 | if test -z "$CC"; then |
| 1874 | if test -n "$ac_tool_prefix"; then |
| 1875 | for ac_prog in cl |
| 1876 | do |
| 1877 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1878 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1879 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1880 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1881 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1883 | else |
| 1884 | if test -n "$CC"; then |
| 1885 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1886 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1888 | for as_dir in $PATH |
| 1889 | do |
| 1890 | IFS=$as_save_IFS |
| 1891 | test -z "$as_dir" && as_dir=. |
| 1892 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1893 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1894 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1895 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1896 | break 2 |
| 1897 | fi |
| 1898 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1899 | done |
| 1900 | |
| 1901 | fi |
| 1902 | fi |
| 1903 | CC=$ac_cv_prog_CC |
| 1904 | if test -n "$CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1905 | echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1906 | echo "${ECHO_T}$CC" >&6 |
| 1907 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1908 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1909 | echo "${ECHO_T}no" >&6 |
| 1910 | fi |
| 1911 | |
| 1912 | test -n "$CC" && break |
| 1913 | done |
| 1914 | fi |
| 1915 | if test -z "$CC"; then |
| 1916 | ac_ct_CC=$CC |
| 1917 | for ac_prog in cl |
| 1918 | do |
| 1919 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1920 | set dummy $ac_prog; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1921 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1922 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1923 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1925 | else |
| 1926 | if test -n "$ac_ct_CC"; then |
| 1927 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1928 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1930 | for as_dir in $PATH |
| 1931 | do |
| 1932 | IFS=$as_save_IFS |
| 1933 | test -z "$as_dir" && as_dir=. |
| 1934 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1935 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1936 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1937 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1938 | break 2 |
| 1939 | fi |
| 1940 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1941 | done |
| 1942 | |
| 1943 | fi |
| 1944 | fi |
| 1945 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1946 | if test -n "$ac_ct_CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1947 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1948 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1949 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1950 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1951 | echo "${ECHO_T}no" >&6 |
| 1952 | fi |
| 1953 | |
| 1954 | test -n "$ac_ct_CC" && break |
| 1955 | done |
| 1956 | |
| 1957 | CC=$ac_ct_CC |
| 1958 | fi |
| 1959 | |
| 1960 | fi |
| 1961 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1962 | |
| 1963 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1964 | See \`config.log' for more details." >&5 |
| 1965 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1966 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1967 | { (exit 1); exit 1; }; } |
| 1968 | |
| 1969 | # Provide some information about the compiler. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1970 | echo "$as_me:$LINENO:" \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1971 | "checking for C compiler version" >&5 |
| 1972 | ac_compiler=`set X $ac_compile; echo $2` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1973 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1974 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1975 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1977 | (exit $ac_status); } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1978 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1979 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1980 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1982 | (exit $ac_status); } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1983 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1984 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1985 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1987 | (exit $ac_status); } |
| 1988 | |
| 1989 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1990 | /* confdefs.h. */ |
| 1991 | _ACEOF |
| 1992 | cat confdefs.h >>conftest.$ac_ext |
| 1993 | cat >>conftest.$ac_ext <<_ACEOF |
| 1994 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1995 | |
| 1996 | int |
| 1997 | main () |
| 1998 | { |
| 1999 | |
| 2000 | ; |
| 2001 | return 0; |
| 2002 | } |
| 2003 | _ACEOF |
| 2004 | ac_clean_files_save=$ac_clean_files |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2005 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2006 | # Try to create an executable without -o first, disregard a.out. |
| 2007 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2008 | # of exeext. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2009 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2010 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2011 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2012 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2013 | (eval $ac_link_default) 2>&5 |
| 2014 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2016 | (exit $ac_status); }; then |
| 2017 | # Find the output, starting from the most likely. This scheme is |
| 2018 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2019 | # resort. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2020 | |
| 2021 | # Be careful to initialize this variable, since it used to be cached. |
| 2022 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2023 | ac_cv_exeext= |
| 2024 | # b.out is created by i960 compilers. |
| 2025 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2026 | do |
| 2027 | test -f "$ac_file" || continue |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2028 | case $ac_file in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2029 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2030 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2031 | conftest.$ac_ext ) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2032 | # This is the source file. |
| 2033 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2034 | [ab].out ) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2035 | # We found the default executable, but exeext='' is most |
| 2036 | # certainly right. |
| 2037 | break;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2038 | *.* ) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2039 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2040 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2041 | # but it would be cool to find out if it's true. Does anybody |
| 2042 | # maintain Libtool? --akim. |
| 2043 | export ac_cv_exeext |
| 2044 | break;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2045 | * ) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2046 | break;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2047 | esac |
| 2048 | done |
| 2049 | else |
| 2050 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2051 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2052 | |
| 2053 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2054 | See \`config.log' for more details." >&5 |
| 2055 | echo "$as_me: error: C compiler cannot create executables |
| 2056 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2057 | { (exit 77); exit 77; }; } |
| 2058 | fi |
| 2059 | |
| 2060 | ac_exeext=$ac_cv_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2061 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2062 | echo "${ECHO_T}$ac_file" >&6 |
| 2063 | |
| 2064 | # Check the compiler produces executables we can run. If not, either |
| 2065 | # the compiler is broken, or we cross compile. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2066 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2067 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2068 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2069 | # If not cross compiling, check that we can run a simple program. |
| 2070 | if test "$cross_compiling" != yes; then |
| 2071 | if { ac_try='./$ac_file' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2073 | (eval $ac_try) 2>&5 |
| 2074 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2076 | (exit $ac_status); }; }; then |
| 2077 | cross_compiling=no |
| 2078 | else |
| 2079 | if test "$cross_compiling" = maybe; then |
| 2080 | cross_compiling=yes |
| 2081 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2082 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2083 | If you meant to cross compile, use \`--host'. |
| 2084 | See \`config.log' for more details." >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2085 | echo "$as_me: error: cannot run C compiled programs. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2086 | If you meant to cross compile, use \`--host'. |
| 2087 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2088 | { (exit 1); exit 1; }; } |
| 2089 | fi |
| 2090 | fi |
| 2091 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2092 | echo "$as_me:$LINENO: result: yes" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2093 | echo "${ECHO_T}yes" >&6 |
| 2094 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2095 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2096 | ac_clean_files=$ac_clean_files_save |
| 2097 | # Check the compiler produces executables we can run. If not, either |
| 2098 | # the compiler is broken, or we cross compile. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2099 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2100 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2101 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2102 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2103 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2104 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2105 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2106 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2107 | (eval $ac_link) 2>&5 |
| 2108 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2110 | (exit $ac_status); }; then |
| 2111 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2112 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2113 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2114 | # `rm'. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2115 | for ac_file in conftest.exe conftest conftest.*; do |
| 2116 | test -f "$ac_file" || continue |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2117 | case $ac_file in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2118 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2119 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2120 | export ac_cv_exeext |
| 2121 | break;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2122 | * ) break;; |
| 2123 | esac |
| 2124 | done |
| 2125 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2126 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2127 | See \`config.log' for more details." >&5 |
| 2128 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2129 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2130 | { (exit 1); exit 1; }; } |
| 2131 | fi |
| 2132 | |
| 2133 | rm -f conftest$ac_cv_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2134 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2135 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2136 | |
| 2137 | rm -f conftest.$ac_ext |
| 2138 | EXEEXT=$ac_cv_exeext |
| 2139 | ac_exeext=$EXEEXT |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2140 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2141 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2142 | if test "${ac_cv_objext+set}" = set; then |
| 2143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2144 | else |
| 2145 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2146 | /* confdefs.h. */ |
| 2147 | _ACEOF |
| 2148 | cat confdefs.h >>conftest.$ac_ext |
| 2149 | cat >>conftest.$ac_ext <<_ACEOF |
| 2150 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2151 | |
| 2152 | int |
| 2153 | main () |
| 2154 | { |
| 2155 | |
| 2156 | ; |
| 2157 | return 0; |
| 2158 | } |
| 2159 | _ACEOF |
| 2160 | rm -f conftest.o conftest.obj |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2162 | (eval $ac_compile) 2>&5 |
| 2163 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2165 | (exit $ac_status); }; then |
| 2166 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2167 | case $ac_file in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2168 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2169 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2170 | break;; |
| 2171 | esac |
| 2172 | done |
| 2173 | else |
| 2174 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2175 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2176 | |
| 2177 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2178 | See \`config.log' for more details." >&5 |
| 2179 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2180 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2181 | { (exit 1); exit 1; }; } |
| 2182 | fi |
| 2183 | |
| 2184 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2185 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2186 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2187 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2188 | OBJEXT=$ac_cv_objext |
| 2189 | ac_objext=$OBJEXT |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2190 | 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] | 2191 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2192 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2194 | else |
| 2195 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2196 | /* confdefs.h. */ |
| 2197 | _ACEOF |
| 2198 | cat confdefs.h >>conftest.$ac_ext |
| 2199 | cat >>conftest.$ac_ext <<_ACEOF |
| 2200 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2201 | |
| 2202 | int |
| 2203 | main () |
| 2204 | { |
| 2205 | #ifndef __GNUC__ |
| 2206 | choke me |
| 2207 | #endif |
| 2208 | |
| 2209 | ; |
| 2210 | return 0; |
| 2211 | } |
| 2212 | _ACEOF |
| 2213 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2215 | (eval $ac_compile) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2216 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2217 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2218 | rm -f conftest.er1 |
| 2219 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2221 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 2222 | { ac_try='test -z "$ac_c_werror_flag" |
| 2223 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2225 | (eval $ac_try) 2>&5 |
| 2226 | ac_status=$? |
| 2227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2228 | (exit $ac_status); }; } && |
| 2229 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2231 | (eval $ac_try) 2>&5 |
| 2232 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2234 | (exit $ac_status); }; }; then |
| 2235 | ac_compiler_gnu=yes |
| 2236 | else |
| 2237 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2238 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2239 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2240 | ac_compiler_gnu=no |
| 2241 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2242 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2243 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2244 | |
| 2245 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2246 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2247 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2248 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2249 | ac_test_CFLAGS=${CFLAGS+set} |
| 2250 | ac_save_CFLAGS=$CFLAGS |
| 2251 | CFLAGS="-g" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2252 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2253 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2254 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2255 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2256 | else |
| 2257 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2258 | /* confdefs.h. */ |
| 2259 | _ACEOF |
| 2260 | cat confdefs.h >>conftest.$ac_ext |
| 2261 | cat >>conftest.$ac_ext <<_ACEOF |
| 2262 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2263 | |
| 2264 | int |
| 2265 | main () |
| 2266 | { |
| 2267 | |
| 2268 | ; |
| 2269 | return 0; |
| 2270 | } |
| 2271 | _ACEOF |
| 2272 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2273 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2274 | (eval $ac_compile) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2275 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2276 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2277 | rm -f conftest.er1 |
| 2278 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2280 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 2281 | { ac_try='test -z "$ac_c_werror_flag" |
| 2282 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2284 | (eval $ac_try) 2>&5 |
| 2285 | ac_status=$? |
| 2286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2287 | (exit $ac_status); }; } && |
| 2288 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2290 | (eval $ac_try) 2>&5 |
| 2291 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2293 | (exit $ac_status); }; }; then |
| 2294 | ac_cv_prog_cc_g=yes |
| 2295 | else |
| 2296 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2297 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2298 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2299 | ac_cv_prog_cc_g=no |
| 2300 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2301 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2302 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2303 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2304 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2305 | if test "$ac_test_CFLAGS" = set; then |
| 2306 | CFLAGS=$ac_save_CFLAGS |
| 2307 | elif test $ac_cv_prog_cc_g = yes; then |
| 2308 | if test "$GCC" = yes; then |
| 2309 | CFLAGS="-g -O2" |
| 2310 | else |
| 2311 | CFLAGS="-g" |
| 2312 | fi |
| 2313 | else |
| 2314 | if test "$GCC" = yes; then |
| 2315 | CFLAGS="-O2" |
| 2316 | else |
| 2317 | CFLAGS= |
| 2318 | fi |
| 2319 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2320 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2321 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2322 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2324 | else |
| 2325 | ac_cv_prog_cc_stdc=no |
| 2326 | ac_save_CC=$CC |
| 2327 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2328 | /* confdefs.h. */ |
| 2329 | _ACEOF |
| 2330 | cat confdefs.h >>conftest.$ac_ext |
| 2331 | cat >>conftest.$ac_ext <<_ACEOF |
| 2332 | /* end confdefs.h. */ |
| 2333 | #include <stdarg.h> |
| 2334 | #include <stdio.h> |
| 2335 | #include <sys/types.h> |
| 2336 | #include <sys/stat.h> |
| 2337 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2338 | struct buf { int x; }; |
| 2339 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2340 | static char *e (p, i) |
| 2341 | char **p; |
| 2342 | int i; |
| 2343 | { |
| 2344 | return p[i]; |
| 2345 | } |
| 2346 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2347 | { |
| 2348 | char *s; |
| 2349 | va_list v; |
| 2350 | va_start (v,p); |
| 2351 | s = g (p, va_arg (v,int)); |
| 2352 | va_end (v); |
| 2353 | return s; |
| 2354 | } |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2355 | |
| 2356 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2357 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2358 | These don't provoke an error unfortunately, instead are silently treated |
| 2359 | as 'x'. The following induces an error, until -std1 is added to get |
| 2360 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2361 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2362 | that's true only with -std1. */ |
| 2363 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2364 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2365 | int test (int i, double x); |
| 2366 | struct s1 {int (*f) (int a);}; |
| 2367 | struct s2 {int (*f) (double a);}; |
| 2368 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2369 | int argc; |
| 2370 | char **argv; |
| 2371 | int |
| 2372 | main () |
| 2373 | { |
| 2374 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2375 | ; |
| 2376 | return 0; |
| 2377 | } |
| 2378 | _ACEOF |
| 2379 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2380 | # breaks some systems' header files. |
| 2381 | # AIX -qlanglvl=ansi |
| 2382 | # Ultrix and OSF/1 -std1 |
| 2383 | # HP-UX 10.20 and later -Ae |
| 2384 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2385 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2386 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2387 | do |
| 2388 | CC="$ac_save_CC $ac_arg" |
| 2389 | rm -f conftest.$ac_objext |
| 2390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2391 | (eval $ac_compile) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2392 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2393 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2394 | rm -f conftest.er1 |
| 2395 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2397 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 2398 | { ac_try='test -z "$ac_c_werror_flag" |
| 2399 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2401 | (eval $ac_try) 2>&5 |
| 2402 | ac_status=$? |
| 2403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2404 | (exit $ac_status); }; } && |
| 2405 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2407 | (eval $ac_try) 2>&5 |
| 2408 | ac_status=$? |
| 2409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2410 | (exit $ac_status); }; }; then |
| 2411 | ac_cv_prog_cc_stdc=$ac_arg |
| 2412 | break |
| 2413 | else |
| 2414 | echo "$as_me: failed program was:" >&5 |
| 2415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2416 | |
| 2417 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2418 | rm -f conftest.err conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2419 | done |
| 2420 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2421 | CC=$ac_save_CC |
| 2422 | |
| 2423 | fi |
| 2424 | |
| 2425 | case "x$ac_cv_prog_cc_stdc" in |
| 2426 | x|xno) |
| 2427 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2428 | echo "${ECHO_T}none needed" >&6 ;; |
| 2429 | *) |
| 2430 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2431 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2432 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2433 | esac |
| 2434 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2435 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2436 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2437 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2438 | # the declaration of exit, since it's the most demanding environment. |
| 2439 | cat >conftest.$ac_ext <<_ACEOF |
| 2440 | #ifndef __cplusplus |
| 2441 | choke me |
| 2442 | #endif |
| 2443 | _ACEOF |
| 2444 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2445 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2446 | (eval $ac_compile) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2447 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2448 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2449 | rm -f conftest.er1 |
| 2450 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2452 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 2453 | { ac_try='test -z "$ac_c_werror_flag" |
| 2454 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2456 | (eval $ac_try) 2>&5 |
| 2457 | ac_status=$? |
| 2458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2459 | (exit $ac_status); }; } && |
| 2460 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2462 | (eval $ac_try) 2>&5 |
| 2463 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2465 | (exit $ac_status); }; }; then |
| 2466 | for ac_declaration in \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2467 | '' \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2468 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2469 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2470 | 'extern "C" void exit (int) throw ();' \ |
| 2471 | 'extern "C" void exit (int);' \ |
| 2472 | 'void exit (int);' |
| 2473 | do |
| 2474 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2475 | /* confdefs.h. */ |
| 2476 | _ACEOF |
| 2477 | cat confdefs.h >>conftest.$ac_ext |
| 2478 | cat >>conftest.$ac_ext <<_ACEOF |
| 2479 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2480 | $ac_declaration |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2481 | #include <stdlib.h> |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2482 | int |
| 2483 | main () |
| 2484 | { |
| 2485 | exit (42); |
| 2486 | ; |
| 2487 | return 0; |
| 2488 | } |
| 2489 | _ACEOF |
| 2490 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2492 | (eval $ac_compile) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2493 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2494 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2495 | rm -f conftest.er1 |
| 2496 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2498 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 2499 | { ac_try='test -z "$ac_c_werror_flag" |
| 2500 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2502 | (eval $ac_try) 2>&5 |
| 2503 | ac_status=$? |
| 2504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2505 | (exit $ac_status); }; } && |
| 2506 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2508 | (eval $ac_try) 2>&5 |
| 2509 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2511 | (exit $ac_status); }; }; then |
| 2512 | : |
| 2513 | else |
| 2514 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2515 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2516 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2517 | continue |
| 2518 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2519 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2520 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2521 | /* confdefs.h. */ |
| 2522 | _ACEOF |
| 2523 | cat confdefs.h >>conftest.$ac_ext |
| 2524 | cat >>conftest.$ac_ext <<_ACEOF |
| 2525 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2526 | $ac_declaration |
| 2527 | int |
| 2528 | main () |
| 2529 | { |
| 2530 | exit (42); |
| 2531 | ; |
| 2532 | return 0; |
| 2533 | } |
| 2534 | _ACEOF |
| 2535 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2536 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2537 | (eval $ac_compile) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2538 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2539 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2540 | rm -f conftest.er1 |
| 2541 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2543 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 2544 | { ac_try='test -z "$ac_c_werror_flag" |
| 2545 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2547 | (eval $ac_try) 2>&5 |
| 2548 | ac_status=$? |
| 2549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2550 | (exit $ac_status); }; } && |
| 2551 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2553 | (eval $ac_try) 2>&5 |
| 2554 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2556 | (exit $ac_status); }; }; then |
| 2557 | break |
| 2558 | else |
| 2559 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2560 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2561 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2562 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2563 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2564 | done |
| 2565 | rm -f conftest* |
| 2566 | if test -n "$ac_declaration"; then |
| 2567 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2568 | echo $ac_declaration >>confdefs.h |
| 2569 | echo '#endif' >>confdefs.h |
| 2570 | fi |
| 2571 | |
| 2572 | else |
| 2573 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2575 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2576 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2577 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2578 | ac_ext=c |
| 2579 | ac_cpp='$CPP $CPPFLAGS' |
| 2580 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2581 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2582 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2583 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2584 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 2585 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
| 2586 | if test "${lt_cv_path_SED+set}" = set; then |
| 2587 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2588 | else |
| 2589 | # Loop through the user's path and test for sed and gsed. |
| 2590 | # Then use that list of sed's as ones to test for truncation. |
| 2591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2592 | for as_dir in $PATH |
| 2593 | do |
| 2594 | IFS=$as_save_IFS |
| 2595 | test -z "$as_dir" && as_dir=. |
| 2596 | for lt_ac_prog in sed gsed; do |
| 2597 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2598 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 2599 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 2600 | fi |
| 2601 | done |
| 2602 | done |
| 2603 | done |
| 2604 | lt_ac_max=0 |
| 2605 | lt_ac_count=0 |
| 2606 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 2607 | # along with /bin/sed that truncates output. |
| 2608 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
| 2609 | test ! -f $lt_ac_sed && break |
| 2610 | cat /dev/null > conftest.in |
| 2611 | lt_ac_count=0 |
| 2612 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 2613 | # Check for GNU sed and select it if it is found. |
| 2614 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 2615 | lt_cv_path_SED=$lt_ac_sed |
| 2616 | break |
| 2617 | fi |
| 2618 | while true; do |
| 2619 | cat conftest.in conftest.in >conftest.tmp |
| 2620 | mv conftest.tmp conftest.in |
| 2621 | cp conftest.in conftest.nl |
| 2622 | echo >>conftest.nl |
| 2623 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 2624 | cmp -s conftest.out conftest.nl || break |
| 2625 | # 10000 chars as input seems more than enough |
| 2626 | test $lt_ac_count -gt 10 && break |
| 2627 | lt_ac_count=`expr $lt_ac_count + 1` |
| 2628 | if test $lt_ac_count -gt $lt_ac_max; then |
| 2629 | lt_ac_max=$lt_ac_count |
| 2630 | lt_cv_path_SED=$lt_ac_sed |
| 2631 | fi |
| 2632 | done |
| 2633 | done |
| 2634 | SED=$lt_cv_path_SED |
| 2635 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2636 | fi |
| 2637 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2638 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 2639 | echo "${ECHO_T}$SED" >&6 |
| 2640 | |
| 2641 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 2642 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 2643 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 2644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2645 | else |
| 2646 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 2647 | then ac_cv_prog_egrep='grep -E' |
| 2648 | else ac_cv_prog_egrep='egrep' |
| 2649 | fi |
| 2650 | fi |
| 2651 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 2652 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 2653 | EGREP=$ac_cv_prog_egrep |
| 2654 | |
| 2655 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2656 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2657 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 2658 | if test "${with_gnu_ld+set}" = set; then |
| 2659 | withval="$with_gnu_ld" |
| 2660 | test "$withval" = no || with_gnu_ld=yes |
| 2661 | else |
| 2662 | with_gnu_ld=no |
| 2663 | fi; |
| 2664 | ac_prog=ld |
| 2665 | if test "$GCC" = yes; then |
| 2666 | # Check if gcc -print-prog-name=ld gives a path. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2667 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 2668 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2669 | case $host in |
| 2670 | *-*-mingw*) |
| 2671 | # gcc leaves a trailing carriage return which upsets mingw |
| 2672 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 2673 | *) |
| 2674 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 2675 | esac |
| 2676 | case $ac_prog in |
| 2677 | # Accept absolute paths. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2678 | [\\/]* | ?:[\\/]*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2679 | re_direlt='/[^/][^/]*/\.\./' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2680 | # Canonicalize the pathname of ld |
| 2681 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2682 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2683 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2684 | done |
| 2685 | test -z "$LD" && LD="$ac_prog" |
| 2686 | ;; |
| 2687 | "") |
| 2688 | # If it fails, then pretend we aren't using GCC. |
| 2689 | ac_prog=ld |
| 2690 | ;; |
| 2691 | *) |
| 2692 | # If it is relative, then search for the first ld in PATH. |
| 2693 | with_gnu_ld=unknown |
| 2694 | ;; |
| 2695 | esac |
| 2696 | elif test "$with_gnu_ld" = yes; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2697 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2698 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 2699 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2700 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2701 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 2702 | fi |
| 2703 | if test "${lt_cv_path_LD+set}" = set; then |
| 2704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2705 | else |
| 2706 | if test -z "$LD"; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2707 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2708 | for ac_dir in $PATH; do |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2709 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2710 | test -z "$ac_dir" && ac_dir=. |
| 2711 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 2712 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 2713 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 2714 | # but apparently some GNU ld's only accept -v. |
| 2715 | # Break only if it was the GNU/non-GNU ld that we prefer. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2716 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 2717 | *GNU* | *'with BFD'*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2718 | test "$with_gnu_ld" != no && break |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2719 | ;; |
| 2720 | *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2721 | test "$with_gnu_ld" != yes && break |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2722 | ;; |
| 2723 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2724 | fi |
| 2725 | done |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2726 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2727 | else |
| 2728 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 2729 | fi |
| 2730 | fi |
| 2731 | |
| 2732 | LD="$lt_cv_path_LD" |
| 2733 | if test -n "$LD"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2734 | echo "$as_me:$LINENO: result: $LD" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2735 | echo "${ECHO_T}$LD" >&6 |
| 2736 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2737 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2738 | echo "${ECHO_T}no" >&6 |
| 2739 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2740 | 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] | 2741 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 2742 | { (exit 1); exit 1; }; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2743 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2744 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 2745 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 2746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2747 | else |
| 2748 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2749 | case `$LD -v 2>&1 </dev/null` in |
| 2750 | *GNU* | *'with BFD'*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2751 | lt_cv_prog_gnu_ld=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2752 | ;; |
| 2753 | *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2754 | lt_cv_prog_gnu_ld=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2755 | ;; |
| 2756 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2757 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2758 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2759 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 2760 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 2761 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2762 | |
| 2763 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2764 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
| 2765 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 2766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2767 | else |
| 2768 | lt_cv_ld_reload_flag='-r' |
| 2769 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2770 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2771 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
| 2772 | reload_flag=$lt_cv_ld_reload_flag |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2773 | case $reload_flag in |
| 2774 | "" | " "*) ;; |
| 2775 | *) reload_flag=" $reload_flag" ;; |
| 2776 | esac |
| 2777 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2778 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2779 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2780 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
| 2781 | if test "${lt_cv_path_NM+set}" = set; then |
| 2782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2783 | else |
| 2784 | if test -n "$NM"; then |
| 2785 | # Let the user override the test. |
| 2786 | lt_cv_path_NM="$NM" |
| 2787 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2788 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2789 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2790 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2791 | test -z "$ac_dir" && ac_dir=. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2792 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
| 2793 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2794 | # Check to see if the nm accepts a BSD-compat flag. |
| 2795 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 2796 | # nm: unknown option "B" ignored |
| 2797 | # Tru64's nm complains that /dev/null is an invalid object file |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2798 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 2799 | */dev/null* | *'Invalid file or object type'*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2800 | lt_cv_path_NM="$tmp_nm -B" |
| 2801 | break |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2802 | ;; |
| 2803 | *) |
| 2804 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 2805 | */dev/null*) |
| 2806 | lt_cv_path_NM="$tmp_nm -p" |
| 2807 | break |
| 2808 | ;; |
| 2809 | *) |
| 2810 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 2811 | continue # so that we can try to find one that supports BSD flags |
| 2812 | ;; |
| 2813 | esac |
| 2814 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2815 | fi |
| 2816 | done |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2817 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2818 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 2819 | fi |
| 2820 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2821 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 2822 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2823 | NM="$lt_cv_path_NM" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2824 | |
| 2825 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2826 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 2827 | LN_S=$as_ln_s |
| 2828 | if test "$LN_S" = "ln -s"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2829 | echo "$as_me:$LINENO: result: yes" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2830 | echo "${ECHO_T}yes" >&6 |
| 2831 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2832 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2833 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 2834 | fi |
| 2835 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2836 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 2837 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2838 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 2839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2840 | else |
| 2841 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 2842 | lt_cv_file_magic_test_file= |
| 2843 | lt_cv_deplibs_check_method='unknown' |
| 2844 | # Need to set the preceding variable on all platforms that support |
| 2845 | # interlibrary dependencies. |
| 2846 | # 'none' -- dependencies not supported. |
| 2847 | # `unknown' -- same as none, but documents that we really don't know. |
| 2848 | # 'pass_all' -- all dependencies passed with no checks. |
| 2849 | # 'test_compile' -- check by making test program. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2850 | # 'file_magic [[regex]]' -- check by looking for files in library path |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2851 | # which responds to the $file_magic_cmd with a given extended regex. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2852 | # If you have `file' or equivalent on your system and you're not sure |
| 2853 | # whether `pass_all' will *always* work, you probably want this one. |
| 2854 | |
| 2855 | case $host_os in |
| 2856 | aix4* | aix5*) |
| 2857 | lt_cv_deplibs_check_method=pass_all |
| 2858 | ;; |
| 2859 | |
| 2860 | beos*) |
| 2861 | lt_cv_deplibs_check_method=pass_all |
| 2862 | ;; |
| 2863 | |
| 2864 | bsdi4*) |
| 2865 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 2866 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 2867 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 2868 | ;; |
| 2869 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2870 | cygwin*) |
| 2871 | # win32_libid is a shell function defined in ltmain.sh |
| 2872 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 2873 | lt_cv_file_magic_cmd='win32_libid' |
| 2874 | ;; |
| 2875 | |
| 2876 | mingw* | pw32*) |
| 2877 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 2878 | # win32_libid shell function, so use a weaker test based on 'objdump'. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2879 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 2880 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 2881 | ;; |
| 2882 | |
| 2883 | darwin* | rhapsody*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2884 | lt_cv_deplibs_check_method=pass_all |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2885 | ;; |
| 2886 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2887 | freebsd* | kfreebsd*-gnu) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2888 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 2889 | case $host_cpu in |
| 2890 | i*86 ) |
| 2891 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 2892 | # Let's accept both of them until this is cleared up. |
| 2893 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
| 2894 | lt_cv_file_magic_cmd=/usr/bin/file |
| 2895 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 2896 | ;; |
| 2897 | esac |
| 2898 | else |
| 2899 | lt_cv_deplibs_check_method=pass_all |
| 2900 | fi |
| 2901 | ;; |
| 2902 | |
| 2903 | gnu*) |
| 2904 | lt_cv_deplibs_check_method=pass_all |
| 2905 | ;; |
| 2906 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2907 | hpux10.20* | hpux11*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2908 | lt_cv_file_magic_cmd=/usr/bin/file |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2909 | case "$host_cpu" in |
| 2910 | ia64*) |
| 2911 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 2912 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 2913 | ;; |
| 2914 | hppa*64*) |
| 2915 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' |
| 2916 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 2917 | ;; |
| 2918 | *) |
| 2919 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 2920 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 2921 | ;; |
| 2922 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2923 | ;; |
| 2924 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2925 | irix5* | irix6* | nonstopux*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2926 | case $LD in |
| 2927 | *-32|*"-32 ") libmagic=32-bit;; |
| 2928 | *-n32|*"-n32 ") libmagic=N32;; |
| 2929 | *-64|*"-64 ") libmagic=64-bit;; |
| 2930 | *) libmagic=never-match;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2931 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2932 | lt_cv_deplibs_check_method=pass_all |
| 2933 | ;; |
| 2934 | |
| 2935 | # This must be Linux ELF. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2936 | linux*) |
| 2937 | lt_cv_deplibs_check_method=pass_all |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2938 | ;; |
| 2939 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2940 | netbsd* | knetbsd*-gnu) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2941 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2942 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2943 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2944 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2945 | fi |
| 2946 | ;; |
| 2947 | |
| 2948 | newos6*) |
| 2949 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 2950 | lt_cv_file_magic_cmd=/usr/bin/file |
| 2951 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 2952 | ;; |
| 2953 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2954 | nto-qnx*) |
| 2955 | lt_cv_deplibs_check_method=unknown |
| 2956 | ;; |
| 2957 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2958 | openbsd*) |
| 2959 | lt_cv_file_magic_cmd=/usr/bin/file |
| 2960 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 2961 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 2962 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
| 2963 | else |
| 2964 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
| 2965 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2966 | ;; |
| 2967 | |
| 2968 | osf3* | osf4* | osf5*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2969 | lt_cv_deplibs_check_method=pass_all |
| 2970 | ;; |
| 2971 | |
| 2972 | sco3.2v5*) |
| 2973 | lt_cv_deplibs_check_method=pass_all |
| 2974 | ;; |
| 2975 | |
| 2976 | solaris*) |
| 2977 | lt_cv_deplibs_check_method=pass_all |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2978 | ;; |
| 2979 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2980 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 2981 | case $host_vendor in |
| 2982 | motorola) |
| 2983 | 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]' |
| 2984 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 2985 | ;; |
| 2986 | ncr) |
| 2987 | lt_cv_deplibs_check_method=pass_all |
| 2988 | ;; |
| 2989 | sequent) |
| 2990 | lt_cv_file_magic_cmd='/bin/file' |
| 2991 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 2992 | ;; |
| 2993 | sni) |
| 2994 | lt_cv_file_magic_cmd='/bin/file' |
| 2995 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 2996 | lt_cv_file_magic_test_file=/lib/libc.so |
| 2997 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2998 | siemens) |
| 2999 | lt_cv_deplibs_check_method=pass_all |
| 3000 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3001 | esac |
| 3002 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3003 | |
| 3004 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) |
| 3005 | lt_cv_deplibs_check_method=pass_all |
| 3006 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3007 | esac |
| 3008 | |
| 3009 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3010 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3011 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
| 3012 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 3013 | deplibs_check_method=$lt_cv_deplibs_check_method |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3014 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3015 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3016 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3017 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3018 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3019 | # If no C compiler was specified, use CC. |
| 3020 | LTCC=${LTCC-"$CC"} |
| 3021 | |
| 3022 | # Allow CC to be a program name with arguments. |
| 3023 | compiler=$CC |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3024 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3025 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3026 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 3027 | if test "${enable_libtool_lock+set}" = set; then |
| 3028 | enableval="$enable_libtool_lock" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3029 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3030 | fi; |
| 3031 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3032 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3033 | # Some flags need to be propagated to the compiler or linker for good |
| 3034 | # libtool support. |
| 3035 | case $host in |
| 3036 | ia64-*-hpux*) |
| 3037 | # Find out which ABI we are using. |
| 3038 | echo 'int i;' > conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3039 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3040 | (eval $ac_compile) 2>&5 |
| 3041 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3043 | (exit $ac_status); }; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3044 | case `/usr/bin/file conftest.$ac_objext` in |
| 3045 | *ELF-32*) |
| 3046 | HPUX_IA64_MODE="32" |
| 3047 | ;; |
| 3048 | *ELF-64*) |
| 3049 | HPUX_IA64_MODE="64" |
| 3050 | ;; |
| 3051 | esac |
| 3052 | fi |
| 3053 | rm -rf conftest* |
| 3054 | ;; |
| 3055 | *-*-irix6*) |
| 3056 | # Find out which ABI we are using. |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 3057 | echo '#line 3057 "configure"' > conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3058 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3059 | (eval $ac_compile) 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3060 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3062 | (exit $ac_status); }; then |
| 3063 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 3064 | case `/usr/bin/file conftest.$ac_objext` in |
| 3065 | *32-bit*) |
| 3066 | LD="${LD-ld} -melf32bsmip" |
| 3067 | ;; |
| 3068 | *N32*) |
| 3069 | LD="${LD-ld} -melf32bmipn32" |
| 3070 | ;; |
| 3071 | *64-bit*) |
| 3072 | LD="${LD-ld} -melf64bmip" |
| 3073 | ;; |
| 3074 | esac |
| 3075 | else |
| 3076 | case `/usr/bin/file conftest.$ac_objext` in |
| 3077 | *32-bit*) |
| 3078 | LD="${LD-ld} -32" |
| 3079 | ;; |
| 3080 | *N32*) |
| 3081 | LD="${LD-ld} -n32" |
| 3082 | ;; |
| 3083 | *64-bit*) |
| 3084 | LD="${LD-ld} -64" |
| 3085 | ;; |
| 3086 | esac |
| 3087 | fi |
| 3088 | fi |
| 3089 | rm -rf conftest* |
| 3090 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3091 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3092 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 3093 | # Find out which ABI we are using. |
| 3094 | echo 'int i;' > conftest.$ac_ext |
| 3095 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3096 | (eval $ac_compile) 2>&5 |
| 3097 | ac_status=$? |
| 3098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3099 | (exit $ac_status); }; then |
| 3100 | case "`/usr/bin/file conftest.o`" in |
| 3101 | *32-bit*) |
| 3102 | case $host in |
| 3103 | x86_64-*linux*) |
| 3104 | LD="${LD-ld} -m elf_i386" |
| 3105 | ;; |
| 3106 | ppc64-*linux*|powerpc64-*linux*) |
| 3107 | LD="${LD-ld} -m elf32ppclinux" |
| 3108 | ;; |
| 3109 | s390x-*linux*) |
| 3110 | LD="${LD-ld} -m elf_s390" |
| 3111 | ;; |
| 3112 | sparc64-*linux*) |
| 3113 | LD="${LD-ld} -m elf32_sparc" |
| 3114 | ;; |
| 3115 | esac |
| 3116 | ;; |
| 3117 | *64-bit*) |
| 3118 | case $host in |
| 3119 | x86_64-*linux*) |
| 3120 | LD="${LD-ld} -m elf_x86_64" |
| 3121 | ;; |
| 3122 | ppc*-*linux*|powerpc*-*linux*) |
| 3123 | LD="${LD-ld} -m elf64ppc" |
| 3124 | ;; |
| 3125 | s390*-*linux*) |
| 3126 | LD="${LD-ld} -m elf64_s390" |
| 3127 | ;; |
| 3128 | sparc*-*linux*) |
| 3129 | LD="${LD-ld} -m elf64_sparc" |
| 3130 | ;; |
| 3131 | esac |
| 3132 | ;; |
| 3133 | esac |
| 3134 | fi |
| 3135 | rm -rf conftest* |
| 3136 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3137 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3138 | *-*-sco3.2v5*) |
| 3139 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 3140 | SAVE_CFLAGS="$CFLAGS" |
| 3141 | CFLAGS="$CFLAGS -belf" |
| 3142 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 3143 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
| 3144 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 3145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3146 | else |
| 3147 | ac_ext=c |
| 3148 | ac_cpp='$CPP $CPPFLAGS' |
| 3149 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3150 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3151 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3152 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3153 | cat >conftest.$ac_ext <<_ACEOF |
| 3154 | /* confdefs.h. */ |
| 3155 | _ACEOF |
| 3156 | cat confdefs.h >>conftest.$ac_ext |
| 3157 | cat >>conftest.$ac_ext <<_ACEOF |
| 3158 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3159 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3160 | int |
| 3161 | main () |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3162 | { |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3163 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3164 | ; |
| 3165 | return 0; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3166 | } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3167 | _ACEOF |
| 3168 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3169 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3170 | (eval $ac_link) 2>conftest.er1 |
| 3171 | ac_status=$? |
| 3172 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3173 | rm -f conftest.er1 |
| 3174 | cat conftest.err >&5 |
| 3175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3176 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 3177 | { ac_try='test -z "$ac_c_werror_flag" |
| 3178 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3180 | (eval $ac_try) 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3181 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3183 | (exit $ac_status); }; } && |
| 3184 | { ac_try='test -s conftest$ac_exeext' |
| 3185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3186 | (eval $ac_try) 2>&5 |
| 3187 | ac_status=$? |
| 3188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3189 | (exit $ac_status); }; }; then |
| 3190 | lt_cv_cc_needs_belf=yes |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3191 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3192 | echo "$as_me: failed program was:" >&5 |
| 3193 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3194 | |
| 3195 | lt_cv_cc_needs_belf=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3196 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3197 | rm -f conftest.err conftest.$ac_objext \ |
| 3198 | conftest$ac_exeext conftest.$ac_ext |
| 3199 | ac_ext=c |
| 3200 | ac_cpp='$CPP $CPPFLAGS' |
| 3201 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3202 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3203 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3204 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3205 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3206 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 3207 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
| 3208 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 3209 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 3210 | CFLAGS="$SAVE_CFLAGS" |
| 3211 | fi |
| 3212 | ;; |
| 3213 | |
| 3214 | esac |
| 3215 | |
| 3216 | need_locks="$enable_libtool_lock" |
| 3217 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3218 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3219 | ac_ext=c |
| 3220 | ac_cpp='$CPP $CPPFLAGS' |
| 3221 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3222 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3223 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3224 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3225 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 3226 | # On Suns, sometimes $CPP names a directory. |
| 3227 | if test -n "$CPP" && test -d "$CPP"; then |
| 3228 | CPP= |
| 3229 | fi |
| 3230 | if test -z "$CPP"; then |
| 3231 | if test "${ac_cv_prog_CPP+set}" = set; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3233 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3234 | # Double quotes because CPP needs to be expanded |
| 3235 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3236 | do |
| 3237 | ac_preproc_ok=false |
| 3238 | for ac_c_preproc_warn_flag in '' yes |
| 3239 | do |
| 3240 | # Use a header file that comes with gcc, so configuring glibc |
| 3241 | # with a fresh cross-compiler works. |
| 3242 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3243 | # <limits.h> exists even on freestanding compilers. |
| 3244 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3245 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3246 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3247 | /* confdefs.h. */ |
| 3248 | _ACEOF |
| 3249 | cat confdefs.h >>conftest.$ac_ext |
| 3250 | cat >>conftest.$ac_ext <<_ACEOF |
| 3251 | /* end confdefs.h. */ |
| 3252 | #ifdef __STDC__ |
| 3253 | # include <limits.h> |
| 3254 | #else |
| 3255 | # include <assert.h> |
| 3256 | #endif |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3257 | Syntax error |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3258 | _ACEOF |
| 3259 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3260 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3261 | ac_status=$? |
| 3262 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3263 | rm -f conftest.er1 |
| 3264 | cat conftest.err >&5 |
| 3265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3266 | (exit $ac_status); } >/dev/null; then |
| 3267 | if test -s conftest.err; then |
| 3268 | ac_cpp_err=$ac_c_preproc_warn_flag |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3269 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3270 | else |
| 3271 | ac_cpp_err= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3272 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3273 | else |
| 3274 | ac_cpp_err=yes |
| 3275 | fi |
| 3276 | if test -z "$ac_cpp_err"; then |
| 3277 | : |
| 3278 | else |
| 3279 | echo "$as_me: failed program was:" >&5 |
| 3280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3281 | |
| 3282 | # Broken: fails on valid input. |
| 3283 | continue |
| 3284 | fi |
| 3285 | rm -f conftest.err conftest.$ac_ext |
| 3286 | |
| 3287 | # OK, works on sane cases. Now check whether non-existent headers |
| 3288 | # can be detected and how. |
| 3289 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3290 | /* confdefs.h. */ |
| 3291 | _ACEOF |
| 3292 | cat confdefs.h >>conftest.$ac_ext |
| 3293 | cat >>conftest.$ac_ext <<_ACEOF |
| 3294 | /* end confdefs.h. */ |
| 3295 | #include <ac_nonexistent.h> |
| 3296 | _ACEOF |
| 3297 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3298 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3299 | ac_status=$? |
| 3300 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3301 | rm -f conftest.er1 |
| 3302 | cat conftest.err >&5 |
| 3303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3304 | (exit $ac_status); } >/dev/null; then |
| 3305 | if test -s conftest.err; then |
| 3306 | ac_cpp_err=$ac_c_preproc_warn_flag |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3307 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3308 | else |
| 3309 | ac_cpp_err= |
| 3310 | fi |
| 3311 | else |
| 3312 | ac_cpp_err=yes |
| 3313 | fi |
| 3314 | if test -z "$ac_cpp_err"; then |
| 3315 | # Broken: success on invalid input. |
| 3316 | continue |
| 3317 | else |
| 3318 | echo "$as_me: failed program was:" >&5 |
| 3319 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3320 | |
| 3321 | # Passes both tests. |
| 3322 | ac_preproc_ok=: |
| 3323 | break |
| 3324 | fi |
| 3325 | rm -f conftest.err conftest.$ac_ext |
| 3326 | |
| 3327 | done |
| 3328 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3329 | rm -f conftest.err conftest.$ac_ext |
| 3330 | if $ac_preproc_ok; then |
| 3331 | break |
| 3332 | fi |
| 3333 | |
| 3334 | done |
| 3335 | ac_cv_prog_CPP=$CPP |
| 3336 | |
| 3337 | fi |
| 3338 | CPP=$ac_cv_prog_CPP |
| 3339 | else |
| 3340 | ac_cv_prog_CPP=$CPP |
| 3341 | fi |
| 3342 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3343 | echo "${ECHO_T}$CPP" >&6 |
| 3344 | ac_preproc_ok=false |
| 3345 | for ac_c_preproc_warn_flag in '' yes |
| 3346 | do |
| 3347 | # Use a header file that comes with gcc, so configuring glibc |
| 3348 | # with a fresh cross-compiler works. |
| 3349 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3350 | # <limits.h> exists even on freestanding compilers. |
| 3351 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3352 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3353 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3354 | /* confdefs.h. */ |
| 3355 | _ACEOF |
| 3356 | cat confdefs.h >>conftest.$ac_ext |
| 3357 | cat >>conftest.$ac_ext <<_ACEOF |
| 3358 | /* end confdefs.h. */ |
| 3359 | #ifdef __STDC__ |
| 3360 | # include <limits.h> |
| 3361 | #else |
| 3362 | # include <assert.h> |
| 3363 | #endif |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3364 | Syntax error |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3365 | _ACEOF |
| 3366 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3367 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3368 | ac_status=$? |
| 3369 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3370 | rm -f conftest.er1 |
| 3371 | cat conftest.err >&5 |
| 3372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3373 | (exit $ac_status); } >/dev/null; then |
| 3374 | if test -s conftest.err; then |
| 3375 | ac_cpp_err=$ac_c_preproc_warn_flag |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3376 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3377 | else |
| 3378 | ac_cpp_err= |
| 3379 | fi |
| 3380 | else |
| 3381 | ac_cpp_err=yes |
| 3382 | fi |
| 3383 | if test -z "$ac_cpp_err"; then |
| 3384 | : |
| 3385 | else |
| 3386 | echo "$as_me: failed program was:" >&5 |
| 3387 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3388 | |
| 3389 | # Broken: fails on valid input. |
| 3390 | continue |
| 3391 | fi |
| 3392 | rm -f conftest.err conftest.$ac_ext |
| 3393 | |
| 3394 | # OK, works on sane cases. Now check whether non-existent headers |
| 3395 | # can be detected and how. |
| 3396 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3397 | /* confdefs.h. */ |
| 3398 | _ACEOF |
| 3399 | cat confdefs.h >>conftest.$ac_ext |
| 3400 | cat >>conftest.$ac_ext <<_ACEOF |
| 3401 | /* end confdefs.h. */ |
| 3402 | #include <ac_nonexistent.h> |
| 3403 | _ACEOF |
| 3404 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3405 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3406 | ac_status=$? |
| 3407 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3408 | rm -f conftest.er1 |
| 3409 | cat conftest.err >&5 |
| 3410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3411 | (exit $ac_status); } >/dev/null; then |
| 3412 | if test -s conftest.err; then |
| 3413 | ac_cpp_err=$ac_c_preproc_warn_flag |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3414 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3415 | else |
| 3416 | ac_cpp_err= |
| 3417 | fi |
| 3418 | else |
| 3419 | ac_cpp_err=yes |
| 3420 | fi |
| 3421 | if test -z "$ac_cpp_err"; then |
| 3422 | # Broken: success on invalid input. |
| 3423 | continue |
| 3424 | else |
| 3425 | echo "$as_me: failed program was:" >&5 |
| 3426 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3427 | |
| 3428 | # Passes both tests. |
| 3429 | ac_preproc_ok=: |
| 3430 | break |
| 3431 | fi |
| 3432 | rm -f conftest.err conftest.$ac_ext |
| 3433 | |
| 3434 | done |
| 3435 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3436 | rm -f conftest.err conftest.$ac_ext |
| 3437 | if $ac_preproc_ok; then |
| 3438 | : |
| 3439 | else |
| 3440 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3441 | See \`config.log' for more details." >&5 |
| 3442 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3443 | See \`config.log' for more details." >&2;} |
| 3444 | { (exit 1); exit 1; }; } |
| 3445 | fi |
| 3446 | |
| 3447 | ac_ext=c |
| 3448 | ac_cpp='$CPP $CPPFLAGS' |
| 3449 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3450 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3451 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3452 | |
| 3453 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3454 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3455 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3456 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3458 | else |
| 3459 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3460 | /* confdefs.h. */ |
| 3461 | _ACEOF |
| 3462 | cat confdefs.h >>conftest.$ac_ext |
| 3463 | cat >>conftest.$ac_ext <<_ACEOF |
| 3464 | /* end confdefs.h. */ |
| 3465 | #include <stdlib.h> |
| 3466 | #include <stdarg.h> |
| 3467 | #include <string.h> |
| 3468 | #include <float.h> |
| 3469 | |
| 3470 | int |
| 3471 | main () |
| 3472 | { |
| 3473 | |
| 3474 | ; |
| 3475 | return 0; |
| 3476 | } |
| 3477 | _ACEOF |
| 3478 | rm -f conftest.$ac_objext |
| 3479 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3480 | (eval $ac_compile) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3481 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3482 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3483 | rm -f conftest.er1 |
| 3484 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3486 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 3487 | { ac_try='test -z "$ac_c_werror_flag" |
| 3488 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3490 | (eval $ac_try) 2>&5 |
| 3491 | ac_status=$? |
| 3492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3493 | (exit $ac_status); }; } && |
| 3494 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3496 | (eval $ac_try) 2>&5 |
| 3497 | ac_status=$? |
| 3498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3499 | (exit $ac_status); }; }; then |
| 3500 | ac_cv_header_stdc=yes |
| 3501 | else |
| 3502 | echo "$as_me: failed program was:" >&5 |
| 3503 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3504 | |
| 3505 | ac_cv_header_stdc=no |
| 3506 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3507 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3508 | |
| 3509 | if test $ac_cv_header_stdc = yes; then |
| 3510 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3511 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3512 | /* confdefs.h. */ |
| 3513 | _ACEOF |
| 3514 | cat confdefs.h >>conftest.$ac_ext |
| 3515 | cat >>conftest.$ac_ext <<_ACEOF |
| 3516 | /* end confdefs.h. */ |
| 3517 | #include <string.h> |
| 3518 | |
| 3519 | _ACEOF |
| 3520 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3521 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3522 | : |
| 3523 | else |
| 3524 | ac_cv_header_stdc=no |
| 3525 | fi |
| 3526 | rm -f conftest* |
| 3527 | |
| 3528 | fi |
| 3529 | |
| 3530 | if test $ac_cv_header_stdc = yes; then |
| 3531 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3532 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3533 | /* confdefs.h. */ |
| 3534 | _ACEOF |
| 3535 | cat confdefs.h >>conftest.$ac_ext |
| 3536 | cat >>conftest.$ac_ext <<_ACEOF |
| 3537 | /* end confdefs.h. */ |
| 3538 | #include <stdlib.h> |
| 3539 | |
| 3540 | _ACEOF |
| 3541 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3542 | $EGREP "free" >/dev/null 2>&1; then |
| 3543 | : |
| 3544 | else |
| 3545 | ac_cv_header_stdc=no |
| 3546 | fi |
| 3547 | rm -f conftest* |
| 3548 | |
| 3549 | fi |
| 3550 | |
| 3551 | if test $ac_cv_header_stdc = yes; then |
| 3552 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3553 | if test "$cross_compiling" = yes; then |
| 3554 | : |
| 3555 | else |
| 3556 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3557 | /* confdefs.h. */ |
| 3558 | _ACEOF |
| 3559 | cat confdefs.h >>conftest.$ac_ext |
| 3560 | cat >>conftest.$ac_ext <<_ACEOF |
| 3561 | /* end confdefs.h. */ |
| 3562 | #include <ctype.h> |
| 3563 | #if ((' ' & 0x0FF) == 0x020) |
| 3564 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3565 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3566 | #else |
| 3567 | # define ISLOWER(c) \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3568 | (('a' <= (c) && (c) <= 'i') \ |
| 3569 | || ('j' <= (c) && (c) <= 'r') \ |
| 3570 | || ('s' <= (c) && (c) <= 'z')) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3571 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3572 | #endif |
| 3573 | |
| 3574 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3575 | int |
| 3576 | main () |
| 3577 | { |
| 3578 | int i; |
| 3579 | for (i = 0; i < 256; i++) |
| 3580 | if (XOR (islower (i), ISLOWER (i)) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3581 | || toupper (i) != TOUPPER (i)) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3582 | exit(2); |
| 3583 | exit (0); |
| 3584 | } |
| 3585 | _ACEOF |
| 3586 | rm -f conftest$ac_exeext |
| 3587 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3588 | (eval $ac_link) 2>&5 |
| 3589 | ac_status=$? |
| 3590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3591 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3593 | (eval $ac_try) 2>&5 |
| 3594 | ac_status=$? |
| 3595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3596 | (exit $ac_status); }; }; then |
| 3597 | : |
| 3598 | else |
| 3599 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3600 | echo "$as_me: failed program was:" >&5 |
| 3601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3602 | |
| 3603 | ( exit $ac_status ) |
| 3604 | ac_cv_header_stdc=no |
| 3605 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3606 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3607 | fi |
| 3608 | fi |
| 3609 | fi |
| 3610 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3611 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 3612 | if test $ac_cv_header_stdc = yes; then |
| 3613 | |
| 3614 | cat >>confdefs.h <<\_ACEOF |
| 3615 | #define STDC_HEADERS 1 |
| 3616 | _ACEOF |
| 3617 | |
| 3618 | fi |
| 3619 | |
| 3620 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3621 | |
| 3622 | |
| 3623 | |
| 3624 | |
| 3625 | |
| 3626 | |
| 3627 | |
| 3628 | |
| 3629 | |
| 3630 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3631 | inttypes.h stdint.h unistd.h |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3632 | do |
| 3633 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3634 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3635 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3636 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3638 | else |
| 3639 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3640 | /* confdefs.h. */ |
| 3641 | _ACEOF |
| 3642 | cat confdefs.h >>conftest.$ac_ext |
| 3643 | cat >>conftest.$ac_ext <<_ACEOF |
| 3644 | /* end confdefs.h. */ |
| 3645 | $ac_includes_default |
| 3646 | |
| 3647 | #include <$ac_header> |
| 3648 | _ACEOF |
| 3649 | rm -f conftest.$ac_objext |
| 3650 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3651 | (eval $ac_compile) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3652 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3653 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3654 | rm -f conftest.er1 |
| 3655 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3657 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 3658 | { ac_try='test -z "$ac_c_werror_flag" |
| 3659 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3661 | (eval $ac_try) 2>&5 |
| 3662 | ac_status=$? |
| 3663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3664 | (exit $ac_status); }; } && |
| 3665 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3667 | (eval $ac_try) 2>&5 |
| 3668 | ac_status=$? |
| 3669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3670 | (exit $ac_status); }; }; then |
| 3671 | eval "$as_ac_Header=yes" |
| 3672 | else |
| 3673 | echo "$as_me: failed program was:" >&5 |
| 3674 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3675 | |
| 3676 | eval "$as_ac_Header=no" |
| 3677 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3678 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3679 | fi |
| 3680 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3681 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3682 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3683 | cat >>confdefs.h <<_ACEOF |
| 3684 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3685 | _ACEOF |
| 3686 | |
| 3687 | fi |
| 3688 | |
| 3689 | done |
| 3690 | |
| 3691 | |
| 3692 | |
| 3693 | for ac_header in dlfcn.h |
| 3694 | do |
| 3695 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3696 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 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 |
| 3700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3701 | fi |
| 3702 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3703 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3704 | else |
| 3705 | # Is the header compilable? |
| 3706 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3707 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3708 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3709 | /* confdefs.h. */ |
| 3710 | _ACEOF |
| 3711 | cat confdefs.h >>conftest.$ac_ext |
| 3712 | cat >>conftest.$ac_ext <<_ACEOF |
| 3713 | /* end confdefs.h. */ |
| 3714 | $ac_includes_default |
| 3715 | #include <$ac_header> |
| 3716 | _ACEOF |
| 3717 | rm -f conftest.$ac_objext |
| 3718 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3719 | (eval $ac_compile) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3720 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3721 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3722 | rm -f conftest.er1 |
| 3723 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3725 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 3726 | { ac_try='test -z "$ac_c_werror_flag" |
| 3727 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3729 | (eval $ac_try) 2>&5 |
| 3730 | ac_status=$? |
| 3731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3732 | (exit $ac_status); }; } && |
| 3733 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3735 | (eval $ac_try) 2>&5 |
| 3736 | ac_status=$? |
| 3737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3738 | (exit $ac_status); }; }; then |
| 3739 | ac_header_compiler=yes |
| 3740 | else |
| 3741 | echo "$as_me: failed program was:" >&5 |
| 3742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3743 | |
| 3744 | ac_header_compiler=no |
| 3745 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3746 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3747 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3748 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3749 | |
| 3750 | # Is the header present? |
| 3751 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3752 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3753 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3754 | /* confdefs.h. */ |
| 3755 | _ACEOF |
| 3756 | cat confdefs.h >>conftest.$ac_ext |
| 3757 | cat >>conftest.$ac_ext <<_ACEOF |
| 3758 | /* end confdefs.h. */ |
| 3759 | #include <$ac_header> |
| 3760 | _ACEOF |
| 3761 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3762 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3763 | ac_status=$? |
| 3764 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3765 | rm -f conftest.er1 |
| 3766 | cat conftest.err >&5 |
| 3767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3768 | (exit $ac_status); } >/dev/null; then |
| 3769 | if test -s conftest.err; then |
| 3770 | ac_cpp_err=$ac_c_preproc_warn_flag |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3771 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3772 | else |
| 3773 | ac_cpp_err= |
| 3774 | fi |
| 3775 | else |
| 3776 | ac_cpp_err=yes |
| 3777 | fi |
| 3778 | if test -z "$ac_cpp_err"; then |
| 3779 | ac_header_preproc=yes |
| 3780 | else |
| 3781 | echo "$as_me: failed program was:" >&5 |
| 3782 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3783 | |
| 3784 | ac_header_preproc=no |
| 3785 | fi |
| 3786 | rm -f conftest.err conftest.$ac_ext |
| 3787 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3788 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3789 | |
| 3790 | # So? What about this header? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3791 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3792 | yes:no: ) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3793 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3794 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3795 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 3796 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 3797 | ac_header_preproc=yes |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3798 | ;; |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3799 | no:yes:* ) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3800 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3801 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3802 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3803 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3804 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 3805 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 3806 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 3807 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3808 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3809 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3810 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 3811 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3812 | ( |
| 3813 | cat <<\_ASBOX |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3814 | ## ------------------------------------------ ## |
| 3815 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 3816 | ## ------------------------------------------ ## |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3817 | _ASBOX |
| 3818 | ) | |
| 3819 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3820 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3821 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3822 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3823 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3824 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3826 | else |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3827 | eval "$as_ac_Header=\$ac_header_preproc" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3828 | fi |
| 3829 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3830 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3831 | |
| 3832 | fi |
| 3833 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3834 | cat >>confdefs.h <<_ACEOF |
| 3835 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3836 | _ACEOF |
| 3837 | |
| 3838 | fi |
| 3839 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3840 | done |
| 3841 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3842 | ac_ext=cc |
| 3843 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3844 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3845 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3846 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3847 | if test -n "$ac_tool_prefix"; then |
| 3848 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 3849 | do |
| 3850 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3851 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3852 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3853 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3854 | if test "${ac_cv_prog_CXX+set}" = set; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3856 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3857 | if test -n "$CXX"; then |
| 3858 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3859 | else |
| 3860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3861 | for as_dir in $PATH |
| 3862 | do |
| 3863 | IFS=$as_save_IFS |
| 3864 | test -z "$as_dir" && as_dir=. |
| 3865 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3866 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3867 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 3868 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3869 | break 2 |
| 3870 | fi |
| 3871 | done |
| 3872 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3873 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3874 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3875 | fi |
| 3876 | CXX=$ac_cv_prog_CXX |
| 3877 | if test -n "$CXX"; then |
| 3878 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3879 | echo "${ECHO_T}$CXX" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3880 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3881 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3882 | echo "${ECHO_T}no" >&6 |
| 3883 | fi |
| 3884 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3885 | test -n "$CXX" && break |
| 3886 | done |
| 3887 | fi |
| 3888 | if test -z "$CXX"; then |
| 3889 | ac_ct_CXX=$CXX |
| 3890 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 3891 | do |
| 3892 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3893 | set dummy $ac_prog; ac_word=$2 |
| 3894 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3895 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3896 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3898 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3899 | if test -n "$ac_ct_CXX"; then |
| 3900 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3901 | else |
| 3902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3903 | for as_dir in $PATH |
| 3904 | do |
| 3905 | IFS=$as_save_IFS |
| 3906 | test -z "$as_dir" && as_dir=. |
| 3907 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3908 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3909 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 3910 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3911 | break 2 |
| 3912 | fi |
| 3913 | done |
| 3914 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3915 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3916 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3917 | fi |
| 3918 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 3919 | if test -n "$ac_ct_CXX"; then |
| 3920 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 3921 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3922 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3923 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3924 | echo "${ECHO_T}no" >&6 |
| 3925 | fi |
| 3926 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3927 | test -n "$ac_ct_CXX" && break |
| 3928 | done |
| 3929 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 3930 | |
| 3931 | CXX=$ac_ct_CXX |
| 3932 | fi |
| 3933 | |
| 3934 | |
| 3935 | # Provide some information about the compiler. |
| 3936 | echo "$as_me:$LINENO:" \ |
| 3937 | "checking for C++ compiler version" >&5 |
| 3938 | ac_compiler=`set X $ac_compile; echo $2` |
| 3939 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 3940 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 3941 | ac_status=$? |
| 3942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3943 | (exit $ac_status); } |
| 3944 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 3945 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 3946 | ac_status=$? |
| 3947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3948 | (exit $ac_status); } |
| 3949 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 3950 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 3951 | ac_status=$? |
| 3952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3953 | (exit $ac_status); } |
| 3954 | |
| 3955 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 3956 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 3957 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 3958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3959 | else |
| 3960 | cat >conftest.$ac_ext <<_ACEOF |
| 3961 | /* confdefs.h. */ |
| 3962 | _ACEOF |
| 3963 | cat confdefs.h >>conftest.$ac_ext |
| 3964 | cat >>conftest.$ac_ext <<_ACEOF |
| 3965 | /* end confdefs.h. */ |
| 3966 | |
| 3967 | int |
| 3968 | main () |
| 3969 | { |
| 3970 | #ifndef __GNUC__ |
| 3971 | choke me |
| 3972 | #endif |
| 3973 | |
| 3974 | ; |
| 3975 | return 0; |
| 3976 | } |
| 3977 | _ACEOF |
| 3978 | rm -f conftest.$ac_objext |
| 3979 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3980 | (eval $ac_compile) 2>conftest.er1 |
| 3981 | ac_status=$? |
| 3982 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3983 | rm -f conftest.er1 |
| 3984 | cat conftest.err >&5 |
| 3985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3986 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 3987 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3988 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3990 | (eval $ac_try) 2>&5 |
| 3991 | ac_status=$? |
| 3992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3993 | (exit $ac_status); }; } && |
| 3994 | { ac_try='test -s conftest.$ac_objext' |
| 3995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3996 | (eval $ac_try) 2>&5 |
| 3997 | ac_status=$? |
| 3998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3999 | (exit $ac_status); }; }; then |
| 4000 | ac_compiler_gnu=yes |
| 4001 | else |
| 4002 | echo "$as_me: failed program was:" >&5 |
| 4003 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4004 | |
| 4005 | ac_compiler_gnu=no |
| 4006 | fi |
| 4007 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4008 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 4009 | |
| 4010 | fi |
| 4011 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 4012 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 4013 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 4014 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 4015 | ac_save_CXXFLAGS=$CXXFLAGS |
| 4016 | CXXFLAGS="-g" |
| 4017 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 4018 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 4019 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 4020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4021 | else |
| 4022 | cat >conftest.$ac_ext <<_ACEOF |
| 4023 | /* confdefs.h. */ |
| 4024 | _ACEOF |
| 4025 | cat confdefs.h >>conftest.$ac_ext |
| 4026 | cat >>conftest.$ac_ext <<_ACEOF |
| 4027 | /* end confdefs.h. */ |
| 4028 | |
| 4029 | int |
| 4030 | main () |
| 4031 | { |
| 4032 | |
| 4033 | ; |
| 4034 | return 0; |
| 4035 | } |
| 4036 | _ACEOF |
| 4037 | rm -f conftest.$ac_objext |
| 4038 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4039 | (eval $ac_compile) 2>conftest.er1 |
| 4040 | ac_status=$? |
| 4041 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4042 | rm -f conftest.er1 |
| 4043 | cat conftest.err >&5 |
| 4044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4045 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 4046 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4047 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4049 | (eval $ac_try) 2>&5 |
| 4050 | ac_status=$? |
| 4051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4052 | (exit $ac_status); }; } && |
| 4053 | { ac_try='test -s conftest.$ac_objext' |
| 4054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4055 | (eval $ac_try) 2>&5 |
| 4056 | ac_status=$? |
| 4057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4058 | (exit $ac_status); }; }; then |
| 4059 | ac_cv_prog_cxx_g=yes |
| 4060 | else |
| 4061 | echo "$as_me: failed program was:" >&5 |
| 4062 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4063 | |
| 4064 | ac_cv_prog_cxx_g=no |
| 4065 | fi |
| 4066 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4067 | fi |
| 4068 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 4069 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 4070 | if test "$ac_test_CXXFLAGS" = set; then |
| 4071 | CXXFLAGS=$ac_save_CXXFLAGS |
| 4072 | elif test $ac_cv_prog_cxx_g = yes; then |
| 4073 | if test "$GXX" = yes; then |
| 4074 | CXXFLAGS="-g -O2" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4075 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4076 | CXXFLAGS="-g" |
| 4077 | fi |
| 4078 | else |
| 4079 | if test "$GXX" = yes; then |
| 4080 | CXXFLAGS="-O2" |
| 4081 | else |
| 4082 | CXXFLAGS= |
| 4083 | fi |
| 4084 | fi |
| 4085 | for ac_declaration in \ |
| 4086 | '' \ |
| 4087 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 4088 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 4089 | 'extern "C" void exit (int) throw ();' \ |
| 4090 | 'extern "C" void exit (int);' \ |
| 4091 | 'void exit (int);' |
| 4092 | do |
| 4093 | cat >conftest.$ac_ext <<_ACEOF |
| 4094 | /* confdefs.h. */ |
| 4095 | _ACEOF |
| 4096 | cat confdefs.h >>conftest.$ac_ext |
| 4097 | cat >>conftest.$ac_ext <<_ACEOF |
| 4098 | /* end confdefs.h. */ |
| 4099 | $ac_declaration |
| 4100 | #include <stdlib.h> |
| 4101 | int |
| 4102 | main () |
| 4103 | { |
| 4104 | exit (42); |
| 4105 | ; |
| 4106 | return 0; |
| 4107 | } |
| 4108 | _ACEOF |
| 4109 | rm -f conftest.$ac_objext |
| 4110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4111 | (eval $ac_compile) 2>conftest.er1 |
| 4112 | ac_status=$? |
| 4113 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4114 | rm -f conftest.er1 |
| 4115 | cat conftest.err >&5 |
| 4116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4117 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 4118 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4119 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4121 | (eval $ac_try) 2>&5 |
| 4122 | ac_status=$? |
| 4123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4124 | (exit $ac_status); }; } && |
| 4125 | { ac_try='test -s conftest.$ac_objext' |
| 4126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4127 | (eval $ac_try) 2>&5 |
| 4128 | ac_status=$? |
| 4129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4130 | (exit $ac_status); }; }; then |
| 4131 | : |
| 4132 | else |
| 4133 | echo "$as_me: failed program was:" >&5 |
| 4134 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4135 | |
| 4136 | continue |
| 4137 | fi |
| 4138 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4139 | cat >conftest.$ac_ext <<_ACEOF |
| 4140 | /* confdefs.h. */ |
| 4141 | _ACEOF |
| 4142 | cat confdefs.h >>conftest.$ac_ext |
| 4143 | cat >>conftest.$ac_ext <<_ACEOF |
| 4144 | /* end confdefs.h. */ |
| 4145 | $ac_declaration |
| 4146 | int |
| 4147 | main () |
| 4148 | { |
| 4149 | exit (42); |
| 4150 | ; |
| 4151 | return 0; |
| 4152 | } |
| 4153 | _ACEOF |
| 4154 | rm -f conftest.$ac_objext |
| 4155 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4156 | (eval $ac_compile) 2>conftest.er1 |
| 4157 | ac_status=$? |
| 4158 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4159 | rm -f conftest.er1 |
| 4160 | cat conftest.err >&5 |
| 4161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4162 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 4163 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4164 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4166 | (eval $ac_try) 2>&5 |
| 4167 | ac_status=$? |
| 4168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4169 | (exit $ac_status); }; } && |
| 4170 | { ac_try='test -s conftest.$ac_objext' |
| 4171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4172 | (eval $ac_try) 2>&5 |
| 4173 | ac_status=$? |
| 4174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4175 | (exit $ac_status); }; }; then |
| 4176 | break |
| 4177 | else |
| 4178 | echo "$as_me: failed program was:" >&5 |
| 4179 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4180 | |
| 4181 | fi |
| 4182 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4183 | done |
| 4184 | rm -f conftest* |
| 4185 | if test -n "$ac_declaration"; then |
| 4186 | echo '#ifdef __cplusplus' >>confdefs.h |
| 4187 | echo $ac_declaration >>confdefs.h |
| 4188 | echo '#endif' >>confdefs.h |
| 4189 | fi |
| 4190 | |
| 4191 | ac_ext=cc |
| 4192 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4193 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4194 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4195 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4196 | |
| 4197 | ac_ext=cc |
| 4198 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4199 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4200 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4201 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4202 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 4203 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
| 4204 | if test -z "$CXXCPP"; then |
| 4205 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
| 4206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4207 | else |
| 4208 | # Double quotes because CXXCPP needs to be expanded |
| 4209 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 4210 | do |
| 4211 | ac_preproc_ok=false |
| 4212 | for ac_cxx_preproc_warn_flag in '' yes |
| 4213 | do |
| 4214 | # Use a header file that comes with gcc, so configuring glibc |
| 4215 | # with a fresh cross-compiler works. |
| 4216 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4217 | # <limits.h> exists even on freestanding compilers. |
| 4218 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4219 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4220 | cat >conftest.$ac_ext <<_ACEOF |
| 4221 | /* confdefs.h. */ |
| 4222 | _ACEOF |
| 4223 | cat confdefs.h >>conftest.$ac_ext |
| 4224 | cat >>conftest.$ac_ext <<_ACEOF |
| 4225 | /* end confdefs.h. */ |
| 4226 | #ifdef __STDC__ |
| 4227 | # include <limits.h> |
| 4228 | #else |
| 4229 | # include <assert.h> |
| 4230 | #endif |
| 4231 | Syntax error |
| 4232 | _ACEOF |
| 4233 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4234 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4235 | ac_status=$? |
| 4236 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4237 | rm -f conftest.er1 |
| 4238 | cat conftest.err >&5 |
| 4239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4240 | (exit $ac_status); } >/dev/null; then |
| 4241 | if test -s conftest.err; then |
| 4242 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 4243 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 4244 | else |
| 4245 | ac_cpp_err= |
| 4246 | fi |
| 4247 | else |
| 4248 | ac_cpp_err=yes |
| 4249 | fi |
| 4250 | if test -z "$ac_cpp_err"; then |
| 4251 | : |
| 4252 | else |
| 4253 | echo "$as_me: failed program was:" >&5 |
| 4254 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4255 | |
| 4256 | # Broken: fails on valid input. |
| 4257 | continue |
| 4258 | fi |
| 4259 | rm -f conftest.err conftest.$ac_ext |
| 4260 | |
| 4261 | # OK, works on sane cases. Now check whether non-existent headers |
| 4262 | # can be detected and how. |
| 4263 | cat >conftest.$ac_ext <<_ACEOF |
| 4264 | /* confdefs.h. */ |
| 4265 | _ACEOF |
| 4266 | cat confdefs.h >>conftest.$ac_ext |
| 4267 | cat >>conftest.$ac_ext <<_ACEOF |
| 4268 | /* end confdefs.h. */ |
| 4269 | #include <ac_nonexistent.h> |
| 4270 | _ACEOF |
| 4271 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4272 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4273 | ac_status=$? |
| 4274 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4275 | rm -f conftest.er1 |
| 4276 | cat conftest.err >&5 |
| 4277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4278 | (exit $ac_status); } >/dev/null; then |
| 4279 | if test -s conftest.err; then |
| 4280 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 4281 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 4282 | else |
| 4283 | ac_cpp_err= |
| 4284 | fi |
| 4285 | else |
| 4286 | ac_cpp_err=yes |
| 4287 | fi |
| 4288 | if test -z "$ac_cpp_err"; then |
| 4289 | # Broken: success on invalid input. |
| 4290 | continue |
| 4291 | else |
| 4292 | echo "$as_me: failed program was:" >&5 |
| 4293 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4294 | |
| 4295 | # Passes both tests. |
| 4296 | ac_preproc_ok=: |
| 4297 | break |
| 4298 | fi |
| 4299 | rm -f conftest.err conftest.$ac_ext |
| 4300 | |
| 4301 | done |
| 4302 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4303 | rm -f conftest.err conftest.$ac_ext |
| 4304 | if $ac_preproc_ok; then |
| 4305 | break |
| 4306 | fi |
| 4307 | |
| 4308 | done |
| 4309 | ac_cv_prog_CXXCPP=$CXXCPP |
| 4310 | |
| 4311 | fi |
| 4312 | CXXCPP=$ac_cv_prog_CXXCPP |
| 4313 | else |
| 4314 | ac_cv_prog_CXXCPP=$CXXCPP |
| 4315 | fi |
| 4316 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 4317 | echo "${ECHO_T}$CXXCPP" >&6 |
| 4318 | ac_preproc_ok=false |
| 4319 | for ac_cxx_preproc_warn_flag in '' yes |
| 4320 | do |
| 4321 | # Use a header file that comes with gcc, so configuring glibc |
| 4322 | # with a fresh cross-compiler works. |
| 4323 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4324 | # <limits.h> exists even on freestanding compilers. |
| 4325 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4326 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4327 | cat >conftest.$ac_ext <<_ACEOF |
| 4328 | /* confdefs.h. */ |
| 4329 | _ACEOF |
| 4330 | cat confdefs.h >>conftest.$ac_ext |
| 4331 | cat >>conftest.$ac_ext <<_ACEOF |
| 4332 | /* end confdefs.h. */ |
| 4333 | #ifdef __STDC__ |
| 4334 | # include <limits.h> |
| 4335 | #else |
| 4336 | # include <assert.h> |
| 4337 | #endif |
| 4338 | Syntax error |
| 4339 | _ACEOF |
| 4340 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4341 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4342 | ac_status=$? |
| 4343 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4344 | rm -f conftest.er1 |
| 4345 | cat conftest.err >&5 |
| 4346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4347 | (exit $ac_status); } >/dev/null; then |
| 4348 | if test -s conftest.err; then |
| 4349 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 4350 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 4351 | else |
| 4352 | ac_cpp_err= |
| 4353 | fi |
| 4354 | else |
| 4355 | ac_cpp_err=yes |
| 4356 | fi |
| 4357 | if test -z "$ac_cpp_err"; then |
| 4358 | : |
| 4359 | else |
| 4360 | echo "$as_me: failed program was:" >&5 |
| 4361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4362 | |
| 4363 | # Broken: fails on valid input. |
| 4364 | continue |
| 4365 | fi |
| 4366 | rm -f conftest.err conftest.$ac_ext |
| 4367 | |
| 4368 | # OK, works on sane cases. Now check whether non-existent headers |
| 4369 | # can be detected and how. |
| 4370 | cat >conftest.$ac_ext <<_ACEOF |
| 4371 | /* confdefs.h. */ |
| 4372 | _ACEOF |
| 4373 | cat confdefs.h >>conftest.$ac_ext |
| 4374 | cat >>conftest.$ac_ext <<_ACEOF |
| 4375 | /* end confdefs.h. */ |
| 4376 | #include <ac_nonexistent.h> |
| 4377 | _ACEOF |
| 4378 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4379 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4380 | ac_status=$? |
| 4381 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4382 | rm -f conftest.er1 |
| 4383 | cat conftest.err >&5 |
| 4384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4385 | (exit $ac_status); } >/dev/null; then |
| 4386 | if test -s conftest.err; then |
| 4387 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 4388 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 4389 | else |
| 4390 | ac_cpp_err= |
| 4391 | fi |
| 4392 | else |
| 4393 | ac_cpp_err=yes |
| 4394 | fi |
| 4395 | if test -z "$ac_cpp_err"; then |
| 4396 | # Broken: success on invalid input. |
| 4397 | continue |
| 4398 | else |
| 4399 | echo "$as_me: failed program was:" >&5 |
| 4400 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4401 | |
| 4402 | # Passes both tests. |
| 4403 | ac_preproc_ok=: |
| 4404 | break |
| 4405 | fi |
| 4406 | rm -f conftest.err conftest.$ac_ext |
| 4407 | |
| 4408 | done |
| 4409 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4410 | rm -f conftest.err conftest.$ac_ext |
| 4411 | if $ac_preproc_ok; then |
| 4412 | : |
| 4413 | else |
| 4414 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 4415 | See \`config.log' for more details." >&5 |
| 4416 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 4417 | See \`config.log' for more details." >&2;} |
| 4418 | { (exit 1); exit 1; }; } |
| 4419 | fi |
| 4420 | |
| 4421 | ac_ext=cc |
| 4422 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4423 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4424 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4425 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4426 | |
| 4427 | |
| 4428 | ac_ext=f |
| 4429 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 4430 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4431 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 4432 | if test -n "$ac_tool_prefix"; then |
| 4433 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
| 4434 | do |
| 4435 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4436 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4437 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4438 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4439 | if test "${ac_cv_prog_F77+set}" = set; then |
| 4440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4441 | else |
| 4442 | if test -n "$F77"; then |
| 4443 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 4444 | else |
| 4445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4446 | for as_dir in $PATH |
| 4447 | do |
| 4448 | IFS=$as_save_IFS |
| 4449 | test -z "$as_dir" && as_dir=. |
| 4450 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4451 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4452 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 4453 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4454 | break 2 |
| 4455 | fi |
| 4456 | done |
| 4457 | done |
| 4458 | |
| 4459 | fi |
| 4460 | fi |
| 4461 | F77=$ac_cv_prog_F77 |
| 4462 | if test -n "$F77"; then |
| 4463 | echo "$as_me:$LINENO: result: $F77" >&5 |
| 4464 | echo "${ECHO_T}$F77" >&6 |
| 4465 | else |
| 4466 | echo "$as_me:$LINENO: result: no" >&5 |
| 4467 | echo "${ECHO_T}no" >&6 |
| 4468 | fi |
| 4469 | |
| 4470 | test -n "$F77" && break |
| 4471 | done |
| 4472 | fi |
| 4473 | if test -z "$F77"; then |
| 4474 | ac_ct_F77=$F77 |
| 4475 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
| 4476 | do |
| 4477 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4478 | set dummy $ac_prog; ac_word=$2 |
| 4479 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4480 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4481 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 4482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4483 | else |
| 4484 | if test -n "$ac_ct_F77"; then |
| 4485 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 4486 | else |
| 4487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4488 | for as_dir in $PATH |
| 4489 | do |
| 4490 | IFS=$as_save_IFS |
| 4491 | test -z "$as_dir" && as_dir=. |
| 4492 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4493 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4494 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 4495 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4496 | break 2 |
| 4497 | fi |
| 4498 | done |
| 4499 | done |
| 4500 | |
| 4501 | fi |
| 4502 | fi |
| 4503 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 4504 | if test -n "$ac_ct_F77"; then |
| 4505 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 4506 | echo "${ECHO_T}$ac_ct_F77" >&6 |
| 4507 | else |
| 4508 | echo "$as_me:$LINENO: result: no" >&5 |
| 4509 | echo "${ECHO_T}no" >&6 |
| 4510 | fi |
| 4511 | |
| 4512 | test -n "$ac_ct_F77" && break |
| 4513 | done |
| 4514 | |
| 4515 | F77=$ac_ct_F77 |
| 4516 | fi |
| 4517 | |
| 4518 | |
| 4519 | # Provide some information about the compiler. |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 4520 | echo "$as_me:4520:" \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4521 | "checking for Fortran 77 compiler version" >&5 |
| 4522 | ac_compiler=`set X $ac_compile; echo $2` |
| 4523 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 4524 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 4525 | ac_status=$? |
| 4526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4527 | (exit $ac_status); } |
| 4528 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 4529 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 4530 | ac_status=$? |
| 4531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4532 | (exit $ac_status); } |
| 4533 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 4534 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 4535 | ac_status=$? |
| 4536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4537 | (exit $ac_status); } |
| 4538 | rm -f a.out |
| 4539 | |
| 4540 | # If we don't use `.F' as extension, the preprocessor is not run on the |
| 4541 | # input file. (Note that this only needs to work for GNU compilers.) |
| 4542 | ac_save_ext=$ac_ext |
| 4543 | ac_ext=F |
| 4544 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 4545 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
| 4546 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 4547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4548 | else |
| 4549 | cat >conftest.$ac_ext <<_ACEOF |
| 4550 | program main |
| 4551 | #ifndef __GNUC__ |
| 4552 | choke me |
| 4553 | #endif |
| 4554 | |
| 4555 | end |
| 4556 | _ACEOF |
| 4557 | rm -f conftest.$ac_objext |
| 4558 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4559 | (eval $ac_compile) 2>conftest.er1 |
| 4560 | ac_status=$? |
| 4561 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4562 | rm -f conftest.er1 |
| 4563 | cat conftest.err >&5 |
| 4564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4565 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 4566 | { ac_try='test -z "$ac_f77_werror_flag" |
| 4567 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4569 | (eval $ac_try) 2>&5 |
| 4570 | ac_status=$? |
| 4571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4572 | (exit $ac_status); }; } && |
| 4573 | { ac_try='test -s conftest.$ac_objext' |
| 4574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4575 | (eval $ac_try) 2>&5 |
| 4576 | ac_status=$? |
| 4577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4578 | (exit $ac_status); }; }; then |
| 4579 | ac_compiler_gnu=yes |
| 4580 | else |
| 4581 | echo "$as_me: failed program was:" >&5 |
| 4582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4583 | |
| 4584 | ac_compiler_gnu=no |
| 4585 | fi |
| 4586 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4587 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 4588 | |
| 4589 | fi |
| 4590 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 4591 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
| 4592 | ac_ext=$ac_save_ext |
| 4593 | ac_test_FFLAGS=${FFLAGS+set} |
| 4594 | ac_save_FFLAGS=$FFLAGS |
| 4595 | FFLAGS= |
| 4596 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 4597 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
| 4598 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 4599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4600 | else |
| 4601 | FFLAGS=-g |
| 4602 | cat >conftest.$ac_ext <<_ACEOF |
| 4603 | program main |
| 4604 | |
| 4605 | end |
| 4606 | _ACEOF |
| 4607 | rm -f conftest.$ac_objext |
| 4608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4609 | (eval $ac_compile) 2>conftest.er1 |
| 4610 | ac_status=$? |
| 4611 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4612 | rm -f conftest.er1 |
| 4613 | cat conftest.err >&5 |
| 4614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4615 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 4616 | { ac_try='test -z "$ac_f77_werror_flag" |
| 4617 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4619 | (eval $ac_try) 2>&5 |
| 4620 | ac_status=$? |
| 4621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4622 | (exit $ac_status); }; } && |
| 4623 | { ac_try='test -s conftest.$ac_objext' |
| 4624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4625 | (eval $ac_try) 2>&5 |
| 4626 | ac_status=$? |
| 4627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4628 | (exit $ac_status); }; }; then |
| 4629 | ac_cv_prog_f77_g=yes |
| 4630 | else |
| 4631 | echo "$as_me: failed program was:" >&5 |
| 4632 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4633 | |
| 4634 | ac_cv_prog_f77_g=no |
| 4635 | fi |
| 4636 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4637 | |
| 4638 | fi |
| 4639 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 4640 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
| 4641 | if test "$ac_test_FFLAGS" = set; then |
| 4642 | FFLAGS=$ac_save_FFLAGS |
| 4643 | elif test $ac_cv_prog_f77_g = yes; then |
| 4644 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 4645 | FFLAGS="-g -O2" |
| 4646 | else |
| 4647 | FFLAGS="-g" |
| 4648 | fi |
| 4649 | else |
| 4650 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 4651 | FFLAGS="-O2" |
| 4652 | else |
| 4653 | FFLAGS= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4654 | fi |
| 4655 | fi |
| 4656 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4657 | G77=`test $ac_compiler_gnu = yes && echo yes` |
| 4658 | ac_ext=c |
| 4659 | ac_cpp='$CPP $CPPFLAGS' |
| 4660 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4661 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4662 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4663 | |
| 4664 | |
| 4665 | |
| 4666 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 4667 | |
| 4668 | # find the maximum length of command line arguments |
| 4669 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 4670 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
| 4671 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 4672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4673 | else |
| 4674 | i=0 |
| 4675 | testring="ABCD" |
| 4676 | |
| 4677 | case $build_os in |
| 4678 | msdosdjgpp*) |
| 4679 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 4680 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 4681 | # during glob expansion). Even if it were fixed, the result of this |
| 4682 | # check would be larger than it should be. |
| 4683 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 4684 | ;; |
| 4685 | |
| 4686 | gnu*) |
| 4687 | # Under GNU Hurd, this test is not required because there is |
| 4688 | # no limit to the length of command line arguments. |
| 4689 | # Libtool will interpret -1 as no limit whatsoever |
| 4690 | lt_cv_sys_max_cmd_len=-1; |
| 4691 | ;; |
| 4692 | |
| 4693 | cygwin* | mingw*) |
| 4694 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 4695 | # about 5 minutes as the teststring grows exponentially. |
| 4696 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 4697 | # you end up with a "frozen" computer, even though with patience |
| 4698 | # the test eventually succeeds (with a max line length of 256k). |
| 4699 | # Instead, let's just punt: use the minimum linelength reported by |
| 4700 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 4701 | lt_cv_sys_max_cmd_len=8192; |
| 4702 | ;; |
| 4703 | |
| 4704 | amigaos*) |
| 4705 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 4706 | # So we just punt and use a minimum line length of 8192. |
| 4707 | lt_cv_sys_max_cmd_len=8192; |
| 4708 | ;; |
| 4709 | |
| 4710 | *) |
| 4711 | # If test is not a shell built-in, we'll probably end up computing a |
| 4712 | # maximum length that is only half of the actual maximum length, but |
| 4713 | # we can't tell. |
| 4714 | while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ |
| 4715 | = "XX$testring") >/dev/null 2>&1 && |
| 4716 | new_result=`expr "X$testring" : ".*" 2>&1` && |
| 4717 | lt_cv_sys_max_cmd_len=$new_result && |
| 4718 | test $i != 17 # 1/2 MB should be enough |
| 4719 | do |
| 4720 | i=`expr $i + 1` |
| 4721 | testring=$testring$testring |
| 4722 | done |
| 4723 | testring= |
| 4724 | # Add a significant safety factor because C++ compilers can tack on massive |
| 4725 | # amounts of additional arguments before passing them to the linker. |
| 4726 | # It appears as though 1/2 is a usable value. |
| 4727 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 4728 | ;; |
| 4729 | esac |
| 4730 | |
| 4731 | fi |
| 4732 | |
| 4733 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 4734 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 4735 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
| 4736 | else |
| 4737 | echo "$as_me:$LINENO: result: none" >&5 |
| 4738 | echo "${ECHO_T}none" >&6 |
| 4739 | fi |
| 4740 | |
| 4741 | |
| 4742 | |
| 4743 | |
| 4744 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 4745 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 4746 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
| 4747 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 4748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4749 | else |
| 4750 | |
| 4751 | # These are sane defaults that work on at least a few old systems. |
| 4752 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 4753 | |
| 4754 | # Character class describing NM global symbol codes. |
| 4755 | symcode='[BCDEGRST]' |
| 4756 | |
| 4757 | # Regexp to match symbols that can be accessed directly from C. |
| 4758 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 4759 | |
| 4760 | # Transform the above into a raw symbol and a C symbol. |
| 4761 | symxfrm='\1 \2\3 \3' |
| 4762 | |
| 4763 | # Transform an extracted symbol line into a proper C declaration |
| 4764 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 4765 | |
| 4766 | # Transform an extracted symbol line into symbol name and symbol address |
| 4767 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 4768 | |
| 4769 | # Define system-specific variables. |
| 4770 | case $host_os in |
| 4771 | aix*) |
| 4772 | symcode='[BCDT]' |
| 4773 | ;; |
| 4774 | cygwin* | mingw* | pw32*) |
| 4775 | symcode='[ABCDGISTW]' |
| 4776 | ;; |
| 4777 | hpux*) # Its linker distinguishes data from code symbols |
| 4778 | if test "$host_cpu" = ia64; then |
| 4779 | symcode='[ABCDEGRST]' |
| 4780 | fi |
| 4781 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 4782 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 4783 | ;; |
| 4784 | irix* | nonstopux*) |
| 4785 | symcode='[BCDEGRST]' |
| 4786 | ;; |
| 4787 | osf*) |
| 4788 | symcode='[BCDEGQRST]' |
| 4789 | ;; |
| 4790 | solaris* | sysv5*) |
| 4791 | symcode='[BDRT]' |
| 4792 | ;; |
| 4793 | sysv4) |
| 4794 | symcode='[DFNSTU]' |
| 4795 | ;; |
| 4796 | esac |
| 4797 | |
| 4798 | # Handle CRLF in mingw tool chain |
| 4799 | opt_cr= |
| 4800 | case $build_os in |
| 4801 | mingw*) |
| 4802 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 4803 | ;; |
| 4804 | esac |
| 4805 | |
| 4806 | # If we're using GNU nm, then use its standard symbol codes. |
| 4807 | case `$NM -V 2>&1` in |
| 4808 | *GNU* | *'with BFD'*) |
| 4809 | symcode='[ABCDGIRSTW]' ;; |
| 4810 | esac |
| 4811 | |
| 4812 | # Try without a prefix undercore, then with it. |
| 4813 | for ac_symprfx in "" "_"; do |
| 4814 | |
| 4815 | # Write the raw and C identifiers. |
| 4816 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 4817 | |
| 4818 | # Check to see that the pipe works correctly. |
| 4819 | pipe_works=no |
| 4820 | |
| 4821 | rm -f conftest* |
| 4822 | cat > conftest.$ac_ext <<EOF |
| 4823 | #ifdef __cplusplus |
| 4824 | extern "C" { |
| 4825 | #endif |
| 4826 | char nm_test_var; |
| 4827 | void nm_test_func(){} |
| 4828 | #ifdef __cplusplus |
| 4829 | } |
| 4830 | #endif |
| 4831 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 4832 | EOF |
| 4833 | |
| 4834 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4835 | (eval $ac_compile) 2>&5 |
| 4836 | ac_status=$? |
| 4837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4838 | (exit $ac_status); }; then |
| 4839 | # Now try to grab the symbols. |
| 4840 | nlist=conftest.nm |
| 4841 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 4842 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 4843 | ac_status=$? |
| 4844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4845 | (exit $ac_status); } && test -s "$nlist"; then |
| 4846 | # Try sorting and uniquifying the output. |
| 4847 | if sort "$nlist" | uniq > "$nlist"T; then |
| 4848 | mv -f "$nlist"T "$nlist" |
| 4849 | else |
| 4850 | rm -f "$nlist"T |
| 4851 | fi |
| 4852 | |
| 4853 | # Make sure that we snagged all the symbols we need. |
| 4854 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 4855 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 4856 | cat <<EOF > conftest.$ac_ext |
| 4857 | #ifdef __cplusplus |
| 4858 | extern "C" { |
| 4859 | #endif |
| 4860 | |
| 4861 | EOF |
| 4862 | # Now generate the symbol file. |
| 4863 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 4864 | |
| 4865 | cat <<EOF >> conftest.$ac_ext |
| 4866 | #if defined (__STDC__) && __STDC__ |
| 4867 | # define lt_ptr_t void * |
| 4868 | #else |
| 4869 | # define lt_ptr_t char * |
| 4870 | # define const |
| 4871 | #endif |
| 4872 | |
| 4873 | /* The mapping between symbol names and symbols. */ |
| 4874 | const struct { |
| 4875 | const char *name; |
| 4876 | lt_ptr_t address; |
| 4877 | } |
| 4878 | lt_preloaded_symbols[] = |
| 4879 | { |
| 4880 | EOF |
| 4881 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 4882 | cat <<\EOF >> conftest.$ac_ext |
| 4883 | {0, (lt_ptr_t) 0} |
| 4884 | }; |
| 4885 | |
| 4886 | #ifdef __cplusplus |
| 4887 | } |
| 4888 | #endif |
| 4889 | EOF |
| 4890 | # Now try linking the two files. |
| 4891 | mv conftest.$ac_objext conftstm.$ac_objext |
| 4892 | lt_save_LIBS="$LIBS" |
| 4893 | lt_save_CFLAGS="$CFLAGS" |
| 4894 | LIBS="conftstm.$ac_objext" |
| 4895 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 4896 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4897 | (eval $ac_link) 2>&5 |
| 4898 | ac_status=$? |
| 4899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4900 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 4901 | pipe_works=yes |
| 4902 | fi |
| 4903 | LIBS="$lt_save_LIBS" |
| 4904 | CFLAGS="$lt_save_CFLAGS" |
| 4905 | else |
| 4906 | echo "cannot find nm_test_func in $nlist" >&5 |
| 4907 | fi |
| 4908 | else |
| 4909 | echo "cannot find nm_test_var in $nlist" >&5 |
| 4910 | fi |
| 4911 | else |
| 4912 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 4913 | fi |
| 4914 | else |
| 4915 | echo "$progname: failed program was:" >&5 |
| 4916 | cat conftest.$ac_ext >&5 |
| 4917 | fi |
| 4918 | rm -f conftest* conftst* |
| 4919 | |
| 4920 | # Do not use the global_symbol_pipe unless it works. |
| 4921 | if test "$pipe_works" = yes; then |
| 4922 | break |
| 4923 | else |
| 4924 | lt_cv_sys_global_symbol_pipe= |
| 4925 | fi |
| 4926 | done |
| 4927 | |
| 4928 | fi |
| 4929 | |
| 4930 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 4931 | lt_cv_sys_global_symbol_to_cdecl= |
| 4932 | fi |
| 4933 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 4934 | echo "$as_me:$LINENO: result: failed" >&5 |
| 4935 | echo "${ECHO_T}failed" >&6 |
| 4936 | else |
| 4937 | echo "$as_me:$LINENO: result: ok" >&5 |
| 4938 | echo "${ECHO_T}ok" >&6 |
| 4939 | fi |
| 4940 | |
| 4941 | echo "$as_me:$LINENO: checking for objdir" >&5 |
| 4942 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| 4943 | if test "${lt_cv_objdir+set}" = set; then |
| 4944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4945 | else |
| 4946 | rm -f .libs 2>/dev/null |
| 4947 | mkdir .libs 2>/dev/null |
| 4948 | if test -d .libs; then |
| 4949 | lt_cv_objdir=.libs |
| 4950 | else |
| 4951 | # MS-DOS does not allow filenames that begin with a dot. |
| 4952 | lt_cv_objdir=_libs |
| 4953 | fi |
| 4954 | rmdir .libs 2>/dev/null |
| 4955 | fi |
| 4956 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 4957 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
| 4958 | objdir=$lt_cv_objdir |
| 4959 | |
| 4960 | |
| 4961 | |
| 4962 | |
| 4963 | |
| 4964 | case $host_os in |
| 4965 | aix3*) |
| 4966 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 4967 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 4968 | # vanish in a puff of smoke. |
| 4969 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 4970 | COLLECT_NAMES= |
| 4971 | export COLLECT_NAMES |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4972 | fi |
| 4973 | ;; |
| 4974 | esac |
| 4975 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4976 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 4977 | # metacharacters that are still active within double-quoted strings. |
| 4978 | Xsed='sed -e s/^X//' |
| 4979 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 4980 | |
| 4981 | # Same as above, but do not quote variable references. |
| 4982 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 4983 | |
| 4984 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 4985 | # double_quote_subst'ed string. |
| 4986 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 4987 | |
| 4988 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 4989 | no_glob_subst='s/\*/\\\*/g' |
| 4990 | |
| 4991 | # Constants: |
| 4992 | rm="rm -f" |
| 4993 | |
| 4994 | # Global variables: |
| 4995 | default_ofile=libtool |
| 4996 | can_build_shared=yes |
| 4997 | |
| 4998 | # All known linkers require a `.a' archive for static linking (except M$VC, |
| 4999 | # which needs '.lib'). |
| 5000 | libext=a |
| 5001 | ltmain="$ac_aux_dir/ltmain.sh" |
| 5002 | ofile="$default_ofile" |
| 5003 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 5004 | |
| 5005 | if test -n "$ac_tool_prefix"; then |
| 5006 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 5007 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 5008 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5009 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5010 | if test "${ac_cv_prog_AR+set}" = set; then |
| 5011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5012 | else |
| 5013 | if test -n "$AR"; then |
| 5014 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5015 | else |
| 5016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5017 | for as_dir in $PATH |
| 5018 | do |
| 5019 | IFS=$as_save_IFS |
| 5020 | test -z "$as_dir" && as_dir=. |
| 5021 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5022 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5023 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 5024 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5025 | break 2 |
| 5026 | fi |
| 5027 | done |
| 5028 | done |
| 5029 | |
| 5030 | fi |
| 5031 | fi |
| 5032 | AR=$ac_cv_prog_AR |
| 5033 | if test -n "$AR"; then |
| 5034 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 5035 | echo "${ECHO_T}$AR" >&6 |
| 5036 | else |
| 5037 | echo "$as_me:$LINENO: result: no" >&5 |
| 5038 | echo "${ECHO_T}no" >&6 |
| 5039 | fi |
| 5040 | |
| 5041 | fi |
| 5042 | if test -z "$ac_cv_prog_AR"; then |
| 5043 | ac_ct_AR=$AR |
| 5044 | # Extract the first word of "ar", so it can be a program name with args. |
| 5045 | set dummy ar; ac_word=$2 |
| 5046 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5047 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5048 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 5049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5050 | else |
| 5051 | if test -n "$ac_ct_AR"; then |
| 5052 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5053 | else |
| 5054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5055 | for as_dir in $PATH |
| 5056 | do |
| 5057 | IFS=$as_save_IFS |
| 5058 | test -z "$as_dir" && as_dir=. |
| 5059 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5060 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5061 | ac_cv_prog_ac_ct_AR="ar" |
| 5062 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5063 | break 2 |
| 5064 | fi |
| 5065 | done |
| 5066 | done |
| 5067 | |
| 5068 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
| 5069 | fi |
| 5070 | fi |
| 5071 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5072 | if test -n "$ac_ct_AR"; then |
| 5073 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 5074 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| 5075 | else |
| 5076 | echo "$as_me:$LINENO: result: no" >&5 |
| 5077 | echo "${ECHO_T}no" >&6 |
| 5078 | fi |
| 5079 | |
| 5080 | AR=$ac_ct_AR |
| 5081 | else |
| 5082 | AR="$ac_cv_prog_AR" |
| 5083 | fi |
| 5084 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5085 | if test -n "$ac_tool_prefix"; then |
| 5086 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5087 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5088 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5089 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5090 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 5091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5092 | else |
| 5093 | if test -n "$RANLIB"; then |
| 5094 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5095 | else |
| 5096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5097 | for as_dir in $PATH |
| 5098 | do |
| 5099 | IFS=$as_save_IFS |
| 5100 | test -z "$as_dir" && as_dir=. |
| 5101 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5102 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5103 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5104 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5105 | break 2 |
| 5106 | fi |
| 5107 | done |
| 5108 | done |
| 5109 | |
| 5110 | fi |
| 5111 | fi |
| 5112 | RANLIB=$ac_cv_prog_RANLIB |
| 5113 | if test -n "$RANLIB"; then |
| 5114 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 5115 | echo "${ECHO_T}$RANLIB" >&6 |
| 5116 | else |
| 5117 | echo "$as_me:$LINENO: result: no" >&5 |
| 5118 | echo "${ECHO_T}no" >&6 |
| 5119 | fi |
| 5120 | |
| 5121 | fi |
| 5122 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5123 | ac_ct_RANLIB=$RANLIB |
| 5124 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5125 | set dummy ranlib; ac_word=$2 |
| 5126 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5127 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5128 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 5129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5130 | else |
| 5131 | if test -n "$ac_ct_RANLIB"; then |
| 5132 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5133 | else |
| 5134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5135 | for as_dir in $PATH |
| 5136 | do |
| 5137 | IFS=$as_save_IFS |
| 5138 | test -z "$as_dir" && as_dir=. |
| 5139 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5140 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5141 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5142 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5143 | break 2 |
| 5144 | fi |
| 5145 | done |
| 5146 | done |
| 5147 | |
| 5148 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 5149 | fi |
| 5150 | fi |
| 5151 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5152 | if test -n "$ac_ct_RANLIB"; then |
| 5153 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 5154 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 5155 | else |
| 5156 | echo "$as_me:$LINENO: result: no" >&5 |
| 5157 | echo "${ECHO_T}no" >&6 |
| 5158 | fi |
| 5159 | |
| 5160 | RANLIB=$ac_ct_RANLIB |
| 5161 | else |
| 5162 | RANLIB="$ac_cv_prog_RANLIB" |
| 5163 | fi |
| 5164 | |
| 5165 | if test -n "$ac_tool_prefix"; then |
| 5166 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5167 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 5168 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5169 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5170 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 5171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5172 | else |
| 5173 | if test -n "$STRIP"; then |
| 5174 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5175 | else |
| 5176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5177 | for as_dir in $PATH |
| 5178 | do |
| 5179 | IFS=$as_save_IFS |
| 5180 | test -z "$as_dir" && as_dir=. |
| 5181 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5182 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5183 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5184 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5185 | break 2 |
| 5186 | fi |
| 5187 | done |
| 5188 | done |
| 5189 | |
| 5190 | fi |
| 5191 | fi |
| 5192 | STRIP=$ac_cv_prog_STRIP |
| 5193 | if test -n "$STRIP"; then |
| 5194 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 5195 | echo "${ECHO_T}$STRIP" >&6 |
| 5196 | else |
| 5197 | echo "$as_me:$LINENO: result: no" >&5 |
| 5198 | echo "${ECHO_T}no" >&6 |
| 5199 | fi |
| 5200 | |
| 5201 | fi |
| 5202 | if test -z "$ac_cv_prog_STRIP"; then |
| 5203 | ac_ct_STRIP=$STRIP |
| 5204 | # Extract the first word of "strip", so it can be a program name with args. |
| 5205 | set dummy strip; ac_word=$2 |
| 5206 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5207 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5208 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 5209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5210 | else |
| 5211 | if test -n "$ac_ct_STRIP"; then |
| 5212 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5213 | else |
| 5214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5215 | for as_dir in $PATH |
| 5216 | do |
| 5217 | IFS=$as_save_IFS |
| 5218 | test -z "$as_dir" && as_dir=. |
| 5219 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5220 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5221 | ac_cv_prog_ac_ct_STRIP="strip" |
| 5222 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5223 | break 2 |
| 5224 | fi |
| 5225 | done |
| 5226 | done |
| 5227 | |
| 5228 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 5229 | fi |
| 5230 | fi |
| 5231 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5232 | if test -n "$ac_ct_STRIP"; then |
| 5233 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 5234 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 5235 | else |
| 5236 | echo "$as_me:$LINENO: result: no" >&5 |
| 5237 | echo "${ECHO_T}no" >&6 |
| 5238 | fi |
| 5239 | |
| 5240 | STRIP=$ac_ct_STRIP |
| 5241 | else |
| 5242 | STRIP="$ac_cv_prog_STRIP" |
| 5243 | fi |
| 5244 | |
| 5245 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5246 | old_CC="$CC" |
| 5247 | old_CFLAGS="$CFLAGS" |
| 5248 | |
| 5249 | # Set sane defaults for various variables |
| 5250 | test -z "$AR" && AR=ar |
| 5251 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 5252 | test -z "$AS" && AS=as |
| 5253 | test -z "$CC" && CC=cc |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5254 | test -z "$LTCC" && LTCC=$CC |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5255 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 5256 | test -z "$LD" && LD=ld |
| 5257 | test -z "$LN_S" && LN_S="ln -s" |
| 5258 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 5259 | test -z "$NM" && NM=nm |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5260 | test -z "$SED" && SED=sed |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5261 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 5262 | test -z "$RANLIB" && RANLIB=: |
| 5263 | test -z "$STRIP" && STRIP=: |
| 5264 | test -z "$ac_objext" && ac_objext=o |
| 5265 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5266 | # Determine commands to create old-style static archives. |
| 5267 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 5268 | old_postinstall_cmds='chmod 644 $oldlib' |
| 5269 | old_postuninstall_cmds= |
| 5270 | |
| 5271 | if test -n "$RANLIB"; then |
| 5272 | case $host_os in |
| 5273 | openbsd*) |
| 5274 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
| 5275 | ;; |
| 5276 | *) |
| 5277 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
| 5278 | ;; |
| 5279 | esac |
| 5280 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 5281 | fi |
| 5282 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5283 | # Only perform the check for file, if the check method requires it |
| 5284 | case $deplibs_check_method in |
| 5285 | file_magic*) |
| 5286 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 5287 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 5288 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
| 5289 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 5290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5291 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5292 | case $MAGIC_CMD in |
| 5293 | [\\/*] | ?:[\\/]*) |
| 5294 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 5295 | ;; |
| 5296 | *) |
| 5297 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 5298 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5299 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 5300 | for ac_dir in $ac_dummy; do |
| 5301 | IFS="$lt_save_ifs" |
| 5302 | test -z "$ac_dir" && ac_dir=. |
| 5303 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 5304 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 5305 | if test -n "$file_magic_test_file"; then |
| 5306 | case $deplibs_check_method in |
| 5307 | "file_magic "*) |
| 5308 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 5309 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5310 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 5311 | $EGREP "$file_magic_regex" > /dev/null; then |
| 5312 | : |
| 5313 | else |
| 5314 | cat <<EOF 1>&2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5315 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5316 | *** Warning: the command libtool uses to detect shared libraries, |
| 5317 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 5318 | *** The result is that libtool may fail to recognize shared libraries |
| 5319 | *** as such. This will affect the creation of libtool libraries that |
| 5320 | *** depend on shared libraries, but programs linked with such libtool |
| 5321 | *** libraries will work regardless of this problem. Nevertheless, you |
| 5322 | *** may want to report the problem to your system manager and/or to |
| 5323 | *** bug-libtool@gnu.org |
| 5324 | |
| 5325 | EOF |
| 5326 | fi ;; |
| 5327 | esac |
| 5328 | fi |
| 5329 | break |
| 5330 | fi |
| 5331 | done |
| 5332 | IFS="$lt_save_ifs" |
| 5333 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 5334 | ;; |
| 5335 | esac |
| 5336 | fi |
| 5337 | |
| 5338 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5339 | if test -n "$MAGIC_CMD"; then |
| 5340 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 5341 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 5342 | else |
| 5343 | echo "$as_me:$LINENO: result: no" >&5 |
| 5344 | echo "${ECHO_T}no" >&6 |
| 5345 | fi |
| 5346 | |
| 5347 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 5348 | if test -n "$ac_tool_prefix"; then |
| 5349 | echo "$as_me:$LINENO: checking for file" >&5 |
| 5350 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
| 5351 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 5352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5353 | else |
| 5354 | case $MAGIC_CMD in |
| 5355 | [\\/*] | ?:[\\/]*) |
| 5356 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 5357 | ;; |
| 5358 | *) |
| 5359 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 5360 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5361 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 5362 | for ac_dir in $ac_dummy; do |
| 5363 | IFS="$lt_save_ifs" |
| 5364 | test -z "$ac_dir" && ac_dir=. |
| 5365 | if test -f $ac_dir/file; then |
| 5366 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 5367 | if test -n "$file_magic_test_file"; then |
| 5368 | case $deplibs_check_method in |
| 5369 | "file_magic "*) |
| 5370 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 5371 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5372 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 5373 | $EGREP "$file_magic_regex" > /dev/null; then |
| 5374 | : |
| 5375 | else |
| 5376 | cat <<EOF 1>&2 |
| 5377 | |
| 5378 | *** Warning: the command libtool uses to detect shared libraries, |
| 5379 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 5380 | *** The result is that libtool may fail to recognize shared libraries |
| 5381 | *** as such. This will affect the creation of libtool libraries that |
| 5382 | *** depend on shared libraries, but programs linked with such libtool |
| 5383 | *** libraries will work regardless of this problem. Nevertheless, you |
| 5384 | *** may want to report the problem to your system manager and/or to |
| 5385 | *** bug-libtool@gnu.org |
| 5386 | |
| 5387 | EOF |
| 5388 | fi ;; |
| 5389 | esac |
| 5390 | fi |
| 5391 | break |
| 5392 | fi |
| 5393 | done |
| 5394 | IFS="$lt_save_ifs" |
| 5395 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 5396 | ;; |
| 5397 | esac |
| 5398 | fi |
| 5399 | |
| 5400 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5401 | if test -n "$MAGIC_CMD"; then |
| 5402 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 5403 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 5404 | else |
| 5405 | echo "$as_me:$LINENO: result: no" >&5 |
| 5406 | echo "${ECHO_T}no" >&6 |
| 5407 | fi |
| 5408 | |
| 5409 | else |
| 5410 | MAGIC_CMD=: |
| 5411 | fi |
| 5412 | fi |
| 5413 | |
| 5414 | fi |
| 5415 | ;; |
| 5416 | esac |
| 5417 | |
| 5418 | enable_dlopen=no |
| 5419 | enable_win32_dll=no |
| 5420 | |
| 5421 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 5422 | if test "${enable_libtool_lock+set}" = set; then |
| 5423 | enableval="$enable_libtool_lock" |
| 5424 | |
| 5425 | fi; |
| 5426 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5427 | |
| 5428 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5429 | # Check whether --with-pic or --without-pic was given. |
| 5430 | if test "${with_pic+set}" = set; then |
| 5431 | withval="$with_pic" |
| 5432 | pic_mode="$withval" |
| 5433 | else |
| 5434 | pic_mode=default |
| 5435 | fi; |
| 5436 | test -z "$pic_mode" && pic_mode=default |
| 5437 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5438 | # Use C for the default configuration in the libtool script |
| 5439 | tagname= |
| 5440 | lt_save_CC="$CC" |
| 5441 | ac_ext=c |
| 5442 | ac_cpp='$CPP $CPPFLAGS' |
| 5443 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5444 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5445 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5446 | |
| 5447 | |
| 5448 | # Source file extension for C test sources. |
| 5449 | ac_ext=c |
| 5450 | |
| 5451 | # Object file extension for compiled C test sources. |
| 5452 | objext=o |
| 5453 | objext=$objext |
| 5454 | |
| 5455 | # Code to be used in simple compile tests |
| 5456 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 5457 | |
| 5458 | # Code to be used in simple link tests |
| 5459 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 5460 | |
| 5461 | |
| 5462 | # If no C compiler was specified, use CC. |
| 5463 | LTCC=${LTCC-"$CC"} |
| 5464 | |
| 5465 | # Allow CC to be a program name with arguments. |
| 5466 | compiler=$CC |
| 5467 | |
| 5468 | |
| 5469 | # |
| 5470 | # Check for any special shared library compilation flags. |
| 5471 | # |
| 5472 | lt_prog_cc_shlib= |
| 5473 | if test "$GCC" = no; then |
| 5474 | case $host_os in |
| 5475 | sco3.2v5*) |
| 5476 | lt_prog_cc_shlib='-belf' |
| 5477 | ;; |
| 5478 | esac |
| 5479 | fi |
| 5480 | if test -n "$lt_prog_cc_shlib"; then |
| 5481 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
| 5482 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
| 5483 | if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : |
| 5484 | else |
| 5485 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
| 5486 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
| 5487 | lt_cv_prog_cc_can_build_shared=no |
| 5488 | fi |
| 5489 | fi |
| 5490 | |
| 5491 | |
| 5492 | # |
| 5493 | # Check to make sure the static flag actually works. |
| 5494 | # |
| 5495 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
| 5496 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 |
| 5497 | if test "${lt_prog_compiler_static_works+set}" = set; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5499 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5500 | lt_prog_compiler_static_works=no |
| 5501 | save_LDFLAGS="$LDFLAGS" |
| 5502 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" |
| 5503 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 5504 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 5505 | # The compiler can only warn and ignore the option if not recognized |
| 5506 | # So say no if there are warnings |
| 5507 | if test -s conftest.err; then |
| 5508 | # Append any errors to the config.log. |
| 5509 | cat conftest.err 1>&5 |
| 5510 | else |
| 5511 | lt_prog_compiler_static_works=yes |
| 5512 | fi |
| 5513 | fi |
| 5514 | $rm conftest* |
| 5515 | LDFLAGS="$save_LDFLAGS" |
| 5516 | |
| 5517 | fi |
| 5518 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 5519 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
| 5520 | |
| 5521 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 5522 | : |
| 5523 | else |
| 5524 | lt_prog_compiler_static= |
| 5525 | fi |
| 5526 | |
| 5527 | |
| 5528 | |
| 5529 | |
| 5530 | lt_prog_compiler_no_builtin_flag= |
| 5531 | |
| 5532 | if test "$GCC" = yes; then |
| 5533 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 5534 | |
| 5535 | |
| 5536 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 5537 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 5538 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 5539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5540 | else |
| 5541 | lt_cv_prog_compiler_rtti_exceptions=no |
| 5542 | ac_outfile=conftest.$ac_objext |
| 5543 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 5544 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 5545 | # Insert the option either (1) after the last *FLAGS variable, or |
| 5546 | # (2) before a word containing "conftest.", or (3) at the end. |
| 5547 | # Note that $ac_compile itself does not contain backslashes and begins |
| 5548 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 5549 | # The option is referenced via a variable to avoid confusing sed. |
| 5550 | lt_compile=`echo "$ac_compile" | $SED \ |
| 5551 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 5552 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 5553 | -e 's:$: $lt_compiler_flag:'` |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 5554 | (eval echo "\"\$as_me:5554: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5555 | (eval "$lt_compile" 2>conftest.err) |
| 5556 | ac_status=$? |
| 5557 | cat conftest.err >&5 |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 5558 | echo "$as_me:5558: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5559 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 5560 | # The compiler can only warn and ignore the option if not recognized |
| 5561 | # So say no if there are warnings |
| 5562 | if test ! -s conftest.err; then |
| 5563 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 5564 | fi |
| 5565 | fi |
| 5566 | $rm conftest* |
| 5567 | |
| 5568 | fi |
| 5569 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 5570 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 5571 | |
| 5572 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 5573 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 5574 | else |
| 5575 | : |
| 5576 | fi |
| 5577 | |
| 5578 | fi |
| 5579 | |
| 5580 | lt_prog_compiler_wl= |
| 5581 | lt_prog_compiler_pic= |
| 5582 | lt_prog_compiler_static= |
| 5583 | |
| 5584 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 5585 | 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] | 5586 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5587 | if test "$GCC" = yes; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5588 | lt_prog_compiler_wl='-Wl,' |
| 5589 | lt_prog_compiler_static='-static' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5590 | |
| 5591 | case $host_os in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5592 | aix*) |
| 5593 | # All AIX code is PIC. |
| 5594 | if test "$host_cpu" = ia64; then |
| 5595 | # AIX 5 now supports IA64 processor |
| 5596 | lt_prog_compiler_static='-Bstatic' |
| 5597 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5598 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5599 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5600 | amigaos*) |
| 5601 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 5602 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 5603 | # like `-m68040'. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5604 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5605 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5606 | |
| 5607 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5608 | # PIC is the default for these OSes. |
| 5609 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5610 | |
| 5611 | mingw* | pw32* | os2*) |
| 5612 | # This hack is so that the source file can tell whether it is being |
| 5613 | # built for inclusion in a dll (and should export symbols for example). |
| 5614 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 5615 | ;; |
| 5616 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5617 | darwin* | rhapsody*) |
| 5618 | # PIC is the default on this platform |
| 5619 | # Common symbols not allowed in MH_DYLIB files |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5620 | lt_prog_compiler_pic='-fno-common' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5621 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5622 | |
| 5623 | msdosdjgpp*) |
| 5624 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 5625 | # on systems that don't support them. |
| 5626 | lt_prog_compiler_can_build_shared=no |
| 5627 | enable_shared=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5628 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5629 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5630 | sysv4*MP*) |
| 5631 | if test -d /usr/nec; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5632 | lt_prog_compiler_pic=-Kconform_pic |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5633 | fi |
| 5634 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5635 | |
| 5636 | hpux*) |
| 5637 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 5638 | # not for PA HP-UX. |
| 5639 | case "$host_cpu" in |
| 5640 | hppa*64*|ia64*) |
| 5641 | # +Z the default |
| 5642 | ;; |
| 5643 | *) |
| 5644 | lt_prog_compiler_pic='-fPIC' |
| 5645 | ;; |
| 5646 | esac |
| 5647 | ;; |
| 5648 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5649 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5650 | lt_prog_compiler_pic='-fPIC' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5651 | ;; |
| 5652 | esac |
| 5653 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5654 | # PORTME Check for flag to pass linker flags through the system compiler. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5655 | case $host_os in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5656 | aix*) |
| 5657 | lt_prog_compiler_wl='-Wl,' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5658 | if test "$host_cpu" = ia64; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5659 | # AIX 5 now supports IA64 processor |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5660 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5661 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5662 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5663 | fi |
| 5664 | ;; |
| 5665 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5666 | mingw* | pw32* | os2*) |
| 5667 | # This hack is so that the source file can tell whether it is being |
| 5668 | # built for inclusion in a dll (and should export symbols for example). |
| 5669 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 5670 | ;; |
| 5671 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5672 | hpux9* | hpux10* | hpux11*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5673 | lt_prog_compiler_wl='-Wl,' |
| 5674 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 5675 | # not for PA HP-UX. |
| 5676 | case "$host_cpu" in |
| 5677 | hppa*64*|ia64*) |
| 5678 | # +Z the default |
| 5679 | ;; |
| 5680 | *) |
| 5681 | lt_prog_compiler_pic='+Z' |
| 5682 | ;; |
| 5683 | esac |
| 5684 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 5685 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5686 | ;; |
| 5687 | |
| 5688 | irix5* | irix6* | nonstopux*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5689 | lt_prog_compiler_wl='-Wl,' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5690 | # PIC (with -KPIC) is the default. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5691 | lt_prog_compiler_static='-non_shared' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5692 | ;; |
| 5693 | |
| 5694 | newsos6) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5695 | lt_prog_compiler_pic='-KPIC' |
| 5696 | lt_prog_compiler_static='-Bstatic' |
| 5697 | ;; |
| 5698 | |
| 5699 | linux*) |
| 5700 | case $CC in |
| 5701 | icc* | ecc*) |
| 5702 | lt_prog_compiler_wl='-Wl,' |
| 5703 | lt_prog_compiler_pic='-KPIC' |
| 5704 | lt_prog_compiler_static='-static' |
| 5705 | ;; |
| 5706 | ccc*) |
| 5707 | lt_prog_compiler_wl='-Wl,' |
| 5708 | # All Alpha code is PIC. |
| 5709 | lt_prog_compiler_static='-non_shared' |
| 5710 | ;; |
| 5711 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5712 | ;; |
| 5713 | |
| 5714 | osf3* | osf4* | osf5*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5715 | lt_prog_compiler_wl='-Wl,' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5716 | # All OSF/1 code is PIC. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5717 | lt_prog_compiler_static='-non_shared' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5718 | ;; |
| 5719 | |
| 5720 | sco3.2v5*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5721 | lt_prog_compiler_pic='-Kpic' |
| 5722 | lt_prog_compiler_static='-dn' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5723 | ;; |
| 5724 | |
| 5725 | solaris*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5726 | lt_prog_compiler_wl='-Wl,' |
| 5727 | lt_prog_compiler_pic='-KPIC' |
| 5728 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5729 | ;; |
| 5730 | |
| 5731 | sunos4*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5732 | lt_prog_compiler_wl='-Qoption ld ' |
| 5733 | lt_prog_compiler_pic='-PIC' |
| 5734 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5735 | ;; |
| 5736 | |
| 5737 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5738 | lt_prog_compiler_wl='-Wl,' |
| 5739 | lt_prog_compiler_pic='-KPIC' |
| 5740 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5741 | ;; |
| 5742 | |
| 5743 | sysv4*MP*) |
| 5744 | if test -d /usr/nec ;then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5745 | lt_prog_compiler_pic='-Kconform_pic' |
| 5746 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5747 | fi |
| 5748 | ;; |
| 5749 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5750 | uts4*) |
| 5751 | lt_prog_compiler_pic='-pic' |
| 5752 | lt_prog_compiler_static='-Bstatic' |
| 5753 | ;; |
| 5754 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5755 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5756 | lt_prog_compiler_can_build_shared=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5757 | ;; |
| 5758 | esac |
| 5759 | fi |
| 5760 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5761 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 5762 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5763 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5764 | # |
| 5765 | # Check to make sure the PIC flag actually works. |
| 5766 | # |
| 5767 | if test -n "$lt_prog_compiler_pic"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5768 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5769 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 5770 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
| 5771 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5773 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5774 | lt_prog_compiler_pic_works=no |
| 5775 | ac_outfile=conftest.$ac_objext |
| 5776 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 5777 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 5778 | # Insert the option either (1) after the last *FLAGS variable, or |
| 5779 | # (2) before a word containing "conftest.", or (3) at the end. |
| 5780 | # Note that $ac_compile itself does not contain backslashes and begins |
| 5781 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 5782 | # The option is referenced via a variable to avoid confusing sed. |
| 5783 | lt_compile=`echo "$ac_compile" | $SED \ |
| 5784 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 5785 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 5786 | -e 's:$: $lt_compiler_flag:'` |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 5787 | (eval echo "\"\$as_me:5787: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5788 | (eval "$lt_compile" 2>conftest.err) |
| 5789 | ac_status=$? |
| 5790 | cat conftest.err >&5 |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 5791 | echo "$as_me:5791: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5792 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 5793 | # The compiler can only warn and ignore the option if not recognized |
| 5794 | # So say no if there are warnings |
| 5795 | if test ! -s conftest.err; then |
| 5796 | lt_prog_compiler_pic_works=yes |
| 5797 | fi |
| 5798 | fi |
| 5799 | $rm conftest* |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5800 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5801 | fi |
| 5802 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 5803 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5804 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5805 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 5806 | case $lt_prog_compiler_pic in |
| 5807 | "" | " "*) ;; |
| 5808 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 5809 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5810 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5811 | lt_prog_compiler_pic= |
| 5812 | lt_prog_compiler_can_build_shared=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5813 | fi |
| 5814 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5815 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5816 | case "$host_os" in |
| 5817 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 5818 | *djgpp*) |
| 5819 | lt_prog_compiler_pic= |
| 5820 | ;; |
| 5821 | *) |
| 5822 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 5823 | ;; |
| 5824 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5825 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5826 | 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] | 5827 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5828 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5830 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5831 | lt_cv_prog_compiler_c_o=no |
| 5832 | $rm -r conftest 2>/dev/null |
| 5833 | mkdir conftest |
| 5834 | cd conftest |
| 5835 | mkdir out |
| 5836 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5837 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5838 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 5839 | # Insert the option either (1) after the last *FLAGS variable, or |
| 5840 | # (2) before a word containing "conftest.", or (3) at the end. |
| 5841 | # Note that $ac_compile itself does not contain backslashes and begins |
| 5842 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 5843 | lt_compile=`echo "$ac_compile" | $SED \ |
| 5844 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 5845 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 5846 | -e 's:$: $lt_compiler_flag:'` |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 5847 | (eval echo "\"\$as_me:5847: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5848 | (eval "$lt_compile" 2>out/conftest.err) |
| 5849 | ac_status=$? |
| 5850 | cat out/conftest.err >&5 |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 5851 | echo "$as_me:5851: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5852 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 5853 | then |
| 5854 | # The compiler can only warn and ignore the option if not recognized |
| 5855 | # So say no if there are warnings |
| 5856 | if test ! -s out/conftest.err; then |
| 5857 | lt_cv_prog_compiler_c_o=yes |
| 5858 | fi |
| 5859 | fi |
| 5860 | chmod u+w . |
| 5861 | $rm conftest* |
| 5862 | # SGI C++ compiler will create directory out/ii_files/ for |
| 5863 | # template instantiation |
| 5864 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 5865 | $rm out/* && rmdir out |
| 5866 | cd .. |
| 5867 | rmdir conftest |
| 5868 | $rm conftest* |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5869 | |
| 5870 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5871 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 5872 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5873 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5874 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5875 | hard_links="nottested" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5876 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5877 | # do not overwrite the value of need_locks provided by the user |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5878 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5879 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 5880 | hard_links=yes |
| 5881 | $rm conftest* |
| 5882 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 5883 | touch conftest.a |
| 5884 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 5885 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5886 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5887 | echo "${ECHO_T}$hard_links" >&6 |
| 5888 | if test "$hard_links" = no; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5889 | { 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] | 5890 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 5891 | need_locks=warn |
| 5892 | fi |
| 5893 | else |
| 5894 | need_locks=no |
| 5895 | fi |
| 5896 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5897 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 5898 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 5899 | |
| 5900 | runpath_var= |
| 5901 | allow_undefined_flag= |
| 5902 | enable_shared_with_static_runtimes=no |
| 5903 | archive_cmds= |
| 5904 | archive_expsym_cmds= |
| 5905 | old_archive_From_new_cmds= |
| 5906 | old_archive_from_expsyms_cmds= |
| 5907 | export_dynamic_flag_spec= |
| 5908 | whole_archive_flag_spec= |
| 5909 | thread_safe_flag_spec= |
| 5910 | hardcode_libdir_flag_spec= |
| 5911 | hardcode_libdir_flag_spec_ld= |
| 5912 | hardcode_libdir_separator= |
| 5913 | hardcode_direct=no |
| 5914 | hardcode_minus_L=no |
| 5915 | hardcode_shlibpath_var=unsupported |
| 5916 | link_all_deplibs=unknown |
| 5917 | hardcode_automatic=no |
| 5918 | module_cmds= |
| 5919 | module_expsym_cmds= |
| 5920 | always_export_symbols=no |
| 5921 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 5922 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 5923 | # included in the symbol list |
| 5924 | include_expsyms= |
| 5925 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 5926 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 5927 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 5928 | # as well as any symbol that contains `d'. |
| 5929 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 5930 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 5931 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 5932 | # the symbol is explicitly referenced. Since portable code cannot |
| 5933 | # rely on this symbol name, it's probably fine to never include it in |
| 5934 | # preloaded symbol tables. |
| 5935 | extract_expsyms_cmds= |
| 5936 | |
| 5937 | case $host_os in |
| 5938 | cygwin* | mingw* | pw32*) |
| 5939 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 5940 | # When not using gcc, we currently assume that we are using |
| 5941 | # Microsoft Visual C++. |
| 5942 | if test "$GCC" != yes; then |
| 5943 | with_gnu_ld=no |
| 5944 | fi |
| 5945 | ;; |
| 5946 | openbsd*) |
| 5947 | with_gnu_ld=no |
| 5948 | ;; |
| 5949 | esac |
| 5950 | |
| 5951 | ld_shlibs=yes |
| 5952 | if test "$with_gnu_ld" = yes; then |
| 5953 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 5954 | wlarc='${wl}' |
| 5955 | |
| 5956 | # See if GNU ld supports shared libraries. |
| 5957 | case $host_os in |
| 5958 | aix3* | aix4* | aix5*) |
| 5959 | # On AIX/PPC, the GNU linker is very broken |
| 5960 | if test "$host_cpu" != ia64; then |
| 5961 | ld_shlibs=no |
| 5962 | cat <<EOF 1>&2 |
| 5963 | |
| 5964 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 5965 | *** to be unable to reliably create shared libraries on AIX. |
| 5966 | *** Therefore, libtool is disabling shared libraries support. If you |
| 5967 | *** really care for shared libraries, you may want to modify your PATH |
| 5968 | *** so that a non-GNU linker is found, and then restart. |
| 5969 | |
| 5970 | EOF |
| 5971 | fi |
| 5972 | ;; |
| 5973 | |
| 5974 | amigaos*) |
| 5975 | 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)' |
| 5976 | hardcode_libdir_flag_spec='-L$libdir' |
| 5977 | hardcode_minus_L=yes |
| 5978 | |
| 5979 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 5980 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 5981 | # to version 4, is to share data among multiple programs linked |
| 5982 | # with the same dynamic library. Since this doesn't match the |
| 5983 | # behavior of shared libraries on other platforms, we can't use |
| 5984 | # them. |
| 5985 | ld_shlibs=no |
| 5986 | ;; |
| 5987 | |
| 5988 | beos*) |
| 5989 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 5990 | allow_undefined_flag=unsupported |
| 5991 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 5992 | # support --undefined. This deserves some investigation. FIXME |
| 5993 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5994 | else |
| 5995 | ld_shlibs=no |
| 5996 | fi |
| 5997 | ;; |
| 5998 | |
| 5999 | cygwin* | mingw* | pw32*) |
| 6000 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 6001 | # as there is no search path for DLLs. |
| 6002 | hardcode_libdir_flag_spec='-L$libdir' |
| 6003 | allow_undefined_flag=unsupported |
| 6004 | always_export_symbols=no |
| 6005 | enable_shared_with_static_runtimes=yes |
| 6006 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 6007 | |
| 6008 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 6009 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 6010 | # If the export-symbols file already is a .def file (1st line |
| 6011 | # is EXPORTS), use it as is; otherwise, prepend... |
| 6012 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 6013 | cp $export_symbols $output_objdir/$soname.def; |
| 6014 | else |
| 6015 | echo EXPORTS > $output_objdir/$soname.def; |
| 6016 | cat $export_symbols >> $output_objdir/$soname.def; |
| 6017 | fi~ |
| 6018 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 6019 | else |
| 6020 | ld_shlibs=no |
| 6021 | fi |
| 6022 | ;; |
| 6023 | |
| 6024 | netbsd* | knetbsd*-gnu) |
| 6025 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 6026 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 6027 | wlarc= |
| 6028 | else |
| 6029 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6030 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6031 | fi |
| 6032 | ;; |
| 6033 | |
| 6034 | solaris* | sysv5*) |
| 6035 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 6036 | ld_shlibs=no |
| 6037 | cat <<EOF 1>&2 |
| 6038 | |
| 6039 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 6040 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 6041 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 6042 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 6043 | *** your PATH or compiler configuration so that the native linker is |
| 6044 | *** used, and then restart. |
| 6045 | |
| 6046 | EOF |
| 6047 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 6048 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6049 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6050 | else |
| 6051 | ld_shlibs=no |
| 6052 | fi |
| 6053 | ;; |
| 6054 | |
| 6055 | sunos4*) |
| 6056 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 6057 | wlarc= |
| 6058 | hardcode_direct=yes |
| 6059 | hardcode_shlibpath_var=no |
| 6060 | ;; |
| 6061 | |
| 6062 | linux*) |
| 6063 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 6064 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6065 | archive_cmds="$tmp_archive_cmds" |
| 6066 | supports_anon_versioning=no |
| 6067 | case `$LD -v 2>/dev/null` in |
| 6068 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 6069 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 6070 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 6071 | *\ 2.11.*) ;; # other 2.11 versions |
| 6072 | *) supports_anon_versioning=yes ;; |
| 6073 | esac |
| 6074 | if test $supports_anon_versioning = yes; then |
| 6075 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 6076 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 6077 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 6078 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 6079 | else |
| 6080 | archive_expsym_cmds="$tmp_archive_cmds" |
| 6081 | fi |
| 6082 | else |
| 6083 | ld_shlibs=no |
| 6084 | fi |
| 6085 | ;; |
| 6086 | |
| 6087 | *) |
| 6088 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 6089 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6090 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6091 | else |
| 6092 | ld_shlibs=no |
| 6093 | fi |
| 6094 | ;; |
| 6095 | esac |
| 6096 | |
| 6097 | if test "$ld_shlibs" = yes; then |
| 6098 | runpath_var=LD_RUN_PATH |
| 6099 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 6100 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 6101 | # ancient GNU ld didn't support --whole-archive et. al. |
| 6102 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 6103 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 6104 | else |
| 6105 | whole_archive_flag_spec= |
| 6106 | fi |
| 6107 | fi |
| 6108 | else |
| 6109 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 6110 | case $host_os in |
| 6111 | aix3*) |
| 6112 | allow_undefined_flag=unsupported |
| 6113 | always_export_symbols=yes |
| 6114 | 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' |
| 6115 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 6116 | # are no directories specified by -L. |
| 6117 | hardcode_minus_L=yes |
| 6118 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 6119 | # Neither direct hardcoding nor static linking is supported with a |
| 6120 | # broken collect2. |
| 6121 | hardcode_direct=unsupported |
| 6122 | fi |
| 6123 | ;; |
| 6124 | |
| 6125 | aix4* | aix5*) |
| 6126 | if test "$host_cpu" = ia64; then |
| 6127 | # On IA64, the linker does run time linking by default, so we don't |
| 6128 | # have to do anything special. |
| 6129 | aix_use_runtimelinking=no |
| 6130 | exp_sym_flag='-Bexport' |
| 6131 | no_entry_flag="" |
| 6132 | else |
| 6133 | # If we're using GNU nm, then we don't want the "-C" option. |
| 6134 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 6135 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 6136 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 6137 | else |
| 6138 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 6139 | fi |
| 6140 | aix_use_runtimelinking=no |
| 6141 | |
| 6142 | # Test if we are trying to use run time linking or normal |
| 6143 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 6144 | # need to do runtime linking. |
| 6145 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 6146 | for ld_flag in $LDFLAGS; do |
| 6147 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 6148 | aix_use_runtimelinking=yes |
| 6149 | break |
| 6150 | fi |
| 6151 | done |
| 6152 | esac |
| 6153 | |
| 6154 | exp_sym_flag='-bexport' |
| 6155 | no_entry_flag='-bnoentry' |
| 6156 | fi |
| 6157 | |
| 6158 | # When large executables or shared objects are built, AIX ld can |
| 6159 | # have problems creating the table of contents. If linking a library |
| 6160 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 6161 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 6162 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 6163 | |
| 6164 | archive_cmds='' |
| 6165 | hardcode_direct=yes |
| 6166 | hardcode_libdir_separator=':' |
| 6167 | link_all_deplibs=yes |
| 6168 | |
| 6169 | if test "$GCC" = yes; then |
| 6170 | case $host_os in aix4.012|aix4.012.*) |
| 6171 | # We only want to do this on AIX 4.2 and lower, the check |
| 6172 | # below for broken collect2 doesn't work under 4.3+ |
| 6173 | collect2name=`${CC} -print-prog-name=collect2` |
| 6174 | if test -f "$collect2name" && \ |
| 6175 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 6176 | then |
| 6177 | # We have reworked collect2 |
| 6178 | hardcode_direct=yes |
| 6179 | else |
| 6180 | # We have old collect2 |
| 6181 | hardcode_direct=unsupported |
| 6182 | # It fails to find uninstalled libraries when the uninstalled |
| 6183 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 6184 | # to unsupported forces relinking |
| 6185 | hardcode_minus_L=yes |
| 6186 | hardcode_libdir_flag_spec='-L$libdir' |
| 6187 | hardcode_libdir_separator= |
| 6188 | fi |
| 6189 | esac |
| 6190 | shared_flag='-shared' |
| 6191 | else |
| 6192 | # not using gcc |
| 6193 | if test "$host_cpu" = ia64; then |
| 6194 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 6195 | # chokes on -Wl,-G. The following line is correct: |
| 6196 | shared_flag='-G' |
| 6197 | else |
| 6198 | if test "$aix_use_runtimelinking" = yes; then |
| 6199 | shared_flag='${wl}-G' |
| 6200 | else |
| 6201 | shared_flag='${wl}-bM:SRE' |
| 6202 | fi |
| 6203 | fi |
| 6204 | fi |
| 6205 | |
| 6206 | # It seems that -bexpall does not export symbols beginning with |
| 6207 | # underscore (_), so it is better to generate a list of symbols to export. |
| 6208 | always_export_symbols=yes |
| 6209 | if test "$aix_use_runtimelinking" = yes; then |
| 6210 | # Warning - without using the other runtime loading flags (-brtl), |
| 6211 | # -berok will link without error, but may produce a broken library. |
| 6212 | allow_undefined_flag='-berok' |
| 6213 | # Determine the default libpath from the value encoded in an empty executable. |
| 6214 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6215 | /* confdefs.h. */ |
| 6216 | _ACEOF |
| 6217 | cat confdefs.h >>conftest.$ac_ext |
| 6218 | cat >>conftest.$ac_ext <<_ACEOF |
| 6219 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6220 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6221 | int |
| 6222 | main () |
| 6223 | { |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6224 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6225 | ; |
| 6226 | return 0; |
| 6227 | } |
| 6228 | _ACEOF |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6229 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6230 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6231 | (eval $ac_link) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6232 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 6233 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6234 | rm -f conftest.er1 |
| 6235 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6237 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 6238 | { ac_try='test -z "$ac_c_werror_flag" |
| 6239 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 6240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6241 | (eval $ac_try) 2>&5 |
| 6242 | ac_status=$? |
| 6243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6244 | (exit $ac_status); }; } && |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6245 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6247 | (eval $ac_try) 2>&5 |
| 6248 | ac_status=$? |
| 6249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6250 | (exit $ac_status); }; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6251 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6252 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 6253 | }'` |
| 6254 | # Check for a 64-bit object if we didn't find anything. |
| 6255 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 6256 | }'`; fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6257 | else |
| 6258 | echo "$as_me: failed program was:" >&5 |
| 6259 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6260 | |
| 6261 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6262 | rm -f conftest.err conftest.$ac_objext \ |
| 6263 | conftest$ac_exeext conftest.$ac_ext |
| 6264 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6265 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6266 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 6267 | 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" |
| 6268 | else |
| 6269 | if test "$host_cpu" = ia64; then |
| 6270 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 6271 | allow_undefined_flag="-z nodefs" |
| 6272 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 6273 | else |
| 6274 | # Determine the default libpath from the value encoded in an empty executable. |
| 6275 | cat >conftest.$ac_ext <<_ACEOF |
| 6276 | /* confdefs.h. */ |
| 6277 | _ACEOF |
| 6278 | cat confdefs.h >>conftest.$ac_ext |
| 6279 | cat >>conftest.$ac_ext <<_ACEOF |
| 6280 | /* end confdefs.h. */ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6281 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6282 | int |
| 6283 | main () |
| 6284 | { |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6285 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6286 | ; |
| 6287 | return 0; |
| 6288 | } |
| 6289 | _ACEOF |
| 6290 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6291 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6292 | (eval $ac_link) 2>conftest.er1 |
| 6293 | ac_status=$? |
| 6294 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6295 | rm -f conftest.er1 |
| 6296 | cat conftest.err >&5 |
| 6297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6298 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 6299 | { ac_try='test -z "$ac_c_werror_flag" |
| 6300 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6302 | (eval $ac_try) 2>&5 |
| 6303 | ac_status=$? |
| 6304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6305 | (exit $ac_status); }; } && |
| 6306 | { ac_try='test -s conftest$ac_exeext' |
| 6307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6308 | (eval $ac_try) 2>&5 |
| 6309 | ac_status=$? |
| 6310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6311 | (exit $ac_status); }; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6312 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6313 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 6314 | }'` |
| 6315 | # Check for a 64-bit object if we didn't find anything. |
| 6316 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 6317 | }'`; fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6318 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6319 | echo "$as_me: failed program was:" >&5 |
| 6320 | sed 's/^/| /' conftest.$ac_ext >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6321 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6322 | fi |
| 6323 | rm -f conftest.err conftest.$ac_objext \ |
| 6324 | conftest$ac_exeext conftest.$ac_ext |
| 6325 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6326 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6327 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 6328 | # Warning - without using the other run time loading flags, |
| 6329 | # -berok will link without error, but may produce a broken library. |
| 6330 | no_undefined_flag=' ${wl}-bernotok' |
| 6331 | allow_undefined_flag=' ${wl}-berok' |
| 6332 | # -bexpall does not export symbols beginning with underscore (_) |
| 6333 | always_export_symbols=yes |
| 6334 | # Exported symbols can be pulled into shared objects from archives |
| 6335 | whole_archive_flag_spec=' ' |
| 6336 | archive_cmds_need_lc=yes |
| 6337 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 6338 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6339 | fi |
| 6340 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6341 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6342 | |
| 6343 | amigaos*) |
| 6344 | 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)' |
| 6345 | hardcode_libdir_flag_spec='-L$libdir' |
| 6346 | hardcode_minus_L=yes |
| 6347 | # see comment about different semantics on the GNU ld section |
| 6348 | ld_shlibs=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6349 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6350 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6351 | bsdi4*) |
| 6352 | export_dynamic_flag_spec=-rdynamic |
| 6353 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6354 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6355 | cygwin* | mingw* | pw32*) |
| 6356 | # When not using gcc, we currently assume that we are using |
| 6357 | # Microsoft Visual C++. |
| 6358 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 6359 | # no search path for DLLs. |
| 6360 | hardcode_libdir_flag_spec=' ' |
| 6361 | allow_undefined_flag=unsupported |
| 6362 | # Tell ltmain to make .lib files, not .a files. |
| 6363 | libext=lib |
| 6364 | # Tell ltmain to make .dll files, not .so files. |
| 6365 | shrext=".dll" |
| 6366 | # FIXME: Setting linknames here is a bad hack. |
| 6367 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 6368 | # The linker will automatically build a .lib file if we build a DLL. |
| 6369 | old_archive_From_new_cmds='true' |
| 6370 | # FIXME: Should let the user specify the lib program. |
| 6371 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 6372 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 6373 | enable_shared_with_static_runtimes=yes |
| 6374 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6375 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6376 | darwin* | rhapsody*) |
| 6377 | if test "$GXX" = yes ; then |
| 6378 | archive_cmds_need_lc=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6379 | case "$host_os" in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6380 | rhapsody* | darwin1.[012]) |
| 6381 | allow_undefined_flag='-undefined suppress' |
| 6382 | ;; |
| 6383 | *) # Darwin 1.3 on |
| 6384 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 6385 | allow_undefined_flag='-flat_namespace -undefined suppress' |
| 6386 | else |
| 6387 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 6388 | 10.[012]) |
| 6389 | allow_undefined_flag='-flat_namespace -undefined suppress' |
| 6390 | ;; |
| 6391 | 10.*) |
| 6392 | allow_undefined_flag='-undefined dynamic_lookup' |
| 6393 | ;; |
| 6394 | esac |
| 6395 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6396 | ;; |
| 6397 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6398 | lt_int_apple_cc_single_mod=no |
| 6399 | output_verbose_link_cmd='echo' |
| 6400 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 6401 | lt_int_apple_cc_single_mod=yes |
| 6402 | fi |
| 6403 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 6404 | archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 6405 | else |
| 6406 | archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 6407 | fi |
| 6408 | module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 6409 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 6410 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 6411 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 6412 | else |
| 6413 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 6414 | fi |
| 6415 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 6416 | hardcode_direct=no |
| 6417 | hardcode_automatic=yes |
| 6418 | hardcode_shlibpath_var=unsupported |
| 6419 | whole_archive_flag_spec='-all_load $convenience' |
| 6420 | link_all_deplibs=yes |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6421 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6422 | ld_shlibs=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6423 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6424 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6425 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6426 | dgux*) |
| 6427 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6428 | hardcode_libdir_flag_spec='-L$libdir' |
| 6429 | hardcode_shlibpath_var=no |
| 6430 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6431 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6432 | freebsd1*) |
| 6433 | ld_shlibs=no |
| 6434 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6435 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6436 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 6437 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 6438 | # does not break anything, and helps significantly (at the cost of a little |
| 6439 | # extra space). |
| 6440 | freebsd2.2*) |
| 6441 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 6442 | hardcode_libdir_flag_spec='-R$libdir' |
| 6443 | hardcode_direct=yes |
| 6444 | hardcode_shlibpath_var=no |
| 6445 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6446 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6447 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 6448 | freebsd2*) |
| 6449 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 6450 | hardcode_direct=yes |
| 6451 | hardcode_minus_L=yes |
| 6452 | hardcode_shlibpath_var=no |
| 6453 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6454 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6455 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 6456 | freebsd* | kfreebsd*-gnu) |
| 6457 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 6458 | hardcode_libdir_flag_spec='-R$libdir' |
| 6459 | hardcode_direct=yes |
| 6460 | hardcode_shlibpath_var=no |
| 6461 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6462 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6463 | hpux9*) |
| 6464 | if test "$GCC" = yes; then |
| 6465 | archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 6466 | else |
| 6467 | 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' |
| 6468 | fi |
| 6469 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 6470 | hardcode_libdir_separator=: |
| 6471 | hardcode_direct=yes |
| 6472 | |
| 6473 | # hardcode_minus_L: Not really in the search PATH, |
| 6474 | # but as the default location of the library. |
| 6475 | hardcode_minus_L=yes |
| 6476 | export_dynamic_flag_spec='${wl}-E' |
| 6477 | ;; |
| 6478 | |
| 6479 | hpux10* | hpux11*) |
| 6480 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 6481 | case "$host_cpu" in |
| 6482 | hppa*64*|ia64*) |
| 6483 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6484 | ;; |
| 6485 | *) |
| 6486 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 6487 | ;; |
| 6488 | esac |
| 6489 | else |
| 6490 | case "$host_cpu" in |
| 6491 | hppa*64*|ia64*) |
| 6492 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6493 | ;; |
| 6494 | *) |
| 6495 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 6496 | ;; |
| 6497 | esac |
| 6498 | fi |
| 6499 | if test "$with_gnu_ld" = no; then |
| 6500 | case "$host_cpu" in |
| 6501 | hppa*64*) |
| 6502 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 6503 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 6504 | hardcode_libdir_separator=: |
| 6505 | hardcode_direct=no |
| 6506 | hardcode_shlibpath_var=no |
| 6507 | ;; |
| 6508 | ia64*) |
| 6509 | hardcode_libdir_flag_spec='-L$libdir' |
| 6510 | hardcode_direct=no |
| 6511 | hardcode_shlibpath_var=no |
| 6512 | |
| 6513 | # hardcode_minus_L: Not really in the search PATH, |
| 6514 | # but as the default location of the library. |
| 6515 | hardcode_minus_L=yes |
| 6516 | ;; |
| 6517 | *) |
| 6518 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 6519 | hardcode_libdir_separator=: |
| 6520 | hardcode_direct=yes |
| 6521 | export_dynamic_flag_spec='${wl}-E' |
| 6522 | |
| 6523 | # hardcode_minus_L: Not really in the search PATH, |
| 6524 | # but as the default location of the library. |
| 6525 | hardcode_minus_L=yes |
| 6526 | ;; |
| 6527 | esac |
| 6528 | fi |
| 6529 | ;; |
| 6530 | |
| 6531 | irix5* | irix6* | nonstopux*) |
| 6532 | if test "$GCC" = yes; then |
| 6533 | 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' |
| 6534 | else |
| 6535 | 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' |
| 6536 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 6537 | fi |
| 6538 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 6539 | hardcode_libdir_separator=: |
| 6540 | link_all_deplibs=yes |
| 6541 | ;; |
| 6542 | |
| 6543 | netbsd* | knetbsd*-gnu) |
| 6544 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 6545 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 6546 | else |
| 6547 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 6548 | fi |
| 6549 | hardcode_libdir_flag_spec='-R$libdir' |
| 6550 | hardcode_direct=yes |
| 6551 | hardcode_shlibpath_var=no |
| 6552 | ;; |
| 6553 | |
| 6554 | newsos6) |
| 6555 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6556 | hardcode_direct=yes |
| 6557 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 6558 | hardcode_libdir_separator=: |
| 6559 | hardcode_shlibpath_var=no |
| 6560 | ;; |
| 6561 | |
| 6562 | openbsd*) |
| 6563 | hardcode_direct=yes |
| 6564 | hardcode_shlibpath_var=no |
| 6565 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 6566 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 6567 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 6568 | export_dynamic_flag_spec='${wl}-E' |
| 6569 | else |
| 6570 | case $host_os in |
| 6571 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 6572 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 6573 | hardcode_libdir_flag_spec='-R$libdir' |
| 6574 | ;; |
| 6575 | *) |
| 6576 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 6577 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 6578 | ;; |
| 6579 | esac |
| 6580 | fi |
| 6581 | ;; |
| 6582 | |
| 6583 | os2*) |
| 6584 | hardcode_libdir_flag_spec='-L$libdir' |
| 6585 | hardcode_minus_L=yes |
| 6586 | allow_undefined_flag=unsupported |
| 6587 | 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' |
| 6588 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 6589 | ;; |
| 6590 | |
| 6591 | osf3*) |
| 6592 | if test "$GCC" = yes; then |
| 6593 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 6594 | 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' |
| 6595 | else |
| 6596 | allow_undefined_flag=' -expect_unresolved \*' |
| 6597 | 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' |
| 6598 | fi |
| 6599 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 6600 | hardcode_libdir_separator=: |
| 6601 | ;; |
| 6602 | |
| 6603 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 6604 | if test "$GCC" = yes; then |
| 6605 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 6606 | 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' |
| 6607 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 6608 | else |
| 6609 | allow_undefined_flag=' -expect_unresolved \*' |
| 6610 | 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' |
| 6611 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 6612 | $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' |
| 6613 | |
| 6614 | # Both c and cxx compiler support -rpath directly |
| 6615 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 6616 | fi |
| 6617 | hardcode_libdir_separator=: |
| 6618 | ;; |
| 6619 | |
| 6620 | sco3.2v5*) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6621 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6622 | hardcode_shlibpath_var=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6623 | export_dynamic_flag_spec='${wl}-Bexport' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6624 | runpath_var=LD_RUN_PATH |
| 6625 | hardcode_runpath_var=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6626 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6627 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6628 | solaris*) |
| 6629 | no_undefined_flag=' -z text' |
| 6630 | if test "$GCC" = yes; then |
| 6631 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6632 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 6633 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 6634 | else |
| 6635 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6636 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 6637 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 6638 | fi |
| 6639 | hardcode_libdir_flag_spec='-R$libdir' |
| 6640 | hardcode_shlibpath_var=no |
| 6641 | case $host_os in |
| 6642 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 6643 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 6644 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 6645 | esac |
| 6646 | link_all_deplibs=yes |
| 6647 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6648 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6649 | sunos4*) |
| 6650 | if test "x$host_vendor" = xsequent; then |
| 6651 | # Use $CC to link under sequent, because it throws in some extra .o |
| 6652 | # files that make .init and .fini sections work. |
| 6653 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6654 | else |
| 6655 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 6656 | fi |
| 6657 | hardcode_libdir_flag_spec='-L$libdir' |
| 6658 | hardcode_direct=yes |
| 6659 | hardcode_minus_L=yes |
| 6660 | hardcode_shlibpath_var=no |
| 6661 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6662 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6663 | sysv4) |
| 6664 | case $host_vendor in |
| 6665 | sni) |
| 6666 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6667 | hardcode_direct=yes # is this really true??? |
| 6668 | ;; |
| 6669 | siemens) |
| 6670 | ## LD is ld it makes a PLAMLIB |
| 6671 | ## CC just makes a GrossModule. |
| 6672 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 6673 | reload_cmds='$CC -r -o $output$reload_objs' |
| 6674 | hardcode_direct=no |
| 6675 | ;; |
| 6676 | motorola) |
| 6677 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6678 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 6679 | ;; |
| 6680 | esac |
| 6681 | runpath_var='LD_RUN_PATH' |
| 6682 | hardcode_shlibpath_var=no |
| 6683 | ;; |
| 6684 | |
| 6685 | sysv4.3*) |
| 6686 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6687 | hardcode_shlibpath_var=no |
| 6688 | export_dynamic_flag_spec='-Bexport' |
| 6689 | ;; |
| 6690 | |
| 6691 | sysv4*MP*) |
| 6692 | if test -d /usr/nec; then |
| 6693 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6694 | hardcode_shlibpath_var=no |
| 6695 | runpath_var=LD_RUN_PATH |
| 6696 | hardcode_runpath_var=yes |
| 6697 | ld_shlibs=yes |
| 6698 | fi |
| 6699 | ;; |
| 6700 | |
| 6701 | sysv4.2uw2*) |
| 6702 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 6703 | hardcode_direct=yes |
| 6704 | hardcode_minus_L=no |
| 6705 | hardcode_shlibpath_var=no |
| 6706 | hardcode_runpath_var=yes |
| 6707 | runpath_var=LD_RUN_PATH |
| 6708 | ;; |
| 6709 | |
| 6710 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 6711 | no_undefined_flag='${wl}-z ${wl}text' |
| 6712 | if test "$GCC" = yes; then |
| 6713 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6714 | else |
| 6715 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6716 | fi |
| 6717 | runpath_var='LD_RUN_PATH' |
| 6718 | hardcode_shlibpath_var=no |
| 6719 | ;; |
| 6720 | |
| 6721 | sysv5*) |
| 6722 | no_undefined_flag=' -z text' |
| 6723 | # $CC -shared without GNU ld will not create a library from C++ |
| 6724 | # object files and a static libstdc++, better avoid it by now |
| 6725 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6726 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 6727 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 6728 | hardcode_libdir_flag_spec= |
| 6729 | hardcode_shlibpath_var=no |
| 6730 | runpath_var='LD_RUN_PATH' |
| 6731 | ;; |
| 6732 | |
| 6733 | uts4*) |
| 6734 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6735 | hardcode_libdir_flag_spec='-L$libdir' |
| 6736 | hardcode_shlibpath_var=no |
| 6737 | ;; |
| 6738 | |
| 6739 | *) |
| 6740 | ld_shlibs=no |
| 6741 | ;; |
| 6742 | esac |
| 6743 | fi |
| 6744 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6745 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 6746 | echo "${ECHO_T}$ld_shlibs" >&6 |
| 6747 | test "$ld_shlibs" = no && can_build_shared=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6748 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6749 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 6750 | if test "$GCC" = yes; then |
| 6751 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 6752 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6753 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6754 | # |
| 6755 | # Do we need to explicitly link libc? |
| 6756 | # |
| 6757 | case "x$archive_cmds_need_lc" in |
| 6758 | x|xyes) |
| 6759 | # Assume -lc should be added |
| 6760 | archive_cmds_need_lc=yes |
| 6761 | |
| 6762 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 6763 | case $archive_cmds in |
| 6764 | *'~'*) |
| 6765 | # FIXME: we may have to deal with multi-command sequences. |
| 6766 | ;; |
| 6767 | '$CC '*) |
| 6768 | # Test whether the compiler implicitly links with -lc since on some |
| 6769 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 6770 | # to ld, don't add -lc before -lgcc. |
| 6771 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 6772 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 6773 | $rm conftest* |
| 6774 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 6775 | |
| 6776 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6777 | (eval $ac_compile) 2>&5 |
| 6778 | ac_status=$? |
| 6779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6780 | (exit $ac_status); } 2>conftest.err; then |
| 6781 | soname=conftest |
| 6782 | lib=conftest |
| 6783 | libobjs=conftest.$ac_objext |
| 6784 | deplibs= |
| 6785 | wl=$lt_prog_compiler_wl |
| 6786 | compiler_flags=-v |
| 6787 | linker_flags=-v |
| 6788 | verstring= |
| 6789 | output_objdir=. |
| 6790 | libname=conftest |
| 6791 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 6792 | allow_undefined_flag= |
| 6793 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 6794 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 6795 | ac_status=$? |
| 6796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6797 | (exit $ac_status); } |
| 6798 | then |
| 6799 | archive_cmds_need_lc=no |
| 6800 | else |
| 6801 | archive_cmds_need_lc=yes |
| 6802 | fi |
| 6803 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 6804 | else |
| 6805 | cat conftest.err 1>&5 |
| 6806 | fi |
| 6807 | $rm conftest* |
| 6808 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 6809 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
| 6810 | ;; |
| 6811 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6812 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6813 | ;; |
| 6814 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6815 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6816 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6817 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 6818 | library_names_spec= |
| 6819 | libname_spec='lib$name' |
| 6820 | soname_spec= |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6821 | shrext=".so" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6822 | postinstall_cmds= |
| 6823 | postuninstall_cmds= |
| 6824 | finish_cmds= |
| 6825 | finish_eval= |
| 6826 | shlibpath_var= |
| 6827 | shlibpath_overrides_runpath=unknown |
| 6828 | version_type=none |
| 6829 | dynamic_linker="$host_os ld.so" |
| 6830 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6831 | if test "$GCC" = yes; then |
| 6832 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 6833 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 6834 | # if the path contains ";" then we assume it to be the separator |
| 6835 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 6836 | # assumed that no part of a normal pathname contains ";" but that should |
| 6837 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 6838 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 6839 | else |
| 6840 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 6841 | fi |
| 6842 | else |
| 6843 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 6844 | fi |
| 6845 | need_lib_prefix=unknown |
| 6846 | hardcode_into_libs=no |
| 6847 | |
| 6848 | # when you set need_version to no, make sure it does not cause -set_version |
| 6849 | # flags to be left without arguments |
| 6850 | need_version=unknown |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6851 | |
| 6852 | case $host_os in |
| 6853 | aix3*) |
| 6854 | version_type=linux |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6855 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6856 | shlibpath_var=LIBPATH |
| 6857 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6858 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 6859 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6860 | ;; |
| 6861 | |
| 6862 | aix4* | aix5*) |
| 6863 | version_type=linux |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6864 | need_lib_prefix=no |
| 6865 | need_version=no |
| 6866 | hardcode_into_libs=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6867 | if test "$host_cpu" = ia64; then |
| 6868 | # AIX 5 supports IA64 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6869 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6870 | shlibpath_var=LD_LIBRARY_PATH |
| 6871 | else |
| 6872 | # With GCC up to 2.95.x, collect2 would create an import file |
| 6873 | # for dependence libraries. The import file would start with |
| 6874 | # the line `#! .'. This would cause the generated library to |
| 6875 | # depend on `.', always an invalid library. This was fixed in |
| 6876 | # development snapshots of GCC prior to 3.0. |
| 6877 | case $host_os in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6878 | aix4 | aix4.[01] | aix4.[01].*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6879 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 6880 | echo ' yes ' |
| 6881 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 6882 | : |
| 6883 | else |
| 6884 | can_build_shared=no |
| 6885 | fi |
| 6886 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6887 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6888 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 6889 | # soname into executable. Probably we can add versioning support to |
| 6890 | # collect2, so additional links can be useful in future. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6891 | if test "$aix_use_runtimelinking" = yes; then |
| 6892 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 6893 | # instead of lib<name>.a to let people know that these are not |
| 6894 | # typical AIX shared libraries. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6895 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6896 | else |
| 6897 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 6898 | # and later when we are not doing run time linking. |
| 6899 | library_names_spec='${libname}${release}.a $libname.a' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6900 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6901 | fi |
| 6902 | shlibpath_var=LIBPATH |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6903 | fi |
| 6904 | ;; |
| 6905 | |
| 6906 | amigaos*) |
| 6907 | library_names_spec='$libname.ixlibrary $libname.a' |
| 6908 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6909 | 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' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6910 | ;; |
| 6911 | |
| 6912 | beos*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6913 | library_names_spec='${libname}${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6914 | dynamic_linker="$host_os ld.so" |
| 6915 | shlibpath_var=LIBRARY_PATH |
| 6916 | ;; |
| 6917 | |
| 6918 | bsdi4*) |
| 6919 | version_type=linux |
| 6920 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6921 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 6922 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6923 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 6924 | shlibpath_var=LD_LIBRARY_PATH |
| 6925 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 6926 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 6927 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 6928 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 6929 | # libtool to hard-code these into programs |
| 6930 | ;; |
| 6931 | |
| 6932 | cygwin* | mingw* | pw32*) |
| 6933 | version_type=windows |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6934 | shrext=".dll" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6935 | need_version=no |
| 6936 | need_lib_prefix=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6937 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6938 | case $GCC,$host_os in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6939 | yes,cygwin* | yes,mingw* | yes,pw32*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6940 | library_names_spec='$libname.dll.a' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6941 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 6942 | postinstall_cmds='base_file=`basename \${file}`~ |
| 6943 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6944 | dldir=$destdir/`dirname \$dlpath`~ |
| 6945 | test -d \$dldir || mkdir -p \$dldir~ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6946 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 6947 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6948 | dlpath=$dir/\$dldll~ |
| 6949 | $rm \$dlpath' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6950 | shlibpath_overrides_runpath=yes |
| 6951 | |
| 6952 | case $host_os in |
| 6953 | cygwin*) |
| 6954 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 6955 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 6956 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 6957 | ;; |
| 6958 | mingw*) |
| 6959 | # MinGW DLLs use traditional 'lib' prefix |
| 6960 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 6961 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 6962 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 6963 | # It is most probably a Windows format PATH printed by |
| 6964 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 6965 | # path with ; separators, and with drive letters. We can handle the |
| 6966 | # drive letters (cygwin fileutils understands them), so leave them, |
| 6967 | # especially as we might pass files found there to a mingw objdump, |
| 6968 | # which wouldn't understand a cygwinified path. Ahh. |
| 6969 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 6970 | else |
| 6971 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 6972 | fi |
| 6973 | ;; |
| 6974 | pw32*) |
| 6975 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 6976 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 6977 | ;; |
| 6978 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6979 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6980 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6981 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6982 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6983 | ;; |
| 6984 | esac |
| 6985 | dynamic_linker='Win32 ld.exe' |
| 6986 | # FIXME: first we should search . and the directory the executable is in |
| 6987 | shlibpath_var=PATH |
| 6988 | ;; |
| 6989 | |
| 6990 | darwin* | rhapsody*) |
| 6991 | dynamic_linker="$host_os dyld" |
| 6992 | version_type=darwin |
| 6993 | need_lib_prefix=no |
| 6994 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6995 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 6996 | soname_spec='${libname}${release}${major}$shared_ext' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6997 | shlibpath_overrides_runpath=yes |
| 6998 | shlibpath_var=DYLD_LIBRARY_PATH |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6999 | shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
| 7000 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 7001 | if test "$GCC" = yes; then |
| 7002 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
| 7003 | else |
| 7004 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 7005 | fi |
| 7006 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 7007 | ;; |
| 7008 | |
| 7009 | dgux*) |
| 7010 | version_type=linux |
| 7011 | need_lib_prefix=no |
| 7012 | need_version=no |
| 7013 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 7014 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7015 | shlibpath_var=LD_LIBRARY_PATH |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7016 | ;; |
| 7017 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7018 | freebsd1*) |
| 7019 | dynamic_linker=no |
| 7020 | ;; |
| 7021 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7022 | kfreebsd*-gnu) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7023 | version_type=linux |
| 7024 | need_lib_prefix=no |
| 7025 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7026 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 7027 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7028 | shlibpath_var=LD_LIBRARY_PATH |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7029 | shlibpath_overrides_runpath=no |
| 7030 | hardcode_into_libs=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7031 | dynamic_linker='GNU ld.so' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7032 | ;; |
| 7033 | |
| 7034 | freebsd*) |
| 7035 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 7036 | version_type=freebsd-$objformat |
| 7037 | case $version_type in |
| 7038 | freebsd-elf*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7039 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7040 | need_version=no |
| 7041 | need_lib_prefix=no |
| 7042 | ;; |
| 7043 | freebsd-*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7044 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7045 | need_version=yes |
| 7046 | ;; |
| 7047 | esac |
| 7048 | shlibpath_var=LD_LIBRARY_PATH |
| 7049 | case $host_os in |
| 7050 | freebsd2*) |
| 7051 | shlibpath_overrides_runpath=yes |
| 7052 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7053 | freebsd3.01* | freebsdelf3.01*) |
| 7054 | shlibpath_overrides_runpath=yes |
| 7055 | hardcode_into_libs=yes |
| 7056 | ;; |
| 7057 | *) # from 3.2 on |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7058 | shlibpath_overrides_runpath=no |
| 7059 | hardcode_into_libs=yes |
| 7060 | ;; |
| 7061 | esac |
| 7062 | ;; |
| 7063 | |
| 7064 | gnu*) |
| 7065 | version_type=linux |
| 7066 | need_lib_prefix=no |
| 7067 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7068 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 7069 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7070 | shlibpath_var=LD_LIBRARY_PATH |
| 7071 | hardcode_into_libs=yes |
| 7072 | ;; |
| 7073 | |
| 7074 | hpux9* | hpux10* | hpux11*) |
| 7075 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 7076 | # link against other versions. |
| 7077 | version_type=sunos |
| 7078 | need_lib_prefix=no |
| 7079 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7080 | case "$host_cpu" in |
| 7081 | ia64*) |
| 7082 | shrext='.so' |
| 7083 | hardcode_into_libs=yes |
| 7084 | dynamic_linker="$host_os dld.so" |
| 7085 | shlibpath_var=LD_LIBRARY_PATH |
| 7086 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 7087 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7088 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7089 | if test "X$HPUX_IA64_MODE" = X32; then |
| 7090 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 7091 | else |
| 7092 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 7093 | fi |
| 7094 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 7095 | ;; |
| 7096 | hppa*64*) |
| 7097 | shrext='.sl' |
| 7098 | hardcode_into_libs=yes |
| 7099 | dynamic_linker="$host_os dld.sl" |
| 7100 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 7101 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 7102 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7103 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7104 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 7105 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 7106 | ;; |
| 7107 | *) |
| 7108 | shrext='.sl' |
| 7109 | dynamic_linker="$host_os dld.sl" |
| 7110 | shlibpath_var=SHLIB_PATH |
| 7111 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 7112 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7113 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7114 | ;; |
| 7115 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7116 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 7117 | postinstall_cmds='chmod 555 $lib' |
| 7118 | ;; |
| 7119 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7120 | irix5* | irix6* | nonstopux*) |
| 7121 | case $host_os in |
| 7122 | nonstopux*) version_type=nonstopux ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7123 | *) |
| 7124 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 7125 | version_type=linux |
| 7126 | else |
| 7127 | version_type=irix |
| 7128 | fi ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7129 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7130 | need_lib_prefix=no |
| 7131 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7132 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7133 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7134 | case $host_os in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7135 | irix5* | nonstopux*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7136 | libsuff= shlibsuff= |
| 7137 | ;; |
| 7138 | *) |
| 7139 | case $LD in # libtool.m4 will add one of these switches to LD |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7140 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 7141 | libsuff= shlibsuff= libmagic=32-bit;; |
| 7142 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 7143 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 7144 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 7145 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7146 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 7147 | esac |
| 7148 | ;; |
| 7149 | esac |
| 7150 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 7151 | shlibpath_overrides_runpath=no |
| 7152 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 7153 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7154 | hardcode_into_libs=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7155 | ;; |
| 7156 | |
| 7157 | # No shared lib support for Linux oldld, aout, or coff. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7158 | linux*oldld* | linux*aout* | linux*coff*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7159 | dynamic_linker=no |
| 7160 | ;; |
| 7161 | |
| 7162 | # This must be Linux ELF. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7163 | linux*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7164 | version_type=linux |
| 7165 | need_lib_prefix=no |
| 7166 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7167 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7168 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7169 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 7170 | shlibpath_var=LD_LIBRARY_PATH |
| 7171 | shlibpath_overrides_runpath=no |
| 7172 | # This implies no fast_install, which is unacceptable. |
| 7173 | # Some rework will be needed to allow for fast_install |
| 7174 | # before this can be enabled. |
| 7175 | hardcode_into_libs=yes |
| 7176 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7177 | # Append ld.so.conf contents to the search path |
| 7178 | if test -f /etc/ld.so.conf; then |
| 7179 | ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf` |
| 7180 | sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra" |
| 7181 | fi |
| 7182 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7183 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 7184 | # powerpc, because MkLinux only supported shared libraries with the |
| 7185 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 7186 | # most powerpc-linux boxes support dynamic linking these days and |
| 7187 | # people can always --disable-shared, the test was removed, and we |
| 7188 | # assume the GNU/Linux dynamic linker is in use. |
| 7189 | dynamic_linker='GNU/Linux ld.so' |
| 7190 | ;; |
| 7191 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7192 | knetbsd*-gnu) |
| 7193 | version_type=linux |
| 7194 | need_lib_prefix=no |
| 7195 | need_version=no |
| 7196 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 7197 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7198 | shlibpath_var=LD_LIBRARY_PATH |
| 7199 | shlibpath_overrides_runpath=no |
| 7200 | hardcode_into_libs=yes |
| 7201 | dynamic_linker='GNU ld.so' |
| 7202 | ;; |
| 7203 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7204 | netbsd*) |
| 7205 | version_type=sunos |
| 7206 | need_lib_prefix=no |
| 7207 | need_version=no |
| 7208 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7209 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7210 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 7211 | dynamic_linker='NetBSD (a.out) ld.so' |
| 7212 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7213 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 7214 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7215 | dynamic_linker='NetBSD ld.elf_so' |
| 7216 | fi |
| 7217 | shlibpath_var=LD_LIBRARY_PATH |
| 7218 | shlibpath_overrides_runpath=yes |
| 7219 | hardcode_into_libs=yes |
| 7220 | ;; |
| 7221 | |
| 7222 | newsos6) |
| 7223 | version_type=linux |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7224 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7225 | shlibpath_var=LD_LIBRARY_PATH |
| 7226 | shlibpath_overrides_runpath=yes |
| 7227 | ;; |
| 7228 | |
| 7229 | nto-qnx*) |
| 7230 | version_type=linux |
| 7231 | need_lib_prefix=no |
| 7232 | need_version=no |
| 7233 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7234 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7235 | shlibpath_var=LD_LIBRARY_PATH |
| 7236 | shlibpath_overrides_runpath=yes |
| 7237 | ;; |
| 7238 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7239 | openbsd*) |
| 7240 | version_type=sunos |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7241 | need_lib_prefix=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7242 | need_version=yes |
| 7243 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 7244 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 7245 | shlibpath_var=LD_LIBRARY_PATH |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7246 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7247 | case $host_os in |
| 7248 | openbsd2.[89] | openbsd2.[89].*) |
| 7249 | shlibpath_overrides_runpath=no |
| 7250 | ;; |
| 7251 | *) |
| 7252 | shlibpath_overrides_runpath=yes |
| 7253 | ;; |
| 7254 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7255 | else |
| 7256 | shlibpath_overrides_runpath=yes |
| 7257 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7258 | ;; |
| 7259 | |
| 7260 | os2*) |
| 7261 | libname_spec='$name' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7262 | shrext=".dll" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7263 | need_lib_prefix=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7264 | library_names_spec='$libname${shared_ext} $libname.a' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7265 | dynamic_linker='OS/2 ld.exe' |
| 7266 | shlibpath_var=LIBPATH |
| 7267 | ;; |
| 7268 | |
| 7269 | osf3* | osf4* | osf5*) |
| 7270 | version_type=osf |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7271 | need_lib_prefix=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7272 | need_version=no |
| 7273 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7274 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7275 | shlibpath_var=LD_LIBRARY_PATH |
| 7276 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 7277 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 7278 | ;; |
| 7279 | |
| 7280 | sco3.2v5*) |
| 7281 | version_type=osf |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7282 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7283 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7284 | shlibpath_var=LD_LIBRARY_PATH |
| 7285 | ;; |
| 7286 | |
| 7287 | solaris*) |
| 7288 | version_type=linux |
| 7289 | need_lib_prefix=no |
| 7290 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7291 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7292 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7293 | shlibpath_var=LD_LIBRARY_PATH |
| 7294 | shlibpath_overrides_runpath=yes |
| 7295 | hardcode_into_libs=yes |
| 7296 | # ldd complains unless libraries are executable |
| 7297 | postinstall_cmds='chmod +x $lib' |
| 7298 | ;; |
| 7299 | |
| 7300 | sunos4*) |
| 7301 | version_type=sunos |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7302 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7303 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 7304 | shlibpath_var=LD_LIBRARY_PATH |
| 7305 | shlibpath_overrides_runpath=yes |
| 7306 | if test "$with_gnu_ld" = yes; then |
| 7307 | need_lib_prefix=no |
| 7308 | fi |
| 7309 | need_version=yes |
| 7310 | ;; |
| 7311 | |
| 7312 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 7313 | version_type=linux |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7314 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7315 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7316 | shlibpath_var=LD_LIBRARY_PATH |
| 7317 | case $host_vendor in |
| 7318 | sni) |
| 7319 | shlibpath_overrides_runpath=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7320 | need_lib_prefix=no |
| 7321 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 7322 | runpath_var=LD_RUN_PATH |
| 7323 | ;; |
| 7324 | siemens) |
| 7325 | need_lib_prefix=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7326 | ;; |
| 7327 | motorola) |
| 7328 | need_lib_prefix=no |
| 7329 | need_version=no |
| 7330 | shlibpath_overrides_runpath=no |
| 7331 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 7332 | ;; |
| 7333 | esac |
| 7334 | ;; |
| 7335 | |
| 7336 | sysv4*MP*) |
| 7337 | if test -d /usr/nec ;then |
| 7338 | version_type=linux |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7339 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 7340 | soname_spec='$libname${shared_ext}.$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7341 | shlibpath_var=LD_LIBRARY_PATH |
| 7342 | fi |
| 7343 | ;; |
| 7344 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7345 | uts4*) |
| 7346 | version_type=linux |
| 7347 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7348 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7349 | shlibpath_var=LD_LIBRARY_PATH |
| 7350 | ;; |
| 7351 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7352 | *) |
| 7353 | dynamic_linker=no |
| 7354 | ;; |
| 7355 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7356 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7357 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 7358 | test "$dynamic_linker" = no && can_build_shared=no |
| 7359 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7360 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 7361 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 7362 | hardcode_action= |
| 7363 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 7364 | test -n "$runpath_var " || \ |
| 7365 | test "X$hardcode_automatic"="Xyes" ; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7366 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7367 | # We can hardcode non-existant directories. |
| 7368 | if test "$hardcode_direct" != no && |
| 7369 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 7370 | # have to relink, otherwise we might link with an installed library |
| 7371 | # when we should be linking with a yet-to-be-installed one |
| 7372 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 7373 | test "$hardcode_minus_L" != no; then |
| 7374 | # Linking always hardcodes the temporary library directory. |
| 7375 | hardcode_action=relink |
| 7376 | else |
| 7377 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 7378 | hardcode_action=immediate |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7379 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7380 | else |
| 7381 | # We cannot hardcode anything, or else we can only hardcode existing |
| 7382 | # directories. |
| 7383 | hardcode_action=unsupported |
| 7384 | fi |
| 7385 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 7386 | echo "${ECHO_T}$hardcode_action" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7387 | |
| 7388 | if test "$hardcode_action" = relink; then |
| 7389 | # Fast installation is not supported |
| 7390 | enable_fast_install=no |
| 7391 | elif test "$shlibpath_overrides_runpath" = yes || |
| 7392 | test "$enable_shared" = no; then |
| 7393 | # Fast installation is not necessary |
| 7394 | enable_fast_install=needless |
| 7395 | fi |
| 7396 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7397 | striplib= |
| 7398 | old_striplib= |
| 7399 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 7400 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 7401 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 7402 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 7403 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 7404 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7405 | echo "${ECHO_T}yes" >&6 |
| 7406 | else |
| 7407 | # FIXME - insert some real tests, host_os isn't really good enough |
| 7408 | case $host_os in |
| 7409 | darwin*) |
| 7410 | if test -n "$STRIP" ; then |
| 7411 | striplib="$STRIP -x" |
| 7412 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7413 | echo "${ECHO_T}yes" >&6 |
| 7414 | else |
| 7415 | echo "$as_me:$LINENO: result: no" >&5 |
| 7416 | echo "${ECHO_T}no" >&6 |
| 7417 | fi |
| 7418 | ;; |
| 7419 | *) |
| 7420 | echo "$as_me:$LINENO: result: no" >&5 |
| 7421 | echo "${ECHO_T}no" >&6 |
| 7422 | ;; |
| 7423 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7424 | fi |
| 7425 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7426 | if test "x$enable_dlopen" != xyes; then |
| 7427 | enable_dlopen=unknown |
| 7428 | enable_dlopen_self=unknown |
| 7429 | enable_dlopen_self_static=unknown |
| 7430 | else |
| 7431 | lt_cv_dlopen=no |
| 7432 | lt_cv_dlopen_libs= |
| 7433 | |
| 7434 | case $host_os in |
| 7435 | beos*) |
| 7436 | lt_cv_dlopen="load_add_on" |
| 7437 | lt_cv_dlopen_libs= |
| 7438 | lt_cv_dlopen_self=yes |
| 7439 | ;; |
| 7440 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7441 | mingw* | pw32*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7442 | lt_cv_dlopen="LoadLibrary" |
| 7443 | lt_cv_dlopen_libs= |
| 7444 | ;; |
| 7445 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7446 | cygwin*) |
| 7447 | lt_cv_dlopen="dlopen" |
| 7448 | lt_cv_dlopen_libs= |
| 7449 | ;; |
| 7450 | |
| 7451 | darwin*) |
| 7452 | # if libdl is installed we need to link against it |
| 7453 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 7454 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 7455 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 7456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7457 | else |
| 7458 | ac_check_lib_save_LIBS=$LIBS |
| 7459 | LIBS="-ldl $LIBS" |
| 7460 | cat >conftest.$ac_ext <<_ACEOF |
| 7461 | /* confdefs.h. */ |
| 7462 | _ACEOF |
| 7463 | cat confdefs.h >>conftest.$ac_ext |
| 7464 | cat >>conftest.$ac_ext <<_ACEOF |
| 7465 | /* end confdefs.h. */ |
| 7466 | |
| 7467 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7468 | #ifdef __cplusplus |
| 7469 | extern "C" |
| 7470 | #endif |
| 7471 | /* We use char because int might match the return type of a gcc2 |
| 7472 | builtin and then its argument prototype would still apply. */ |
| 7473 | char dlopen (); |
| 7474 | int |
| 7475 | main () |
| 7476 | { |
| 7477 | dlopen (); |
| 7478 | ; |
| 7479 | return 0; |
| 7480 | } |
| 7481 | _ACEOF |
| 7482 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7483 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7484 | (eval $ac_link) 2>conftest.er1 |
| 7485 | ac_status=$? |
| 7486 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7487 | rm -f conftest.er1 |
| 7488 | cat conftest.err >&5 |
| 7489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7490 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 7491 | { ac_try='test -z "$ac_c_werror_flag" |
| 7492 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7494 | (eval $ac_try) 2>&5 |
| 7495 | ac_status=$? |
| 7496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7497 | (exit $ac_status); }; } && |
| 7498 | { ac_try='test -s conftest$ac_exeext' |
| 7499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7500 | (eval $ac_try) 2>&5 |
| 7501 | ac_status=$? |
| 7502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7503 | (exit $ac_status); }; }; then |
| 7504 | ac_cv_lib_dl_dlopen=yes |
| 7505 | else |
| 7506 | echo "$as_me: failed program was:" >&5 |
| 7507 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7508 | |
| 7509 | ac_cv_lib_dl_dlopen=no |
| 7510 | fi |
| 7511 | rm -f conftest.err conftest.$ac_objext \ |
| 7512 | conftest$ac_exeext conftest.$ac_ext |
| 7513 | LIBS=$ac_check_lib_save_LIBS |
| 7514 | fi |
| 7515 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 7516 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 7517 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 7518 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 7519 | else |
| 7520 | |
| 7521 | lt_cv_dlopen="dyld" |
| 7522 | lt_cv_dlopen_libs= |
| 7523 | lt_cv_dlopen_self=yes |
| 7524 | |
| 7525 | fi |
| 7526 | |
| 7527 | ;; |
| 7528 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7529 | *) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7530 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7531 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 7532 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 7533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7534 | else |
| 7535 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7536 | /* confdefs.h. */ |
| 7537 | _ACEOF |
| 7538 | cat confdefs.h >>conftest.$ac_ext |
| 7539 | cat >>conftest.$ac_ext <<_ACEOF |
| 7540 | /* end confdefs.h. */ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7541 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 7542 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7543 | #define shl_load innocuous_shl_load |
| 7544 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7545 | /* System header to define __stub macros and hopefully few prototypes, |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7546 | which can conflict with char shl_load (); below. |
| 7547 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7548 | <limits.h> exists even on freestanding compilers. */ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7549 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7550 | #ifdef __STDC__ |
| 7551 | # include <limits.h> |
| 7552 | #else |
| 7553 | # include <assert.h> |
| 7554 | #endif |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7555 | |
| 7556 | #undef shl_load |
| 7557 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7558 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7559 | #ifdef __cplusplus |
| 7560 | extern "C" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7561 | { |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7562 | #endif |
| 7563 | /* We use char because int might match the return type of a gcc2 |
| 7564 | builtin and then its argument prototype would still apply. */ |
| 7565 | char shl_load (); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7566 | /* The GNU C library defines this for functions which it implements |
| 7567 | to always fail with ENOSYS. Some functions are actually named |
| 7568 | something starting with __ and the normal name is an alias. */ |
| 7569 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 7570 | choke me |
| 7571 | #else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7572 | char (*f) () = shl_load; |
| 7573 | #endif |
| 7574 | #ifdef __cplusplus |
| 7575 | } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7576 | #endif |
| 7577 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7578 | int |
| 7579 | main () |
| 7580 | { |
| 7581 | return f != shl_load; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7582 | ; |
| 7583 | return 0; |
| 7584 | } |
| 7585 | _ACEOF |
| 7586 | rm -f conftest.$ac_objext conftest$ac_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7587 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7588 | (eval $ac_link) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7589 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7590 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7591 | rm -f conftest.er1 |
| 7592 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7594 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 7595 | { ac_try='test -z "$ac_c_werror_flag" |
| 7596 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7598 | (eval $ac_try) 2>&5 |
| 7599 | ac_status=$? |
| 7600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7601 | (exit $ac_status); }; } && |
| 7602 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7604 | (eval $ac_try) 2>&5 |
| 7605 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7607 | (exit $ac_status); }; }; then |
| 7608 | ac_cv_func_shl_load=yes |
| 7609 | else |
| 7610 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7612 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7613 | ac_cv_func_shl_load=no |
| 7614 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7615 | rm -f conftest.err conftest.$ac_objext \ |
| 7616 | conftest$ac_exeext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7617 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7618 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7619 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 7620 | if test $ac_cv_func_shl_load = yes; then |
| 7621 | lt_cv_dlopen="shl_load" |
| 7622 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7623 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7624 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 7625 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 7626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7627 | else |
| 7628 | ac_check_lib_save_LIBS=$LIBS |
| 7629 | LIBS="-ldld $LIBS" |
| 7630 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7631 | /* confdefs.h. */ |
| 7632 | _ACEOF |
| 7633 | cat confdefs.h >>conftest.$ac_ext |
| 7634 | cat >>conftest.$ac_ext <<_ACEOF |
| 7635 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7636 | |
| 7637 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7638 | #ifdef __cplusplus |
| 7639 | extern "C" |
| 7640 | #endif |
| 7641 | /* We use char because int might match the return type of a gcc2 |
| 7642 | builtin and then its argument prototype would still apply. */ |
| 7643 | char shl_load (); |
| 7644 | int |
| 7645 | main () |
| 7646 | { |
| 7647 | shl_load (); |
| 7648 | ; |
| 7649 | return 0; |
| 7650 | } |
| 7651 | _ACEOF |
| 7652 | rm -f conftest.$ac_objext conftest$ac_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7653 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7654 | (eval $ac_link) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7655 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7656 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7657 | rm -f conftest.er1 |
| 7658 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7660 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 7661 | { ac_try='test -z "$ac_c_werror_flag" |
| 7662 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7664 | (eval $ac_try) 2>&5 |
| 7665 | ac_status=$? |
| 7666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7667 | (exit $ac_status); }; } && |
| 7668 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7670 | (eval $ac_try) 2>&5 |
| 7671 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7673 | (exit $ac_status); }; }; then |
| 7674 | ac_cv_lib_dld_shl_load=yes |
| 7675 | else |
| 7676 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7677 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7678 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7679 | ac_cv_lib_dld_shl_load=no |
| 7680 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7681 | rm -f conftest.err conftest.$ac_objext \ |
| 7682 | conftest$ac_exeext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7683 | LIBS=$ac_check_lib_save_LIBS |
| 7684 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7685 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7686 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 7687 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 7688 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 7689 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7690 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 7691 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 7692 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 7693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7694 | else |
| 7695 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7696 | /* confdefs.h. */ |
| 7697 | _ACEOF |
| 7698 | cat confdefs.h >>conftest.$ac_ext |
| 7699 | cat >>conftest.$ac_ext <<_ACEOF |
| 7700 | /* end confdefs.h. */ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7701 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 7702 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7703 | #define dlopen innocuous_dlopen |
| 7704 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7705 | /* System header to define __stub macros and hopefully few prototypes, |
| 7706 | which can conflict with char dlopen (); below. |
| 7707 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7708 | <limits.h> exists even on freestanding compilers. */ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7709 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7710 | #ifdef __STDC__ |
| 7711 | # include <limits.h> |
| 7712 | #else |
| 7713 | # include <assert.h> |
| 7714 | #endif |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7715 | |
| 7716 | #undef dlopen |
| 7717 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7718 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7719 | #ifdef __cplusplus |
| 7720 | extern "C" |
| 7721 | { |
| 7722 | #endif |
| 7723 | /* We use char because int might match the return type of a gcc2 |
| 7724 | builtin and then its argument prototype would still apply. */ |
| 7725 | char dlopen (); |
| 7726 | /* The GNU C library defines this for functions which it implements |
| 7727 | to always fail with ENOSYS. Some functions are actually named |
| 7728 | something starting with __ and the normal name is an alias. */ |
| 7729 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 7730 | choke me |
| 7731 | #else |
| 7732 | char (*f) () = dlopen; |
| 7733 | #endif |
| 7734 | #ifdef __cplusplus |
| 7735 | } |
| 7736 | #endif |
| 7737 | |
| 7738 | int |
| 7739 | main () |
| 7740 | { |
| 7741 | return f != dlopen; |
| 7742 | ; |
| 7743 | return 0; |
| 7744 | } |
| 7745 | _ACEOF |
| 7746 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7747 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7748 | (eval $ac_link) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7749 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7750 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7751 | rm -f conftest.er1 |
| 7752 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7754 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 7755 | { ac_try='test -z "$ac_c_werror_flag" |
| 7756 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7758 | (eval $ac_try) 2>&5 |
| 7759 | ac_status=$? |
| 7760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7761 | (exit $ac_status); }; } && |
| 7762 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7764 | (eval $ac_try) 2>&5 |
| 7765 | ac_status=$? |
| 7766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7767 | (exit $ac_status); }; }; then |
| 7768 | ac_cv_func_dlopen=yes |
| 7769 | else |
| 7770 | echo "$as_me: failed program was:" >&5 |
| 7771 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7772 | |
| 7773 | ac_cv_func_dlopen=no |
| 7774 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7775 | rm -f conftest.err conftest.$ac_objext \ |
| 7776 | conftest$ac_exeext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7777 | fi |
| 7778 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 7779 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 7780 | if test $ac_cv_func_dlopen = yes; then |
| 7781 | lt_cv_dlopen="dlopen" |
| 7782 | else |
| 7783 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7784 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 7785 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 7786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7787 | else |
| 7788 | ac_check_lib_save_LIBS=$LIBS |
| 7789 | LIBS="-ldl $LIBS" |
| 7790 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7791 | /* confdefs.h. */ |
| 7792 | _ACEOF |
| 7793 | cat confdefs.h >>conftest.$ac_ext |
| 7794 | cat >>conftest.$ac_ext <<_ACEOF |
| 7795 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7796 | |
| 7797 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7798 | #ifdef __cplusplus |
| 7799 | extern "C" |
| 7800 | #endif |
| 7801 | /* We use char because int might match the return type of a gcc2 |
| 7802 | builtin and then its argument prototype would still apply. */ |
| 7803 | char dlopen (); |
| 7804 | int |
| 7805 | main () |
| 7806 | { |
| 7807 | dlopen (); |
| 7808 | ; |
| 7809 | return 0; |
| 7810 | } |
| 7811 | _ACEOF |
| 7812 | rm -f conftest.$ac_objext conftest$ac_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7813 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7814 | (eval $ac_link) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7815 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7816 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7817 | rm -f conftest.er1 |
| 7818 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7820 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 7821 | { ac_try='test -z "$ac_c_werror_flag" |
| 7822 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7824 | (eval $ac_try) 2>&5 |
| 7825 | ac_status=$? |
| 7826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7827 | (exit $ac_status); }; } && |
| 7828 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7830 | (eval $ac_try) 2>&5 |
| 7831 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7833 | (exit $ac_status); }; }; then |
| 7834 | ac_cv_lib_dl_dlopen=yes |
| 7835 | else |
| 7836 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7837 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7838 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7839 | ac_cv_lib_dl_dlopen=no |
| 7840 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7841 | rm -f conftest.err conftest.$ac_objext \ |
| 7842 | conftest$ac_exeext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7843 | LIBS=$ac_check_lib_save_LIBS |
| 7844 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7845 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7846 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 7847 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 7848 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 7849 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7850 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7851 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 7852 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 7853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7854 | else |
| 7855 | ac_check_lib_save_LIBS=$LIBS |
| 7856 | LIBS="-lsvld $LIBS" |
| 7857 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7858 | /* confdefs.h. */ |
| 7859 | _ACEOF |
| 7860 | cat confdefs.h >>conftest.$ac_ext |
| 7861 | cat >>conftest.$ac_ext <<_ACEOF |
| 7862 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7863 | |
| 7864 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7865 | #ifdef __cplusplus |
| 7866 | extern "C" |
| 7867 | #endif |
| 7868 | /* We use char because int might match the return type of a gcc2 |
| 7869 | builtin and then its argument prototype would still apply. */ |
| 7870 | char dlopen (); |
| 7871 | int |
| 7872 | main () |
| 7873 | { |
| 7874 | dlopen (); |
| 7875 | ; |
| 7876 | return 0; |
| 7877 | } |
| 7878 | _ACEOF |
| 7879 | rm -f conftest.$ac_objext conftest$ac_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7880 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7881 | (eval $ac_link) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7882 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7883 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7884 | rm -f conftest.er1 |
| 7885 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7887 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 7888 | { ac_try='test -z "$ac_c_werror_flag" |
| 7889 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7891 | (eval $ac_try) 2>&5 |
| 7892 | ac_status=$? |
| 7893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7894 | (exit $ac_status); }; } && |
| 7895 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7897 | (eval $ac_try) 2>&5 |
| 7898 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7900 | (exit $ac_status); }; }; then |
| 7901 | ac_cv_lib_svld_dlopen=yes |
| 7902 | else |
| 7903 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7904 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7905 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7906 | ac_cv_lib_svld_dlopen=no |
| 7907 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7908 | rm -f conftest.err conftest.$ac_objext \ |
| 7909 | conftest$ac_exeext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7910 | LIBS=$ac_check_lib_save_LIBS |
| 7911 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7912 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7913 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 7914 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 7915 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7916 | else |
| 7917 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 7918 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 7919 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 7920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7921 | else |
| 7922 | ac_check_lib_save_LIBS=$LIBS |
| 7923 | LIBS="-ldld $LIBS" |
| 7924 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7925 | /* confdefs.h. */ |
| 7926 | _ACEOF |
| 7927 | cat confdefs.h >>conftest.$ac_ext |
| 7928 | cat >>conftest.$ac_ext <<_ACEOF |
| 7929 | /* end confdefs.h. */ |
| 7930 | |
| 7931 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7932 | #ifdef __cplusplus |
| 7933 | extern "C" |
| 7934 | #endif |
| 7935 | /* We use char because int might match the return type of a gcc2 |
| 7936 | builtin and then its argument prototype would still apply. */ |
| 7937 | char dld_link (); |
| 7938 | int |
| 7939 | main () |
| 7940 | { |
| 7941 | dld_link (); |
| 7942 | ; |
| 7943 | return 0; |
| 7944 | } |
| 7945 | _ACEOF |
| 7946 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7947 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7948 | (eval $ac_link) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7949 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7950 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7951 | rm -f conftest.er1 |
| 7952 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7954 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 7955 | { ac_try='test -z "$ac_c_werror_flag" |
| 7956 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7958 | (eval $ac_try) 2>&5 |
| 7959 | ac_status=$? |
| 7960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7961 | (exit $ac_status); }; } && |
| 7962 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7964 | (eval $ac_try) 2>&5 |
| 7965 | ac_status=$? |
| 7966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7967 | (exit $ac_status); }; }; then |
| 7968 | ac_cv_lib_dld_dld_link=yes |
| 7969 | else |
| 7970 | echo "$as_me: failed program was:" >&5 |
| 7971 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7972 | |
| 7973 | ac_cv_lib_dld_dld_link=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7974 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 7975 | rm -f conftest.err conftest.$ac_objext \ |
| 7976 | conftest$ac_exeext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7977 | LIBS=$ac_check_lib_save_LIBS |
| 7978 | fi |
| 7979 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 7980 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 7981 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 7982 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 7983 | fi |
| 7984 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7985 | |
| 7986 | fi |
| 7987 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7988 | |
| 7989 | fi |
| 7990 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7991 | |
| 7992 | fi |
| 7993 | |
| 7994 | |
| 7995 | fi |
| 7996 | |
| 7997 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7998 | fi |
| 7999 | |
| 8000 | ;; |
| 8001 | esac |
| 8002 | |
| 8003 | if test "x$lt_cv_dlopen" != xno; then |
| 8004 | enable_dlopen=yes |
| 8005 | else |
| 8006 | enable_dlopen=no |
| 8007 | fi |
| 8008 | |
| 8009 | case $lt_cv_dlopen in |
| 8010 | dlopen) |
| 8011 | save_CPPFLAGS="$CPPFLAGS" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8012 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8013 | |
| 8014 | save_LDFLAGS="$LDFLAGS" |
| 8015 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 8016 | |
| 8017 | save_LIBS="$LIBS" |
| 8018 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 8019 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8020 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8021 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 8022 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 8023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8024 | else |
| 8025 | if test "$cross_compiling" = yes; then : |
| 8026 | lt_cv_dlopen_self=cross |
| 8027 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8028 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8029 | lt_status=$lt_dlunknown |
| 8030 | cat > conftest.$ac_ext <<EOF |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 8031 | #line 8031 "configure" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8032 | #include "confdefs.h" |
| 8033 | |
| 8034 | #if HAVE_DLFCN_H |
| 8035 | #include <dlfcn.h> |
| 8036 | #endif |
| 8037 | |
| 8038 | #include <stdio.h> |
| 8039 | |
| 8040 | #ifdef RTLD_GLOBAL |
| 8041 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 8042 | #else |
| 8043 | # ifdef DL_GLOBAL |
| 8044 | # define LT_DLGLOBAL DL_GLOBAL |
| 8045 | # else |
| 8046 | # define LT_DLGLOBAL 0 |
| 8047 | # endif |
| 8048 | #endif |
| 8049 | |
| 8050 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 8051 | find out it does not work in some platform. */ |
| 8052 | #ifndef LT_DLLAZY_OR_NOW |
| 8053 | # ifdef RTLD_LAZY |
| 8054 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 8055 | # else |
| 8056 | # ifdef DL_LAZY |
| 8057 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 8058 | # else |
| 8059 | # ifdef RTLD_NOW |
| 8060 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 8061 | # else |
| 8062 | # ifdef DL_NOW |
| 8063 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 8064 | # else |
| 8065 | # define LT_DLLAZY_OR_NOW 0 |
| 8066 | # endif |
| 8067 | # endif |
| 8068 | # endif |
| 8069 | # endif |
| 8070 | #endif |
| 8071 | |
| 8072 | #ifdef __cplusplus |
| 8073 | extern "C" void exit (int); |
| 8074 | #endif |
| 8075 | |
| 8076 | void fnord() { int i=42;} |
| 8077 | int main () |
| 8078 | { |
| 8079 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 8080 | int status = $lt_dlunknown; |
| 8081 | |
| 8082 | if (self) |
| 8083 | { |
| 8084 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 8085 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 8086 | /* dlclose (self); */ |
| 8087 | } |
| 8088 | |
| 8089 | exit (status); |
| 8090 | } |
| 8091 | EOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8092 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8093 | (eval $ac_link) 2>&5 |
| 8094 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8096 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 8097 | (./conftest; exit; ) 2>/dev/null |
| 8098 | lt_status=$? |
| 8099 | case x$lt_status in |
| 8100 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 8101 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 8102 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 8103 | esac |
| 8104 | else : |
| 8105 | # compilation failed |
| 8106 | lt_cv_dlopen_self=no |
| 8107 | fi |
| 8108 | fi |
| 8109 | rm -fr conftest* |
| 8110 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8111 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8112 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8113 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8114 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 8115 | |
| 8116 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 8117 | LDFLAGS="$LDFLAGS $link_static_flag" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8118 | 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] | 8119 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 8120 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 8121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8122 | else |
| 8123 | if test "$cross_compiling" = yes; then : |
| 8124 | lt_cv_dlopen_self_static=cross |
| 8125 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8126 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8127 | lt_status=$lt_dlunknown |
| 8128 | cat > conftest.$ac_ext <<EOF |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 8129 | #line 8129 "configure" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8130 | #include "confdefs.h" |
| 8131 | |
| 8132 | #if HAVE_DLFCN_H |
| 8133 | #include <dlfcn.h> |
| 8134 | #endif |
| 8135 | |
| 8136 | #include <stdio.h> |
| 8137 | |
| 8138 | #ifdef RTLD_GLOBAL |
| 8139 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 8140 | #else |
| 8141 | # ifdef DL_GLOBAL |
| 8142 | # define LT_DLGLOBAL DL_GLOBAL |
| 8143 | # else |
| 8144 | # define LT_DLGLOBAL 0 |
| 8145 | # endif |
| 8146 | #endif |
| 8147 | |
| 8148 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 8149 | find out it does not work in some platform. */ |
| 8150 | #ifndef LT_DLLAZY_OR_NOW |
| 8151 | # ifdef RTLD_LAZY |
| 8152 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 8153 | # else |
| 8154 | # ifdef DL_LAZY |
| 8155 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 8156 | # else |
| 8157 | # ifdef RTLD_NOW |
| 8158 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 8159 | # else |
| 8160 | # ifdef DL_NOW |
| 8161 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 8162 | # else |
| 8163 | # define LT_DLLAZY_OR_NOW 0 |
| 8164 | # endif |
| 8165 | # endif |
| 8166 | # endif |
| 8167 | # endif |
| 8168 | #endif |
| 8169 | |
| 8170 | #ifdef __cplusplus |
| 8171 | extern "C" void exit (int); |
| 8172 | #endif |
| 8173 | |
| 8174 | void fnord() { int i=42;} |
| 8175 | int main () |
| 8176 | { |
| 8177 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 8178 | int status = $lt_dlunknown; |
| 8179 | |
| 8180 | if (self) |
| 8181 | { |
| 8182 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 8183 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 8184 | /* dlclose (self); */ |
| 8185 | } |
| 8186 | |
| 8187 | exit (status); |
| 8188 | } |
| 8189 | EOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8190 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8191 | (eval $ac_link) 2>&5 |
| 8192 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8194 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 8195 | (./conftest; exit; ) 2>/dev/null |
| 8196 | lt_status=$? |
| 8197 | case x$lt_status in |
| 8198 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 8199 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 8200 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 8201 | esac |
| 8202 | else : |
| 8203 | # compilation failed |
| 8204 | lt_cv_dlopen_self_static=no |
| 8205 | fi |
| 8206 | fi |
| 8207 | rm -fr conftest* |
| 8208 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8209 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8210 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8211 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8212 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 8213 | fi |
| 8214 | |
| 8215 | CPPFLAGS="$save_CPPFLAGS" |
| 8216 | LDFLAGS="$save_LDFLAGS" |
| 8217 | LIBS="$save_LIBS" |
| 8218 | ;; |
| 8219 | esac |
| 8220 | |
| 8221 | case $lt_cv_dlopen_self in |
| 8222 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 8223 | *) enable_dlopen_self=unknown ;; |
| 8224 | esac |
| 8225 | |
| 8226 | case $lt_cv_dlopen_self_static in |
| 8227 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 8228 | *) enable_dlopen_self_static=unknown ;; |
| 8229 | esac |
| 8230 | fi |
| 8231 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8232 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8233 | # Report which librarie types wil actually be built |
| 8234 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 8235 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 8236 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 8237 | echo "${ECHO_T}$can_build_shared" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8238 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8239 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 8240 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 8241 | test "$can_build_shared" = "no" && enable_shared=no |
| 8242 | |
| 8243 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 8244 | # are all built from PIC. |
| 8245 | case "$host_os" in |
| 8246 | aix3*) |
| 8247 | test "$enable_shared" = yes && enable_static=no |
| 8248 | if test -n "$RANLIB"; then |
| 8249 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 8250 | postinstall_cmds='$RANLIB $lib' |
| 8251 | fi |
| 8252 | ;; |
| 8253 | |
| 8254 | aix4*) |
| 8255 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 8256 | test "$enable_shared" = yes && enable_static=no |
| 8257 | fi |
| 8258 | ;; |
| 8259 | darwin* | rhapsody*) |
| 8260 | if test "$GCC" = yes; then |
| 8261 | archive_cmds_need_lc=no |
| 8262 | case "$host_os" in |
| 8263 | rhapsody* | darwin1.[012]) |
| 8264 | allow_undefined_flag='-undefined suppress' |
| 8265 | ;; |
| 8266 | *) # Darwin 1.3 on |
| 8267 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 8268 | allow_undefined_flag='-flat_namespace -undefined suppress' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8269 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8270 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 8271 | 10.[012]) |
| 8272 | allow_undefined_flag='-flat_namespace -undefined suppress' |
| 8273 | ;; |
| 8274 | 10.*) |
| 8275 | allow_undefined_flag='-undefined dynamic_lookup' |
| 8276 | ;; |
| 8277 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8278 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8279 | ;; |
| 8280 | esac |
| 8281 | output_verbose_link_cmd='echo' |
| 8282 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' |
| 8283 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 8284 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 8285 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 8286 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 8287 | hardcode_direct=no |
| 8288 | hardcode_automatic=yes |
| 8289 | hardcode_shlibpath_var=unsupported |
| 8290 | whole_archive_flag_spec='-all_load $convenience' |
| 8291 | link_all_deplibs=yes |
| 8292 | else |
| 8293 | ld_shlibs=no |
| 8294 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8295 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8296 | esac |
| 8297 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 8298 | echo "${ECHO_T}$enable_shared" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8299 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8300 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 8301 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 8302 | # Make sure either enable_shared or enable_static is yes. |
| 8303 | test "$enable_shared" = yes || enable_static=yes |
| 8304 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 8305 | echo "${ECHO_T}$enable_static" >&6 |
| 8306 | |
| 8307 | # The else clause should only fire when bootstrapping the |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8308 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 8309 | # with your package, and you will get complaints that there are |
| 8310 | # no rules to generate ltmain.sh. |
| 8311 | if test -f "$ltmain"; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8312 | # See if we are running on zsh, and set the options which allow our commands through |
| 8313 | # without removal of \ escapes. |
| 8314 | if test -n "${ZSH_VERSION+set}" ; then |
| 8315 | setopt NO_GLOB_SUBST |
| 8316 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8317 | # Now quote all the things that may contain metacharacters while being |
| 8318 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 8319 | # variables and quote the copies for generation of the libtool script. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8320 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 8321 | SED SHELL STRIP \ |
| 8322 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 8323 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 8324 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 8325 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 8326 | lt_cv_sys_global_symbol_to_c_name_address \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8327 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8328 | old_postinstall_cmds old_postuninstall_cmds \ |
| 8329 | compiler \ |
| 8330 | CC \ |
| 8331 | LD \ |
| 8332 | lt_prog_compiler_wl \ |
| 8333 | lt_prog_compiler_pic \ |
| 8334 | lt_prog_compiler_static \ |
| 8335 | lt_prog_compiler_no_builtin_flag \ |
| 8336 | export_dynamic_flag_spec \ |
| 8337 | thread_safe_flag_spec \ |
| 8338 | whole_archive_flag_spec \ |
| 8339 | enable_shared_with_static_runtimes \ |
| 8340 | old_archive_cmds \ |
| 8341 | old_archive_from_new_cmds \ |
| 8342 | predep_objects \ |
| 8343 | postdep_objects \ |
| 8344 | predeps \ |
| 8345 | postdeps \ |
| 8346 | compiler_lib_search_path \ |
| 8347 | archive_cmds \ |
| 8348 | archive_expsym_cmds \ |
| 8349 | postinstall_cmds \ |
| 8350 | postuninstall_cmds \ |
| 8351 | old_archive_from_expsyms_cmds \ |
| 8352 | allow_undefined_flag \ |
| 8353 | no_undefined_flag \ |
| 8354 | export_symbols_cmds \ |
| 8355 | hardcode_libdir_flag_spec \ |
| 8356 | hardcode_libdir_flag_spec_ld \ |
| 8357 | hardcode_libdir_separator \ |
| 8358 | hardcode_automatic \ |
| 8359 | module_cmds \ |
| 8360 | module_expsym_cmds \ |
| 8361 | lt_cv_prog_compiler_c_o \ |
| 8362 | exclude_expsyms \ |
| 8363 | include_expsyms; do |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8364 | |
| 8365 | case $var in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8366 | old_archive_cmds | \ |
| 8367 | old_archive_from_new_cmds | \ |
| 8368 | archive_cmds | \ |
| 8369 | archive_expsym_cmds | \ |
| 8370 | module_cmds | \ |
| 8371 | module_expsym_cmds | \ |
| 8372 | old_archive_from_expsyms_cmds | \ |
| 8373 | export_symbols_cmds | \ |
| 8374 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8375 | postinstall_cmds | postuninstall_cmds | \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8376 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 8377 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8378 | # Double-quote double-evaled strings. |
| 8379 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 8380 | ;; |
| 8381 | *) |
| 8382 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 8383 | ;; |
| 8384 | esac |
| 8385 | done |
| 8386 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8387 | case $lt_echo in |
| 8388 | *'\$0 --fallback-echo"') |
| 8389 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 8390 | ;; |
| 8391 | esac |
| 8392 | |
| 8393 | cfgfile="${ofile}T" |
| 8394 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 8395 | $rm -f "$cfgfile" |
| 8396 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 8397 | echo "$as_me: creating $ofile" >&6;} |
| 8398 | |
| 8399 | cat <<__EOF__ >> "$cfgfile" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8400 | #! $SHELL |
| 8401 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8402 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8403 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 8404 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 8405 | # |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8406 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 8407 | # Free Software Foundation, Inc. |
| 8408 | # |
| 8409 | # This file is part of GNU Libtool: |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8410 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 8411 | # |
| 8412 | # This program is free software; you can redistribute it and/or modify |
| 8413 | # it under the terms of the GNU General Public License as published by |
| 8414 | # the Free Software Foundation; either version 2 of the License, or |
| 8415 | # (at your option) any later version. |
| 8416 | # |
| 8417 | # This program is distributed in the hope that it will be useful, but |
| 8418 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 8419 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 8420 | # General Public License for more details. |
| 8421 | # |
| 8422 | # You should have received a copy of the GNU General Public License |
| 8423 | # along with this program; if not, write to the Free Software |
| 8424 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 8425 | # |
| 8426 | # As a special exception to the GNU General Public License, if you |
| 8427 | # distribute this file as part of a program that contains a |
| 8428 | # configuration script generated by Autoconf, you may include it under |
| 8429 | # the same distribution terms that you use for the rest of that program. |
| 8430 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8431 | # A sed program that does not truncate output. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8432 | SED=$lt_SED |
| 8433 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8434 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8435 | Xsed="$SED -e s/^X//" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8436 | |
| 8437 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 8438 | # if CDPATH is set. |
| 8439 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 8440 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8441 | # The names of the tagged configurations supported by this script. |
| 8442 | available_tags= |
| 8443 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8444 | # ### BEGIN LIBTOOL CONFIG |
| 8445 | |
| 8446 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 8447 | |
| 8448 | # Shell to use when invoking shell scripts. |
| 8449 | SHELL=$lt_SHELL |
| 8450 | |
| 8451 | # Whether or not to build shared libraries. |
| 8452 | build_libtool_libs=$enable_shared |
| 8453 | |
| 8454 | # Whether or not to build static libraries. |
| 8455 | build_old_libs=$enable_static |
| 8456 | |
| 8457 | # Whether or not to add -lc for building shared libraries. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8458 | build_libtool_need_lc=$archive_cmds_need_lc |
| 8459 | |
| 8460 | # Whether or not to disallow shared libs when runtime libs are static |
| 8461 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8462 | |
| 8463 | # Whether or not to optimize for fast installation. |
| 8464 | fast_install=$enable_fast_install |
| 8465 | |
| 8466 | # The host system. |
| 8467 | host_alias=$host_alias |
| 8468 | host=$host |
| 8469 | |
| 8470 | # An echo program that does not interpret backslashes. |
| 8471 | echo=$lt_echo |
| 8472 | |
| 8473 | # The archiver. |
| 8474 | AR=$lt_AR |
| 8475 | AR_FLAGS=$lt_AR_FLAGS |
| 8476 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8477 | # A C compiler. |
| 8478 | LTCC=$lt_LTCC |
| 8479 | |
| 8480 | # A language-specific compiler. |
| 8481 | CC=$lt_compiler |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8482 | |
| 8483 | # Is the compiler the GNU C compiler? |
| 8484 | with_gcc=$GCC |
| 8485 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8486 | # An ERE matcher. |
| 8487 | EGREP=$lt_EGREP |
| 8488 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8489 | # The linker used to build libraries. |
| 8490 | LD=$lt_LD |
| 8491 | |
| 8492 | # Whether we need hard or soft links. |
| 8493 | LN_S=$lt_LN_S |
| 8494 | |
| 8495 | # A BSD-compatible nm program. |
| 8496 | NM=$lt_NM |
| 8497 | |
| 8498 | # A symbol stripping program |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8499 | STRIP=$lt_STRIP |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8500 | |
| 8501 | # Used to examine libraries when file_magic_cmd begins "file" |
| 8502 | MAGIC_CMD=$MAGIC_CMD |
| 8503 | |
| 8504 | # Used on cygwin: DLL creation program. |
| 8505 | DLLTOOL="$DLLTOOL" |
| 8506 | |
| 8507 | # Used on cygwin: object dumper. |
| 8508 | OBJDUMP="$OBJDUMP" |
| 8509 | |
| 8510 | # Used on cygwin: assembler. |
| 8511 | AS="$AS" |
| 8512 | |
| 8513 | # The name of the directory that contains temporary libtool files. |
| 8514 | objdir=$objdir |
| 8515 | |
| 8516 | # How to create reloadable object files. |
| 8517 | reload_flag=$lt_reload_flag |
| 8518 | reload_cmds=$lt_reload_cmds |
| 8519 | |
| 8520 | # How to pass a linker flag through the compiler. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8521 | wl=$lt_lt_prog_compiler_wl |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8522 | |
| 8523 | # Object file suffix (normally "o"). |
| 8524 | objext="$ac_objext" |
| 8525 | |
| 8526 | # Old archive suffix (normally "a"). |
| 8527 | libext="$libext" |
| 8528 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8529 | # Shared library suffix (normally ".so"). |
| 8530 | shrext='$shrext' |
| 8531 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8532 | # Executable file suffix (normally ""). |
| 8533 | exeext="$exeext" |
| 8534 | |
| 8535 | # Additional compiler flags for building library objects. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8536 | pic_flag=$lt_lt_prog_compiler_pic |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8537 | pic_mode=$pic_mode |
| 8538 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8539 | # What is the maximum length of a command? |
| 8540 | max_cmd_len=$lt_cv_sys_max_cmd_len |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8541 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8542 | # Does compiler simultaneously support -c and -o options? |
| 8543 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8544 | |
| 8545 | # Must we lock files when doing compilation ? |
| 8546 | need_locks=$lt_need_locks |
| 8547 | |
| 8548 | # Do we need the lib prefix for modules? |
| 8549 | need_lib_prefix=$need_lib_prefix |
| 8550 | |
| 8551 | # Do we need a version for libraries? |
| 8552 | need_version=$need_version |
| 8553 | |
| 8554 | # Whether dlopen is supported. |
| 8555 | dlopen_support=$enable_dlopen |
| 8556 | |
| 8557 | # Whether dlopen of programs is supported. |
| 8558 | dlopen_self=$enable_dlopen_self |
| 8559 | |
| 8560 | # Whether dlopen of statically linked programs is supported. |
| 8561 | dlopen_self_static=$enable_dlopen_self_static |
| 8562 | |
| 8563 | # Compiler flag to prevent dynamic linking. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8564 | link_static_flag=$lt_lt_prog_compiler_static |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8565 | |
| 8566 | # Compiler flag to turn off builtin functions. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8567 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8568 | |
| 8569 | # Compiler flag to allow reflexive dlopens. |
| 8570 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 8571 | |
| 8572 | # Compiler flag to generate shared objects directly from archives. |
| 8573 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 8574 | |
| 8575 | # Compiler flag to generate thread-safe objects. |
| 8576 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 8577 | |
| 8578 | # Library versioning type. |
| 8579 | version_type=$version_type |
| 8580 | |
| 8581 | # Format of library name prefix. |
| 8582 | libname_spec=$lt_libname_spec |
| 8583 | |
| 8584 | # List of archive names. First name is the real one, the rest are links. |
| 8585 | # The last name is the one that the linker finds with -lNAME. |
| 8586 | library_names_spec=$lt_library_names_spec |
| 8587 | |
| 8588 | # The coded name of the library, if different from the real name. |
| 8589 | soname_spec=$lt_soname_spec |
| 8590 | |
| 8591 | # Commands used to build and install an old-style archive. |
| 8592 | RANLIB=$lt_RANLIB |
| 8593 | old_archive_cmds=$lt_old_archive_cmds |
| 8594 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 8595 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 8596 | |
| 8597 | # Create an old-style archive from a shared archive. |
| 8598 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 8599 | |
| 8600 | # Create a temporary old-style archive to link instead of a shared archive. |
| 8601 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 8602 | |
| 8603 | # Commands used to build and install a shared archive. |
| 8604 | archive_cmds=$lt_archive_cmds |
| 8605 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 8606 | postinstall_cmds=$lt_postinstall_cmds |
| 8607 | postuninstall_cmds=$lt_postuninstall_cmds |
| 8608 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8609 | # Commands used to build a loadable module (assumed same as above if empty) |
| 8610 | module_cmds=$lt_module_cmds |
| 8611 | module_expsym_cmds=$lt_module_expsym_cmds |
| 8612 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8613 | # Commands to strip libraries. |
| 8614 | old_striplib=$lt_old_striplib |
| 8615 | striplib=$lt_striplib |
| 8616 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8617 | # Dependencies to place before the objects being linked to create a |
| 8618 | # shared library. |
| 8619 | predep_objects=$lt_predep_objects |
| 8620 | |
| 8621 | # Dependencies to place after the objects being linked to create a |
| 8622 | # shared library. |
| 8623 | postdep_objects=$lt_postdep_objects |
| 8624 | |
| 8625 | # Dependencies to place before the objects being linked to create a |
| 8626 | # shared library. |
| 8627 | predeps=$lt_predeps |
| 8628 | |
| 8629 | # Dependencies to place after the objects being linked to create a |
| 8630 | # shared library. |
| 8631 | postdeps=$lt_postdeps |
| 8632 | |
| 8633 | # The library search path used internally by the compiler when linking |
| 8634 | # a shared library. |
| 8635 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 8636 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8637 | # Method to check whether dependent libraries are shared objects. |
| 8638 | deplibs_check_method=$lt_deplibs_check_method |
| 8639 | |
| 8640 | # Command to use when deplibs_check_method == file_magic. |
| 8641 | file_magic_cmd=$lt_file_magic_cmd |
| 8642 | |
| 8643 | # Flag that allows shared libraries with undefined symbols to be built. |
| 8644 | allow_undefined_flag=$lt_allow_undefined_flag |
| 8645 | |
| 8646 | # Flag that forces no undefined symbols. |
| 8647 | no_undefined_flag=$lt_no_undefined_flag |
| 8648 | |
| 8649 | # Commands used to finish a libtool library installation in a directory. |
| 8650 | finish_cmds=$lt_finish_cmds |
| 8651 | |
| 8652 | # Same as above, but a single script fragment to be evaled but not shown. |
| 8653 | finish_eval=$lt_finish_eval |
| 8654 | |
| 8655 | # Take the output of nm and produce a listing of raw symbols and C names. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8656 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8657 | |
| 8658 | # Transform the output of nm in a proper C declaration |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8659 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8660 | |
| 8661 | # Transform the output of nm in a C name address pair |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8662 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8663 | |
| 8664 | # This is the shared library runtime path variable. |
| 8665 | runpath_var=$runpath_var |
| 8666 | |
| 8667 | # This is the shared library path variable. |
| 8668 | shlibpath_var=$shlibpath_var |
| 8669 | |
| 8670 | # Is shlibpath searched before the hard-coded library search path? |
| 8671 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 8672 | |
| 8673 | # How to hardcode a shared library path into an executable. |
| 8674 | hardcode_action=$hardcode_action |
| 8675 | |
| 8676 | # Whether we should hardcode library paths into libraries. |
| 8677 | hardcode_into_libs=$hardcode_into_libs |
| 8678 | |
| 8679 | # Flag to hardcode \$libdir into a binary during linking. |
| 8680 | # This must work even if \$libdir does not exist. |
| 8681 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 8682 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8683 | # If ld is used when linking, flag to hardcode \$libdir into |
| 8684 | # a binary during linking. This must work even if \$libdir does |
| 8685 | # not exist. |
| 8686 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 8687 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8688 | # Whether we need a single -rpath flag with a separated argument. |
| 8689 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 8690 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8691 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8692 | # resulting binary. |
| 8693 | hardcode_direct=$hardcode_direct |
| 8694 | |
| 8695 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 8696 | # resulting binary. |
| 8697 | hardcode_minus_L=$hardcode_minus_L |
| 8698 | |
| 8699 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 8700 | # the resulting binary. |
| 8701 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 8702 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8703 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 8704 | # and all subsequent libraries and executables linked against it. |
| 8705 | hardcode_automatic=$hardcode_automatic |
| 8706 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8707 | # Variables whose values should be saved in libtool wrapper scripts and |
| 8708 | # restored at relink time. |
| 8709 | variables_saved_for_relink="$variables_saved_for_relink" |
| 8710 | |
| 8711 | # Whether libtool must link a program against all its dependency libraries. |
| 8712 | link_all_deplibs=$link_all_deplibs |
| 8713 | |
| 8714 | # Compile-time system search path for libraries |
| 8715 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 8716 | |
| 8717 | # Run-time system search path for libraries |
| 8718 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 8719 | |
| 8720 | # Fix the shell variable \$srcfile for the compiler. |
| 8721 | fix_srcfile_path="$fix_srcfile_path" |
| 8722 | |
| 8723 | # Set to yes if exported symbols are required. |
| 8724 | always_export_symbols=$always_export_symbols |
| 8725 | |
| 8726 | # The commands to list exported symbols. |
| 8727 | export_symbols_cmds=$lt_export_symbols_cmds |
| 8728 | |
| 8729 | # The commands to extract the exported symbol list from a shared archive. |
| 8730 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 8731 | |
| 8732 | # Symbols that should not be listed in the preloaded symbols. |
| 8733 | exclude_expsyms=$lt_exclude_expsyms |
| 8734 | |
| 8735 | # Symbols that must always be exported. |
| 8736 | include_expsyms=$lt_include_expsyms |
| 8737 | |
| 8738 | # ### END LIBTOOL CONFIG |
| 8739 | |
| 8740 | __EOF__ |
| 8741 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8742 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8743 | case $host_os in |
| 8744 | aix3*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8745 | cat <<\EOF >> "$cfgfile" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8746 | |
| 8747 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 8748 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 8749 | # vanish in a puff of smoke. |
| 8750 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 8751 | COLLECT_NAMES= |
| 8752 | export COLLECT_NAMES |
| 8753 | fi |
| 8754 | EOF |
| 8755 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8756 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8757 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8758 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 8759 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 8760 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 8761 | # is reportedly fixed, but why not run on old versions too? |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8762 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8763 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8764 | mv -f "$cfgfile" "$ofile" || \ |
| 8765 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8766 | chmod +x "$ofile" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8767 | |
| 8768 | else |
| 8769 | # If there is no Makefile yet, we rely on a make rule to execute |
| 8770 | # `config.status --recheck' to rerun these tests and create the |
| 8771 | # libtool script then. |
| 8772 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 8773 | if test -f "$ltmain_in"; then |
| 8774 | test -f Makefile && make "$ltmain" |
| 8775 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8776 | fi |
| 8777 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8778 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8779 | ac_ext=c |
| 8780 | ac_cpp='$CPP $CPPFLAGS' |
| 8781 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8782 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8783 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8784 | |
| 8785 | CC="$lt_save_CC" |
| 8786 | |
| 8787 | |
| 8788 | # Check whether --with-tags or --without-tags was given. |
| 8789 | if test "${with_tags+set}" = set; then |
| 8790 | withval="$with_tags" |
| 8791 | tagnames="$withval" |
| 8792 | fi; |
| 8793 | |
| 8794 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 8795 | if test ! -f "${ofile}"; then |
| 8796 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 8797 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 8798 | fi |
| 8799 | |
| 8800 | if test -z "$LTCC"; then |
| 8801 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 8802 | if test -z "$LTCC"; then |
| 8803 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 8804 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 8805 | else |
| 8806 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 8807 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 8808 | fi |
| 8809 | fi |
| 8810 | |
| 8811 | # Extract list of available tagged configurations in $ofile. |
| 8812 | # Note that this assumes the entire list is on one line. |
| 8813 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 8814 | |
| 8815 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8816 | for tagname in $tagnames; do |
| 8817 | IFS="$lt_save_ifs" |
| 8818 | # Check whether tagname contains only valid characters |
| 8819 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 8820 | "") ;; |
| 8821 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 8822 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 8823 | { (exit 1); exit 1; }; } |
| 8824 | ;; |
| 8825 | esac |
| 8826 | |
| 8827 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 8828 | then |
| 8829 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 8830 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 8831 | { (exit 1); exit 1; }; } |
| 8832 | fi |
| 8833 | |
| 8834 | # Update the list of available tags. |
| 8835 | if test -n "$tagname"; then |
| 8836 | echo appending configuration tag \"$tagname\" to $ofile |
| 8837 | |
| 8838 | case $tagname in |
| 8839 | CXX) |
| 8840 | if test -n "$CXX" && test "X$CXX" != "Xno"; then |
| 8841 | ac_ext=cc |
| 8842 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 8843 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8844 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8845 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 8846 | |
| 8847 | |
| 8848 | |
| 8849 | |
| 8850 | archive_cmds_need_lc_CXX=no |
| 8851 | allow_undefined_flag_CXX= |
| 8852 | always_export_symbols_CXX=no |
| 8853 | archive_expsym_cmds_CXX= |
| 8854 | export_dynamic_flag_spec_CXX= |
| 8855 | hardcode_direct_CXX=no |
| 8856 | hardcode_libdir_flag_spec_CXX= |
| 8857 | hardcode_libdir_flag_spec_ld_CXX= |
| 8858 | hardcode_libdir_separator_CXX= |
| 8859 | hardcode_minus_L_CXX=no |
| 8860 | hardcode_automatic_CXX=no |
| 8861 | module_cmds_CXX= |
| 8862 | module_expsym_cmds_CXX= |
| 8863 | link_all_deplibs_CXX=unknown |
| 8864 | old_archive_cmds_CXX=$old_archive_cmds |
| 8865 | no_undefined_flag_CXX= |
| 8866 | whole_archive_flag_spec_CXX= |
| 8867 | enable_shared_with_static_runtimes_CXX=no |
| 8868 | |
| 8869 | # Dependencies to place before and after the object being linked: |
| 8870 | predep_objects_CXX= |
| 8871 | postdep_objects_CXX= |
| 8872 | predeps_CXX= |
| 8873 | postdeps_CXX= |
| 8874 | compiler_lib_search_path_CXX= |
| 8875 | |
| 8876 | # Source file extension for C++ test sources. |
| 8877 | ac_ext=cc |
| 8878 | |
| 8879 | # Object file extension for compiled C++ test sources. |
| 8880 | objext=o |
| 8881 | objext_CXX=$objext |
| 8882 | |
| 8883 | # Code to be used in simple compile tests |
| 8884 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 8885 | |
| 8886 | # Code to be used in simple link tests |
| 8887 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' |
| 8888 | |
| 8889 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 8890 | |
| 8891 | # If no C compiler was specified, use CC. |
| 8892 | LTCC=${LTCC-"$CC"} |
| 8893 | |
| 8894 | # Allow CC to be a program name with arguments. |
| 8895 | compiler=$CC |
| 8896 | |
| 8897 | |
| 8898 | # Allow CC to be a program name with arguments. |
| 8899 | lt_save_CC=$CC |
| 8900 | lt_save_LD=$LD |
| 8901 | lt_save_GCC=$GCC |
| 8902 | GCC=$GXX |
| 8903 | lt_save_with_gnu_ld=$with_gnu_ld |
| 8904 | lt_save_path_LD=$lt_cv_path_LD |
| 8905 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 8906 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 8907 | else |
| 8908 | unset lt_cv_prog_gnu_ld |
| 8909 | fi |
| 8910 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 8911 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 8912 | else |
| 8913 | unset lt_cv_path_LD |
| 8914 | fi |
| 8915 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 8916 | CC=${CXX-"c++"} |
| 8917 | compiler=$CC |
| 8918 | compiler_CXX=$CC |
| 8919 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 8920 | |
| 8921 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 8922 | # no_builtin_flag separately |
| 8923 | if test "$GXX" = yes; then |
| 8924 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 8925 | else |
| 8926 | lt_prog_compiler_no_builtin_flag_CXX= |
| 8927 | fi |
| 8928 | |
| 8929 | if test "$GXX" = yes; then |
| 8930 | # Set up default GNU C++ configuration |
| 8931 | |
| 8932 | |
| 8933 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 8934 | if test "${with_gnu_ld+set}" = set; then |
| 8935 | withval="$with_gnu_ld" |
| 8936 | test "$withval" = no || with_gnu_ld=yes |
| 8937 | else |
| 8938 | with_gnu_ld=no |
| 8939 | fi; |
| 8940 | ac_prog=ld |
| 8941 | if test "$GCC" = yes; then |
| 8942 | # Check if gcc -print-prog-name=ld gives a path. |
| 8943 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 8944 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
| 8945 | case $host in |
| 8946 | *-*-mingw*) |
| 8947 | # gcc leaves a trailing carriage return which upsets mingw |
| 8948 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 8949 | *) |
| 8950 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 8951 | esac |
| 8952 | case $ac_prog in |
| 8953 | # Accept absolute paths. |
| 8954 | [\\/]* | ?:[\\/]*) |
| 8955 | re_direlt='/[^/][^/]*/\.\./' |
| 8956 | # Canonicalize the pathname of ld |
| 8957 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 8958 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 8959 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 8960 | done |
| 8961 | test -z "$LD" && LD="$ac_prog" |
| 8962 | ;; |
| 8963 | "") |
| 8964 | # If it fails, then pretend we aren't using GCC. |
| 8965 | ac_prog=ld |
| 8966 | ;; |
| 8967 | *) |
| 8968 | # If it is relative, then search for the first ld in PATH. |
| 8969 | with_gnu_ld=unknown |
| 8970 | ;; |
| 8971 | esac |
| 8972 | elif test "$with_gnu_ld" = yes; then |
| 8973 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 8974 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 8975 | else |
| 8976 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 8977 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 8978 | fi |
| 8979 | if test "${lt_cv_path_LD+set}" = set; then |
| 8980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8981 | else |
| 8982 | if test -z "$LD"; then |
| 8983 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8984 | for ac_dir in $PATH; do |
| 8985 | IFS="$lt_save_ifs" |
| 8986 | test -z "$ac_dir" && ac_dir=. |
| 8987 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 8988 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 8989 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 8990 | # but apparently some GNU ld's only accept -v. |
| 8991 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 8992 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 8993 | *GNU* | *'with BFD'*) |
| 8994 | test "$with_gnu_ld" != no && break |
| 8995 | ;; |
| 8996 | *) |
| 8997 | test "$with_gnu_ld" != yes && break |
| 8998 | ;; |
| 8999 | esac |
| 9000 | fi |
| 9001 | done |
| 9002 | IFS="$lt_save_ifs" |
| 9003 | else |
| 9004 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 9005 | fi |
| 9006 | fi |
| 9007 | |
| 9008 | LD="$lt_cv_path_LD" |
| 9009 | if test -n "$LD"; then |
| 9010 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 9011 | echo "${ECHO_T}$LD" >&6 |
| 9012 | else |
| 9013 | echo "$as_me:$LINENO: result: no" >&5 |
| 9014 | echo "${ECHO_T}no" >&6 |
| 9015 | fi |
| 9016 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 9017 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 9018 | { (exit 1); exit 1; }; } |
| 9019 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 9020 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 9021 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 9022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9023 | else |
| 9024 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 9025 | case `$LD -v 2>&1 </dev/null` in |
| 9026 | *GNU* | *'with BFD'*) |
| 9027 | lt_cv_prog_gnu_ld=yes |
| 9028 | ;; |
| 9029 | *) |
| 9030 | lt_cv_prog_gnu_ld=no |
| 9031 | ;; |
| 9032 | esac |
| 9033 | fi |
| 9034 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 9035 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 9036 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 9037 | |
| 9038 | |
| 9039 | |
| 9040 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 9041 | # archiving commands below assume that GNU ld is being used. |
| 9042 | if test "$with_gnu_ld" = yes; then |
| 9043 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9044 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9045 | |
| 9046 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 9047 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 9048 | |
| 9049 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 9050 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 9051 | # investigate it a little bit more. (MM) |
| 9052 | wlarc='${wl}' |
| 9053 | |
| 9054 | # ancient GNU ld didn't support --whole-archive et. al. |
| 9055 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 9056 | grep 'no-whole-archive' > /dev/null; then |
| 9057 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 9058 | else |
| 9059 | whole_archive_flag_spec_CXX= |
| 9060 | fi |
| 9061 | else |
| 9062 | with_gnu_ld=no |
| 9063 | wlarc= |
| 9064 | |
| 9065 | # A generic and very simple default shared library creation |
| 9066 | # command for GNU C++ for the case where it uses the native |
| 9067 | # linker, instead of GNU ld. If possible, this setting should |
| 9068 | # overridden to take advantage of the native linker features on |
| 9069 | # the platform it is being used on. |
| 9070 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 9071 | fi |
| 9072 | |
| 9073 | # Commands to make compiler produce verbose output that lists |
| 9074 | # what "hidden" libraries, object files and flags are used when |
| 9075 | # linking a shared library. |
| 9076 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 9077 | |
| 9078 | else |
| 9079 | GXX=no |
| 9080 | with_gnu_ld=no |
| 9081 | wlarc= |
| 9082 | fi |
| 9083 | |
| 9084 | # PORTME: fill in a description of your system's C++ link characteristics |
| 9085 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 9086 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 9087 | ld_shlibs_CXX=yes |
| 9088 | case $host_os in |
| 9089 | aix3*) |
| 9090 | # FIXME: insert proper C++ library support |
| 9091 | ld_shlibs_CXX=no |
| 9092 | ;; |
| 9093 | aix4* | aix5*) |
| 9094 | if test "$host_cpu" = ia64; then |
| 9095 | # On IA64, the linker does run time linking by default, so we don't |
| 9096 | # have to do anything special. |
| 9097 | aix_use_runtimelinking=no |
| 9098 | exp_sym_flag='-Bexport' |
| 9099 | no_entry_flag="" |
| 9100 | else |
| 9101 | aix_use_runtimelinking=no |
| 9102 | |
| 9103 | # Test if we are trying to use run time linking or normal |
| 9104 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 9105 | # need to do runtime linking. |
| 9106 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 9107 | for ld_flag in $LDFLAGS; do |
| 9108 | case $ld_flag in |
| 9109 | *-brtl*) |
| 9110 | aix_use_runtimelinking=yes |
| 9111 | break |
| 9112 | ;; |
| 9113 | esac |
| 9114 | done |
| 9115 | esac |
| 9116 | |
| 9117 | exp_sym_flag='-bexport' |
| 9118 | no_entry_flag='-bnoentry' |
| 9119 | fi |
| 9120 | |
| 9121 | # When large executables or shared objects are built, AIX ld can |
| 9122 | # have problems creating the table of contents. If linking a library |
| 9123 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 9124 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 9125 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 9126 | |
| 9127 | archive_cmds_CXX='' |
| 9128 | hardcode_direct_CXX=yes |
| 9129 | hardcode_libdir_separator_CXX=':' |
| 9130 | link_all_deplibs_CXX=yes |
| 9131 | |
| 9132 | if test "$GXX" = yes; then |
| 9133 | case $host_os in aix4.012|aix4.012.*) |
| 9134 | # We only want to do this on AIX 4.2 and lower, the check |
| 9135 | # below for broken collect2 doesn't work under 4.3+ |
| 9136 | collect2name=`${CC} -print-prog-name=collect2` |
| 9137 | if test -f "$collect2name" && \ |
| 9138 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 9139 | then |
| 9140 | # We have reworked collect2 |
| 9141 | hardcode_direct_CXX=yes |
| 9142 | else |
| 9143 | # We have old collect2 |
| 9144 | hardcode_direct_CXX=unsupported |
| 9145 | # It fails to find uninstalled libraries when the uninstalled |
| 9146 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 9147 | # to unsupported forces relinking |
| 9148 | hardcode_minus_L_CXX=yes |
| 9149 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 9150 | hardcode_libdir_separator_CXX= |
| 9151 | fi |
| 9152 | esac |
| 9153 | shared_flag='-shared' |
| 9154 | else |
| 9155 | # not using gcc |
| 9156 | if test "$host_cpu" = ia64; then |
| 9157 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 9158 | # chokes on -Wl,-G. The following line is correct: |
| 9159 | shared_flag='-G' |
| 9160 | else |
| 9161 | if test "$aix_use_runtimelinking" = yes; then |
| 9162 | shared_flag='${wl}-G' |
| 9163 | else |
| 9164 | shared_flag='${wl}-bM:SRE' |
| 9165 | fi |
| 9166 | fi |
| 9167 | fi |
| 9168 | |
| 9169 | # It seems that -bexpall does not export symbols beginning with |
| 9170 | # underscore (_), so it is better to generate a list of symbols to export. |
| 9171 | always_export_symbols_CXX=yes |
| 9172 | if test "$aix_use_runtimelinking" = yes; then |
| 9173 | # Warning - without using the other runtime loading flags (-brtl), |
| 9174 | # -berok will link without error, but may produce a broken library. |
| 9175 | allow_undefined_flag_CXX='-berok' |
| 9176 | # Determine the default libpath from the value encoded in an empty executable. |
| 9177 | cat >conftest.$ac_ext <<_ACEOF |
| 9178 | /* confdefs.h. */ |
| 9179 | _ACEOF |
| 9180 | cat confdefs.h >>conftest.$ac_ext |
| 9181 | cat >>conftest.$ac_ext <<_ACEOF |
| 9182 | /* end confdefs.h. */ |
| 9183 | |
| 9184 | int |
| 9185 | main () |
| 9186 | { |
| 9187 | |
| 9188 | ; |
| 9189 | return 0; |
| 9190 | } |
| 9191 | _ACEOF |
| 9192 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9193 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9194 | (eval $ac_link) 2>conftest.er1 |
| 9195 | ac_status=$? |
| 9196 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9197 | rm -f conftest.er1 |
| 9198 | cat conftest.err >&5 |
| 9199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9200 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 9201 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 9202 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9204 | (eval $ac_try) 2>&5 |
| 9205 | ac_status=$? |
| 9206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9207 | (exit $ac_status); }; } && |
| 9208 | { ac_try='test -s conftest$ac_exeext' |
| 9209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9210 | (eval $ac_try) 2>&5 |
| 9211 | ac_status=$? |
| 9212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9213 | (exit $ac_status); }; }; then |
| 9214 | |
| 9215 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 9216 | }'` |
| 9217 | # Check for a 64-bit object if we didn't find anything. |
| 9218 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 9219 | }'`; fi |
| 9220 | else |
| 9221 | echo "$as_me: failed program was:" >&5 |
| 9222 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9223 | |
| 9224 | fi |
| 9225 | rm -f conftest.err conftest.$ac_objext \ |
| 9226 | conftest$ac_exeext conftest.$ac_ext |
| 9227 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 9228 | |
| 9229 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9230 | |
| 9231 | archive_expsym_cmds_CXX="\$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" |
| 9232 | else |
| 9233 | if test "$host_cpu" = ia64; then |
| 9234 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 9235 | allow_undefined_flag_CXX="-z nodefs" |
| 9236 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 9237 | else |
| 9238 | # Determine the default libpath from the value encoded in an empty executable. |
| 9239 | cat >conftest.$ac_ext <<_ACEOF |
| 9240 | /* confdefs.h. */ |
| 9241 | _ACEOF |
| 9242 | cat confdefs.h >>conftest.$ac_ext |
| 9243 | cat >>conftest.$ac_ext <<_ACEOF |
| 9244 | /* end confdefs.h. */ |
| 9245 | |
| 9246 | int |
| 9247 | main () |
| 9248 | { |
| 9249 | |
| 9250 | ; |
| 9251 | return 0; |
| 9252 | } |
| 9253 | _ACEOF |
| 9254 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9255 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9256 | (eval $ac_link) 2>conftest.er1 |
| 9257 | ac_status=$? |
| 9258 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9259 | rm -f conftest.er1 |
| 9260 | cat conftest.err >&5 |
| 9261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9262 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 9263 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 9264 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9266 | (eval $ac_try) 2>&5 |
| 9267 | ac_status=$? |
| 9268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9269 | (exit $ac_status); }; } && |
| 9270 | { ac_try='test -s conftest$ac_exeext' |
| 9271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9272 | (eval $ac_try) 2>&5 |
| 9273 | ac_status=$? |
| 9274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9275 | (exit $ac_status); }; }; then |
| 9276 | |
| 9277 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 9278 | }'` |
| 9279 | # Check for a 64-bit object if we didn't find anything. |
| 9280 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 9281 | }'`; fi |
| 9282 | else |
| 9283 | echo "$as_me: failed program was:" >&5 |
| 9284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9285 | |
| 9286 | fi |
| 9287 | rm -f conftest.err conftest.$ac_objext \ |
| 9288 | conftest$ac_exeext conftest.$ac_ext |
| 9289 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 9290 | |
| 9291 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9292 | # Warning - without using the other run time loading flags, |
| 9293 | # -berok will link without error, but may produce a broken library. |
| 9294 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 9295 | allow_undefined_flag_CXX=' ${wl}-berok' |
| 9296 | # -bexpall does not export symbols beginning with underscore (_) |
| 9297 | always_export_symbols_CXX=yes |
| 9298 | # Exported symbols can be pulled into shared objects from archives |
| 9299 | whole_archive_flag_spec_CXX=' ' |
| 9300 | archive_cmds_need_lc_CXX=yes |
| 9301 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 9302 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 9303 | fi |
| 9304 | fi |
| 9305 | ;; |
| 9306 | chorus*) |
| 9307 | case $cc_basename in |
| 9308 | *) |
| 9309 | # FIXME: insert proper C++ library support |
| 9310 | ld_shlibs_CXX=no |
| 9311 | ;; |
| 9312 | esac |
| 9313 | ;; |
| 9314 | |
| 9315 | cygwin* | mingw* | pw32*) |
| 9316 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 9317 | # as there is no search path for DLLs. |
| 9318 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 9319 | allow_undefined_flag_CXX=unsupported |
| 9320 | always_export_symbols_CXX=no |
| 9321 | enable_shared_with_static_runtimes_CXX=yes |
| 9322 | |
| 9323 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 9324 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 9325 | # If the export-symbols file already is a .def file (1st line |
| 9326 | # is EXPORTS), use it as is; otherwise, prepend... |
| 9327 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 9328 | cp $export_symbols $output_objdir/$soname.def; |
| 9329 | else |
| 9330 | echo EXPORTS > $output_objdir/$soname.def; |
| 9331 | cat $export_symbols >> $output_objdir/$soname.def; |
| 9332 | fi~ |
| 9333 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 9334 | else |
| 9335 | ld_shlibs_CXX=no |
| 9336 | fi |
| 9337 | ;; |
| 9338 | |
| 9339 | darwin* | rhapsody*) |
| 9340 | if test "$GXX" = yes; then |
| 9341 | archive_cmds_need_lc_CXX=no |
| 9342 | case "$host_os" in |
| 9343 | rhapsody* | darwin1.[012]) |
| 9344 | allow_undefined_flag_CXX='-undefined suppress' |
| 9345 | ;; |
| 9346 | *) # Darwin 1.3 on |
| 9347 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 9348 | allow_undefined_flag_CXX='-flat_namespace -undefined suppress' |
| 9349 | else |
| 9350 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 9351 | 10.[012]) |
| 9352 | allow_undefined_flag_CXX='-flat_namespace -undefined suppress' |
| 9353 | ;; |
| 9354 | 10.*) |
| 9355 | allow_undefined_flag_CXX='-undefined dynamic_lookup' |
| 9356 | ;; |
| 9357 | esac |
| 9358 | fi |
| 9359 | ;; |
| 9360 | esac |
| 9361 | lt_int_apple_cc_single_mod=no |
| 9362 | output_verbose_link_cmd='echo' |
| 9363 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 9364 | lt_int_apple_cc_single_mod=yes |
| 9365 | fi |
| 9366 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 9367 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 9368 | else |
| 9369 | archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 9370 | fi |
| 9371 | module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 9372 | |
| 9373 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 9374 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 9375 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 9376 | else |
| 9377 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 9378 | fi |
| 9379 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 9380 | hardcode_direct_CXX=no |
| 9381 | hardcode_automatic_CXX=yes |
| 9382 | hardcode_shlibpath_var_CXX=unsupported |
| 9383 | whole_archive_flag_spec_CXX='-all_load $convenience' |
| 9384 | link_all_deplibs_CXX=yes |
| 9385 | else |
| 9386 | ld_shlibs_CXX=no |
| 9387 | fi |
| 9388 | ;; |
| 9389 | |
| 9390 | dgux*) |
| 9391 | case $cc_basename in |
| 9392 | ec++) |
| 9393 | # FIXME: insert proper C++ library support |
| 9394 | ld_shlibs_CXX=no |
| 9395 | ;; |
| 9396 | ghcx) |
| 9397 | # Green Hills C++ Compiler |
| 9398 | # FIXME: insert proper C++ library support |
| 9399 | ld_shlibs_CXX=no |
| 9400 | ;; |
| 9401 | *) |
| 9402 | # FIXME: insert proper C++ library support |
| 9403 | ld_shlibs_CXX=no |
| 9404 | ;; |
| 9405 | esac |
| 9406 | ;; |
| 9407 | freebsd12*) |
| 9408 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 9409 | ld_shlibs_CXX=no |
| 9410 | ;; |
| 9411 | freebsd-elf*) |
| 9412 | archive_cmds_need_lc_CXX=no |
| 9413 | ;; |
| 9414 | freebsd* | kfreebsd*-gnu) |
| 9415 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 9416 | # conventions |
| 9417 | ld_shlibs_CXX=yes |
| 9418 | ;; |
| 9419 | gnu*) |
| 9420 | ;; |
| 9421 | hpux9*) |
| 9422 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 9423 | hardcode_libdir_separator_CXX=: |
| 9424 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 9425 | hardcode_direct_CXX=yes |
| 9426 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 9427 | # but as the default |
| 9428 | # location of the library. |
| 9429 | |
| 9430 | case $cc_basename in |
| 9431 | CC) |
| 9432 | # FIXME: insert proper C++ library support |
| 9433 | ld_shlibs_CXX=no |
| 9434 | ;; |
| 9435 | aCC) |
| 9436 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 9437 | # Commands to make compiler produce verbose output that lists |
| 9438 | # what "hidden" libraries, object files and flags are used when |
| 9439 | # linking a shared library. |
| 9440 | # |
| 9441 | # There doesn't appear to be a way to prevent this compiler from |
| 9442 | # explicitly linking system object files so we need to strip them |
| 9443 | # from the output so that they don't get included in the library |
| 9444 | # dependencies. |
| 9445 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 9446 | ;; |
| 9447 | *) |
| 9448 | if test "$GXX" = yes; then |
| 9449 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 9450 | else |
| 9451 | # FIXME: insert proper C++ library support |
| 9452 | ld_shlibs_CXX=no |
| 9453 | fi |
| 9454 | ;; |
| 9455 | esac |
| 9456 | ;; |
| 9457 | hpux10*|hpux11*) |
| 9458 | if test $with_gnu_ld = no; then |
| 9459 | case "$host_cpu" in |
| 9460 | hppa*64*) |
| 9461 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 9462 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
| 9463 | hardcode_libdir_separator_CXX=: |
| 9464 | ;; |
| 9465 | ia64*) |
| 9466 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 9467 | ;; |
| 9468 | *) |
| 9469 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 9470 | hardcode_libdir_separator_CXX=: |
| 9471 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 9472 | ;; |
| 9473 | esac |
| 9474 | fi |
| 9475 | case "$host_cpu" in |
| 9476 | hppa*64*) |
| 9477 | hardcode_direct_CXX=no |
| 9478 | hardcode_shlibpath_var_CXX=no |
| 9479 | ;; |
| 9480 | ia64*) |
| 9481 | hardcode_direct_CXX=no |
| 9482 | hardcode_shlibpath_var_CXX=no |
| 9483 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 9484 | # but as the default |
| 9485 | # location of the library. |
| 9486 | ;; |
| 9487 | *) |
| 9488 | hardcode_direct_CXX=yes |
| 9489 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 9490 | # but as the default |
| 9491 | # location of the library. |
| 9492 | ;; |
| 9493 | esac |
| 9494 | |
| 9495 | case $cc_basename in |
| 9496 | CC) |
| 9497 | # FIXME: insert proper C++ library support |
| 9498 | ld_shlibs_CXX=no |
| 9499 | ;; |
| 9500 | aCC) |
| 9501 | case "$host_cpu" in |
| 9502 | hppa*64*|ia64*) |
| 9503 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 9504 | ;; |
| 9505 | *) |
| 9506 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 9507 | ;; |
| 9508 | esac |
| 9509 | # Commands to make compiler produce verbose output that lists |
| 9510 | # what "hidden" libraries, object files and flags are used when |
| 9511 | # linking a shared library. |
| 9512 | # |
| 9513 | # There doesn't appear to be a way to prevent this compiler from |
| 9514 | # explicitly linking system object files so we need to strip them |
| 9515 | # from the output so that they don't get included in the library |
| 9516 | # dependencies. |
| 9517 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 9518 | ;; |
| 9519 | *) |
| 9520 | if test "$GXX" = yes; then |
| 9521 | if test $with_gnu_ld = no; then |
| 9522 | case "$host_cpu" in |
| 9523 | ia64*|hppa*64*) |
| 9524 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 9525 | ;; |
| 9526 | *) |
| 9527 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 9528 | ;; |
| 9529 | esac |
| 9530 | fi |
| 9531 | else |
| 9532 | # FIXME: insert proper C++ library support |
| 9533 | ld_shlibs_CXX=no |
| 9534 | fi |
| 9535 | ;; |
| 9536 | esac |
| 9537 | ;; |
| 9538 | irix5* | irix6*) |
| 9539 | case $cc_basename in |
| 9540 | CC) |
| 9541 | # SGI C++ |
| 9542 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
| 9543 | |
| 9544 | # Archives containing C++ object files must be created using |
| 9545 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 9546 | # necessary to make sure instantiated templates are included |
| 9547 | # in the archive. |
| 9548 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 9549 | ;; |
| 9550 | *) |
| 9551 | if test "$GXX" = yes; then |
| 9552 | if test "$with_gnu_ld" = no; then |
| 9553 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
| 9554 | else |
| 9555 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' |
| 9556 | fi |
| 9557 | fi |
| 9558 | link_all_deplibs_CXX=yes |
| 9559 | ;; |
| 9560 | esac |
| 9561 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 9562 | hardcode_libdir_separator_CXX=: |
| 9563 | ;; |
| 9564 | linux*) |
| 9565 | case $cc_basename in |
| 9566 | KCC) |
| 9567 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 9568 | |
| 9569 | # KCC will only create a shared library if the output file |
| 9570 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 9571 | # to its proper name (with version) after linking. |
| 9572 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 9573 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' |
| 9574 | # Commands to make compiler produce verbose output that lists |
| 9575 | # what "hidden" libraries, object files and flags are used when |
| 9576 | # linking a shared library. |
| 9577 | # |
| 9578 | # There doesn't appear to be a way to prevent this compiler from |
| 9579 | # explicitly linking system object files so we need to strip them |
| 9580 | # from the output so that they don't get included in the library |
| 9581 | # dependencies. |
| 9582 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 9583 | |
| 9584 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 9585 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 9586 | |
| 9587 | # Archives containing C++ object files must be created using |
| 9588 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 9589 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 9590 | ;; |
| 9591 | icpc) |
| 9592 | # Intel C++ |
| 9593 | with_gnu_ld=yes |
| 9594 | archive_cmds_need_lc_CXX=no |
| 9595 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9596 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9597 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 9598 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 9599 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 9600 | ;; |
| 9601 | cxx) |
| 9602 | # Compaq C++ |
| 9603 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9604 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
| 9605 | |
| 9606 | runpath_var=LD_RUN_PATH |
| 9607 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 9608 | hardcode_libdir_separator_CXX=: |
| 9609 | |
| 9610 | # Commands to make compiler produce verbose output that lists |
| 9611 | # what "hidden" libraries, object files and flags are used when |
| 9612 | # linking a shared library. |
| 9613 | # |
| 9614 | # There doesn't appear to be a way to prevent this compiler from |
| 9615 | # explicitly linking system object files so we need to strip them |
| 9616 | # from the output so that they don't get included in the library |
| 9617 | # dependencies. |
| 9618 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 9619 | ;; |
| 9620 | esac |
| 9621 | ;; |
| 9622 | lynxos*) |
| 9623 | # FIXME: insert proper C++ library support |
| 9624 | ld_shlibs_CXX=no |
| 9625 | ;; |
| 9626 | m88k*) |
| 9627 | # FIXME: insert proper C++ library support |
| 9628 | ld_shlibs_CXX=no |
| 9629 | ;; |
| 9630 | mvs*) |
| 9631 | case $cc_basename in |
| 9632 | cxx) |
| 9633 | # FIXME: insert proper C++ library support |
| 9634 | ld_shlibs_CXX=no |
| 9635 | ;; |
| 9636 | *) |
| 9637 | # FIXME: insert proper C++ library support |
| 9638 | ld_shlibs_CXX=no |
| 9639 | ;; |
| 9640 | esac |
| 9641 | ;; |
| 9642 | netbsd* | knetbsd*-gnu) |
| 9643 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9644 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 9645 | wlarc= |
| 9646 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 9647 | hardcode_direct_CXX=yes |
| 9648 | hardcode_shlibpath_var_CXX=no |
| 9649 | fi |
| 9650 | # Workaround some broken pre-1.5 toolchains |
| 9651 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 9652 | ;; |
| 9653 | osf3*) |
| 9654 | case $cc_basename in |
| 9655 | KCC) |
| 9656 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 9657 | |
| 9658 | # KCC will only create a shared library if the output file |
| 9659 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 9660 | # to its proper name (with version) after linking. |
| 9661 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 9662 | |
| 9663 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 9664 | hardcode_libdir_separator_CXX=: |
| 9665 | |
| 9666 | # Archives containing C++ object files must be created using |
| 9667 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 9668 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 9669 | |
| 9670 | ;; |
| 9671 | RCC) |
| 9672 | # Rational C++ 2.4.1 |
| 9673 | # FIXME: insert proper C++ library support |
| 9674 | ld_shlibs_CXX=no |
| 9675 | ;; |
| 9676 | cxx) |
| 9677 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 9678 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
| 9679 | |
| 9680 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 9681 | hardcode_libdir_separator_CXX=: |
| 9682 | |
| 9683 | # Commands to make compiler produce verbose output that lists |
| 9684 | # what "hidden" libraries, object files and flags are used when |
| 9685 | # linking a shared library. |
| 9686 | # |
| 9687 | # There doesn't appear to be a way to prevent this compiler from |
| 9688 | # explicitly linking system object files so we need to strip them |
| 9689 | # from the output so that they don't get included in the library |
| 9690 | # dependencies. |
| 9691 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 9692 | ;; |
| 9693 | *) |
| 9694 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 9695 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 9696 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
| 9697 | |
| 9698 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 9699 | hardcode_libdir_separator_CXX=: |
| 9700 | |
| 9701 | # Commands to make compiler produce verbose output that lists |
| 9702 | # what "hidden" libraries, object files and flags are used when |
| 9703 | # linking a shared library. |
| 9704 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 9705 | |
| 9706 | else |
| 9707 | # FIXME: insert proper C++ library support |
| 9708 | ld_shlibs_CXX=no |
| 9709 | fi |
| 9710 | ;; |
| 9711 | esac |
| 9712 | ;; |
| 9713 | osf4* | osf5*) |
| 9714 | case $cc_basename in |
| 9715 | KCC) |
| 9716 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 9717 | |
| 9718 | # KCC will only create a shared library if the output file |
| 9719 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 9720 | # to its proper name (with version) after linking. |
| 9721 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 9722 | |
| 9723 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 9724 | hardcode_libdir_separator_CXX=: |
| 9725 | |
| 9726 | # Archives containing C++ object files must be created using |
| 9727 | # the KAI C++ compiler. |
| 9728 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 9729 | ;; |
| 9730 | RCC) |
| 9731 | # Rational C++ 2.4.1 |
| 9732 | # FIXME: insert proper C++ library support |
| 9733 | ld_shlibs_CXX=no |
| 9734 | ;; |
| 9735 | cxx) |
| 9736 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 9737 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
| 9738 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 9739 | echo "-hidden">> $lib.exp~ |
| 9740 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ |
| 9741 | $rm $lib.exp' |
| 9742 | |
| 9743 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 9744 | hardcode_libdir_separator_CXX=: |
| 9745 | |
| 9746 | # Commands to make compiler produce verbose output that lists |
| 9747 | # what "hidden" libraries, object files and flags are used when |
| 9748 | # linking a shared library. |
| 9749 | # |
| 9750 | # There doesn't appear to be a way to prevent this compiler from |
| 9751 | # explicitly linking system object files so we need to strip them |
| 9752 | # from the output so that they don't get included in the library |
| 9753 | # dependencies. |
| 9754 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 9755 | ;; |
| 9756 | *) |
| 9757 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 9758 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 9759 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
| 9760 | |
| 9761 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 9762 | hardcode_libdir_separator_CXX=: |
| 9763 | |
| 9764 | # Commands to make compiler produce verbose output that lists |
| 9765 | # what "hidden" libraries, object files and flags are used when |
| 9766 | # linking a shared library. |
| 9767 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 9768 | |
| 9769 | else |
| 9770 | # FIXME: insert proper C++ library support |
| 9771 | ld_shlibs_CXX=no |
| 9772 | fi |
| 9773 | ;; |
| 9774 | esac |
| 9775 | ;; |
| 9776 | psos*) |
| 9777 | # FIXME: insert proper C++ library support |
| 9778 | ld_shlibs_CXX=no |
| 9779 | ;; |
| 9780 | sco*) |
| 9781 | archive_cmds_need_lc_CXX=no |
| 9782 | case $cc_basename in |
| 9783 | CC) |
| 9784 | # FIXME: insert proper C++ library support |
| 9785 | ld_shlibs_CXX=no |
| 9786 | ;; |
| 9787 | *) |
| 9788 | # FIXME: insert proper C++ library support |
| 9789 | ld_shlibs_CXX=no |
| 9790 | ;; |
| 9791 | esac |
| 9792 | ;; |
| 9793 | sunos4*) |
| 9794 | case $cc_basename in |
| 9795 | CC) |
| 9796 | # Sun C++ 4.x |
| 9797 | # FIXME: insert proper C++ library support |
| 9798 | ld_shlibs_CXX=no |
| 9799 | ;; |
| 9800 | lcc) |
| 9801 | # Lucid |
| 9802 | # FIXME: insert proper C++ library support |
| 9803 | ld_shlibs_CXX=no |
| 9804 | ;; |
| 9805 | *) |
| 9806 | # FIXME: insert proper C++ library support |
| 9807 | ld_shlibs_CXX=no |
| 9808 | ;; |
| 9809 | esac |
| 9810 | ;; |
| 9811 | solaris*) |
| 9812 | case $cc_basename in |
| 9813 | CC) |
| 9814 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 9815 | no_undefined_flag_CXX=' -zdefs' |
| 9816 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 9817 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 9818 | $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 9819 | |
| 9820 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 9821 | hardcode_shlibpath_var_CXX=no |
| 9822 | case $host_os in |
| 9823 | solaris2.0-5 | solaris2.0-5.*) ;; |
| 9824 | *) |
| 9825 | # The C++ compiler is used as linker so we must use $wl |
| 9826 | # flag to pass the commands to the underlying system |
| 9827 | # linker. |
| 9828 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 9829 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 9830 | ;; |
| 9831 | esac |
| 9832 | link_all_deplibs_CXX=yes |
| 9833 | |
| 9834 | # Commands to make compiler produce verbose output that lists |
| 9835 | # what "hidden" libraries, object files and flags are used when |
| 9836 | # linking a shared library. |
| 9837 | # |
| 9838 | # There doesn't appear to be a way to prevent this compiler from |
| 9839 | # explicitly linking system object files so we need to strip them |
| 9840 | # from the output so that they don't get included in the library |
| 9841 | # dependencies. |
| 9842 | output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 9843 | |
| 9844 | # Archives containing C++ object files must be created using |
| 9845 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 9846 | # necessary to make sure instantiated templates are included |
| 9847 | # in the archive. |
| 9848 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 9849 | ;; |
| 9850 | gcx) |
| 9851 | # Green Hills C++ Compiler |
| 9852 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 9853 | |
| 9854 | # The C++ compiler must be used to create the archive. |
| 9855 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 9856 | ;; |
| 9857 | *) |
| 9858 | # GNU C++ compiler with Solaris linker |
| 9859 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 9860 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 9861 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
| 9862 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 9863 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 9864 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 9865 | |
| 9866 | # Commands to make compiler produce verbose output that lists |
| 9867 | # what "hidden" libraries, object files and flags are used when |
| 9868 | # linking a shared library. |
| 9869 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 9870 | else |
| 9871 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 9872 | # platform. |
| 9873 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 9874 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 9875 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 9876 | |
| 9877 | # Commands to make compiler produce verbose output that lists |
| 9878 | # what "hidden" libraries, object files and flags are used when |
| 9879 | # linking a shared library. |
| 9880 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 9881 | fi |
| 9882 | |
| 9883 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 9884 | fi |
| 9885 | ;; |
| 9886 | esac |
| 9887 | ;; |
| 9888 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 9889 | archive_cmds_need_lc_CXX=no |
| 9890 | ;; |
| 9891 | tandem*) |
| 9892 | case $cc_basename in |
| 9893 | NCC) |
| 9894 | # NonStop-UX NCC 3.20 |
| 9895 | # FIXME: insert proper C++ library support |
| 9896 | ld_shlibs_CXX=no |
| 9897 | ;; |
| 9898 | *) |
| 9899 | # FIXME: insert proper C++ library support |
| 9900 | ld_shlibs_CXX=no |
| 9901 | ;; |
| 9902 | esac |
| 9903 | ;; |
| 9904 | vxworks*) |
| 9905 | # FIXME: insert proper C++ library support |
| 9906 | ld_shlibs_CXX=no |
| 9907 | ;; |
| 9908 | *) |
| 9909 | # FIXME: insert proper C++ library support |
| 9910 | ld_shlibs_CXX=no |
| 9911 | ;; |
| 9912 | esac |
| 9913 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 9914 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| 9915 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 9916 | |
| 9917 | GCC_CXX="$GXX" |
| 9918 | LD_CXX="$LD" |
| 9919 | |
| 9920 | |
| 9921 | cat > conftest.$ac_ext <<EOF |
| 9922 | class Foo |
| 9923 | { |
| 9924 | public: |
| 9925 | Foo (void) { a = 0; } |
| 9926 | private: |
| 9927 | int a; |
| 9928 | }; |
| 9929 | EOF |
| 9930 | |
| 9931 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9932 | (eval $ac_compile) 2>&5 |
| 9933 | ac_status=$? |
| 9934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9935 | (exit $ac_status); }; then |
| 9936 | # Parse the compiler output and extract the necessary |
| 9937 | # objects, libraries and library flags. |
| 9938 | |
| 9939 | # Sentinel used to keep track of whether or not we are before |
| 9940 | # the conftest object file. |
| 9941 | pre_test_object_deps_done=no |
| 9942 | |
| 9943 | # The `*' in the case matches for architectures that use `case' in |
| 9944 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 9945 | # eval without this substitution. |
| 9946 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
| 9947 | |
| 9948 | for p in `eval $output_verbose_link_cmd`; do |
| 9949 | case $p in |
| 9950 | |
| 9951 | -L* | -R* | -l*) |
| 9952 | # Some compilers place space between "-{L,R}" and the path. |
| 9953 | # Remove the space. |
| 9954 | if test $p = "-L" \ |
| 9955 | || test $p = "-R"; then |
| 9956 | prev=$p |
| 9957 | continue |
| 9958 | else |
| 9959 | prev= |
| 9960 | fi |
| 9961 | |
| 9962 | if test "$pre_test_object_deps_done" = no; then |
| 9963 | case $p in |
| 9964 | -L* | -R*) |
| 9965 | # Internal compiler library paths should come after those |
| 9966 | # provided the user. The postdeps already come after the |
| 9967 | # user supplied libs so there is no need to process them. |
| 9968 | if test -z "$compiler_lib_search_path_CXX"; then |
| 9969 | compiler_lib_search_path_CXX="${prev}${p}" |
| 9970 | else |
| 9971 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 9972 | fi |
| 9973 | ;; |
| 9974 | # The "-l" case would never come before the object being |
| 9975 | # linked, so don't bother handling this case. |
| 9976 | esac |
| 9977 | else |
| 9978 | if test -z "$postdeps_CXX"; then |
| 9979 | postdeps_CXX="${prev}${p}" |
| 9980 | else |
| 9981 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 9982 | fi |
| 9983 | fi |
| 9984 | ;; |
| 9985 | |
| 9986 | *.$objext) |
| 9987 | # This assumes that the test object file only shows up |
| 9988 | # once in the compiler output. |
| 9989 | if test "$p" = "conftest.$objext"; then |
| 9990 | pre_test_object_deps_done=yes |
| 9991 | continue |
| 9992 | fi |
| 9993 | |
| 9994 | if test "$pre_test_object_deps_done" = no; then |
| 9995 | if test -z "$predep_objects_CXX"; then |
| 9996 | predep_objects_CXX="$p" |
| 9997 | else |
| 9998 | predep_objects_CXX="$predep_objects_CXX $p" |
| 9999 | fi |
| 10000 | else |
| 10001 | if test -z "$postdep_objects_CXX"; then |
| 10002 | postdep_objects_CXX="$p" |
| 10003 | else |
| 10004 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 10005 | fi |
| 10006 | fi |
| 10007 | ;; |
| 10008 | |
| 10009 | *) ;; # Ignore the rest. |
| 10010 | |
| 10011 | esac |
| 10012 | done |
| 10013 | |
| 10014 | # Clean up. |
| 10015 | rm -f a.out a.exe |
| 10016 | else |
| 10017 | echo "libtool.m4: error: problem compiling CXX test program" |
| 10018 | fi |
| 10019 | |
| 10020 | $rm -f confest.$objext |
| 10021 | |
| 10022 | case " $postdeps_CXX " in |
| 10023 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 10024 | esac |
| 10025 | |
| 10026 | lt_prog_compiler_wl_CXX= |
| 10027 | lt_prog_compiler_pic_CXX= |
| 10028 | lt_prog_compiler_static_CXX= |
| 10029 | |
| 10030 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 10031 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 10032 | |
| 10033 | # C++ specific cases for pic, static, wl, etc. |
| 10034 | if test "$GXX" = yes; then |
| 10035 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10036 | lt_prog_compiler_static_CXX='-static' |
| 10037 | |
| 10038 | case $host_os in |
| 10039 | aix*) |
| 10040 | # All AIX code is PIC. |
| 10041 | if test "$host_cpu" = ia64; then |
| 10042 | # AIX 5 now supports IA64 processor |
| 10043 | lt_prog_compiler_static_CXX='-Bstatic' |
| 10044 | fi |
| 10045 | ;; |
| 10046 | amigaos*) |
| 10047 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 10048 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 10049 | # like `-m68040'. |
| 10050 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 10051 | ;; |
| 10052 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 10053 | # PIC is the default for these OSes. |
| 10054 | ;; |
| 10055 | mingw* | os2* | pw32*) |
| 10056 | # This hack is so that the source file can tell whether it is being |
| 10057 | # built for inclusion in a dll (and should export symbols for example). |
| 10058 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 10059 | ;; |
| 10060 | darwin* | rhapsody*) |
| 10061 | # PIC is the default on this platform |
| 10062 | # Common symbols not allowed in MH_DYLIB files |
| 10063 | lt_prog_compiler_pic_CXX='-fno-common' |
| 10064 | ;; |
| 10065 | *djgpp*) |
| 10066 | # DJGPP does not support shared libraries at all |
| 10067 | lt_prog_compiler_pic_CXX= |
| 10068 | ;; |
| 10069 | sysv4*MP*) |
| 10070 | if test -d /usr/nec; then |
| 10071 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 10072 | fi |
| 10073 | ;; |
| 10074 | hpux*) |
| 10075 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 10076 | # not for PA HP-UX. |
| 10077 | case "$host_cpu" in |
| 10078 | hppa*64*|ia64*) |
| 10079 | ;; |
| 10080 | *) |
| 10081 | lt_prog_compiler_pic_CXX='-fPIC' |
| 10082 | ;; |
| 10083 | esac |
| 10084 | ;; |
| 10085 | *) |
| 10086 | lt_prog_compiler_pic_CXX='-fPIC' |
| 10087 | ;; |
| 10088 | esac |
| 10089 | else |
| 10090 | case $host_os in |
| 10091 | aix4* | aix5*) |
| 10092 | # All AIX code is PIC. |
| 10093 | if test "$host_cpu" = ia64; then |
| 10094 | # AIX 5 now supports IA64 processor |
| 10095 | lt_prog_compiler_static_CXX='-Bstatic' |
| 10096 | else |
| 10097 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 10098 | fi |
| 10099 | ;; |
| 10100 | chorus*) |
| 10101 | case $cc_basename in |
| 10102 | cxch68) |
| 10103 | # Green Hills C++ Compiler |
| 10104 | # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" |
| 10105 | ;; |
| 10106 | esac |
| 10107 | ;; |
| 10108 | dgux*) |
| 10109 | case $cc_basename in |
| 10110 | ec++) |
| 10111 | lt_prog_compiler_pic_CXX='-KPIC' |
| 10112 | ;; |
| 10113 | ghcx) |
| 10114 | # Green Hills C++ Compiler |
| 10115 | lt_prog_compiler_pic_CXX='-pic' |
| 10116 | ;; |
| 10117 | *) |
| 10118 | ;; |
| 10119 | esac |
| 10120 | ;; |
| 10121 | freebsd* | kfreebsd*-gnu) |
| 10122 | # FreeBSD uses GNU C++ |
| 10123 | ;; |
| 10124 | hpux9* | hpux10* | hpux11*) |
| 10125 | case $cc_basename in |
| 10126 | CC) |
| 10127 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10128 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 10129 | if test "$host_cpu" != ia64; then |
| 10130 | lt_prog_compiler_pic_CXX='+Z' |
| 10131 | fi |
| 10132 | ;; |
| 10133 | aCC) |
| 10134 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10135 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 10136 | case "$host_cpu" in |
| 10137 | hppa*64*|ia64*) |
| 10138 | # +Z the default |
| 10139 | ;; |
| 10140 | *) |
| 10141 | lt_prog_compiler_pic_CXX='+Z' |
| 10142 | ;; |
| 10143 | esac |
| 10144 | ;; |
| 10145 | *) |
| 10146 | ;; |
| 10147 | esac |
| 10148 | ;; |
| 10149 | irix5* | irix6* | nonstopux*) |
| 10150 | case $cc_basename in |
| 10151 | CC) |
| 10152 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10153 | lt_prog_compiler_static_CXX='-non_shared' |
| 10154 | # CC pic flag -KPIC is the default. |
| 10155 | ;; |
| 10156 | *) |
| 10157 | ;; |
| 10158 | esac |
| 10159 | ;; |
| 10160 | linux*) |
| 10161 | case $cc_basename in |
| 10162 | KCC) |
| 10163 | # KAI C++ Compiler |
| 10164 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 10165 | lt_prog_compiler_pic_CXX='-fPIC' |
| 10166 | ;; |
| 10167 | icpc) |
| 10168 | # Intel C++ |
| 10169 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10170 | lt_prog_compiler_pic_CXX='-KPIC' |
| 10171 | lt_prog_compiler_static_CXX='-static' |
| 10172 | ;; |
| 10173 | cxx) |
| 10174 | # Compaq C++ |
| 10175 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 10176 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 10177 | lt_prog_compiler_pic_CXX= |
| 10178 | lt_prog_compiler_static_CXX='-non_shared' |
| 10179 | ;; |
| 10180 | *) |
| 10181 | ;; |
| 10182 | esac |
| 10183 | ;; |
| 10184 | lynxos*) |
| 10185 | ;; |
| 10186 | m88k*) |
| 10187 | ;; |
| 10188 | mvs*) |
| 10189 | case $cc_basename in |
| 10190 | cxx) |
| 10191 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 10192 | ;; |
| 10193 | *) |
| 10194 | ;; |
| 10195 | esac |
| 10196 | ;; |
| 10197 | netbsd* | knetbsd*-gnu) |
| 10198 | ;; |
| 10199 | osf3* | osf4* | osf5*) |
| 10200 | case $cc_basename in |
| 10201 | KCC) |
| 10202 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 10203 | ;; |
| 10204 | RCC) |
| 10205 | # Rational C++ 2.4.1 |
| 10206 | lt_prog_compiler_pic_CXX='-pic' |
| 10207 | ;; |
| 10208 | cxx) |
| 10209 | # Digital/Compaq C++ |
| 10210 | lt_prog_compiler_wl_CXX='-Wl,' |
| 10211 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 10212 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 10213 | lt_prog_compiler_pic_CXX= |
| 10214 | lt_prog_compiler_static_CXX='-non_shared' |
| 10215 | ;; |
| 10216 | *) |
| 10217 | ;; |
| 10218 | esac |
| 10219 | ;; |
| 10220 | psos*) |
| 10221 | ;; |
| 10222 | sco*) |
| 10223 | case $cc_basename in |
| 10224 | CC) |
| 10225 | lt_prog_compiler_pic_CXX='-fPIC' |
| 10226 | ;; |
| 10227 | *) |
| 10228 | ;; |
| 10229 | esac |
| 10230 | ;; |
| 10231 | solaris*) |
| 10232 | case $cc_basename in |
| 10233 | CC) |
| 10234 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 10235 | lt_prog_compiler_pic_CXX='-KPIC' |
| 10236 | lt_prog_compiler_static_CXX='-Bstatic' |
| 10237 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 10238 | ;; |
| 10239 | gcx) |
| 10240 | # Green Hills C++ Compiler |
| 10241 | lt_prog_compiler_pic_CXX='-PIC' |
| 10242 | ;; |
| 10243 | *) |
| 10244 | ;; |
| 10245 | esac |
| 10246 | ;; |
| 10247 | sunos4*) |
| 10248 | case $cc_basename in |
| 10249 | CC) |
| 10250 | # Sun C++ 4.x |
| 10251 | lt_prog_compiler_pic_CXX='-pic' |
| 10252 | lt_prog_compiler_static_CXX='-Bstatic' |
| 10253 | ;; |
| 10254 | lcc) |
| 10255 | # Lucid |
| 10256 | lt_prog_compiler_pic_CXX='-pic' |
| 10257 | ;; |
| 10258 | *) |
| 10259 | ;; |
| 10260 | esac |
| 10261 | ;; |
| 10262 | tandem*) |
| 10263 | case $cc_basename in |
| 10264 | NCC) |
| 10265 | # NonStop-UX NCC 3.20 |
| 10266 | lt_prog_compiler_pic_CXX='-KPIC' |
| 10267 | ;; |
| 10268 | *) |
| 10269 | ;; |
| 10270 | esac |
| 10271 | ;; |
| 10272 | unixware*) |
| 10273 | ;; |
| 10274 | vxworks*) |
| 10275 | ;; |
| 10276 | *) |
| 10277 | lt_prog_compiler_can_build_shared_CXX=no |
| 10278 | ;; |
| 10279 | esac |
| 10280 | fi |
| 10281 | |
| 10282 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 10283 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
| 10284 | |
| 10285 | # |
| 10286 | # Check to make sure the PIC flag actually works. |
| 10287 | # |
| 10288 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| 10289 | |
| 10290 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 10291 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
| 10292 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 10293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10294 | else |
| 10295 | lt_prog_compiler_pic_works_CXX=no |
| 10296 | ac_outfile=conftest.$ac_objext |
| 10297 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10298 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 10299 | # Insert the option either (1) after the last *FLAGS variable, or |
| 10300 | # (2) before a word containing "conftest.", or (3) at the end. |
| 10301 | # Note that $ac_compile itself does not contain backslashes and begins |
| 10302 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 10303 | # The option is referenced via a variable to avoid confusing sed. |
| 10304 | lt_compile=`echo "$ac_compile" | $SED \ |
| 10305 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 10306 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 10307 | -e 's:$: $lt_compiler_flag:'` |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10308 | (eval echo "\"\$as_me:10308: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10309 | (eval "$lt_compile" 2>conftest.err) |
| 10310 | ac_status=$? |
| 10311 | cat conftest.err >&5 |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10312 | echo "$as_me:10312: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10313 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 10314 | # The compiler can only warn and ignore the option if not recognized |
| 10315 | # So say no if there are warnings |
| 10316 | if test ! -s conftest.err; then |
| 10317 | lt_prog_compiler_pic_works_CXX=yes |
| 10318 | fi |
| 10319 | fi |
| 10320 | $rm conftest* |
| 10321 | |
| 10322 | fi |
| 10323 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 10324 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
| 10325 | |
| 10326 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 10327 | case $lt_prog_compiler_pic_CXX in |
| 10328 | "" | " "*) ;; |
| 10329 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 10330 | esac |
| 10331 | else |
| 10332 | lt_prog_compiler_pic_CXX= |
| 10333 | lt_prog_compiler_can_build_shared_CXX=no |
| 10334 | fi |
| 10335 | |
| 10336 | fi |
| 10337 | case "$host_os" in |
| 10338 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 10339 | *djgpp*) |
| 10340 | lt_prog_compiler_pic_CXX= |
| 10341 | ;; |
| 10342 | *) |
| 10343 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 10344 | ;; |
| 10345 | esac |
| 10346 | |
| 10347 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 10348 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 10349 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 10350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10351 | else |
| 10352 | lt_cv_prog_compiler_c_o_CXX=no |
| 10353 | $rm -r conftest 2>/dev/null |
| 10354 | mkdir conftest |
| 10355 | cd conftest |
| 10356 | mkdir out |
| 10357 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10358 | |
| 10359 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 10360 | # Insert the option either (1) after the last *FLAGS variable, or |
| 10361 | # (2) before a word containing "conftest.", or (3) at the end. |
| 10362 | # Note that $ac_compile itself does not contain backslashes and begins |
| 10363 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 10364 | lt_compile=`echo "$ac_compile" | $SED \ |
| 10365 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 10366 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 10367 | -e 's:$: $lt_compiler_flag:'` |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10368 | (eval echo "\"\$as_me:10368: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10369 | (eval "$lt_compile" 2>out/conftest.err) |
| 10370 | ac_status=$? |
| 10371 | cat out/conftest.err >&5 |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10372 | echo "$as_me:10372: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10373 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 10374 | then |
| 10375 | # The compiler can only warn and ignore the option if not recognized |
| 10376 | # So say no if there are warnings |
| 10377 | if test ! -s out/conftest.err; then |
| 10378 | lt_cv_prog_compiler_c_o_CXX=yes |
| 10379 | fi |
| 10380 | fi |
| 10381 | chmod u+w . |
| 10382 | $rm conftest* |
| 10383 | # SGI C++ compiler will create directory out/ii_files/ for |
| 10384 | # template instantiation |
| 10385 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 10386 | $rm out/* && rmdir out |
| 10387 | cd .. |
| 10388 | rmdir conftest |
| 10389 | $rm conftest* |
| 10390 | |
| 10391 | fi |
| 10392 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 10393 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
| 10394 | |
| 10395 | |
| 10396 | hard_links="nottested" |
| 10397 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 10398 | # do not overwrite the value of need_locks provided by the user |
| 10399 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 10400 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 10401 | hard_links=yes |
| 10402 | $rm conftest* |
| 10403 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 10404 | touch conftest.a |
| 10405 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 10406 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 10407 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 10408 | echo "${ECHO_T}$hard_links" >&6 |
| 10409 | if test "$hard_links" = no; then |
| 10410 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 10411 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 10412 | need_locks=warn |
| 10413 | fi |
| 10414 | else |
| 10415 | need_locks=no |
| 10416 | fi |
| 10417 | |
| 10418 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 10419 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 10420 | |
| 10421 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 10422 | case $host_os in |
| 10423 | aix4* | aix5*) |
| 10424 | # If we're using GNU nm, then we don't want the "-C" option. |
| 10425 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 10426 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 10427 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 10428 | else |
| 10429 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 10430 | fi |
| 10431 | ;; |
| 10432 | pw32*) |
| 10433 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 10434 | ;; |
| 10435 | cygwin* | mingw*) |
| 10436 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 10437 | ;; |
| 10438 | *) |
| 10439 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 10440 | ;; |
| 10441 | esac |
| 10442 | |
| 10443 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 10444 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| 10445 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 10446 | |
| 10447 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 10448 | if test "$GCC" = yes; then |
| 10449 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 10450 | fi |
| 10451 | |
| 10452 | # |
| 10453 | # Do we need to explicitly link libc? |
| 10454 | # |
| 10455 | case "x$archive_cmds_need_lc_CXX" in |
| 10456 | x|xyes) |
| 10457 | # Assume -lc should be added |
| 10458 | archive_cmds_need_lc_CXX=yes |
| 10459 | |
| 10460 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 10461 | case $archive_cmds_CXX in |
| 10462 | *'~'*) |
| 10463 | # FIXME: we may have to deal with multi-command sequences. |
| 10464 | ;; |
| 10465 | '$CC '*) |
| 10466 | # Test whether the compiler implicitly links with -lc since on some |
| 10467 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 10468 | # to ld, don't add -lc before -lgcc. |
| 10469 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 10470 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 10471 | $rm conftest* |
| 10472 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10473 | |
| 10474 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10475 | (eval $ac_compile) 2>&5 |
| 10476 | ac_status=$? |
| 10477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10478 | (exit $ac_status); } 2>conftest.err; then |
| 10479 | soname=conftest |
| 10480 | lib=conftest |
| 10481 | libobjs=conftest.$ac_objext |
| 10482 | deplibs= |
| 10483 | wl=$lt_prog_compiler_wl_CXX |
| 10484 | compiler_flags=-v |
| 10485 | linker_flags=-v |
| 10486 | verstring= |
| 10487 | output_objdir=. |
| 10488 | libname=conftest |
| 10489 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 10490 | allow_undefined_flag_CXX= |
| 10491 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 10492 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 10493 | ac_status=$? |
| 10494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10495 | (exit $ac_status); } |
| 10496 | then |
| 10497 | archive_cmds_need_lc_CXX=no |
| 10498 | else |
| 10499 | archive_cmds_need_lc_CXX=yes |
| 10500 | fi |
| 10501 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 10502 | else |
| 10503 | cat conftest.err 1>&5 |
| 10504 | fi |
| 10505 | $rm conftest* |
| 10506 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 10507 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
| 10508 | ;; |
| 10509 | esac |
| 10510 | fi |
| 10511 | ;; |
| 10512 | esac |
| 10513 | |
| 10514 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 10515 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 10516 | library_names_spec= |
| 10517 | libname_spec='lib$name' |
| 10518 | soname_spec= |
| 10519 | shrext=".so" |
| 10520 | postinstall_cmds= |
| 10521 | postuninstall_cmds= |
| 10522 | finish_cmds= |
| 10523 | finish_eval= |
| 10524 | shlibpath_var= |
| 10525 | shlibpath_overrides_runpath=unknown |
| 10526 | version_type=none |
| 10527 | dynamic_linker="$host_os ld.so" |
| 10528 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 10529 | if test "$GCC" = yes; then |
| 10530 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 10531 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 10532 | # if the path contains ";" then we assume it to be the separator |
| 10533 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 10534 | # assumed that no part of a normal pathname contains ";" but that should |
| 10535 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 10536 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 10537 | else |
| 10538 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 10539 | fi |
| 10540 | else |
| 10541 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 10542 | fi |
| 10543 | need_lib_prefix=unknown |
| 10544 | hardcode_into_libs=no |
| 10545 | |
| 10546 | # when you set need_version to no, make sure it does not cause -set_version |
| 10547 | # flags to be left without arguments |
| 10548 | need_version=unknown |
| 10549 | |
| 10550 | case $host_os in |
| 10551 | aix3*) |
| 10552 | version_type=linux |
| 10553 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 10554 | shlibpath_var=LIBPATH |
| 10555 | |
| 10556 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 10557 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10558 | ;; |
| 10559 | |
| 10560 | aix4* | aix5*) |
| 10561 | version_type=linux |
| 10562 | need_lib_prefix=no |
| 10563 | need_version=no |
| 10564 | hardcode_into_libs=yes |
| 10565 | if test "$host_cpu" = ia64; then |
| 10566 | # AIX 5 supports IA64 |
| 10567 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 10568 | shlibpath_var=LD_LIBRARY_PATH |
| 10569 | else |
| 10570 | # With GCC up to 2.95.x, collect2 would create an import file |
| 10571 | # for dependence libraries. The import file would start with |
| 10572 | # the line `#! .'. This would cause the generated library to |
| 10573 | # depend on `.', always an invalid library. This was fixed in |
| 10574 | # development snapshots of GCC prior to 3.0. |
| 10575 | case $host_os in |
| 10576 | aix4 | aix4.[01] | aix4.[01].*) |
| 10577 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 10578 | echo ' yes ' |
| 10579 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 10580 | : |
| 10581 | else |
| 10582 | can_build_shared=no |
| 10583 | fi |
| 10584 | ;; |
| 10585 | esac |
| 10586 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 10587 | # soname into executable. Probably we can add versioning support to |
| 10588 | # collect2, so additional links can be useful in future. |
| 10589 | if test "$aix_use_runtimelinking" = yes; then |
| 10590 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 10591 | # instead of lib<name>.a to let people know that these are not |
| 10592 | # typical AIX shared libraries. |
| 10593 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10594 | else |
| 10595 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 10596 | # and later when we are not doing run time linking. |
| 10597 | library_names_spec='${libname}${release}.a $libname.a' |
| 10598 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10599 | fi |
| 10600 | shlibpath_var=LIBPATH |
| 10601 | fi |
| 10602 | ;; |
| 10603 | |
| 10604 | amigaos*) |
| 10605 | library_names_spec='$libname.ixlibrary $libname.a' |
| 10606 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 10607 | 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' |
| 10608 | ;; |
| 10609 | |
| 10610 | beos*) |
| 10611 | library_names_spec='${libname}${shared_ext}' |
| 10612 | dynamic_linker="$host_os ld.so" |
| 10613 | shlibpath_var=LIBRARY_PATH |
| 10614 | ;; |
| 10615 | |
| 10616 | bsdi4*) |
| 10617 | version_type=linux |
| 10618 | need_version=no |
| 10619 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10620 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10621 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 10622 | shlibpath_var=LD_LIBRARY_PATH |
| 10623 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 10624 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 10625 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 10626 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 10627 | # libtool to hard-code these into programs |
| 10628 | ;; |
| 10629 | |
| 10630 | cygwin* | mingw* | pw32*) |
| 10631 | version_type=windows |
| 10632 | shrext=".dll" |
| 10633 | need_version=no |
| 10634 | need_lib_prefix=no |
| 10635 | |
| 10636 | case $GCC,$host_os in |
| 10637 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 10638 | library_names_spec='$libname.dll.a' |
| 10639 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 10640 | postinstall_cmds='base_file=`basename \${file}`~ |
| 10641 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 10642 | dldir=$destdir/`dirname \$dlpath`~ |
| 10643 | test -d \$dldir || mkdir -p \$dldir~ |
| 10644 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 10645 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 10646 | dlpath=$dir/\$dldll~ |
| 10647 | $rm \$dlpath' |
| 10648 | shlibpath_overrides_runpath=yes |
| 10649 | |
| 10650 | case $host_os in |
| 10651 | cygwin*) |
| 10652 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 10653 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10654 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 10655 | ;; |
| 10656 | mingw*) |
| 10657 | # MinGW DLLs use traditional 'lib' prefix |
| 10658 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10659 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 10660 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 10661 | # It is most probably a Windows format PATH printed by |
| 10662 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 10663 | # path with ; separators, and with drive letters. We can handle the |
| 10664 | # drive letters (cygwin fileutils understands them), so leave them, |
| 10665 | # especially as we might pass files found there to a mingw objdump, |
| 10666 | # which wouldn't understand a cygwinified path. Ahh. |
| 10667 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 10668 | else |
| 10669 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 10670 | fi |
| 10671 | ;; |
| 10672 | pw32*) |
| 10673 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 10674 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 10675 | ;; |
| 10676 | esac |
| 10677 | ;; |
| 10678 | |
| 10679 | *) |
| 10680 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 10681 | ;; |
| 10682 | esac |
| 10683 | dynamic_linker='Win32 ld.exe' |
| 10684 | # FIXME: first we should search . and the directory the executable is in |
| 10685 | shlibpath_var=PATH |
| 10686 | ;; |
| 10687 | |
| 10688 | darwin* | rhapsody*) |
| 10689 | dynamic_linker="$host_os dyld" |
| 10690 | version_type=darwin |
| 10691 | need_lib_prefix=no |
| 10692 | need_version=no |
| 10693 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 10694 | soname_spec='${libname}${release}${major}$shared_ext' |
| 10695 | shlibpath_overrides_runpath=yes |
| 10696 | shlibpath_var=DYLD_LIBRARY_PATH |
| 10697 | shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
| 10698 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 10699 | if test "$GCC" = yes; then |
| 10700 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
| 10701 | else |
| 10702 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 10703 | fi |
| 10704 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 10705 | ;; |
| 10706 | |
| 10707 | dgux*) |
| 10708 | version_type=linux |
| 10709 | need_lib_prefix=no |
| 10710 | need_version=no |
| 10711 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 10712 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10713 | shlibpath_var=LD_LIBRARY_PATH |
| 10714 | ;; |
| 10715 | |
| 10716 | freebsd1*) |
| 10717 | dynamic_linker=no |
| 10718 | ;; |
| 10719 | |
| 10720 | kfreebsd*-gnu) |
| 10721 | version_type=linux |
| 10722 | need_lib_prefix=no |
| 10723 | need_version=no |
| 10724 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10725 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10726 | shlibpath_var=LD_LIBRARY_PATH |
| 10727 | shlibpath_overrides_runpath=no |
| 10728 | hardcode_into_libs=yes |
| 10729 | dynamic_linker='GNU ld.so' |
| 10730 | ;; |
| 10731 | |
| 10732 | freebsd*) |
| 10733 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 10734 | version_type=freebsd-$objformat |
| 10735 | case $version_type in |
| 10736 | freebsd-elf*) |
| 10737 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10738 | need_version=no |
| 10739 | need_lib_prefix=no |
| 10740 | ;; |
| 10741 | freebsd-*) |
| 10742 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 10743 | need_version=yes |
| 10744 | ;; |
| 10745 | esac |
| 10746 | shlibpath_var=LD_LIBRARY_PATH |
| 10747 | case $host_os in |
| 10748 | freebsd2*) |
| 10749 | shlibpath_overrides_runpath=yes |
| 10750 | ;; |
| 10751 | freebsd3.01* | freebsdelf3.01*) |
| 10752 | shlibpath_overrides_runpath=yes |
| 10753 | hardcode_into_libs=yes |
| 10754 | ;; |
| 10755 | *) # from 3.2 on |
| 10756 | shlibpath_overrides_runpath=no |
| 10757 | hardcode_into_libs=yes |
| 10758 | ;; |
| 10759 | esac |
| 10760 | ;; |
| 10761 | |
| 10762 | gnu*) |
| 10763 | version_type=linux |
| 10764 | need_lib_prefix=no |
| 10765 | need_version=no |
| 10766 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 10767 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10768 | shlibpath_var=LD_LIBRARY_PATH |
| 10769 | hardcode_into_libs=yes |
| 10770 | ;; |
| 10771 | |
| 10772 | hpux9* | hpux10* | hpux11*) |
| 10773 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 10774 | # link against other versions. |
| 10775 | version_type=sunos |
| 10776 | need_lib_prefix=no |
| 10777 | need_version=no |
| 10778 | case "$host_cpu" in |
| 10779 | ia64*) |
| 10780 | shrext='.so' |
| 10781 | hardcode_into_libs=yes |
| 10782 | dynamic_linker="$host_os dld.so" |
| 10783 | shlibpath_var=LD_LIBRARY_PATH |
| 10784 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10785 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10786 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10787 | if test "X$HPUX_IA64_MODE" = X32; then |
| 10788 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 10789 | else |
| 10790 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 10791 | fi |
| 10792 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10793 | ;; |
| 10794 | hppa*64*) |
| 10795 | shrext='.sl' |
| 10796 | hardcode_into_libs=yes |
| 10797 | dynamic_linker="$host_os dld.sl" |
| 10798 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 10799 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10800 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10801 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10802 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 10803 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10804 | ;; |
| 10805 | *) |
| 10806 | shrext='.sl' |
| 10807 | dynamic_linker="$host_os dld.sl" |
| 10808 | shlibpath_var=SHLIB_PATH |
| 10809 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 10810 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10811 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10812 | ;; |
| 10813 | esac |
| 10814 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 10815 | postinstall_cmds='chmod 555 $lib' |
| 10816 | ;; |
| 10817 | |
| 10818 | irix5* | irix6* | nonstopux*) |
| 10819 | case $host_os in |
| 10820 | nonstopux*) version_type=nonstopux ;; |
| 10821 | *) |
| 10822 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 10823 | version_type=linux |
| 10824 | else |
| 10825 | version_type=irix |
| 10826 | fi ;; |
| 10827 | esac |
| 10828 | need_lib_prefix=no |
| 10829 | need_version=no |
| 10830 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10831 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10832 | case $host_os in |
| 10833 | irix5* | nonstopux*) |
| 10834 | libsuff= shlibsuff= |
| 10835 | ;; |
| 10836 | *) |
| 10837 | case $LD in # libtool.m4 will add one of these switches to LD |
| 10838 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 10839 | libsuff= shlibsuff= libmagic=32-bit;; |
| 10840 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 10841 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 10842 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 10843 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 10844 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 10845 | esac |
| 10846 | ;; |
| 10847 | esac |
| 10848 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 10849 | shlibpath_overrides_runpath=no |
| 10850 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 10851 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 10852 | hardcode_into_libs=yes |
| 10853 | ;; |
| 10854 | |
| 10855 | # No shared lib support for Linux oldld, aout, or coff. |
| 10856 | linux*oldld* | linux*aout* | linux*coff*) |
| 10857 | dynamic_linker=no |
| 10858 | ;; |
| 10859 | |
| 10860 | # This must be Linux ELF. |
| 10861 | linux*) |
| 10862 | version_type=linux |
| 10863 | need_lib_prefix=no |
| 10864 | need_version=no |
| 10865 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10866 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10867 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 10868 | shlibpath_var=LD_LIBRARY_PATH |
| 10869 | shlibpath_overrides_runpath=no |
| 10870 | # This implies no fast_install, which is unacceptable. |
| 10871 | # Some rework will be needed to allow for fast_install |
| 10872 | # before this can be enabled. |
| 10873 | hardcode_into_libs=yes |
| 10874 | |
| 10875 | # Append ld.so.conf contents to the search path |
| 10876 | if test -f /etc/ld.so.conf; then |
| 10877 | ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf` |
| 10878 | sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra" |
| 10879 | fi |
| 10880 | |
| 10881 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 10882 | # powerpc, because MkLinux only supported shared libraries with the |
| 10883 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 10884 | # most powerpc-linux boxes support dynamic linking these days and |
| 10885 | # people can always --disable-shared, the test was removed, and we |
| 10886 | # assume the GNU/Linux dynamic linker is in use. |
| 10887 | dynamic_linker='GNU/Linux ld.so' |
| 10888 | ;; |
| 10889 | |
| 10890 | knetbsd*-gnu) |
| 10891 | version_type=linux |
| 10892 | need_lib_prefix=no |
| 10893 | need_version=no |
| 10894 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10895 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10896 | shlibpath_var=LD_LIBRARY_PATH |
| 10897 | shlibpath_overrides_runpath=no |
| 10898 | hardcode_into_libs=yes |
| 10899 | dynamic_linker='GNU ld.so' |
| 10900 | ;; |
| 10901 | |
| 10902 | netbsd*) |
| 10903 | version_type=sunos |
| 10904 | need_lib_prefix=no |
| 10905 | need_version=no |
| 10906 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 10907 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10908 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10909 | dynamic_linker='NetBSD (a.out) ld.so' |
| 10910 | else |
| 10911 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10912 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10913 | dynamic_linker='NetBSD ld.elf_so' |
| 10914 | fi |
| 10915 | shlibpath_var=LD_LIBRARY_PATH |
| 10916 | shlibpath_overrides_runpath=yes |
| 10917 | hardcode_into_libs=yes |
| 10918 | ;; |
| 10919 | |
| 10920 | newsos6) |
| 10921 | version_type=linux |
| 10922 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10923 | shlibpath_var=LD_LIBRARY_PATH |
| 10924 | shlibpath_overrides_runpath=yes |
| 10925 | ;; |
| 10926 | |
| 10927 | nto-qnx*) |
| 10928 | version_type=linux |
| 10929 | need_lib_prefix=no |
| 10930 | need_version=no |
| 10931 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10932 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10933 | shlibpath_var=LD_LIBRARY_PATH |
| 10934 | shlibpath_overrides_runpath=yes |
| 10935 | ;; |
| 10936 | |
| 10937 | openbsd*) |
| 10938 | version_type=sunos |
| 10939 | need_lib_prefix=no |
| 10940 | need_version=yes |
| 10941 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10942 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10943 | shlibpath_var=LD_LIBRARY_PATH |
| 10944 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 10945 | case $host_os in |
| 10946 | openbsd2.[89] | openbsd2.[89].*) |
| 10947 | shlibpath_overrides_runpath=no |
| 10948 | ;; |
| 10949 | *) |
| 10950 | shlibpath_overrides_runpath=yes |
| 10951 | ;; |
| 10952 | esac |
| 10953 | else |
| 10954 | shlibpath_overrides_runpath=yes |
| 10955 | fi |
| 10956 | ;; |
| 10957 | |
| 10958 | os2*) |
| 10959 | libname_spec='$name' |
| 10960 | shrext=".dll" |
| 10961 | need_lib_prefix=no |
| 10962 | library_names_spec='$libname${shared_ext} $libname.a' |
| 10963 | dynamic_linker='OS/2 ld.exe' |
| 10964 | shlibpath_var=LIBPATH |
| 10965 | ;; |
| 10966 | |
| 10967 | osf3* | osf4* | osf5*) |
| 10968 | version_type=osf |
| 10969 | need_lib_prefix=no |
| 10970 | need_version=no |
| 10971 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10972 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10973 | shlibpath_var=LD_LIBRARY_PATH |
| 10974 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 10975 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 10976 | ;; |
| 10977 | |
| 10978 | sco3.2v5*) |
| 10979 | version_type=osf |
| 10980 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10981 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10982 | shlibpath_var=LD_LIBRARY_PATH |
| 10983 | ;; |
| 10984 | |
| 10985 | solaris*) |
| 10986 | version_type=linux |
| 10987 | need_lib_prefix=no |
| 10988 | need_version=no |
| 10989 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10990 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10991 | shlibpath_var=LD_LIBRARY_PATH |
| 10992 | shlibpath_overrides_runpath=yes |
| 10993 | hardcode_into_libs=yes |
| 10994 | # ldd complains unless libraries are executable |
| 10995 | postinstall_cmds='chmod +x $lib' |
| 10996 | ;; |
| 10997 | |
| 10998 | sunos4*) |
| 10999 | version_type=sunos |
| 11000 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11001 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 11002 | shlibpath_var=LD_LIBRARY_PATH |
| 11003 | shlibpath_overrides_runpath=yes |
| 11004 | if test "$with_gnu_ld" = yes; then |
| 11005 | need_lib_prefix=no |
| 11006 | fi |
| 11007 | need_version=yes |
| 11008 | ;; |
| 11009 | |
| 11010 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 11011 | version_type=linux |
| 11012 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11013 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11014 | shlibpath_var=LD_LIBRARY_PATH |
| 11015 | case $host_vendor in |
| 11016 | sni) |
| 11017 | shlibpath_overrides_runpath=no |
| 11018 | need_lib_prefix=no |
| 11019 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 11020 | runpath_var=LD_RUN_PATH |
| 11021 | ;; |
| 11022 | siemens) |
| 11023 | need_lib_prefix=no |
| 11024 | ;; |
| 11025 | motorola) |
| 11026 | need_lib_prefix=no |
| 11027 | need_version=no |
| 11028 | shlibpath_overrides_runpath=no |
| 11029 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 11030 | ;; |
| 11031 | esac |
| 11032 | ;; |
| 11033 | |
| 11034 | sysv4*MP*) |
| 11035 | if test -d /usr/nec ;then |
| 11036 | version_type=linux |
| 11037 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 11038 | soname_spec='$libname${shared_ext}.$major' |
| 11039 | shlibpath_var=LD_LIBRARY_PATH |
| 11040 | fi |
| 11041 | ;; |
| 11042 | |
| 11043 | uts4*) |
| 11044 | version_type=linux |
| 11045 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11046 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11047 | shlibpath_var=LD_LIBRARY_PATH |
| 11048 | ;; |
| 11049 | |
| 11050 | *) |
| 11051 | dynamic_linker=no |
| 11052 | ;; |
| 11053 | esac |
| 11054 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 11055 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 11056 | test "$dynamic_linker" = no && can_build_shared=no |
| 11057 | |
| 11058 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 11059 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 11060 | hardcode_action_CXX= |
| 11061 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 11062 | test -n "$runpath_var CXX" || \ |
| 11063 | test "X$hardcode_automatic_CXX"="Xyes" ; then |
| 11064 | |
| 11065 | # We can hardcode non-existant directories. |
| 11066 | if test "$hardcode_direct_CXX" != no && |
| 11067 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 11068 | # have to relink, otherwise we might link with an installed library |
| 11069 | # when we should be linking with a yet-to-be-installed one |
| 11070 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 11071 | test "$hardcode_minus_L_CXX" != no; then |
| 11072 | # Linking always hardcodes the temporary library directory. |
| 11073 | hardcode_action_CXX=relink |
| 11074 | else |
| 11075 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 11076 | hardcode_action_CXX=immediate |
| 11077 | fi |
| 11078 | else |
| 11079 | # We cannot hardcode anything, or else we can only hardcode existing |
| 11080 | # directories. |
| 11081 | hardcode_action_CXX=unsupported |
| 11082 | fi |
| 11083 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 11084 | echo "${ECHO_T}$hardcode_action_CXX" >&6 |
| 11085 | |
| 11086 | if test "$hardcode_action_CXX" = relink; then |
| 11087 | # Fast installation is not supported |
| 11088 | enable_fast_install=no |
| 11089 | elif test "$shlibpath_overrides_runpath" = yes || |
| 11090 | test "$enable_shared" = no; then |
| 11091 | # Fast installation is not necessary |
| 11092 | enable_fast_install=needless |
| 11093 | fi |
| 11094 | |
| 11095 | striplib= |
| 11096 | old_striplib= |
| 11097 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 11098 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 11099 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 11100 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 11101 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 11102 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11103 | echo "${ECHO_T}yes" >&6 |
| 11104 | else |
| 11105 | # FIXME - insert some real tests, host_os isn't really good enough |
| 11106 | case $host_os in |
| 11107 | darwin*) |
| 11108 | if test -n "$STRIP" ; then |
| 11109 | striplib="$STRIP -x" |
| 11110 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11111 | echo "${ECHO_T}yes" >&6 |
| 11112 | else |
| 11113 | echo "$as_me:$LINENO: result: no" >&5 |
| 11114 | echo "${ECHO_T}no" >&6 |
| 11115 | fi |
| 11116 | ;; |
| 11117 | *) |
| 11118 | echo "$as_me:$LINENO: result: no" >&5 |
| 11119 | echo "${ECHO_T}no" >&6 |
| 11120 | ;; |
| 11121 | esac |
| 11122 | fi |
| 11123 | |
| 11124 | if test "x$enable_dlopen" != xyes; then |
| 11125 | enable_dlopen=unknown |
| 11126 | enable_dlopen_self=unknown |
| 11127 | enable_dlopen_self_static=unknown |
| 11128 | else |
| 11129 | lt_cv_dlopen=no |
| 11130 | lt_cv_dlopen_libs= |
| 11131 | |
| 11132 | case $host_os in |
| 11133 | beos*) |
| 11134 | lt_cv_dlopen="load_add_on" |
| 11135 | lt_cv_dlopen_libs= |
| 11136 | lt_cv_dlopen_self=yes |
| 11137 | ;; |
| 11138 | |
| 11139 | mingw* | pw32*) |
| 11140 | lt_cv_dlopen="LoadLibrary" |
| 11141 | lt_cv_dlopen_libs= |
| 11142 | ;; |
| 11143 | |
| 11144 | cygwin*) |
| 11145 | lt_cv_dlopen="dlopen" |
| 11146 | lt_cv_dlopen_libs= |
| 11147 | ;; |
| 11148 | |
| 11149 | darwin*) |
| 11150 | # if libdl is installed we need to link against it |
| 11151 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 11152 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 11153 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 11154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11155 | else |
| 11156 | ac_check_lib_save_LIBS=$LIBS |
| 11157 | LIBS="-ldl $LIBS" |
| 11158 | cat >conftest.$ac_ext <<_ACEOF |
| 11159 | /* confdefs.h. */ |
| 11160 | _ACEOF |
| 11161 | cat confdefs.h >>conftest.$ac_ext |
| 11162 | cat >>conftest.$ac_ext <<_ACEOF |
| 11163 | /* end confdefs.h. */ |
| 11164 | |
| 11165 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11166 | #ifdef __cplusplus |
| 11167 | extern "C" |
| 11168 | #endif |
| 11169 | /* We use char because int might match the return type of a gcc2 |
| 11170 | builtin and then its argument prototype would still apply. */ |
| 11171 | char dlopen (); |
| 11172 | int |
| 11173 | main () |
| 11174 | { |
| 11175 | dlopen (); |
| 11176 | ; |
| 11177 | return 0; |
| 11178 | } |
| 11179 | _ACEOF |
| 11180 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11181 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11182 | (eval $ac_link) 2>conftest.er1 |
| 11183 | ac_status=$? |
| 11184 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11185 | rm -f conftest.er1 |
| 11186 | cat conftest.err >&5 |
| 11187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11188 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 11189 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 11190 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11192 | (eval $ac_try) 2>&5 |
| 11193 | ac_status=$? |
| 11194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11195 | (exit $ac_status); }; } && |
| 11196 | { ac_try='test -s conftest$ac_exeext' |
| 11197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11198 | (eval $ac_try) 2>&5 |
| 11199 | ac_status=$? |
| 11200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11201 | (exit $ac_status); }; }; then |
| 11202 | ac_cv_lib_dl_dlopen=yes |
| 11203 | else |
| 11204 | echo "$as_me: failed program was:" >&5 |
| 11205 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11206 | |
| 11207 | ac_cv_lib_dl_dlopen=no |
| 11208 | fi |
| 11209 | rm -f conftest.err conftest.$ac_objext \ |
| 11210 | conftest$ac_exeext conftest.$ac_ext |
| 11211 | LIBS=$ac_check_lib_save_LIBS |
| 11212 | fi |
| 11213 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11214 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 11215 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 11216 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11217 | else |
| 11218 | |
| 11219 | lt_cv_dlopen="dyld" |
| 11220 | lt_cv_dlopen_libs= |
| 11221 | lt_cv_dlopen_self=yes |
| 11222 | |
| 11223 | fi |
| 11224 | |
| 11225 | ;; |
| 11226 | |
| 11227 | *) |
| 11228 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 11229 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 11230 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 11231 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11232 | else |
| 11233 | cat >conftest.$ac_ext <<_ACEOF |
| 11234 | /* confdefs.h. */ |
| 11235 | _ACEOF |
| 11236 | cat confdefs.h >>conftest.$ac_ext |
| 11237 | cat >>conftest.$ac_ext <<_ACEOF |
| 11238 | /* end confdefs.h. */ |
| 11239 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 11240 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11241 | #define shl_load innocuous_shl_load |
| 11242 | |
| 11243 | /* System header to define __stub macros and hopefully few prototypes, |
| 11244 | which can conflict with char shl_load (); below. |
| 11245 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11246 | <limits.h> exists even on freestanding compilers. */ |
| 11247 | |
| 11248 | #ifdef __STDC__ |
| 11249 | # include <limits.h> |
| 11250 | #else |
| 11251 | # include <assert.h> |
| 11252 | #endif |
| 11253 | |
| 11254 | #undef shl_load |
| 11255 | |
| 11256 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11257 | #ifdef __cplusplus |
| 11258 | extern "C" |
| 11259 | { |
| 11260 | #endif |
| 11261 | /* We use char because int might match the return type of a gcc2 |
| 11262 | builtin and then its argument prototype would still apply. */ |
| 11263 | char shl_load (); |
| 11264 | /* The GNU C library defines this for functions which it implements |
| 11265 | to always fail with ENOSYS. Some functions are actually named |
| 11266 | something starting with __ and the normal name is an alias. */ |
| 11267 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 11268 | choke me |
| 11269 | #else |
| 11270 | char (*f) () = shl_load; |
| 11271 | #endif |
| 11272 | #ifdef __cplusplus |
| 11273 | } |
| 11274 | #endif |
| 11275 | |
| 11276 | int |
| 11277 | main () |
| 11278 | { |
| 11279 | return f != shl_load; |
| 11280 | ; |
| 11281 | return 0; |
| 11282 | } |
| 11283 | _ACEOF |
| 11284 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11285 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11286 | (eval $ac_link) 2>conftest.er1 |
| 11287 | ac_status=$? |
| 11288 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11289 | rm -f conftest.er1 |
| 11290 | cat conftest.err >&5 |
| 11291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11292 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 11293 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 11294 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11296 | (eval $ac_try) 2>&5 |
| 11297 | ac_status=$? |
| 11298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11299 | (exit $ac_status); }; } && |
| 11300 | { ac_try='test -s conftest$ac_exeext' |
| 11301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11302 | (eval $ac_try) 2>&5 |
| 11303 | ac_status=$? |
| 11304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11305 | (exit $ac_status); }; }; then |
| 11306 | ac_cv_func_shl_load=yes |
| 11307 | else |
| 11308 | echo "$as_me: failed program was:" >&5 |
| 11309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11310 | |
| 11311 | ac_cv_func_shl_load=no |
| 11312 | fi |
| 11313 | rm -f conftest.err conftest.$ac_objext \ |
| 11314 | conftest$ac_exeext conftest.$ac_ext |
| 11315 | fi |
| 11316 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 11317 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 11318 | if test $ac_cv_func_shl_load = yes; then |
| 11319 | lt_cv_dlopen="shl_load" |
| 11320 | else |
| 11321 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 11322 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 11323 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 11324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11325 | else |
| 11326 | ac_check_lib_save_LIBS=$LIBS |
| 11327 | LIBS="-ldld $LIBS" |
| 11328 | cat >conftest.$ac_ext <<_ACEOF |
| 11329 | /* confdefs.h. */ |
| 11330 | _ACEOF |
| 11331 | cat confdefs.h >>conftest.$ac_ext |
| 11332 | cat >>conftest.$ac_ext <<_ACEOF |
| 11333 | /* end confdefs.h. */ |
| 11334 | |
| 11335 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11336 | #ifdef __cplusplus |
| 11337 | extern "C" |
| 11338 | #endif |
| 11339 | /* We use char because int might match the return type of a gcc2 |
| 11340 | builtin and then its argument prototype would still apply. */ |
| 11341 | char shl_load (); |
| 11342 | int |
| 11343 | main () |
| 11344 | { |
| 11345 | shl_load (); |
| 11346 | ; |
| 11347 | return 0; |
| 11348 | } |
| 11349 | _ACEOF |
| 11350 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11351 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11352 | (eval $ac_link) 2>conftest.er1 |
| 11353 | ac_status=$? |
| 11354 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11355 | rm -f conftest.er1 |
| 11356 | cat conftest.err >&5 |
| 11357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11358 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 11359 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 11360 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11362 | (eval $ac_try) 2>&5 |
| 11363 | ac_status=$? |
| 11364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11365 | (exit $ac_status); }; } && |
| 11366 | { ac_try='test -s conftest$ac_exeext' |
| 11367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11368 | (eval $ac_try) 2>&5 |
| 11369 | ac_status=$? |
| 11370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11371 | (exit $ac_status); }; }; then |
| 11372 | ac_cv_lib_dld_shl_load=yes |
| 11373 | else |
| 11374 | echo "$as_me: failed program was:" >&5 |
| 11375 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11376 | |
| 11377 | ac_cv_lib_dld_shl_load=no |
| 11378 | fi |
| 11379 | rm -f conftest.err conftest.$ac_objext \ |
| 11380 | conftest$ac_exeext conftest.$ac_ext |
| 11381 | LIBS=$ac_check_lib_save_LIBS |
| 11382 | fi |
| 11383 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 11384 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 11385 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 11386 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 11387 | else |
| 11388 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 11389 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 11390 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 11391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11392 | else |
| 11393 | cat >conftest.$ac_ext <<_ACEOF |
| 11394 | /* confdefs.h. */ |
| 11395 | _ACEOF |
| 11396 | cat confdefs.h >>conftest.$ac_ext |
| 11397 | cat >>conftest.$ac_ext <<_ACEOF |
| 11398 | /* end confdefs.h. */ |
| 11399 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 11400 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11401 | #define dlopen innocuous_dlopen |
| 11402 | |
| 11403 | /* System header to define __stub macros and hopefully few prototypes, |
| 11404 | which can conflict with char dlopen (); below. |
| 11405 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11406 | <limits.h> exists even on freestanding compilers. */ |
| 11407 | |
| 11408 | #ifdef __STDC__ |
| 11409 | # include <limits.h> |
| 11410 | #else |
| 11411 | # include <assert.h> |
| 11412 | #endif |
| 11413 | |
| 11414 | #undef dlopen |
| 11415 | |
| 11416 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11417 | #ifdef __cplusplus |
| 11418 | extern "C" |
| 11419 | { |
| 11420 | #endif |
| 11421 | /* We use char because int might match the return type of a gcc2 |
| 11422 | builtin and then its argument prototype would still apply. */ |
| 11423 | char dlopen (); |
| 11424 | /* The GNU C library defines this for functions which it implements |
| 11425 | to always fail with ENOSYS. Some functions are actually named |
| 11426 | something starting with __ and the normal name is an alias. */ |
| 11427 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 11428 | choke me |
| 11429 | #else |
| 11430 | char (*f) () = dlopen; |
| 11431 | #endif |
| 11432 | #ifdef __cplusplus |
| 11433 | } |
| 11434 | #endif |
| 11435 | |
| 11436 | int |
| 11437 | main () |
| 11438 | { |
| 11439 | return f != dlopen; |
| 11440 | ; |
| 11441 | return 0; |
| 11442 | } |
| 11443 | _ACEOF |
| 11444 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11445 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11446 | (eval $ac_link) 2>conftest.er1 |
| 11447 | ac_status=$? |
| 11448 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11449 | rm -f conftest.er1 |
| 11450 | cat conftest.err >&5 |
| 11451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11452 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 11453 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 11454 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11456 | (eval $ac_try) 2>&5 |
| 11457 | ac_status=$? |
| 11458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11459 | (exit $ac_status); }; } && |
| 11460 | { ac_try='test -s conftest$ac_exeext' |
| 11461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11462 | (eval $ac_try) 2>&5 |
| 11463 | ac_status=$? |
| 11464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11465 | (exit $ac_status); }; }; then |
| 11466 | ac_cv_func_dlopen=yes |
| 11467 | else |
| 11468 | echo "$as_me: failed program was:" >&5 |
| 11469 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11470 | |
| 11471 | ac_cv_func_dlopen=no |
| 11472 | fi |
| 11473 | rm -f conftest.err conftest.$ac_objext \ |
| 11474 | conftest$ac_exeext conftest.$ac_ext |
| 11475 | fi |
| 11476 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 11477 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 11478 | if test $ac_cv_func_dlopen = yes; then |
| 11479 | lt_cv_dlopen="dlopen" |
| 11480 | else |
| 11481 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 11482 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 11483 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 11484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11485 | else |
| 11486 | ac_check_lib_save_LIBS=$LIBS |
| 11487 | LIBS="-ldl $LIBS" |
| 11488 | cat >conftest.$ac_ext <<_ACEOF |
| 11489 | /* confdefs.h. */ |
| 11490 | _ACEOF |
| 11491 | cat confdefs.h >>conftest.$ac_ext |
| 11492 | cat >>conftest.$ac_ext <<_ACEOF |
| 11493 | /* end confdefs.h. */ |
| 11494 | |
| 11495 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11496 | #ifdef __cplusplus |
| 11497 | extern "C" |
| 11498 | #endif |
| 11499 | /* We use char because int might match the return type of a gcc2 |
| 11500 | builtin and then its argument prototype would still apply. */ |
| 11501 | char dlopen (); |
| 11502 | int |
| 11503 | main () |
| 11504 | { |
| 11505 | dlopen (); |
| 11506 | ; |
| 11507 | return 0; |
| 11508 | } |
| 11509 | _ACEOF |
| 11510 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11511 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11512 | (eval $ac_link) 2>conftest.er1 |
| 11513 | ac_status=$? |
| 11514 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11515 | rm -f conftest.er1 |
| 11516 | cat conftest.err >&5 |
| 11517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11518 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 11519 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 11520 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11522 | (eval $ac_try) 2>&5 |
| 11523 | ac_status=$? |
| 11524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11525 | (exit $ac_status); }; } && |
| 11526 | { ac_try='test -s conftest$ac_exeext' |
| 11527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11528 | (eval $ac_try) 2>&5 |
| 11529 | ac_status=$? |
| 11530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11531 | (exit $ac_status); }; }; then |
| 11532 | ac_cv_lib_dl_dlopen=yes |
| 11533 | else |
| 11534 | echo "$as_me: failed program was:" >&5 |
| 11535 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11536 | |
| 11537 | ac_cv_lib_dl_dlopen=no |
| 11538 | fi |
| 11539 | rm -f conftest.err conftest.$ac_objext \ |
| 11540 | conftest$ac_exeext conftest.$ac_ext |
| 11541 | LIBS=$ac_check_lib_save_LIBS |
| 11542 | fi |
| 11543 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11544 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 11545 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 11546 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11547 | else |
| 11548 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 11549 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 11550 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 11551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11552 | else |
| 11553 | ac_check_lib_save_LIBS=$LIBS |
| 11554 | LIBS="-lsvld $LIBS" |
| 11555 | cat >conftest.$ac_ext <<_ACEOF |
| 11556 | /* confdefs.h. */ |
| 11557 | _ACEOF |
| 11558 | cat confdefs.h >>conftest.$ac_ext |
| 11559 | cat >>conftest.$ac_ext <<_ACEOF |
| 11560 | /* end confdefs.h. */ |
| 11561 | |
| 11562 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11563 | #ifdef __cplusplus |
| 11564 | extern "C" |
| 11565 | #endif |
| 11566 | /* We use char because int might match the return type of a gcc2 |
| 11567 | builtin and then its argument prototype would still apply. */ |
| 11568 | char dlopen (); |
| 11569 | int |
| 11570 | main () |
| 11571 | { |
| 11572 | dlopen (); |
| 11573 | ; |
| 11574 | return 0; |
| 11575 | } |
| 11576 | _ACEOF |
| 11577 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11578 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11579 | (eval $ac_link) 2>conftest.er1 |
| 11580 | ac_status=$? |
| 11581 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11582 | rm -f conftest.er1 |
| 11583 | cat conftest.err >&5 |
| 11584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11585 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 11586 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 11587 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11589 | (eval $ac_try) 2>&5 |
| 11590 | ac_status=$? |
| 11591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11592 | (exit $ac_status); }; } && |
| 11593 | { ac_try='test -s conftest$ac_exeext' |
| 11594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11595 | (eval $ac_try) 2>&5 |
| 11596 | ac_status=$? |
| 11597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11598 | (exit $ac_status); }; }; then |
| 11599 | ac_cv_lib_svld_dlopen=yes |
| 11600 | else |
| 11601 | echo "$as_me: failed program was:" >&5 |
| 11602 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11603 | |
| 11604 | ac_cv_lib_svld_dlopen=no |
| 11605 | fi |
| 11606 | rm -f conftest.err conftest.$ac_objext \ |
| 11607 | conftest$ac_exeext conftest.$ac_ext |
| 11608 | LIBS=$ac_check_lib_save_LIBS |
| 11609 | fi |
| 11610 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 11611 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 11612 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 11613 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 11614 | else |
| 11615 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 11616 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 11617 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 11618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11619 | else |
| 11620 | ac_check_lib_save_LIBS=$LIBS |
| 11621 | LIBS="-ldld $LIBS" |
| 11622 | cat >conftest.$ac_ext <<_ACEOF |
| 11623 | /* confdefs.h. */ |
| 11624 | _ACEOF |
| 11625 | cat confdefs.h >>conftest.$ac_ext |
| 11626 | cat >>conftest.$ac_ext <<_ACEOF |
| 11627 | /* end confdefs.h. */ |
| 11628 | |
| 11629 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11630 | #ifdef __cplusplus |
| 11631 | extern "C" |
| 11632 | #endif |
| 11633 | /* We use char because int might match the return type of a gcc2 |
| 11634 | builtin and then its argument prototype would still apply. */ |
| 11635 | char dld_link (); |
| 11636 | int |
| 11637 | main () |
| 11638 | { |
| 11639 | dld_link (); |
| 11640 | ; |
| 11641 | return 0; |
| 11642 | } |
| 11643 | _ACEOF |
| 11644 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11645 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11646 | (eval $ac_link) 2>conftest.er1 |
| 11647 | ac_status=$? |
| 11648 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11649 | rm -f conftest.er1 |
| 11650 | cat conftest.err >&5 |
| 11651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11652 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 11653 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 11654 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11656 | (eval $ac_try) 2>&5 |
| 11657 | ac_status=$? |
| 11658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11659 | (exit $ac_status); }; } && |
| 11660 | { ac_try='test -s conftest$ac_exeext' |
| 11661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11662 | (eval $ac_try) 2>&5 |
| 11663 | ac_status=$? |
| 11664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11665 | (exit $ac_status); }; }; then |
| 11666 | ac_cv_lib_dld_dld_link=yes |
| 11667 | else |
| 11668 | echo "$as_me: failed program was:" >&5 |
| 11669 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11670 | |
| 11671 | ac_cv_lib_dld_dld_link=no |
| 11672 | fi |
| 11673 | rm -f conftest.err conftest.$ac_objext \ |
| 11674 | conftest$ac_exeext conftest.$ac_ext |
| 11675 | LIBS=$ac_check_lib_save_LIBS |
| 11676 | fi |
| 11677 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 11678 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 11679 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 11680 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 11681 | fi |
| 11682 | |
| 11683 | |
| 11684 | fi |
| 11685 | |
| 11686 | |
| 11687 | fi |
| 11688 | |
| 11689 | |
| 11690 | fi |
| 11691 | |
| 11692 | |
| 11693 | fi |
| 11694 | |
| 11695 | |
| 11696 | fi |
| 11697 | |
| 11698 | ;; |
| 11699 | esac |
| 11700 | |
| 11701 | if test "x$lt_cv_dlopen" != xno; then |
| 11702 | enable_dlopen=yes |
| 11703 | else |
| 11704 | enable_dlopen=no |
| 11705 | fi |
| 11706 | |
| 11707 | case $lt_cv_dlopen in |
| 11708 | dlopen) |
| 11709 | save_CPPFLAGS="$CPPFLAGS" |
| 11710 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 11711 | |
| 11712 | save_LDFLAGS="$LDFLAGS" |
| 11713 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 11714 | |
| 11715 | save_LIBS="$LIBS" |
| 11716 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 11717 | |
| 11718 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 11719 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 11720 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 11721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11722 | else |
| 11723 | if test "$cross_compiling" = yes; then : |
| 11724 | lt_cv_dlopen_self=cross |
| 11725 | else |
| 11726 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11727 | lt_status=$lt_dlunknown |
| 11728 | cat > conftest.$ac_ext <<EOF |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 11729 | #line 11729 "configure" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11730 | #include "confdefs.h" |
| 11731 | |
| 11732 | #if HAVE_DLFCN_H |
| 11733 | #include <dlfcn.h> |
| 11734 | #endif |
| 11735 | |
| 11736 | #include <stdio.h> |
| 11737 | |
| 11738 | #ifdef RTLD_GLOBAL |
| 11739 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11740 | #else |
| 11741 | # ifdef DL_GLOBAL |
| 11742 | # define LT_DLGLOBAL DL_GLOBAL |
| 11743 | # else |
| 11744 | # define LT_DLGLOBAL 0 |
| 11745 | # endif |
| 11746 | #endif |
| 11747 | |
| 11748 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11749 | find out it does not work in some platform. */ |
| 11750 | #ifndef LT_DLLAZY_OR_NOW |
| 11751 | # ifdef RTLD_LAZY |
| 11752 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11753 | # else |
| 11754 | # ifdef DL_LAZY |
| 11755 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11756 | # else |
| 11757 | # ifdef RTLD_NOW |
| 11758 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11759 | # else |
| 11760 | # ifdef DL_NOW |
| 11761 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11762 | # else |
| 11763 | # define LT_DLLAZY_OR_NOW 0 |
| 11764 | # endif |
| 11765 | # endif |
| 11766 | # endif |
| 11767 | # endif |
| 11768 | #endif |
| 11769 | |
| 11770 | #ifdef __cplusplus |
| 11771 | extern "C" void exit (int); |
| 11772 | #endif |
| 11773 | |
| 11774 | void fnord() { int i=42;} |
| 11775 | int main () |
| 11776 | { |
| 11777 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11778 | int status = $lt_dlunknown; |
| 11779 | |
| 11780 | if (self) |
| 11781 | { |
| 11782 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11783 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11784 | /* dlclose (self); */ |
| 11785 | } |
| 11786 | |
| 11787 | exit (status); |
| 11788 | } |
| 11789 | EOF |
| 11790 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11791 | (eval $ac_link) 2>&5 |
| 11792 | ac_status=$? |
| 11793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11794 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 11795 | (./conftest; exit; ) 2>/dev/null |
| 11796 | lt_status=$? |
| 11797 | case x$lt_status in |
| 11798 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 11799 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 11800 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 11801 | esac |
| 11802 | else : |
| 11803 | # compilation failed |
| 11804 | lt_cv_dlopen_self=no |
| 11805 | fi |
| 11806 | fi |
| 11807 | rm -fr conftest* |
| 11808 | |
| 11809 | |
| 11810 | fi |
| 11811 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 11812 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 11813 | |
| 11814 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 11815 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 11816 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 11817 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 11818 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 11819 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11820 | else |
| 11821 | if test "$cross_compiling" = yes; then : |
| 11822 | lt_cv_dlopen_self_static=cross |
| 11823 | else |
| 11824 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11825 | lt_status=$lt_dlunknown |
| 11826 | cat > conftest.$ac_ext <<EOF |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 11827 | #line 11827 "configure" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 11828 | #include "confdefs.h" |
| 11829 | |
| 11830 | #if HAVE_DLFCN_H |
| 11831 | #include <dlfcn.h> |
| 11832 | #endif |
| 11833 | |
| 11834 | #include <stdio.h> |
| 11835 | |
| 11836 | #ifdef RTLD_GLOBAL |
| 11837 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11838 | #else |
| 11839 | # ifdef DL_GLOBAL |
| 11840 | # define LT_DLGLOBAL DL_GLOBAL |
| 11841 | # else |
| 11842 | # define LT_DLGLOBAL 0 |
| 11843 | # endif |
| 11844 | #endif |
| 11845 | |
| 11846 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11847 | find out it does not work in some platform. */ |
| 11848 | #ifndef LT_DLLAZY_OR_NOW |
| 11849 | # ifdef RTLD_LAZY |
| 11850 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11851 | # else |
| 11852 | # ifdef DL_LAZY |
| 11853 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11854 | # else |
| 11855 | # ifdef RTLD_NOW |
| 11856 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11857 | # else |
| 11858 | # ifdef DL_NOW |
| 11859 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11860 | # else |
| 11861 | # define LT_DLLAZY_OR_NOW 0 |
| 11862 | # endif |
| 11863 | # endif |
| 11864 | # endif |
| 11865 | # endif |
| 11866 | #endif |
| 11867 | |
| 11868 | #ifdef __cplusplus |
| 11869 | extern "C" void exit (int); |
| 11870 | #endif |
| 11871 | |
| 11872 | void fnord() { int i=42;} |
| 11873 | int main () |
| 11874 | { |
| 11875 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11876 | int status = $lt_dlunknown; |
| 11877 | |
| 11878 | if (self) |
| 11879 | { |
| 11880 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11881 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11882 | /* dlclose (self); */ |
| 11883 | } |
| 11884 | |
| 11885 | exit (status); |
| 11886 | } |
| 11887 | EOF |
| 11888 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11889 | (eval $ac_link) 2>&5 |
| 11890 | ac_status=$? |
| 11891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11892 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 11893 | (./conftest; exit; ) 2>/dev/null |
| 11894 | lt_status=$? |
| 11895 | case x$lt_status in |
| 11896 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11897 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11898 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 11899 | esac |
| 11900 | else : |
| 11901 | # compilation failed |
| 11902 | lt_cv_dlopen_self_static=no |
| 11903 | fi |
| 11904 | fi |
| 11905 | rm -fr conftest* |
| 11906 | |
| 11907 | |
| 11908 | fi |
| 11909 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 11910 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 11911 | fi |
| 11912 | |
| 11913 | CPPFLAGS="$save_CPPFLAGS" |
| 11914 | LDFLAGS="$save_LDFLAGS" |
| 11915 | LIBS="$save_LIBS" |
| 11916 | ;; |
| 11917 | esac |
| 11918 | |
| 11919 | case $lt_cv_dlopen_self in |
| 11920 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 11921 | *) enable_dlopen_self=unknown ;; |
| 11922 | esac |
| 11923 | |
| 11924 | case $lt_cv_dlopen_self_static in |
| 11925 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 11926 | *) enable_dlopen_self_static=unknown ;; |
| 11927 | esac |
| 11928 | fi |
| 11929 | |
| 11930 | |
| 11931 | # The else clause should only fire when bootstrapping the |
| 11932 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 11933 | # with your package, and you will get complaints that there are |
| 11934 | # no rules to generate ltmain.sh. |
| 11935 | if test -f "$ltmain"; then |
| 11936 | # See if we are running on zsh, and set the options which allow our commands through |
| 11937 | # without removal of \ escapes. |
| 11938 | if test -n "${ZSH_VERSION+set}" ; then |
| 11939 | setopt NO_GLOB_SUBST |
| 11940 | fi |
| 11941 | # Now quote all the things that may contain metacharacters while being |
| 11942 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 11943 | # variables and quote the copies for generation of the libtool script. |
| 11944 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 11945 | SED SHELL STRIP \ |
| 11946 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 11947 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 11948 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 11949 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 11950 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 11951 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 11952 | old_postinstall_cmds old_postuninstall_cmds \ |
| 11953 | compiler_CXX \ |
| 11954 | CC_CXX \ |
| 11955 | LD_CXX \ |
| 11956 | lt_prog_compiler_wl_CXX \ |
| 11957 | lt_prog_compiler_pic_CXX \ |
| 11958 | lt_prog_compiler_static_CXX \ |
| 11959 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 11960 | export_dynamic_flag_spec_CXX \ |
| 11961 | thread_safe_flag_spec_CXX \ |
| 11962 | whole_archive_flag_spec_CXX \ |
| 11963 | enable_shared_with_static_runtimes_CXX \ |
| 11964 | old_archive_cmds_CXX \ |
| 11965 | old_archive_from_new_cmds_CXX \ |
| 11966 | predep_objects_CXX \ |
| 11967 | postdep_objects_CXX \ |
| 11968 | predeps_CXX \ |
| 11969 | postdeps_CXX \ |
| 11970 | compiler_lib_search_path_CXX \ |
| 11971 | archive_cmds_CXX \ |
| 11972 | archive_expsym_cmds_CXX \ |
| 11973 | postinstall_cmds_CXX \ |
| 11974 | postuninstall_cmds_CXX \ |
| 11975 | old_archive_from_expsyms_cmds_CXX \ |
| 11976 | allow_undefined_flag_CXX \ |
| 11977 | no_undefined_flag_CXX \ |
| 11978 | export_symbols_cmds_CXX \ |
| 11979 | hardcode_libdir_flag_spec_CXX \ |
| 11980 | hardcode_libdir_flag_spec_ld_CXX \ |
| 11981 | hardcode_libdir_separator_CXX \ |
| 11982 | hardcode_automatic_CXX \ |
| 11983 | module_cmds_CXX \ |
| 11984 | module_expsym_cmds_CXX \ |
| 11985 | lt_cv_prog_compiler_c_o_CXX \ |
| 11986 | exclude_expsyms_CXX \ |
| 11987 | include_expsyms_CXX; do |
| 11988 | |
| 11989 | case $var in |
| 11990 | old_archive_cmds_CXX | \ |
| 11991 | old_archive_from_new_cmds_CXX | \ |
| 11992 | archive_cmds_CXX | \ |
| 11993 | archive_expsym_cmds_CXX | \ |
| 11994 | module_cmds_CXX | \ |
| 11995 | module_expsym_cmds_CXX | \ |
| 11996 | old_archive_from_expsyms_cmds_CXX | \ |
| 11997 | export_symbols_cmds_CXX | \ |
| 11998 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 11999 | postinstall_cmds | postuninstall_cmds | \ |
| 12000 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 12001 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 12002 | # Double-quote double-evaled strings. |
| 12003 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 12004 | ;; |
| 12005 | *) |
| 12006 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 12007 | ;; |
| 12008 | esac |
| 12009 | done |
| 12010 | |
| 12011 | case $lt_echo in |
| 12012 | *'\$0 --fallback-echo"') |
| 12013 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 12014 | ;; |
| 12015 | esac |
| 12016 | |
| 12017 | cfgfile="$ofile" |
| 12018 | |
| 12019 | cat <<__EOF__ >> "$cfgfile" |
| 12020 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 12021 | |
| 12022 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 12023 | |
| 12024 | # Shell to use when invoking shell scripts. |
| 12025 | SHELL=$lt_SHELL |
| 12026 | |
| 12027 | # Whether or not to build shared libraries. |
| 12028 | build_libtool_libs=$enable_shared |
| 12029 | |
| 12030 | # Whether or not to build static libraries. |
| 12031 | build_old_libs=$enable_static |
| 12032 | |
| 12033 | # Whether or not to add -lc for building shared libraries. |
| 12034 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 12035 | |
| 12036 | # Whether or not to disallow shared libs when runtime libs are static |
| 12037 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 12038 | |
| 12039 | # Whether or not to optimize for fast installation. |
| 12040 | fast_install=$enable_fast_install |
| 12041 | |
| 12042 | # The host system. |
| 12043 | host_alias=$host_alias |
| 12044 | host=$host |
| 12045 | |
| 12046 | # An echo program that does not interpret backslashes. |
| 12047 | echo=$lt_echo |
| 12048 | |
| 12049 | # The archiver. |
| 12050 | AR=$lt_AR |
| 12051 | AR_FLAGS=$lt_AR_FLAGS |
| 12052 | |
| 12053 | # A C compiler. |
| 12054 | LTCC=$lt_LTCC |
| 12055 | |
| 12056 | # A language-specific compiler. |
| 12057 | CC=$lt_compiler_CXX |
| 12058 | |
| 12059 | # Is the compiler the GNU C compiler? |
| 12060 | with_gcc=$GCC_CXX |
| 12061 | |
| 12062 | # An ERE matcher. |
| 12063 | EGREP=$lt_EGREP |
| 12064 | |
| 12065 | # The linker used to build libraries. |
| 12066 | LD=$lt_LD_CXX |
| 12067 | |
| 12068 | # Whether we need hard or soft links. |
| 12069 | LN_S=$lt_LN_S |
| 12070 | |
| 12071 | # A BSD-compatible nm program. |
| 12072 | NM=$lt_NM |
| 12073 | |
| 12074 | # A symbol stripping program |
| 12075 | STRIP=$lt_STRIP |
| 12076 | |
| 12077 | # Used to examine libraries when file_magic_cmd begins "file" |
| 12078 | MAGIC_CMD=$MAGIC_CMD |
| 12079 | |
| 12080 | # Used on cygwin: DLL creation program. |
| 12081 | DLLTOOL="$DLLTOOL" |
| 12082 | |
| 12083 | # Used on cygwin: object dumper. |
| 12084 | OBJDUMP="$OBJDUMP" |
| 12085 | |
| 12086 | # Used on cygwin: assembler. |
| 12087 | AS="$AS" |
| 12088 | |
| 12089 | # The name of the directory that contains temporary libtool files. |
| 12090 | objdir=$objdir |
| 12091 | |
| 12092 | # How to create reloadable object files. |
| 12093 | reload_flag=$lt_reload_flag |
| 12094 | reload_cmds=$lt_reload_cmds |
| 12095 | |
| 12096 | # How to pass a linker flag through the compiler. |
| 12097 | wl=$lt_lt_prog_compiler_wl_CXX |
| 12098 | |
| 12099 | # Object file suffix (normally "o"). |
| 12100 | objext="$ac_objext" |
| 12101 | |
| 12102 | # Old archive suffix (normally "a"). |
| 12103 | libext="$libext" |
| 12104 | |
| 12105 | # Shared library suffix (normally ".so"). |
| 12106 | shrext='$shrext' |
| 12107 | |
| 12108 | # Executable file suffix (normally ""). |
| 12109 | exeext="$exeext" |
| 12110 | |
| 12111 | # Additional compiler flags for building library objects. |
| 12112 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 12113 | pic_mode=$pic_mode |
| 12114 | |
| 12115 | # What is the maximum length of a command? |
| 12116 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 12117 | |
| 12118 | # Does compiler simultaneously support -c and -o options? |
| 12119 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 12120 | |
| 12121 | # Must we lock files when doing compilation ? |
| 12122 | need_locks=$lt_need_locks |
| 12123 | |
| 12124 | # Do we need the lib prefix for modules? |
| 12125 | need_lib_prefix=$need_lib_prefix |
| 12126 | |
| 12127 | # Do we need a version for libraries? |
| 12128 | need_version=$need_version |
| 12129 | |
| 12130 | # Whether dlopen is supported. |
| 12131 | dlopen_support=$enable_dlopen |
| 12132 | |
| 12133 | # Whether dlopen of programs is supported. |
| 12134 | dlopen_self=$enable_dlopen_self |
| 12135 | |
| 12136 | # Whether dlopen of statically linked programs is supported. |
| 12137 | dlopen_self_static=$enable_dlopen_self_static |
| 12138 | |
| 12139 | # Compiler flag to prevent dynamic linking. |
| 12140 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 12141 | |
| 12142 | # Compiler flag to turn off builtin functions. |
| 12143 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 12144 | |
| 12145 | # Compiler flag to allow reflexive dlopens. |
| 12146 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 12147 | |
| 12148 | # Compiler flag to generate shared objects directly from archives. |
| 12149 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 12150 | |
| 12151 | # Compiler flag to generate thread-safe objects. |
| 12152 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 12153 | |
| 12154 | # Library versioning type. |
| 12155 | version_type=$version_type |
| 12156 | |
| 12157 | # Format of library name prefix. |
| 12158 | libname_spec=$lt_libname_spec |
| 12159 | |
| 12160 | # List of archive names. First name is the real one, the rest are links. |
| 12161 | # The last name is the one that the linker finds with -lNAME. |
| 12162 | library_names_spec=$lt_library_names_spec |
| 12163 | |
| 12164 | # The coded name of the library, if different from the real name. |
| 12165 | soname_spec=$lt_soname_spec |
| 12166 | |
| 12167 | # Commands used to build and install an old-style archive. |
| 12168 | RANLIB=$lt_RANLIB |
| 12169 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 12170 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 12171 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 12172 | |
| 12173 | # Create an old-style archive from a shared archive. |
| 12174 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 12175 | |
| 12176 | # Create a temporary old-style archive to link instead of a shared archive. |
| 12177 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 12178 | |
| 12179 | # Commands used to build and install a shared archive. |
| 12180 | archive_cmds=$lt_archive_cmds_CXX |
| 12181 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 12182 | postinstall_cmds=$lt_postinstall_cmds |
| 12183 | postuninstall_cmds=$lt_postuninstall_cmds |
| 12184 | |
| 12185 | # Commands used to build a loadable module (assumed same as above if empty) |
| 12186 | module_cmds=$lt_module_cmds_CXX |
| 12187 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 12188 | |
| 12189 | # Commands to strip libraries. |
| 12190 | old_striplib=$lt_old_striplib |
| 12191 | striplib=$lt_striplib |
| 12192 | |
| 12193 | # Dependencies to place before the objects being linked to create a |
| 12194 | # shared library. |
| 12195 | predep_objects=$lt_predep_objects_CXX |
| 12196 | |
| 12197 | # Dependencies to place after the objects being linked to create a |
| 12198 | # shared library. |
| 12199 | postdep_objects=$lt_postdep_objects_CXX |
| 12200 | |
| 12201 | # Dependencies to place before the objects being linked to create a |
| 12202 | # shared library. |
| 12203 | predeps=$lt_predeps_CXX |
| 12204 | |
| 12205 | # Dependencies to place after the objects being linked to create a |
| 12206 | # shared library. |
| 12207 | postdeps=$lt_postdeps_CXX |
| 12208 | |
| 12209 | # The library search path used internally by the compiler when linking |
| 12210 | # a shared library. |
| 12211 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 12212 | |
| 12213 | # Method to check whether dependent libraries are shared objects. |
| 12214 | deplibs_check_method=$lt_deplibs_check_method |
| 12215 | |
| 12216 | # Command to use when deplibs_check_method == file_magic. |
| 12217 | file_magic_cmd=$lt_file_magic_cmd |
| 12218 | |
| 12219 | # Flag that allows shared libraries with undefined symbols to be built. |
| 12220 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 12221 | |
| 12222 | # Flag that forces no undefined symbols. |
| 12223 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 12224 | |
| 12225 | # Commands used to finish a libtool library installation in a directory. |
| 12226 | finish_cmds=$lt_finish_cmds |
| 12227 | |
| 12228 | # Same as above, but a single script fragment to be evaled but not shown. |
| 12229 | finish_eval=$lt_finish_eval |
| 12230 | |
| 12231 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 12232 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 12233 | |
| 12234 | # Transform the output of nm in a proper C declaration |
| 12235 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 12236 | |
| 12237 | # Transform the output of nm in a C name address pair |
| 12238 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 12239 | |
| 12240 | # This is the shared library runtime path variable. |
| 12241 | runpath_var=$runpath_var |
| 12242 | |
| 12243 | # This is the shared library path variable. |
| 12244 | shlibpath_var=$shlibpath_var |
| 12245 | |
| 12246 | # Is shlibpath searched before the hard-coded library search path? |
| 12247 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 12248 | |
| 12249 | # How to hardcode a shared library path into an executable. |
| 12250 | hardcode_action=$hardcode_action_CXX |
| 12251 | |
| 12252 | # Whether we should hardcode library paths into libraries. |
| 12253 | hardcode_into_libs=$hardcode_into_libs |
| 12254 | |
| 12255 | # Flag to hardcode \$libdir into a binary during linking. |
| 12256 | # This must work even if \$libdir does not exist. |
| 12257 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 12258 | |
| 12259 | # If ld is used when linking, flag to hardcode \$libdir into |
| 12260 | # a binary during linking. This must work even if \$libdir does |
| 12261 | # not exist. |
| 12262 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 12263 | |
| 12264 | # Whether we need a single -rpath flag with a separated argument. |
| 12265 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 12266 | |
| 12267 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 12268 | # resulting binary. |
| 12269 | hardcode_direct=$hardcode_direct_CXX |
| 12270 | |
| 12271 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 12272 | # resulting binary. |
| 12273 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 12274 | |
| 12275 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 12276 | # the resulting binary. |
| 12277 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 12278 | |
| 12279 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 12280 | # and all subsequent libraries and executables linked against it. |
| 12281 | hardcode_automatic=$hardcode_automatic_CXX |
| 12282 | |
| 12283 | # Variables whose values should be saved in libtool wrapper scripts and |
| 12284 | # restored at relink time. |
| 12285 | variables_saved_for_relink="$variables_saved_for_relink" |
| 12286 | |
| 12287 | # Whether libtool must link a program against all its dependency libraries. |
| 12288 | link_all_deplibs=$link_all_deplibs_CXX |
| 12289 | |
| 12290 | # Compile-time system search path for libraries |
| 12291 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 12292 | |
| 12293 | # Run-time system search path for libraries |
| 12294 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 12295 | |
| 12296 | # Fix the shell variable \$srcfile for the compiler. |
| 12297 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 12298 | |
| 12299 | # Set to yes if exported symbols are required. |
| 12300 | always_export_symbols=$always_export_symbols_CXX |
| 12301 | |
| 12302 | # The commands to list exported symbols. |
| 12303 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 12304 | |
| 12305 | # The commands to extract the exported symbol list from a shared archive. |
| 12306 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 12307 | |
| 12308 | # Symbols that should not be listed in the preloaded symbols. |
| 12309 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 12310 | |
| 12311 | # Symbols that must always be exported. |
| 12312 | include_expsyms=$lt_include_expsyms_CXX |
| 12313 | |
| 12314 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 12315 | |
| 12316 | __EOF__ |
| 12317 | |
| 12318 | |
| 12319 | else |
| 12320 | # If there is no Makefile yet, we rely on a make rule to execute |
| 12321 | # `config.status --recheck' to rerun these tests and create the |
| 12322 | # libtool script then. |
| 12323 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 12324 | if test -f "$ltmain_in"; then |
| 12325 | test -f Makefile && make "$ltmain" |
| 12326 | fi |
| 12327 | fi |
| 12328 | |
| 12329 | |
| 12330 | ac_ext=c |
| 12331 | ac_cpp='$CPP $CPPFLAGS' |
| 12332 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12333 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12334 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12335 | |
| 12336 | CC=$lt_save_CC |
| 12337 | LDCXX=$LD |
| 12338 | LD=$lt_save_LD |
| 12339 | GCC=$lt_save_GCC |
| 12340 | with_gnu_ldcxx=$with_gnu_ld |
| 12341 | with_gnu_ld=$lt_save_with_gnu_ld |
| 12342 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 12343 | lt_cv_path_LD=$lt_save_path_LD |
| 12344 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 12345 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 12346 | |
| 12347 | else |
| 12348 | tagname="" |
| 12349 | fi |
| 12350 | ;; |
| 12351 | |
| 12352 | F77) |
| 12353 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 12354 | |
| 12355 | ac_ext=f |
| 12356 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 12357 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12358 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 12359 | |
| 12360 | |
| 12361 | archive_cmds_need_lc_F77=no |
| 12362 | allow_undefined_flag_F77= |
| 12363 | always_export_symbols_F77=no |
| 12364 | archive_expsym_cmds_F77= |
| 12365 | export_dynamic_flag_spec_F77= |
| 12366 | hardcode_direct_F77=no |
| 12367 | hardcode_libdir_flag_spec_F77= |
| 12368 | hardcode_libdir_flag_spec_ld_F77= |
| 12369 | hardcode_libdir_separator_F77= |
| 12370 | hardcode_minus_L_F77=no |
| 12371 | hardcode_automatic_F77=no |
| 12372 | module_cmds_F77= |
| 12373 | module_expsym_cmds_F77= |
| 12374 | link_all_deplibs_F77=unknown |
| 12375 | old_archive_cmds_F77=$old_archive_cmds |
| 12376 | no_undefined_flag_F77= |
| 12377 | whole_archive_flag_spec_F77= |
| 12378 | enable_shared_with_static_runtimes_F77=no |
| 12379 | |
| 12380 | # Source file extension for f77 test sources. |
| 12381 | ac_ext=f |
| 12382 | |
| 12383 | # Object file extension for compiled f77 test sources. |
| 12384 | objext=o |
| 12385 | objext_F77=$objext |
| 12386 | |
| 12387 | # Code to be used in simple compile tests |
| 12388 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 12389 | |
| 12390 | # Code to be used in simple link tests |
| 12391 | lt_simple_link_test_code=" program t\n end\n" |
| 12392 | |
| 12393 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 12394 | |
| 12395 | # If no C compiler was specified, use CC. |
| 12396 | LTCC=${LTCC-"$CC"} |
| 12397 | |
| 12398 | # Allow CC to be a program name with arguments. |
| 12399 | compiler=$CC |
| 12400 | |
| 12401 | |
| 12402 | # Allow CC to be a program name with arguments. |
| 12403 | lt_save_CC="$CC" |
| 12404 | CC=${F77-"f77"} |
| 12405 | compiler=$CC |
| 12406 | compiler_F77=$CC |
| 12407 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 12408 | |
| 12409 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 12410 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 12411 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 12412 | echo "${ECHO_T}$can_build_shared" >&6 |
| 12413 | |
| 12414 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 12415 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 12416 | test "$can_build_shared" = "no" && enable_shared=no |
| 12417 | |
| 12418 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 12419 | # are all built from PIC. |
| 12420 | case "$host_os" in |
| 12421 | aix3*) |
| 12422 | test "$enable_shared" = yes && enable_static=no |
| 12423 | if test -n "$RANLIB"; then |
| 12424 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 12425 | postinstall_cmds='$RANLIB $lib' |
| 12426 | fi |
| 12427 | ;; |
| 12428 | aix4*) |
| 12429 | test "$enable_shared" = yes && enable_static=no |
| 12430 | ;; |
| 12431 | esac |
| 12432 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 12433 | echo "${ECHO_T}$enable_shared" >&6 |
| 12434 | |
| 12435 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 12436 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 12437 | # Make sure either enable_shared or enable_static is yes. |
| 12438 | test "$enable_shared" = yes || enable_static=yes |
| 12439 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 12440 | echo "${ECHO_T}$enable_static" >&6 |
| 12441 | |
| 12442 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 12443 | |
| 12444 | GCC_F77="$G77" |
| 12445 | LD_F77="$LD" |
| 12446 | |
| 12447 | lt_prog_compiler_wl_F77= |
| 12448 | lt_prog_compiler_pic_F77= |
| 12449 | lt_prog_compiler_static_F77= |
| 12450 | |
| 12451 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 12452 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 12453 | |
| 12454 | if test "$GCC" = yes; then |
| 12455 | lt_prog_compiler_wl_F77='-Wl,' |
| 12456 | lt_prog_compiler_static_F77='-static' |
| 12457 | |
| 12458 | case $host_os in |
| 12459 | aix*) |
| 12460 | # All AIX code is PIC. |
| 12461 | if test "$host_cpu" = ia64; then |
| 12462 | # AIX 5 now supports IA64 processor |
| 12463 | lt_prog_compiler_static_F77='-Bstatic' |
| 12464 | fi |
| 12465 | ;; |
| 12466 | |
| 12467 | amigaos*) |
| 12468 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 12469 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 12470 | # like `-m68040'. |
| 12471 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 12472 | ;; |
| 12473 | |
| 12474 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 12475 | # PIC is the default for these OSes. |
| 12476 | ;; |
| 12477 | |
| 12478 | mingw* | pw32* | os2*) |
| 12479 | # This hack is so that the source file can tell whether it is being |
| 12480 | # built for inclusion in a dll (and should export symbols for example). |
| 12481 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 12482 | ;; |
| 12483 | |
| 12484 | darwin* | rhapsody*) |
| 12485 | # PIC is the default on this platform |
| 12486 | # Common symbols not allowed in MH_DYLIB files |
| 12487 | lt_prog_compiler_pic_F77='-fno-common' |
| 12488 | ;; |
| 12489 | |
| 12490 | msdosdjgpp*) |
| 12491 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 12492 | # on systems that don't support them. |
| 12493 | lt_prog_compiler_can_build_shared_F77=no |
| 12494 | enable_shared=no |
| 12495 | ;; |
| 12496 | |
| 12497 | sysv4*MP*) |
| 12498 | if test -d /usr/nec; then |
| 12499 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 12500 | fi |
| 12501 | ;; |
| 12502 | |
| 12503 | hpux*) |
| 12504 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 12505 | # not for PA HP-UX. |
| 12506 | case "$host_cpu" in |
| 12507 | hppa*64*|ia64*) |
| 12508 | # +Z the default |
| 12509 | ;; |
| 12510 | *) |
| 12511 | lt_prog_compiler_pic_F77='-fPIC' |
| 12512 | ;; |
| 12513 | esac |
| 12514 | ;; |
| 12515 | |
| 12516 | *) |
| 12517 | lt_prog_compiler_pic_F77='-fPIC' |
| 12518 | ;; |
| 12519 | esac |
| 12520 | else |
| 12521 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 12522 | case $host_os in |
| 12523 | aix*) |
| 12524 | lt_prog_compiler_wl_F77='-Wl,' |
| 12525 | if test "$host_cpu" = ia64; then |
| 12526 | # AIX 5 now supports IA64 processor |
| 12527 | lt_prog_compiler_static_F77='-Bstatic' |
| 12528 | else |
| 12529 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 12530 | fi |
| 12531 | ;; |
| 12532 | |
| 12533 | mingw* | pw32* | os2*) |
| 12534 | # This hack is so that the source file can tell whether it is being |
| 12535 | # built for inclusion in a dll (and should export symbols for example). |
| 12536 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 12537 | ;; |
| 12538 | |
| 12539 | hpux9* | hpux10* | hpux11*) |
| 12540 | lt_prog_compiler_wl_F77='-Wl,' |
| 12541 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 12542 | # not for PA HP-UX. |
| 12543 | case "$host_cpu" in |
| 12544 | hppa*64*|ia64*) |
| 12545 | # +Z the default |
| 12546 | ;; |
| 12547 | *) |
| 12548 | lt_prog_compiler_pic_F77='+Z' |
| 12549 | ;; |
| 12550 | esac |
| 12551 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 12552 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 12553 | ;; |
| 12554 | |
| 12555 | irix5* | irix6* | nonstopux*) |
| 12556 | lt_prog_compiler_wl_F77='-Wl,' |
| 12557 | # PIC (with -KPIC) is the default. |
| 12558 | lt_prog_compiler_static_F77='-non_shared' |
| 12559 | ;; |
| 12560 | |
| 12561 | newsos6) |
| 12562 | lt_prog_compiler_pic_F77='-KPIC' |
| 12563 | lt_prog_compiler_static_F77='-Bstatic' |
| 12564 | ;; |
| 12565 | |
| 12566 | linux*) |
| 12567 | case $CC in |
| 12568 | icc* | ecc*) |
| 12569 | lt_prog_compiler_wl_F77='-Wl,' |
| 12570 | lt_prog_compiler_pic_F77='-KPIC' |
| 12571 | lt_prog_compiler_static_F77='-static' |
| 12572 | ;; |
| 12573 | ccc*) |
| 12574 | lt_prog_compiler_wl_F77='-Wl,' |
| 12575 | # All Alpha code is PIC. |
| 12576 | lt_prog_compiler_static_F77='-non_shared' |
| 12577 | ;; |
| 12578 | esac |
| 12579 | ;; |
| 12580 | |
| 12581 | osf3* | osf4* | osf5*) |
| 12582 | lt_prog_compiler_wl_F77='-Wl,' |
| 12583 | # All OSF/1 code is PIC. |
| 12584 | lt_prog_compiler_static_F77='-non_shared' |
| 12585 | ;; |
| 12586 | |
| 12587 | sco3.2v5*) |
| 12588 | lt_prog_compiler_pic_F77='-Kpic' |
| 12589 | lt_prog_compiler_static_F77='-dn' |
| 12590 | ;; |
| 12591 | |
| 12592 | solaris*) |
| 12593 | lt_prog_compiler_wl_F77='-Wl,' |
| 12594 | lt_prog_compiler_pic_F77='-KPIC' |
| 12595 | lt_prog_compiler_static_F77='-Bstatic' |
| 12596 | ;; |
| 12597 | |
| 12598 | sunos4*) |
| 12599 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 12600 | lt_prog_compiler_pic_F77='-PIC' |
| 12601 | lt_prog_compiler_static_F77='-Bstatic' |
| 12602 | ;; |
| 12603 | |
| 12604 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 12605 | lt_prog_compiler_wl_F77='-Wl,' |
| 12606 | lt_prog_compiler_pic_F77='-KPIC' |
| 12607 | lt_prog_compiler_static_F77='-Bstatic' |
| 12608 | ;; |
| 12609 | |
| 12610 | sysv4*MP*) |
| 12611 | if test -d /usr/nec ;then |
| 12612 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 12613 | lt_prog_compiler_static_F77='-Bstatic' |
| 12614 | fi |
| 12615 | ;; |
| 12616 | |
| 12617 | uts4*) |
| 12618 | lt_prog_compiler_pic_F77='-pic' |
| 12619 | lt_prog_compiler_static_F77='-Bstatic' |
| 12620 | ;; |
| 12621 | |
| 12622 | *) |
| 12623 | lt_prog_compiler_can_build_shared_F77=no |
| 12624 | ;; |
| 12625 | esac |
| 12626 | fi |
| 12627 | |
| 12628 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 12629 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
| 12630 | |
| 12631 | # |
| 12632 | # Check to make sure the PIC flag actually works. |
| 12633 | # |
| 12634 | if test -n "$lt_prog_compiler_pic_F77"; then |
| 12635 | |
| 12636 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| 12637 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
| 12638 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 12639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12640 | else |
| 12641 | lt_prog_compiler_pic_works_F77=no |
| 12642 | ac_outfile=conftest.$ac_objext |
| 12643 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12644 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 12645 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12646 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12647 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12648 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12649 | # The option is referenced via a variable to avoid confusing sed. |
| 12650 | lt_compile=`echo "$ac_compile" | $SED \ |
| 12651 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 12652 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12653 | -e 's:$: $lt_compiler_flag:'` |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 12654 | (eval echo "\"\$as_me:12654: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12655 | (eval "$lt_compile" 2>conftest.err) |
| 12656 | ac_status=$? |
| 12657 | cat conftest.err >&5 |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 12658 | echo "$as_me:12658: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12659 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 12660 | # The compiler can only warn and ignore the option if not recognized |
| 12661 | # So say no if there are warnings |
| 12662 | if test ! -s conftest.err; then |
| 12663 | lt_prog_compiler_pic_works_F77=yes |
| 12664 | fi |
| 12665 | fi |
| 12666 | $rm conftest* |
| 12667 | |
| 12668 | fi |
| 12669 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 12670 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
| 12671 | |
| 12672 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 12673 | case $lt_prog_compiler_pic_F77 in |
| 12674 | "" | " "*) ;; |
| 12675 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 12676 | esac |
| 12677 | else |
| 12678 | lt_prog_compiler_pic_F77= |
| 12679 | lt_prog_compiler_can_build_shared_F77=no |
| 12680 | fi |
| 12681 | |
| 12682 | fi |
| 12683 | case "$host_os" in |
| 12684 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 12685 | *djgpp*) |
| 12686 | lt_prog_compiler_pic_F77= |
| 12687 | ;; |
| 12688 | *) |
| 12689 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 12690 | ;; |
| 12691 | esac |
| 12692 | |
| 12693 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 12694 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 12695 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 12696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12697 | else |
| 12698 | lt_cv_prog_compiler_c_o_F77=no |
| 12699 | $rm -r conftest 2>/dev/null |
| 12700 | mkdir conftest |
| 12701 | cd conftest |
| 12702 | mkdir out |
| 12703 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12704 | |
| 12705 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 12706 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12707 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12708 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12709 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12710 | lt_compile=`echo "$ac_compile" | $SED \ |
| 12711 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 12712 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12713 | -e 's:$: $lt_compiler_flag:'` |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 12714 | (eval echo "\"\$as_me:12714: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12715 | (eval "$lt_compile" 2>out/conftest.err) |
| 12716 | ac_status=$? |
| 12717 | cat out/conftest.err >&5 |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 12718 | echo "$as_me:12718: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 12719 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 12720 | then |
| 12721 | # The compiler can only warn and ignore the option if not recognized |
| 12722 | # So say no if there are warnings |
| 12723 | if test ! -s out/conftest.err; then |
| 12724 | lt_cv_prog_compiler_c_o_F77=yes |
| 12725 | fi |
| 12726 | fi |
| 12727 | chmod u+w . |
| 12728 | $rm conftest* |
| 12729 | # SGI C++ compiler will create directory out/ii_files/ for |
| 12730 | # template instantiation |
| 12731 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 12732 | $rm out/* && rmdir out |
| 12733 | cd .. |
| 12734 | rmdir conftest |
| 12735 | $rm conftest* |
| 12736 | |
| 12737 | fi |
| 12738 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 12739 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
| 12740 | |
| 12741 | |
| 12742 | hard_links="nottested" |
| 12743 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 12744 | # do not overwrite the value of need_locks provided by the user |
| 12745 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 12746 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 12747 | hard_links=yes |
| 12748 | $rm conftest* |
| 12749 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 12750 | touch conftest.a |
| 12751 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 12752 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 12753 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 12754 | echo "${ECHO_T}$hard_links" >&6 |
| 12755 | if test "$hard_links" = no; then |
| 12756 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 12757 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 12758 | need_locks=warn |
| 12759 | fi |
| 12760 | else |
| 12761 | need_locks=no |
| 12762 | fi |
| 12763 | |
| 12764 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 12765 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 12766 | |
| 12767 | runpath_var= |
| 12768 | allow_undefined_flag_F77= |
| 12769 | enable_shared_with_static_runtimes_F77=no |
| 12770 | archive_cmds_F77= |
| 12771 | archive_expsym_cmds_F77= |
| 12772 | old_archive_From_new_cmds_F77= |
| 12773 | old_archive_from_expsyms_cmds_F77= |
| 12774 | export_dynamic_flag_spec_F77= |
| 12775 | whole_archive_flag_spec_F77= |
| 12776 | thread_safe_flag_spec_F77= |
| 12777 | hardcode_libdir_flag_spec_F77= |
| 12778 | hardcode_libdir_flag_spec_ld_F77= |
| 12779 | hardcode_libdir_separator_F77= |
| 12780 | hardcode_direct_F77=no |
| 12781 | hardcode_minus_L_F77=no |
| 12782 | hardcode_shlibpath_var_F77=unsupported |
| 12783 | link_all_deplibs_F77=unknown |
| 12784 | hardcode_automatic_F77=no |
| 12785 | module_cmds_F77= |
| 12786 | module_expsym_cmds_F77= |
| 12787 | always_export_symbols_F77=no |
| 12788 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 12789 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 12790 | # included in the symbol list |
| 12791 | include_expsyms_F77= |
| 12792 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 12793 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 12794 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 12795 | # as well as any symbol that contains `d'. |
| 12796 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 12797 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 12798 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 12799 | # the symbol is explicitly referenced. Since portable code cannot |
| 12800 | # rely on this symbol name, it's probably fine to never include it in |
| 12801 | # preloaded symbol tables. |
| 12802 | extract_expsyms_cmds= |
| 12803 | |
| 12804 | case $host_os in |
| 12805 | cygwin* | mingw* | pw32*) |
| 12806 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 12807 | # When not using gcc, we currently assume that we are using |
| 12808 | # Microsoft Visual C++. |
| 12809 | if test "$GCC" != yes; then |
| 12810 | with_gnu_ld=no |
| 12811 | fi |
| 12812 | ;; |
| 12813 | openbsd*) |
| 12814 | with_gnu_ld=no |
| 12815 | ;; |
| 12816 | esac |
| 12817 | |
| 12818 | ld_shlibs_F77=yes |
| 12819 | if test "$with_gnu_ld" = yes; then |
| 12820 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 12821 | wlarc='${wl}' |
| 12822 | |
| 12823 | # See if GNU ld supports shared libraries. |
| 12824 | case $host_os in |
| 12825 | aix3* | aix4* | aix5*) |
| 12826 | # On AIX/PPC, the GNU linker is very broken |
| 12827 | if test "$host_cpu" != ia64; then |
| 12828 | ld_shlibs_F77=no |
| 12829 | cat <<EOF 1>&2 |
| 12830 | |
| 12831 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 12832 | *** to be unable to reliably create shared libraries on AIX. |
| 12833 | *** Therefore, libtool is disabling shared libraries support. If you |
| 12834 | *** really care for shared libraries, you may want to modify your PATH |
| 12835 | *** so that a non-GNU linker is found, and then restart. |
| 12836 | |
| 12837 | EOF |
| 12838 | fi |
| 12839 | ;; |
| 12840 | |
| 12841 | amigaos*) |
| 12842 | archive_cmds_F77='$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)' |
| 12843 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 12844 | hardcode_minus_L_F77=yes |
| 12845 | |
| 12846 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 12847 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 12848 | # to version 4, is to share data among multiple programs linked |
| 12849 | # with the same dynamic library. Since this doesn't match the |
| 12850 | # behavior of shared libraries on other platforms, we can't use |
| 12851 | # them. |
| 12852 | ld_shlibs_F77=no |
| 12853 | ;; |
| 12854 | |
| 12855 | beos*) |
| 12856 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 12857 | allow_undefined_flag_F77=unsupported |
| 12858 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 12859 | # support --undefined. This deserves some investigation. FIXME |
| 12860 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12861 | else |
| 12862 | ld_shlibs_F77=no |
| 12863 | fi |
| 12864 | ;; |
| 12865 | |
| 12866 | cygwin* | mingw* | pw32*) |
| 12867 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 12868 | # as there is no search path for DLLs. |
| 12869 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 12870 | allow_undefined_flag_F77=unsupported |
| 12871 | always_export_symbols_F77=no |
| 12872 | enable_shared_with_static_runtimes_F77=yes |
| 12873 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 12874 | |
| 12875 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 12876 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 12877 | # If the export-symbols file already is a .def file (1st line |
| 12878 | # is EXPORTS), use it as is; otherwise, prepend... |
| 12879 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 12880 | cp $export_symbols $output_objdir/$soname.def; |
| 12881 | else |
| 12882 | echo EXPORTS > $output_objdir/$soname.def; |
| 12883 | cat $export_symbols >> $output_objdir/$soname.def; |
| 12884 | fi~ |
| 12885 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 12886 | else |
| 12887 | ld_shlibs=no |
| 12888 | fi |
| 12889 | ;; |
| 12890 | |
| 12891 | netbsd* | knetbsd*-gnu) |
| 12892 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 12893 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 12894 | wlarc= |
| 12895 | else |
| 12896 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12897 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12898 | fi |
| 12899 | ;; |
| 12900 | |
| 12901 | solaris* | sysv5*) |
| 12902 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 12903 | ld_shlibs_F77=no |
| 12904 | cat <<EOF 1>&2 |
| 12905 | |
| 12906 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 12907 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 12908 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 12909 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 12910 | *** your PATH or compiler configuration so that the native linker is |
| 12911 | *** used, and then restart. |
| 12912 | |
| 12913 | EOF |
| 12914 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 12915 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12916 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12917 | else |
| 12918 | ld_shlibs_F77=no |
| 12919 | fi |
| 12920 | ;; |
| 12921 | |
| 12922 | sunos4*) |
| 12923 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 12924 | wlarc= |
| 12925 | hardcode_direct_F77=yes |
| 12926 | hardcode_shlibpath_var_F77=no |
| 12927 | ;; |
| 12928 | |
| 12929 | linux*) |
| 12930 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 12931 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12932 | archive_cmds_F77="$tmp_archive_cmds" |
| 12933 | supports_anon_versioning=no |
| 12934 | case `$LD -v 2>/dev/null` in |
| 12935 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 12936 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 12937 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 12938 | *\ 2.11.*) ;; # other 2.11 versions |
| 12939 | *) supports_anon_versioning=yes ;; |
| 12940 | esac |
| 12941 | if test $supports_anon_versioning = yes; then |
| 12942 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 12943 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 12944 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 12945 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 12946 | else |
| 12947 | archive_expsym_cmds_F77="$tmp_archive_cmds" |
| 12948 | fi |
| 12949 | else |
| 12950 | ld_shlibs_F77=no |
| 12951 | fi |
| 12952 | ;; |
| 12953 | |
| 12954 | *) |
| 12955 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 12956 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12957 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12958 | else |
| 12959 | ld_shlibs_F77=no |
| 12960 | fi |
| 12961 | ;; |
| 12962 | esac |
| 12963 | |
| 12964 | if test "$ld_shlibs_F77" = yes; then |
| 12965 | runpath_var=LD_RUN_PATH |
| 12966 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 12967 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 12968 | # ancient GNU ld didn't support --whole-archive et. al. |
| 12969 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 12970 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 12971 | else |
| 12972 | whole_archive_flag_spec_F77= |
| 12973 | fi |
| 12974 | fi |
| 12975 | else |
| 12976 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 12977 | case $host_os in |
| 12978 | aix3*) |
| 12979 | allow_undefined_flag_F77=unsupported |
| 12980 | always_export_symbols_F77=yes |
| 12981 | archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
| 12982 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 12983 | # are no directories specified by -L. |
| 12984 | hardcode_minus_L_F77=yes |
| 12985 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 12986 | # Neither direct hardcoding nor static linking is supported with a |
| 12987 | # broken collect2. |
| 12988 | hardcode_direct_F77=unsupported |
| 12989 | fi |
| 12990 | ;; |
| 12991 | |
| 12992 | aix4* | aix5*) |
| 12993 | if test "$host_cpu" = ia64; then |
| 12994 | # On IA64, the linker does run time linking by default, so we don't |
| 12995 | # have to do anything special. |
| 12996 | aix_use_runtimelinking=no |
| 12997 | exp_sym_flag='-Bexport' |
| 12998 | no_entry_flag="" |
| 12999 | else |
| 13000 | # If we're using GNU nm, then we don't want the "-C" option. |
| 13001 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 13002 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 13003 | export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 13004 | else |
| 13005 | export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 13006 | fi |
| 13007 | aix_use_runtimelinking=no |
| 13008 | |
| 13009 | # Test if we are trying to use run time linking or normal |
| 13010 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 13011 | # need to do runtime linking. |
| 13012 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 13013 | for ld_flag in $LDFLAGS; do |
| 13014 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 13015 | aix_use_runtimelinking=yes |
| 13016 | break |
| 13017 | fi |
| 13018 | done |
| 13019 | esac |
| 13020 | |
| 13021 | exp_sym_flag='-bexport' |
| 13022 | no_entry_flag='-bnoentry' |
| 13023 | fi |
| 13024 | |
| 13025 | # When large executables or shared objects are built, AIX ld can |
| 13026 | # have problems creating the table of contents. If linking a library |
| 13027 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 13028 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 13029 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 13030 | |
| 13031 | archive_cmds_F77='' |
| 13032 | hardcode_direct_F77=yes |
| 13033 | hardcode_libdir_separator_F77=':' |
| 13034 | link_all_deplibs_F77=yes |
| 13035 | |
| 13036 | if test "$GCC" = yes; then |
| 13037 | case $host_os in aix4.012|aix4.012.*) |
| 13038 | # We only want to do this on AIX 4.2 and lower, the check |
| 13039 | # below for broken collect2 doesn't work under 4.3+ |
| 13040 | collect2name=`${CC} -print-prog-name=collect2` |
| 13041 | if test -f "$collect2name" && \ |
| 13042 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 13043 | then |
| 13044 | # We have reworked collect2 |
| 13045 | hardcode_direct_F77=yes |
| 13046 | else |
| 13047 | # We have old collect2 |
| 13048 | hardcode_direct_F77=unsupported |
| 13049 | # It fails to find uninstalled libraries when the uninstalled |
| 13050 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 13051 | # to unsupported forces relinking |
| 13052 | hardcode_minus_L_F77=yes |
| 13053 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13054 | hardcode_libdir_separator_F77= |
| 13055 | fi |
| 13056 | esac |
| 13057 | shared_flag='-shared' |
| 13058 | else |
| 13059 | # not using gcc |
| 13060 | if test "$host_cpu" = ia64; then |
| 13061 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 13062 | # chokes on -Wl,-G. The following line is correct: |
| 13063 | shared_flag='-G' |
| 13064 | else |
| 13065 | if test "$aix_use_runtimelinking" = yes; then |
| 13066 | shared_flag='${wl}-G' |
| 13067 | else |
| 13068 | shared_flag='${wl}-bM:SRE' |
| 13069 | fi |
| 13070 | fi |
| 13071 | fi |
| 13072 | |
| 13073 | # It seems that -bexpall does not export symbols beginning with |
| 13074 | # underscore (_), so it is better to generate a list of symbols to export. |
| 13075 | always_export_symbols_F77=yes |
| 13076 | if test "$aix_use_runtimelinking" = yes; then |
| 13077 | # Warning - without using the other runtime loading flags (-brtl), |
| 13078 | # -berok will link without error, but may produce a broken library. |
| 13079 | allow_undefined_flag_F77='-berok' |
| 13080 | # Determine the default libpath from the value encoded in an empty executable. |
| 13081 | cat >conftest.$ac_ext <<_ACEOF |
| 13082 | program main |
| 13083 | |
| 13084 | end |
| 13085 | _ACEOF |
| 13086 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13087 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13088 | (eval $ac_link) 2>conftest.er1 |
| 13089 | ac_status=$? |
| 13090 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13091 | rm -f conftest.er1 |
| 13092 | cat conftest.err >&5 |
| 13093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13094 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 13095 | { ac_try='test -z "$ac_f77_werror_flag" |
| 13096 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13098 | (eval $ac_try) 2>&5 |
| 13099 | ac_status=$? |
| 13100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13101 | (exit $ac_status); }; } && |
| 13102 | { ac_try='test -s conftest$ac_exeext' |
| 13103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13104 | (eval $ac_try) 2>&5 |
| 13105 | ac_status=$? |
| 13106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13107 | (exit $ac_status); }; }; then |
| 13108 | |
| 13109 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 13110 | }'` |
| 13111 | # Check for a 64-bit object if we didn't find anything. |
| 13112 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 13113 | }'`; fi |
| 13114 | else |
| 13115 | echo "$as_me: failed program was:" >&5 |
| 13116 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13117 | |
| 13118 | fi |
| 13119 | rm -f conftest.err conftest.$ac_objext \ |
| 13120 | conftest$ac_exeext conftest.$ac_ext |
| 13121 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 13122 | |
| 13123 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 13124 | archive_expsym_cmds_F77="\$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" |
| 13125 | else |
| 13126 | if test "$host_cpu" = ia64; then |
| 13127 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 13128 | allow_undefined_flag_F77="-z nodefs" |
| 13129 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 13130 | else |
| 13131 | # Determine the default libpath from the value encoded in an empty executable. |
| 13132 | cat >conftest.$ac_ext <<_ACEOF |
| 13133 | program main |
| 13134 | |
| 13135 | end |
| 13136 | _ACEOF |
| 13137 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13138 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13139 | (eval $ac_link) 2>conftest.er1 |
| 13140 | ac_status=$? |
| 13141 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13142 | rm -f conftest.er1 |
| 13143 | cat conftest.err >&5 |
| 13144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13145 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 13146 | { ac_try='test -z "$ac_f77_werror_flag" |
| 13147 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 13148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13149 | (eval $ac_try) 2>&5 |
| 13150 | ac_status=$? |
| 13151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13152 | (exit $ac_status); }; } && |
| 13153 | { ac_try='test -s conftest$ac_exeext' |
| 13154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13155 | (eval $ac_try) 2>&5 |
| 13156 | ac_status=$? |
| 13157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13158 | (exit $ac_status); }; }; then |
| 13159 | |
| 13160 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 13161 | }'` |
| 13162 | # Check for a 64-bit object if we didn't find anything. |
| 13163 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 13164 | }'`; fi |
| 13165 | else |
| 13166 | echo "$as_me: failed program was:" >&5 |
| 13167 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13168 | |
| 13169 | fi |
| 13170 | rm -f conftest.err conftest.$ac_objext \ |
| 13171 | conftest$ac_exeext conftest.$ac_ext |
| 13172 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 13173 | |
| 13174 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 13175 | # Warning - without using the other run time loading flags, |
| 13176 | # -berok will link without error, but may produce a broken library. |
| 13177 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 13178 | allow_undefined_flag_F77=' ${wl}-berok' |
| 13179 | # -bexpall does not export symbols beginning with underscore (_) |
| 13180 | always_export_symbols_F77=yes |
| 13181 | # Exported symbols can be pulled into shared objects from archives |
| 13182 | whole_archive_flag_spec_F77=' ' |
| 13183 | archive_cmds_need_lc_F77=yes |
| 13184 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 13185 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 13186 | fi |
| 13187 | fi |
| 13188 | ;; |
| 13189 | |
| 13190 | amigaos*) |
| 13191 | archive_cmds_F77='$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)' |
| 13192 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13193 | hardcode_minus_L_F77=yes |
| 13194 | # see comment about different semantics on the GNU ld section |
| 13195 | ld_shlibs_F77=no |
| 13196 | ;; |
| 13197 | |
| 13198 | bsdi4*) |
| 13199 | export_dynamic_flag_spec_F77=-rdynamic |
| 13200 | ;; |
| 13201 | |
| 13202 | cygwin* | mingw* | pw32*) |
| 13203 | # When not using gcc, we currently assume that we are using |
| 13204 | # Microsoft Visual C++. |
| 13205 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 13206 | # no search path for DLLs. |
| 13207 | hardcode_libdir_flag_spec_F77=' ' |
| 13208 | allow_undefined_flag_F77=unsupported |
| 13209 | # Tell ltmain to make .lib files, not .a files. |
| 13210 | libext=lib |
| 13211 | # Tell ltmain to make .dll files, not .so files. |
| 13212 | shrext=".dll" |
| 13213 | # FIXME: Setting linknames here is a bad hack. |
| 13214 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 13215 | # The linker will automatically build a .lib file if we build a DLL. |
| 13216 | old_archive_From_new_cmds_F77='true' |
| 13217 | # FIXME: Should let the user specify the lib program. |
| 13218 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 13219 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 13220 | enable_shared_with_static_runtimes_F77=yes |
| 13221 | ;; |
| 13222 | |
| 13223 | darwin* | rhapsody*) |
| 13224 | if test "$GXX" = yes ; then |
| 13225 | archive_cmds_need_lc_F77=no |
| 13226 | case "$host_os" in |
| 13227 | rhapsody* | darwin1.[012]) |
| 13228 | allow_undefined_flag_F77='-undefined suppress' |
| 13229 | ;; |
| 13230 | *) # Darwin 1.3 on |
| 13231 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 13232 | allow_undefined_flag_F77='-flat_namespace -undefined suppress' |
| 13233 | else |
| 13234 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 13235 | 10.[012]) |
| 13236 | allow_undefined_flag_F77='-flat_namespace -undefined suppress' |
| 13237 | ;; |
| 13238 | 10.*) |
| 13239 | allow_undefined_flag_F77='-undefined dynamic_lookup' |
| 13240 | ;; |
| 13241 | esac |
| 13242 | fi |
| 13243 | ;; |
| 13244 | esac |
| 13245 | lt_int_apple_cc_single_mod=no |
| 13246 | output_verbose_link_cmd='echo' |
| 13247 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 13248 | lt_int_apple_cc_single_mod=yes |
| 13249 | fi |
| 13250 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 13251 | archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 13252 | else |
| 13253 | archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 13254 | fi |
| 13255 | module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 13256 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 13257 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 13258 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 13259 | else |
| 13260 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 13261 | fi |
| 13262 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 13263 | hardcode_direct_F77=no |
| 13264 | hardcode_automatic_F77=yes |
| 13265 | hardcode_shlibpath_var_F77=unsupported |
| 13266 | whole_archive_flag_spec_F77='-all_load $convenience' |
| 13267 | link_all_deplibs_F77=yes |
| 13268 | else |
| 13269 | ld_shlibs_F77=no |
| 13270 | fi |
| 13271 | ;; |
| 13272 | |
| 13273 | dgux*) |
| 13274 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13275 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13276 | hardcode_shlibpath_var_F77=no |
| 13277 | ;; |
| 13278 | |
| 13279 | freebsd1*) |
| 13280 | ld_shlibs_F77=no |
| 13281 | ;; |
| 13282 | |
| 13283 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 13284 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 13285 | # does not break anything, and helps significantly (at the cost of a little |
| 13286 | # extra space). |
| 13287 | freebsd2.2*) |
| 13288 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 13289 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 13290 | hardcode_direct_F77=yes |
| 13291 | hardcode_shlibpath_var_F77=no |
| 13292 | ;; |
| 13293 | |
| 13294 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 13295 | freebsd2*) |
| 13296 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 13297 | hardcode_direct_F77=yes |
| 13298 | hardcode_minus_L_F77=yes |
| 13299 | hardcode_shlibpath_var_F77=no |
| 13300 | ;; |
| 13301 | |
| 13302 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 13303 | freebsd* | kfreebsd*-gnu) |
| 13304 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 13305 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 13306 | hardcode_direct_F77=yes |
| 13307 | hardcode_shlibpath_var_F77=no |
| 13308 | ;; |
| 13309 | |
| 13310 | hpux9*) |
| 13311 | if test "$GCC" = yes; then |
| 13312 | archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 13313 | else |
| 13314 | archive_cmds_F77='$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' |
| 13315 | fi |
| 13316 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 13317 | hardcode_libdir_separator_F77=: |
| 13318 | hardcode_direct_F77=yes |
| 13319 | |
| 13320 | # hardcode_minus_L: Not really in the search PATH, |
| 13321 | # but as the default location of the library. |
| 13322 | hardcode_minus_L_F77=yes |
| 13323 | export_dynamic_flag_spec_F77='${wl}-E' |
| 13324 | ;; |
| 13325 | |
| 13326 | hpux10* | hpux11*) |
| 13327 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 13328 | case "$host_cpu" in |
| 13329 | hppa*64*|ia64*) |
| 13330 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13331 | ;; |
| 13332 | *) |
| 13333 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 13334 | ;; |
| 13335 | esac |
| 13336 | else |
| 13337 | case "$host_cpu" in |
| 13338 | hppa*64*|ia64*) |
| 13339 | archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13340 | ;; |
| 13341 | *) |
| 13342 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 13343 | ;; |
| 13344 | esac |
| 13345 | fi |
| 13346 | if test "$with_gnu_ld" = no; then |
| 13347 | case "$host_cpu" in |
| 13348 | hppa*64*) |
| 13349 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 13350 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 13351 | hardcode_libdir_separator_F77=: |
| 13352 | hardcode_direct_F77=no |
| 13353 | hardcode_shlibpath_var_F77=no |
| 13354 | ;; |
| 13355 | ia64*) |
| 13356 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13357 | hardcode_direct_F77=no |
| 13358 | hardcode_shlibpath_var_F77=no |
| 13359 | |
| 13360 | # hardcode_minus_L: Not really in the search PATH, |
| 13361 | # but as the default location of the library. |
| 13362 | hardcode_minus_L_F77=yes |
| 13363 | ;; |
| 13364 | *) |
| 13365 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 13366 | hardcode_libdir_separator_F77=: |
| 13367 | hardcode_direct_F77=yes |
| 13368 | export_dynamic_flag_spec_F77='${wl}-E' |
| 13369 | |
| 13370 | # hardcode_minus_L: Not really in the search PATH, |
| 13371 | # but as the default location of the library. |
| 13372 | hardcode_minus_L_F77=yes |
| 13373 | ;; |
| 13374 | esac |
| 13375 | fi |
| 13376 | ;; |
| 13377 | |
| 13378 | irix5* | irix6* | nonstopux*) |
| 13379 | if test "$GCC" = yes; then |
| 13380 | archive_cmds_F77='$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' |
| 13381 | else |
| 13382 | archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 13383 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 13384 | fi |
| 13385 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 13386 | hardcode_libdir_separator_F77=: |
| 13387 | link_all_deplibs_F77=yes |
| 13388 | ;; |
| 13389 | |
| 13390 | netbsd* | knetbsd*-gnu) |
| 13391 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 13392 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 13393 | else |
| 13394 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 13395 | fi |
| 13396 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 13397 | hardcode_direct_F77=yes |
| 13398 | hardcode_shlibpath_var_F77=no |
| 13399 | ;; |
| 13400 | |
| 13401 | newsos6) |
| 13402 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13403 | hardcode_direct_F77=yes |
| 13404 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 13405 | hardcode_libdir_separator_F77=: |
| 13406 | hardcode_shlibpath_var_F77=no |
| 13407 | ;; |
| 13408 | |
| 13409 | openbsd*) |
| 13410 | hardcode_direct_F77=yes |
| 13411 | hardcode_shlibpath_var_F77=no |
| 13412 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 13413 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 13414 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 13415 | export_dynamic_flag_spec_F77='${wl}-E' |
| 13416 | else |
| 13417 | case $host_os in |
| 13418 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 13419 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 13420 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 13421 | ;; |
| 13422 | *) |
| 13423 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 13424 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 13425 | ;; |
| 13426 | esac |
| 13427 | fi |
| 13428 | ;; |
| 13429 | |
| 13430 | os2*) |
| 13431 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13432 | hardcode_minus_L_F77=yes |
| 13433 | allow_undefined_flag_F77=unsupported |
| 13434 | archive_cmds_F77='$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' |
| 13435 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 13436 | ;; |
| 13437 | |
| 13438 | osf3*) |
| 13439 | if test "$GCC" = yes; then |
| 13440 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 13441 | archive_cmds_F77='$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' |
| 13442 | else |
| 13443 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 13444 | archive_cmds_F77='$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' |
| 13445 | fi |
| 13446 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 13447 | hardcode_libdir_separator_F77=: |
| 13448 | ;; |
| 13449 | |
| 13450 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 13451 | if test "$GCC" = yes; then |
| 13452 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 13453 | archive_cmds_F77='$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' |
| 13454 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 13455 | else |
| 13456 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 13457 | archive_cmds_F77='$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' |
| 13458 | archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 13459 | $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' |
| 13460 | |
| 13461 | # Both c and cxx compiler support -rpath directly |
| 13462 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 13463 | fi |
| 13464 | hardcode_libdir_separator_F77=: |
| 13465 | ;; |
| 13466 | |
| 13467 | sco3.2v5*) |
| 13468 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13469 | hardcode_shlibpath_var_F77=no |
| 13470 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
| 13471 | runpath_var=LD_RUN_PATH |
| 13472 | hardcode_runpath_var=yes |
| 13473 | ;; |
| 13474 | |
| 13475 | solaris*) |
| 13476 | no_undefined_flag_F77=' -z text' |
| 13477 | if test "$GCC" = yes; then |
| 13478 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13479 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 13480 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 13481 | else |
| 13482 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13483 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 13484 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 13485 | fi |
| 13486 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 13487 | hardcode_shlibpath_var_F77=no |
| 13488 | case $host_os in |
| 13489 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 13490 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 13491 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 13492 | esac |
| 13493 | link_all_deplibs_F77=yes |
| 13494 | ;; |
| 13495 | |
| 13496 | sunos4*) |
| 13497 | if test "x$host_vendor" = xsequent; then |
| 13498 | # Use $CC to link under sequent, because it throws in some extra .o |
| 13499 | # files that make .init and .fini sections work. |
| 13500 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13501 | else |
| 13502 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 13503 | fi |
| 13504 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13505 | hardcode_direct_F77=yes |
| 13506 | hardcode_minus_L_F77=yes |
| 13507 | hardcode_shlibpath_var_F77=no |
| 13508 | ;; |
| 13509 | |
| 13510 | sysv4) |
| 13511 | case $host_vendor in |
| 13512 | sni) |
| 13513 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13514 | hardcode_direct_F77=yes # is this really true??? |
| 13515 | ;; |
| 13516 | siemens) |
| 13517 | ## LD is ld it makes a PLAMLIB |
| 13518 | ## CC just makes a GrossModule. |
| 13519 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 13520 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 13521 | hardcode_direct_F77=no |
| 13522 | ;; |
| 13523 | motorola) |
| 13524 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13525 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 13526 | ;; |
| 13527 | esac |
| 13528 | runpath_var='LD_RUN_PATH' |
| 13529 | hardcode_shlibpath_var_F77=no |
| 13530 | ;; |
| 13531 | |
| 13532 | sysv4.3*) |
| 13533 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13534 | hardcode_shlibpath_var_F77=no |
| 13535 | export_dynamic_flag_spec_F77='-Bexport' |
| 13536 | ;; |
| 13537 | |
| 13538 | sysv4*MP*) |
| 13539 | if test -d /usr/nec; then |
| 13540 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13541 | hardcode_shlibpath_var_F77=no |
| 13542 | runpath_var=LD_RUN_PATH |
| 13543 | hardcode_runpath_var=yes |
| 13544 | ld_shlibs_F77=yes |
| 13545 | fi |
| 13546 | ;; |
| 13547 | |
| 13548 | sysv4.2uw2*) |
| 13549 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 13550 | hardcode_direct_F77=yes |
| 13551 | hardcode_minus_L_F77=no |
| 13552 | hardcode_shlibpath_var_F77=no |
| 13553 | hardcode_runpath_var=yes |
| 13554 | runpath_var=LD_RUN_PATH |
| 13555 | ;; |
| 13556 | |
| 13557 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 13558 | no_undefined_flag_F77='${wl}-z ${wl}text' |
| 13559 | if test "$GCC" = yes; then |
| 13560 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13561 | else |
| 13562 | archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13563 | fi |
| 13564 | runpath_var='LD_RUN_PATH' |
| 13565 | hardcode_shlibpath_var_F77=no |
| 13566 | ;; |
| 13567 | |
| 13568 | sysv5*) |
| 13569 | no_undefined_flag_F77=' -z text' |
| 13570 | # $CC -shared without GNU ld will not create a library from C++ |
| 13571 | # object files and a static libstdc++, better avoid it by now |
| 13572 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13573 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 13574 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 13575 | hardcode_libdir_flag_spec_F77= |
| 13576 | hardcode_shlibpath_var_F77=no |
| 13577 | runpath_var='LD_RUN_PATH' |
| 13578 | ;; |
| 13579 | |
| 13580 | uts4*) |
| 13581 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13582 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 13583 | hardcode_shlibpath_var_F77=no |
| 13584 | ;; |
| 13585 | |
| 13586 | *) |
| 13587 | ld_shlibs_F77=no |
| 13588 | ;; |
| 13589 | esac |
| 13590 | fi |
| 13591 | |
| 13592 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 13593 | echo "${ECHO_T}$ld_shlibs_F77" >&6 |
| 13594 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 13595 | |
| 13596 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 13597 | if test "$GCC" = yes; then |
| 13598 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 13599 | fi |
| 13600 | |
| 13601 | # |
| 13602 | # Do we need to explicitly link libc? |
| 13603 | # |
| 13604 | case "x$archive_cmds_need_lc_F77" in |
| 13605 | x|xyes) |
| 13606 | # Assume -lc should be added |
| 13607 | archive_cmds_need_lc_F77=yes |
| 13608 | |
| 13609 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 13610 | case $archive_cmds_F77 in |
| 13611 | *'~'*) |
| 13612 | # FIXME: we may have to deal with multi-command sequences. |
| 13613 | ;; |
| 13614 | '$CC '*) |
| 13615 | # Test whether the compiler implicitly links with -lc since on some |
| 13616 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 13617 | # to ld, don't add -lc before -lgcc. |
| 13618 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 13619 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 13620 | $rm conftest* |
| 13621 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13622 | |
| 13623 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13624 | (eval $ac_compile) 2>&5 |
| 13625 | ac_status=$? |
| 13626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13627 | (exit $ac_status); } 2>conftest.err; then |
| 13628 | soname=conftest |
| 13629 | lib=conftest |
| 13630 | libobjs=conftest.$ac_objext |
| 13631 | deplibs= |
| 13632 | wl=$lt_prog_compiler_wl_F77 |
| 13633 | compiler_flags=-v |
| 13634 | linker_flags=-v |
| 13635 | verstring= |
| 13636 | output_objdir=. |
| 13637 | libname=conftest |
| 13638 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 13639 | allow_undefined_flag_F77= |
| 13640 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 13641 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 13642 | ac_status=$? |
| 13643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13644 | (exit $ac_status); } |
| 13645 | then |
| 13646 | archive_cmds_need_lc_F77=no |
| 13647 | else |
| 13648 | archive_cmds_need_lc_F77=yes |
| 13649 | fi |
| 13650 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 13651 | else |
| 13652 | cat conftest.err 1>&5 |
| 13653 | fi |
| 13654 | $rm conftest* |
| 13655 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 13656 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
| 13657 | ;; |
| 13658 | esac |
| 13659 | fi |
| 13660 | ;; |
| 13661 | esac |
| 13662 | |
| 13663 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 13664 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 13665 | library_names_spec= |
| 13666 | libname_spec='lib$name' |
| 13667 | soname_spec= |
| 13668 | shrext=".so" |
| 13669 | postinstall_cmds= |
| 13670 | postuninstall_cmds= |
| 13671 | finish_cmds= |
| 13672 | finish_eval= |
| 13673 | shlibpath_var= |
| 13674 | shlibpath_overrides_runpath=unknown |
| 13675 | version_type=none |
| 13676 | dynamic_linker="$host_os ld.so" |
| 13677 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 13678 | if test "$GCC" = yes; then |
| 13679 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 13680 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 13681 | # if the path contains ";" then we assume it to be the separator |
| 13682 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 13683 | # assumed that no part of a normal pathname contains ";" but that should |
| 13684 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 13685 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 13686 | else |
| 13687 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 13688 | fi |
| 13689 | else |
| 13690 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 13691 | fi |
| 13692 | need_lib_prefix=unknown |
| 13693 | hardcode_into_libs=no |
| 13694 | |
| 13695 | # when you set need_version to no, make sure it does not cause -set_version |
| 13696 | # flags to be left without arguments |
| 13697 | need_version=unknown |
| 13698 | |
| 13699 | case $host_os in |
| 13700 | aix3*) |
| 13701 | version_type=linux |
| 13702 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 13703 | shlibpath_var=LIBPATH |
| 13704 | |
| 13705 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 13706 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13707 | ;; |
| 13708 | |
| 13709 | aix4* | aix5*) |
| 13710 | version_type=linux |
| 13711 | need_lib_prefix=no |
| 13712 | need_version=no |
| 13713 | hardcode_into_libs=yes |
| 13714 | if test "$host_cpu" = ia64; then |
| 13715 | # AIX 5 supports IA64 |
| 13716 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 13717 | shlibpath_var=LD_LIBRARY_PATH |
| 13718 | else |
| 13719 | # With GCC up to 2.95.x, collect2 would create an import file |
| 13720 | # for dependence libraries. The import file would start with |
| 13721 | # the line `#! .'. This would cause the generated library to |
| 13722 | # depend on `.', always an invalid library. This was fixed in |
| 13723 | # development snapshots of GCC prior to 3.0. |
| 13724 | case $host_os in |
| 13725 | aix4 | aix4.[01] | aix4.[01].*) |
| 13726 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 13727 | echo ' yes ' |
| 13728 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 13729 | : |
| 13730 | else |
| 13731 | can_build_shared=no |
| 13732 | fi |
| 13733 | ;; |
| 13734 | esac |
| 13735 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 13736 | # soname into executable. Probably we can add versioning support to |
| 13737 | # collect2, so additional links can be useful in future. |
| 13738 | if test "$aix_use_runtimelinking" = yes; then |
| 13739 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 13740 | # instead of lib<name>.a to let people know that these are not |
| 13741 | # typical AIX shared libraries. |
| 13742 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13743 | else |
| 13744 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 13745 | # and later when we are not doing run time linking. |
| 13746 | library_names_spec='${libname}${release}.a $libname.a' |
| 13747 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13748 | fi |
| 13749 | shlibpath_var=LIBPATH |
| 13750 | fi |
| 13751 | ;; |
| 13752 | |
| 13753 | amigaos*) |
| 13754 | library_names_spec='$libname.ixlibrary $libname.a' |
| 13755 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 13756 | 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' |
| 13757 | ;; |
| 13758 | |
| 13759 | beos*) |
| 13760 | library_names_spec='${libname}${shared_ext}' |
| 13761 | dynamic_linker="$host_os ld.so" |
| 13762 | shlibpath_var=LIBRARY_PATH |
| 13763 | ;; |
| 13764 | |
| 13765 | bsdi4*) |
| 13766 | version_type=linux |
| 13767 | need_version=no |
| 13768 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13769 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13770 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 13771 | shlibpath_var=LD_LIBRARY_PATH |
| 13772 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 13773 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 13774 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 13775 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 13776 | # libtool to hard-code these into programs |
| 13777 | ;; |
| 13778 | |
| 13779 | cygwin* | mingw* | pw32*) |
| 13780 | version_type=windows |
| 13781 | shrext=".dll" |
| 13782 | need_version=no |
| 13783 | need_lib_prefix=no |
| 13784 | |
| 13785 | case $GCC,$host_os in |
| 13786 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 13787 | library_names_spec='$libname.dll.a' |
| 13788 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 13789 | postinstall_cmds='base_file=`basename \${file}`~ |
| 13790 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 13791 | dldir=$destdir/`dirname \$dlpath`~ |
| 13792 | test -d \$dldir || mkdir -p \$dldir~ |
| 13793 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 13794 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 13795 | dlpath=$dir/\$dldll~ |
| 13796 | $rm \$dlpath' |
| 13797 | shlibpath_overrides_runpath=yes |
| 13798 | |
| 13799 | case $host_os in |
| 13800 | cygwin*) |
| 13801 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 13802 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13803 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 13804 | ;; |
| 13805 | mingw*) |
| 13806 | # MinGW DLLs use traditional 'lib' prefix |
| 13807 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13808 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 13809 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 13810 | # It is most probably a Windows format PATH printed by |
| 13811 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 13812 | # path with ; separators, and with drive letters. We can handle the |
| 13813 | # drive letters (cygwin fileutils understands them), so leave them, |
| 13814 | # especially as we might pass files found there to a mingw objdump, |
| 13815 | # which wouldn't understand a cygwinified path. Ahh. |
| 13816 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 13817 | else |
| 13818 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 13819 | fi |
| 13820 | ;; |
| 13821 | pw32*) |
| 13822 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 13823 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 13824 | ;; |
| 13825 | esac |
| 13826 | ;; |
| 13827 | |
| 13828 | *) |
| 13829 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 13830 | ;; |
| 13831 | esac |
| 13832 | dynamic_linker='Win32 ld.exe' |
| 13833 | # FIXME: first we should search . and the directory the executable is in |
| 13834 | shlibpath_var=PATH |
| 13835 | ;; |
| 13836 | |
| 13837 | darwin* | rhapsody*) |
| 13838 | dynamic_linker="$host_os dyld" |
| 13839 | version_type=darwin |
| 13840 | need_lib_prefix=no |
| 13841 | need_version=no |
| 13842 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 13843 | soname_spec='${libname}${release}${major}$shared_ext' |
| 13844 | shlibpath_overrides_runpath=yes |
| 13845 | shlibpath_var=DYLD_LIBRARY_PATH |
| 13846 | shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
| 13847 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 13848 | if test "$GCC" = yes; then |
| 13849 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
| 13850 | else |
| 13851 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 13852 | fi |
| 13853 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 13854 | ;; |
| 13855 | |
| 13856 | dgux*) |
| 13857 | version_type=linux |
| 13858 | need_lib_prefix=no |
| 13859 | need_version=no |
| 13860 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 13861 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13862 | shlibpath_var=LD_LIBRARY_PATH |
| 13863 | ;; |
| 13864 | |
| 13865 | freebsd1*) |
| 13866 | dynamic_linker=no |
| 13867 | ;; |
| 13868 | |
| 13869 | kfreebsd*-gnu) |
| 13870 | version_type=linux |
| 13871 | need_lib_prefix=no |
| 13872 | need_version=no |
| 13873 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13874 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13875 | shlibpath_var=LD_LIBRARY_PATH |
| 13876 | shlibpath_overrides_runpath=no |
| 13877 | hardcode_into_libs=yes |
| 13878 | dynamic_linker='GNU ld.so' |
| 13879 | ;; |
| 13880 | |
| 13881 | freebsd*) |
| 13882 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 13883 | version_type=freebsd-$objformat |
| 13884 | case $version_type in |
| 13885 | freebsd-elf*) |
| 13886 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13887 | need_version=no |
| 13888 | need_lib_prefix=no |
| 13889 | ;; |
| 13890 | freebsd-*) |
| 13891 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 13892 | need_version=yes |
| 13893 | ;; |
| 13894 | esac |
| 13895 | shlibpath_var=LD_LIBRARY_PATH |
| 13896 | case $host_os in |
| 13897 | freebsd2*) |
| 13898 | shlibpath_overrides_runpath=yes |
| 13899 | ;; |
| 13900 | freebsd3.01* | freebsdelf3.01*) |
| 13901 | shlibpath_overrides_runpath=yes |
| 13902 | hardcode_into_libs=yes |
| 13903 | ;; |
| 13904 | *) # from 3.2 on |
| 13905 | shlibpath_overrides_runpath=no |
| 13906 | hardcode_into_libs=yes |
| 13907 | ;; |
| 13908 | esac |
| 13909 | ;; |
| 13910 | |
| 13911 | gnu*) |
| 13912 | version_type=linux |
| 13913 | need_lib_prefix=no |
| 13914 | need_version=no |
| 13915 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 13916 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13917 | shlibpath_var=LD_LIBRARY_PATH |
| 13918 | hardcode_into_libs=yes |
| 13919 | ;; |
| 13920 | |
| 13921 | hpux9* | hpux10* | hpux11*) |
| 13922 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 13923 | # link against other versions. |
| 13924 | version_type=sunos |
| 13925 | need_lib_prefix=no |
| 13926 | need_version=no |
| 13927 | case "$host_cpu" in |
| 13928 | ia64*) |
| 13929 | shrext='.so' |
| 13930 | hardcode_into_libs=yes |
| 13931 | dynamic_linker="$host_os dld.so" |
| 13932 | shlibpath_var=LD_LIBRARY_PATH |
| 13933 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13934 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13935 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13936 | if test "X$HPUX_IA64_MODE" = X32; then |
| 13937 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 13938 | else |
| 13939 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 13940 | fi |
| 13941 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13942 | ;; |
| 13943 | hppa*64*) |
| 13944 | shrext='.sl' |
| 13945 | hardcode_into_libs=yes |
| 13946 | dynamic_linker="$host_os dld.sl" |
| 13947 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 13948 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13949 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13950 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13951 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 13952 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13953 | ;; |
| 13954 | *) |
| 13955 | shrext='.sl' |
| 13956 | dynamic_linker="$host_os dld.sl" |
| 13957 | shlibpath_var=SHLIB_PATH |
| 13958 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 13959 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13960 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13961 | ;; |
| 13962 | esac |
| 13963 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 13964 | postinstall_cmds='chmod 555 $lib' |
| 13965 | ;; |
| 13966 | |
| 13967 | irix5* | irix6* | nonstopux*) |
| 13968 | case $host_os in |
| 13969 | nonstopux*) version_type=nonstopux ;; |
| 13970 | *) |
| 13971 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 13972 | version_type=linux |
| 13973 | else |
| 13974 | version_type=irix |
| 13975 | fi ;; |
| 13976 | esac |
| 13977 | need_lib_prefix=no |
| 13978 | need_version=no |
| 13979 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13980 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13981 | case $host_os in |
| 13982 | irix5* | nonstopux*) |
| 13983 | libsuff= shlibsuff= |
| 13984 | ;; |
| 13985 | *) |
| 13986 | case $LD in # libtool.m4 will add one of these switches to LD |
| 13987 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 13988 | libsuff= shlibsuff= libmagic=32-bit;; |
| 13989 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 13990 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 13991 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 13992 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 13993 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 13994 | esac |
| 13995 | ;; |
| 13996 | esac |
| 13997 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 13998 | shlibpath_overrides_runpath=no |
| 13999 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 14000 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 14001 | hardcode_into_libs=yes |
| 14002 | ;; |
| 14003 | |
| 14004 | # No shared lib support for Linux oldld, aout, or coff. |
| 14005 | linux*oldld* | linux*aout* | linux*coff*) |
| 14006 | dynamic_linker=no |
| 14007 | ;; |
| 14008 | |
| 14009 | # This must be Linux ELF. |
| 14010 | linux*) |
| 14011 | version_type=linux |
| 14012 | need_lib_prefix=no |
| 14013 | need_version=no |
| 14014 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14015 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14016 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 14017 | shlibpath_var=LD_LIBRARY_PATH |
| 14018 | shlibpath_overrides_runpath=no |
| 14019 | # This implies no fast_install, which is unacceptable. |
| 14020 | # Some rework will be needed to allow for fast_install |
| 14021 | # before this can be enabled. |
| 14022 | hardcode_into_libs=yes |
| 14023 | |
| 14024 | # Append ld.so.conf contents to the search path |
| 14025 | if test -f /etc/ld.so.conf; then |
| 14026 | ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf` |
| 14027 | sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra" |
| 14028 | fi |
| 14029 | |
| 14030 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 14031 | # powerpc, because MkLinux only supported shared libraries with the |
| 14032 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 14033 | # most powerpc-linux boxes support dynamic linking these days and |
| 14034 | # people can always --disable-shared, the test was removed, and we |
| 14035 | # assume the GNU/Linux dynamic linker is in use. |
| 14036 | dynamic_linker='GNU/Linux ld.so' |
| 14037 | ;; |
| 14038 | |
| 14039 | knetbsd*-gnu) |
| 14040 | version_type=linux |
| 14041 | need_lib_prefix=no |
| 14042 | need_version=no |
| 14043 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 14044 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14045 | shlibpath_var=LD_LIBRARY_PATH |
| 14046 | shlibpath_overrides_runpath=no |
| 14047 | hardcode_into_libs=yes |
| 14048 | dynamic_linker='GNU ld.so' |
| 14049 | ;; |
| 14050 | |
| 14051 | netbsd*) |
| 14052 | version_type=sunos |
| 14053 | need_lib_prefix=no |
| 14054 | need_version=no |
| 14055 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 14056 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14057 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 14058 | dynamic_linker='NetBSD (a.out) ld.so' |
| 14059 | else |
| 14060 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 14061 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14062 | dynamic_linker='NetBSD ld.elf_so' |
| 14063 | fi |
| 14064 | shlibpath_var=LD_LIBRARY_PATH |
| 14065 | shlibpath_overrides_runpath=yes |
| 14066 | hardcode_into_libs=yes |
| 14067 | ;; |
| 14068 | |
| 14069 | newsos6) |
| 14070 | version_type=linux |
| 14071 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14072 | shlibpath_var=LD_LIBRARY_PATH |
| 14073 | shlibpath_overrides_runpath=yes |
| 14074 | ;; |
| 14075 | |
| 14076 | nto-qnx*) |
| 14077 | version_type=linux |
| 14078 | need_lib_prefix=no |
| 14079 | need_version=no |
| 14080 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14081 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14082 | shlibpath_var=LD_LIBRARY_PATH |
| 14083 | shlibpath_overrides_runpath=yes |
| 14084 | ;; |
| 14085 | |
| 14086 | openbsd*) |
| 14087 | version_type=sunos |
| 14088 | need_lib_prefix=no |
| 14089 | need_version=yes |
| 14090 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14091 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 14092 | shlibpath_var=LD_LIBRARY_PATH |
| 14093 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 14094 | case $host_os in |
| 14095 | openbsd2.[89] | openbsd2.[89].*) |
| 14096 | shlibpath_overrides_runpath=no |
| 14097 | ;; |
| 14098 | *) |
| 14099 | shlibpath_overrides_runpath=yes |
| 14100 | ;; |
| 14101 | esac |
| 14102 | else |
| 14103 | shlibpath_overrides_runpath=yes |
| 14104 | fi |
| 14105 | ;; |
| 14106 | |
| 14107 | os2*) |
| 14108 | libname_spec='$name' |
| 14109 | shrext=".dll" |
| 14110 | need_lib_prefix=no |
| 14111 | library_names_spec='$libname${shared_ext} $libname.a' |
| 14112 | dynamic_linker='OS/2 ld.exe' |
| 14113 | shlibpath_var=LIBPATH |
| 14114 | ;; |
| 14115 | |
| 14116 | osf3* | osf4* | osf5*) |
| 14117 | version_type=osf |
| 14118 | need_lib_prefix=no |
| 14119 | need_version=no |
| 14120 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14121 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14122 | shlibpath_var=LD_LIBRARY_PATH |
| 14123 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 14124 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 14125 | ;; |
| 14126 | |
| 14127 | sco3.2v5*) |
| 14128 | version_type=osf |
| 14129 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14130 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14131 | shlibpath_var=LD_LIBRARY_PATH |
| 14132 | ;; |
| 14133 | |
| 14134 | solaris*) |
| 14135 | version_type=linux |
| 14136 | need_lib_prefix=no |
| 14137 | need_version=no |
| 14138 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14139 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14140 | shlibpath_var=LD_LIBRARY_PATH |
| 14141 | shlibpath_overrides_runpath=yes |
| 14142 | hardcode_into_libs=yes |
| 14143 | # ldd complains unless libraries are executable |
| 14144 | postinstall_cmds='chmod +x $lib' |
| 14145 | ;; |
| 14146 | |
| 14147 | sunos4*) |
| 14148 | version_type=sunos |
| 14149 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14150 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 14151 | shlibpath_var=LD_LIBRARY_PATH |
| 14152 | shlibpath_overrides_runpath=yes |
| 14153 | if test "$with_gnu_ld" = yes; then |
| 14154 | need_lib_prefix=no |
| 14155 | fi |
| 14156 | need_version=yes |
| 14157 | ;; |
| 14158 | |
| 14159 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 14160 | version_type=linux |
| 14161 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14162 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14163 | shlibpath_var=LD_LIBRARY_PATH |
| 14164 | case $host_vendor in |
| 14165 | sni) |
| 14166 | shlibpath_overrides_runpath=no |
| 14167 | need_lib_prefix=no |
| 14168 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 14169 | runpath_var=LD_RUN_PATH |
| 14170 | ;; |
| 14171 | siemens) |
| 14172 | need_lib_prefix=no |
| 14173 | ;; |
| 14174 | motorola) |
| 14175 | need_lib_prefix=no |
| 14176 | need_version=no |
| 14177 | shlibpath_overrides_runpath=no |
| 14178 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 14179 | ;; |
| 14180 | esac |
| 14181 | ;; |
| 14182 | |
| 14183 | sysv4*MP*) |
| 14184 | if test -d /usr/nec ;then |
| 14185 | version_type=linux |
| 14186 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 14187 | soname_spec='$libname${shared_ext}.$major' |
| 14188 | shlibpath_var=LD_LIBRARY_PATH |
| 14189 | fi |
| 14190 | ;; |
| 14191 | |
| 14192 | uts4*) |
| 14193 | version_type=linux |
| 14194 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14195 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14196 | shlibpath_var=LD_LIBRARY_PATH |
| 14197 | ;; |
| 14198 | |
| 14199 | *) |
| 14200 | dynamic_linker=no |
| 14201 | ;; |
| 14202 | esac |
| 14203 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 14204 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 14205 | test "$dynamic_linker" = no && can_build_shared=no |
| 14206 | |
| 14207 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 14208 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 14209 | hardcode_action_F77= |
| 14210 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| 14211 | test -n "$runpath_var F77" || \ |
| 14212 | test "X$hardcode_automatic_F77"="Xyes" ; then |
| 14213 | |
| 14214 | # We can hardcode non-existant directories. |
| 14215 | if test "$hardcode_direct_F77" != no && |
| 14216 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 14217 | # have to relink, otherwise we might link with an installed library |
| 14218 | # when we should be linking with a yet-to-be-installed one |
| 14219 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 14220 | test "$hardcode_minus_L_F77" != no; then |
| 14221 | # Linking always hardcodes the temporary library directory. |
| 14222 | hardcode_action_F77=relink |
| 14223 | else |
| 14224 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 14225 | hardcode_action_F77=immediate |
| 14226 | fi |
| 14227 | else |
| 14228 | # We cannot hardcode anything, or else we can only hardcode existing |
| 14229 | # directories. |
| 14230 | hardcode_action_F77=unsupported |
| 14231 | fi |
| 14232 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 14233 | echo "${ECHO_T}$hardcode_action_F77" >&6 |
| 14234 | |
| 14235 | if test "$hardcode_action_F77" = relink; then |
| 14236 | # Fast installation is not supported |
| 14237 | enable_fast_install=no |
| 14238 | elif test "$shlibpath_overrides_runpath" = yes || |
| 14239 | test "$enable_shared" = no; then |
| 14240 | # Fast installation is not necessary |
| 14241 | enable_fast_install=needless |
| 14242 | fi |
| 14243 | |
| 14244 | striplib= |
| 14245 | old_striplib= |
| 14246 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 14247 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 14248 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 14249 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 14250 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 14251 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14252 | echo "${ECHO_T}yes" >&6 |
| 14253 | else |
| 14254 | # FIXME - insert some real tests, host_os isn't really good enough |
| 14255 | case $host_os in |
| 14256 | darwin*) |
| 14257 | if test -n "$STRIP" ; then |
| 14258 | striplib="$STRIP -x" |
| 14259 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14260 | echo "${ECHO_T}yes" >&6 |
| 14261 | else |
| 14262 | echo "$as_me:$LINENO: result: no" >&5 |
| 14263 | echo "${ECHO_T}no" >&6 |
| 14264 | fi |
| 14265 | ;; |
| 14266 | *) |
| 14267 | echo "$as_me:$LINENO: result: no" >&5 |
| 14268 | echo "${ECHO_T}no" >&6 |
| 14269 | ;; |
| 14270 | esac |
| 14271 | fi |
| 14272 | |
| 14273 | |
| 14274 | |
| 14275 | # The else clause should only fire when bootstrapping the |
| 14276 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 14277 | # with your package, and you will get complaints that there are |
| 14278 | # no rules to generate ltmain.sh. |
| 14279 | if test -f "$ltmain"; then |
| 14280 | # See if we are running on zsh, and set the options which allow our commands through |
| 14281 | # without removal of \ escapes. |
| 14282 | if test -n "${ZSH_VERSION+set}" ; then |
| 14283 | setopt NO_GLOB_SUBST |
| 14284 | fi |
| 14285 | # Now quote all the things that may contain metacharacters while being |
| 14286 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 14287 | # variables and quote the copies for generation of the libtool script. |
| 14288 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 14289 | SED SHELL STRIP \ |
| 14290 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 14291 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 14292 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 14293 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 14294 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 14295 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 14296 | old_postinstall_cmds old_postuninstall_cmds \ |
| 14297 | compiler_F77 \ |
| 14298 | CC_F77 \ |
| 14299 | LD_F77 \ |
| 14300 | lt_prog_compiler_wl_F77 \ |
| 14301 | lt_prog_compiler_pic_F77 \ |
| 14302 | lt_prog_compiler_static_F77 \ |
| 14303 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 14304 | export_dynamic_flag_spec_F77 \ |
| 14305 | thread_safe_flag_spec_F77 \ |
| 14306 | whole_archive_flag_spec_F77 \ |
| 14307 | enable_shared_with_static_runtimes_F77 \ |
| 14308 | old_archive_cmds_F77 \ |
| 14309 | old_archive_from_new_cmds_F77 \ |
| 14310 | predep_objects_F77 \ |
| 14311 | postdep_objects_F77 \ |
| 14312 | predeps_F77 \ |
| 14313 | postdeps_F77 \ |
| 14314 | compiler_lib_search_path_F77 \ |
| 14315 | archive_cmds_F77 \ |
| 14316 | archive_expsym_cmds_F77 \ |
| 14317 | postinstall_cmds_F77 \ |
| 14318 | postuninstall_cmds_F77 \ |
| 14319 | old_archive_from_expsyms_cmds_F77 \ |
| 14320 | allow_undefined_flag_F77 \ |
| 14321 | no_undefined_flag_F77 \ |
| 14322 | export_symbols_cmds_F77 \ |
| 14323 | hardcode_libdir_flag_spec_F77 \ |
| 14324 | hardcode_libdir_flag_spec_ld_F77 \ |
| 14325 | hardcode_libdir_separator_F77 \ |
| 14326 | hardcode_automatic_F77 \ |
| 14327 | module_cmds_F77 \ |
| 14328 | module_expsym_cmds_F77 \ |
| 14329 | lt_cv_prog_compiler_c_o_F77 \ |
| 14330 | exclude_expsyms_F77 \ |
| 14331 | include_expsyms_F77; do |
| 14332 | |
| 14333 | case $var in |
| 14334 | old_archive_cmds_F77 | \ |
| 14335 | old_archive_from_new_cmds_F77 | \ |
| 14336 | archive_cmds_F77 | \ |
| 14337 | archive_expsym_cmds_F77 | \ |
| 14338 | module_cmds_F77 | \ |
| 14339 | module_expsym_cmds_F77 | \ |
| 14340 | old_archive_from_expsyms_cmds_F77 | \ |
| 14341 | export_symbols_cmds_F77 | \ |
| 14342 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 14343 | postinstall_cmds | postuninstall_cmds | \ |
| 14344 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 14345 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 14346 | # Double-quote double-evaled strings. |
| 14347 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 14348 | ;; |
| 14349 | *) |
| 14350 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 14351 | ;; |
| 14352 | esac |
| 14353 | done |
| 14354 | |
| 14355 | case $lt_echo in |
| 14356 | *'\$0 --fallback-echo"') |
| 14357 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 14358 | ;; |
| 14359 | esac |
| 14360 | |
| 14361 | cfgfile="$ofile" |
| 14362 | |
| 14363 | cat <<__EOF__ >> "$cfgfile" |
| 14364 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 14365 | |
| 14366 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 14367 | |
| 14368 | # Shell to use when invoking shell scripts. |
| 14369 | SHELL=$lt_SHELL |
| 14370 | |
| 14371 | # Whether or not to build shared libraries. |
| 14372 | build_libtool_libs=$enable_shared |
| 14373 | |
| 14374 | # Whether or not to build static libraries. |
| 14375 | build_old_libs=$enable_static |
| 14376 | |
| 14377 | # Whether or not to add -lc for building shared libraries. |
| 14378 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 14379 | |
| 14380 | # Whether or not to disallow shared libs when runtime libs are static |
| 14381 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 14382 | |
| 14383 | # Whether or not to optimize for fast installation. |
| 14384 | fast_install=$enable_fast_install |
| 14385 | |
| 14386 | # The host system. |
| 14387 | host_alias=$host_alias |
| 14388 | host=$host |
| 14389 | |
| 14390 | # An echo program that does not interpret backslashes. |
| 14391 | echo=$lt_echo |
| 14392 | |
| 14393 | # The archiver. |
| 14394 | AR=$lt_AR |
| 14395 | AR_FLAGS=$lt_AR_FLAGS |
| 14396 | |
| 14397 | # A C compiler. |
| 14398 | LTCC=$lt_LTCC |
| 14399 | |
| 14400 | # A language-specific compiler. |
| 14401 | CC=$lt_compiler_F77 |
| 14402 | |
| 14403 | # Is the compiler the GNU C compiler? |
| 14404 | with_gcc=$GCC_F77 |
| 14405 | |
| 14406 | # An ERE matcher. |
| 14407 | EGREP=$lt_EGREP |
| 14408 | |
| 14409 | # The linker used to build libraries. |
| 14410 | LD=$lt_LD_F77 |
| 14411 | |
| 14412 | # Whether we need hard or soft links. |
| 14413 | LN_S=$lt_LN_S |
| 14414 | |
| 14415 | # A BSD-compatible nm program. |
| 14416 | NM=$lt_NM |
| 14417 | |
| 14418 | # A symbol stripping program |
| 14419 | STRIP=$lt_STRIP |
| 14420 | |
| 14421 | # Used to examine libraries when file_magic_cmd begins "file" |
| 14422 | MAGIC_CMD=$MAGIC_CMD |
| 14423 | |
| 14424 | # Used on cygwin: DLL creation program. |
| 14425 | DLLTOOL="$DLLTOOL" |
| 14426 | |
| 14427 | # Used on cygwin: object dumper. |
| 14428 | OBJDUMP="$OBJDUMP" |
| 14429 | |
| 14430 | # Used on cygwin: assembler. |
| 14431 | AS="$AS" |
| 14432 | |
| 14433 | # The name of the directory that contains temporary libtool files. |
| 14434 | objdir=$objdir |
| 14435 | |
| 14436 | # How to create reloadable object files. |
| 14437 | reload_flag=$lt_reload_flag |
| 14438 | reload_cmds=$lt_reload_cmds |
| 14439 | |
| 14440 | # How to pass a linker flag through the compiler. |
| 14441 | wl=$lt_lt_prog_compiler_wl_F77 |
| 14442 | |
| 14443 | # Object file suffix (normally "o"). |
| 14444 | objext="$ac_objext" |
| 14445 | |
| 14446 | # Old archive suffix (normally "a"). |
| 14447 | libext="$libext" |
| 14448 | |
| 14449 | # Shared library suffix (normally ".so"). |
| 14450 | shrext='$shrext' |
| 14451 | |
| 14452 | # Executable file suffix (normally ""). |
| 14453 | exeext="$exeext" |
| 14454 | |
| 14455 | # Additional compiler flags for building library objects. |
| 14456 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 14457 | pic_mode=$pic_mode |
| 14458 | |
| 14459 | # What is the maximum length of a command? |
| 14460 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 14461 | |
| 14462 | # Does compiler simultaneously support -c and -o options? |
| 14463 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 14464 | |
| 14465 | # Must we lock files when doing compilation ? |
| 14466 | need_locks=$lt_need_locks |
| 14467 | |
| 14468 | # Do we need the lib prefix for modules? |
| 14469 | need_lib_prefix=$need_lib_prefix |
| 14470 | |
| 14471 | # Do we need a version for libraries? |
| 14472 | need_version=$need_version |
| 14473 | |
| 14474 | # Whether dlopen is supported. |
| 14475 | dlopen_support=$enable_dlopen |
| 14476 | |
| 14477 | # Whether dlopen of programs is supported. |
| 14478 | dlopen_self=$enable_dlopen_self |
| 14479 | |
| 14480 | # Whether dlopen of statically linked programs is supported. |
| 14481 | dlopen_self_static=$enable_dlopen_self_static |
| 14482 | |
| 14483 | # Compiler flag to prevent dynamic linking. |
| 14484 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 14485 | |
| 14486 | # Compiler flag to turn off builtin functions. |
| 14487 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 14488 | |
| 14489 | # Compiler flag to allow reflexive dlopens. |
| 14490 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 14491 | |
| 14492 | # Compiler flag to generate shared objects directly from archives. |
| 14493 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 14494 | |
| 14495 | # Compiler flag to generate thread-safe objects. |
| 14496 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 14497 | |
| 14498 | # Library versioning type. |
| 14499 | version_type=$version_type |
| 14500 | |
| 14501 | # Format of library name prefix. |
| 14502 | libname_spec=$lt_libname_spec |
| 14503 | |
| 14504 | # List of archive names. First name is the real one, the rest are links. |
| 14505 | # The last name is the one that the linker finds with -lNAME. |
| 14506 | library_names_spec=$lt_library_names_spec |
| 14507 | |
| 14508 | # The coded name of the library, if different from the real name. |
| 14509 | soname_spec=$lt_soname_spec |
| 14510 | |
| 14511 | # Commands used to build and install an old-style archive. |
| 14512 | RANLIB=$lt_RANLIB |
| 14513 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 14514 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 14515 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 14516 | |
| 14517 | # Create an old-style archive from a shared archive. |
| 14518 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 14519 | |
| 14520 | # Create a temporary old-style archive to link instead of a shared archive. |
| 14521 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 14522 | |
| 14523 | # Commands used to build and install a shared archive. |
| 14524 | archive_cmds=$lt_archive_cmds_F77 |
| 14525 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 14526 | postinstall_cmds=$lt_postinstall_cmds |
| 14527 | postuninstall_cmds=$lt_postuninstall_cmds |
| 14528 | |
| 14529 | # Commands used to build a loadable module (assumed same as above if empty) |
| 14530 | module_cmds=$lt_module_cmds_F77 |
| 14531 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 14532 | |
| 14533 | # Commands to strip libraries. |
| 14534 | old_striplib=$lt_old_striplib |
| 14535 | striplib=$lt_striplib |
| 14536 | |
| 14537 | # Dependencies to place before the objects being linked to create a |
| 14538 | # shared library. |
| 14539 | predep_objects=$lt_predep_objects_F77 |
| 14540 | |
| 14541 | # Dependencies to place after the objects being linked to create a |
| 14542 | # shared library. |
| 14543 | postdep_objects=$lt_postdep_objects_F77 |
| 14544 | |
| 14545 | # Dependencies to place before the objects being linked to create a |
| 14546 | # shared library. |
| 14547 | predeps=$lt_predeps_F77 |
| 14548 | |
| 14549 | # Dependencies to place after the objects being linked to create a |
| 14550 | # shared library. |
| 14551 | postdeps=$lt_postdeps_F77 |
| 14552 | |
| 14553 | # The library search path used internally by the compiler when linking |
| 14554 | # a shared library. |
| 14555 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 14556 | |
| 14557 | # Method to check whether dependent libraries are shared objects. |
| 14558 | deplibs_check_method=$lt_deplibs_check_method |
| 14559 | |
| 14560 | # Command to use when deplibs_check_method == file_magic. |
| 14561 | file_magic_cmd=$lt_file_magic_cmd |
| 14562 | |
| 14563 | # Flag that allows shared libraries with undefined symbols to be built. |
| 14564 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 14565 | |
| 14566 | # Flag that forces no undefined symbols. |
| 14567 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 14568 | |
| 14569 | # Commands used to finish a libtool library installation in a directory. |
| 14570 | finish_cmds=$lt_finish_cmds |
| 14571 | |
| 14572 | # Same as above, but a single script fragment to be evaled but not shown. |
| 14573 | finish_eval=$lt_finish_eval |
| 14574 | |
| 14575 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 14576 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 14577 | |
| 14578 | # Transform the output of nm in a proper C declaration |
| 14579 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 14580 | |
| 14581 | # Transform the output of nm in a C name address pair |
| 14582 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 14583 | |
| 14584 | # This is the shared library runtime path variable. |
| 14585 | runpath_var=$runpath_var |
| 14586 | |
| 14587 | # This is the shared library path variable. |
| 14588 | shlibpath_var=$shlibpath_var |
| 14589 | |
| 14590 | # Is shlibpath searched before the hard-coded library search path? |
| 14591 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 14592 | |
| 14593 | # How to hardcode a shared library path into an executable. |
| 14594 | hardcode_action=$hardcode_action_F77 |
| 14595 | |
| 14596 | # Whether we should hardcode library paths into libraries. |
| 14597 | hardcode_into_libs=$hardcode_into_libs |
| 14598 | |
| 14599 | # Flag to hardcode \$libdir into a binary during linking. |
| 14600 | # This must work even if \$libdir does not exist. |
| 14601 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 14602 | |
| 14603 | # If ld is used when linking, flag to hardcode \$libdir into |
| 14604 | # a binary during linking. This must work even if \$libdir does |
| 14605 | # not exist. |
| 14606 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 14607 | |
| 14608 | # Whether we need a single -rpath flag with a separated argument. |
| 14609 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 14610 | |
| 14611 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 14612 | # resulting binary. |
| 14613 | hardcode_direct=$hardcode_direct_F77 |
| 14614 | |
| 14615 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 14616 | # resulting binary. |
| 14617 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 14618 | |
| 14619 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 14620 | # the resulting binary. |
| 14621 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 14622 | |
| 14623 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 14624 | # and all subsequent libraries and executables linked against it. |
| 14625 | hardcode_automatic=$hardcode_automatic_F77 |
| 14626 | |
| 14627 | # Variables whose values should be saved in libtool wrapper scripts and |
| 14628 | # restored at relink time. |
| 14629 | variables_saved_for_relink="$variables_saved_for_relink" |
| 14630 | |
| 14631 | # Whether libtool must link a program against all its dependency libraries. |
| 14632 | link_all_deplibs=$link_all_deplibs_F77 |
| 14633 | |
| 14634 | # Compile-time system search path for libraries |
| 14635 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 14636 | |
| 14637 | # Run-time system search path for libraries |
| 14638 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 14639 | |
| 14640 | # Fix the shell variable \$srcfile for the compiler. |
| 14641 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 14642 | |
| 14643 | # Set to yes if exported symbols are required. |
| 14644 | always_export_symbols=$always_export_symbols_F77 |
| 14645 | |
| 14646 | # The commands to list exported symbols. |
| 14647 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 14648 | |
| 14649 | # The commands to extract the exported symbol list from a shared archive. |
| 14650 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 14651 | |
| 14652 | # Symbols that should not be listed in the preloaded symbols. |
| 14653 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 14654 | |
| 14655 | # Symbols that must always be exported. |
| 14656 | include_expsyms=$lt_include_expsyms_F77 |
| 14657 | |
| 14658 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 14659 | |
| 14660 | __EOF__ |
| 14661 | |
| 14662 | |
| 14663 | else |
| 14664 | # If there is no Makefile yet, we rely on a make rule to execute |
| 14665 | # `config.status --recheck' to rerun these tests and create the |
| 14666 | # libtool script then. |
| 14667 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 14668 | if test -f "$ltmain_in"; then |
| 14669 | test -f Makefile && make "$ltmain" |
| 14670 | fi |
| 14671 | fi |
| 14672 | |
| 14673 | |
| 14674 | ac_ext=c |
| 14675 | ac_cpp='$CPP $CPPFLAGS' |
| 14676 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14677 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14678 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14679 | |
| 14680 | CC="$lt_save_CC" |
| 14681 | |
| 14682 | else |
| 14683 | tagname="" |
| 14684 | fi |
| 14685 | ;; |
| 14686 | |
| 14687 | GCJ) |
| 14688 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
| 14689 | |
| 14690 | |
| 14691 | |
| 14692 | # Source file extension for Java test sources. |
| 14693 | ac_ext=java |
| 14694 | |
| 14695 | # Object file extension for compiled Java test sources. |
| 14696 | objext=o |
| 14697 | objext_GCJ=$objext |
| 14698 | |
| 14699 | # Code to be used in simple compile tests |
| 14700 | lt_simple_compile_test_code="class foo {}\n" |
| 14701 | |
| 14702 | # Code to be used in simple link tests |
| 14703 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' |
| 14704 | |
| 14705 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 14706 | |
| 14707 | # If no C compiler was specified, use CC. |
| 14708 | LTCC=${LTCC-"$CC"} |
| 14709 | |
| 14710 | # Allow CC to be a program name with arguments. |
| 14711 | compiler=$CC |
| 14712 | |
| 14713 | |
| 14714 | # Allow CC to be a program name with arguments. |
| 14715 | lt_save_CC="$CC" |
| 14716 | CC=${GCJ-"gcj"} |
| 14717 | compiler=$CC |
| 14718 | compiler_GCJ=$CC |
| 14719 | |
| 14720 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 14721 | archive_cmds_need_lc_GCJ=no |
| 14722 | |
| 14723 | |
| 14724 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 14725 | |
| 14726 | if test "$GCC" = yes; then |
| 14727 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 14728 | |
| 14729 | |
| 14730 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 14731 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 14732 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 14733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14734 | else |
| 14735 | lt_cv_prog_compiler_rtti_exceptions=no |
| 14736 | ac_outfile=conftest.$ac_objext |
| 14737 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14738 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 14739 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14740 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14741 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14742 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14743 | # The option is referenced via a variable to avoid confusing sed. |
| 14744 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14745 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 14746 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14747 | -e 's:$: $lt_compiler_flag:'` |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 14748 | (eval echo "\"\$as_me:14748: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14749 | (eval "$lt_compile" 2>conftest.err) |
| 14750 | ac_status=$? |
| 14751 | cat conftest.err >&5 |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 14752 | echo "$as_me:14752: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14753 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14754 | # The compiler can only warn and ignore the option if not recognized |
| 14755 | # So say no if there are warnings |
| 14756 | if test ! -s conftest.err; then |
| 14757 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 14758 | fi |
| 14759 | fi |
| 14760 | $rm conftest* |
| 14761 | |
| 14762 | fi |
| 14763 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 14764 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 14765 | |
| 14766 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 14767 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 14768 | else |
| 14769 | : |
| 14770 | fi |
| 14771 | |
| 14772 | fi |
| 14773 | |
| 14774 | lt_prog_compiler_wl_GCJ= |
| 14775 | lt_prog_compiler_pic_GCJ= |
| 14776 | lt_prog_compiler_static_GCJ= |
| 14777 | |
| 14778 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 14779 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 14780 | |
| 14781 | if test "$GCC" = yes; then |
| 14782 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14783 | lt_prog_compiler_static_GCJ='-static' |
| 14784 | |
| 14785 | case $host_os in |
| 14786 | aix*) |
| 14787 | # All AIX code is PIC. |
| 14788 | if test "$host_cpu" = ia64; then |
| 14789 | # AIX 5 now supports IA64 processor |
| 14790 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 14791 | fi |
| 14792 | ;; |
| 14793 | |
| 14794 | amigaos*) |
| 14795 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 14796 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 14797 | # like `-m68040'. |
| 14798 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 14799 | ;; |
| 14800 | |
| 14801 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 14802 | # PIC is the default for these OSes. |
| 14803 | ;; |
| 14804 | |
| 14805 | mingw* | pw32* | os2*) |
| 14806 | # This hack is so that the source file can tell whether it is being |
| 14807 | # built for inclusion in a dll (and should export symbols for example). |
| 14808 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 14809 | ;; |
| 14810 | |
| 14811 | darwin* | rhapsody*) |
| 14812 | # PIC is the default on this platform |
| 14813 | # Common symbols not allowed in MH_DYLIB files |
| 14814 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 14815 | ;; |
| 14816 | |
| 14817 | msdosdjgpp*) |
| 14818 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 14819 | # on systems that don't support them. |
| 14820 | lt_prog_compiler_can_build_shared_GCJ=no |
| 14821 | enable_shared=no |
| 14822 | ;; |
| 14823 | |
| 14824 | sysv4*MP*) |
| 14825 | if test -d /usr/nec; then |
| 14826 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 14827 | fi |
| 14828 | ;; |
| 14829 | |
| 14830 | hpux*) |
| 14831 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14832 | # not for PA HP-UX. |
| 14833 | case "$host_cpu" in |
| 14834 | hppa*64*|ia64*) |
| 14835 | # +Z the default |
| 14836 | ;; |
| 14837 | *) |
| 14838 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 14839 | ;; |
| 14840 | esac |
| 14841 | ;; |
| 14842 | |
| 14843 | *) |
| 14844 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 14845 | ;; |
| 14846 | esac |
| 14847 | else |
| 14848 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 14849 | case $host_os in |
| 14850 | aix*) |
| 14851 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14852 | if test "$host_cpu" = ia64; then |
| 14853 | # AIX 5 now supports IA64 processor |
| 14854 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 14855 | else |
| 14856 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 14857 | fi |
| 14858 | ;; |
| 14859 | |
| 14860 | mingw* | pw32* | os2*) |
| 14861 | # This hack is so that the source file can tell whether it is being |
| 14862 | # built for inclusion in a dll (and should export symbols for example). |
| 14863 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 14864 | ;; |
| 14865 | |
| 14866 | hpux9* | hpux10* | hpux11*) |
| 14867 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14868 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14869 | # not for PA HP-UX. |
| 14870 | case "$host_cpu" in |
| 14871 | hppa*64*|ia64*) |
| 14872 | # +Z the default |
| 14873 | ;; |
| 14874 | *) |
| 14875 | lt_prog_compiler_pic_GCJ='+Z' |
| 14876 | ;; |
| 14877 | esac |
| 14878 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 14879 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 14880 | ;; |
| 14881 | |
| 14882 | irix5* | irix6* | nonstopux*) |
| 14883 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14884 | # PIC (with -KPIC) is the default. |
| 14885 | lt_prog_compiler_static_GCJ='-non_shared' |
| 14886 | ;; |
| 14887 | |
| 14888 | newsos6) |
| 14889 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 14890 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 14891 | ;; |
| 14892 | |
| 14893 | linux*) |
| 14894 | case $CC in |
| 14895 | icc* | ecc*) |
| 14896 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14897 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 14898 | lt_prog_compiler_static_GCJ='-static' |
| 14899 | ;; |
| 14900 | ccc*) |
| 14901 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14902 | # All Alpha code is PIC. |
| 14903 | lt_prog_compiler_static_GCJ='-non_shared' |
| 14904 | ;; |
| 14905 | esac |
| 14906 | ;; |
| 14907 | |
| 14908 | osf3* | osf4* | osf5*) |
| 14909 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14910 | # All OSF/1 code is PIC. |
| 14911 | lt_prog_compiler_static_GCJ='-non_shared' |
| 14912 | ;; |
| 14913 | |
| 14914 | sco3.2v5*) |
| 14915 | lt_prog_compiler_pic_GCJ='-Kpic' |
| 14916 | lt_prog_compiler_static_GCJ='-dn' |
| 14917 | ;; |
| 14918 | |
| 14919 | solaris*) |
| 14920 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14921 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 14922 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 14923 | ;; |
| 14924 | |
| 14925 | sunos4*) |
| 14926 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 14927 | lt_prog_compiler_pic_GCJ='-PIC' |
| 14928 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 14929 | ;; |
| 14930 | |
| 14931 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 14932 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 14933 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 14934 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 14935 | ;; |
| 14936 | |
| 14937 | sysv4*MP*) |
| 14938 | if test -d /usr/nec ;then |
| 14939 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 14940 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 14941 | fi |
| 14942 | ;; |
| 14943 | |
| 14944 | uts4*) |
| 14945 | lt_prog_compiler_pic_GCJ='-pic' |
| 14946 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 14947 | ;; |
| 14948 | |
| 14949 | *) |
| 14950 | lt_prog_compiler_can_build_shared_GCJ=no |
| 14951 | ;; |
| 14952 | esac |
| 14953 | fi |
| 14954 | |
| 14955 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 14956 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
| 14957 | |
| 14958 | # |
| 14959 | # Check to make sure the PIC flag actually works. |
| 14960 | # |
| 14961 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
| 14962 | |
| 14963 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 14964 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
| 14965 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 14966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14967 | else |
| 14968 | lt_prog_compiler_pic_works_GCJ=no |
| 14969 | ac_outfile=conftest.$ac_objext |
| 14970 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14971 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 14972 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14973 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14974 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14975 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14976 | # The option is referenced via a variable to avoid confusing sed. |
| 14977 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14978 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 14979 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14980 | -e 's:$: $lt_compiler_flag:'` |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 14981 | (eval echo "\"\$as_me:14981: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14982 | (eval "$lt_compile" 2>conftest.err) |
| 14983 | ac_status=$? |
| 14984 | cat conftest.err >&5 |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 14985 | echo "$as_me:14985: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 14986 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14987 | # The compiler can only warn and ignore the option if not recognized |
| 14988 | # So say no if there are warnings |
| 14989 | if test ! -s conftest.err; then |
| 14990 | lt_prog_compiler_pic_works_GCJ=yes |
| 14991 | fi |
| 14992 | fi |
| 14993 | $rm conftest* |
| 14994 | |
| 14995 | fi |
| 14996 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 14997 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
| 14998 | |
| 14999 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 15000 | case $lt_prog_compiler_pic_GCJ in |
| 15001 | "" | " "*) ;; |
| 15002 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 15003 | esac |
| 15004 | else |
| 15005 | lt_prog_compiler_pic_GCJ= |
| 15006 | lt_prog_compiler_can_build_shared_GCJ=no |
| 15007 | fi |
| 15008 | |
| 15009 | fi |
| 15010 | case "$host_os" in |
| 15011 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 15012 | *djgpp*) |
| 15013 | lt_prog_compiler_pic_GCJ= |
| 15014 | ;; |
| 15015 | *) |
| 15016 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 15017 | ;; |
| 15018 | esac |
| 15019 | |
| 15020 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 15021 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 15022 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 15023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15024 | else |
| 15025 | lt_cv_prog_compiler_c_o_GCJ=no |
| 15026 | $rm -r conftest 2>/dev/null |
| 15027 | mkdir conftest |
| 15028 | cd conftest |
| 15029 | mkdir out |
| 15030 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15031 | |
| 15032 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 15033 | # Insert the option either (1) after the last *FLAGS variable, or |
| 15034 | # (2) before a word containing "conftest.", or (3) at the end. |
| 15035 | # Note that $ac_compile itself does not contain backslashes and begins |
| 15036 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15037 | lt_compile=`echo "$ac_compile" | $SED \ |
| 15038 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 15039 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15040 | -e 's:$: $lt_compiler_flag:'` |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 15041 | (eval echo "\"\$as_me:15041: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15042 | (eval "$lt_compile" 2>out/conftest.err) |
| 15043 | ac_status=$? |
| 15044 | cat out/conftest.err >&5 |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 15045 | echo "$as_me:15045: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15046 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 15047 | then |
| 15048 | # The compiler can only warn and ignore the option if not recognized |
| 15049 | # So say no if there are warnings |
| 15050 | if test ! -s out/conftest.err; then |
| 15051 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 15052 | fi |
| 15053 | fi |
| 15054 | chmod u+w . |
| 15055 | $rm conftest* |
| 15056 | # SGI C++ compiler will create directory out/ii_files/ for |
| 15057 | # template instantiation |
| 15058 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 15059 | $rm out/* && rmdir out |
| 15060 | cd .. |
| 15061 | rmdir conftest |
| 15062 | $rm conftest* |
| 15063 | |
| 15064 | fi |
| 15065 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 15066 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
| 15067 | |
| 15068 | |
| 15069 | hard_links="nottested" |
| 15070 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 15071 | # do not overwrite the value of need_locks provided by the user |
| 15072 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 15073 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 15074 | hard_links=yes |
| 15075 | $rm conftest* |
| 15076 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 15077 | touch conftest.a |
| 15078 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 15079 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 15080 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 15081 | echo "${ECHO_T}$hard_links" >&6 |
| 15082 | if test "$hard_links" = no; then |
| 15083 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 15084 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 15085 | need_locks=warn |
| 15086 | fi |
| 15087 | else |
| 15088 | need_locks=no |
| 15089 | fi |
| 15090 | |
| 15091 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 15092 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 15093 | |
| 15094 | runpath_var= |
| 15095 | allow_undefined_flag_GCJ= |
| 15096 | enable_shared_with_static_runtimes_GCJ=no |
| 15097 | archive_cmds_GCJ= |
| 15098 | archive_expsym_cmds_GCJ= |
| 15099 | old_archive_From_new_cmds_GCJ= |
| 15100 | old_archive_from_expsyms_cmds_GCJ= |
| 15101 | export_dynamic_flag_spec_GCJ= |
| 15102 | whole_archive_flag_spec_GCJ= |
| 15103 | thread_safe_flag_spec_GCJ= |
| 15104 | hardcode_libdir_flag_spec_GCJ= |
| 15105 | hardcode_libdir_flag_spec_ld_GCJ= |
| 15106 | hardcode_libdir_separator_GCJ= |
| 15107 | hardcode_direct_GCJ=no |
| 15108 | hardcode_minus_L_GCJ=no |
| 15109 | hardcode_shlibpath_var_GCJ=unsupported |
| 15110 | link_all_deplibs_GCJ=unknown |
| 15111 | hardcode_automatic_GCJ=no |
| 15112 | module_cmds_GCJ= |
| 15113 | module_expsym_cmds_GCJ= |
| 15114 | always_export_symbols_GCJ=no |
| 15115 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 15116 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 15117 | # included in the symbol list |
| 15118 | include_expsyms_GCJ= |
| 15119 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 15120 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 15121 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 15122 | # as well as any symbol that contains `d'. |
| 15123 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 15124 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 15125 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 15126 | # the symbol is explicitly referenced. Since portable code cannot |
| 15127 | # rely on this symbol name, it's probably fine to never include it in |
| 15128 | # preloaded symbol tables. |
| 15129 | extract_expsyms_cmds= |
| 15130 | |
| 15131 | case $host_os in |
| 15132 | cygwin* | mingw* | pw32*) |
| 15133 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 15134 | # When not using gcc, we currently assume that we are using |
| 15135 | # Microsoft Visual C++. |
| 15136 | if test "$GCC" != yes; then |
| 15137 | with_gnu_ld=no |
| 15138 | fi |
| 15139 | ;; |
| 15140 | openbsd*) |
| 15141 | with_gnu_ld=no |
| 15142 | ;; |
| 15143 | esac |
| 15144 | |
| 15145 | ld_shlibs_GCJ=yes |
| 15146 | if test "$with_gnu_ld" = yes; then |
| 15147 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 15148 | wlarc='${wl}' |
| 15149 | |
| 15150 | # See if GNU ld supports shared libraries. |
| 15151 | case $host_os in |
| 15152 | aix3* | aix4* | aix5*) |
| 15153 | # On AIX/PPC, the GNU linker is very broken |
| 15154 | if test "$host_cpu" != ia64; then |
| 15155 | ld_shlibs_GCJ=no |
| 15156 | cat <<EOF 1>&2 |
| 15157 | |
| 15158 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 15159 | *** to be unable to reliably create shared libraries on AIX. |
| 15160 | *** Therefore, libtool is disabling shared libraries support. If you |
| 15161 | *** really care for shared libraries, you may want to modify your PATH |
| 15162 | *** so that a non-GNU linker is found, and then restart. |
| 15163 | |
| 15164 | EOF |
| 15165 | fi |
| 15166 | ;; |
| 15167 | |
| 15168 | amigaos*) |
| 15169 | archive_cmds_GCJ='$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)' |
| 15170 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15171 | hardcode_minus_L_GCJ=yes |
| 15172 | |
| 15173 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 15174 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 15175 | # to version 4, is to share data among multiple programs linked |
| 15176 | # with the same dynamic library. Since this doesn't match the |
| 15177 | # behavior of shared libraries on other platforms, we can't use |
| 15178 | # them. |
| 15179 | ld_shlibs_GCJ=no |
| 15180 | ;; |
| 15181 | |
| 15182 | beos*) |
| 15183 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15184 | allow_undefined_flag_GCJ=unsupported |
| 15185 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 15186 | # support --undefined. This deserves some investigation. FIXME |
| 15187 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15188 | else |
| 15189 | ld_shlibs_GCJ=no |
| 15190 | fi |
| 15191 | ;; |
| 15192 | |
| 15193 | cygwin* | mingw* | pw32*) |
| 15194 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 15195 | # as there is no search path for DLLs. |
| 15196 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15197 | allow_undefined_flag_GCJ=unsupported |
| 15198 | always_export_symbols_GCJ=no |
| 15199 | enable_shared_with_static_runtimes_GCJ=yes |
| 15200 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 15201 | |
| 15202 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 15203 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 15204 | # If the export-symbols file already is a .def file (1st line |
| 15205 | # is EXPORTS), use it as is; otherwise, prepend... |
| 15206 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 15207 | cp $export_symbols $output_objdir/$soname.def; |
| 15208 | else |
| 15209 | echo EXPORTS > $output_objdir/$soname.def; |
| 15210 | cat $export_symbols >> $output_objdir/$soname.def; |
| 15211 | fi~ |
| 15212 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 15213 | else |
| 15214 | ld_shlibs=no |
| 15215 | fi |
| 15216 | ;; |
| 15217 | |
| 15218 | netbsd* | knetbsd*-gnu) |
| 15219 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15220 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 15221 | wlarc= |
| 15222 | else |
| 15223 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15224 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15225 | fi |
| 15226 | ;; |
| 15227 | |
| 15228 | solaris* | sysv5*) |
| 15229 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 15230 | ld_shlibs_GCJ=no |
| 15231 | cat <<EOF 1>&2 |
| 15232 | |
| 15233 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 15234 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 15235 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 15236 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 15237 | *** your PATH or compiler configuration so that the native linker is |
| 15238 | *** used, and then restart. |
| 15239 | |
| 15240 | EOF |
| 15241 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15242 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15243 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15244 | else |
| 15245 | ld_shlibs_GCJ=no |
| 15246 | fi |
| 15247 | ;; |
| 15248 | |
| 15249 | sunos4*) |
| 15250 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15251 | wlarc= |
| 15252 | hardcode_direct_GCJ=yes |
| 15253 | hardcode_shlibpath_var_GCJ=no |
| 15254 | ;; |
| 15255 | |
| 15256 | linux*) |
| 15257 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 15258 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15259 | archive_cmds_GCJ="$tmp_archive_cmds" |
| 15260 | supports_anon_versioning=no |
| 15261 | case `$LD -v 2>/dev/null` in |
| 15262 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 15263 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 15264 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 15265 | *\ 2.11.*) ;; # other 2.11 versions |
| 15266 | *) supports_anon_versioning=yes ;; |
| 15267 | esac |
| 15268 | if test $supports_anon_versioning = yes; then |
| 15269 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 15270 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 15271 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 15272 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 15273 | else |
| 15274 | archive_expsym_cmds_GCJ="$tmp_archive_cmds" |
| 15275 | fi |
| 15276 | else |
| 15277 | ld_shlibs_GCJ=no |
| 15278 | fi |
| 15279 | ;; |
| 15280 | |
| 15281 | *) |
| 15282 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 15283 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15284 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15285 | else |
| 15286 | ld_shlibs_GCJ=no |
| 15287 | fi |
| 15288 | ;; |
| 15289 | esac |
| 15290 | |
| 15291 | if test "$ld_shlibs_GCJ" = yes; then |
| 15292 | runpath_var=LD_RUN_PATH |
| 15293 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 15294 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 15295 | # ancient GNU ld didn't support --whole-archive et. al. |
| 15296 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 15297 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 15298 | else |
| 15299 | whole_archive_flag_spec_GCJ= |
| 15300 | fi |
| 15301 | fi |
| 15302 | else |
| 15303 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 15304 | case $host_os in |
| 15305 | aix3*) |
| 15306 | allow_undefined_flag_GCJ=unsupported |
| 15307 | always_export_symbols_GCJ=yes |
| 15308 | archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
| 15309 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 15310 | # are no directories specified by -L. |
| 15311 | hardcode_minus_L_GCJ=yes |
| 15312 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 15313 | # Neither direct hardcoding nor static linking is supported with a |
| 15314 | # broken collect2. |
| 15315 | hardcode_direct_GCJ=unsupported |
| 15316 | fi |
| 15317 | ;; |
| 15318 | |
| 15319 | aix4* | aix5*) |
| 15320 | if test "$host_cpu" = ia64; then |
| 15321 | # On IA64, the linker does run time linking by default, so we don't |
| 15322 | # have to do anything special. |
| 15323 | aix_use_runtimelinking=no |
| 15324 | exp_sym_flag='-Bexport' |
| 15325 | no_entry_flag="" |
| 15326 | else |
| 15327 | # If we're using GNU nm, then we don't want the "-C" option. |
| 15328 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 15329 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 15330 | export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 15331 | else |
| 15332 | export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 15333 | fi |
| 15334 | aix_use_runtimelinking=no |
| 15335 | |
| 15336 | # Test if we are trying to use run time linking or normal |
| 15337 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 15338 | # need to do runtime linking. |
| 15339 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 15340 | for ld_flag in $LDFLAGS; do |
| 15341 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 15342 | aix_use_runtimelinking=yes |
| 15343 | break |
| 15344 | fi |
| 15345 | done |
| 15346 | esac |
| 15347 | |
| 15348 | exp_sym_flag='-bexport' |
| 15349 | no_entry_flag='-bnoentry' |
| 15350 | fi |
| 15351 | |
| 15352 | # When large executables or shared objects are built, AIX ld can |
| 15353 | # have problems creating the table of contents. If linking a library |
| 15354 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 15355 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 15356 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 15357 | |
| 15358 | archive_cmds_GCJ='' |
| 15359 | hardcode_direct_GCJ=yes |
| 15360 | hardcode_libdir_separator_GCJ=':' |
| 15361 | link_all_deplibs_GCJ=yes |
| 15362 | |
| 15363 | if test "$GCC" = yes; then |
| 15364 | case $host_os in aix4.012|aix4.012.*) |
| 15365 | # We only want to do this on AIX 4.2 and lower, the check |
| 15366 | # below for broken collect2 doesn't work under 4.3+ |
| 15367 | collect2name=`${CC} -print-prog-name=collect2` |
| 15368 | if test -f "$collect2name" && \ |
| 15369 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 15370 | then |
| 15371 | # We have reworked collect2 |
| 15372 | hardcode_direct_GCJ=yes |
| 15373 | else |
| 15374 | # We have old collect2 |
| 15375 | hardcode_direct_GCJ=unsupported |
| 15376 | # It fails to find uninstalled libraries when the uninstalled |
| 15377 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 15378 | # to unsupported forces relinking |
| 15379 | hardcode_minus_L_GCJ=yes |
| 15380 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15381 | hardcode_libdir_separator_GCJ= |
| 15382 | fi |
| 15383 | esac |
| 15384 | shared_flag='-shared' |
| 15385 | else |
| 15386 | # not using gcc |
| 15387 | if test "$host_cpu" = ia64; then |
| 15388 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 15389 | # chokes on -Wl,-G. The following line is correct: |
| 15390 | shared_flag='-G' |
| 15391 | else |
| 15392 | if test "$aix_use_runtimelinking" = yes; then |
| 15393 | shared_flag='${wl}-G' |
| 15394 | else |
| 15395 | shared_flag='${wl}-bM:SRE' |
| 15396 | fi |
| 15397 | fi |
| 15398 | fi |
| 15399 | |
| 15400 | # It seems that -bexpall does not export symbols beginning with |
| 15401 | # underscore (_), so it is better to generate a list of symbols to export. |
| 15402 | always_export_symbols_GCJ=yes |
| 15403 | if test "$aix_use_runtimelinking" = yes; then |
| 15404 | # Warning - without using the other runtime loading flags (-brtl), |
| 15405 | # -berok will link without error, but may produce a broken library. |
| 15406 | allow_undefined_flag_GCJ='-berok' |
| 15407 | # Determine the default libpath from the value encoded in an empty executable. |
| 15408 | cat >conftest.$ac_ext <<_ACEOF |
| 15409 | /* confdefs.h. */ |
| 15410 | _ACEOF |
| 15411 | cat confdefs.h >>conftest.$ac_ext |
| 15412 | cat >>conftest.$ac_ext <<_ACEOF |
| 15413 | /* end confdefs.h. */ |
| 15414 | |
| 15415 | int |
| 15416 | main () |
| 15417 | { |
| 15418 | |
| 15419 | ; |
| 15420 | return 0; |
| 15421 | } |
| 15422 | _ACEOF |
| 15423 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15424 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15425 | (eval $ac_link) 2>conftest.er1 |
| 15426 | ac_status=$? |
| 15427 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15428 | rm -f conftest.er1 |
| 15429 | cat conftest.err >&5 |
| 15430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15431 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 15432 | { ac_try='test -z "$ac_c_werror_flag" |
| 15433 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15435 | (eval $ac_try) 2>&5 |
| 15436 | ac_status=$? |
| 15437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15438 | (exit $ac_status); }; } && |
| 15439 | { ac_try='test -s conftest$ac_exeext' |
| 15440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15441 | (eval $ac_try) 2>&5 |
| 15442 | ac_status=$? |
| 15443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15444 | (exit $ac_status); }; }; then |
| 15445 | |
| 15446 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15447 | }'` |
| 15448 | # Check for a 64-bit object if we didn't find anything. |
| 15449 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15450 | }'`; fi |
| 15451 | else |
| 15452 | echo "$as_me: failed program was:" >&5 |
| 15453 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15454 | |
| 15455 | fi |
| 15456 | rm -f conftest.err conftest.$ac_objext \ |
| 15457 | conftest$ac_exeext conftest.$ac_ext |
| 15458 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 15459 | |
| 15460 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15461 | archive_expsym_cmds_GCJ="\$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" |
| 15462 | else |
| 15463 | if test "$host_cpu" = ia64; then |
| 15464 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 15465 | allow_undefined_flag_GCJ="-z nodefs" |
| 15466 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 15467 | else |
| 15468 | # Determine the default libpath from the value encoded in an empty executable. |
| 15469 | cat >conftest.$ac_ext <<_ACEOF |
| 15470 | /* confdefs.h. */ |
| 15471 | _ACEOF |
| 15472 | cat confdefs.h >>conftest.$ac_ext |
| 15473 | cat >>conftest.$ac_ext <<_ACEOF |
| 15474 | /* end confdefs.h. */ |
| 15475 | |
| 15476 | int |
| 15477 | main () |
| 15478 | { |
| 15479 | |
| 15480 | ; |
| 15481 | return 0; |
| 15482 | } |
| 15483 | _ACEOF |
| 15484 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15485 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15486 | (eval $ac_link) 2>conftest.er1 |
| 15487 | ac_status=$? |
| 15488 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15489 | rm -f conftest.er1 |
| 15490 | cat conftest.err >&5 |
| 15491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15492 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 15493 | { ac_try='test -z "$ac_c_werror_flag" |
| 15494 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 15495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15496 | (eval $ac_try) 2>&5 |
| 15497 | ac_status=$? |
| 15498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15499 | (exit $ac_status); }; } && |
| 15500 | { ac_try='test -s conftest$ac_exeext' |
| 15501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15502 | (eval $ac_try) 2>&5 |
| 15503 | ac_status=$? |
| 15504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15505 | (exit $ac_status); }; }; then |
| 15506 | |
| 15507 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15508 | }'` |
| 15509 | # Check for a 64-bit object if we didn't find anything. |
| 15510 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15511 | }'`; fi |
| 15512 | else |
| 15513 | echo "$as_me: failed program was:" >&5 |
| 15514 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15515 | |
| 15516 | fi |
| 15517 | rm -f conftest.err conftest.$ac_objext \ |
| 15518 | conftest$ac_exeext conftest.$ac_ext |
| 15519 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 15520 | |
| 15521 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15522 | # Warning - without using the other run time loading flags, |
| 15523 | # -berok will link without error, but may produce a broken library. |
| 15524 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 15525 | allow_undefined_flag_GCJ=' ${wl}-berok' |
| 15526 | # -bexpall does not export symbols beginning with underscore (_) |
| 15527 | always_export_symbols_GCJ=yes |
| 15528 | # Exported symbols can be pulled into shared objects from archives |
| 15529 | whole_archive_flag_spec_GCJ=' ' |
| 15530 | archive_cmds_need_lc_GCJ=yes |
| 15531 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 15532 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 15533 | fi |
| 15534 | fi |
| 15535 | ;; |
| 15536 | |
| 15537 | amigaos*) |
| 15538 | archive_cmds_GCJ='$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)' |
| 15539 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15540 | hardcode_minus_L_GCJ=yes |
| 15541 | # see comment about different semantics on the GNU ld section |
| 15542 | ld_shlibs_GCJ=no |
| 15543 | ;; |
| 15544 | |
| 15545 | bsdi4*) |
| 15546 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 15547 | ;; |
| 15548 | |
| 15549 | cygwin* | mingw* | pw32*) |
| 15550 | # When not using gcc, we currently assume that we are using |
| 15551 | # Microsoft Visual C++. |
| 15552 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 15553 | # no search path for DLLs. |
| 15554 | hardcode_libdir_flag_spec_GCJ=' ' |
| 15555 | allow_undefined_flag_GCJ=unsupported |
| 15556 | # Tell ltmain to make .lib files, not .a files. |
| 15557 | libext=lib |
| 15558 | # Tell ltmain to make .dll files, not .so files. |
| 15559 | shrext=".dll" |
| 15560 | # FIXME: Setting linknames here is a bad hack. |
| 15561 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 15562 | # The linker will automatically build a .lib file if we build a DLL. |
| 15563 | old_archive_From_new_cmds_GCJ='true' |
| 15564 | # FIXME: Should let the user specify the lib program. |
| 15565 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 15566 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 15567 | enable_shared_with_static_runtimes_GCJ=yes |
| 15568 | ;; |
| 15569 | |
| 15570 | darwin* | rhapsody*) |
| 15571 | if test "$GXX" = yes ; then |
| 15572 | archive_cmds_need_lc_GCJ=no |
| 15573 | case "$host_os" in |
| 15574 | rhapsody* | darwin1.[012]) |
| 15575 | allow_undefined_flag_GCJ='-undefined suppress' |
| 15576 | ;; |
| 15577 | *) # Darwin 1.3 on |
| 15578 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 15579 | allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' |
| 15580 | else |
| 15581 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 15582 | 10.[012]) |
| 15583 | allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' |
| 15584 | ;; |
| 15585 | 10.*) |
| 15586 | allow_undefined_flag_GCJ='-undefined dynamic_lookup' |
| 15587 | ;; |
| 15588 | esac |
| 15589 | fi |
| 15590 | ;; |
| 15591 | esac |
| 15592 | lt_int_apple_cc_single_mod=no |
| 15593 | output_verbose_link_cmd='echo' |
| 15594 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 15595 | lt_int_apple_cc_single_mod=yes |
| 15596 | fi |
| 15597 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 15598 | archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 15599 | else |
| 15600 | archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 15601 | fi |
| 15602 | module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 15603 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 15604 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 15605 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 15606 | else |
| 15607 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 15608 | fi |
| 15609 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 15610 | hardcode_direct_GCJ=no |
| 15611 | hardcode_automatic_GCJ=yes |
| 15612 | hardcode_shlibpath_var_GCJ=unsupported |
| 15613 | whole_archive_flag_spec_GCJ='-all_load $convenience' |
| 15614 | link_all_deplibs_GCJ=yes |
| 15615 | else |
| 15616 | ld_shlibs_GCJ=no |
| 15617 | fi |
| 15618 | ;; |
| 15619 | |
| 15620 | dgux*) |
| 15621 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15622 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15623 | hardcode_shlibpath_var_GCJ=no |
| 15624 | ;; |
| 15625 | |
| 15626 | freebsd1*) |
| 15627 | ld_shlibs_GCJ=no |
| 15628 | ;; |
| 15629 | |
| 15630 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 15631 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 15632 | # does not break anything, and helps significantly (at the cost of a little |
| 15633 | # extra space). |
| 15634 | freebsd2.2*) |
| 15635 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 15636 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 15637 | hardcode_direct_GCJ=yes |
| 15638 | hardcode_shlibpath_var_GCJ=no |
| 15639 | ;; |
| 15640 | |
| 15641 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 15642 | freebsd2*) |
| 15643 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15644 | hardcode_direct_GCJ=yes |
| 15645 | hardcode_minus_L_GCJ=yes |
| 15646 | hardcode_shlibpath_var_GCJ=no |
| 15647 | ;; |
| 15648 | |
| 15649 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 15650 | freebsd* | kfreebsd*-gnu) |
| 15651 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 15652 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 15653 | hardcode_direct_GCJ=yes |
| 15654 | hardcode_shlibpath_var_GCJ=no |
| 15655 | ;; |
| 15656 | |
| 15657 | hpux9*) |
| 15658 | if test "$GCC" = yes; then |
| 15659 | archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 15660 | else |
| 15661 | archive_cmds_GCJ='$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' |
| 15662 | fi |
| 15663 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 15664 | hardcode_libdir_separator_GCJ=: |
| 15665 | hardcode_direct_GCJ=yes |
| 15666 | |
| 15667 | # hardcode_minus_L: Not really in the search PATH, |
| 15668 | # but as the default location of the library. |
| 15669 | hardcode_minus_L_GCJ=yes |
| 15670 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 15671 | ;; |
| 15672 | |
| 15673 | hpux10* | hpux11*) |
| 15674 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 15675 | case "$host_cpu" in |
| 15676 | hppa*64*|ia64*) |
| 15677 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15678 | ;; |
| 15679 | *) |
| 15680 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15681 | ;; |
| 15682 | esac |
| 15683 | else |
| 15684 | case "$host_cpu" in |
| 15685 | hppa*64*|ia64*) |
| 15686 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15687 | ;; |
| 15688 | *) |
| 15689 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 15690 | ;; |
| 15691 | esac |
| 15692 | fi |
| 15693 | if test "$with_gnu_ld" = no; then |
| 15694 | case "$host_cpu" in |
| 15695 | hppa*64*) |
| 15696 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 15697 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 15698 | hardcode_libdir_separator_GCJ=: |
| 15699 | hardcode_direct_GCJ=no |
| 15700 | hardcode_shlibpath_var_GCJ=no |
| 15701 | ;; |
| 15702 | ia64*) |
| 15703 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15704 | hardcode_direct_GCJ=no |
| 15705 | hardcode_shlibpath_var_GCJ=no |
| 15706 | |
| 15707 | # hardcode_minus_L: Not really in the search PATH, |
| 15708 | # but as the default location of the library. |
| 15709 | hardcode_minus_L_GCJ=yes |
| 15710 | ;; |
| 15711 | *) |
| 15712 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 15713 | hardcode_libdir_separator_GCJ=: |
| 15714 | hardcode_direct_GCJ=yes |
| 15715 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 15716 | |
| 15717 | # hardcode_minus_L: Not really in the search PATH, |
| 15718 | # but as the default location of the library. |
| 15719 | hardcode_minus_L_GCJ=yes |
| 15720 | ;; |
| 15721 | esac |
| 15722 | fi |
| 15723 | ;; |
| 15724 | |
| 15725 | irix5* | irix6* | nonstopux*) |
| 15726 | if test "$GCC" = yes; then |
| 15727 | archive_cmds_GCJ='$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' |
| 15728 | else |
| 15729 | archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 15730 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 15731 | fi |
| 15732 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 15733 | hardcode_libdir_separator_GCJ=: |
| 15734 | link_all_deplibs_GCJ=yes |
| 15735 | ;; |
| 15736 | |
| 15737 | netbsd* | knetbsd*-gnu) |
| 15738 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15739 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 15740 | else |
| 15741 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 15742 | fi |
| 15743 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 15744 | hardcode_direct_GCJ=yes |
| 15745 | hardcode_shlibpath_var_GCJ=no |
| 15746 | ;; |
| 15747 | |
| 15748 | newsos6) |
| 15749 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15750 | hardcode_direct_GCJ=yes |
| 15751 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 15752 | hardcode_libdir_separator_GCJ=: |
| 15753 | hardcode_shlibpath_var_GCJ=no |
| 15754 | ;; |
| 15755 | |
| 15756 | openbsd*) |
| 15757 | hardcode_direct_GCJ=yes |
| 15758 | hardcode_shlibpath_var_GCJ=no |
| 15759 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15760 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 15761 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 15762 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 15763 | else |
| 15764 | case $host_os in |
| 15765 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 15766 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15767 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 15768 | ;; |
| 15769 | *) |
| 15770 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 15771 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 15772 | ;; |
| 15773 | esac |
| 15774 | fi |
| 15775 | ;; |
| 15776 | |
| 15777 | os2*) |
| 15778 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15779 | hardcode_minus_L_GCJ=yes |
| 15780 | allow_undefined_flag_GCJ=unsupported |
| 15781 | archive_cmds_GCJ='$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' |
| 15782 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 15783 | ;; |
| 15784 | |
| 15785 | osf3*) |
| 15786 | if test "$GCC" = yes; then |
| 15787 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 15788 | archive_cmds_GCJ='$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' |
| 15789 | else |
| 15790 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 15791 | archive_cmds_GCJ='$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' |
| 15792 | fi |
| 15793 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 15794 | hardcode_libdir_separator_GCJ=: |
| 15795 | ;; |
| 15796 | |
| 15797 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 15798 | if test "$GCC" = yes; then |
| 15799 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 15800 | archive_cmds_GCJ='$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' |
| 15801 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 15802 | else |
| 15803 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 15804 | archive_cmds_GCJ='$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' |
| 15805 | archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 15806 | $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' |
| 15807 | |
| 15808 | # Both c and cxx compiler support -rpath directly |
| 15809 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 15810 | fi |
| 15811 | hardcode_libdir_separator_GCJ=: |
| 15812 | ;; |
| 15813 | |
| 15814 | sco3.2v5*) |
| 15815 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15816 | hardcode_shlibpath_var_GCJ=no |
| 15817 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
| 15818 | runpath_var=LD_RUN_PATH |
| 15819 | hardcode_runpath_var=yes |
| 15820 | ;; |
| 15821 | |
| 15822 | solaris*) |
| 15823 | no_undefined_flag_GCJ=' -z text' |
| 15824 | if test "$GCC" = yes; then |
| 15825 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15826 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15827 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 15828 | else |
| 15829 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15830 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15831 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 15832 | fi |
| 15833 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 15834 | hardcode_shlibpath_var_GCJ=no |
| 15835 | case $host_os in |
| 15836 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 15837 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 15838 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 15839 | esac |
| 15840 | link_all_deplibs_GCJ=yes |
| 15841 | ;; |
| 15842 | |
| 15843 | sunos4*) |
| 15844 | if test "x$host_vendor" = xsequent; then |
| 15845 | # Use $CC to link under sequent, because it throws in some extra .o |
| 15846 | # files that make .init and .fini sections work. |
| 15847 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15848 | else |
| 15849 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 15850 | fi |
| 15851 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15852 | hardcode_direct_GCJ=yes |
| 15853 | hardcode_minus_L_GCJ=yes |
| 15854 | hardcode_shlibpath_var_GCJ=no |
| 15855 | ;; |
| 15856 | |
| 15857 | sysv4) |
| 15858 | case $host_vendor in |
| 15859 | sni) |
| 15860 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15861 | hardcode_direct_GCJ=yes # is this really true??? |
| 15862 | ;; |
| 15863 | siemens) |
| 15864 | ## LD is ld it makes a PLAMLIB |
| 15865 | ## CC just makes a GrossModule. |
| 15866 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 15867 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 15868 | hardcode_direct_GCJ=no |
| 15869 | ;; |
| 15870 | motorola) |
| 15871 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15872 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 15873 | ;; |
| 15874 | esac |
| 15875 | runpath_var='LD_RUN_PATH' |
| 15876 | hardcode_shlibpath_var_GCJ=no |
| 15877 | ;; |
| 15878 | |
| 15879 | sysv4.3*) |
| 15880 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15881 | hardcode_shlibpath_var_GCJ=no |
| 15882 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 15883 | ;; |
| 15884 | |
| 15885 | sysv4*MP*) |
| 15886 | if test -d /usr/nec; then |
| 15887 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15888 | hardcode_shlibpath_var_GCJ=no |
| 15889 | runpath_var=LD_RUN_PATH |
| 15890 | hardcode_runpath_var=yes |
| 15891 | ld_shlibs_GCJ=yes |
| 15892 | fi |
| 15893 | ;; |
| 15894 | |
| 15895 | sysv4.2uw2*) |
| 15896 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 15897 | hardcode_direct_GCJ=yes |
| 15898 | hardcode_minus_L_GCJ=no |
| 15899 | hardcode_shlibpath_var_GCJ=no |
| 15900 | hardcode_runpath_var=yes |
| 15901 | runpath_var=LD_RUN_PATH |
| 15902 | ;; |
| 15903 | |
| 15904 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 15905 | no_undefined_flag_GCJ='${wl}-z ${wl}text' |
| 15906 | if test "$GCC" = yes; then |
| 15907 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15908 | else |
| 15909 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15910 | fi |
| 15911 | runpath_var='LD_RUN_PATH' |
| 15912 | hardcode_shlibpath_var_GCJ=no |
| 15913 | ;; |
| 15914 | |
| 15915 | sysv5*) |
| 15916 | no_undefined_flag_GCJ=' -z text' |
| 15917 | # $CC -shared without GNU ld will not create a library from C++ |
| 15918 | # object files and a static libstdc++, better avoid it by now |
| 15919 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15920 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15921 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 15922 | hardcode_libdir_flag_spec_GCJ= |
| 15923 | hardcode_shlibpath_var_GCJ=no |
| 15924 | runpath_var='LD_RUN_PATH' |
| 15925 | ;; |
| 15926 | |
| 15927 | uts4*) |
| 15928 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15929 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 15930 | hardcode_shlibpath_var_GCJ=no |
| 15931 | ;; |
| 15932 | |
| 15933 | *) |
| 15934 | ld_shlibs_GCJ=no |
| 15935 | ;; |
| 15936 | esac |
| 15937 | fi |
| 15938 | |
| 15939 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 15940 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
| 15941 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 15942 | |
| 15943 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 15944 | if test "$GCC" = yes; then |
| 15945 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 15946 | fi |
| 15947 | |
| 15948 | # |
| 15949 | # Do we need to explicitly link libc? |
| 15950 | # |
| 15951 | case "x$archive_cmds_need_lc_GCJ" in |
| 15952 | x|xyes) |
| 15953 | # Assume -lc should be added |
| 15954 | archive_cmds_need_lc_GCJ=yes |
| 15955 | |
| 15956 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 15957 | case $archive_cmds_GCJ in |
| 15958 | *'~'*) |
| 15959 | # FIXME: we may have to deal with multi-command sequences. |
| 15960 | ;; |
| 15961 | '$CC '*) |
| 15962 | # Test whether the compiler implicitly links with -lc since on some |
| 15963 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 15964 | # to ld, don't add -lc before -lgcc. |
| 15965 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 15966 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 15967 | $rm conftest* |
| 15968 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15969 | |
| 15970 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15971 | (eval $ac_compile) 2>&5 |
| 15972 | ac_status=$? |
| 15973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15974 | (exit $ac_status); } 2>conftest.err; then |
| 15975 | soname=conftest |
| 15976 | lib=conftest |
| 15977 | libobjs=conftest.$ac_objext |
| 15978 | deplibs= |
| 15979 | wl=$lt_prog_compiler_wl_GCJ |
| 15980 | compiler_flags=-v |
| 15981 | linker_flags=-v |
| 15982 | verstring= |
| 15983 | output_objdir=. |
| 15984 | libname=conftest |
| 15985 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 15986 | allow_undefined_flag_GCJ= |
| 15987 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 15988 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 15989 | ac_status=$? |
| 15990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15991 | (exit $ac_status); } |
| 15992 | then |
| 15993 | archive_cmds_need_lc_GCJ=no |
| 15994 | else |
| 15995 | archive_cmds_need_lc_GCJ=yes |
| 15996 | fi |
| 15997 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 15998 | else |
| 15999 | cat conftest.err 1>&5 |
| 16000 | fi |
| 16001 | $rm conftest* |
| 16002 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 16003 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
| 16004 | ;; |
| 16005 | esac |
| 16006 | fi |
| 16007 | ;; |
| 16008 | esac |
| 16009 | |
| 16010 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 16011 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 16012 | library_names_spec= |
| 16013 | libname_spec='lib$name' |
| 16014 | soname_spec= |
| 16015 | shrext=".so" |
| 16016 | postinstall_cmds= |
| 16017 | postuninstall_cmds= |
| 16018 | finish_cmds= |
| 16019 | finish_eval= |
| 16020 | shlibpath_var= |
| 16021 | shlibpath_overrides_runpath=unknown |
| 16022 | version_type=none |
| 16023 | dynamic_linker="$host_os ld.so" |
| 16024 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 16025 | if test "$GCC" = yes; then |
| 16026 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16027 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 16028 | # if the path contains ";" then we assume it to be the separator |
| 16029 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 16030 | # assumed that no part of a normal pathname contains ";" but that should |
| 16031 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 16032 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16033 | else |
| 16034 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16035 | fi |
| 16036 | else |
| 16037 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 16038 | fi |
| 16039 | need_lib_prefix=unknown |
| 16040 | hardcode_into_libs=no |
| 16041 | |
| 16042 | # when you set need_version to no, make sure it does not cause -set_version |
| 16043 | # flags to be left without arguments |
| 16044 | need_version=unknown |
| 16045 | |
| 16046 | case $host_os in |
| 16047 | aix3*) |
| 16048 | version_type=linux |
| 16049 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 16050 | shlibpath_var=LIBPATH |
| 16051 | |
| 16052 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 16053 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16054 | ;; |
| 16055 | |
| 16056 | aix4* | aix5*) |
| 16057 | version_type=linux |
| 16058 | need_lib_prefix=no |
| 16059 | need_version=no |
| 16060 | hardcode_into_libs=yes |
| 16061 | if test "$host_cpu" = ia64; then |
| 16062 | # AIX 5 supports IA64 |
| 16063 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 16064 | shlibpath_var=LD_LIBRARY_PATH |
| 16065 | else |
| 16066 | # With GCC up to 2.95.x, collect2 would create an import file |
| 16067 | # for dependence libraries. The import file would start with |
| 16068 | # the line `#! .'. This would cause the generated library to |
| 16069 | # depend on `.', always an invalid library. This was fixed in |
| 16070 | # development snapshots of GCC prior to 3.0. |
| 16071 | case $host_os in |
| 16072 | aix4 | aix4.[01] | aix4.[01].*) |
| 16073 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 16074 | echo ' yes ' |
| 16075 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 16076 | : |
| 16077 | else |
| 16078 | can_build_shared=no |
| 16079 | fi |
| 16080 | ;; |
| 16081 | esac |
| 16082 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 16083 | # soname into executable. Probably we can add versioning support to |
| 16084 | # collect2, so additional links can be useful in future. |
| 16085 | if test "$aix_use_runtimelinking" = yes; then |
| 16086 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 16087 | # instead of lib<name>.a to let people know that these are not |
| 16088 | # typical AIX shared libraries. |
| 16089 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16090 | else |
| 16091 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 16092 | # and later when we are not doing run time linking. |
| 16093 | library_names_spec='${libname}${release}.a $libname.a' |
| 16094 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16095 | fi |
| 16096 | shlibpath_var=LIBPATH |
| 16097 | fi |
| 16098 | ;; |
| 16099 | |
| 16100 | amigaos*) |
| 16101 | library_names_spec='$libname.ixlibrary $libname.a' |
| 16102 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 16103 | 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' |
| 16104 | ;; |
| 16105 | |
| 16106 | beos*) |
| 16107 | library_names_spec='${libname}${shared_ext}' |
| 16108 | dynamic_linker="$host_os ld.so" |
| 16109 | shlibpath_var=LIBRARY_PATH |
| 16110 | ;; |
| 16111 | |
| 16112 | bsdi4*) |
| 16113 | version_type=linux |
| 16114 | need_version=no |
| 16115 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16116 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16117 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 16118 | shlibpath_var=LD_LIBRARY_PATH |
| 16119 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 16120 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 16121 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 16122 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 16123 | # libtool to hard-code these into programs |
| 16124 | ;; |
| 16125 | |
| 16126 | cygwin* | mingw* | pw32*) |
| 16127 | version_type=windows |
| 16128 | shrext=".dll" |
| 16129 | need_version=no |
| 16130 | need_lib_prefix=no |
| 16131 | |
| 16132 | case $GCC,$host_os in |
| 16133 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 16134 | library_names_spec='$libname.dll.a' |
| 16135 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 16136 | postinstall_cmds='base_file=`basename \${file}`~ |
| 16137 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 16138 | dldir=$destdir/`dirname \$dlpath`~ |
| 16139 | test -d \$dldir || mkdir -p \$dldir~ |
| 16140 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 16141 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 16142 | dlpath=$dir/\$dldll~ |
| 16143 | $rm \$dlpath' |
| 16144 | shlibpath_overrides_runpath=yes |
| 16145 | |
| 16146 | case $host_os in |
| 16147 | cygwin*) |
| 16148 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 16149 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16150 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 16151 | ;; |
| 16152 | mingw*) |
| 16153 | # MinGW DLLs use traditional 'lib' prefix |
| 16154 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16155 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16156 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 16157 | # It is most probably a Windows format PATH printed by |
| 16158 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 16159 | # path with ; separators, and with drive letters. We can handle the |
| 16160 | # drive letters (cygwin fileutils understands them), so leave them, |
| 16161 | # especially as we might pass files found there to a mingw objdump, |
| 16162 | # which wouldn't understand a cygwinified path. Ahh. |
| 16163 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16164 | else |
| 16165 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16166 | fi |
| 16167 | ;; |
| 16168 | pw32*) |
| 16169 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 16170 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| 16171 | ;; |
| 16172 | esac |
| 16173 | ;; |
| 16174 | |
| 16175 | *) |
| 16176 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 16177 | ;; |
| 16178 | esac |
| 16179 | dynamic_linker='Win32 ld.exe' |
| 16180 | # FIXME: first we should search . and the directory the executable is in |
| 16181 | shlibpath_var=PATH |
| 16182 | ;; |
| 16183 | |
| 16184 | darwin* | rhapsody*) |
| 16185 | dynamic_linker="$host_os dyld" |
| 16186 | version_type=darwin |
| 16187 | need_lib_prefix=no |
| 16188 | need_version=no |
| 16189 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 16190 | soname_spec='${libname}${release}${major}$shared_ext' |
| 16191 | shlibpath_overrides_runpath=yes |
| 16192 | shlibpath_var=DYLD_LIBRARY_PATH |
| 16193 | shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
| 16194 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 16195 | if test "$GCC" = yes; then |
| 16196 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
| 16197 | else |
| 16198 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 16199 | fi |
| 16200 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 16201 | ;; |
| 16202 | |
| 16203 | dgux*) |
| 16204 | version_type=linux |
| 16205 | need_lib_prefix=no |
| 16206 | need_version=no |
| 16207 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 16208 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16209 | shlibpath_var=LD_LIBRARY_PATH |
| 16210 | ;; |
| 16211 | |
| 16212 | freebsd1*) |
| 16213 | dynamic_linker=no |
| 16214 | ;; |
| 16215 | |
| 16216 | kfreebsd*-gnu) |
| 16217 | version_type=linux |
| 16218 | need_lib_prefix=no |
| 16219 | need_version=no |
| 16220 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16221 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16222 | shlibpath_var=LD_LIBRARY_PATH |
| 16223 | shlibpath_overrides_runpath=no |
| 16224 | hardcode_into_libs=yes |
| 16225 | dynamic_linker='GNU ld.so' |
| 16226 | ;; |
| 16227 | |
| 16228 | freebsd*) |
| 16229 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 16230 | version_type=freebsd-$objformat |
| 16231 | case $version_type in |
| 16232 | freebsd-elf*) |
| 16233 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16234 | need_version=no |
| 16235 | need_lib_prefix=no |
| 16236 | ;; |
| 16237 | freebsd-*) |
| 16238 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 16239 | need_version=yes |
| 16240 | ;; |
| 16241 | esac |
| 16242 | shlibpath_var=LD_LIBRARY_PATH |
| 16243 | case $host_os in |
| 16244 | freebsd2*) |
| 16245 | shlibpath_overrides_runpath=yes |
| 16246 | ;; |
| 16247 | freebsd3.01* | freebsdelf3.01*) |
| 16248 | shlibpath_overrides_runpath=yes |
| 16249 | hardcode_into_libs=yes |
| 16250 | ;; |
| 16251 | *) # from 3.2 on |
| 16252 | shlibpath_overrides_runpath=no |
| 16253 | hardcode_into_libs=yes |
| 16254 | ;; |
| 16255 | esac |
| 16256 | ;; |
| 16257 | |
| 16258 | gnu*) |
| 16259 | version_type=linux |
| 16260 | need_lib_prefix=no |
| 16261 | need_version=no |
| 16262 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 16263 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16264 | shlibpath_var=LD_LIBRARY_PATH |
| 16265 | hardcode_into_libs=yes |
| 16266 | ;; |
| 16267 | |
| 16268 | hpux9* | hpux10* | hpux11*) |
| 16269 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 16270 | # link against other versions. |
| 16271 | version_type=sunos |
| 16272 | need_lib_prefix=no |
| 16273 | need_version=no |
| 16274 | case "$host_cpu" in |
| 16275 | ia64*) |
| 16276 | shrext='.so' |
| 16277 | hardcode_into_libs=yes |
| 16278 | dynamic_linker="$host_os dld.so" |
| 16279 | shlibpath_var=LD_LIBRARY_PATH |
| 16280 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16281 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16282 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16283 | if test "X$HPUX_IA64_MODE" = X32; then |
| 16284 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 16285 | else |
| 16286 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 16287 | fi |
| 16288 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16289 | ;; |
| 16290 | hppa*64*) |
| 16291 | shrext='.sl' |
| 16292 | hardcode_into_libs=yes |
| 16293 | dynamic_linker="$host_os dld.sl" |
| 16294 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 16295 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16296 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16297 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16298 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 16299 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16300 | ;; |
| 16301 | *) |
| 16302 | shrext='.sl' |
| 16303 | dynamic_linker="$host_os dld.sl" |
| 16304 | shlibpath_var=SHLIB_PATH |
| 16305 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 16306 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16307 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16308 | ;; |
| 16309 | esac |
| 16310 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 16311 | postinstall_cmds='chmod 555 $lib' |
| 16312 | ;; |
| 16313 | |
| 16314 | irix5* | irix6* | nonstopux*) |
| 16315 | case $host_os in |
| 16316 | nonstopux*) version_type=nonstopux ;; |
| 16317 | *) |
| 16318 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 16319 | version_type=linux |
| 16320 | else |
| 16321 | version_type=irix |
| 16322 | fi ;; |
| 16323 | esac |
| 16324 | need_lib_prefix=no |
| 16325 | need_version=no |
| 16326 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16327 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16328 | case $host_os in |
| 16329 | irix5* | nonstopux*) |
| 16330 | libsuff= shlibsuff= |
| 16331 | ;; |
| 16332 | *) |
| 16333 | case $LD in # libtool.m4 will add one of these switches to LD |
| 16334 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 16335 | libsuff= shlibsuff= libmagic=32-bit;; |
| 16336 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 16337 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 16338 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 16339 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 16340 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 16341 | esac |
| 16342 | ;; |
| 16343 | esac |
| 16344 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 16345 | shlibpath_overrides_runpath=no |
| 16346 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 16347 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 16348 | hardcode_into_libs=yes |
| 16349 | ;; |
| 16350 | |
| 16351 | # No shared lib support for Linux oldld, aout, or coff. |
| 16352 | linux*oldld* | linux*aout* | linux*coff*) |
| 16353 | dynamic_linker=no |
| 16354 | ;; |
| 16355 | |
| 16356 | # This must be Linux ELF. |
| 16357 | linux*) |
| 16358 | version_type=linux |
| 16359 | need_lib_prefix=no |
| 16360 | need_version=no |
| 16361 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16362 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16363 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 16364 | shlibpath_var=LD_LIBRARY_PATH |
| 16365 | shlibpath_overrides_runpath=no |
| 16366 | # This implies no fast_install, which is unacceptable. |
| 16367 | # Some rework will be needed to allow for fast_install |
| 16368 | # before this can be enabled. |
| 16369 | hardcode_into_libs=yes |
| 16370 | |
| 16371 | # Append ld.so.conf contents to the search path |
| 16372 | if test -f /etc/ld.so.conf; then |
| 16373 | ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf` |
| 16374 | sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra" |
| 16375 | fi |
| 16376 | |
| 16377 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 16378 | # powerpc, because MkLinux only supported shared libraries with the |
| 16379 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 16380 | # most powerpc-linux boxes support dynamic linking these days and |
| 16381 | # people can always --disable-shared, the test was removed, and we |
| 16382 | # assume the GNU/Linux dynamic linker is in use. |
| 16383 | dynamic_linker='GNU/Linux ld.so' |
| 16384 | ;; |
| 16385 | |
| 16386 | knetbsd*-gnu) |
| 16387 | version_type=linux |
| 16388 | need_lib_prefix=no |
| 16389 | need_version=no |
| 16390 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16391 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16392 | shlibpath_var=LD_LIBRARY_PATH |
| 16393 | shlibpath_overrides_runpath=no |
| 16394 | hardcode_into_libs=yes |
| 16395 | dynamic_linker='GNU ld.so' |
| 16396 | ;; |
| 16397 | |
| 16398 | netbsd*) |
| 16399 | version_type=sunos |
| 16400 | need_lib_prefix=no |
| 16401 | need_version=no |
| 16402 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 16403 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16404 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16405 | dynamic_linker='NetBSD (a.out) ld.so' |
| 16406 | else |
| 16407 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16408 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16409 | dynamic_linker='NetBSD ld.elf_so' |
| 16410 | fi |
| 16411 | shlibpath_var=LD_LIBRARY_PATH |
| 16412 | shlibpath_overrides_runpath=yes |
| 16413 | hardcode_into_libs=yes |
| 16414 | ;; |
| 16415 | |
| 16416 | newsos6) |
| 16417 | version_type=linux |
| 16418 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16419 | shlibpath_var=LD_LIBRARY_PATH |
| 16420 | shlibpath_overrides_runpath=yes |
| 16421 | ;; |
| 16422 | |
| 16423 | nto-qnx*) |
| 16424 | version_type=linux |
| 16425 | need_lib_prefix=no |
| 16426 | need_version=no |
| 16427 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16428 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16429 | shlibpath_var=LD_LIBRARY_PATH |
| 16430 | shlibpath_overrides_runpath=yes |
| 16431 | ;; |
| 16432 | |
| 16433 | openbsd*) |
| 16434 | version_type=sunos |
| 16435 | need_lib_prefix=no |
| 16436 | need_version=yes |
| 16437 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16438 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16439 | shlibpath_var=LD_LIBRARY_PATH |
| 16440 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 16441 | case $host_os in |
| 16442 | openbsd2.[89] | openbsd2.[89].*) |
| 16443 | shlibpath_overrides_runpath=no |
| 16444 | ;; |
| 16445 | *) |
| 16446 | shlibpath_overrides_runpath=yes |
| 16447 | ;; |
| 16448 | esac |
| 16449 | else |
| 16450 | shlibpath_overrides_runpath=yes |
| 16451 | fi |
| 16452 | ;; |
| 16453 | |
| 16454 | os2*) |
| 16455 | libname_spec='$name' |
| 16456 | shrext=".dll" |
| 16457 | need_lib_prefix=no |
| 16458 | library_names_spec='$libname${shared_ext} $libname.a' |
| 16459 | dynamic_linker='OS/2 ld.exe' |
| 16460 | shlibpath_var=LIBPATH |
| 16461 | ;; |
| 16462 | |
| 16463 | osf3* | osf4* | osf5*) |
| 16464 | version_type=osf |
| 16465 | need_lib_prefix=no |
| 16466 | need_version=no |
| 16467 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16468 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16469 | shlibpath_var=LD_LIBRARY_PATH |
| 16470 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 16471 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 16472 | ;; |
| 16473 | |
| 16474 | sco3.2v5*) |
| 16475 | version_type=osf |
| 16476 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16477 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16478 | shlibpath_var=LD_LIBRARY_PATH |
| 16479 | ;; |
| 16480 | |
| 16481 | solaris*) |
| 16482 | version_type=linux |
| 16483 | need_lib_prefix=no |
| 16484 | need_version=no |
| 16485 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16486 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16487 | shlibpath_var=LD_LIBRARY_PATH |
| 16488 | shlibpath_overrides_runpath=yes |
| 16489 | hardcode_into_libs=yes |
| 16490 | # ldd complains unless libraries are executable |
| 16491 | postinstall_cmds='chmod +x $lib' |
| 16492 | ;; |
| 16493 | |
| 16494 | sunos4*) |
| 16495 | version_type=sunos |
| 16496 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16497 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 16498 | shlibpath_var=LD_LIBRARY_PATH |
| 16499 | shlibpath_overrides_runpath=yes |
| 16500 | if test "$with_gnu_ld" = yes; then |
| 16501 | need_lib_prefix=no |
| 16502 | fi |
| 16503 | need_version=yes |
| 16504 | ;; |
| 16505 | |
| 16506 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 16507 | version_type=linux |
| 16508 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16509 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16510 | shlibpath_var=LD_LIBRARY_PATH |
| 16511 | case $host_vendor in |
| 16512 | sni) |
| 16513 | shlibpath_overrides_runpath=no |
| 16514 | need_lib_prefix=no |
| 16515 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 16516 | runpath_var=LD_RUN_PATH |
| 16517 | ;; |
| 16518 | siemens) |
| 16519 | need_lib_prefix=no |
| 16520 | ;; |
| 16521 | motorola) |
| 16522 | need_lib_prefix=no |
| 16523 | need_version=no |
| 16524 | shlibpath_overrides_runpath=no |
| 16525 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 16526 | ;; |
| 16527 | esac |
| 16528 | ;; |
| 16529 | |
| 16530 | sysv4*MP*) |
| 16531 | if test -d /usr/nec ;then |
| 16532 | version_type=linux |
| 16533 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 16534 | soname_spec='$libname${shared_ext}.$major' |
| 16535 | shlibpath_var=LD_LIBRARY_PATH |
| 16536 | fi |
| 16537 | ;; |
| 16538 | |
| 16539 | uts4*) |
| 16540 | version_type=linux |
| 16541 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16542 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16543 | shlibpath_var=LD_LIBRARY_PATH |
| 16544 | ;; |
| 16545 | |
| 16546 | *) |
| 16547 | dynamic_linker=no |
| 16548 | ;; |
| 16549 | esac |
| 16550 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 16551 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 16552 | test "$dynamic_linker" = no && can_build_shared=no |
| 16553 | |
| 16554 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 16555 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 16556 | hardcode_action_GCJ= |
| 16557 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 16558 | test -n "$runpath_var GCJ" || \ |
| 16559 | test "X$hardcode_automatic_GCJ"="Xyes" ; then |
| 16560 | |
| 16561 | # We can hardcode non-existant directories. |
| 16562 | if test "$hardcode_direct_GCJ" != no && |
| 16563 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 16564 | # have to relink, otherwise we might link with an installed library |
| 16565 | # when we should be linking with a yet-to-be-installed one |
| 16566 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 16567 | test "$hardcode_minus_L_GCJ" != no; then |
| 16568 | # Linking always hardcodes the temporary library directory. |
| 16569 | hardcode_action_GCJ=relink |
| 16570 | else |
| 16571 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 16572 | hardcode_action_GCJ=immediate |
| 16573 | fi |
| 16574 | else |
| 16575 | # We cannot hardcode anything, or else we can only hardcode existing |
| 16576 | # directories. |
| 16577 | hardcode_action_GCJ=unsupported |
| 16578 | fi |
| 16579 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 16580 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
| 16581 | |
| 16582 | if test "$hardcode_action_GCJ" = relink; then |
| 16583 | # Fast installation is not supported |
| 16584 | enable_fast_install=no |
| 16585 | elif test "$shlibpath_overrides_runpath" = yes || |
| 16586 | test "$enable_shared" = no; then |
| 16587 | # Fast installation is not necessary |
| 16588 | enable_fast_install=needless |
| 16589 | fi |
| 16590 | |
| 16591 | striplib= |
| 16592 | old_striplib= |
| 16593 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 16594 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 16595 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 16596 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 16597 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 16598 | echo "$as_me:$LINENO: result: yes" >&5 |
| 16599 | echo "${ECHO_T}yes" >&6 |
| 16600 | else |
| 16601 | # FIXME - insert some real tests, host_os isn't really good enough |
| 16602 | case $host_os in |
| 16603 | darwin*) |
| 16604 | if test -n "$STRIP" ; then |
| 16605 | striplib="$STRIP -x" |
| 16606 | echo "$as_me:$LINENO: result: yes" >&5 |
| 16607 | echo "${ECHO_T}yes" >&6 |
| 16608 | else |
| 16609 | echo "$as_me:$LINENO: result: no" >&5 |
| 16610 | echo "${ECHO_T}no" >&6 |
| 16611 | fi |
| 16612 | ;; |
| 16613 | *) |
| 16614 | echo "$as_me:$LINENO: result: no" >&5 |
| 16615 | echo "${ECHO_T}no" >&6 |
| 16616 | ;; |
| 16617 | esac |
| 16618 | fi |
| 16619 | |
| 16620 | if test "x$enable_dlopen" != xyes; then |
| 16621 | enable_dlopen=unknown |
| 16622 | enable_dlopen_self=unknown |
| 16623 | enable_dlopen_self_static=unknown |
| 16624 | else |
| 16625 | lt_cv_dlopen=no |
| 16626 | lt_cv_dlopen_libs= |
| 16627 | |
| 16628 | case $host_os in |
| 16629 | beos*) |
| 16630 | lt_cv_dlopen="load_add_on" |
| 16631 | lt_cv_dlopen_libs= |
| 16632 | lt_cv_dlopen_self=yes |
| 16633 | ;; |
| 16634 | |
| 16635 | mingw* | pw32*) |
| 16636 | lt_cv_dlopen="LoadLibrary" |
| 16637 | lt_cv_dlopen_libs= |
| 16638 | ;; |
| 16639 | |
| 16640 | cygwin*) |
| 16641 | lt_cv_dlopen="dlopen" |
| 16642 | lt_cv_dlopen_libs= |
| 16643 | ;; |
| 16644 | |
| 16645 | darwin*) |
| 16646 | # if libdl is installed we need to link against it |
| 16647 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 16648 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 16649 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 16650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16651 | else |
| 16652 | ac_check_lib_save_LIBS=$LIBS |
| 16653 | LIBS="-ldl $LIBS" |
| 16654 | cat >conftest.$ac_ext <<_ACEOF |
| 16655 | /* confdefs.h. */ |
| 16656 | _ACEOF |
| 16657 | cat confdefs.h >>conftest.$ac_ext |
| 16658 | cat >>conftest.$ac_ext <<_ACEOF |
| 16659 | /* end confdefs.h. */ |
| 16660 | |
| 16661 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16662 | #ifdef __cplusplus |
| 16663 | extern "C" |
| 16664 | #endif |
| 16665 | /* We use char because int might match the return type of a gcc2 |
| 16666 | builtin and then its argument prototype would still apply. */ |
| 16667 | char dlopen (); |
| 16668 | int |
| 16669 | main () |
| 16670 | { |
| 16671 | dlopen (); |
| 16672 | ; |
| 16673 | return 0; |
| 16674 | } |
| 16675 | _ACEOF |
| 16676 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16677 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16678 | (eval $ac_link) 2>conftest.er1 |
| 16679 | ac_status=$? |
| 16680 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16681 | rm -f conftest.er1 |
| 16682 | cat conftest.err >&5 |
| 16683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16684 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 16685 | { ac_try='test -z "$ac_c_werror_flag" |
| 16686 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16688 | (eval $ac_try) 2>&5 |
| 16689 | ac_status=$? |
| 16690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16691 | (exit $ac_status); }; } && |
| 16692 | { ac_try='test -s conftest$ac_exeext' |
| 16693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16694 | (eval $ac_try) 2>&5 |
| 16695 | ac_status=$? |
| 16696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16697 | (exit $ac_status); }; }; then |
| 16698 | ac_cv_lib_dl_dlopen=yes |
| 16699 | else |
| 16700 | echo "$as_me: failed program was:" >&5 |
| 16701 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16702 | |
| 16703 | ac_cv_lib_dl_dlopen=no |
| 16704 | fi |
| 16705 | rm -f conftest.err conftest.$ac_objext \ |
| 16706 | conftest$ac_exeext conftest.$ac_ext |
| 16707 | LIBS=$ac_check_lib_save_LIBS |
| 16708 | fi |
| 16709 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 16710 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 16711 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 16712 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 16713 | else |
| 16714 | |
| 16715 | lt_cv_dlopen="dyld" |
| 16716 | lt_cv_dlopen_libs= |
| 16717 | lt_cv_dlopen_self=yes |
| 16718 | |
| 16719 | fi |
| 16720 | |
| 16721 | ;; |
| 16722 | |
| 16723 | *) |
| 16724 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 16725 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 16726 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 16727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16728 | else |
| 16729 | cat >conftest.$ac_ext <<_ACEOF |
| 16730 | /* confdefs.h. */ |
| 16731 | _ACEOF |
| 16732 | cat confdefs.h >>conftest.$ac_ext |
| 16733 | cat >>conftest.$ac_ext <<_ACEOF |
| 16734 | /* end confdefs.h. */ |
| 16735 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 16736 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16737 | #define shl_load innocuous_shl_load |
| 16738 | |
| 16739 | /* System header to define __stub macros and hopefully few prototypes, |
| 16740 | which can conflict with char shl_load (); below. |
| 16741 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16742 | <limits.h> exists even on freestanding compilers. */ |
| 16743 | |
| 16744 | #ifdef __STDC__ |
| 16745 | # include <limits.h> |
| 16746 | #else |
| 16747 | # include <assert.h> |
| 16748 | #endif |
| 16749 | |
| 16750 | #undef shl_load |
| 16751 | |
| 16752 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16753 | #ifdef __cplusplus |
| 16754 | extern "C" |
| 16755 | { |
| 16756 | #endif |
| 16757 | /* We use char because int might match the return type of a gcc2 |
| 16758 | builtin and then its argument prototype would still apply. */ |
| 16759 | char shl_load (); |
| 16760 | /* The GNU C library defines this for functions which it implements |
| 16761 | to always fail with ENOSYS. Some functions are actually named |
| 16762 | something starting with __ and the normal name is an alias. */ |
| 16763 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 16764 | choke me |
| 16765 | #else |
| 16766 | char (*f) () = shl_load; |
| 16767 | #endif |
| 16768 | #ifdef __cplusplus |
| 16769 | } |
| 16770 | #endif |
| 16771 | |
| 16772 | int |
| 16773 | main () |
| 16774 | { |
| 16775 | return f != shl_load; |
| 16776 | ; |
| 16777 | return 0; |
| 16778 | } |
| 16779 | _ACEOF |
| 16780 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16781 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16782 | (eval $ac_link) 2>conftest.er1 |
| 16783 | ac_status=$? |
| 16784 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16785 | rm -f conftest.er1 |
| 16786 | cat conftest.err >&5 |
| 16787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16788 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 16789 | { ac_try='test -z "$ac_c_werror_flag" |
| 16790 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16792 | (eval $ac_try) 2>&5 |
| 16793 | ac_status=$? |
| 16794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16795 | (exit $ac_status); }; } && |
| 16796 | { ac_try='test -s conftest$ac_exeext' |
| 16797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16798 | (eval $ac_try) 2>&5 |
| 16799 | ac_status=$? |
| 16800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16801 | (exit $ac_status); }; }; then |
| 16802 | ac_cv_func_shl_load=yes |
| 16803 | else |
| 16804 | echo "$as_me: failed program was:" >&5 |
| 16805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16806 | |
| 16807 | ac_cv_func_shl_load=no |
| 16808 | fi |
| 16809 | rm -f conftest.err conftest.$ac_objext \ |
| 16810 | conftest$ac_exeext conftest.$ac_ext |
| 16811 | fi |
| 16812 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 16813 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 16814 | if test $ac_cv_func_shl_load = yes; then |
| 16815 | lt_cv_dlopen="shl_load" |
| 16816 | else |
| 16817 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 16818 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 16819 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 16820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16821 | else |
| 16822 | ac_check_lib_save_LIBS=$LIBS |
| 16823 | LIBS="-ldld $LIBS" |
| 16824 | cat >conftest.$ac_ext <<_ACEOF |
| 16825 | /* confdefs.h. */ |
| 16826 | _ACEOF |
| 16827 | cat confdefs.h >>conftest.$ac_ext |
| 16828 | cat >>conftest.$ac_ext <<_ACEOF |
| 16829 | /* end confdefs.h. */ |
| 16830 | |
| 16831 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16832 | #ifdef __cplusplus |
| 16833 | extern "C" |
| 16834 | #endif |
| 16835 | /* We use char because int might match the return type of a gcc2 |
| 16836 | builtin and then its argument prototype would still apply. */ |
| 16837 | char shl_load (); |
| 16838 | int |
| 16839 | main () |
| 16840 | { |
| 16841 | shl_load (); |
| 16842 | ; |
| 16843 | return 0; |
| 16844 | } |
| 16845 | _ACEOF |
| 16846 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16847 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16848 | (eval $ac_link) 2>conftest.er1 |
| 16849 | ac_status=$? |
| 16850 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16851 | rm -f conftest.er1 |
| 16852 | cat conftest.err >&5 |
| 16853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16854 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 16855 | { ac_try='test -z "$ac_c_werror_flag" |
| 16856 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16858 | (eval $ac_try) 2>&5 |
| 16859 | ac_status=$? |
| 16860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16861 | (exit $ac_status); }; } && |
| 16862 | { ac_try='test -s conftest$ac_exeext' |
| 16863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16864 | (eval $ac_try) 2>&5 |
| 16865 | ac_status=$? |
| 16866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16867 | (exit $ac_status); }; }; then |
| 16868 | ac_cv_lib_dld_shl_load=yes |
| 16869 | else |
| 16870 | echo "$as_me: failed program was:" >&5 |
| 16871 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16872 | |
| 16873 | ac_cv_lib_dld_shl_load=no |
| 16874 | fi |
| 16875 | rm -f conftest.err conftest.$ac_objext \ |
| 16876 | conftest$ac_exeext conftest.$ac_ext |
| 16877 | LIBS=$ac_check_lib_save_LIBS |
| 16878 | fi |
| 16879 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 16880 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 16881 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 16882 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 16883 | else |
| 16884 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 16885 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 16886 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 16887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16888 | else |
| 16889 | cat >conftest.$ac_ext <<_ACEOF |
| 16890 | /* confdefs.h. */ |
| 16891 | _ACEOF |
| 16892 | cat confdefs.h >>conftest.$ac_ext |
| 16893 | cat >>conftest.$ac_ext <<_ACEOF |
| 16894 | /* end confdefs.h. */ |
| 16895 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 16896 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16897 | #define dlopen innocuous_dlopen |
| 16898 | |
| 16899 | /* System header to define __stub macros and hopefully few prototypes, |
| 16900 | which can conflict with char dlopen (); below. |
| 16901 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16902 | <limits.h> exists even on freestanding compilers. */ |
| 16903 | |
| 16904 | #ifdef __STDC__ |
| 16905 | # include <limits.h> |
| 16906 | #else |
| 16907 | # include <assert.h> |
| 16908 | #endif |
| 16909 | |
| 16910 | #undef dlopen |
| 16911 | |
| 16912 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16913 | #ifdef __cplusplus |
| 16914 | extern "C" |
| 16915 | { |
| 16916 | #endif |
| 16917 | /* We use char because int might match the return type of a gcc2 |
| 16918 | builtin and then its argument prototype would still apply. */ |
| 16919 | char dlopen (); |
| 16920 | /* The GNU C library defines this for functions which it implements |
| 16921 | to always fail with ENOSYS. Some functions are actually named |
| 16922 | something starting with __ and the normal name is an alias. */ |
| 16923 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 16924 | choke me |
| 16925 | #else |
| 16926 | char (*f) () = dlopen; |
| 16927 | #endif |
| 16928 | #ifdef __cplusplus |
| 16929 | } |
| 16930 | #endif |
| 16931 | |
| 16932 | int |
| 16933 | main () |
| 16934 | { |
| 16935 | return f != dlopen; |
| 16936 | ; |
| 16937 | return 0; |
| 16938 | } |
| 16939 | _ACEOF |
| 16940 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16941 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16942 | (eval $ac_link) 2>conftest.er1 |
| 16943 | ac_status=$? |
| 16944 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16945 | rm -f conftest.er1 |
| 16946 | cat conftest.err >&5 |
| 16947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16948 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 16949 | { ac_try='test -z "$ac_c_werror_flag" |
| 16950 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 16951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16952 | (eval $ac_try) 2>&5 |
| 16953 | ac_status=$? |
| 16954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16955 | (exit $ac_status); }; } && |
| 16956 | { ac_try='test -s conftest$ac_exeext' |
| 16957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16958 | (eval $ac_try) 2>&5 |
| 16959 | ac_status=$? |
| 16960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16961 | (exit $ac_status); }; }; then |
| 16962 | ac_cv_func_dlopen=yes |
| 16963 | else |
| 16964 | echo "$as_me: failed program was:" >&5 |
| 16965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16966 | |
| 16967 | ac_cv_func_dlopen=no |
| 16968 | fi |
| 16969 | rm -f conftest.err conftest.$ac_objext \ |
| 16970 | conftest$ac_exeext conftest.$ac_ext |
| 16971 | fi |
| 16972 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 16973 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 16974 | if test $ac_cv_func_dlopen = yes; then |
| 16975 | lt_cv_dlopen="dlopen" |
| 16976 | else |
| 16977 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 16978 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 16979 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 16980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16981 | else |
| 16982 | ac_check_lib_save_LIBS=$LIBS |
| 16983 | LIBS="-ldl $LIBS" |
| 16984 | cat >conftest.$ac_ext <<_ACEOF |
| 16985 | /* confdefs.h. */ |
| 16986 | _ACEOF |
| 16987 | cat confdefs.h >>conftest.$ac_ext |
| 16988 | cat >>conftest.$ac_ext <<_ACEOF |
| 16989 | /* end confdefs.h. */ |
| 16990 | |
| 16991 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16992 | #ifdef __cplusplus |
| 16993 | extern "C" |
| 16994 | #endif |
| 16995 | /* We use char because int might match the return type of a gcc2 |
| 16996 | builtin and then its argument prototype would still apply. */ |
| 16997 | char dlopen (); |
| 16998 | int |
| 16999 | main () |
| 17000 | { |
| 17001 | dlopen (); |
| 17002 | ; |
| 17003 | return 0; |
| 17004 | } |
| 17005 | _ACEOF |
| 17006 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17007 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17008 | (eval $ac_link) 2>conftest.er1 |
| 17009 | ac_status=$? |
| 17010 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17011 | rm -f conftest.er1 |
| 17012 | cat conftest.err >&5 |
| 17013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17014 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 17015 | { ac_try='test -z "$ac_c_werror_flag" |
| 17016 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17018 | (eval $ac_try) 2>&5 |
| 17019 | ac_status=$? |
| 17020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17021 | (exit $ac_status); }; } && |
| 17022 | { ac_try='test -s conftest$ac_exeext' |
| 17023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17024 | (eval $ac_try) 2>&5 |
| 17025 | ac_status=$? |
| 17026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17027 | (exit $ac_status); }; }; then |
| 17028 | ac_cv_lib_dl_dlopen=yes |
| 17029 | else |
| 17030 | echo "$as_me: failed program was:" >&5 |
| 17031 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17032 | |
| 17033 | ac_cv_lib_dl_dlopen=no |
| 17034 | fi |
| 17035 | rm -f conftest.err conftest.$ac_objext \ |
| 17036 | conftest$ac_exeext conftest.$ac_ext |
| 17037 | LIBS=$ac_check_lib_save_LIBS |
| 17038 | fi |
| 17039 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 17040 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 17041 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 17042 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 17043 | else |
| 17044 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 17045 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 17046 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 17047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17048 | else |
| 17049 | ac_check_lib_save_LIBS=$LIBS |
| 17050 | LIBS="-lsvld $LIBS" |
| 17051 | cat >conftest.$ac_ext <<_ACEOF |
| 17052 | /* confdefs.h. */ |
| 17053 | _ACEOF |
| 17054 | cat confdefs.h >>conftest.$ac_ext |
| 17055 | cat >>conftest.$ac_ext <<_ACEOF |
| 17056 | /* end confdefs.h. */ |
| 17057 | |
| 17058 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17059 | #ifdef __cplusplus |
| 17060 | extern "C" |
| 17061 | #endif |
| 17062 | /* We use char because int might match the return type of a gcc2 |
| 17063 | builtin and then its argument prototype would still apply. */ |
| 17064 | char dlopen (); |
| 17065 | int |
| 17066 | main () |
| 17067 | { |
| 17068 | dlopen (); |
| 17069 | ; |
| 17070 | return 0; |
| 17071 | } |
| 17072 | _ACEOF |
| 17073 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17074 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17075 | (eval $ac_link) 2>conftest.er1 |
| 17076 | ac_status=$? |
| 17077 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17078 | rm -f conftest.er1 |
| 17079 | cat conftest.err >&5 |
| 17080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17081 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 17082 | { ac_try='test -z "$ac_c_werror_flag" |
| 17083 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17085 | (eval $ac_try) 2>&5 |
| 17086 | ac_status=$? |
| 17087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17088 | (exit $ac_status); }; } && |
| 17089 | { ac_try='test -s conftest$ac_exeext' |
| 17090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17091 | (eval $ac_try) 2>&5 |
| 17092 | ac_status=$? |
| 17093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17094 | (exit $ac_status); }; }; then |
| 17095 | ac_cv_lib_svld_dlopen=yes |
| 17096 | else |
| 17097 | echo "$as_me: failed program was:" >&5 |
| 17098 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17099 | |
| 17100 | ac_cv_lib_svld_dlopen=no |
| 17101 | fi |
| 17102 | rm -f conftest.err conftest.$ac_objext \ |
| 17103 | conftest$ac_exeext conftest.$ac_ext |
| 17104 | LIBS=$ac_check_lib_save_LIBS |
| 17105 | fi |
| 17106 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 17107 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 17108 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 17109 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 17110 | else |
| 17111 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 17112 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| 17113 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 17114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17115 | else |
| 17116 | ac_check_lib_save_LIBS=$LIBS |
| 17117 | LIBS="-ldld $LIBS" |
| 17118 | cat >conftest.$ac_ext <<_ACEOF |
| 17119 | /* confdefs.h. */ |
| 17120 | _ACEOF |
| 17121 | cat confdefs.h >>conftest.$ac_ext |
| 17122 | cat >>conftest.$ac_ext <<_ACEOF |
| 17123 | /* end confdefs.h. */ |
| 17124 | |
| 17125 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 17126 | #ifdef __cplusplus |
| 17127 | extern "C" |
| 17128 | #endif |
| 17129 | /* We use char because int might match the return type of a gcc2 |
| 17130 | builtin and then its argument prototype would still apply. */ |
| 17131 | char dld_link (); |
| 17132 | int |
| 17133 | main () |
| 17134 | { |
| 17135 | dld_link (); |
| 17136 | ; |
| 17137 | return 0; |
| 17138 | } |
| 17139 | _ACEOF |
| 17140 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17141 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17142 | (eval $ac_link) 2>conftest.er1 |
| 17143 | ac_status=$? |
| 17144 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17145 | rm -f conftest.er1 |
| 17146 | cat conftest.err >&5 |
| 17147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17148 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 17149 | { ac_try='test -z "$ac_c_werror_flag" |
| 17150 | || test ! -s conftest.err' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17152 | (eval $ac_try) 2>&5 |
| 17153 | ac_status=$? |
| 17154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17155 | (exit $ac_status); }; } && |
| 17156 | { ac_try='test -s conftest$ac_exeext' |
| 17157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17158 | (eval $ac_try) 2>&5 |
| 17159 | ac_status=$? |
| 17160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17161 | (exit $ac_status); }; }; then |
| 17162 | ac_cv_lib_dld_dld_link=yes |
| 17163 | else |
| 17164 | echo "$as_me: failed program was:" >&5 |
| 17165 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17166 | |
| 17167 | ac_cv_lib_dld_dld_link=no |
| 17168 | fi |
| 17169 | rm -f conftest.err conftest.$ac_objext \ |
| 17170 | conftest$ac_exeext conftest.$ac_ext |
| 17171 | LIBS=$ac_check_lib_save_LIBS |
| 17172 | fi |
| 17173 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 17174 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| 17175 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 17176 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 17177 | fi |
| 17178 | |
| 17179 | |
| 17180 | fi |
| 17181 | |
| 17182 | |
| 17183 | fi |
| 17184 | |
| 17185 | |
| 17186 | fi |
| 17187 | |
| 17188 | |
| 17189 | fi |
| 17190 | |
| 17191 | |
| 17192 | fi |
| 17193 | |
| 17194 | ;; |
| 17195 | esac |
| 17196 | |
| 17197 | if test "x$lt_cv_dlopen" != xno; then |
| 17198 | enable_dlopen=yes |
| 17199 | else |
| 17200 | enable_dlopen=no |
| 17201 | fi |
| 17202 | |
| 17203 | case $lt_cv_dlopen in |
| 17204 | dlopen) |
| 17205 | save_CPPFLAGS="$CPPFLAGS" |
| 17206 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 17207 | |
| 17208 | save_LDFLAGS="$LDFLAGS" |
| 17209 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 17210 | |
| 17211 | save_LIBS="$LIBS" |
| 17212 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 17213 | |
| 17214 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 17215 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 17216 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 17217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17218 | else |
| 17219 | if test "$cross_compiling" = yes; then : |
| 17220 | lt_cv_dlopen_self=cross |
| 17221 | else |
| 17222 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 17223 | lt_status=$lt_dlunknown |
| 17224 | cat > conftest.$ac_ext <<EOF |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 17225 | #line 17225 "configure" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17226 | #include "confdefs.h" |
| 17227 | |
| 17228 | #if HAVE_DLFCN_H |
| 17229 | #include <dlfcn.h> |
| 17230 | #endif |
| 17231 | |
| 17232 | #include <stdio.h> |
| 17233 | |
| 17234 | #ifdef RTLD_GLOBAL |
| 17235 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17236 | #else |
| 17237 | # ifdef DL_GLOBAL |
| 17238 | # define LT_DLGLOBAL DL_GLOBAL |
| 17239 | # else |
| 17240 | # define LT_DLGLOBAL 0 |
| 17241 | # endif |
| 17242 | #endif |
| 17243 | |
| 17244 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17245 | find out it does not work in some platform. */ |
| 17246 | #ifndef LT_DLLAZY_OR_NOW |
| 17247 | # ifdef RTLD_LAZY |
| 17248 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17249 | # else |
| 17250 | # ifdef DL_LAZY |
| 17251 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17252 | # else |
| 17253 | # ifdef RTLD_NOW |
| 17254 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17255 | # else |
| 17256 | # ifdef DL_NOW |
| 17257 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17258 | # else |
| 17259 | # define LT_DLLAZY_OR_NOW 0 |
| 17260 | # endif |
| 17261 | # endif |
| 17262 | # endif |
| 17263 | # endif |
| 17264 | #endif |
| 17265 | |
| 17266 | #ifdef __cplusplus |
| 17267 | extern "C" void exit (int); |
| 17268 | #endif |
| 17269 | |
| 17270 | void fnord() { int i=42;} |
| 17271 | int main () |
| 17272 | { |
| 17273 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17274 | int status = $lt_dlunknown; |
| 17275 | |
| 17276 | if (self) |
| 17277 | { |
| 17278 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17279 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17280 | /* dlclose (self); */ |
| 17281 | } |
| 17282 | |
| 17283 | exit (status); |
| 17284 | } |
| 17285 | EOF |
| 17286 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17287 | (eval $ac_link) 2>&5 |
| 17288 | ac_status=$? |
| 17289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17290 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 17291 | (./conftest; exit; ) 2>/dev/null |
| 17292 | lt_status=$? |
| 17293 | case x$lt_status in |
| 17294 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 17295 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 17296 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 17297 | esac |
| 17298 | else : |
| 17299 | # compilation failed |
| 17300 | lt_cv_dlopen_self=no |
| 17301 | fi |
| 17302 | fi |
| 17303 | rm -fr conftest* |
| 17304 | |
| 17305 | |
| 17306 | fi |
| 17307 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 17308 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 17309 | |
| 17310 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 17311 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 17312 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 17313 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 17314 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 17315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17316 | else |
| 17317 | if test "$cross_compiling" = yes; then : |
| 17318 | lt_cv_dlopen_self_static=cross |
| 17319 | else |
| 17320 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 17321 | lt_status=$lt_dlunknown |
| 17322 | cat > conftest.$ac_ext <<EOF |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 17323 | #line 17323 "configure" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 17324 | #include "confdefs.h" |
| 17325 | |
| 17326 | #if HAVE_DLFCN_H |
| 17327 | #include <dlfcn.h> |
| 17328 | #endif |
| 17329 | |
| 17330 | #include <stdio.h> |
| 17331 | |
| 17332 | #ifdef RTLD_GLOBAL |
| 17333 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17334 | #else |
| 17335 | # ifdef DL_GLOBAL |
| 17336 | # define LT_DLGLOBAL DL_GLOBAL |
| 17337 | # else |
| 17338 | # define LT_DLGLOBAL 0 |
| 17339 | # endif |
| 17340 | #endif |
| 17341 | |
| 17342 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17343 | find out it does not work in some platform. */ |
| 17344 | #ifndef LT_DLLAZY_OR_NOW |
| 17345 | # ifdef RTLD_LAZY |
| 17346 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17347 | # else |
| 17348 | # ifdef DL_LAZY |
| 17349 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17350 | # else |
| 17351 | # ifdef RTLD_NOW |
| 17352 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17353 | # else |
| 17354 | # ifdef DL_NOW |
| 17355 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17356 | # else |
| 17357 | # define LT_DLLAZY_OR_NOW 0 |
| 17358 | # endif |
| 17359 | # endif |
| 17360 | # endif |
| 17361 | # endif |
| 17362 | #endif |
| 17363 | |
| 17364 | #ifdef __cplusplus |
| 17365 | extern "C" void exit (int); |
| 17366 | #endif |
| 17367 | |
| 17368 | void fnord() { int i=42;} |
| 17369 | int main () |
| 17370 | { |
| 17371 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17372 | int status = $lt_dlunknown; |
| 17373 | |
| 17374 | if (self) |
| 17375 | { |
| 17376 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17377 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17378 | /* dlclose (self); */ |
| 17379 | } |
| 17380 | |
| 17381 | exit (status); |
| 17382 | } |
| 17383 | EOF |
| 17384 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17385 | (eval $ac_link) 2>&5 |
| 17386 | ac_status=$? |
| 17387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17388 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 17389 | (./conftest; exit; ) 2>/dev/null |
| 17390 | lt_status=$? |
| 17391 | case x$lt_status in |
| 17392 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 17393 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 17394 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 17395 | esac |
| 17396 | else : |
| 17397 | # compilation failed |
| 17398 | lt_cv_dlopen_self_static=no |
| 17399 | fi |
| 17400 | fi |
| 17401 | rm -fr conftest* |
| 17402 | |
| 17403 | |
| 17404 | fi |
| 17405 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 17406 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 17407 | fi |
| 17408 | |
| 17409 | CPPFLAGS="$save_CPPFLAGS" |
| 17410 | LDFLAGS="$save_LDFLAGS" |
| 17411 | LIBS="$save_LIBS" |
| 17412 | ;; |
| 17413 | esac |
| 17414 | |
| 17415 | case $lt_cv_dlopen_self in |
| 17416 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 17417 | *) enable_dlopen_self=unknown ;; |
| 17418 | esac |
| 17419 | |
| 17420 | case $lt_cv_dlopen_self_static in |
| 17421 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 17422 | *) enable_dlopen_self_static=unknown ;; |
| 17423 | esac |
| 17424 | fi |
| 17425 | |
| 17426 | |
| 17427 | # The else clause should only fire when bootstrapping the |
| 17428 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 17429 | # with your package, and you will get complaints that there are |
| 17430 | # no rules to generate ltmain.sh. |
| 17431 | if test -f "$ltmain"; then |
| 17432 | # See if we are running on zsh, and set the options which allow our commands through |
| 17433 | # without removal of \ escapes. |
| 17434 | if test -n "${ZSH_VERSION+set}" ; then |
| 17435 | setopt NO_GLOB_SUBST |
| 17436 | fi |
| 17437 | # Now quote all the things that may contain metacharacters while being |
| 17438 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 17439 | # variables and quote the copies for generation of the libtool script. |
| 17440 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 17441 | SED SHELL STRIP \ |
| 17442 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 17443 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 17444 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 17445 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 17446 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 17447 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 17448 | old_postinstall_cmds old_postuninstall_cmds \ |
| 17449 | compiler_GCJ \ |
| 17450 | CC_GCJ \ |
| 17451 | LD_GCJ \ |
| 17452 | lt_prog_compiler_wl_GCJ \ |
| 17453 | lt_prog_compiler_pic_GCJ \ |
| 17454 | lt_prog_compiler_static_GCJ \ |
| 17455 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 17456 | export_dynamic_flag_spec_GCJ \ |
| 17457 | thread_safe_flag_spec_GCJ \ |
| 17458 | whole_archive_flag_spec_GCJ \ |
| 17459 | enable_shared_with_static_runtimes_GCJ \ |
| 17460 | old_archive_cmds_GCJ \ |
| 17461 | old_archive_from_new_cmds_GCJ \ |
| 17462 | predep_objects_GCJ \ |
| 17463 | postdep_objects_GCJ \ |
| 17464 | predeps_GCJ \ |
| 17465 | postdeps_GCJ \ |
| 17466 | compiler_lib_search_path_GCJ \ |
| 17467 | archive_cmds_GCJ \ |
| 17468 | archive_expsym_cmds_GCJ \ |
| 17469 | postinstall_cmds_GCJ \ |
| 17470 | postuninstall_cmds_GCJ \ |
| 17471 | old_archive_from_expsyms_cmds_GCJ \ |
| 17472 | allow_undefined_flag_GCJ \ |
| 17473 | no_undefined_flag_GCJ \ |
| 17474 | export_symbols_cmds_GCJ \ |
| 17475 | hardcode_libdir_flag_spec_GCJ \ |
| 17476 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 17477 | hardcode_libdir_separator_GCJ \ |
| 17478 | hardcode_automatic_GCJ \ |
| 17479 | module_cmds_GCJ \ |
| 17480 | module_expsym_cmds_GCJ \ |
| 17481 | lt_cv_prog_compiler_c_o_GCJ \ |
| 17482 | exclude_expsyms_GCJ \ |
| 17483 | include_expsyms_GCJ; do |
| 17484 | |
| 17485 | case $var in |
| 17486 | old_archive_cmds_GCJ | \ |
| 17487 | old_archive_from_new_cmds_GCJ | \ |
| 17488 | archive_cmds_GCJ | \ |
| 17489 | archive_expsym_cmds_GCJ | \ |
| 17490 | module_cmds_GCJ | \ |
| 17491 | module_expsym_cmds_GCJ | \ |
| 17492 | old_archive_from_expsyms_cmds_GCJ | \ |
| 17493 | export_symbols_cmds_GCJ | \ |
| 17494 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 17495 | postinstall_cmds | postuninstall_cmds | \ |
| 17496 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 17497 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 17498 | # Double-quote double-evaled strings. |
| 17499 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 17500 | ;; |
| 17501 | *) |
| 17502 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 17503 | ;; |
| 17504 | esac |
| 17505 | done |
| 17506 | |
| 17507 | case $lt_echo in |
| 17508 | *'\$0 --fallback-echo"') |
| 17509 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 17510 | ;; |
| 17511 | esac |
| 17512 | |
| 17513 | cfgfile="$ofile" |
| 17514 | |
| 17515 | cat <<__EOF__ >> "$cfgfile" |
| 17516 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 17517 | |
| 17518 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 17519 | |
| 17520 | # Shell to use when invoking shell scripts. |
| 17521 | SHELL=$lt_SHELL |
| 17522 | |
| 17523 | # Whether or not to build shared libraries. |
| 17524 | build_libtool_libs=$enable_shared |
| 17525 | |
| 17526 | # Whether or not to build static libraries. |
| 17527 | build_old_libs=$enable_static |
| 17528 | |
| 17529 | # Whether or not to add -lc for building shared libraries. |
| 17530 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 17531 | |
| 17532 | # Whether or not to disallow shared libs when runtime libs are static |
| 17533 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 17534 | |
| 17535 | # Whether or not to optimize for fast installation. |
| 17536 | fast_install=$enable_fast_install |
| 17537 | |
| 17538 | # The host system. |
| 17539 | host_alias=$host_alias |
| 17540 | host=$host |
| 17541 | |
| 17542 | # An echo program that does not interpret backslashes. |
| 17543 | echo=$lt_echo |
| 17544 | |
| 17545 | # The archiver. |
| 17546 | AR=$lt_AR |
| 17547 | AR_FLAGS=$lt_AR_FLAGS |
| 17548 | |
| 17549 | # A C compiler. |
| 17550 | LTCC=$lt_LTCC |
| 17551 | |
| 17552 | # A language-specific compiler. |
| 17553 | CC=$lt_compiler_GCJ |
| 17554 | |
| 17555 | # Is the compiler the GNU C compiler? |
| 17556 | with_gcc=$GCC_GCJ |
| 17557 | |
| 17558 | # An ERE matcher. |
| 17559 | EGREP=$lt_EGREP |
| 17560 | |
| 17561 | # The linker used to build libraries. |
| 17562 | LD=$lt_LD_GCJ |
| 17563 | |
| 17564 | # Whether we need hard or soft links. |
| 17565 | LN_S=$lt_LN_S |
| 17566 | |
| 17567 | # A BSD-compatible nm program. |
| 17568 | NM=$lt_NM |
| 17569 | |
| 17570 | # A symbol stripping program |
| 17571 | STRIP=$lt_STRIP |
| 17572 | |
| 17573 | # Used to examine libraries when file_magic_cmd begins "file" |
| 17574 | MAGIC_CMD=$MAGIC_CMD |
| 17575 | |
| 17576 | # Used on cygwin: DLL creation program. |
| 17577 | DLLTOOL="$DLLTOOL" |
| 17578 | |
| 17579 | # Used on cygwin: object dumper. |
| 17580 | OBJDUMP="$OBJDUMP" |
| 17581 | |
| 17582 | # Used on cygwin: assembler. |
| 17583 | AS="$AS" |
| 17584 | |
| 17585 | # The name of the directory that contains temporary libtool files. |
| 17586 | objdir=$objdir |
| 17587 | |
| 17588 | # How to create reloadable object files. |
| 17589 | reload_flag=$lt_reload_flag |
| 17590 | reload_cmds=$lt_reload_cmds |
| 17591 | |
| 17592 | # How to pass a linker flag through the compiler. |
| 17593 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 17594 | |
| 17595 | # Object file suffix (normally "o"). |
| 17596 | objext="$ac_objext" |
| 17597 | |
| 17598 | # Old archive suffix (normally "a"). |
| 17599 | libext="$libext" |
| 17600 | |
| 17601 | # Shared library suffix (normally ".so"). |
| 17602 | shrext='$shrext' |
| 17603 | |
| 17604 | # Executable file suffix (normally ""). |
| 17605 | exeext="$exeext" |
| 17606 | |
| 17607 | # Additional compiler flags for building library objects. |
| 17608 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 17609 | pic_mode=$pic_mode |
| 17610 | |
| 17611 | # What is the maximum length of a command? |
| 17612 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 17613 | |
| 17614 | # Does compiler simultaneously support -c and -o options? |
| 17615 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 17616 | |
| 17617 | # Must we lock files when doing compilation ? |
| 17618 | need_locks=$lt_need_locks |
| 17619 | |
| 17620 | # Do we need the lib prefix for modules? |
| 17621 | need_lib_prefix=$need_lib_prefix |
| 17622 | |
| 17623 | # Do we need a version for libraries? |
| 17624 | need_version=$need_version |
| 17625 | |
| 17626 | # Whether dlopen is supported. |
| 17627 | dlopen_support=$enable_dlopen |
| 17628 | |
| 17629 | # Whether dlopen of programs is supported. |
| 17630 | dlopen_self=$enable_dlopen_self |
| 17631 | |
| 17632 | # Whether dlopen of statically linked programs is supported. |
| 17633 | dlopen_self_static=$enable_dlopen_self_static |
| 17634 | |
| 17635 | # Compiler flag to prevent dynamic linking. |
| 17636 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 17637 | |
| 17638 | # Compiler flag to turn off builtin functions. |
| 17639 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 17640 | |
| 17641 | # Compiler flag to allow reflexive dlopens. |
| 17642 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 17643 | |
| 17644 | # Compiler flag to generate shared objects directly from archives. |
| 17645 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 17646 | |
| 17647 | # Compiler flag to generate thread-safe objects. |
| 17648 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 17649 | |
| 17650 | # Library versioning type. |
| 17651 | version_type=$version_type |
| 17652 | |
| 17653 | # Format of library name prefix. |
| 17654 | libname_spec=$lt_libname_spec |
| 17655 | |
| 17656 | # List of archive names. First name is the real one, the rest are links. |
| 17657 | # The last name is the one that the linker finds with -lNAME. |
| 17658 | library_names_spec=$lt_library_names_spec |
| 17659 | |
| 17660 | # The coded name of the library, if different from the real name. |
| 17661 | soname_spec=$lt_soname_spec |
| 17662 | |
| 17663 | # Commands used to build and install an old-style archive. |
| 17664 | RANLIB=$lt_RANLIB |
| 17665 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 17666 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 17667 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 17668 | |
| 17669 | # Create an old-style archive from a shared archive. |
| 17670 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 17671 | |
| 17672 | # Create a temporary old-style archive to link instead of a shared archive. |
| 17673 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 17674 | |
| 17675 | # Commands used to build and install a shared archive. |
| 17676 | archive_cmds=$lt_archive_cmds_GCJ |
| 17677 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 17678 | postinstall_cmds=$lt_postinstall_cmds |
| 17679 | postuninstall_cmds=$lt_postuninstall_cmds |
| 17680 | |
| 17681 | # Commands used to build a loadable module (assumed same as above if empty) |
| 17682 | module_cmds=$lt_module_cmds_GCJ |
| 17683 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 17684 | |
| 17685 | # Commands to strip libraries. |
| 17686 | old_striplib=$lt_old_striplib |
| 17687 | striplib=$lt_striplib |
| 17688 | |
| 17689 | # Dependencies to place before the objects being linked to create a |
| 17690 | # shared library. |
| 17691 | predep_objects=$lt_predep_objects_GCJ |
| 17692 | |
| 17693 | # Dependencies to place after the objects being linked to create a |
| 17694 | # shared library. |
| 17695 | postdep_objects=$lt_postdep_objects_GCJ |
| 17696 | |
| 17697 | # Dependencies to place before the objects being linked to create a |
| 17698 | # shared library. |
| 17699 | predeps=$lt_predeps_GCJ |
| 17700 | |
| 17701 | # Dependencies to place after the objects being linked to create a |
| 17702 | # shared library. |
| 17703 | postdeps=$lt_postdeps_GCJ |
| 17704 | |
| 17705 | # The library search path used internally by the compiler when linking |
| 17706 | # a shared library. |
| 17707 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 17708 | |
| 17709 | # Method to check whether dependent libraries are shared objects. |
| 17710 | deplibs_check_method=$lt_deplibs_check_method |
| 17711 | |
| 17712 | # Command to use when deplibs_check_method == file_magic. |
| 17713 | file_magic_cmd=$lt_file_magic_cmd |
| 17714 | |
| 17715 | # Flag that allows shared libraries with undefined symbols to be built. |
| 17716 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 17717 | |
| 17718 | # Flag that forces no undefined symbols. |
| 17719 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 17720 | |
| 17721 | # Commands used to finish a libtool library installation in a directory. |
| 17722 | finish_cmds=$lt_finish_cmds |
| 17723 | |
| 17724 | # Same as above, but a single script fragment to be evaled but not shown. |
| 17725 | finish_eval=$lt_finish_eval |
| 17726 | |
| 17727 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 17728 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 17729 | |
| 17730 | # Transform the output of nm in a proper C declaration |
| 17731 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 17732 | |
| 17733 | # Transform the output of nm in a C name address pair |
| 17734 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 17735 | |
| 17736 | # This is the shared library runtime path variable. |
| 17737 | runpath_var=$runpath_var |
| 17738 | |
| 17739 | # This is the shared library path variable. |
| 17740 | shlibpath_var=$shlibpath_var |
| 17741 | |
| 17742 | # Is shlibpath searched before the hard-coded library search path? |
| 17743 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 17744 | |
| 17745 | # How to hardcode a shared library path into an executable. |
| 17746 | hardcode_action=$hardcode_action_GCJ |
| 17747 | |
| 17748 | # Whether we should hardcode library paths into libraries. |
| 17749 | hardcode_into_libs=$hardcode_into_libs |
| 17750 | |
| 17751 | # Flag to hardcode \$libdir into a binary during linking. |
| 17752 | # This must work even if \$libdir does not exist. |
| 17753 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 17754 | |
| 17755 | # If ld is used when linking, flag to hardcode \$libdir into |
| 17756 | # a binary during linking. This must work even if \$libdir does |
| 17757 | # not exist. |
| 17758 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 17759 | |
| 17760 | # Whether we need a single -rpath flag with a separated argument. |
| 17761 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 17762 | |
| 17763 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 17764 | # resulting binary. |
| 17765 | hardcode_direct=$hardcode_direct_GCJ |
| 17766 | |
| 17767 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 17768 | # resulting binary. |
| 17769 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 17770 | |
| 17771 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 17772 | # the resulting binary. |
| 17773 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 17774 | |
| 17775 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 17776 | # and all subsequent libraries and executables linked against it. |
| 17777 | hardcode_automatic=$hardcode_automatic_GCJ |
| 17778 | |
| 17779 | # Variables whose values should be saved in libtool wrapper scripts and |
| 17780 | # restored at relink time. |
| 17781 | variables_saved_for_relink="$variables_saved_for_relink" |
| 17782 | |
| 17783 | # Whether libtool must link a program against all its dependency libraries. |
| 17784 | link_all_deplibs=$link_all_deplibs_GCJ |
| 17785 | |
| 17786 | # Compile-time system search path for libraries |
| 17787 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 17788 | |
| 17789 | # Run-time system search path for libraries |
| 17790 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 17791 | |
| 17792 | # Fix the shell variable \$srcfile for the compiler. |
| 17793 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 17794 | |
| 17795 | # Set to yes if exported symbols are required. |
| 17796 | always_export_symbols=$always_export_symbols_GCJ |
| 17797 | |
| 17798 | # The commands to list exported symbols. |
| 17799 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 17800 | |
| 17801 | # The commands to extract the exported symbol list from a shared archive. |
| 17802 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 17803 | |
| 17804 | # Symbols that should not be listed in the preloaded symbols. |
| 17805 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 17806 | |
| 17807 | # Symbols that must always be exported. |
| 17808 | include_expsyms=$lt_include_expsyms_GCJ |
| 17809 | |
| 17810 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 17811 | |
| 17812 | __EOF__ |
| 17813 | |
| 17814 | |
| 17815 | else |
| 17816 | # If there is no Makefile yet, we rely on a make rule to execute |
| 17817 | # `config.status --recheck' to rerun these tests and create the |
| 17818 | # libtool script then. |
| 17819 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 17820 | if test -f "$ltmain_in"; then |
| 17821 | test -f Makefile && make "$ltmain" |
| 17822 | fi |
| 17823 | fi |
| 17824 | |
| 17825 | |
| 17826 | ac_ext=c |
| 17827 | ac_cpp='$CPP $CPPFLAGS' |
| 17828 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17829 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17830 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17831 | |
| 17832 | CC="$lt_save_CC" |
| 17833 | |
| 17834 | else |
| 17835 | tagname="" |
| 17836 | fi |
| 17837 | ;; |
| 17838 | |
| 17839 | RC) |
| 17840 | |
| 17841 | |
| 17842 | |
| 17843 | # Source file extension for RC test sources. |
| 17844 | ac_ext=rc |
| 17845 | |
| 17846 | # Object file extension for compiled RC test sources. |
| 17847 | objext=o |
| 17848 | objext_RC=$objext |
| 17849 | |
| 17850 | # Code to be used in simple compile tests |
| 17851 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 17852 | |
| 17853 | # Code to be used in simple link tests |
| 17854 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 17855 | |
| 17856 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 17857 | |
| 17858 | # If no C compiler was specified, use CC. |
| 17859 | LTCC=${LTCC-"$CC"} |
| 17860 | |
| 17861 | # Allow CC to be a program name with arguments. |
| 17862 | compiler=$CC |
| 17863 | |
| 17864 | |
| 17865 | # Allow CC to be a program name with arguments. |
| 17866 | lt_save_CC="$CC" |
| 17867 | CC=${RC-"windres"} |
| 17868 | compiler=$CC |
| 17869 | compiler_RC=$CC |
| 17870 | lt_cv_prog_compiler_c_o_RC=yes |
| 17871 | |
| 17872 | # The else clause should only fire when bootstrapping the |
| 17873 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 17874 | # with your package, and you will get complaints that there are |
| 17875 | # no rules to generate ltmain.sh. |
| 17876 | if test -f "$ltmain"; then |
| 17877 | # See if we are running on zsh, and set the options which allow our commands through |
| 17878 | # without removal of \ escapes. |
| 17879 | if test -n "${ZSH_VERSION+set}" ; then |
| 17880 | setopt NO_GLOB_SUBST |
| 17881 | fi |
| 17882 | # Now quote all the things that may contain metacharacters while being |
| 17883 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 17884 | # variables and quote the copies for generation of the libtool script. |
| 17885 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| 17886 | SED SHELL STRIP \ |
| 17887 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 17888 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 17889 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 17890 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 17891 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 17892 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 17893 | old_postinstall_cmds old_postuninstall_cmds \ |
| 17894 | compiler_RC \ |
| 17895 | CC_RC \ |
| 17896 | LD_RC \ |
| 17897 | lt_prog_compiler_wl_RC \ |
| 17898 | lt_prog_compiler_pic_RC \ |
| 17899 | lt_prog_compiler_static_RC \ |
| 17900 | lt_prog_compiler_no_builtin_flag_RC \ |
| 17901 | export_dynamic_flag_spec_RC \ |
| 17902 | thread_safe_flag_spec_RC \ |
| 17903 | whole_archive_flag_spec_RC \ |
| 17904 | enable_shared_with_static_runtimes_RC \ |
| 17905 | old_archive_cmds_RC \ |
| 17906 | old_archive_from_new_cmds_RC \ |
| 17907 | predep_objects_RC \ |
| 17908 | postdep_objects_RC \ |
| 17909 | predeps_RC \ |
| 17910 | postdeps_RC \ |
| 17911 | compiler_lib_search_path_RC \ |
| 17912 | archive_cmds_RC \ |
| 17913 | archive_expsym_cmds_RC \ |
| 17914 | postinstall_cmds_RC \ |
| 17915 | postuninstall_cmds_RC \ |
| 17916 | old_archive_from_expsyms_cmds_RC \ |
| 17917 | allow_undefined_flag_RC \ |
| 17918 | no_undefined_flag_RC \ |
| 17919 | export_symbols_cmds_RC \ |
| 17920 | hardcode_libdir_flag_spec_RC \ |
| 17921 | hardcode_libdir_flag_spec_ld_RC \ |
| 17922 | hardcode_libdir_separator_RC \ |
| 17923 | hardcode_automatic_RC \ |
| 17924 | module_cmds_RC \ |
| 17925 | module_expsym_cmds_RC \ |
| 17926 | lt_cv_prog_compiler_c_o_RC \ |
| 17927 | exclude_expsyms_RC \ |
| 17928 | include_expsyms_RC; do |
| 17929 | |
| 17930 | case $var in |
| 17931 | old_archive_cmds_RC | \ |
| 17932 | old_archive_from_new_cmds_RC | \ |
| 17933 | archive_cmds_RC | \ |
| 17934 | archive_expsym_cmds_RC | \ |
| 17935 | module_cmds_RC | \ |
| 17936 | module_expsym_cmds_RC | \ |
| 17937 | old_archive_from_expsyms_cmds_RC | \ |
| 17938 | export_symbols_cmds_RC | \ |
| 17939 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 17940 | postinstall_cmds | postuninstall_cmds | \ |
| 17941 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 17942 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 17943 | # Double-quote double-evaled strings. |
| 17944 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 17945 | ;; |
| 17946 | *) |
| 17947 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 17948 | ;; |
| 17949 | esac |
| 17950 | done |
| 17951 | |
| 17952 | case $lt_echo in |
| 17953 | *'\$0 --fallback-echo"') |
| 17954 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 17955 | ;; |
| 17956 | esac |
| 17957 | |
| 17958 | cfgfile="$ofile" |
| 17959 | |
| 17960 | cat <<__EOF__ >> "$cfgfile" |
| 17961 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 17962 | |
| 17963 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 17964 | |
| 17965 | # Shell to use when invoking shell scripts. |
| 17966 | SHELL=$lt_SHELL |
| 17967 | |
| 17968 | # Whether or not to build shared libraries. |
| 17969 | build_libtool_libs=$enable_shared |
| 17970 | |
| 17971 | # Whether or not to build static libraries. |
| 17972 | build_old_libs=$enable_static |
| 17973 | |
| 17974 | # Whether or not to add -lc for building shared libraries. |
| 17975 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 17976 | |
| 17977 | # Whether or not to disallow shared libs when runtime libs are static |
| 17978 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 17979 | |
| 17980 | # Whether or not to optimize for fast installation. |
| 17981 | fast_install=$enable_fast_install |
| 17982 | |
| 17983 | # The host system. |
| 17984 | host_alias=$host_alias |
| 17985 | host=$host |
| 17986 | |
| 17987 | # An echo program that does not interpret backslashes. |
| 17988 | echo=$lt_echo |
| 17989 | |
| 17990 | # The archiver. |
| 17991 | AR=$lt_AR |
| 17992 | AR_FLAGS=$lt_AR_FLAGS |
| 17993 | |
| 17994 | # A C compiler. |
| 17995 | LTCC=$lt_LTCC |
| 17996 | |
| 17997 | # A language-specific compiler. |
| 17998 | CC=$lt_compiler_RC |
| 17999 | |
| 18000 | # Is the compiler the GNU C compiler? |
| 18001 | with_gcc=$GCC_RC |
| 18002 | |
| 18003 | # An ERE matcher. |
| 18004 | EGREP=$lt_EGREP |
| 18005 | |
| 18006 | # The linker used to build libraries. |
| 18007 | LD=$lt_LD_RC |
| 18008 | |
| 18009 | # Whether we need hard or soft links. |
| 18010 | LN_S=$lt_LN_S |
| 18011 | |
| 18012 | # A BSD-compatible nm program. |
| 18013 | NM=$lt_NM |
| 18014 | |
| 18015 | # A symbol stripping program |
| 18016 | STRIP=$lt_STRIP |
| 18017 | |
| 18018 | # Used to examine libraries when file_magic_cmd begins "file" |
| 18019 | MAGIC_CMD=$MAGIC_CMD |
| 18020 | |
| 18021 | # Used on cygwin: DLL creation program. |
| 18022 | DLLTOOL="$DLLTOOL" |
| 18023 | |
| 18024 | # Used on cygwin: object dumper. |
| 18025 | OBJDUMP="$OBJDUMP" |
| 18026 | |
| 18027 | # Used on cygwin: assembler. |
| 18028 | AS="$AS" |
| 18029 | |
| 18030 | # The name of the directory that contains temporary libtool files. |
| 18031 | objdir=$objdir |
| 18032 | |
| 18033 | # How to create reloadable object files. |
| 18034 | reload_flag=$lt_reload_flag |
| 18035 | reload_cmds=$lt_reload_cmds |
| 18036 | |
| 18037 | # How to pass a linker flag through the compiler. |
| 18038 | wl=$lt_lt_prog_compiler_wl_RC |
| 18039 | |
| 18040 | # Object file suffix (normally "o"). |
| 18041 | objext="$ac_objext" |
| 18042 | |
| 18043 | # Old archive suffix (normally "a"). |
| 18044 | libext="$libext" |
| 18045 | |
| 18046 | # Shared library suffix (normally ".so"). |
| 18047 | shrext='$shrext' |
| 18048 | |
| 18049 | # Executable file suffix (normally ""). |
| 18050 | exeext="$exeext" |
| 18051 | |
| 18052 | # Additional compiler flags for building library objects. |
| 18053 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 18054 | pic_mode=$pic_mode |
| 18055 | |
| 18056 | # What is the maximum length of a command? |
| 18057 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 18058 | |
| 18059 | # Does compiler simultaneously support -c and -o options? |
| 18060 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 18061 | |
| 18062 | # Must we lock files when doing compilation ? |
| 18063 | need_locks=$lt_need_locks |
| 18064 | |
| 18065 | # Do we need the lib prefix for modules? |
| 18066 | need_lib_prefix=$need_lib_prefix |
| 18067 | |
| 18068 | # Do we need a version for libraries? |
| 18069 | need_version=$need_version |
| 18070 | |
| 18071 | # Whether dlopen is supported. |
| 18072 | dlopen_support=$enable_dlopen |
| 18073 | |
| 18074 | # Whether dlopen of programs is supported. |
| 18075 | dlopen_self=$enable_dlopen_self |
| 18076 | |
| 18077 | # Whether dlopen of statically linked programs is supported. |
| 18078 | dlopen_self_static=$enable_dlopen_self_static |
| 18079 | |
| 18080 | # Compiler flag to prevent dynamic linking. |
| 18081 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 18082 | |
| 18083 | # Compiler flag to turn off builtin functions. |
| 18084 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 18085 | |
| 18086 | # Compiler flag to allow reflexive dlopens. |
| 18087 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 18088 | |
| 18089 | # Compiler flag to generate shared objects directly from archives. |
| 18090 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 18091 | |
| 18092 | # Compiler flag to generate thread-safe objects. |
| 18093 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 18094 | |
| 18095 | # Library versioning type. |
| 18096 | version_type=$version_type |
| 18097 | |
| 18098 | # Format of library name prefix. |
| 18099 | libname_spec=$lt_libname_spec |
| 18100 | |
| 18101 | # List of archive names. First name is the real one, the rest are links. |
| 18102 | # The last name is the one that the linker finds with -lNAME. |
| 18103 | library_names_spec=$lt_library_names_spec |
| 18104 | |
| 18105 | # The coded name of the library, if different from the real name. |
| 18106 | soname_spec=$lt_soname_spec |
| 18107 | |
| 18108 | # Commands used to build and install an old-style archive. |
| 18109 | RANLIB=$lt_RANLIB |
| 18110 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 18111 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 18112 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 18113 | |
| 18114 | # Create an old-style archive from a shared archive. |
| 18115 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 18116 | |
| 18117 | # Create a temporary old-style archive to link instead of a shared archive. |
| 18118 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 18119 | |
| 18120 | # Commands used to build and install a shared archive. |
| 18121 | archive_cmds=$lt_archive_cmds_RC |
| 18122 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 18123 | postinstall_cmds=$lt_postinstall_cmds |
| 18124 | postuninstall_cmds=$lt_postuninstall_cmds |
| 18125 | |
| 18126 | # Commands used to build a loadable module (assumed same as above if empty) |
| 18127 | module_cmds=$lt_module_cmds_RC |
| 18128 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 18129 | |
| 18130 | # Commands to strip libraries. |
| 18131 | old_striplib=$lt_old_striplib |
| 18132 | striplib=$lt_striplib |
| 18133 | |
| 18134 | # Dependencies to place before the objects being linked to create a |
| 18135 | # shared library. |
| 18136 | predep_objects=$lt_predep_objects_RC |
| 18137 | |
| 18138 | # Dependencies to place after the objects being linked to create a |
| 18139 | # shared library. |
| 18140 | postdep_objects=$lt_postdep_objects_RC |
| 18141 | |
| 18142 | # Dependencies to place before the objects being linked to create a |
| 18143 | # shared library. |
| 18144 | predeps=$lt_predeps_RC |
| 18145 | |
| 18146 | # Dependencies to place after the objects being linked to create a |
| 18147 | # shared library. |
| 18148 | postdeps=$lt_postdeps_RC |
| 18149 | |
| 18150 | # The library search path used internally by the compiler when linking |
| 18151 | # a shared library. |
| 18152 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 18153 | |
| 18154 | # Method to check whether dependent libraries are shared objects. |
| 18155 | deplibs_check_method=$lt_deplibs_check_method |
| 18156 | |
| 18157 | # Command to use when deplibs_check_method == file_magic. |
| 18158 | file_magic_cmd=$lt_file_magic_cmd |
| 18159 | |
| 18160 | # Flag that allows shared libraries with undefined symbols to be built. |
| 18161 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 18162 | |
| 18163 | # Flag that forces no undefined symbols. |
| 18164 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 18165 | |
| 18166 | # Commands used to finish a libtool library installation in a directory. |
| 18167 | finish_cmds=$lt_finish_cmds |
| 18168 | |
| 18169 | # Same as above, but a single script fragment to be evaled but not shown. |
| 18170 | finish_eval=$lt_finish_eval |
| 18171 | |
| 18172 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 18173 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 18174 | |
| 18175 | # Transform the output of nm in a proper C declaration |
| 18176 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 18177 | |
| 18178 | # Transform the output of nm in a C name address pair |
| 18179 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 18180 | |
| 18181 | # This is the shared library runtime path variable. |
| 18182 | runpath_var=$runpath_var |
| 18183 | |
| 18184 | # This is the shared library path variable. |
| 18185 | shlibpath_var=$shlibpath_var |
| 18186 | |
| 18187 | # Is shlibpath searched before the hard-coded library search path? |
| 18188 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 18189 | |
| 18190 | # How to hardcode a shared library path into an executable. |
| 18191 | hardcode_action=$hardcode_action_RC |
| 18192 | |
| 18193 | # Whether we should hardcode library paths into libraries. |
| 18194 | hardcode_into_libs=$hardcode_into_libs |
| 18195 | |
| 18196 | # Flag to hardcode \$libdir into a binary during linking. |
| 18197 | # This must work even if \$libdir does not exist. |
| 18198 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 18199 | |
| 18200 | # If ld is used when linking, flag to hardcode \$libdir into |
| 18201 | # a binary during linking. This must work even if \$libdir does |
| 18202 | # not exist. |
| 18203 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 18204 | |
| 18205 | # Whether we need a single -rpath flag with a separated argument. |
| 18206 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 18207 | |
| 18208 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 18209 | # resulting binary. |
| 18210 | hardcode_direct=$hardcode_direct_RC |
| 18211 | |
| 18212 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 18213 | # resulting binary. |
| 18214 | hardcode_minus_L=$hardcode_minus_L_RC |
| 18215 | |
| 18216 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 18217 | # the resulting binary. |
| 18218 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 18219 | |
| 18220 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 18221 | # and all subsequent libraries and executables linked against it. |
| 18222 | hardcode_automatic=$hardcode_automatic_RC |
| 18223 | |
| 18224 | # Variables whose values should be saved in libtool wrapper scripts and |
| 18225 | # restored at relink time. |
| 18226 | variables_saved_for_relink="$variables_saved_for_relink" |
| 18227 | |
| 18228 | # Whether libtool must link a program against all its dependency libraries. |
| 18229 | link_all_deplibs=$link_all_deplibs_RC |
| 18230 | |
| 18231 | # Compile-time system search path for libraries |
| 18232 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 18233 | |
| 18234 | # Run-time system search path for libraries |
| 18235 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 18236 | |
| 18237 | # Fix the shell variable \$srcfile for the compiler. |
| 18238 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 18239 | |
| 18240 | # Set to yes if exported symbols are required. |
| 18241 | always_export_symbols=$always_export_symbols_RC |
| 18242 | |
| 18243 | # The commands to list exported symbols. |
| 18244 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 18245 | |
| 18246 | # The commands to extract the exported symbol list from a shared archive. |
| 18247 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 18248 | |
| 18249 | # Symbols that should not be listed in the preloaded symbols. |
| 18250 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 18251 | |
| 18252 | # Symbols that must always be exported. |
| 18253 | include_expsyms=$lt_include_expsyms_RC |
| 18254 | |
| 18255 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 18256 | |
| 18257 | __EOF__ |
| 18258 | |
| 18259 | |
| 18260 | else |
| 18261 | # If there is no Makefile yet, we rely on a make rule to execute |
| 18262 | # `config.status --recheck' to rerun these tests and create the |
| 18263 | # libtool script then. |
| 18264 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 18265 | if test -f "$ltmain_in"; then |
| 18266 | test -f Makefile && make "$ltmain" |
| 18267 | fi |
| 18268 | fi |
| 18269 | |
| 18270 | |
| 18271 | ac_ext=c |
| 18272 | ac_cpp='$CPP $CPPFLAGS' |
| 18273 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18274 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18275 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18276 | |
| 18277 | CC="$lt_save_CC" |
| 18278 | |
| 18279 | ;; |
| 18280 | |
| 18281 | *) |
| 18282 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 18283 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 18284 | { (exit 1); exit 1; }; } |
| 18285 | ;; |
| 18286 | esac |
| 18287 | |
| 18288 | # Append the new tag name to the list of available tags. |
| 18289 | if test -n "$tagname" ; then |
| 18290 | available_tags="$available_tags $tagname" |
| 18291 | fi |
| 18292 | fi |
| 18293 | done |
| 18294 | IFS="$lt_save_ifs" |
| 18295 | |
| 18296 | # Now substitute the updated list of available tags. |
| 18297 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 18298 | mv "${ofile}T" "$ofile" |
| 18299 | chmod +x "$ofile" |
| 18300 | else |
| 18301 | rm -f "${ofile}T" |
| 18302 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 18303 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 18304 | { (exit 1); exit 1; }; } |
| 18305 | fi |
| 18306 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18307 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18308 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18309 | |
| 18310 | # This can be used to rebuild libtool when needed |
| 18311 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 18312 | |
| 18313 | # Always use our own libtool. |
| 18314 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 18315 | |
| 18316 | # Prevent multiple expansion |
| 18317 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18318 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 18319 | |
| 18320 | |
| 18321 | |
| 18322 | |
| 18323 | |
| 18324 | |
| 18325 | |
| 18326 | |
| 18327 | |
| 18328 | |
| 18329 | |
| 18330 | |
| 18331 | |
| 18332 | |
| 18333 | |
| 18334 | |
| 18335 | |
| 18336 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18337 | # Find a good install program. We prefer a C program (faster), |
| 18338 | # so one script is as good as another. But avoid the broken or |
| 18339 | # incompatible versions: |
| 18340 | # SysV /etc/install, /usr/sbin/install |
| 18341 | # SunOS /usr/etc/install |
| 18342 | # IRIX /sbin/install |
| 18343 | # AIX /bin/install |
| 18344 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 18345 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 18346 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 18347 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 18348 | # OS/2's system install, which has a completely different semantic |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18349 | # ./install, which can be erroneously created by make from ./install.sh. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18350 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 18351 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18352 | if test -z "$INSTALL"; then |
| 18353 | if test "${ac_cv_path_install+set}" = set; then |
| 18354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18355 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18357 | for as_dir in $PATH |
| 18358 | do |
| 18359 | IFS=$as_save_IFS |
| 18360 | test -z "$as_dir" && as_dir=. |
| 18361 | # Account for people who put trailing slashes in PATH elements. |
| 18362 | case $as_dir/ in |
| 18363 | ./ | .// | /cC/* | \ |
| 18364 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 18365 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18366 | /usr/ucb/* ) ;; |
| 18367 | *) |
| 18368 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 18369 | # Don't use installbsd from OSF since it installs stuff as root |
| 18370 | # by default. |
| 18371 | for ac_prog in ginstall scoinst install; do |
| 18372 | for ac_exec_ext in '' $ac_executable_extensions; do |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 18373 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 18374 | if test $ac_prog = install && |
| 18375 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 18376 | # AIX install. It has an incompatible calling convention. |
| 18377 | : |
| 18378 | elif test $ac_prog = install && |
| 18379 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 18380 | # program-specific install script used by HP pwplus--don't use. |
| 18381 | : |
| 18382 | else |
| 18383 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 18384 | break 3 |
| 18385 | fi |
| 18386 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18387 | done |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18388 | done |
| 18389 | ;; |
| 18390 | esac |
| 18391 | done |
| 18392 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18393 | |
| 18394 | fi |
| 18395 | if test "${ac_cv_path_install+set}" = set; then |
| 18396 | INSTALL=$ac_cv_path_install |
| 18397 | else |
| 18398 | # As a last resort, use the slow shell script. We don't cache a |
| 18399 | # path for INSTALL within a source directory, because that will |
| 18400 | # break other packages using the cache if that directory is |
| 18401 | # removed, or if the path is relative. |
| 18402 | INSTALL=$ac_install_sh |
| 18403 | fi |
| 18404 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18405 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18406 | echo "${ECHO_T}$INSTALL" >&6 |
| 18407 | |
| 18408 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 18409 | # It thinks the first close brace ends the variable substitution. |
| 18410 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 18411 | |
| 18412 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 18413 | |
| 18414 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 18415 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18416 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18417 | ######### |
| 18418 | # Set up an appropriate program prefix |
| 18419 | # |
| 18420 | if test "$program_prefix" = "NONE"; then |
| 18421 | program_prefix="" |
| 18422 | fi |
| 18423 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18424 | |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 18425 | VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'` |
| 18426 | echo "Version set to $VERSION" |
| 18427 | |
| 18428 | RELEASE=`cat $srcdir/VERSION` |
| 18429 | echo "Release set to $RELEASE" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18430 | |
| 18431 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18432 | ######### |
| 18433 | # Check to see if the --with-hints=FILE option is used. If there is none, |
| 18434 | # then check for a files named "$host.hints" and ../$hosts.hints where |
| 18435 | # $host is the hostname of the build system. If still no hints are |
| 18436 | # found, try looking in $system.hints and ../$system.hints where |
| 18437 | # $system is the result of uname -s. |
| 18438 | # |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18439 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18440 | # Check whether --with-hints or --without-hints was given. |
| 18441 | if test "${with_hints+set}" = set; then |
| 18442 | withval="$with_hints" |
| 18443 | hints=$withval |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18444 | fi; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18445 | if test "$hints" = ""; then |
| 18446 | host=`hostname | sed 's/\..*//'` |
| 18447 | if test -r $host.hints; then |
| 18448 | hints=$host.hints |
| 18449 | else |
| 18450 | if test -r ../$host.hints; then |
| 18451 | hints=../$host.hints |
| 18452 | fi |
| 18453 | fi |
| 18454 | fi |
| 18455 | if test "$hints" = ""; then |
| 18456 | sys=`uname -s` |
| 18457 | if test -r $sys.hints; then |
| 18458 | hints=$sys.hints |
| 18459 | else |
| 18460 | if test -r ../$sys.hints; then |
| 18461 | hints=../$sys.hints |
| 18462 | fi |
| 18463 | fi |
| 18464 | fi |
| 18465 | if test "$hints" != ""; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18466 | echo "$as_me:$LINENO: result: reading hints from $hints" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18467 | echo "${ECHO_T}reading hints from $hints" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18468 | . $hints |
| 18469 | fi |
| 18470 | |
| 18471 | ######### |
| 18472 | # Locate a compiler for the build machine. This compiler should |
| 18473 | # generate command-line programs that run on the build machine. |
| 18474 | # |
| 18475 | default_build_cflags="-g" |
| 18476 | if test "$config_BUILD_CC" = ""; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18477 | ac_ext=c |
| 18478 | ac_cpp='$CPP $CPPFLAGS' |
| 18479 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18480 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18481 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18482 | if test -n "$ac_tool_prefix"; then |
| 18483 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 18484 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18485 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18486 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18487 | if test "${ac_cv_prog_CC+set}" = set; then |
| 18488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18489 | else |
| 18490 | if test -n "$CC"; then |
| 18491 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 18492 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18494 | for as_dir in $PATH |
| 18495 | do |
| 18496 | IFS=$as_save_IFS |
| 18497 | test -z "$as_dir" && as_dir=. |
| 18498 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18499 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18500 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 18501 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18502 | break 2 |
| 18503 | fi |
| 18504 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18505 | done |
| 18506 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18507 | fi |
| 18508 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18509 | CC=$ac_cv_prog_CC |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18510 | if test -n "$CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18511 | echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18512 | echo "${ECHO_T}$CC" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18513 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18514 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18515 | echo "${ECHO_T}no" >&6 |
| 18516 | fi |
| 18517 | |
| 18518 | fi |
| 18519 | if test -z "$ac_cv_prog_CC"; then |
| 18520 | ac_ct_CC=$CC |
| 18521 | # Extract the first word of "gcc", so it can be a program name with args. |
| 18522 | set dummy gcc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18523 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18524 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18525 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 18526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18527 | else |
| 18528 | if test -n "$ac_ct_CC"; then |
| 18529 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 18530 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18531 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18532 | for as_dir in $PATH |
| 18533 | do |
| 18534 | IFS=$as_save_IFS |
| 18535 | test -z "$as_dir" && as_dir=. |
| 18536 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18537 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18538 | ac_cv_prog_ac_ct_CC="gcc" |
| 18539 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18540 | break 2 |
| 18541 | fi |
| 18542 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18543 | done |
| 18544 | |
| 18545 | fi |
| 18546 | fi |
| 18547 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 18548 | if test -n "$ac_ct_CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18549 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18550 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 18551 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18552 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18553 | echo "${ECHO_T}no" >&6 |
| 18554 | fi |
| 18555 | |
| 18556 | CC=$ac_ct_CC |
| 18557 | else |
| 18558 | CC="$ac_cv_prog_CC" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18559 | fi |
| 18560 | |
| 18561 | if test -z "$CC"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18562 | if test -n "$ac_tool_prefix"; then |
| 18563 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 18564 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18565 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18566 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18567 | if test "${ac_cv_prog_CC+set}" = set; then |
| 18568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18569 | else |
| 18570 | if test -n "$CC"; then |
| 18571 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 18572 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18573 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18574 | for as_dir in $PATH |
| 18575 | do |
| 18576 | IFS=$as_save_IFS |
| 18577 | test -z "$as_dir" && as_dir=. |
| 18578 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18579 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18580 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 18581 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18582 | break 2 |
| 18583 | fi |
| 18584 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18585 | done |
| 18586 | |
| 18587 | fi |
| 18588 | fi |
| 18589 | CC=$ac_cv_prog_CC |
| 18590 | if test -n "$CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18591 | echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18592 | echo "${ECHO_T}$CC" >&6 |
| 18593 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18594 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18595 | echo "${ECHO_T}no" >&6 |
| 18596 | fi |
| 18597 | |
| 18598 | fi |
| 18599 | if test -z "$ac_cv_prog_CC"; then |
| 18600 | ac_ct_CC=$CC |
| 18601 | # Extract the first word of "cc", so it can be a program name with args. |
| 18602 | set dummy cc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18603 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18604 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18605 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 18606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18607 | else |
| 18608 | if test -n "$ac_ct_CC"; then |
| 18609 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 18610 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18612 | for as_dir in $PATH |
| 18613 | do |
| 18614 | IFS=$as_save_IFS |
| 18615 | test -z "$as_dir" && as_dir=. |
| 18616 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18617 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18618 | ac_cv_prog_ac_ct_CC="cc" |
| 18619 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18620 | break 2 |
| 18621 | fi |
| 18622 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18623 | done |
| 18624 | |
| 18625 | fi |
| 18626 | fi |
| 18627 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 18628 | if test -n "$ac_ct_CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18629 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18630 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 18631 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18632 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18633 | echo "${ECHO_T}no" >&6 |
| 18634 | fi |
| 18635 | |
| 18636 | CC=$ac_ct_CC |
| 18637 | else |
| 18638 | CC="$ac_cv_prog_CC" |
| 18639 | fi |
| 18640 | |
| 18641 | fi |
| 18642 | if test -z "$CC"; then |
| 18643 | # Extract the first word of "cc", so it can be a program name with args. |
| 18644 | set dummy cc; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18645 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18646 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18647 | if test "${ac_cv_prog_CC+set}" = set; then |
| 18648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18649 | else |
| 18650 | if test -n "$CC"; then |
| 18651 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 18652 | else |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18653 | ac_prog_rejected=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18655 | for as_dir in $PATH |
| 18656 | do |
| 18657 | IFS=$as_save_IFS |
| 18658 | test -z "$as_dir" && as_dir=. |
| 18659 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18660 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18661 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 18662 | ac_prog_rejected=yes |
| 18663 | continue |
| 18664 | fi |
| 18665 | ac_cv_prog_CC="cc" |
| 18666 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18667 | break 2 |
| 18668 | fi |
| 18669 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18670 | done |
| 18671 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18672 | if test $ac_prog_rejected = yes; then |
| 18673 | # We found a bogon in the path, so make sure we never use it. |
| 18674 | set dummy $ac_cv_prog_CC |
| 18675 | shift |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18676 | if test $# != 0; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18677 | # We chose a different compiler from the bogus one. |
| 18678 | # However, it has the same basename, so the bogon will be chosen |
| 18679 | # first if we set CC to just the basename; use the full file name. |
| 18680 | shift |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18681 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18682 | fi |
| 18683 | fi |
| 18684 | fi |
| 18685 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18686 | CC=$ac_cv_prog_CC |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18687 | if test -n "$CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18688 | echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18689 | echo "${ECHO_T}$CC" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18690 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18691 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18692 | echo "${ECHO_T}no" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18693 | fi |
| 18694 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18695 | fi |
| 18696 | if test -z "$CC"; then |
| 18697 | if test -n "$ac_tool_prefix"; then |
| 18698 | for ac_prog in cl |
| 18699 | do |
| 18700 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 18701 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18702 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18703 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18704 | if test "${ac_cv_prog_CC+set}" = set; then |
| 18705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18706 | else |
| 18707 | if test -n "$CC"; then |
| 18708 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 18709 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18711 | for as_dir in $PATH |
| 18712 | do |
| 18713 | IFS=$as_save_IFS |
| 18714 | test -z "$as_dir" && as_dir=. |
| 18715 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18716 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18717 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 18718 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18719 | break 2 |
| 18720 | fi |
| 18721 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18722 | done |
| 18723 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18724 | fi |
| 18725 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18726 | CC=$ac_cv_prog_CC |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18727 | if test -n "$CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18728 | echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18729 | echo "${ECHO_T}$CC" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18730 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18731 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18732 | echo "${ECHO_T}no" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18733 | fi |
| 18734 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18735 | test -n "$CC" && break |
| 18736 | done |
| 18737 | fi |
| 18738 | if test -z "$CC"; then |
| 18739 | ac_ct_CC=$CC |
| 18740 | for ac_prog in cl |
| 18741 | do |
| 18742 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 18743 | set dummy $ac_prog; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18744 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18745 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 18746 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 18747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18748 | else |
| 18749 | if test -n "$ac_ct_CC"; then |
| 18750 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 18751 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18753 | for as_dir in $PATH |
| 18754 | do |
| 18755 | IFS=$as_save_IFS |
| 18756 | test -z "$as_dir" && as_dir=. |
| 18757 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18758 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18759 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 18760 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18761 | break 2 |
| 18762 | fi |
| 18763 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18764 | done |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18765 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18766 | fi |
| 18767 | fi |
| 18768 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 18769 | if test -n "$ac_ct_CC"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18770 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18771 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 18772 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18773 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18774 | echo "${ECHO_T}no" >&6 |
| 18775 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18776 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18777 | test -n "$ac_ct_CC" && break |
| 18778 | done |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18779 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18780 | CC=$ac_ct_CC |
| 18781 | fi |
| 18782 | |
| 18783 | fi |
| 18784 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18785 | |
| 18786 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 18787 | See \`config.log' for more details." >&5 |
| 18788 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 18789 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18790 | { (exit 1); exit 1; }; } |
| 18791 | |
| 18792 | # Provide some information about the compiler. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18793 | echo "$as_me:$LINENO:" \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18794 | "checking for C compiler version" >&5 |
| 18795 | ac_compiler=`set X $ac_compile; echo $2` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18796 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18797 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 18798 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18800 | (exit $ac_status); } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18801 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18802 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 18803 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18805 | (exit $ac_status); } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18806 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18807 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 18808 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18810 | (exit $ac_status); } |
| 18811 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18812 | 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] | 18813 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 18814 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 18815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18816 | else |
| 18817 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18818 | /* confdefs.h. */ |
| 18819 | _ACEOF |
| 18820 | cat confdefs.h >>conftest.$ac_ext |
| 18821 | cat >>conftest.$ac_ext <<_ACEOF |
| 18822 | /* end confdefs.h. */ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18823 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18824 | int |
| 18825 | main () |
| 18826 | { |
| 18827 | #ifndef __GNUC__ |
| 18828 | choke me |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18829 | #endif |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18830 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18831 | ; |
| 18832 | return 0; |
| 18833 | } |
| 18834 | _ACEOF |
| 18835 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 18837 | (eval $ac_compile) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18838 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 18839 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18840 | rm -f conftest.er1 |
| 18841 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18843 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 18844 | { ac_try='test -z "$ac_c_werror_flag" |
| 18845 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 18846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18847 | (eval $ac_try) 2>&5 |
| 18848 | ac_status=$? |
| 18849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18850 | (exit $ac_status); }; } && |
| 18851 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18853 | (eval $ac_try) 2>&5 |
| 18854 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18856 | (exit $ac_status); }; }; then |
| 18857 | ac_compiler_gnu=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18858 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18859 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18860 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18861 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18862 | ac_compiler_gnu=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18863 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 18864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18865 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18866 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18867 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18868 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18869 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 18870 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 18871 | ac_test_CFLAGS=${CFLAGS+set} |
| 18872 | ac_save_CFLAGS=$CFLAGS |
| 18873 | CFLAGS="-g" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18874 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18875 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 18876 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 18877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18878 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18879 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18880 | /* confdefs.h. */ |
| 18881 | _ACEOF |
| 18882 | cat confdefs.h >>conftest.$ac_ext |
| 18883 | cat >>conftest.$ac_ext <<_ACEOF |
| 18884 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18885 | |
| 18886 | int |
| 18887 | main () |
| 18888 | { |
| 18889 | |
| 18890 | ; |
| 18891 | return 0; |
| 18892 | } |
| 18893 | _ACEOF |
| 18894 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18895 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 18896 | (eval $ac_compile) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18897 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 18898 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18899 | rm -f conftest.er1 |
| 18900 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18902 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 18903 | { ac_try='test -z "$ac_c_werror_flag" |
| 18904 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 18905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18906 | (eval $ac_try) 2>&5 |
| 18907 | ac_status=$? |
| 18908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18909 | (exit $ac_status); }; } && |
| 18910 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18912 | (eval $ac_try) 2>&5 |
| 18913 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18915 | (exit $ac_status); }; }; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18916 | ac_cv_prog_cc_g=yes |
| 18917 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18918 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18919 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18920 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18921 | ac_cv_prog_cc_g=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18922 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 18923 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18924 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18925 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18926 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18927 | if test "$ac_test_CFLAGS" = set; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 18928 | CFLAGS=$ac_save_CFLAGS |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 18929 | elif test $ac_cv_prog_cc_g = yes; then |
| 18930 | if test "$GCC" = yes; then |
| 18931 | CFLAGS="-g -O2" |
| 18932 | else |
| 18933 | CFLAGS="-g" |
| 18934 | fi |
| 18935 | else |
| 18936 | if test "$GCC" = yes; then |
| 18937 | CFLAGS="-O2" |
| 18938 | else |
| 18939 | CFLAGS= |
| 18940 | fi |
| 18941 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18942 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 18943 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 18944 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 18945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18946 | else |
| 18947 | ac_cv_prog_cc_stdc=no |
| 18948 | ac_save_CC=$CC |
| 18949 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18950 | /* confdefs.h. */ |
| 18951 | _ACEOF |
| 18952 | cat confdefs.h >>conftest.$ac_ext |
| 18953 | cat >>conftest.$ac_ext <<_ACEOF |
| 18954 | /* end confdefs.h. */ |
| 18955 | #include <stdarg.h> |
| 18956 | #include <stdio.h> |
| 18957 | #include <sys/types.h> |
| 18958 | #include <sys/stat.h> |
| 18959 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 18960 | struct buf { int x; }; |
| 18961 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 18962 | static char *e (p, i) |
| 18963 | char **p; |
| 18964 | int i; |
| 18965 | { |
| 18966 | return p[i]; |
| 18967 | } |
| 18968 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 18969 | { |
| 18970 | char *s; |
| 18971 | va_list v; |
| 18972 | va_start (v,p); |
| 18973 | s = g (p, va_arg (v,int)); |
| 18974 | va_end (v); |
| 18975 | return s; |
| 18976 | } |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 18977 | |
| 18978 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 18979 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 18980 | These don't provoke an error unfortunately, instead are silently treated |
| 18981 | as 'x'. The following induces an error, until -std1 is added to get |
| 18982 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 18983 | array size at least. It's necessary to write '\x00'==0 to get something |
| 18984 | that's true only with -std1. */ |
| 18985 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 18986 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18987 | int test (int i, double x); |
| 18988 | struct s1 {int (*f) (int a);}; |
| 18989 | struct s2 {int (*f) (double a);}; |
| 18990 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 18991 | int argc; |
| 18992 | char **argv; |
| 18993 | int |
| 18994 | main () |
| 18995 | { |
| 18996 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 18997 | ; |
| 18998 | return 0; |
| 18999 | } |
| 19000 | _ACEOF |
| 19001 | # Don't try gcc -ansi; that turns off useful extensions and |
| 19002 | # breaks some systems' header files. |
| 19003 | # AIX -qlanglvl=ansi |
| 19004 | # Ultrix and OSF/1 -std1 |
| 19005 | # HP-UX 10.20 and later -Ae |
| 19006 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 19007 | # SVR4 -Xc -D__EXTENSIONS__ |
| 19008 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 19009 | do |
| 19010 | CC="$ac_save_CC $ac_arg" |
| 19011 | rm -f conftest.$ac_objext |
| 19012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19013 | (eval $ac_compile) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19014 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19015 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19016 | rm -f conftest.er1 |
| 19017 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19019 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19020 | { ac_try='test -z "$ac_c_werror_flag" |
| 19021 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19023 | (eval $ac_try) 2>&5 |
| 19024 | ac_status=$? |
| 19025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19026 | (exit $ac_status); }; } && |
| 19027 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19029 | (eval $ac_try) 2>&5 |
| 19030 | ac_status=$? |
| 19031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19032 | (exit $ac_status); }; }; then |
| 19033 | ac_cv_prog_cc_stdc=$ac_arg |
| 19034 | break |
| 19035 | else |
| 19036 | echo "$as_me: failed program was:" >&5 |
| 19037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19038 | |
| 19039 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19040 | rm -f conftest.err conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19041 | done |
| 19042 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 19043 | CC=$ac_save_CC |
| 19044 | |
| 19045 | fi |
| 19046 | |
| 19047 | case "x$ac_cv_prog_cc_stdc" in |
| 19048 | x|xno) |
| 19049 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 19050 | echo "${ECHO_T}none needed" >&6 ;; |
| 19051 | *) |
| 19052 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 19053 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 19054 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 19055 | esac |
| 19056 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19057 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 19058 | # in C++ we need to declare it. In case someone uses the same compiler |
| 19059 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 19060 | # the declaration of exit, since it's the most demanding environment. |
| 19061 | cat >conftest.$ac_ext <<_ACEOF |
| 19062 | #ifndef __cplusplus |
| 19063 | choke me |
| 19064 | #endif |
| 19065 | _ACEOF |
| 19066 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19067 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19068 | (eval $ac_compile) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19069 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19070 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19071 | rm -f conftest.er1 |
| 19072 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19074 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19075 | { ac_try='test -z "$ac_c_werror_flag" |
| 19076 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19078 | (eval $ac_try) 2>&5 |
| 19079 | ac_status=$? |
| 19080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19081 | (exit $ac_status); }; } && |
| 19082 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19084 | (eval $ac_try) 2>&5 |
| 19085 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19087 | (exit $ac_status); }; }; then |
| 19088 | for ac_declaration in \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19089 | '' \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19090 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 19091 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 19092 | 'extern "C" void exit (int) throw ();' \ |
| 19093 | 'extern "C" void exit (int);' \ |
| 19094 | 'void exit (int);' |
| 19095 | do |
| 19096 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19097 | /* confdefs.h. */ |
| 19098 | _ACEOF |
| 19099 | cat confdefs.h >>conftest.$ac_ext |
| 19100 | cat >>conftest.$ac_ext <<_ACEOF |
| 19101 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19102 | $ac_declaration |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19103 | #include <stdlib.h> |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19104 | int |
| 19105 | main () |
| 19106 | { |
| 19107 | exit (42); |
| 19108 | ; |
| 19109 | return 0; |
| 19110 | } |
| 19111 | _ACEOF |
| 19112 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19113 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19114 | (eval $ac_compile) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19115 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19116 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19117 | rm -f conftest.er1 |
| 19118 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19120 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19121 | { ac_try='test -z "$ac_c_werror_flag" |
| 19122 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19124 | (eval $ac_try) 2>&5 |
| 19125 | ac_status=$? |
| 19126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19127 | (exit $ac_status); }; } && |
| 19128 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19130 | (eval $ac_try) 2>&5 |
| 19131 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19133 | (exit $ac_status); }; }; then |
| 19134 | : |
| 19135 | else |
| 19136 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19137 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19138 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19139 | continue |
| 19140 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19141 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19142 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19143 | /* confdefs.h. */ |
| 19144 | _ACEOF |
| 19145 | cat confdefs.h >>conftest.$ac_ext |
| 19146 | cat >>conftest.$ac_ext <<_ACEOF |
| 19147 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19148 | $ac_declaration |
| 19149 | int |
| 19150 | main () |
| 19151 | { |
| 19152 | exit (42); |
| 19153 | ; |
| 19154 | return 0; |
| 19155 | } |
| 19156 | _ACEOF |
| 19157 | rm -f conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19159 | (eval $ac_compile) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19160 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19162 | rm -f conftest.er1 |
| 19163 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19165 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19166 | { ac_try='test -z "$ac_c_werror_flag" |
| 19167 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19169 | (eval $ac_try) 2>&5 |
| 19170 | ac_status=$? |
| 19171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19172 | (exit $ac_status); }; } && |
| 19173 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19175 | (eval $ac_try) 2>&5 |
| 19176 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19178 | (exit $ac_status); }; }; then |
| 19179 | break |
| 19180 | else |
| 19181 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19182 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19183 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19184 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19185 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19186 | done |
| 19187 | rm -f conftest* |
| 19188 | if test -n "$ac_declaration"; then |
| 19189 | echo '#ifdef __cplusplus' >>confdefs.h |
| 19190 | echo $ac_declaration >>confdefs.h |
| 19191 | echo '#endif' >>confdefs.h |
| 19192 | fi |
| 19193 | |
| 19194 | else |
| 19195 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19196 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19197 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19198 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19199 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19200 | ac_ext=c |
| 19201 | ac_cpp='$CPP $CPPFLAGS' |
| 19202 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19203 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19204 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19205 | |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 19206 | if test "$cross_compiling" = "yes"; then |
| 19207 | { { echo "$as_me:$LINENO: error: unable to find a compiler for building build tools" >&5 |
| 19208 | echo "$as_me: error: unable to find a compiler for building build tools" >&2;} |
| 19209 | { (exit 1); exit 1; }; } |
| 19210 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19211 | BUILD_CC=$CC |
| 19212 | default_build_cflags=$CFLAGS |
| 19213 | else |
| 19214 | BUILD_CC=$config_BUILD_CC |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19215 | echo "$as_me:$LINENO: checking host compiler" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19216 | echo $ECHO_N "checking host compiler... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19217 | CC=$BUILD_CC |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19218 | echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19219 | echo "${ECHO_T}$BUILD_CC" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19220 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19221 | echo "$as_me:$LINENO: checking switches for the host compiler" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19222 | echo $ECHO_N "checking switches for the host compiler... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19223 | if test "$config_BUILD_CFLAGS" != ""; then |
| 19224 | CFLAGS=$config_BUILD_CFLAGS |
| 19225 | BUILD_CFLAGS=$config_BUILD_CFLAGS |
| 19226 | else |
| 19227 | BUILD_CFLAGS=$default_build_cflags |
| 19228 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19229 | echo "$as_me:$LINENO: result: $BUILD_CFLAGS" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19230 | echo "${ECHO_T}$BUILD_CFLAGS" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19231 | if test "$config_BUILD_LIBS" != ""; then |
| 19232 | BUILD_LIBS=$config_BUILD_LIBS |
| 19233 | fi |
| 19234 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19235 | |
| 19236 | |
| 19237 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19238 | ########## |
| 19239 | # Locate a compiler that converts C code into *.o files that run on |
| 19240 | # the target machine. |
| 19241 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19242 | echo "$as_me:$LINENO: checking target compiler" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19243 | echo $ECHO_N "checking target compiler... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19244 | if test "$config_TARGET_CC" != ""; then |
| 19245 | TARGET_CC=$config_TARGET_CC |
| 19246 | else |
| 19247 | TARGET_CC=$BUILD_CC |
| 19248 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19249 | echo "$as_me:$LINENO: result: $TARGET_CC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19250 | echo "${ECHO_T}$TARGET_CC" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19251 | echo "$as_me:$LINENO: checking switches on the target compiler" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19252 | echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19253 | if test "$config_TARGET_CFLAGS" != ""; then |
| 19254 | TARGET_CFLAGS=$config_TARGET_CFLAGS |
| 19255 | else |
| 19256 | TARGET_CFLAGS=$BUILD_CFLAGS |
| 19257 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19258 | echo "$as_me:$LINENO: result: $TARGET_CFLAGS" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19259 | echo "${ECHO_T}$TARGET_CFLAGS" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19260 | echo "$as_me:$LINENO: checking target linker" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19261 | echo $ECHO_N "checking target linker... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19262 | if test "$config_TARGET_LINK" = ""; then |
| 19263 | TARGET_LINK=$TARGET_CC |
| 19264 | else |
| 19265 | TARGET_LINK=$config_TARGET_LINK |
| 19266 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19267 | echo "$as_me:$LINENO: result: $TARGET_LINK" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19268 | echo "${ECHO_T}$TARGET_LINK" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19269 | echo "$as_me:$LINENO: checking switches on the target compiler" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19270 | echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19271 | if test "$config_TARGET_TFLAGS" != ""; then |
| 19272 | TARGET_TFLAGS=$config_TARGET_TFLAGS |
| 19273 | else |
| 19274 | TARGET_TFLAGS=$BUILD_CFLAGS |
| 19275 | fi |
| 19276 | if test "$config_TARGET_RANLIB" != ""; then |
| 19277 | TARGET_RANLIB=$config_TARGET_RANLIB |
| 19278 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19279 | if test -n "$ac_tool_prefix"; then |
| 19280 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 19281 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19282 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19283 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 19284 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 19285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19286 | else |
| 19287 | if test -n "$RANLIB"; then |
| 19288 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 19289 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19291 | for as_dir in $PATH |
| 19292 | do |
| 19293 | IFS=$as_save_IFS |
| 19294 | test -z "$as_dir" && as_dir=. |
| 19295 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 19296 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 19297 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 19298 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 19299 | break 2 |
| 19300 | fi |
| 19301 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19302 | done |
| 19303 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19304 | fi |
| 19305 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19306 | RANLIB=$ac_cv_prog_RANLIB |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19307 | if test -n "$RANLIB"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19308 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19309 | echo "${ECHO_T}$RANLIB" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19310 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19311 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19312 | echo "${ECHO_T}no" >&6 |
| 19313 | fi |
| 19314 | |
| 19315 | fi |
| 19316 | if test -z "$ac_cv_prog_RANLIB"; then |
| 19317 | ac_ct_RANLIB=$RANLIB |
| 19318 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 19319 | set dummy ranlib; ac_word=$2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19320 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19321 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 19322 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 19323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19324 | else |
| 19325 | if test -n "$ac_ct_RANLIB"; then |
| 19326 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 19327 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19328 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19329 | for as_dir in $PATH |
| 19330 | do |
| 19331 | IFS=$as_save_IFS |
| 19332 | test -z "$as_dir" && as_dir=. |
| 19333 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 19334 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 19335 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 19336 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 19337 | break 2 |
| 19338 | fi |
| 19339 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19340 | done |
| 19341 | |
| 19342 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 19343 | fi |
| 19344 | fi |
| 19345 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 19346 | if test -n "$ac_ct_RANLIB"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19347 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19348 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 19349 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19350 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19351 | echo "${ECHO_T}no" >&6 |
| 19352 | fi |
| 19353 | |
| 19354 | RANLIB=$ac_ct_RANLIB |
| 19355 | else |
| 19356 | RANLIB="$ac_cv_prog_RANLIB" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19357 | fi |
| 19358 | |
| 19359 | TARGET_RANLIB=$RANLIB |
| 19360 | fi |
| 19361 | if test "$config_TARGET_AR" != ""; then |
drh | 82ad383 | 2000-07-31 13:38:24 +0000 | [diff] [blame] | 19362 | TARGET_AR=$config_TARGET_AR |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19363 | else |
| 19364 | TARGET_AR='ar cr' |
| 19365 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19366 | echo "$as_me:$LINENO: result: $TARGET_TFLAGS" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19367 | echo "${ECHO_T}$TARGET_TFLAGS" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19368 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19369 | |
| 19370 | |
| 19371 | |
| 19372 | |
| 19373 | |
| 19374 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19375 | # Set the $cross variable if we are cross-compiling. Make |
| 19376 | # it 0 if we are not. |
| 19377 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19378 | 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] | 19379 | 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] | 19380 | if test "$BUILD_CC" = "$TARGET_CC"; then |
| 19381 | cross=0 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19382 | echo "$as_me:$LINENO: result: yes" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19383 | echo "${ECHO_T}yes" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19384 | else |
| 19385 | cross=1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19386 | echo "$as_me:$LINENO: result: no" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19387 | echo "${ECHO_T}no" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19388 | fi |
| 19389 | |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 19390 | ########## |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19391 | # Do we want to support multithreaded use of sqlite |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 19392 | # |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19393 | # Check whether --enable-threadsafe or --disable-threadsafe was given. |
| 19394 | if test "${enable_threadsafe+set}" = set; then |
| 19395 | enableval="$enable_threadsafe" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19396 | |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 19397 | else |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19398 | enable_threadsafe=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19399 | fi; |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19400 | echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5 |
| 19401 | echo $ECHO_N "checking whether to support threadsafe operation... $ECHO_C" >&6 |
| 19402 | if test "$enable_threadsafe" = "no"; then |
| 19403 | THREADSAFE=0 |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 19404 | echo "$as_me:$LINENO: result: no" >&5 |
| 19405 | echo "${ECHO_T}no" >&6 |
| 19406 | else |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19407 | THREADSAFE=1 |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 19408 | echo "$as_me:$LINENO: result: yes" >&5 |
| 19409 | echo "${ECHO_T}yes" >&6 |
| 19410 | fi |
| 19411 | |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19412 | |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 19413 | if test "$THREADSAFE" = "1"; then |
| 19414 | LIBS="" |
| 19415 | |
| 19416 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 19417 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 19418 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
| 19419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19420 | else |
| 19421 | ac_check_lib_save_LIBS=$LIBS |
| 19422 | LIBS="-lpthread $LIBS" |
| 19423 | cat >conftest.$ac_ext <<_ACEOF |
| 19424 | /* confdefs.h. */ |
| 19425 | _ACEOF |
| 19426 | cat confdefs.h >>conftest.$ac_ext |
| 19427 | cat >>conftest.$ac_ext <<_ACEOF |
| 19428 | /* end confdefs.h. */ |
| 19429 | |
| 19430 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19431 | #ifdef __cplusplus |
| 19432 | extern "C" |
| 19433 | #endif |
| 19434 | /* We use char because int might match the return type of a gcc2 |
| 19435 | builtin and then its argument prototype would still apply. */ |
| 19436 | char pthread_create (); |
| 19437 | int |
| 19438 | main () |
| 19439 | { |
| 19440 | pthread_create (); |
| 19441 | ; |
| 19442 | return 0; |
| 19443 | } |
| 19444 | _ACEOF |
| 19445 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19446 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19447 | (eval $ac_link) 2>conftest.er1 |
| 19448 | ac_status=$? |
| 19449 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19450 | rm -f conftest.er1 |
| 19451 | cat conftest.err >&5 |
| 19452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19453 | (exit $ac_status); } && |
| 19454 | { ac_try='test -z "$ac_c_werror_flag" |
| 19455 | || test ! -s conftest.err' |
| 19456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19457 | (eval $ac_try) 2>&5 |
| 19458 | ac_status=$? |
| 19459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19460 | (exit $ac_status); }; } && |
| 19461 | { ac_try='test -s conftest$ac_exeext' |
| 19462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19463 | (eval $ac_try) 2>&5 |
| 19464 | ac_status=$? |
| 19465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19466 | (exit $ac_status); }; }; then |
| 19467 | ac_cv_lib_pthread_pthread_create=yes |
| 19468 | else |
| 19469 | echo "$as_me: failed program was:" >&5 |
| 19470 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19471 | |
| 19472 | ac_cv_lib_pthread_pthread_create=no |
| 19473 | fi |
| 19474 | rm -f conftest.err conftest.$ac_objext \ |
| 19475 | conftest$ac_exeext conftest.$ac_ext |
| 19476 | LIBS=$ac_check_lib_save_LIBS |
| 19477 | fi |
| 19478 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
| 19479 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6 |
| 19480 | if test $ac_cv_lib_pthread_pthread_create = yes; then |
| 19481 | cat >>confdefs.h <<_ACEOF |
| 19482 | #define HAVE_LIBPTHREAD 1 |
| 19483 | _ACEOF |
| 19484 | |
| 19485 | LIBS="-lpthread $LIBS" |
| 19486 | |
| 19487 | fi |
| 19488 | |
| 19489 | TARGET_THREAD_LIB="$LIBS" |
| 19490 | LIBS="" |
| 19491 | else |
| 19492 | TARGET_THREAD_LIB="" |
| 19493 | fi |
| 19494 | |
| 19495 | |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 19496 | ########## |
| 19497 | # Do we want to support release |
| 19498 | # |
| 19499 | # Check whether --enable-releasemode or --disable-releasemode was given. |
| 19500 | if test "${enable_releasemode+set}" = set; then |
| 19501 | enableval="$enable_releasemode" |
| 19502 | |
| 19503 | else |
| 19504 | enable_releasemode=no |
| 19505 | fi; |
| 19506 | echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5 |
| 19507 | echo $ECHO_N "checking whether to support shared library linked as release mode or not... $ECHO_C" >&6 |
| 19508 | if test "$enable_releasemode" = "no"; then |
| 19509 | ALLOWRELEASE="" |
| 19510 | echo "$as_me:$LINENO: result: no" >&5 |
| 19511 | echo "${ECHO_T}no" >&6 |
| 19512 | else |
| 19513 | ALLOWRELEASE="-release `cat VERSION`" |
| 19514 | echo "$as_me:$LINENO: result: yes" >&5 |
| 19515 | echo "${ECHO_T}yes" >&6 |
| 19516 | fi |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 19517 | |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19518 | |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 19519 | ########## |
| 19520 | # Do we want temporary databases in memory |
| 19521 | # |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19522 | # Check whether --enable-tempstore or --disable-tempstore was given. |
| 19523 | if test "${enable_tempstore+set}" = set; then |
| 19524 | enableval="$enable_tempstore" |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 19525 | |
| 19526 | else |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19527 | enable_tempstore=yes |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 19528 | fi; |
| 19529 | echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5 |
| 19530 | echo $ECHO_N "checking whether to use an in-ram database for temporary tables... $ECHO_C" >&6 |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19531 | case "$enable_tempstore" in |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 19532 | never ) |
paul | 2dc96f9 | 2003-04-20 11:46:34 +0000 | [diff] [blame] | 19533 | TEMP_STORE=0 |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 19534 | echo "$as_me:$LINENO: result: never" >&5 |
| 19535 | echo "${ECHO_T}never" >&6 |
| 19536 | ;; |
| 19537 | no ) |
paul | 2dc96f9 | 2003-04-20 11:46:34 +0000 | [diff] [blame] | 19538 | TEMP_STORE=1 |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 19539 | echo "$as_me:$LINENO: result: no" >&5 |
| 19540 | echo "${ECHO_T}no" >&6 |
| 19541 | ;; |
| 19542 | always ) |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19543 | TEMP_STORE=3 |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 19544 | echo "$as_me:$LINENO: result: always" >&5 |
| 19545 | echo "${ECHO_T}always" >&6 |
| 19546 | ;; |
| 19547 | * ) |
paul | 2dc96f9 | 2003-04-20 11:46:34 +0000 | [diff] [blame] | 19548 | TEMP_STORE=2 |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 19549 | echo "$as_me:$LINENO: result: yes" >&5 |
| 19550 | echo "${ECHO_T}yes" >&6 |
| 19551 | ;; |
| 19552 | esac |
| 19553 | |
| 19554 | |
| 19555 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19556 | ########### |
| 19557 | # Lots of things are different if we are compiling for Windows using |
| 19558 | # the CYGWIN environment. So check for that special case and handle |
| 19559 | # things accordingly. |
| 19560 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19561 | echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19562 | echo $ECHO_N "checking if executables have the .exe suffix... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19563 | if test "$config_BUILD_EXEEXT" = ".exe"; then |
| 19564 | CYGWIN=yes |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19565 | echo "$as_me:$LINENO: result: yes" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19566 | echo "${ECHO_T}yes" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19567 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19568 | echo "$as_me:$LINENO: result: unknown" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19569 | echo "${ECHO_T}unknown" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19570 | fi |
| 19571 | if test "$CYGWIN" != "yes"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19572 | |
| 19573 | case $host_os in |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19574 | *cygwin* ) CYGWIN=yes;; |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19575 | * ) CYGWIN=no;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19576 | esac |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19577 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19578 | fi |
| 19579 | if test "$CYGWIN" = "yes"; then |
| 19580 | BUILD_EXEEXT=.exe |
| 19581 | else |
dougcurrie | 6194a5f | 2003-12-19 20:09:51 +0000 | [diff] [blame] | 19582 | BUILD_EXEEXT=$EXEEXT |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19583 | fi |
| 19584 | if test "$cross" = "0"; then |
| 19585 | TARGET_EXEEXT=$BUILD_EXEEXT |
| 19586 | else |
| 19587 | TARGET_EXEEXT=$config_TARGET_EXEEXT |
| 19588 | fi |
| 19589 | if test "$TARGET_EXEEXT" = ".exe"; then |
| 19590 | OS_UNIX=0 |
| 19591 | OS_WIN=1 |
| 19592 | tclsubdir=win |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19593 | TARGET_CFLAGS="$TARGET_CFLAGS -DOS_WIN=1" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19594 | else |
| 19595 | OS_UNIX=1 |
| 19596 | OS_WIN=0 |
| 19597 | tclsubdir=unix |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19598 | TARGET_CFLAGS="$TARGET_CFLAGS -DOS_UNIX=1" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19599 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19600 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19601 | |
| 19602 | |
| 19603 | |
| 19604 | |
| 19605 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19606 | ########## |
| 19607 | # Extract generic linker options from the environment. |
| 19608 | # |
| 19609 | if test "$config_TARGET_LIBS" != ""; then |
| 19610 | TARGET_LIBS=$config_TARGET_LIBS |
| 19611 | else |
| 19612 | TARGET_LIBS="" |
| 19613 | fi |
| 19614 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19615 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19616 | ########## |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 19617 | # Figure out all the parameters needed to compile against Tcl. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19618 | # |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 19619 | # This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG |
| 19620 | # macros in the in the tcl.m4 file of the standard TCL distribution. |
| 19621 | # Those macros could not be used directly since we have to make some |
| 19622 | # minor changes to accomodate systems that do not have TCL installed. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19623 | # |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 19624 | # Check whether --enable-tcl or --disable-tcl was given. |
| 19625 | if test "${enable_tcl+set}" = set; then |
| 19626 | enableval="$enable_tcl" |
| 19627 | use_tcl=$enableval |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19628 | else |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 19629 | use_tcl=yes |
| 19630 | fi; |
| 19631 | if test "${use_tcl}" = "yes" ; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19632 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 19633 | # Check whether --with-tcl or --without-tcl was given. |
| 19634 | if test "${with_tcl+set}" = set; then |
| 19635 | withval="$with_tcl" |
| 19636 | with_tclconfig=${withval} |
| 19637 | fi; |
| 19638 | echo "$as_me:$LINENO: checking for Tcl configuration" >&5 |
| 19639 | echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6 |
| 19640 | if test "${ac_cv_c_tclconfig+set}" = set; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19642 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19643 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 19644 | # First check to see if --with-tcl was specified. |
| 19645 | if test x"${with_tclconfig}" != x ; then |
| 19646 | if test -f "${with_tclconfig}/tclConfig.sh" ; then |
| 19647 | ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` |
| 19648 | else |
| 19649 | { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 |
| 19650 | echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 19651 | { (exit 1); exit 1; }; } |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 19652 | fi |
| 19653 | fi |
| 19654 | # then check for a private Tcl installation |
| 19655 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 19656 | for i in \ |
| 19657 | ../tcl \ |
| 19658 | `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 19659 | `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ |
| 19660 | `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ |
| 19661 | ../../tcl \ |
| 19662 | `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 19663 | `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ |
| 19664 | `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ |
| 19665 | ../../../tcl \ |
| 19666 | `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 19667 | `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ |
| 19668 | `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` |
| 19669 | do |
| 19670 | if test -f "$i/unix/tclConfig.sh" ; then |
| 19671 | ac_cv_c_tclconfig=`(cd $i/unix; pwd)` |
| 19672 | break |
| 19673 | fi |
| 19674 | done |
| 19675 | fi |
| 19676 | |
| 19677 | # check in a few common install locations |
| 19678 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 19679 | for i in \ |
| 19680 | `ls -d ${libdir} 2>/dev/null` \ |
| 19681 | `ls -d /usr/local/lib 2>/dev/null` \ |
| 19682 | `ls -d /usr/contrib/lib 2>/dev/null` \ |
| 19683 | `ls -d /usr/lib 2>/dev/null` |
| 19684 | do |
| 19685 | if test -f "$i/tclConfig.sh" ; then |
| 19686 | ac_cv_c_tclconfig=`(cd $i; pwd)` |
| 19687 | break |
| 19688 | fi |
| 19689 | done |
| 19690 | fi |
| 19691 | |
| 19692 | # check in a few other private locations |
| 19693 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 19694 | for i in \ |
| 19695 | ${srcdir}/../tcl \ |
| 19696 | `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 19697 | `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ |
| 19698 | `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` |
| 19699 | do |
| 19700 | if test -f "$i/unix/tclConfig.sh" ; then |
| 19701 | ac_cv_c_tclconfig=`(cd $i/unix; pwd)` |
| 19702 | break |
| 19703 | fi |
| 19704 | done |
| 19705 | fi |
| 19706 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19707 | fi |
| 19708 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 19709 | |
| 19710 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 19711 | use_tcl=no |
| 19712 | { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 |
| 19713 | echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} |
| 19714 | { echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5 |
| 19715 | echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;} |
| 19716 | { echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5 |
| 19717 | echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;} |
| 19718 | else |
| 19719 | TCL_BIN_DIR=${ac_cv_c_tclconfig} |
| 19720 | echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5 |
| 19721 | echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6 |
| 19722 | |
| 19723 | echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5 |
| 19724 | echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6 |
| 19725 | if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then |
| 19726 | echo "$as_me:$LINENO: result: loading" >&5 |
| 19727 | echo "${ECHO_T}loading" >&6 |
| 19728 | . $TCL_BIN_DIR/tclConfig.sh |
| 19729 | else |
| 19730 | echo "$as_me:$LINENO: result: file not found" >&5 |
| 19731 | echo "${ECHO_T}file not found" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19732 | fi |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 19733 | |
| 19734 | # |
| 19735 | # If the TCL_BIN_DIR is the build directory (not the install directory), |
| 19736 | # then set the common variable name to the value of the build variables. |
| 19737 | # For example, the variable TCL_LIB_SPEC will be set to the value |
| 19738 | # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC |
| 19739 | # instead of TCL_BUILD_LIB_SPEC since it will work with both an |
| 19740 | # installed and uninstalled version of Tcl. |
| 19741 | # |
| 19742 | |
| 19743 | if test -f $TCL_BIN_DIR/Makefile ; then |
| 19744 | TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC} |
| 19745 | TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC} |
| 19746 | TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH} |
| 19747 | fi |
| 19748 | |
| 19749 | # |
| 19750 | # eval is required to do the TCL_DBGX substitution |
| 19751 | # |
| 19752 | |
| 19753 | eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" |
| 19754 | eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" |
| 19755 | eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" |
| 19756 | |
| 19757 | eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" |
| 19758 | eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" |
| 19759 | eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" |
| 19760 | |
| 19761 | |
| 19762 | |
| 19763 | |
| 19764 | |
| 19765 | |
| 19766 | |
| 19767 | |
| 19768 | |
| 19769 | |
| 19770 | |
| 19771 | |
| 19772 | |
| 19773 | |
| 19774 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19775 | fi |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 19776 | if test "${use_tcl}" = "no" ; then |
| 19777 | HAVE_TCL="" |
| 19778 | else |
| 19779 | HAVE_TCL=1 |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 19780 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19781 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19782 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19783 | ########## |
| 19784 | # Figure out what C libraries are required to compile programs |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19785 | # that use "readline()" library. |
| 19786 | # |
| 19787 | if test "$config_TARGET_READLINE_LIBS" != ""; then |
| 19788 | TARGET_READLINE_LIBS="$config_TARGET_READLINE_LIBS" |
| 19789 | else |
| 19790 | CC=$TARGET_CC |
| 19791 | LIBS="" |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 19792 | echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
| 19793 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6 |
| 19794 | if test "${ac_cv_search_tgetent+set}" = set; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19796 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19797 | ac_func_search_save_LIBS=$LIBS |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 19798 | ac_cv_search_tgetent=no |
| 19799 | cat >conftest.$ac_ext <<_ACEOF |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 19800 | /* confdefs.h. */ |
| 19801 | _ACEOF |
| 19802 | cat confdefs.h >>conftest.$ac_ext |
| 19803 | cat >>conftest.$ac_ext <<_ACEOF |
| 19804 | /* end confdefs.h. */ |
| 19805 | |
| 19806 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19807 | #ifdef __cplusplus |
| 19808 | extern "C" |
| 19809 | #endif |
| 19810 | /* We use char because int might match the return type of a gcc2 |
| 19811 | builtin and then its argument prototype would still apply. */ |
| 19812 | char tgetent (); |
| 19813 | int |
| 19814 | main () |
| 19815 | { |
| 19816 | tgetent (); |
| 19817 | ; |
| 19818 | return 0; |
| 19819 | } |
| 19820 | _ACEOF |
| 19821 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19822 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19823 | (eval $ac_link) 2>conftest.er1 |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 19824 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19825 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19826 | rm -f conftest.er1 |
| 19827 | cat conftest.err >&5 |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 19828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19829 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19830 | { ac_try='test -z "$ac_c_werror_flag" |
| 19831 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19833 | (eval $ac_try) 2>&5 |
| 19834 | ac_status=$? |
| 19835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19836 | (exit $ac_status); }; } && |
| 19837 | { ac_try='test -s conftest$ac_exeext' |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 19838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19839 | (eval $ac_try) 2>&5 |
| 19840 | ac_status=$? |
| 19841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19842 | (exit $ac_status); }; }; then |
| 19843 | ac_cv_search_tgetent="none required" |
| 19844 | else |
| 19845 | echo "$as_me: failed program was:" >&5 |
| 19846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19847 | |
| 19848 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19849 | rm -f conftest.err conftest.$ac_objext \ |
| 19850 | conftest$ac_exeext conftest.$ac_ext |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 19851 | if test "$ac_cv_search_tgetent" = no; then |
| 19852 | for ac_lib in readline ncurses curses termcap; do |
| 19853 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 19854 | cat >conftest.$ac_ext <<_ACEOF |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 19855 | /* confdefs.h. */ |
| 19856 | _ACEOF |
| 19857 | cat confdefs.h >>conftest.$ac_ext |
| 19858 | cat >>conftest.$ac_ext <<_ACEOF |
| 19859 | /* end confdefs.h. */ |
| 19860 | |
| 19861 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19862 | #ifdef __cplusplus |
| 19863 | extern "C" |
| 19864 | #endif |
| 19865 | /* We use char because int might match the return type of a gcc2 |
| 19866 | builtin and then its argument prototype would still apply. */ |
| 19867 | char tgetent (); |
| 19868 | int |
| 19869 | main () |
| 19870 | { |
| 19871 | tgetent (); |
| 19872 | ; |
| 19873 | return 0; |
| 19874 | } |
| 19875 | _ACEOF |
| 19876 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19877 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19878 | (eval $ac_link) 2>conftest.er1 |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 19879 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19880 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19881 | rm -f conftest.er1 |
| 19882 | cat conftest.err >&5 |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 19883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19884 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19885 | { ac_try='test -z "$ac_c_werror_flag" |
| 19886 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19888 | (eval $ac_try) 2>&5 |
| 19889 | ac_status=$? |
| 19890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19891 | (exit $ac_status); }; } && |
| 19892 | { ac_try='test -s conftest$ac_exeext' |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 19893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19894 | (eval $ac_try) 2>&5 |
| 19895 | ac_status=$? |
| 19896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19897 | (exit $ac_status); }; }; then |
| 19898 | ac_cv_search_tgetent="-l$ac_lib" |
| 19899 | break |
| 19900 | else |
| 19901 | echo "$as_me: failed program was:" >&5 |
| 19902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19903 | |
| 19904 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19905 | rm -f conftest.err conftest.$ac_objext \ |
| 19906 | conftest$ac_exeext conftest.$ac_ext |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 19907 | done |
| 19908 | fi |
| 19909 | LIBS=$ac_func_search_save_LIBS |
| 19910 | fi |
| 19911 | echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
| 19912 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6 |
| 19913 | if test "$ac_cv_search_tgetent" != no; then |
| 19914 | test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" |
| 19915 | |
| 19916 | fi |
| 19917 | |
| 19918 | |
| 19919 | echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
| 19920 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6 |
| 19921 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
| 19922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19923 | else |
| 19924 | ac_check_lib_save_LIBS=$LIBS |
| 19925 | LIBS="-lreadline $LIBS" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19926 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19927 | /* confdefs.h. */ |
| 19928 | _ACEOF |
| 19929 | cat confdefs.h >>conftest.$ac_ext |
| 19930 | cat >>conftest.$ac_ext <<_ACEOF |
| 19931 | /* end confdefs.h. */ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19932 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19933 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19934 | #ifdef __cplusplus |
| 19935 | extern "C" |
| 19936 | #endif |
| 19937 | /* We use char because int might match the return type of a gcc2 |
| 19938 | builtin and then its argument prototype would still apply. */ |
| 19939 | char readline (); |
| 19940 | int |
| 19941 | main () |
| 19942 | { |
| 19943 | readline (); |
| 19944 | ; |
| 19945 | return 0; |
| 19946 | } |
| 19947 | _ACEOF |
| 19948 | rm -f conftest.$ac_objext conftest$ac_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19949 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19950 | (eval $ac_link) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19951 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19952 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19953 | rm -f conftest.er1 |
| 19954 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19956 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 19957 | { ac_try='test -z "$ac_c_werror_flag" |
| 19958 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19960 | (eval $ac_try) 2>&5 |
| 19961 | ac_status=$? |
| 19962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19963 | (exit $ac_status); }; } && |
| 19964 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19966 | (eval $ac_try) 2>&5 |
| 19967 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19969 | (exit $ac_status); }; }; then |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 19970 | ac_cv_lib_readline_readline=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19971 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19972 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19974 | |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 19975 | ac_cv_lib_readline_readline=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19976 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 19977 | rm -f conftest.err conftest.$ac_objext \ |
| 19978 | conftest$ac_exeext conftest.$ac_ext |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 19979 | LIBS=$ac_check_lib_save_LIBS |
| 19980 | fi |
| 19981 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
| 19982 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6 |
| 19983 | if test $ac_cv_lib_readline_readline = yes; then |
| 19984 | cat >>confdefs.h <<_ACEOF |
| 19985 | #define HAVE_LIBREADLINE 1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19986 | _ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19987 | |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 19988 | LIBS="-lreadline $LIBS" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 19989 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19990 | fi |
| 19991 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19992 | TARGET_READLINE_LIBS="$LIBS" |
| 19993 | fi |
| 19994 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19995 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 19996 | ########## |
| 19997 | # Figure out where to get the READLINE header files. |
| 19998 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19999 | echo "$as_me:$LINENO: checking readline header files" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20000 | echo $ECHO_N "checking readline header files... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20001 | found=no |
| 20002 | if test "$config_TARGET_READLINE_INC" != ""; then |
| 20003 | TARGET_READLINE_INC=$config_TARGET_READLINE_INC |
| 20004 | found=yes |
| 20005 | fi |
| 20006 | if test "$found" = "yes"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20007 | echo "$as_me:$LINENO: result: $TARGET_READLINE_INC" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20008 | echo "${ECHO_T}$TARGET_READLINE_INC" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20009 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20010 | echo "$as_me:$LINENO: result: not specified: still searching..." >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20011 | echo "${ECHO_T}not specified: still searching..." >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20012 | if test "${ac_cv_header_readline_h+set}" = set; then |
| 20013 | echo "$as_me:$LINENO: checking for readline.h" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20014 | echo $ECHO_N "checking for readline.h... $ECHO_C" >&6 |
| 20015 | if test "${ac_cv_header_readline_h+set}" = set; then |
| 20016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20017 | fi |
| 20018 | echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5 |
| 20019 | echo "${ECHO_T}$ac_cv_header_readline_h" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20020 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20021 | # Is the header compilable? |
| 20022 | echo "$as_me:$LINENO: checking readline.h usability" >&5 |
| 20023 | echo $ECHO_N "checking readline.h usability... $ECHO_C" >&6 |
| 20024 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20025 | /* confdefs.h. */ |
| 20026 | _ACEOF |
| 20027 | cat confdefs.h >>conftest.$ac_ext |
| 20028 | cat >>conftest.$ac_ext <<_ACEOF |
| 20029 | /* end confdefs.h. */ |
| 20030 | $ac_includes_default |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20031 | #include <readline.h> |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20032 | _ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20033 | rm -f conftest.$ac_objext |
| 20034 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20035 | (eval $ac_compile) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20036 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20037 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20038 | rm -f conftest.er1 |
| 20039 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20041 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 20042 | { ac_try='test -z "$ac_c_werror_flag" |
| 20043 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20045 | (eval $ac_try) 2>&5 |
| 20046 | ac_status=$? |
| 20047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20048 | (exit $ac_status); }; } && |
| 20049 | { ac_try='test -s conftest.$ac_objext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20051 | (eval $ac_try) 2>&5 |
| 20052 | ac_status=$? |
| 20053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20054 | (exit $ac_status); }; }; then |
| 20055 | ac_header_compiler=yes |
| 20056 | else |
| 20057 | echo "$as_me: failed program was:" >&5 |
| 20058 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20059 | |
| 20060 | ac_header_compiler=no |
| 20061 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20062 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20063 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 20064 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 20065 | |
| 20066 | # Is the header present? |
| 20067 | echo "$as_me:$LINENO: checking readline.h presence" >&5 |
| 20068 | echo $ECHO_N "checking readline.h presence... $ECHO_C" >&6 |
| 20069 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20070 | /* confdefs.h. */ |
| 20071 | _ACEOF |
| 20072 | cat confdefs.h >>conftest.$ac_ext |
| 20073 | cat >>conftest.$ac_ext <<_ACEOF |
| 20074 | /* end confdefs.h. */ |
| 20075 | #include <readline.h> |
| 20076 | _ACEOF |
| 20077 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20078 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 20079 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20080 | grep -v '^ *+' conftest.er1 >conftest.err |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20081 | rm -f conftest.er1 |
| 20082 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20084 | (exit $ac_status); } >/dev/null; then |
| 20085 | if test -s conftest.err; then |
| 20086 | ac_cpp_err=$ac_c_preproc_warn_flag |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20087 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20088 | else |
| 20089 | ac_cpp_err= |
| 20090 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20091 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20092 | ac_cpp_err=yes |
| 20093 | fi |
| 20094 | if test -z "$ac_cpp_err"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20095 | ac_header_preproc=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20096 | else |
| 20097 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20098 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20099 | |
| 20100 | ac_header_preproc=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20101 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20102 | rm -f conftest.err conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20103 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 20104 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 20105 | |
| 20106 | # So? What about this header? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20107 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 20108 | yes:no: ) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20109 | { echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 20110 | echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20111 | { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5 |
| 20112 | echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;} |
| 20113 | ac_header_preproc=yes |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20114 | ;; |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20115 | no:yes:* ) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20116 | { echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5 |
| 20117 | echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;} |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20118 | { echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5 |
| 20119 | echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;} |
| 20120 | { echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5 |
| 20121 | echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;} |
| 20122 | { echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 20123 | echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20124 | { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5 |
| 20125 | echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;} |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20126 | { echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5 |
| 20127 | echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20128 | ( |
| 20129 | cat <<\_ASBOX |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20130 | ## ------------------------------------------ ## |
| 20131 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 20132 | ## ------------------------------------------ ## |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20133 | _ASBOX |
| 20134 | ) | |
| 20135 | sed "s/^/$as_me: WARNING: /" >&2 |
| 20136 | ;; |
| 20137 | esac |
| 20138 | echo "$as_me:$LINENO: checking for readline.h" >&5 |
| 20139 | echo $ECHO_N "checking for readline.h... $ECHO_C" >&6 |
| 20140 | if test "${ac_cv_header_readline_h+set}" = set; then |
| 20141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20142 | else |
| 20143 | ac_cv_header_readline_h=$ac_header_preproc |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20144 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20145 | echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20146 | echo "${ECHO_T}$ac_cv_header_readline_h" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20147 | |
| 20148 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20149 | if test $ac_cv_header_readline_h = yes; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20150 | found=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20151 | fi |
| 20152 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20153 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20154 | fi |
| 20155 | if test "$found" = "no"; then |
dougcurrie | 6194a5f | 2003-12-19 20:09:51 +0000 | [diff] [blame] | 20156 | for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20157 | 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] | 20158 | echo "$as_me:$LINENO: checking for $dir/include/readline.h" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20159 | echo $ECHO_N "checking for $dir/include/readline.h... $ECHO_C" >&6 |
| 20160 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
| 20161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 20162 | else |
| 20163 | test "$cross_compiling" = yes && |
| 20164 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
| 20165 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
| 20166 | { (exit 1); exit 1; }; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20167 | if test -r "$dir/include/readline.h"; then |
| 20168 | eval "$as_ac_File=yes" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20169 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20170 | eval "$as_ac_File=no" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20171 | fi |
| 20172 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20173 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20174 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
| 20175 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20176 | found=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20177 | fi |
| 20178 | |
| 20179 | if test "$found" = "yes"; then |
| 20180 | TARGET_READLINE_INC="-I$dir/include" |
| 20181 | break |
| 20182 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20183 | 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] | 20184 | echo "$as_me:$LINENO: checking for $dir/include/readline/readline.h" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20185 | echo $ECHO_N "checking for $dir/include/readline/readline.h... $ECHO_C" >&6 |
| 20186 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
| 20187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 20188 | else |
| 20189 | test "$cross_compiling" = yes && |
| 20190 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
| 20191 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
| 20192 | { (exit 1); exit 1; }; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20193 | if test -r "$dir/include/readline/readline.h"; then |
| 20194 | eval "$as_ac_File=yes" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20195 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20196 | eval "$as_ac_File=no" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20197 | fi |
| 20198 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20199 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20200 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
| 20201 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20202 | found=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20203 | fi |
| 20204 | |
| 20205 | if test "$found" = "yes"; then |
| 20206 | TARGET_READLINE_INC="-I$dir/include/readline" |
| 20207 | break |
| 20208 | fi |
| 20209 | done |
| 20210 | fi |
| 20211 | if test "$found" = "yes"; then |
drh | 82ad383 | 2000-07-31 13:38:24 +0000 | [diff] [blame] | 20212 | if test "$TARGET_READLINE_LIBS" = ""; then |
| 20213 | TARGET_HAVE_READLINE=0 |
| 20214 | else |
| 20215 | TARGET_HAVE_READLINE=1 |
| 20216 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20217 | else |
| 20218 | TARGET_HAVE_READLINE=0 |
| 20219 | fi |
| 20220 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20221 | |
| 20222 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20223 | ######### |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20224 | # Figure out whether or not we have a "usleep()" function. |
| 20225 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20226 | echo "$as_me:$LINENO: checking for usleep" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20227 | echo $ECHO_N "checking for usleep... $ECHO_C" >&6 |
| 20228 | if test "${ac_cv_func_usleep+set}" = set; then |
| 20229 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20230 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20231 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20232 | /* confdefs.h. */ |
| 20233 | _ACEOF |
| 20234 | cat confdefs.h >>conftest.$ac_ext |
| 20235 | cat >>conftest.$ac_ext <<_ACEOF |
| 20236 | /* end confdefs.h. */ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20237 | /* Define usleep to an innocuous variant, in case <limits.h> declares usleep. |
| 20238 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20239 | #define usleep innocuous_usleep |
| 20240 | |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20241 | /* System header to define __stub macros and hopefully few prototypes, |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20242 | which can conflict with char usleep (); below. |
| 20243 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20244 | <limits.h> exists even on freestanding compilers. */ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20245 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20246 | #ifdef __STDC__ |
| 20247 | # include <limits.h> |
| 20248 | #else |
| 20249 | # include <assert.h> |
| 20250 | #endif |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20251 | |
| 20252 | #undef usleep |
| 20253 | |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20254 | /* Override any gcc2 internal prototype to avoid an error. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20255 | #ifdef __cplusplus |
| 20256 | extern "C" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20257 | { |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20258 | #endif |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20259 | /* We use char because int might match the return type of a gcc2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20260 | builtin and then its argument prototype would still apply. */ |
| 20261 | char usleep (); |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20262 | /* The GNU C library defines this for functions which it implements |
| 20263 | to always fail with ENOSYS. Some functions are actually named |
| 20264 | something starting with __ and the normal name is an alias. */ |
| 20265 | #if defined (__stub_usleep) || defined (__stub___usleep) |
| 20266 | choke me |
| 20267 | #else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20268 | char (*f) () = usleep; |
| 20269 | #endif |
| 20270 | #ifdef __cplusplus |
| 20271 | } |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20272 | #endif |
| 20273 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20274 | int |
| 20275 | main () |
| 20276 | { |
| 20277 | return f != usleep; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20278 | ; |
| 20279 | return 0; |
| 20280 | } |
| 20281 | _ACEOF |
| 20282 | rm -f conftest.$ac_objext conftest$ac_exeext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20283 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20284 | (eval $ac_link) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20285 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20286 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20287 | rm -f conftest.er1 |
| 20288 | cat conftest.err >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20290 | (exit $ac_status); } && |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 20291 | { ac_try='test -z "$ac_c_werror_flag" |
| 20292 | || test ! -s conftest.err' |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20294 | (eval $ac_try) 2>&5 |
| 20295 | ac_status=$? |
| 20296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20297 | (exit $ac_status); }; } && |
| 20298 | { ac_try='test -s conftest$ac_exeext' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20300 | (eval $ac_try) 2>&5 |
| 20301 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20303 | (exit $ac_status); }; }; then |
| 20304 | ac_cv_func_usleep=yes |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20305 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20306 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20307 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20308 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20309 | ac_cv_func_usleep=no |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20310 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20311 | rm -f conftest.err conftest.$ac_objext \ |
| 20312 | conftest$ac_exeext conftest.$ac_ext |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20313 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20314 | echo "$as_me:$LINENO: result: $ac_cv_func_usleep" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20315 | echo "${ECHO_T}$ac_cv_func_usleep" >&6 |
| 20316 | if test $ac_cv_func_usleep = yes; then |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20317 | TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_USLEEP=1" |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20318 | fi |
| 20319 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20320 | |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 20321 | ######### |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20322 | # Generate the output files. |
| 20323 | # |
dougcurrie | 12b3444 | 2004-07-19 03:24:59 +0000 | [diff] [blame] | 20324 | ac_config_files="$ac_config_files Makefile sqlite3.pc" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20325 | cat >confcache <<\_ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20326 | # This file is a shell script that caches the results of configure |
| 20327 | # tests run on this system so they can be shared between configure |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20328 | # scripts and configure runs, see configure's option --config-cache. |
| 20329 | # It is not useful on other systems. If it contains results you don't |
| 20330 | # want to keep, you may remove or edit it. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20331 | # |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20332 | # config.status only pays attention to the cache file if you give it |
| 20333 | # the --recheck option to rerun configure. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20334 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20335 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20336 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 20337 | # following values. |
| 20338 | |
| 20339 | _ACEOF |
| 20340 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20341 | # The following way of writing the cache mishandles newlines in values, |
| 20342 | # but we know of no workaround that is simple, portable, and efficient. |
| 20343 | # So, don't put newlines in cache variables' values. |
| 20344 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 20345 | # 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] | 20346 | { |
| 20347 | (set) 2>&1 | |
| 20348 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 20349 | *ac_space=\ *) |
| 20350 | # `set' does not quote correctly, so add quotes (double-quote |
| 20351 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 20352 | sed -n \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20353 | "s/'/'\\\\''/g; |
| 20354 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20355 | ;; |
| 20356 | *) |
| 20357 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 20358 | sed -n \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20359 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20360 | ;; |
| 20361 | esac; |
| 20362 | } | |
| 20363 | sed ' |
| 20364 | t clear |
| 20365 | : clear |
| 20366 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 20367 | t end |
| 20368 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 20369 | : end' >>confcache |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20370 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20371 | if test -w $cache_file; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20372 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 20373 | cat confcache >$cache_file |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20374 | else |
| 20375 | echo "not updating unwritable cache $cache_file" |
| 20376 | fi |
| 20377 | fi |
| 20378 | rm -f confcache |
| 20379 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20380 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 20381 | # Let make expand exec_prefix. |
| 20382 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 20383 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20384 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 20385 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 20386 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 20387 | # (actually we leave an empty line to preserve line numbers). |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20388 | if test "x$srcdir" = x.; then |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20389 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20390 | s/:*\$(srcdir):*/:/; |
| 20391 | s/:*\${srcdir}:*/:/; |
| 20392 | s/:*@srcdir@:*/:/; |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20393 | s/^\([^=]*=[ ]*\):*/\1/; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20394 | s/:*$//; |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20395 | s/^[^=]*=[ ]*$//; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20396 | }' |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20397 | fi |
| 20398 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20399 | # Transform confdefs.h into DEFS. |
| 20400 | # Protect against shell expansion while executing Makefile rules. |
| 20401 | # Protect against Makefile macro expansion. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20402 | # |
| 20403 | # If the first sed substitution is executed (which looks for macros that |
| 20404 | # take arguments), then we branch to the quote section. Otherwise, |
| 20405 | # look for a macro that doesn't take arguments. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20406 | cat >confdef2opt.sed <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20407 | t clear |
| 20408 | : clear |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20409 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20410 | t quote |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20411 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20412 | t quote |
| 20413 | d |
| 20414 | : quote |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20415 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20416 | s,\[,\\&,g |
| 20417 | s,\],\\&,g |
| 20418 | s,\$,$$,g |
| 20419 | p |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20420 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20421 | # We use echo to avoid assuming a particular line-breaking character. |
| 20422 | # The extra dot is to prevent the shell from consuming trailing |
| 20423 | # line-breaks from the sub-command output. A line-break within |
| 20424 | # single-quotes doesn't work because, if this script is created in a |
| 20425 | # platform that uses two characters for line-breaks (e.g., DOS), tr |
| 20426 | # would break. |
| 20427 | ac_LF_and_DOT=`echo; echo .` |
| 20428 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` |
| 20429 | rm -f confdef2opt.sed |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20430 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20431 | |
| 20432 | ac_libobjs= |
| 20433 | ac_ltlibobjs= |
| 20434 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 20435 | # 1. Remove the extension, and $U if already installed. |
| 20436 | ac_i=`echo "$ac_i" | |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20437 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20438 | # 2. Add them. |
| 20439 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 20440 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 20441 | done |
| 20442 | LIBOBJS=$ac_libobjs |
| 20443 | |
| 20444 | LTLIBOBJS=$ac_ltlibobjs |
| 20445 | |
| 20446 | |
| 20447 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20448 | : ${CONFIG_STATUS=./config.status} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20449 | ac_clean_files_save=$ac_clean_files |
| 20450 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20451 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20452 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 20453 | cat >$CONFIG_STATUS <<_ACEOF |
| 20454 | #! $SHELL |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20455 | # Generated by $as_me. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20456 | # Run this file to recreate the current configuration. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20457 | # Compiler output produced by configure, useful for debugging |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20458 | # configure, is in config.log if it exists. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20459 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20460 | debug=false |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20461 | ac_cs_recheck=false |
| 20462 | ac_cs_silent=false |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20463 | SHELL=\${CONFIG_SHELL-$SHELL} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20464 | _ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20465 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20466 | cat >>$CONFIG_STATUS <<\_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20467 | ## --------------------- ## |
| 20468 | ## M4sh Initialization. ## |
| 20469 | ## --------------------- ## |
| 20470 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20471 | # Be Bourne compatible |
| 20472 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 20473 | emulate sh |
| 20474 | NULLCMD=: |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20475 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 20476 | # is contrary to our usage. Disable this feature. |
| 20477 | alias -g '${1+"$@"}'='"$@"' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20478 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 20479 | set -o posix |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20480 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20481 | DUALCASE=1; export DUALCASE # for MKS sh |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20482 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20483 | # Support unset when possible. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20484 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20485 | as_unset=unset |
| 20486 | else |
| 20487 | as_unset=false |
| 20488 | fi |
| 20489 | |
| 20490 | |
| 20491 | # Work around bugs in pre-3.0 UWIN ksh. |
| 20492 | $as_unset ENV MAIL MAILPATH |
| 20493 | PS1='$ ' |
| 20494 | PS2='> ' |
| 20495 | PS4='+ ' |
| 20496 | |
| 20497 | # NLS nuisances. |
| 20498 | for as_var in \ |
| 20499 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 20500 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 20501 | LC_TELEPHONE LC_TIME |
| 20502 | do |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20503 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20504 | eval $as_var=C; export $as_var |
| 20505 | else |
| 20506 | $as_unset $as_var |
| 20507 | fi |
| 20508 | done |
| 20509 | |
| 20510 | # Required to use basename. |
| 20511 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 20512 | as_expr=expr |
| 20513 | else |
| 20514 | as_expr=false |
| 20515 | fi |
| 20516 | |
| 20517 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 20518 | as_basename=basename |
| 20519 | else |
| 20520 | as_basename=false |
| 20521 | fi |
| 20522 | |
| 20523 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20524 | # Name of the executable. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20525 | as_me=`$as_basename "$0" || |
| 20526 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 20527 | X"$0" : 'X\(//\)$' \| \ |
| 20528 | X"$0" : 'X\(/\)$' \| \ |
| 20529 | . : '\(.\)' 2>/dev/null || |
| 20530 | echo X/"$0" | |
| 20531 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 20532 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 20533 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 20534 | s/.*/./; q'` |
| 20535 | |
| 20536 | |
| 20537 | # PATH needs CR, and LINENO needs CR and PATH. |
| 20538 | # Avoid depending upon Character Ranges. |
| 20539 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 20540 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 20541 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 20542 | as_cr_digits='0123456789' |
| 20543 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 20544 | |
| 20545 | # The user is always right. |
| 20546 | if test "${PATH_SEPARATOR+set}" != set; then |
| 20547 | echo "#! /bin/sh" >conf$$.sh |
| 20548 | echo "exit 0" >>conf$$.sh |
| 20549 | chmod +x conf$$.sh |
| 20550 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 20551 | PATH_SEPARATOR=';' |
| 20552 | else |
| 20553 | PATH_SEPARATOR=: |
| 20554 | fi |
| 20555 | rm -f conf$$.sh |
| 20556 | fi |
| 20557 | |
| 20558 | |
| 20559 | as_lineno_1=$LINENO |
| 20560 | as_lineno_2=$LINENO |
| 20561 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 20562 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 20563 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 20564 | # Find who we are. Look in the path if we contain no path at all |
| 20565 | # relative or not. |
| 20566 | case $0 in |
| 20567 | *[\\/]* ) as_myself=$0 ;; |
| 20568 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20569 | for as_dir in $PATH |
| 20570 | do |
| 20571 | IFS=$as_save_IFS |
| 20572 | test -z "$as_dir" && as_dir=. |
| 20573 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 20574 | done |
| 20575 | |
| 20576 | ;; |
| 20577 | esac |
| 20578 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 20579 | # in which case we are not to be found in the path. |
| 20580 | if test "x$as_myself" = x; then |
| 20581 | as_myself=$0 |
| 20582 | fi |
| 20583 | if test ! -f "$as_myself"; then |
| 20584 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 20585 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 20586 | { (exit 1); exit 1; }; } |
| 20587 | fi |
| 20588 | case $CONFIG_SHELL in |
| 20589 | '') |
| 20590 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20591 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 20592 | do |
| 20593 | IFS=$as_save_IFS |
| 20594 | test -z "$as_dir" && as_dir=. |
| 20595 | for as_base in sh bash ksh sh5; do |
| 20596 | case $as_dir in |
| 20597 | /*) |
| 20598 | if ("$as_dir/$as_base" -c ' |
| 20599 | as_lineno_1=$LINENO |
| 20600 | as_lineno_2=$LINENO |
| 20601 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 20602 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 20603 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 20604 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 20605 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 20606 | CONFIG_SHELL=$as_dir/$as_base |
| 20607 | export CONFIG_SHELL |
| 20608 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 20609 | fi;; |
| 20610 | esac |
| 20611 | done |
| 20612 | done |
| 20613 | ;; |
| 20614 | esac |
| 20615 | |
| 20616 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 20617 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 20618 | # line-number line before each line; the second 'sed' does the real |
| 20619 | # work. The second script uses 'N' to pair each line-number line |
| 20620 | # with the numbered line, and appends trailing '-' during |
| 20621 | # substitution so that $LINENO is not a special case at line end. |
| 20622 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 20623 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 20624 | sed '=' <$as_myself | |
| 20625 | sed ' |
| 20626 | N |
| 20627 | s,$,-, |
| 20628 | : loop |
| 20629 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 20630 | t loop |
| 20631 | s,-$,, |
| 20632 | s,^['$as_cr_digits']*\n,, |
| 20633 | ' >$as_me.lineno && |
| 20634 | chmod +x $as_me.lineno || |
| 20635 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 20636 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 20637 | { (exit 1); exit 1; }; } |
| 20638 | |
| 20639 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 20640 | # (the dirname of $[0] is not the place where we might find the |
| 20641 | # original and so on. Autoconf is especially sensible to this). |
| 20642 | . ./$as_me.lineno |
| 20643 | # Exit status is that of the last command. |
| 20644 | exit |
| 20645 | } |
| 20646 | |
| 20647 | |
| 20648 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 20649 | *c*,-n*) ECHO_N= ECHO_C=' |
| 20650 | ' ECHO_T=' ' ;; |
| 20651 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 20652 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 20653 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20654 | |
| 20655 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 20656 | as_expr=expr |
| 20657 | else |
| 20658 | as_expr=false |
| 20659 | fi |
| 20660 | |
| 20661 | rm -f conf$$ conf$$.exe conf$$.file |
| 20662 | echo >conf$$.file |
| 20663 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 20664 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 20665 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 20666 | if test -f conf$$.exe; then |
| 20667 | # Don't use ln at all; we don't have any links |
| 20668 | as_ln_s='cp -p' |
| 20669 | else |
| 20670 | as_ln_s='ln -s' |
| 20671 | fi |
| 20672 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 20673 | as_ln_s=ln |
| 20674 | else |
| 20675 | as_ln_s='cp -p' |
| 20676 | fi |
| 20677 | rm -f conf$$ conf$$.exe conf$$.file |
| 20678 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20679 | if mkdir -p . 2>/dev/null; then |
| 20680 | as_mkdir_p=: |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20681 | else |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20682 | test -d ./-p && rmdir ./-p |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20683 | as_mkdir_p=false |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20684 | fi |
| 20685 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20686 | as_executable_p="test -f" |
| 20687 | |
| 20688 | # Sed expression to map a string onto a valid CPP name. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20689 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20690 | |
| 20691 | # Sed expression to map a string onto a valid variable name. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20692 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20693 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20694 | |
| 20695 | # IFS |
| 20696 | # We need space, tab and new line, in precisely that order. |
| 20697 | as_nl=' |
| 20698 | ' |
| 20699 | IFS=" $as_nl" |
| 20700 | |
| 20701 | # CDPATH. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20702 | $as_unset CDPATH |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20703 | |
| 20704 | exec 6>&1 |
| 20705 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20706 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 20707 | # report actual input values of CONFIG_FILES etc. instead of their |
| 20708 | # values after options handling. Logging --version etc. is OK. |
| 20709 | exec 5>>config.log |
| 20710 | { |
| 20711 | echo |
| 20712 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 20713 | ## Running $as_me. ## |
| 20714 | _ASBOX |
| 20715 | } >&5 |
| 20716 | cat >&5 <<_CSEOF |
| 20717 | |
| 20718 | This file was extended by $as_me, which was |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20719 | generated by GNU Autoconf 2.59. Invocation command line was |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20720 | |
| 20721 | CONFIG_FILES = $CONFIG_FILES |
| 20722 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 20723 | CONFIG_LINKS = $CONFIG_LINKS |
| 20724 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 20725 | $ $0 $@ |
| 20726 | |
| 20727 | _CSEOF |
| 20728 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 20729 | echo >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20730 | _ACEOF |
| 20731 | |
| 20732 | # Files that config.status was made for. |
| 20733 | if test -n "$ac_config_files"; then |
| 20734 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 20735 | fi |
| 20736 | |
| 20737 | if test -n "$ac_config_headers"; then |
| 20738 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 20739 | fi |
| 20740 | |
| 20741 | if test -n "$ac_config_links"; then |
| 20742 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 20743 | fi |
| 20744 | |
| 20745 | if test -n "$ac_config_commands"; then |
| 20746 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 20747 | fi |
| 20748 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20749 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20750 | |
| 20751 | ac_cs_usage="\ |
| 20752 | \`$as_me' instantiates files from templates according to the |
| 20753 | current configuration. |
| 20754 | |
| 20755 | Usage: $0 [OPTIONS] [FILE]... |
| 20756 | |
| 20757 | -h, --help print this help, then exit |
| 20758 | -V, --version print version number, then exit |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20759 | -q, --quiet do not print progress messages |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20760 | -d, --debug don't remove temporary files |
| 20761 | --recheck update $as_me by reconfiguring in the same conditions |
| 20762 | --file=FILE[:TEMPLATE] |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20763 | instantiate the configuration file FILE |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20764 | |
| 20765 | Configuration files: |
| 20766 | $config_files |
| 20767 | |
| 20768 | Report bugs to <bug-autoconf@gnu.org>." |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20769 | _ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20770 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20771 | cat >>$CONFIG_STATUS <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20772 | ac_cs_version="\\ |
| 20773 | config.status |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20774 | configured by $0, generated by GNU Autoconf 2.59, |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20775 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20776 | |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 20777 | Copyright (C) 2003 Free Software Foundation, Inc. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20778 | This config.status script is free software; the Free Software Foundation |
| 20779 | gives unlimited permission to copy, distribute and modify it." |
| 20780 | srcdir=$srcdir |
| 20781 | INSTALL="$INSTALL" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20782 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20783 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20784 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20785 | # If no file are specified by the user, then we need to provide default |
| 20786 | # value. By we need to know if files were specified by the user. |
| 20787 | ac_need_defaults=: |
| 20788 | while test $# != 0 |
| 20789 | do |
| 20790 | case $1 in |
| 20791 | --*=*) |
| 20792 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 20793 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20794 | ac_shift=: |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20795 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20796 | -*) |
| 20797 | ac_option=$1 |
| 20798 | ac_optarg=$2 |
| 20799 | ac_shift=shift |
| 20800 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20801 | *) # This is not an option, so the user has probably given explicit |
| 20802 | # arguments. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20803 | ac_option=$1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20804 | ac_need_defaults=false;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20805 | esac |
| 20806 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20807 | case $ac_option in |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20808 | # Handling of the options. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20809 | _ACEOF |
| 20810 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20811 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20812 | ac_cs_recheck=: ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20813 | --version | --vers* | -V ) |
| 20814 | echo "$ac_cs_version"; exit 0 ;; |
| 20815 | --he | --h) |
| 20816 | # Conflict between --help and --header |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20817 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20818 | Try \`$0 --help' for more information." >&5 |
| 20819 | echo "$as_me: error: ambiguous option: $1 |
| 20820 | Try \`$0 --help' for more information." >&2;} |
| 20821 | { (exit 1); exit 1; }; };; |
| 20822 | --help | --hel | -h ) |
| 20823 | echo "$ac_cs_usage"; exit 0 ;; |
| 20824 | --debug | --d* | -d ) |
| 20825 | debug=: ;; |
| 20826 | --file | --fil | --fi | --f ) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20827 | $ac_shift |
| 20828 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20829 | ac_need_defaults=false;; |
| 20830 | --header | --heade | --head | --hea ) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20831 | $ac_shift |
| 20832 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20833 | ac_need_defaults=false;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20834 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 20835 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 20836 | ac_cs_silent=: ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 20837 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20838 | # This is an error. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20839 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20840 | Try \`$0 --help' for more information." >&5 |
| 20841 | echo "$as_me: error: unrecognized option: $1 |
| 20842 | Try \`$0 --help' for more information." >&2;} |
| 20843 | { (exit 1); exit 1; }; } ;; |
| 20844 | |
| 20845 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 20846 | |
| 20847 | esac |
| 20848 | shift |
| 20849 | done |
| 20850 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20851 | ac_configure_extra_args= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20852 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20853 | if $ac_cs_silent; then |
| 20854 | exec 6>/dev/null |
| 20855 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 20856 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20857 | |
| 20858 | _ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20859 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20860 | if \$ac_cs_recheck; then |
| 20861 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 20862 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 20863 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20864 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20865 | _ACEOF |
| 20866 | |
| 20867 | |
| 20868 | |
| 20869 | |
| 20870 | |
| 20871 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20872 | for ac_config_target in $ac_config_targets |
| 20873 | do |
| 20874 | case "$ac_config_target" in |
| 20875 | # Handling of arguments. |
dougcurrie | 001c0bd | 2004-06-21 21:44:49 +0000 | [diff] [blame] | 20876 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
dougcurrie | 12b3444 | 2004-07-19 03:24:59 +0000 | [diff] [blame] | 20877 | "sqlite3.pc" ) CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20878 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20879 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 20880 | { (exit 1); exit 1; }; };; |
| 20881 | esac |
| 20882 | done |
| 20883 | |
| 20884 | # If the user did not use the arguments to specify the items to instantiate, |
| 20885 | # then the envvar interface is used. Set only those that are not. |
| 20886 | # We use the long form for the default assignment because of an extremely |
| 20887 | # bizarre bug on SunOS 4.1.3. |
| 20888 | if $ac_need_defaults; then |
| 20889 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 20890 | fi |
| 20891 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20892 | # Have a temporary directory for convenience. Make it in the build tree |
| 20893 | # simply because there is no reason to put it here, and in addition, |
| 20894 | # creating and moving files from /tmp can sometimes cause problems. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20895 | # Create a temporary directory, and hook for its removal unless debugging. |
| 20896 | $debug || |
| 20897 | { |
| 20898 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 20899 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 20900 | } |
| 20901 | |
| 20902 | # Create a (secure) tmp directory for tmp files. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20903 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20904 | { |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20905 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20906 | test -n "$tmp" && test -d "$tmp" |
| 20907 | } || |
| 20908 | { |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20909 | tmp=./confstat$$-$RANDOM |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20910 | (umask 077 && mkdir $tmp) |
| 20911 | } || |
| 20912 | { |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20913 | echo "$me: cannot create a temporary directory in ." >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20914 | { (exit 1); exit 1; } |
| 20915 | } |
| 20916 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20917 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20918 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20919 | cat >>$CONFIG_STATUS <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20920 | |
| 20921 | # |
| 20922 | # CONFIG_FILES section. |
| 20923 | # |
| 20924 | |
| 20925 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 20926 | # This happens for instance when ./config.status config.h |
| 20927 | if test -n "\$CONFIG_FILES"; then |
| 20928 | # Protect against being on the right side of a sed subst in config.status. |
| 20929 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 20930 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 20931 | s,@SHELL@,$SHELL,;t t |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20932 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 20933 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 20934 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 20935 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 20936 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 20937 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20938 | s,@exec_prefix@,$exec_prefix,;t t |
| 20939 | s,@prefix@,$prefix,;t t |
| 20940 | s,@program_transform_name@,$program_transform_name,;t t |
| 20941 | s,@bindir@,$bindir,;t t |
| 20942 | s,@sbindir@,$sbindir,;t t |
| 20943 | s,@libexecdir@,$libexecdir,;t t |
| 20944 | s,@datadir@,$datadir,;t t |
| 20945 | s,@sysconfdir@,$sysconfdir,;t t |
| 20946 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 20947 | s,@localstatedir@,$localstatedir,;t t |
| 20948 | s,@libdir@,$libdir,;t t |
| 20949 | s,@includedir@,$includedir,;t t |
| 20950 | s,@oldincludedir@,$oldincludedir,;t t |
| 20951 | s,@infodir@,$infodir,;t t |
| 20952 | s,@mandir@,$mandir,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20953 | s,@build_alias@,$build_alias,;t t |
| 20954 | s,@host_alias@,$host_alias,;t t |
| 20955 | s,@target_alias@,$target_alias,;t t |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20956 | s,@DEFS@,$DEFS,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20957 | s,@ECHO_C@,$ECHO_C,;t t |
| 20958 | s,@ECHO_N@,$ECHO_N,;t t |
| 20959 | s,@ECHO_T@,$ECHO_T,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20960 | s,@LIBS@,$LIBS,;t t |
| 20961 | s,@build@,$build,;t t |
| 20962 | s,@build_cpu@,$build_cpu,;t t |
| 20963 | s,@build_vendor@,$build_vendor,;t t |
| 20964 | s,@build_os@,$build_os,;t t |
| 20965 | s,@host@,$host,;t t |
| 20966 | s,@host_cpu@,$host_cpu,;t t |
| 20967 | s,@host_vendor@,$host_vendor,;t t |
| 20968 | s,@host_os@,$host_os,;t t |
| 20969 | s,@CC@,$CC,;t t |
| 20970 | s,@CFLAGS@,$CFLAGS,;t t |
| 20971 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 20972 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 20973 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 20974 | s,@EXEEXT@,$EXEEXT,;t t |
| 20975 | s,@OBJEXT@,$OBJEXT,;t t |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 20976 | s,@EGREP@,$EGREP,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20977 | s,@LN_S@,$LN_S,;t t |
| 20978 | s,@ECHO@,$ECHO,;t t |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 20979 | s,@AR@,$AR,;t t |
| 20980 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20981 | s,@RANLIB@,$RANLIB,;t t |
| 20982 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 20983 | s,@STRIP@,$STRIP,;t t |
| 20984 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 20985 | s,@CPP@,$CPP,;t t |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 20986 | s,@CXX@,$CXX,;t t |
| 20987 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 20988 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
| 20989 | s,@CXXCPP@,$CXXCPP,;t t |
| 20990 | s,@F77@,$F77,;t t |
| 20991 | s,@FFLAGS@,$FFLAGS,;t t |
| 20992 | s,@ac_ct_F77@,$ac_ct_F77,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 20993 | s,@LIBTOOL@,$LIBTOOL,;t t |
| 20994 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 20995 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 20996 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 20997 | s,@program_prefix@,$program_prefix,;t t |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 20998 | s,@VERSION@,$VERSION,;t t |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 20999 | s,@RELEASE@,$RELEASE,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21000 | s,@BUILD_CC@,$BUILD_CC,;t t |
| 21001 | s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t |
| 21002 | s,@BUILD_LIBS@,$BUILD_LIBS,;t t |
| 21003 | s,@TARGET_CC@,$TARGET_CC,;t t |
| 21004 | s,@TARGET_CFLAGS@,$TARGET_CFLAGS,;t t |
| 21005 | s,@TARGET_LINK@,$TARGET_LINK,;t t |
| 21006 | s,@TARGET_LFLAGS@,$TARGET_LFLAGS,;t t |
| 21007 | s,@TARGET_RANLIB@,$TARGET_RANLIB,;t t |
| 21008 | s,@TARGET_AR@,$TARGET_AR,;t t |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 21009 | s,@THREADSAFE@,$THREADSAFE,;t t |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 21010 | s,@TARGET_THREAD_LIB@,$TARGET_THREAD_LIB,;t t |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 21011 | s,@ALLOWRELEASE@,$ALLOWRELEASE,;t t |
paul | 2dc96f9 | 2003-04-20 11:46:34 +0000 | [diff] [blame] | 21012 | s,@TEMP_STORE@,$TEMP_STORE,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21013 | s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t |
| 21014 | s,@OS_UNIX@,$OS_UNIX,;t t |
| 21015 | s,@OS_WIN@,$OS_WIN,;t t |
| 21016 | s,@TARGET_EXEEXT@,$TARGET_EXEEXT,;t t |
| 21017 | s,@TARGET_LIBS@,$TARGET_LIBS,;t t |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 21018 | s,@TCL_VERSION@,$TCL_VERSION,;t t |
| 21019 | s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t |
| 21020 | s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t |
| 21021 | s,@TCL_LIBS@,$TCL_LIBS,;t t |
| 21022 | s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t |
| 21023 | s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t |
| 21024 | s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t |
| 21025 | s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t |
| 21026 | s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t |
| 21027 | s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t |
| 21028 | s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t |
| 21029 | s,@HAVE_TCL@,$HAVE_TCL,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21030 | s,@TARGET_READLINE_LIBS@,$TARGET_READLINE_LIBS,;t t |
| 21031 | s,@TARGET_READLINE_INC@,$TARGET_READLINE_INC,;t t |
| 21032 | s,@TARGET_HAVE_READLINE@,$TARGET_HAVE_READLINE,;t t |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21033 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 21034 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21035 | CEOF |
| 21036 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21037 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21038 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21039 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21040 | # Split the substitutions into bite-sized pieces for seds with |
| 21041 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 21042 | ac_max_sed_lines=48 |
| 21043 | ac_sed_frag=1 # Number of current file. |
| 21044 | ac_beg=1 # First line for current file. |
| 21045 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 21046 | ac_more_lines=: |
| 21047 | ac_sed_cmds= |
| 21048 | while $ac_more_lines; do |
| 21049 | if test $ac_beg -gt 1; then |
| 21050 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 21051 | else |
| 21052 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 21053 | fi |
| 21054 | if test ! -s $tmp/subs.frag; then |
| 21055 | ac_more_lines=false |
| 21056 | else |
| 21057 | # The purpose of the label and of the branching condition is to |
| 21058 | # speed up the sed processing (if there are no `@' at all, there |
| 21059 | # is no need to browse any of the substitutions). |
| 21060 | # These are the two extra sed commands mentioned above. |
| 21061 | (echo ':t |
| 21062 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 21063 | if test -z "$ac_sed_cmds"; then |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 21064 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21065 | else |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 21066 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21067 | fi |
| 21068 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 21069 | ac_beg=$ac_end |
| 21070 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 21071 | fi |
| 21072 | done |
| 21073 | if test -z "$ac_sed_cmds"; then |
| 21074 | ac_sed_cmds=cat |
| 21075 | fi |
| 21076 | fi # test -n "$CONFIG_FILES" |
| 21077 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21078 | _ACEOF |
| 21079 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21080 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 21081 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 21082 | case $ac_file in |
| 21083 | - | *:- | *:-:* ) # input from stdin |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 21084 | cat >$tmp/stdin |
| 21085 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 21086 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21087 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 21088 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21089 | * ) ac_file_in=$ac_file.in ;; |
| 21090 | esac |
| 21091 | |
| 21092 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21093 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 21094 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 21095 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 21096 | X"$ac_file" : 'X\(//\)$' \| \ |
| 21097 | X"$ac_file" : 'X\(/\)' \| \ |
| 21098 | . : '\(.\)' 2>/dev/null || |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21099 | echo X"$ac_file" | |
| 21100 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21101 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21102 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21103 | /^X\(\/\).*/{ s//\1/; q; } |
| 21104 | s/.*/./; q'` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21105 | { if $as_mkdir_p; then |
| 21106 | mkdir -p "$ac_dir" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 21107 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21108 | as_dir="$ac_dir" |
| 21109 | as_dirs= |
| 21110 | while test ! -d "$as_dir"; do |
| 21111 | as_dirs="$as_dir $as_dirs" |
| 21112 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 21113 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 21114 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21115 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21116 | X"$as_dir" : 'X\(/\)' \| \ |
| 21117 | . : '\(.\)' 2>/dev/null || |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21118 | echo X"$as_dir" | |
| 21119 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21120 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21121 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21122 | /^X\(\/\).*/{ s//\1/; q; } |
| 21123 | s/.*/./; q'` |
| 21124 | done |
| 21125 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 21126 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 21127 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 21128 | { (exit 1); exit 1; }; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 21129 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21130 | ac_builddir=. |
| 21131 | |
| 21132 | if test "$ac_dir" != .; then |
| 21133 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 21134 | # A "../" for each directory in $ac_dir_suffix. |
| 21135 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 21136 | else |
| 21137 | ac_dir_suffix= ac_top_builddir= |
| 21138 | fi |
| 21139 | |
| 21140 | case $srcdir in |
| 21141 | .) # No --srcdir option. We are building in place. |
| 21142 | ac_srcdir=. |
| 21143 | if test -z "$ac_top_builddir"; then |
| 21144 | ac_top_srcdir=. |
| 21145 | else |
| 21146 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 21147 | fi ;; |
| 21148 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 21149 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 21150 | ac_top_srcdir=$srcdir ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 21151 | *) # Relative path. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21152 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 21153 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 21154 | esac |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 21155 | |
| 21156 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 21157 | # the directories may not exist. |
| 21158 | case `pwd` in |
| 21159 | .) ac_abs_builddir="$ac_dir";; |
| 21160 | *) |
| 21161 | case "$ac_dir" in |
| 21162 | .) ac_abs_builddir=`pwd`;; |
| 21163 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 21164 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 21165 | esac;; |
| 21166 | esac |
| 21167 | case $ac_abs_builddir in |
| 21168 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 21169 | *) |
| 21170 | case ${ac_top_builddir}. in |
| 21171 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 21172 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 21173 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 21174 | esac;; |
| 21175 | esac |
| 21176 | case $ac_abs_builddir in |
| 21177 | .) ac_abs_srcdir=$ac_srcdir;; |
| 21178 | *) |
| 21179 | case $ac_srcdir in |
| 21180 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 21181 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 21182 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 21183 | esac;; |
| 21184 | esac |
| 21185 | case $ac_abs_builddir in |
| 21186 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 21187 | *) |
| 21188 | case $ac_top_srcdir in |
| 21189 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 21190 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 21191 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 21192 | esac;; |
| 21193 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21194 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 21195 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21196 | case $INSTALL in |
| 21197 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21198 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 21199 | esac |
| 21200 | |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 21201 | if test x"$ac_file" != x-; then |
| 21202 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 21203 | echo "$as_me: creating $ac_file" >&6;} |
| 21204 | rm -f "$ac_file" |
| 21205 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21206 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 21207 | # use $as_me), people would be surprised to read: |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21208 | # /* config.h. Generated by config.status. */ |
| 21209 | if test x"$ac_file" = x-; then |
| 21210 | configure_input= |
| 21211 | else |
| 21212 | configure_input="$ac_file. " |
| 21213 | fi |
| 21214 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 21215 | sed 's,.*/,,'` by configure." |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 21216 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21217 | # First look for the input files in the build tree, otherwise in the |
| 21218 | # src tree. |
| 21219 | ac_file_inputs=`IFS=: |
| 21220 | for f in $ac_file_in; do |
| 21221 | case $f in |
| 21222 | -) echo $tmp/stdin ;; |
| 21223 | [\\/$]*) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 21224 | # Absolute (can't be DOS-style, as IFS=:) |
| 21225 | 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] | 21226 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 21227 | { (exit 1); exit 1; }; } |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 21228 | echo "$f";; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21229 | *) # Relative |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 21230 | if test -f "$f"; then |
| 21231 | # Build tree |
| 21232 | echo "$f" |
| 21233 | elif test -f "$srcdir/$f"; then |
| 21234 | # Source tree |
| 21235 | echo "$srcdir/$f" |
| 21236 | else |
| 21237 | # /dev/null tree |
| 21238 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21239 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 21240 | { (exit 1); exit 1; }; } |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 21241 | fi;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21242 | esac |
| 21243 | done` || { (exit 1); exit 1; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21244 | _ACEOF |
| 21245 | cat >>$CONFIG_STATUS <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21246 | sed "$ac_vpsub |
| 21247 | $extrasub |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21248 | _ACEOF |
| 21249 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21250 | :t |
| 21251 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 21252 | s,@configure_input@,$configure_input,;t t |
| 21253 | s,@srcdir@,$ac_srcdir,;t t |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21254 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21255 | s,@top_srcdir@,$ac_top_srcdir,;t t |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21256 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 21257 | s,@builddir@,$ac_builddir,;t t |
| 21258 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 21259 | s,@top_builddir@,$ac_top_builddir,;t t |
| 21260 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21261 | s,@INSTALL@,$ac_INSTALL,;t t |
| 21262 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 21263 | rm -f $tmp/stdin |
| 21264 | if test x"$ac_file" != x-; then |
| 21265 | mv $tmp/out $ac_file |
| 21266 | else |
| 21267 | cat $tmp/out |
| 21268 | rm -f $tmp/out |
| 21269 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 21270 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21271 | done |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21272 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21273 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21274 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21275 | |
| 21276 | { (exit 0); exit 0; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21277 | _ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 21278 | chmod +x $CONFIG_STATUS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21279 | ac_clean_files=$ac_clean_files_save |
| 21280 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21281 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21282 | # configure is writing to config.log, and then calls config.status. |
| 21283 | # config.status does its own redirection, appending to config.log. |
| 21284 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 21285 | # by configure, so config.status won't be able to write to it; its |
| 21286 | # output is simply discarded. So we exec the FD to /dev/null, |
| 21287 | # effectively closing config.log, so it can be properly (re)opened and |
| 21288 | # appended to by config.status. When coming back to configure, we |
| 21289 | # need to make the FD available again. |
| 21290 | if test "$no_create" != yes; then |
| 21291 | ac_cs_success=: |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21292 | ac_config_status_args= |
| 21293 | test "$silent" = yes && |
| 21294 | ac_config_status_args="$ac_config_status_args --quiet" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21295 | exec 5>/dev/null |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21296 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 21297 | exec 5>>config.log |
| 21298 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 21299 | # would make configure fail if this is the last instruction. |
| 21300 | $ac_cs_success || { (exit 1); exit 1; } |
| 21301 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 21302 | |