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. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3 | # Generated by Autoconf 2.52. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 4 | # |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 6 | # Free Software Foundation, Inc. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
| 9 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10 | # Find the correct PATH separator. Usually this is `:', but |
| 11 | # DJGPP uses `;' like DOS. |
| 12 | if test "X${PATH_SEPARATOR+set}" != Xset; then |
| 13 | UNAME=${UNAME-`uname 2>/dev/null`} |
| 14 | case X$UNAME in |
| 15 | *-DOS) PATH_SEPARATOR=';' ;; |
| 16 | *) PATH_SEPARATOR=':' ;; |
| 17 | esac |
| 18 | fi |
| 19 | |
| 20 | # Check that we are running under the correct shell. |
| 21 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 22 | |
| 23 | case X$ECHO in |
| 24 | X*--fallback-echo) |
| 25 | # Remove one level of quotation (which was required for Make). |
| 26 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 27 | ;; |
| 28 | esac |
| 29 | |
| 30 | echo=${ECHO-echo} |
| 31 | if test "X$1" = X--no-reexec; then |
| 32 | # Discard the --no-reexec flag, and continue. |
| 33 | shift |
| 34 | elif test "X$1" = X--fallback-echo; then |
| 35 | # Avoid inline document here, it may be left over |
| 36 | : |
| 37 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then |
| 38 | # Yippee, $echo works! |
| 39 | : |
| 40 | else |
| 41 | # Restart under the correct shell. |
| 42 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 43 | fi |
| 44 | |
| 45 | if test "X$1" = X--fallback-echo; then |
| 46 | # used as fallback echo |
| 47 | shift |
| 48 | cat <<EOF |
| 49 | $* |
| 50 | EOF |
| 51 | exit 0 |
| 52 | fi |
| 53 | |
| 54 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 55 | # if CDPATH is set. |
| 56 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 57 | |
| 58 | if test -z "$ECHO"; then |
| 59 | if test "X${echo_test_string+set}" != Xset; then |
| 60 | # find a string as large as possible, as long as the shell can cope with it |
| 61 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 62 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 63 | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
| 64 | echo_test_string="`eval $cmd`" && |
| 65 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 66 | then |
| 67 | break |
| 68 | fi |
| 69 | done |
| 70 | fi |
| 71 | |
| 72 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 73 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 74 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 75 | : |
| 76 | else |
| 77 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 78 | # backslashes. This makes it impossible to quote backslashes using |
| 79 | # echo "$something" | sed 's/\\/\\\\/g' |
| 80 | # |
| 81 | # So, first we look for a working echo in the user's PATH. |
| 82 | |
| 83 | IFS="${IFS= }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" |
| 84 | for dir in $PATH /usr/ucb; do |
| 85 | IFS="$lt_save_ifs" |
| 86 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 87 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 88 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 89 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 90 | echo="$dir/echo" |
| 91 | break |
| 92 | fi |
| 93 | done |
| 94 | IFS="$lt_save_ifs" |
| 95 | |
| 96 | if test "X$echo" = Xecho; then |
| 97 | # We didn't find a better echo, so look for alternatives. |
| 98 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 99 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 100 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 101 | # This shell has a builtin print -r that does the trick. |
| 102 | echo='print -r' |
| 103 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 104 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 105 | # If we have ksh, try running configure again with it. |
| 106 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 107 | export ORIGINAL_CONFIG_SHELL |
| 108 | CONFIG_SHELL=/bin/ksh |
| 109 | export CONFIG_SHELL |
| 110 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 111 | else |
| 112 | # Try using printf. |
| 113 | echo='printf %s\n' |
| 114 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 115 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 116 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 117 | # Cool, printf works |
| 118 | : |
| 119 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 120 | test "X$echo_testing_string" = 'X\t' && |
| 121 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 122 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 123 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 124 | export CONFIG_SHELL |
| 125 | SHELL="$CONFIG_SHELL" |
| 126 | export SHELL |
| 127 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 128 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 129 | test "X$echo_testing_string" = 'X\t' && |
| 130 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 131 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 132 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 133 | else |
| 134 | # maybe with a smaller string... |
| 135 | prev=: |
| 136 | |
| 137 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 138 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 139 | then |
| 140 | break |
| 141 | fi |
| 142 | prev="$cmd" |
| 143 | done |
| 144 | |
| 145 | if test "$prev" != 'sed 50q "$0"'; then |
| 146 | echo_test_string=`eval $prev` |
| 147 | export echo_test_string |
| 148 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 149 | else |
| 150 | # Oops. We lost completely, so just stick with echo. |
| 151 | echo=echo |
| 152 | fi |
| 153 | fi |
| 154 | fi |
| 155 | fi |
| 156 | fi |
| 157 | fi |
| 158 | |
| 159 | # Copy echo and quote the copy suitably for passing to libtool from |
| 160 | # the Makefile, instead of quoting the original, which is used later. |
| 161 | ECHO=$echo |
| 162 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 163 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 164 | fi |
| 165 | |
| 166 | # Avoid depending upon Character Ranges. |
| 167 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 168 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 169 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 170 | as_cr_digits='0123456789' |
| 171 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 172 | |
| 173 | # Sed expression to map a string onto a valid variable name. |
| 174 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 175 | |
| 176 | # Sed expression to map a string onto a valid CPP name. |
| 177 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 178 | |
| 179 | # Be Bourne compatible |
| 180 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 181 | emulate sh |
| 182 | NULLCMD=: |
| 183 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 184 | set -o posix |
| 185 | fi |
| 186 | |
| 187 | # Name of the executable. |
| 188 | as_me=`echo "$0" |sed 's,.*[\\/],,'` |
| 189 | |
| 190 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 191 | as_expr=expr |
| 192 | else |
| 193 | as_expr=false |
| 194 | fi |
| 195 | |
| 196 | rm -f conf$$ conf$$.exe conf$$.file |
| 197 | echo >conf$$.file |
| 198 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 199 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 200 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 201 | if test -f conf$$.exe; then |
| 202 | # Don't use ln at all; we don't have any links |
| 203 | as_ln_s='cp -p' |
| 204 | else |
| 205 | as_ln_s='ln -s' |
| 206 | fi |
| 207 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 208 | as_ln_s=ln |
| 209 | else |
| 210 | as_ln_s='cp -p' |
| 211 | fi |
| 212 | rm -f conf$$ conf$$.exe conf$$.file |
| 213 | |
| 214 | as_executable_p="test -f" |
| 215 | |
| 216 | # Support unset when possible. |
| 217 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 218 | as_unset=unset |
| 219 | else |
| 220 | as_unset=false |
| 221 | fi |
| 222 | |
| 223 | # NLS nuisances. |
| 224 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } |
| 225 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } |
| 226 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } |
| 227 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } |
| 228 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } |
| 229 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } |
| 230 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } |
| 231 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } |
| 232 | |
| 233 | # IFS |
| 234 | # We need space, tab and new line, in precisely that order. |
| 235 | as_nl=' |
| 236 | ' |
| 237 | IFS=" $as_nl" |
| 238 | |
| 239 | # CDPATH. |
| 240 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } |
| 241 | |
| 242 | # Name of the host. |
| 243 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 244 | # so uname gets run too. |
| 245 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 246 | |
| 247 | exec 6>&1 |
| 248 | |
| 249 | # |
| 250 | # Initializations. |
| 251 | # |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 252 | ac_default_prefix=/usr/local |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 253 | cross_compiling=no |
| 254 | subdirs= |
| 255 | MFLAGS= MAKEFLAGS= |
| 256 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 257 | |
| 258 | # Maximum number of lines to put in a shell here document. |
| 259 | # This variable seems obsolete. It should probably be removed, and |
| 260 | # only ac_max_sed_lines should be used. |
| 261 | : ${ac_max_here_lines=38} |
| 262 | |
| 263 | ac_unique_file="src/sqlite.h.in" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 264 | |
| 265 | # Initialize some variables set by options. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 266 | ac_init_help= |
| 267 | ac_init_version=false |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 268 | # The variables have the same names as the options, with |
| 269 | # dashes changed to underlines. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 270 | cache_file=/dev/null |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 271 | exec_prefix=NONE |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 272 | no_create= |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 273 | no_recursion= |
| 274 | prefix=NONE |
| 275 | program_prefix=NONE |
| 276 | program_suffix=NONE |
| 277 | program_transform_name=s,x,x, |
| 278 | silent= |
| 279 | site= |
| 280 | srcdir= |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 281 | verbose= |
| 282 | x_includes=NONE |
| 283 | x_libraries=NONE |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 284 | |
| 285 | # Installation directory options. |
| 286 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 287 | # and all the variables that are supposed to be based on exec_prefix |
| 288 | # by default will actually change. |
| 289 | # Use braces instead of parens because sh, perl, etc. also accept them. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 290 | bindir='${exec_prefix}/bin' |
| 291 | sbindir='${exec_prefix}/sbin' |
| 292 | libexecdir='${exec_prefix}/libexec' |
| 293 | datadir='${prefix}/share' |
| 294 | sysconfdir='${prefix}/etc' |
| 295 | sharedstatedir='${prefix}/com' |
| 296 | localstatedir='${prefix}/var' |
| 297 | libdir='${exec_prefix}/lib' |
| 298 | includedir='${prefix}/include' |
| 299 | oldincludedir='/usr/include' |
| 300 | infodir='${prefix}/info' |
| 301 | mandir='${prefix}/man' |
| 302 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 303 | # Identity of this package. |
| 304 | PACKAGE_NAME= |
| 305 | PACKAGE_TARNAME= |
| 306 | PACKAGE_VERSION= |
| 307 | PACKAGE_STRING= |
| 308 | PACKAGE_BUGREPORT= |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 309 | |
| 310 | ac_prev= |
| 311 | for ac_option |
| 312 | do |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 313 | # If the previous option needs an argument, assign it. |
| 314 | if test -n "$ac_prev"; then |
| 315 | eval "$ac_prev=\$ac_option" |
| 316 | ac_prev= |
| 317 | continue |
| 318 | fi |
| 319 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 320 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 321 | |
| 322 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 323 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 324 | case $ac_option in |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 325 | |
| 326 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 327 | ac_prev=bindir ;; |
| 328 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 329 | bindir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 330 | |
| 331 | -build | --build | --buil | --bui | --bu) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 332 | ac_prev=build_alias ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 333 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 334 | build_alias=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 335 | |
| 336 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 337 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 338 | ac_prev=cache_file ;; |
| 339 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 340 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 341 | cache_file=$ac_optarg ;; |
| 342 | |
| 343 | --config-cache | -C) |
| 344 | cache_file=config.cache ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 345 | |
| 346 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 347 | ac_prev=datadir ;; |
| 348 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 349 | | --da=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 350 | datadir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 351 | |
| 352 | -disable-* | --disable-*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 353 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 354 | # Reject names that are not valid shell variable names. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 355 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 356 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 357 | { (exit 1); exit 1; }; } |
| 358 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 359 | eval "enable_$ac_feature=no" ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 360 | |
| 361 | -enable-* | --enable-*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 362 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 363 | # Reject names that are not valid shell variable names. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 364 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 365 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 366 | { (exit 1); exit 1; }; } |
| 367 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 368 | case $ac_option in |
| 369 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 370 | *) ac_optarg=yes ;; |
| 371 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 372 | eval "enable_$ac_feature='$ac_optarg'" ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 373 | |
| 374 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 375 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 376 | | --exec | --exe | --ex) |
| 377 | ac_prev=exec_prefix ;; |
| 378 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 379 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 380 | | --exec=* | --exe=* | --ex=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 381 | exec_prefix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 382 | |
| 383 | -gas | --gas | --ga | --g) |
| 384 | # Obsolete; use --with-gas. |
| 385 | with_gas=yes ;; |
| 386 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 387 | -help | --help | --hel | --he | -h) |
| 388 | ac_init_help=long ;; |
| 389 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 390 | ac_init_help=recursive ;; |
| 391 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 392 | ac_init_help=short ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 393 | |
| 394 | -host | --host | --hos | --ho) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 395 | ac_prev=host_alias ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 396 | -host=* | --host=* | --hos=* | --ho=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 397 | host_alias=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 398 | |
| 399 | -includedir | --includedir | --includedi | --included | --include \ |
| 400 | | --includ | --inclu | --incl | --inc) |
| 401 | ac_prev=includedir ;; |
| 402 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 403 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 404 | includedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 405 | |
| 406 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 407 | ac_prev=infodir ;; |
| 408 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 409 | infodir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 410 | |
| 411 | -libdir | --libdir | --libdi | --libd) |
| 412 | ac_prev=libdir ;; |
| 413 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 414 | libdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 415 | |
| 416 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 417 | | --libexe | --libex | --libe) |
| 418 | ac_prev=libexecdir ;; |
| 419 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 420 | | --libexe=* | --libex=* | --libe=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 421 | libexecdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 422 | |
| 423 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 424 | | --localstate | --localstat | --localsta | --localst \ |
| 425 | | --locals | --local | --loca | --loc | --lo) |
| 426 | ac_prev=localstatedir ;; |
| 427 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 428 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 429 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 430 | localstatedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 431 | |
| 432 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 433 | ac_prev=mandir ;; |
| 434 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 435 | mandir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 436 | |
| 437 | -nfp | --nfp | --nf) |
| 438 | # Obsolete; use --without-fp. |
| 439 | with_fp=no ;; |
| 440 | |
| 441 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 442 | | --no-cr | --no-c) |
| 443 | no_create=yes ;; |
| 444 | |
| 445 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 446 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 447 | no_recursion=yes ;; |
| 448 | |
| 449 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 450 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 451 | | --oldin | --oldi | --old | --ol | --o) |
| 452 | ac_prev=oldincludedir ;; |
| 453 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 454 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 455 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 456 | oldincludedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 457 | |
| 458 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 459 | ac_prev=prefix ;; |
| 460 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 461 | prefix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 462 | |
| 463 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 464 | | --program-pre | --program-pr | --program-p) |
| 465 | ac_prev=program_prefix ;; |
| 466 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 467 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 468 | program_prefix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 469 | |
| 470 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 471 | | --program-suf | --program-su | --program-s) |
| 472 | ac_prev=program_suffix ;; |
| 473 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 474 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 475 | program_suffix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 476 | |
| 477 | -program-transform-name | --program-transform-name \ |
| 478 | | --program-transform-nam | --program-transform-na \ |
| 479 | | --program-transform-n | --program-transform- \ |
| 480 | | --program-transform | --program-transfor \ |
| 481 | | --program-transfo | --program-transf \ |
| 482 | | --program-trans | --program-tran \ |
| 483 | | --progr-tra | --program-tr | --program-t) |
| 484 | ac_prev=program_transform_name ;; |
| 485 | -program-transform-name=* | --program-transform-name=* \ |
| 486 | | --program-transform-nam=* | --program-transform-na=* \ |
| 487 | | --program-transform-n=* | --program-transform-=* \ |
| 488 | | --program-transform=* | --program-transfor=* \ |
| 489 | | --program-transfo=* | --program-transf=* \ |
| 490 | | --program-trans=* | --program-tran=* \ |
| 491 | | --progr-tra=* | --program-tr=* | --program-t=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 492 | program_transform_name=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 493 | |
| 494 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 495 | | -silent | --silent | --silen | --sile | --sil) |
| 496 | silent=yes ;; |
| 497 | |
| 498 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 499 | ac_prev=sbindir ;; |
| 500 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 501 | | --sbi=* | --sb=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 502 | sbindir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 503 | |
| 504 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 505 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 506 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 507 | | --sha | --sh) |
| 508 | ac_prev=sharedstatedir ;; |
| 509 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 510 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 511 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 512 | | --sha=* | --sh=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 513 | sharedstatedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 514 | |
| 515 | -site | --site | --sit) |
| 516 | ac_prev=site ;; |
| 517 | -site=* | --site=* | --sit=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 518 | site=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 519 | |
| 520 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 521 | ac_prev=srcdir ;; |
| 522 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 523 | srcdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 524 | |
| 525 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 526 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 527 | ac_prev=sysconfdir ;; |
| 528 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 529 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 530 | sysconfdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 531 | |
| 532 | -target | --target | --targe | --targ | --tar | --ta | --t) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 533 | ac_prev=target_alias ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 534 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 535 | target_alias=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 536 | |
| 537 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 538 | verbose=yes ;; |
| 539 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 540 | -version | --version | --versio | --versi | --vers | -V) |
| 541 | ac_init_version=: ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 542 | |
| 543 | -with-* | --with-*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 544 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 545 | # Reject names that are not valid shell variable names. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 546 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 547 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 548 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 549 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 550 | case $ac_option in |
| 551 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 552 | *) ac_optarg=yes ;; |
| 553 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 554 | eval "with_$ac_package='$ac_optarg'" ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 555 | |
| 556 | -without-* | --without-*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 557 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 558 | # Reject names that are not valid shell variable names. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 559 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 560 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 561 | { (exit 1); exit 1; }; } |
| 562 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 563 | eval "with_$ac_package=no" ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 564 | |
| 565 | --x) |
| 566 | # Obsolete; use --with-x. |
| 567 | with_x=yes ;; |
| 568 | |
| 569 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 570 | | --x-incl | --x-inc | --x-in | --x-i) |
| 571 | ac_prev=x_includes ;; |
| 572 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 573 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 574 | x_includes=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 575 | |
| 576 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 577 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 578 | ac_prev=x_libraries ;; |
| 579 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 580 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 581 | x_libraries=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 582 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 583 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 584 | Try \`$0 --help' for more information." >&2 |
| 585 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 586 | ;; |
| 587 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 588 | *=*) |
| 589 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 590 | # Reject names that are not valid shell variable names. |
| 591 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 592 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 593 | { (exit 1); exit 1; }; } |
| 594 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 595 | eval "$ac_envvar='$ac_optarg'" |
| 596 | export $ac_envvar ;; |
| 597 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 598 | *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 599 | # FIXME: should be removed in autoconf 3.0. |
| 600 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 601 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 602 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 603 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 604 | ;; |
| 605 | |
| 606 | esac |
| 607 | done |
| 608 | |
| 609 | if test -n "$ac_prev"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 610 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 611 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 612 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 613 | fi |
| 614 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 615 | # Be sure to have absolute paths. |
| 616 | for ac_var in exec_prefix prefix |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 617 | do |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 618 | eval ac_val=$`echo $ac_var` |
| 619 | case $ac_val in |
| 620 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 621 | *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 |
| 622 | { (exit 1); exit 1; }; };; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 623 | esac |
| 624 | done |
| 625 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 626 | # Be sure to have absolute paths. |
| 627 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 628 | localstatedir libdir includedir oldincludedir infodir mandir |
| 629 | do |
| 630 | eval ac_val=$`echo $ac_var` |
| 631 | case $ac_val in |
| 632 | [\\/$]* | ?:[\\/]* ) ;; |
| 633 | *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 |
| 634 | { (exit 1); exit 1; }; };; |
| 635 | esac |
| 636 | done |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 637 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 638 | # There might be people who depend on the old broken behavior: `$host' |
| 639 | # used to hold the argument of --host etc. |
| 640 | build=$build_alias |
| 641 | host=$host_alias |
| 642 | target=$target_alias |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 643 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 644 | # FIXME: should be removed in autoconf 3.0. |
| 645 | if test "x$host_alias" != x; then |
| 646 | if test "x$build_alias" = x; then |
| 647 | cross_compiling=maybe |
| 648 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 649 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 650 | elif test "x$build_alias" != "x$host_alias"; then |
| 651 | cross_compiling=yes |
| 652 | fi |
| 653 | fi |
| 654 | |
| 655 | ac_tool_prefix= |
| 656 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 657 | |
| 658 | test "$silent" = yes && exec 6>/dev/null |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 659 | |
| 660 | # Find the source files, if location was not specified. |
| 661 | if test -z "$srcdir"; then |
| 662 | ac_srcdir_defaulted=yes |
| 663 | # Try the directory containing this script, then its parent. |
| 664 | ac_prog=$0 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 665 | ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 666 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 667 | srcdir=$ac_confdir |
| 668 | if test ! -r $srcdir/$ac_unique_file; then |
| 669 | srcdir=.. |
| 670 | fi |
| 671 | else |
| 672 | ac_srcdir_defaulted=no |
| 673 | fi |
| 674 | if test ! -r $srcdir/$ac_unique_file; then |
| 675 | if test "$ac_srcdir_defaulted" = yes; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 676 | { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 |
| 677 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 678 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 679 | { echo "$as_me: error: cannot find sources in $srcdir" >&2 |
| 680 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 681 | fi |
| 682 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 683 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 684 | ac_env_build_alias_set=${build_alias+set} |
| 685 | ac_env_build_alias_value=$build_alias |
| 686 | ac_cv_env_build_alias_set=${build_alias+set} |
| 687 | ac_cv_env_build_alias_value=$build_alias |
| 688 | ac_env_host_alias_set=${host_alias+set} |
| 689 | ac_env_host_alias_value=$host_alias |
| 690 | ac_cv_env_host_alias_set=${host_alias+set} |
| 691 | ac_cv_env_host_alias_value=$host_alias |
| 692 | ac_env_target_alias_set=${target_alias+set} |
| 693 | ac_env_target_alias_value=$target_alias |
| 694 | ac_cv_env_target_alias_set=${target_alias+set} |
| 695 | ac_cv_env_target_alias_value=$target_alias |
| 696 | ac_env_CC_set=${CC+set} |
| 697 | ac_env_CC_value=$CC |
| 698 | ac_cv_env_CC_set=${CC+set} |
| 699 | ac_cv_env_CC_value=$CC |
| 700 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 701 | ac_env_CFLAGS_value=$CFLAGS |
| 702 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 703 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 704 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 705 | ac_env_LDFLAGS_value=$LDFLAGS |
| 706 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 707 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 708 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 709 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 710 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 711 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 712 | ac_env_CPP_set=${CPP+set} |
| 713 | ac_env_CPP_value=$CPP |
| 714 | ac_cv_env_CPP_set=${CPP+set} |
| 715 | ac_cv_env_CPP_value=$CPP |
| 716 | ac_env_CXX_set=${CXX+set} |
| 717 | ac_env_CXX_value=$CXX |
| 718 | ac_cv_env_CXX_set=${CXX+set} |
| 719 | ac_cv_env_CXX_value=$CXX |
| 720 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 721 | ac_env_CXXFLAGS_value=$CXXFLAGS |
| 722 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 723 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
| 724 | ac_env_CXXCPP_set=${CXXCPP+set} |
| 725 | ac_env_CXXCPP_value=$CXXCPP |
| 726 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
| 727 | ac_cv_env_CXXCPP_value=$CXXCPP |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 728 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 729 | # |
| 730 | # Report the --help message. |
| 731 | # |
| 732 | if test "$ac_init_help" = "long"; then |
| 733 | # Omit some internal or obsolete options to make the list less imposing. |
| 734 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 735 | cat <<EOF |
| 736 | \`configure' configures this package to adapt to many kinds of systems. |
| 737 | |
| 738 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 739 | |
| 740 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 741 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 742 | |
| 743 | Defaults for the options are specified in brackets. |
| 744 | |
| 745 | Configuration: |
| 746 | -h, --help display this help and exit |
| 747 | --help=short display options specific to this package |
| 748 | --help=recursive display the short help of all the included packages |
| 749 | -V, --version display version information and exit |
| 750 | -q, --quiet, --silent do not print \`checking...' messages |
| 751 | --cache-file=FILE cache test results in FILE [disabled] |
| 752 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 753 | -n, --no-create do not create output files |
| 754 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 755 | |
| 756 | EOF |
| 757 | |
| 758 | cat <<EOF |
| 759 | Installation directories: |
| 760 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 761 | [$ac_default_prefix] |
| 762 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 763 | [PREFIX] |
| 764 | |
| 765 | By default, \`make install' will install all the files in |
| 766 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 767 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 768 | for instance \`--prefix=\$HOME'. |
| 769 | |
| 770 | For better control, use the options below. |
| 771 | |
| 772 | Fine tuning of the installation directories: |
| 773 | --bindir=DIR user executables [EPREFIX/bin] |
| 774 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 775 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 776 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 777 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 778 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 779 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 780 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 781 | --includedir=DIR C header files [PREFIX/include] |
| 782 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 783 | --infodir=DIR info documentation [PREFIX/info] |
| 784 | --mandir=DIR man documentation [PREFIX/man] |
| 785 | EOF |
| 786 | |
| 787 | cat <<\EOF |
| 788 | |
| 789 | System types: |
| 790 | --build=BUILD configure for building on BUILD [guessed] |
| 791 | --host=HOST build programs to run on HOST [BUILD] |
| 792 | EOF |
| 793 | fi |
| 794 | |
| 795 | if test -n "$ac_init_help"; then |
| 796 | |
| 797 | cat <<\EOF |
| 798 | |
| 799 | Optional Features: |
| 800 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 801 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 802 | --enable-shared[=PKGS] |
| 803 | build shared libraries [default=yes] |
| 804 | --enable-static[=PKGS] |
| 805 | build static libraries [default=yes] |
| 806 | --enable-fast-install[=PKGS] |
| 807 | optimize for fast installation [default=yes] |
| 808 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 809 | --enable-utf8 Use UTF-8 encodings |
| 810 | |
| 811 | Optional Packages: |
| 812 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 813 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 814 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 815 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 816 | both] |
| 817 | --with-tags=TAGS include additional configurations [CXX,GCJ] |
| 818 | --with-hints=FILE Read configuration options from FILE |
| 819 | |
| 820 | Some influential environment variables: |
| 821 | CC C compiler command |
| 822 | CFLAGS C compiler flags |
| 823 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 824 | nonstandard directory <lib dir> |
| 825 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 826 | headers in a nonstandard directory <include dir> |
| 827 | CPP C preprocessor |
| 828 | CXX C++ compiler command |
| 829 | CXXFLAGS C++ compiler flags |
| 830 | CXXCPP C++ preprocessor |
| 831 | |
| 832 | Use these variables to override the choices made by `configure' or to help |
| 833 | it to find libraries and programs with nonstandard names/locations. |
| 834 | |
| 835 | EOF |
| 836 | fi |
| 837 | |
| 838 | if test "$ac_init_help" = "recursive"; then |
| 839 | # If there are subdirs, report their specific --help. |
| 840 | ac_popdir=`pwd` |
| 841 | for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue |
| 842 | cd $ac_subdir |
| 843 | # A "../" for each directory in /$ac_subdir. |
| 844 | ac_dots=`echo $ac_subdir | |
| 845 | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` |
| 846 | |
| 847 | case $srcdir in |
| 848 | .) # No --srcdir option. We are building in place. |
| 849 | ac_sub_srcdir=$srcdir ;; |
| 850 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 851 | ac_sub_srcdir=$srcdir/$ac_subdir ;; |
| 852 | *) # Relative path. |
| 853 | ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; |
| 854 | esac |
| 855 | |
| 856 | # Check for guested configure; otherwise get Cygnus style configure. |
| 857 | if test -f $ac_sub_srcdir/configure.gnu; then |
| 858 | echo |
| 859 | $SHELL $ac_sub_srcdir/configure.gnu --help=recursive |
| 860 | elif test -f $ac_sub_srcdir/configure; then |
| 861 | echo |
| 862 | $SHELL $ac_sub_srcdir/configure --help=recursive |
| 863 | elif test -f $ac_sub_srcdir/configure.ac || |
| 864 | test -f $ac_sub_srcdir/configure.in; then |
| 865 | echo |
| 866 | $ac_configure --help |
| 867 | else |
| 868 | echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 |
| 869 | fi |
| 870 | cd $ac_popdir |
| 871 | done |
| 872 | fi |
| 873 | |
| 874 | test -n "$ac_init_help" && exit 0 |
| 875 | if $ac_init_version; then |
| 876 | cat <<\EOF |
| 877 | |
| 878 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 879 | Free Software Foundation, Inc. |
| 880 | This configure script is free software; the Free Software Foundation |
| 881 | gives unlimited permission to copy, distribute and modify it. |
| 882 | EOF |
| 883 | exit 0 |
| 884 | fi |
| 885 | exec 5>config.log |
| 886 | cat >&5 <<EOF |
| 887 | This file contains any messages produced by compilers while |
| 888 | running configure, to aid debugging if configure makes a mistake. |
| 889 | |
| 890 | It was created by $as_me, which was |
| 891 | generated by GNU Autoconf 2.52. Invocation command line was |
| 892 | |
| 893 | $ $0 $@ |
| 894 | |
| 895 | EOF |
| 896 | { |
| 897 | cat <<_ASUNAME |
| 898 | ## ---------- ## |
| 899 | ## Platform. ## |
| 900 | ## ---------- ## |
| 901 | |
| 902 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 903 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 904 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 905 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 906 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 907 | |
| 908 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 909 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 910 | |
| 911 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 912 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 913 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 914 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 915 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 916 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 917 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 918 | |
| 919 | PATH = $PATH |
| 920 | |
| 921 | _ASUNAME |
| 922 | } >&5 |
| 923 | |
| 924 | cat >&5 <<EOF |
| 925 | ## ------------ ## |
| 926 | ## Core tests. ## |
| 927 | ## ------------ ## |
| 928 | |
| 929 | EOF |
| 930 | |
| 931 | # Keep a trace of the command line. |
| 932 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 933 | # Also quote any args containing shell meta-characters. |
| 934 | ac_configure_args= |
| 935 | ac_sep= |
| 936 | for ac_arg |
| 937 | do |
| 938 | case $ac_arg in |
| 939 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 940 | | --no-cr | --no-c) ;; |
| 941 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 942 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 943 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 944 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` |
| 945 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 946 | ac_sep=" " ;; |
| 947 | *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" |
| 948 | ac_sep=" " ;; |
| 949 | esac |
| 950 | # Get rid of the leading space. |
| 951 | done |
| 952 | |
| 953 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 954 | # config.log. We remove comments because anyway the quotes in there |
| 955 | # would cause problems or look ugly. |
| 956 | trap 'exit_status=$? |
| 957 | # Save into config.log some information that might help in debugging. |
| 958 | echo >&5 |
| 959 | echo "## ----------------- ##" >&5 |
| 960 | echo "## Cache variables. ##" >&5 |
| 961 | echo "## ----------------- ##" >&5 |
| 962 | echo >&5 |
| 963 | # The following way of writing the cache mishandles newlines in values, |
| 964 | { |
| 965 | (set) 2>&1 | |
| 966 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 967 | *ac_space=\ *) |
| 968 | sed -n \ |
| 969 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 970 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 971 | ;; |
| 972 | *) |
| 973 | sed -n \ |
| 974 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 975 | ;; |
| 976 | esac; |
| 977 | } >&5 |
| 978 | sed "/^$/d" confdefs.h >conftest.log |
| 979 | if test -s conftest.log; then |
| 980 | echo >&5 |
| 981 | echo "## ------------ ##" >&5 |
| 982 | echo "## confdefs.h. ##" >&5 |
| 983 | echo "## ------------ ##" >&5 |
| 984 | echo >&5 |
| 985 | cat conftest.log >&5 |
| 986 | fi |
| 987 | (echo; echo) >&5 |
| 988 | test "$ac_signal" != 0 && |
| 989 | echo "$as_me: caught signal $ac_signal" >&5 |
| 990 | echo "$as_me: exit $exit_status" >&5 |
| 991 | rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && |
| 992 | exit $exit_status |
| 993 | ' 0 |
| 994 | for ac_signal in 1 2 13 15; do |
| 995 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 996 | done |
| 997 | ac_signal=0 |
| 998 | |
| 999 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1000 | rm -rf conftest* confdefs.h |
| 1001 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1002 | echo >confdefs.h |
| 1003 | |
| 1004 | # Let the site file select an alternate cache file if it wants to. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1005 | # Prefer explicitly selected file to automatically selected ones. |
| 1006 | if test -z "$CONFIG_SITE"; then |
| 1007 | if test "x$prefix" != xNONE; then |
| 1008 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1009 | else |
| 1010 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1011 | fi |
| 1012 | fi |
| 1013 | for ac_site_file in $CONFIG_SITE; do |
| 1014 | if test -r "$ac_site_file"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1015 | { echo "$as_me:1015: loading site script $ac_site_file" >&5 |
| 1016 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1017 | cat "$ac_site_file" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1018 | . "$ac_site_file" |
| 1019 | fi |
| 1020 | done |
| 1021 | |
| 1022 | if test -r "$cache_file"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1023 | # Some versions of bash will fail to source /dev/null (special |
| 1024 | # files actually), so we avoid doing that. |
| 1025 | if test -f "$cache_file"; then |
| 1026 | { echo "$as_me:1026: loading cache $cache_file" >&5 |
| 1027 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1028 | case $cache_file in |
| 1029 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1030 | *) . ./$cache_file;; |
| 1031 | esac |
| 1032 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1033 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1034 | { echo "$as_me:1034: creating cache $cache_file" >&5 |
| 1035 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1036 | >$cache_file |
| 1037 | fi |
| 1038 | |
| 1039 | # Check that the precious variables saved in the cache have kept the same |
| 1040 | # value. |
| 1041 | ac_cache_corrupted=false |
| 1042 | for ac_var in `(set) 2>&1 | |
| 1043 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1044 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1045 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1046 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1047 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1048 | case $ac_old_set,$ac_new_set in |
| 1049 | set,) |
| 1050 | { echo "$as_me:1050: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1051 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1052 | ac_cache_corrupted=: ;; |
| 1053 | ,set) |
| 1054 | { echo "$as_me:1054: error: \`$ac_var' was not set in the previous run" >&5 |
| 1055 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1056 | ac_cache_corrupted=: ;; |
| 1057 | ,);; |
| 1058 | *) |
| 1059 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1060 | { echo "$as_me:1060: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1061 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1062 | { echo "$as_me:1062: former value: $ac_old_val" >&5 |
| 1063 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1064 | { echo "$as_me:1064: current value: $ac_new_val" >&5 |
| 1065 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1066 | ac_cache_corrupted=: |
| 1067 | fi;; |
| 1068 | esac |
| 1069 | # Pass precious variables to config.status. It doesn't matter if |
| 1070 | # we pass some twice (in addition to the command line arguments). |
| 1071 | if test "$ac_new_set" = set; then |
| 1072 | case $ac_new_val in |
| 1073 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1074 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` |
| 1075 | ac_configure_args="$ac_configure_args '$ac_arg'" |
| 1076 | ;; |
| 1077 | *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" |
| 1078 | ;; |
| 1079 | esac |
| 1080 | fi |
| 1081 | done |
| 1082 | if $ac_cache_corrupted; then |
| 1083 | { echo "$as_me:1083: error: changes in the environment can compromise the build" >&5 |
| 1084 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1085 | { { echo "$as_me:1085: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1086 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1087 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1088 | fi |
| 1089 | |
| 1090 | ac_ext=c |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1091 | ac_cpp='$CPP $CPPFLAGS' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1092 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1093 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1094 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1095 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1096 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 1097 | *c*,-n*) ECHO_N= ECHO_C=' |
| 1098 | ' ECHO_T=' ' ;; |
| 1099 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 1100 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 1101 | esac |
| 1102 | echo "#! $SHELL" >conftest.sh |
| 1103 | echo "exit 0" >>conftest.sh |
| 1104 | chmod +x conftest.sh |
| 1105 | if { (echo "$as_me:1105: PATH=\".;.\"; conftest.sh") >&5 |
| 1106 | (PATH=".;."; conftest.sh) 2>&5 |
| 1107 | ac_status=$? |
| 1108 | echo "$as_me:1108: \$? = $ac_status" >&5 |
| 1109 | (exit $ac_status); }; then |
| 1110 | ac_path_separator=';' |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1111 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1112 | ac_path_separator=: |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1113 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1114 | PATH_SEPARATOR="$ac_path_separator" |
| 1115 | rm -f conftest.sh |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1116 | |
| 1117 | # The following RCS revision string applies to configure.in |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1118 | # $Revision: 1.12 $ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1119 | |
| 1120 | ######### |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1121 | # Programs needed |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1122 | # |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1123 | # Find the correct PATH separator. Usually this is `:', but |
| 1124 | # DJGPP uses `;' like DOS. |
| 1125 | if test "X${PATH_SEPARATOR+set}" != Xset; then |
| 1126 | UNAME=${UNAME-`uname 2>/dev/null`} |
| 1127 | case X$UNAME in |
| 1128 | *-DOS) PATH_SEPARATOR=';' ;; |
| 1129 | *) PATH_SEPARATOR=':' ;; |
| 1130 | esac |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1131 | fi |
| 1132 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1133 | # Check whether --enable-shared or --disable-shared was given. |
| 1134 | if test "${enable_shared+set}" = set; then |
| 1135 | enableval="$enable_shared" |
| 1136 | p=${PACKAGE-default} |
| 1137 | case $enableval in |
| 1138 | yes) enable_shared=yes ;; |
| 1139 | no) enable_shared=no ;; |
| 1140 | *) |
| 1141 | enable_shared=no |
| 1142 | # Look at the argument we got. We use all the common list separators. |
| 1143 | IFS="${IFS= }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}," |
| 1144 | for pkg in $enableval; do |
| 1145 | IFS="$lt_save_ifs" |
| 1146 | if test "X$pkg" = "X$p"; then |
| 1147 | enable_shared=yes |
| 1148 | fi |
| 1149 | done |
| 1150 | IFS="$lt_save_ifs" |
| 1151 | ;; |
| 1152 | esac |
| 1153 | else |
| 1154 | enable_shared=yes |
| 1155 | fi; |
| 1156 | |
| 1157 | # Check whether --enable-static or --disable-static was given. |
| 1158 | if test "${enable_static+set}" = set; then |
| 1159 | enableval="$enable_static" |
| 1160 | p=${PACKAGE-default} |
| 1161 | case $enableval in |
| 1162 | yes) enable_static=yes ;; |
| 1163 | no) enable_static=no ;; |
| 1164 | *) |
| 1165 | enable_static=no |
| 1166 | # Look at the argument we got. We use all the common list separators. |
| 1167 | IFS="${IFS= }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}," |
| 1168 | for pkg in $enableval; do |
| 1169 | IFS="$lt_save_ifs" |
| 1170 | if test "X$pkg" = "X$p"; then |
| 1171 | enable_static=yes |
| 1172 | fi |
| 1173 | done |
| 1174 | IFS="$lt_save_ifs" |
| 1175 | ;; |
| 1176 | esac |
| 1177 | else |
| 1178 | enable_static=yes |
| 1179 | fi; |
| 1180 | |
| 1181 | # Check whether --enable-fast-install or --disable-fast-install was given. |
| 1182 | if test "${enable_fast_install+set}" = set; then |
| 1183 | enableval="$enable_fast_install" |
| 1184 | p=${PACKAGE-default} |
| 1185 | case $enableval in |
| 1186 | yes) enable_fast_install=yes ;; |
| 1187 | no) enable_fast_install=no ;; |
| 1188 | *) |
| 1189 | enable_fast_install=no |
| 1190 | # Look at the argument we got. We use all the common list separators. |
| 1191 | IFS="${IFS= }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}," |
| 1192 | for pkg in $enableval; do |
| 1193 | IFS="$lt_save_ifs" |
| 1194 | if test "X$pkg" = "X$p"; then |
| 1195 | enable_fast_install=yes |
| 1196 | fi |
| 1197 | done |
| 1198 | IFS="$lt_save_ifs" |
| 1199 | ;; |
| 1200 | esac |
| 1201 | else |
| 1202 | enable_fast_install=yes |
| 1203 | fi; |
| 1204 | |
| 1205 | ac_aux_dir= |
| 1206 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1207 | if test -f $ac_dir/install-sh; then |
| 1208 | ac_aux_dir=$ac_dir |
| 1209 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1210 | break |
| 1211 | elif test -f $ac_dir/install.sh; then |
| 1212 | ac_aux_dir=$ac_dir |
| 1213 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1214 | break |
| 1215 | elif test -f $ac_dir/shtool; then |
| 1216 | ac_aux_dir=$ac_dir |
| 1217 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1218 | break |
| 1219 | fi |
| 1220 | done |
| 1221 | if test -z "$ac_aux_dir"; then |
| 1222 | { { echo "$as_me:1222: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 1223 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 1224 | { (exit 1); exit 1; }; } |
| 1225 | fi |
| 1226 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1227 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1228 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1229 | |
| 1230 | # Make sure we can run config.sub. |
| 1231 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 1232 | { { echo "$as_me:1232: error: cannot run $ac_config_sub" >&5 |
| 1233 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1234 | { (exit 1); exit 1; }; } |
| 1235 | |
| 1236 | echo "$as_me:1236: checking build system type" >&5 |
| 1237 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1238 | if test "${ac_cv_build+set}" = set; then |
| 1239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1240 | else |
| 1241 | ac_cv_build_alias=$build_alias |
| 1242 | test -z "$ac_cv_build_alias" && |
| 1243 | ac_cv_build_alias=`$ac_config_guess` |
| 1244 | test -z "$ac_cv_build_alias" && |
| 1245 | { { echo "$as_me:1245: error: cannot guess build type; you must specify one" >&5 |
| 1246 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1247 | { (exit 1); exit 1; }; } |
| 1248 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1249 | { { echo "$as_me:1249: error: $ac_config_sub $ac_cv_build_alias failed." >&5 |
| 1250 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} |
| 1251 | { (exit 1); exit 1; }; } |
| 1252 | |
| 1253 | fi |
| 1254 | echo "$as_me:1254: result: $ac_cv_build" >&5 |
| 1255 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1256 | build=$ac_cv_build |
| 1257 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1258 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1259 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1260 | |
| 1261 | echo "$as_me:1261: checking host system type" >&5 |
| 1262 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1263 | if test "${ac_cv_host+set}" = set; then |
| 1264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1265 | else |
| 1266 | ac_cv_host_alias=$host_alias |
| 1267 | test -z "$ac_cv_host_alias" && |
| 1268 | ac_cv_host_alias=$ac_cv_build_alias |
| 1269 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 1270 | { { echo "$as_me:1270: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 1271 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1272 | { (exit 1); exit 1; }; } |
| 1273 | |
| 1274 | fi |
| 1275 | echo "$as_me:1275: result: $ac_cv_host" >&5 |
| 1276 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1277 | host=$ac_cv_host |
| 1278 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1279 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1280 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1281 | |
| 1282 | ac_ext=c |
| 1283 | ac_cpp='$CPP $CPPFLAGS' |
| 1284 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1285 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1286 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1287 | if test -n "$ac_tool_prefix"; then |
| 1288 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1289 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1290 | echo "$as_me:1290: checking for $ac_word" >&5 |
| 1291 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1292 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1294 | else |
| 1295 | if test -n "$CC"; then |
| 1296 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1297 | else |
| 1298 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1299 | ac_dummy="$PATH" |
| 1300 | for ac_dir in $ac_dummy; do |
| 1301 | IFS=$ac_save_IFS |
| 1302 | test -z "$ac_dir" && ac_dir=. |
| 1303 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1304 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1305 | echo "$as_me:1305: found $ac_dir/$ac_word" >&5 |
| 1306 | break |
| 1307 | done |
| 1308 | |
| 1309 | fi |
| 1310 | fi |
| 1311 | CC=$ac_cv_prog_CC |
| 1312 | if test -n "$CC"; then |
| 1313 | echo "$as_me:1313: result: $CC" >&5 |
| 1314 | echo "${ECHO_T}$CC" >&6 |
| 1315 | else |
| 1316 | echo "$as_me:1316: result: no" >&5 |
| 1317 | echo "${ECHO_T}no" >&6 |
| 1318 | fi |
| 1319 | |
| 1320 | fi |
| 1321 | if test -z "$ac_cv_prog_CC"; then |
| 1322 | ac_ct_CC=$CC |
| 1323 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1324 | set dummy gcc; ac_word=$2 |
| 1325 | echo "$as_me:1325: checking for $ac_word" >&5 |
| 1326 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1327 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1329 | else |
| 1330 | if test -n "$ac_ct_CC"; then |
| 1331 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1332 | else |
| 1333 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1334 | ac_dummy="$PATH" |
| 1335 | for ac_dir in $ac_dummy; do |
| 1336 | IFS=$ac_save_IFS |
| 1337 | test -z "$ac_dir" && ac_dir=. |
| 1338 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1339 | ac_cv_prog_ac_ct_CC="gcc" |
| 1340 | echo "$as_me:1340: found $ac_dir/$ac_word" >&5 |
| 1341 | break |
| 1342 | done |
| 1343 | |
| 1344 | fi |
| 1345 | fi |
| 1346 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1347 | if test -n "$ac_ct_CC"; then |
| 1348 | echo "$as_me:1348: result: $ac_ct_CC" >&5 |
| 1349 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1350 | else |
| 1351 | echo "$as_me:1351: result: no" >&5 |
| 1352 | echo "${ECHO_T}no" >&6 |
| 1353 | fi |
| 1354 | |
| 1355 | CC=$ac_ct_CC |
| 1356 | else |
| 1357 | CC="$ac_cv_prog_CC" |
| 1358 | fi |
| 1359 | |
| 1360 | if test -z "$CC"; then |
| 1361 | if test -n "$ac_tool_prefix"; then |
| 1362 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1363 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1364 | echo "$as_me:1364: checking for $ac_word" >&5 |
| 1365 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1366 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1368 | else |
| 1369 | if test -n "$CC"; then |
| 1370 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1371 | else |
| 1372 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1373 | ac_dummy="$PATH" |
| 1374 | for ac_dir in $ac_dummy; do |
| 1375 | IFS=$ac_save_IFS |
| 1376 | test -z "$ac_dir" && ac_dir=. |
| 1377 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1378 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1379 | echo "$as_me:1379: found $ac_dir/$ac_word" >&5 |
| 1380 | break |
| 1381 | done |
| 1382 | |
| 1383 | fi |
| 1384 | fi |
| 1385 | CC=$ac_cv_prog_CC |
| 1386 | if test -n "$CC"; then |
| 1387 | echo "$as_me:1387: result: $CC" >&5 |
| 1388 | echo "${ECHO_T}$CC" >&6 |
| 1389 | else |
| 1390 | echo "$as_me:1390: result: no" >&5 |
| 1391 | echo "${ECHO_T}no" >&6 |
| 1392 | fi |
| 1393 | |
| 1394 | fi |
| 1395 | if test -z "$ac_cv_prog_CC"; then |
| 1396 | ac_ct_CC=$CC |
| 1397 | # Extract the first word of "cc", so it can be a program name with args. |
| 1398 | set dummy cc; ac_word=$2 |
| 1399 | echo "$as_me:1399: checking for $ac_word" >&5 |
| 1400 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1401 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1403 | else |
| 1404 | if test -n "$ac_ct_CC"; then |
| 1405 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1406 | else |
| 1407 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1408 | ac_dummy="$PATH" |
| 1409 | for ac_dir in $ac_dummy; do |
| 1410 | IFS=$ac_save_IFS |
| 1411 | test -z "$ac_dir" && ac_dir=. |
| 1412 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1413 | ac_cv_prog_ac_ct_CC="cc" |
| 1414 | echo "$as_me:1414: found $ac_dir/$ac_word" >&5 |
| 1415 | break |
| 1416 | done |
| 1417 | |
| 1418 | fi |
| 1419 | fi |
| 1420 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1421 | if test -n "$ac_ct_CC"; then |
| 1422 | echo "$as_me:1422: result: $ac_ct_CC" >&5 |
| 1423 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1424 | else |
| 1425 | echo "$as_me:1425: result: no" >&5 |
| 1426 | echo "${ECHO_T}no" >&6 |
| 1427 | fi |
| 1428 | |
| 1429 | CC=$ac_ct_CC |
| 1430 | else |
| 1431 | CC="$ac_cv_prog_CC" |
| 1432 | fi |
| 1433 | |
| 1434 | fi |
| 1435 | if test -z "$CC"; then |
| 1436 | # Extract the first word of "cc", so it can be a program name with args. |
| 1437 | set dummy cc; ac_word=$2 |
| 1438 | echo "$as_me:1438: checking for $ac_word" >&5 |
| 1439 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1440 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1442 | else |
| 1443 | if test -n "$CC"; then |
| 1444 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1445 | else |
| 1446 | ac_prog_rejected=no |
| 1447 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1448 | ac_dummy="$PATH" |
| 1449 | for ac_dir in $ac_dummy; do |
| 1450 | IFS=$ac_save_IFS |
| 1451 | test -z "$ac_dir" && ac_dir=. |
| 1452 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1453 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 1454 | ac_prog_rejected=yes |
| 1455 | continue |
| 1456 | fi |
| 1457 | ac_cv_prog_CC="cc" |
| 1458 | echo "$as_me:1458: found $ac_dir/$ac_word" >&5 |
| 1459 | break |
| 1460 | done |
| 1461 | |
| 1462 | if test $ac_prog_rejected = yes; then |
| 1463 | # We found a bogon in the path, so make sure we never use it. |
| 1464 | set dummy $ac_cv_prog_CC |
| 1465 | shift |
| 1466 | if test $# != 0; then |
| 1467 | # We chose a different compiler from the bogus one. |
| 1468 | # However, it has the same basename, so the bogon will be chosen |
| 1469 | # first if we set CC to just the basename; use the full file name. |
| 1470 | shift |
| 1471 | set dummy "$ac_dir/$ac_word" ${1+"$@"} |
| 1472 | shift |
| 1473 | ac_cv_prog_CC="$@" |
| 1474 | fi |
| 1475 | fi |
| 1476 | fi |
| 1477 | fi |
| 1478 | CC=$ac_cv_prog_CC |
| 1479 | if test -n "$CC"; then |
| 1480 | echo "$as_me:1480: result: $CC" >&5 |
| 1481 | echo "${ECHO_T}$CC" >&6 |
| 1482 | else |
| 1483 | echo "$as_me:1483: result: no" >&5 |
| 1484 | echo "${ECHO_T}no" >&6 |
| 1485 | fi |
| 1486 | |
| 1487 | fi |
| 1488 | if test -z "$CC"; then |
| 1489 | if test -n "$ac_tool_prefix"; then |
| 1490 | for ac_prog in cl |
| 1491 | do |
| 1492 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1493 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1494 | echo "$as_me:1494: checking for $ac_word" >&5 |
| 1495 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1496 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1498 | else |
| 1499 | if test -n "$CC"; then |
| 1500 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1501 | else |
| 1502 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1503 | ac_dummy="$PATH" |
| 1504 | for ac_dir in $ac_dummy; do |
| 1505 | IFS=$ac_save_IFS |
| 1506 | test -z "$ac_dir" && ac_dir=. |
| 1507 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1508 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1509 | echo "$as_me:1509: found $ac_dir/$ac_word" >&5 |
| 1510 | break |
| 1511 | done |
| 1512 | |
| 1513 | fi |
| 1514 | fi |
| 1515 | CC=$ac_cv_prog_CC |
| 1516 | if test -n "$CC"; then |
| 1517 | echo "$as_me:1517: result: $CC" >&5 |
| 1518 | echo "${ECHO_T}$CC" >&6 |
| 1519 | else |
| 1520 | echo "$as_me:1520: result: no" >&5 |
| 1521 | echo "${ECHO_T}no" >&6 |
| 1522 | fi |
| 1523 | |
| 1524 | test -n "$CC" && break |
| 1525 | done |
| 1526 | fi |
| 1527 | if test -z "$CC"; then |
| 1528 | ac_ct_CC=$CC |
| 1529 | for ac_prog in cl |
| 1530 | do |
| 1531 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1532 | set dummy $ac_prog; ac_word=$2 |
| 1533 | echo "$as_me:1533: checking for $ac_word" >&5 |
| 1534 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1535 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1537 | else |
| 1538 | if test -n "$ac_ct_CC"; then |
| 1539 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1540 | else |
| 1541 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 1542 | ac_dummy="$PATH" |
| 1543 | for ac_dir in $ac_dummy; do |
| 1544 | IFS=$ac_save_IFS |
| 1545 | test -z "$ac_dir" && ac_dir=. |
| 1546 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 1547 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1548 | echo "$as_me:1548: found $ac_dir/$ac_word" >&5 |
| 1549 | break |
| 1550 | done |
| 1551 | |
| 1552 | fi |
| 1553 | fi |
| 1554 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1555 | if test -n "$ac_ct_CC"; then |
| 1556 | echo "$as_me:1556: result: $ac_ct_CC" >&5 |
| 1557 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1558 | else |
| 1559 | echo "$as_me:1559: result: no" >&5 |
| 1560 | echo "${ECHO_T}no" >&6 |
| 1561 | fi |
| 1562 | |
| 1563 | test -n "$ac_ct_CC" && break |
| 1564 | done |
| 1565 | |
| 1566 | CC=$ac_ct_CC |
| 1567 | fi |
| 1568 | |
| 1569 | fi |
| 1570 | |
| 1571 | test -z "$CC" && { { echo "$as_me:1571: error: no acceptable cc found in \$PATH" >&5 |
| 1572 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 1573 | { (exit 1); exit 1; }; } |
| 1574 | |
| 1575 | # Provide some information about the compiler. |
| 1576 | echo "$as_me:1576:" \ |
| 1577 | "checking for C compiler version" >&5 |
| 1578 | ac_compiler=`set X $ac_compile; echo $2` |
| 1579 | { (eval echo "$as_me:1579: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1580 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1581 | ac_status=$? |
| 1582 | echo "$as_me:1582: \$? = $ac_status" >&5 |
| 1583 | (exit $ac_status); } |
| 1584 | { (eval echo "$as_me:1584: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1585 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1586 | ac_status=$? |
| 1587 | echo "$as_me:1587: \$? = $ac_status" >&5 |
| 1588 | (exit $ac_status); } |
| 1589 | { (eval echo "$as_me:1589: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1590 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1591 | ac_status=$? |
| 1592 | echo "$as_me:1592: \$? = $ac_status" >&5 |
| 1593 | (exit $ac_status); } |
| 1594 | |
| 1595 | cat >conftest.$ac_ext <<_ACEOF |
| 1596 | #line 1596 "configure" |
| 1597 | #include "confdefs.h" |
| 1598 | |
| 1599 | int |
| 1600 | main () |
| 1601 | { |
| 1602 | |
| 1603 | ; |
| 1604 | return 0; |
| 1605 | } |
| 1606 | _ACEOF |
| 1607 | ac_clean_files_save=$ac_clean_files |
| 1608 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 1609 | # Try to create an executable without -o first, disregard a.out. |
| 1610 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1611 | # of exeext. |
| 1612 | echo "$as_me:1612: checking for C compiler default output" >&5 |
| 1613 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 1614 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1615 | if { (eval echo "$as_me:1615: \"$ac_link_default\"") >&5 |
| 1616 | (eval $ac_link_default) 2>&5 |
| 1617 | ac_status=$? |
| 1618 | echo "$as_me:1618: \$? = $ac_status" >&5 |
| 1619 | (exit $ac_status); }; then |
| 1620 | # Find the output, starting from the most likely. This scheme is |
| 1621 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1622 | # resort. |
| 1623 | for ac_file in `ls a.exe conftest.exe 2>/dev/null; |
| 1624 | ls a.out conftest 2>/dev/null; |
| 1625 | ls a.* conftest.* 2>/dev/null`; do |
| 1626 | case $ac_file in |
| 1627 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 1628 | a.out ) # We found the default executable, but exeext='' is most |
| 1629 | # certainly right. |
| 1630 | break;; |
| 1631 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1632 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 1633 | export ac_cv_exeext |
| 1634 | break;; |
| 1635 | * ) break;; |
| 1636 | esac |
| 1637 | done |
| 1638 | else |
| 1639 | echo "$as_me: failed program was:" >&5 |
| 1640 | cat conftest.$ac_ext >&5 |
| 1641 | { { echo "$as_me:1641: error: C compiler cannot create executables" >&5 |
| 1642 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
| 1643 | { (exit 77); exit 77; }; } |
| 1644 | fi |
| 1645 | |
| 1646 | ac_exeext=$ac_cv_exeext |
| 1647 | echo "$as_me:1647: result: $ac_file" >&5 |
| 1648 | echo "${ECHO_T}$ac_file" >&6 |
| 1649 | |
| 1650 | # Check the compiler produces executables we can run. If not, either |
| 1651 | # the compiler is broken, or we cross compile. |
| 1652 | echo "$as_me:1652: checking whether the C compiler works" >&5 |
| 1653 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1654 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1655 | # If not cross compiling, check that we can run a simple program. |
| 1656 | if test "$cross_compiling" != yes; then |
| 1657 | if { ac_try='./$ac_file' |
| 1658 | { (eval echo "$as_me:1658: \"$ac_try\"") >&5 |
| 1659 | (eval $ac_try) 2>&5 |
| 1660 | ac_status=$? |
| 1661 | echo "$as_me:1661: \$? = $ac_status" >&5 |
| 1662 | (exit $ac_status); }; }; then |
| 1663 | cross_compiling=no |
| 1664 | else |
| 1665 | if test "$cross_compiling" = maybe; then |
| 1666 | cross_compiling=yes |
| 1667 | else |
| 1668 | { { echo "$as_me:1668: error: cannot run C compiled programs. |
| 1669 | If you meant to cross compile, use \`--host'." >&5 |
| 1670 | echo "$as_me: error: cannot run C compiled programs. |
| 1671 | If you meant to cross compile, use \`--host'." >&2;} |
| 1672 | { (exit 1); exit 1; }; } |
| 1673 | fi |
| 1674 | fi |
| 1675 | fi |
| 1676 | echo "$as_me:1676: result: yes" >&5 |
| 1677 | echo "${ECHO_T}yes" >&6 |
| 1678 | |
| 1679 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 1680 | ac_clean_files=$ac_clean_files_save |
| 1681 | # Check the compiler produces executables we can run. If not, either |
| 1682 | # the compiler is broken, or we cross compile. |
| 1683 | echo "$as_me:1683: checking whether we are cross compiling" >&5 |
| 1684 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1685 | echo "$as_me:1685: result: $cross_compiling" >&5 |
| 1686 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1687 | |
| 1688 | echo "$as_me:1688: checking for executable suffix" >&5 |
| 1689 | echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 |
| 1690 | if { (eval echo "$as_me:1690: \"$ac_link\"") >&5 |
| 1691 | (eval $ac_link) 2>&5 |
| 1692 | ac_status=$? |
| 1693 | echo "$as_me:1693: \$? = $ac_status" >&5 |
| 1694 | (exit $ac_status); }; then |
| 1695 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1696 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1697 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1698 | # `rm'. |
| 1699 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
| 1700 | case $ac_file in |
| 1701 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 1702 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1703 | export ac_cv_exeext |
| 1704 | break;; |
| 1705 | * ) break;; |
| 1706 | esac |
| 1707 | done |
| 1708 | else |
| 1709 | { { echo "$as_me:1709: error: cannot compute EXEEXT: cannot compile and link" >&5 |
| 1710 | echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} |
| 1711 | { (exit 1); exit 1; }; } |
| 1712 | fi |
| 1713 | |
| 1714 | rm -f conftest$ac_cv_exeext |
| 1715 | echo "$as_me:1715: result: $ac_cv_exeext" >&5 |
| 1716 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1717 | |
| 1718 | rm -f conftest.$ac_ext |
| 1719 | EXEEXT=$ac_cv_exeext |
| 1720 | ac_exeext=$EXEEXT |
| 1721 | echo "$as_me:1721: checking for object suffix" >&5 |
| 1722 | echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 |
| 1723 | if test "${ac_cv_objext+set}" = set; then |
| 1724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1725 | else |
| 1726 | cat >conftest.$ac_ext <<_ACEOF |
| 1727 | #line 1727 "configure" |
| 1728 | #include "confdefs.h" |
| 1729 | |
| 1730 | int |
| 1731 | main () |
| 1732 | { |
| 1733 | |
| 1734 | ; |
| 1735 | return 0; |
| 1736 | } |
| 1737 | _ACEOF |
| 1738 | rm -f conftest.o conftest.obj |
| 1739 | if { (eval echo "$as_me:1739: \"$ac_compile\"") >&5 |
| 1740 | (eval $ac_compile) 2>&5 |
| 1741 | ac_status=$? |
| 1742 | echo "$as_me:1742: \$? = $ac_status" >&5 |
| 1743 | (exit $ac_status); }; then |
| 1744 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 1745 | case $ac_file in |
| 1746 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 1747 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1748 | break;; |
| 1749 | esac |
| 1750 | done |
| 1751 | else |
| 1752 | echo "$as_me: failed program was:" >&5 |
| 1753 | cat conftest.$ac_ext >&5 |
| 1754 | { { echo "$as_me:1754: error: cannot compute OBJEXT: cannot compile" >&5 |
| 1755 | echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} |
| 1756 | { (exit 1); exit 1; }; } |
| 1757 | fi |
| 1758 | |
| 1759 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 1760 | fi |
| 1761 | echo "$as_me:1761: result: $ac_cv_objext" >&5 |
| 1762 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 1763 | OBJEXT=$ac_cv_objext |
| 1764 | ac_objext=$OBJEXT |
| 1765 | echo "$as_me:1765: checking whether we are using the GNU C compiler" >&5 |
| 1766 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 1767 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 1768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1769 | else |
| 1770 | cat >conftest.$ac_ext <<_ACEOF |
| 1771 | #line 1771 "configure" |
| 1772 | #include "confdefs.h" |
| 1773 | |
| 1774 | int |
| 1775 | main () |
| 1776 | { |
| 1777 | #ifndef __GNUC__ |
| 1778 | choke me |
| 1779 | #endif |
| 1780 | |
| 1781 | ; |
| 1782 | return 0; |
| 1783 | } |
| 1784 | _ACEOF |
| 1785 | rm -f conftest.$ac_objext |
| 1786 | if { (eval echo "$as_me:1786: \"$ac_compile\"") >&5 |
| 1787 | (eval $ac_compile) 2>&5 |
| 1788 | ac_status=$? |
| 1789 | echo "$as_me:1789: \$? = $ac_status" >&5 |
| 1790 | (exit $ac_status); } && |
| 1791 | { ac_try='test -s conftest.$ac_objext' |
| 1792 | { (eval echo "$as_me:1792: \"$ac_try\"") >&5 |
| 1793 | (eval $ac_try) 2>&5 |
| 1794 | ac_status=$? |
| 1795 | echo "$as_me:1795: \$? = $ac_status" >&5 |
| 1796 | (exit $ac_status); }; }; then |
| 1797 | ac_compiler_gnu=yes |
| 1798 | else |
| 1799 | echo "$as_me: failed program was:" >&5 |
| 1800 | cat conftest.$ac_ext >&5 |
| 1801 | ac_compiler_gnu=no |
| 1802 | fi |
| 1803 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 1804 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 1805 | |
| 1806 | fi |
| 1807 | echo "$as_me:1807: result: $ac_cv_c_compiler_gnu" >&5 |
| 1808 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 1809 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 1810 | ac_test_CFLAGS=${CFLAGS+set} |
| 1811 | ac_save_CFLAGS=$CFLAGS |
| 1812 | CFLAGS="-g" |
| 1813 | echo "$as_me:1813: checking whether $CC accepts -g" >&5 |
| 1814 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 1815 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 1816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1817 | else |
| 1818 | cat >conftest.$ac_ext <<_ACEOF |
| 1819 | #line 1819 "configure" |
| 1820 | #include "confdefs.h" |
| 1821 | |
| 1822 | int |
| 1823 | main () |
| 1824 | { |
| 1825 | |
| 1826 | ; |
| 1827 | return 0; |
| 1828 | } |
| 1829 | _ACEOF |
| 1830 | rm -f conftest.$ac_objext |
| 1831 | if { (eval echo "$as_me:1831: \"$ac_compile\"") >&5 |
| 1832 | (eval $ac_compile) 2>&5 |
| 1833 | ac_status=$? |
| 1834 | echo "$as_me:1834: \$? = $ac_status" >&5 |
| 1835 | (exit $ac_status); } && |
| 1836 | { ac_try='test -s conftest.$ac_objext' |
| 1837 | { (eval echo "$as_me:1837: \"$ac_try\"") >&5 |
| 1838 | (eval $ac_try) 2>&5 |
| 1839 | ac_status=$? |
| 1840 | echo "$as_me:1840: \$? = $ac_status" >&5 |
| 1841 | (exit $ac_status); }; }; then |
| 1842 | ac_cv_prog_cc_g=yes |
| 1843 | else |
| 1844 | echo "$as_me: failed program was:" >&5 |
| 1845 | cat conftest.$ac_ext >&5 |
| 1846 | ac_cv_prog_cc_g=no |
| 1847 | fi |
| 1848 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 1849 | fi |
| 1850 | echo "$as_me:1850: result: $ac_cv_prog_cc_g" >&5 |
| 1851 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 1852 | if test "$ac_test_CFLAGS" = set; then |
| 1853 | CFLAGS=$ac_save_CFLAGS |
| 1854 | elif test $ac_cv_prog_cc_g = yes; then |
| 1855 | if test "$GCC" = yes; then |
| 1856 | CFLAGS="-g -O2" |
| 1857 | else |
| 1858 | CFLAGS="-g" |
| 1859 | fi |
| 1860 | else |
| 1861 | if test "$GCC" = yes; then |
| 1862 | CFLAGS="-O2" |
| 1863 | else |
| 1864 | CFLAGS= |
| 1865 | fi |
| 1866 | fi |
| 1867 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 1868 | # in C++ we need to declare it. In case someone uses the same compiler |
| 1869 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 1870 | # the declaration of exit, since it's the most demanding environment. |
| 1871 | cat >conftest.$ac_ext <<_ACEOF |
| 1872 | #ifndef __cplusplus |
| 1873 | choke me |
| 1874 | #endif |
| 1875 | _ACEOF |
| 1876 | rm -f conftest.$ac_objext |
| 1877 | if { (eval echo "$as_me:1877: \"$ac_compile\"") >&5 |
| 1878 | (eval $ac_compile) 2>&5 |
| 1879 | ac_status=$? |
| 1880 | echo "$as_me:1880: \$? = $ac_status" >&5 |
| 1881 | (exit $ac_status); } && |
| 1882 | { ac_try='test -s conftest.$ac_objext' |
| 1883 | { (eval echo "$as_me:1883: \"$ac_try\"") >&5 |
| 1884 | (eval $ac_try) 2>&5 |
| 1885 | ac_status=$? |
| 1886 | echo "$as_me:1886: \$? = $ac_status" >&5 |
| 1887 | (exit $ac_status); }; }; then |
| 1888 | for ac_declaration in \ |
| 1889 | ''\ |
| 1890 | '#include <stdlib.h>' \ |
| 1891 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 1892 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 1893 | 'extern "C" void exit (int) throw ();' \ |
| 1894 | 'extern "C" void exit (int);' \ |
| 1895 | 'void exit (int);' |
| 1896 | do |
| 1897 | cat >conftest.$ac_ext <<_ACEOF |
| 1898 | #line 1898 "configure" |
| 1899 | #include "confdefs.h" |
| 1900 | #include <stdlib.h> |
| 1901 | $ac_declaration |
| 1902 | int |
| 1903 | main () |
| 1904 | { |
| 1905 | exit (42); |
| 1906 | ; |
| 1907 | return 0; |
| 1908 | } |
| 1909 | _ACEOF |
| 1910 | rm -f conftest.$ac_objext |
| 1911 | if { (eval echo "$as_me:1911: \"$ac_compile\"") >&5 |
| 1912 | (eval $ac_compile) 2>&5 |
| 1913 | ac_status=$? |
| 1914 | echo "$as_me:1914: \$? = $ac_status" >&5 |
| 1915 | (exit $ac_status); } && |
| 1916 | { ac_try='test -s conftest.$ac_objext' |
| 1917 | { (eval echo "$as_me:1917: \"$ac_try\"") >&5 |
| 1918 | (eval $ac_try) 2>&5 |
| 1919 | ac_status=$? |
| 1920 | echo "$as_me:1920: \$? = $ac_status" >&5 |
| 1921 | (exit $ac_status); }; }; then |
| 1922 | : |
| 1923 | else |
| 1924 | echo "$as_me: failed program was:" >&5 |
| 1925 | cat conftest.$ac_ext >&5 |
| 1926 | continue |
| 1927 | fi |
| 1928 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 1929 | cat >conftest.$ac_ext <<_ACEOF |
| 1930 | #line 1930 "configure" |
| 1931 | #include "confdefs.h" |
| 1932 | $ac_declaration |
| 1933 | int |
| 1934 | main () |
| 1935 | { |
| 1936 | exit (42); |
| 1937 | ; |
| 1938 | return 0; |
| 1939 | } |
| 1940 | _ACEOF |
| 1941 | rm -f conftest.$ac_objext |
| 1942 | if { (eval echo "$as_me:1942: \"$ac_compile\"") >&5 |
| 1943 | (eval $ac_compile) 2>&5 |
| 1944 | ac_status=$? |
| 1945 | echo "$as_me:1945: \$? = $ac_status" >&5 |
| 1946 | (exit $ac_status); } && |
| 1947 | { ac_try='test -s conftest.$ac_objext' |
| 1948 | { (eval echo "$as_me:1948: \"$ac_try\"") >&5 |
| 1949 | (eval $ac_try) 2>&5 |
| 1950 | ac_status=$? |
| 1951 | echo "$as_me:1951: \$? = $ac_status" >&5 |
| 1952 | (exit $ac_status); }; }; then |
| 1953 | break |
| 1954 | else |
| 1955 | echo "$as_me: failed program was:" >&5 |
| 1956 | cat conftest.$ac_ext >&5 |
| 1957 | fi |
| 1958 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 1959 | done |
| 1960 | rm -f conftest* |
| 1961 | if test -n "$ac_declaration"; then |
| 1962 | echo '#ifdef __cplusplus' >>confdefs.h |
| 1963 | echo $ac_declaration >>confdefs.h |
| 1964 | echo '#endif' >>confdefs.h |
| 1965 | fi |
| 1966 | |
| 1967 | else |
| 1968 | echo "$as_me: failed program was:" >&5 |
| 1969 | cat conftest.$ac_ext >&5 |
| 1970 | fi |
| 1971 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 1972 | ac_ext=c |
| 1973 | ac_cpp='$CPP $CPPFLAGS' |
| 1974 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1975 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1976 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1977 | |
| 1978 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 1979 | if test "${with_gnu_ld+set}" = set; then |
| 1980 | withval="$with_gnu_ld" |
| 1981 | test "$withval" = no || with_gnu_ld=yes |
| 1982 | else |
| 1983 | with_gnu_ld=no |
| 1984 | fi; |
| 1985 | ac_prog=ld |
| 1986 | if test "$GCC" = yes; then |
| 1987 | # Check if gcc -print-prog-name=ld gives a path. |
| 1988 | echo "$as_me:1988: checking for ld used by GCC" >&5 |
| 1989 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
| 1990 | case $host in |
| 1991 | *-*-mingw*) |
| 1992 | # gcc leaves a trailing carriage return which upsets mingw |
| 1993 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 1994 | *) |
| 1995 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 1996 | esac |
| 1997 | case $ac_prog in |
| 1998 | # Accept absolute paths. |
| 1999 | [\\/]* | ?:[\\/]*) |
| 2000 | re_direlt='/[^/][^/]*/\.\./' |
| 2001 | # Canonicalize the path of ld |
| 2002 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 2003 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 2004 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 2005 | done |
| 2006 | test -z "$LD" && LD="$ac_prog" |
| 2007 | ;; |
| 2008 | "") |
| 2009 | # If it fails, then pretend we aren't using GCC. |
| 2010 | ac_prog=ld |
| 2011 | ;; |
| 2012 | *) |
| 2013 | # If it is relative, then search for the first ld in PATH. |
| 2014 | with_gnu_ld=unknown |
| 2015 | ;; |
| 2016 | esac |
| 2017 | elif test "$with_gnu_ld" = yes; then |
| 2018 | echo "$as_me:2018: checking for GNU ld" >&5 |
| 2019 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 2020 | else |
| 2021 | echo "$as_me:2021: checking for non-GNU ld" >&5 |
| 2022 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 2023 | fi |
| 2024 | if test "${lt_cv_path_LD+set}" = set; then |
| 2025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2026 | else |
| 2027 | if test -z "$LD"; then |
| 2028 | IFS="${IFS= }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 2029 | for ac_dir in $PATH; do |
| 2030 | IFS="$lt_save_ifs" |
| 2031 | test -z "$ac_dir" && ac_dir=. |
| 2032 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 2033 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 2034 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 2035 | # but apparently some GNU ld's only accept -v. |
| 2036 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 2037 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
| 2038 | test "$with_gnu_ld" != no && break |
| 2039 | else |
| 2040 | test "$with_gnu_ld" != yes && break |
| 2041 | fi |
| 2042 | fi |
| 2043 | done |
| 2044 | IFS="$lt_save_ifs" |
| 2045 | else |
| 2046 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 2047 | fi |
| 2048 | fi |
| 2049 | |
| 2050 | LD="$lt_cv_path_LD" |
| 2051 | if test -n "$LD"; then |
| 2052 | echo "$as_me:2052: result: $LD" >&5 |
| 2053 | echo "${ECHO_T}$LD" >&6 |
| 2054 | else |
| 2055 | echo "$as_me:2055: result: no" >&5 |
| 2056 | echo "${ECHO_T}no" >&6 |
| 2057 | fi |
| 2058 | test -z "$LD" && { { echo "$as_me:2058: error: no acceptable ld found in \$PATH" >&5 |
| 2059 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 2060 | { (exit 1); exit 1; }; } |
| 2061 | echo "$as_me:2061: checking if the linker ($LD) is GNU ld" >&5 |
| 2062 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 2063 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 2064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2065 | else |
| 2066 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 2067 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
| 2068 | lt_cv_prog_gnu_ld=yes |
| 2069 | else |
| 2070 | lt_cv_prog_gnu_ld=no |
| 2071 | fi |
| 2072 | fi |
| 2073 | echo "$as_me:2073: result: $lt_cv_prog_gnu_ld" >&5 |
| 2074 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 2075 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 2076 | |
| 2077 | echo "$as_me:2077: checking for $LD option to reload object files" >&5 |
| 2078 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
| 2079 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 2080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2081 | else |
| 2082 | lt_cv_ld_reload_flag='-r' |
| 2083 | fi |
| 2084 | echo "$as_me:2084: result: $lt_cv_ld_reload_flag" >&5 |
| 2085 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
| 2086 | reload_flag=$lt_cv_ld_reload_flag |
| 2087 | case $reload_flag in |
| 2088 | "" | " "*) ;; |
| 2089 | *) reload_flag=" $reload_flag" ;; |
| 2090 | esac |
| 2091 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 2092 | |
| 2093 | echo "$as_me:2093: checking for BSD-compatible nm" >&5 |
| 2094 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
| 2095 | if test "${lt_cv_path_NM+set}" = set; then |
| 2096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2097 | else |
| 2098 | if test -n "$NM"; then |
| 2099 | # Let the user override the test. |
| 2100 | lt_cv_path_NM="$NM" |
| 2101 | else |
| 2102 | IFS="${IFS= }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 2103 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
| 2104 | IFS="$lt_save_ifs" |
| 2105 | test -z "$ac_dir" && ac_dir=. |
| 2106 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
| 2107 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then |
| 2108 | # Check to see if the nm accepts a BSD-compat flag. |
| 2109 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 2110 | # nm: unknown option "B" ignored |
| 2111 | # Tru64's nm complains that /dev/null is an invalid object file |
| 2112 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then |
| 2113 | lt_cv_path_NM="$tmp_nm -B" |
| 2114 | break |
| 2115 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
| 2116 | lt_cv_path_NM="$tmp_nm -p" |
| 2117 | break |
| 2118 | else |
| 2119 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 2120 | continue # so that we can try to find one that supports BSD flags |
| 2121 | fi |
| 2122 | fi |
| 2123 | done |
| 2124 | IFS="$lt_save_ifs" |
| 2125 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 2126 | fi |
| 2127 | fi |
| 2128 | echo "$as_me:2128: result: $lt_cv_path_NM" >&5 |
| 2129 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
| 2130 | NM="$lt_cv_path_NM" |
| 2131 | |
| 2132 | echo "$as_me:2132: checking whether ln -s works" >&5 |
| 2133 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 2134 | LN_S=$as_ln_s |
| 2135 | if test "$LN_S" = "ln -s"; then |
| 2136 | echo "$as_me:2136: result: yes" >&5 |
| 2137 | echo "${ECHO_T}yes" >&6 |
| 2138 | else |
| 2139 | echo "$as_me:2139: result: no, using $LN_S" >&5 |
| 2140 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 2141 | fi |
| 2142 | |
| 2143 | echo "$as_me:2143: checking how to recognise dependant libraries" >&5 |
| 2144 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 |
| 2145 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 2146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2147 | else |
| 2148 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 2149 | lt_cv_file_magic_test_file= |
| 2150 | lt_cv_deplibs_check_method='unknown' |
| 2151 | # Need to set the preceding variable on all platforms that support |
| 2152 | # interlibrary dependencies. |
| 2153 | # 'none' -- dependencies not supported. |
| 2154 | # `unknown' -- same as none, but documents that we really don't know. |
| 2155 | # 'pass_all' -- all dependencies passed with no checks. |
| 2156 | # 'test_compile' -- check by making test program. |
| 2157 | # ['file_magic [regex]'] -- check by looking for files in library path |
| 2158 | # which responds to the $file_magic_cmd with a given egrep regex. |
| 2159 | # If you have `file' or equivalent on your system and you're not sure |
| 2160 | # whether `pass_all' will *always* work, you probably want this one. |
| 2161 | |
| 2162 | case $host_os in |
| 2163 | aix4* | aix5*) |
| 2164 | lt_cv_deplibs_check_method=pass_all |
| 2165 | ;; |
| 2166 | |
| 2167 | beos*) |
| 2168 | lt_cv_deplibs_check_method=pass_all |
| 2169 | ;; |
| 2170 | |
| 2171 | bsdi4*) |
| 2172 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 2173 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 2174 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 2175 | ;; |
| 2176 | |
| 2177 | cygwin* | mingw* | pw32*) |
| 2178 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 2179 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 2180 | ;; |
| 2181 | |
| 2182 | darwin* | rhapsody*) |
| 2183 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
| 2184 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 2185 | case "$host_os" in |
| 2186 | rhapsody* | darwin1.012) |
| 2187 | lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` |
| 2188 | ;; |
| 2189 | *) # Darwin 1.3 on |
| 2190 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
| 2191 | ;; |
| 2192 | esac |
| 2193 | ;; |
| 2194 | |
| 2195 | freebsd*) |
| 2196 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 2197 | case $host_cpu in |
| 2198 | i*86 ) |
| 2199 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 2200 | # Let's accept both of them until this is cleared up. |
| 2201 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
| 2202 | lt_cv_file_magic_cmd=/usr/bin/file |
| 2203 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 2204 | ;; |
| 2205 | esac |
| 2206 | else |
| 2207 | lt_cv_deplibs_check_method=pass_all |
| 2208 | fi |
| 2209 | ;; |
| 2210 | |
| 2211 | gnu*) |
| 2212 | lt_cv_deplibs_check_method=pass_all |
| 2213 | ;; |
| 2214 | |
| 2215 | hpux10.20* | hpux11*) |
| 2216 | lt_cv_file_magic_cmd=/usr/bin/file |
| 2217 | if test "$host_cpu" = ia64; then |
| 2218 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 2219 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 2220 | else |
| 2221 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 2222 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 2223 | fi |
| 2224 | ;; |
| 2225 | |
| 2226 | irix5* | irix6*) |
| 2227 | case $host_os in |
| 2228 | irix5*) |
| 2229 | # this will be overridden with pass_all, but let us keep it just in case |
| 2230 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
| 2231 | ;; |
| 2232 | *) |
| 2233 | case $LD in |
| 2234 | *-32|*"-32 ") libmagic=32-bit;; |
| 2235 | *-n32|*"-n32 ") libmagic=N32;; |
| 2236 | *-64|*"-64 ") libmagic=64-bit;; |
| 2237 | *) libmagic=never-match;; |
| 2238 | esac |
| 2239 | # this will be overridden with pass_all, but let us keep it just in case |
| 2240 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
| 2241 | ;; |
| 2242 | esac |
| 2243 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
| 2244 | lt_cv_deplibs_check_method=pass_all |
| 2245 | ;; |
| 2246 | |
| 2247 | # This must be Linux ELF. |
| 2248 | linux*) |
| 2249 | case $host_cpu in |
| 2250 | alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*) |
| 2251 | lt_cv_deplibs_check_method=pass_all ;; |
| 2252 | *) |
| 2253 | # glibc up to 2.1.1 does not perform some relocations on ARM |
| 2254 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
| 2255 | esac |
| 2256 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
| 2257 | ;; |
| 2258 | |
| 2259 | netbsd*) |
| 2260 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 2261 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
| 2262 | else |
| 2263 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
| 2264 | fi |
| 2265 | ;; |
| 2266 | |
| 2267 | newos6*) |
| 2268 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 2269 | lt_cv_file_magic_cmd=/usr/bin/file |
| 2270 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 2271 | ;; |
| 2272 | |
| 2273 | nto-qnx) |
| 2274 | lt_cv_deplibs_check_method=unknown |
| 2275 | ;; |
| 2276 | |
| 2277 | osf3* | osf4* | osf5*) |
| 2278 | # this will be overridden with pass_all, but let us keep it just in case |
| 2279 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
| 2280 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 2281 | lt_cv_deplibs_check_method=pass_all |
| 2282 | ;; |
| 2283 | |
| 2284 | sco3.2v5*) |
| 2285 | lt_cv_deplibs_check_method=pass_all |
| 2286 | ;; |
| 2287 | |
| 2288 | solaris*) |
| 2289 | lt_cv_deplibs_check_method=pass_all |
| 2290 | lt_cv_file_magic_test_file=/lib/libc.so |
| 2291 | ;; |
| 2292 | |
| 2293 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 2294 | case $host_vendor in |
| 2295 | motorola) |
| 2296 | 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]' |
| 2297 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 2298 | ;; |
| 2299 | ncr) |
| 2300 | lt_cv_deplibs_check_method=pass_all |
| 2301 | ;; |
| 2302 | sequent) |
| 2303 | lt_cv_file_magic_cmd='/bin/file' |
| 2304 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 2305 | ;; |
| 2306 | sni) |
| 2307 | lt_cv_file_magic_cmd='/bin/file' |
| 2308 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 2309 | lt_cv_file_magic_test_file=/lib/libc.so |
| 2310 | ;; |
| 2311 | esac |
| 2312 | ;; |
| 2313 | |
| 2314 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) |
| 2315 | lt_cv_deplibs_check_method=pass_all |
| 2316 | ;; |
| 2317 | esac |
| 2318 | |
| 2319 | fi |
| 2320 | echo "$as_me:2320: result: $lt_cv_deplibs_check_method" >&5 |
| 2321 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
| 2322 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 2323 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 2324 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 2325 | |
| 2326 | # If no C compiler was specified, use CC. |
| 2327 | LTCC=${LTCC-"$CC"} |
| 2328 | |
| 2329 | # Allow CC to be a program name with arguments. |
| 2330 | set dummy $CC |
| 2331 | compiler="$2" |
| 2332 | |
| 2333 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 2334 | if test "${enable_libtool_lock+set}" = set; then |
| 2335 | enableval="$enable_libtool_lock" |
| 2336 | |
| 2337 | fi; |
| 2338 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 2339 | |
| 2340 | # Some flags need to be propagated to the compiler or linker for good |
| 2341 | # libtool support. |
| 2342 | case $host in |
| 2343 | ia64-*-hpux*) |
| 2344 | # Find out which ABI we are using. |
| 2345 | echo 'int i;' > conftest.$ac_ext |
| 2346 | if { (eval echo "$as_me:2346: \"$ac_compile\"") >&5 |
| 2347 | (eval $ac_compile) 2>&5 |
| 2348 | ac_status=$? |
| 2349 | echo "$as_me:2349: \$? = $ac_status" >&5 |
| 2350 | (exit $ac_status); }; then |
| 2351 | case `/usr/bin/file conftest.$ac_objext` in |
| 2352 | *ELF-32*) |
| 2353 | HPUX_IA64_MODE="32" |
| 2354 | ;; |
| 2355 | *ELF-64*) |
| 2356 | HPUX_IA64_MODE="64" |
| 2357 | ;; |
| 2358 | esac |
| 2359 | fi |
| 2360 | rm -rf conftest* |
| 2361 | ;; |
| 2362 | *-*-irix6*) |
| 2363 | # Find out which ABI we are using. |
| 2364 | echo '#line 2364 "configure"' > conftest.$ac_ext |
| 2365 | if { (eval echo "$as_me:2365: \"$ac_compile\"") >&5 |
| 2366 | (eval $ac_compile) 2>&5 |
| 2367 | ac_status=$? |
| 2368 | echo "$as_me:2368: \$? = $ac_status" >&5 |
| 2369 | (exit $ac_status); }; then |
| 2370 | case `/usr/bin/file conftest.$ac_objext` in |
| 2371 | *32-bit*) |
| 2372 | LD="${LD-ld} -32" |
| 2373 | ;; |
| 2374 | *N32*) |
| 2375 | LD="${LD-ld} -n32" |
| 2376 | ;; |
| 2377 | *64-bit*) |
| 2378 | LD="${LD-ld} -64" |
| 2379 | ;; |
| 2380 | esac |
| 2381 | fi |
| 2382 | rm -rf conftest* |
| 2383 | ;; |
| 2384 | |
| 2385 | *-*-sco3.2v5*) |
| 2386 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 2387 | SAVE_CFLAGS="$CFLAGS" |
| 2388 | CFLAGS="$CFLAGS -belf" |
| 2389 | echo "$as_me:2389: checking whether the C compiler needs -belf" >&5 |
| 2390 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
| 2391 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 2392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2393 | else |
| 2394 | ac_ext=c |
| 2395 | ac_cpp='$CPP $CPPFLAGS' |
| 2396 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2397 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2398 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2399 | |
| 2400 | cat >conftest.$ac_ext <<_ACEOF |
| 2401 | #line 2401 "configure" |
| 2402 | #include "confdefs.h" |
| 2403 | |
| 2404 | int |
| 2405 | main () |
| 2406 | { |
| 2407 | |
| 2408 | ; |
| 2409 | return 0; |
| 2410 | } |
| 2411 | _ACEOF |
| 2412 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2413 | if { (eval echo "$as_me:2413: \"$ac_link\"") >&5 |
| 2414 | (eval $ac_link) 2>&5 |
| 2415 | ac_status=$? |
| 2416 | echo "$as_me:2416: \$? = $ac_status" >&5 |
| 2417 | (exit $ac_status); } && |
| 2418 | { ac_try='test -s conftest$ac_exeext' |
| 2419 | { (eval echo "$as_me:2419: \"$ac_try\"") >&5 |
| 2420 | (eval $ac_try) 2>&5 |
| 2421 | ac_status=$? |
| 2422 | echo "$as_me:2422: \$? = $ac_status" >&5 |
| 2423 | (exit $ac_status); }; }; then |
| 2424 | lt_cv_cc_needs_belf=yes |
| 2425 | else |
| 2426 | echo "$as_me: failed program was:" >&5 |
| 2427 | cat conftest.$ac_ext >&5 |
| 2428 | lt_cv_cc_needs_belf=no |
| 2429 | fi |
| 2430 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 2431 | ac_ext=c |
| 2432 | ac_cpp='$CPP $CPPFLAGS' |
| 2433 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2434 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2435 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2436 | |
| 2437 | fi |
| 2438 | echo "$as_me:2438: result: $lt_cv_cc_needs_belf" >&5 |
| 2439 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
| 2440 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 2441 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 2442 | CFLAGS="$SAVE_CFLAGS" |
| 2443 | fi |
| 2444 | ;; |
| 2445 | |
| 2446 | esac |
| 2447 | |
| 2448 | need_locks="$enable_libtool_lock" |
| 2449 | |
| 2450 | ac_ext=c |
| 2451 | ac_cpp='$CPP $CPPFLAGS' |
| 2452 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2453 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2454 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2455 | echo "$as_me:2455: checking how to run the C preprocessor" >&5 |
| 2456 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 2457 | # On Suns, sometimes $CPP names a directory. |
| 2458 | if test -n "$CPP" && test -d "$CPP"; then |
| 2459 | CPP= |
| 2460 | fi |
| 2461 | if test -z "$CPP"; then |
| 2462 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2464 | else |
| 2465 | # Double quotes because CPP needs to be expanded |
| 2466 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2467 | do |
| 2468 | ac_preproc_ok=false |
| 2469 | for ac_c_preproc_warn_flag in '' yes |
| 2470 | do |
| 2471 | # Use a header file that comes with gcc, so configuring glibc |
| 2472 | # with a fresh cross-compiler works. |
| 2473 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2474 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2475 | cat >conftest.$ac_ext <<_ACEOF |
| 2476 | #line 2476 "configure" |
| 2477 | #include "confdefs.h" |
| 2478 | #include <assert.h> |
| 2479 | Syntax error |
| 2480 | _ACEOF |
| 2481 | if { (eval echo "$as_me:2481: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2482 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2483 | ac_status=$? |
| 2484 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2485 | rm -f conftest.er1 |
| 2486 | cat conftest.err >&5 |
| 2487 | echo "$as_me:2487: \$? = $ac_status" >&5 |
| 2488 | (exit $ac_status); } >/dev/null; then |
| 2489 | if test -s conftest.err; then |
| 2490 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2491 | else |
| 2492 | ac_cpp_err= |
| 2493 | fi |
| 2494 | else |
| 2495 | ac_cpp_err=yes |
| 2496 | fi |
| 2497 | if test -z "$ac_cpp_err"; then |
| 2498 | : |
| 2499 | else |
| 2500 | echo "$as_me: failed program was:" >&5 |
| 2501 | cat conftest.$ac_ext >&5 |
| 2502 | # Broken: fails on valid input. |
| 2503 | continue |
| 2504 | fi |
| 2505 | rm -f conftest.err conftest.$ac_ext |
| 2506 | |
| 2507 | # OK, works on sane cases. Now check whether non-existent headers |
| 2508 | # can be detected and how. |
| 2509 | cat >conftest.$ac_ext <<_ACEOF |
| 2510 | #line 2510 "configure" |
| 2511 | #include "confdefs.h" |
| 2512 | #include <ac_nonexistent.h> |
| 2513 | _ACEOF |
| 2514 | if { (eval echo "$as_me:2514: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2515 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2516 | ac_status=$? |
| 2517 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2518 | rm -f conftest.er1 |
| 2519 | cat conftest.err >&5 |
| 2520 | echo "$as_me:2520: \$? = $ac_status" >&5 |
| 2521 | (exit $ac_status); } >/dev/null; then |
| 2522 | if test -s conftest.err; then |
| 2523 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2524 | else |
| 2525 | ac_cpp_err= |
| 2526 | fi |
| 2527 | else |
| 2528 | ac_cpp_err=yes |
| 2529 | fi |
| 2530 | if test -z "$ac_cpp_err"; then |
| 2531 | # Broken: success on invalid input. |
| 2532 | continue |
| 2533 | else |
| 2534 | echo "$as_me: failed program was:" >&5 |
| 2535 | cat conftest.$ac_ext >&5 |
| 2536 | # Passes both tests. |
| 2537 | ac_preproc_ok=: |
| 2538 | break |
| 2539 | fi |
| 2540 | rm -f conftest.err conftest.$ac_ext |
| 2541 | |
| 2542 | done |
| 2543 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2544 | rm -f conftest.err conftest.$ac_ext |
| 2545 | if $ac_preproc_ok; then |
| 2546 | break |
| 2547 | fi |
| 2548 | |
| 2549 | done |
| 2550 | ac_cv_prog_CPP=$CPP |
| 2551 | |
| 2552 | fi |
| 2553 | CPP=$ac_cv_prog_CPP |
| 2554 | else |
| 2555 | ac_cv_prog_CPP=$CPP |
| 2556 | fi |
| 2557 | echo "$as_me:2557: result: $CPP" >&5 |
| 2558 | echo "${ECHO_T}$CPP" >&6 |
| 2559 | ac_preproc_ok=false |
| 2560 | for ac_c_preproc_warn_flag in '' yes |
| 2561 | do |
| 2562 | # Use a header file that comes with gcc, so configuring glibc |
| 2563 | # with a fresh cross-compiler works. |
| 2564 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2565 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2566 | cat >conftest.$ac_ext <<_ACEOF |
| 2567 | #line 2567 "configure" |
| 2568 | #include "confdefs.h" |
| 2569 | #include <assert.h> |
| 2570 | Syntax error |
| 2571 | _ACEOF |
| 2572 | if { (eval echo "$as_me:2572: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2573 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2574 | ac_status=$? |
| 2575 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2576 | rm -f conftest.er1 |
| 2577 | cat conftest.err >&5 |
| 2578 | echo "$as_me:2578: \$? = $ac_status" >&5 |
| 2579 | (exit $ac_status); } >/dev/null; then |
| 2580 | if test -s conftest.err; then |
| 2581 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2582 | else |
| 2583 | ac_cpp_err= |
| 2584 | fi |
| 2585 | else |
| 2586 | ac_cpp_err=yes |
| 2587 | fi |
| 2588 | if test -z "$ac_cpp_err"; then |
| 2589 | : |
| 2590 | else |
| 2591 | echo "$as_me: failed program was:" >&5 |
| 2592 | cat conftest.$ac_ext >&5 |
| 2593 | # Broken: fails on valid input. |
| 2594 | continue |
| 2595 | fi |
| 2596 | rm -f conftest.err conftest.$ac_ext |
| 2597 | |
| 2598 | # OK, works on sane cases. Now check whether non-existent headers |
| 2599 | # can be detected and how. |
| 2600 | cat >conftest.$ac_ext <<_ACEOF |
| 2601 | #line 2601 "configure" |
| 2602 | #include "confdefs.h" |
| 2603 | #include <ac_nonexistent.h> |
| 2604 | _ACEOF |
| 2605 | if { (eval echo "$as_me:2605: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2606 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2607 | ac_status=$? |
| 2608 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2609 | rm -f conftest.er1 |
| 2610 | cat conftest.err >&5 |
| 2611 | echo "$as_me:2611: \$? = $ac_status" >&5 |
| 2612 | (exit $ac_status); } >/dev/null; then |
| 2613 | if test -s conftest.err; then |
| 2614 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2615 | else |
| 2616 | ac_cpp_err= |
| 2617 | fi |
| 2618 | else |
| 2619 | ac_cpp_err=yes |
| 2620 | fi |
| 2621 | if test -z "$ac_cpp_err"; then |
| 2622 | # Broken: success on invalid input. |
| 2623 | continue |
| 2624 | else |
| 2625 | echo "$as_me: failed program was:" >&5 |
| 2626 | cat conftest.$ac_ext >&5 |
| 2627 | # Passes both tests. |
| 2628 | ac_preproc_ok=: |
| 2629 | break |
| 2630 | fi |
| 2631 | rm -f conftest.err conftest.$ac_ext |
| 2632 | |
| 2633 | done |
| 2634 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2635 | rm -f conftest.err conftest.$ac_ext |
| 2636 | if $ac_preproc_ok; then |
| 2637 | : |
| 2638 | else |
| 2639 | { { echo "$as_me:2639: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
| 2640 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
| 2641 | { (exit 1); exit 1; }; } |
| 2642 | fi |
| 2643 | |
| 2644 | ac_ext=c |
| 2645 | ac_cpp='$CPP $CPPFLAGS' |
| 2646 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2647 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2648 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2649 | |
| 2650 | for ac_header in dlfcn.h |
| 2651 | do |
| 2652 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 2653 | echo "$as_me:2653: checking for $ac_header" >&5 |
| 2654 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 2655 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 2656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2657 | else |
| 2658 | cat >conftest.$ac_ext <<_ACEOF |
| 2659 | #line 2659 "configure" |
| 2660 | #include "confdefs.h" |
| 2661 | #include <$ac_header> |
| 2662 | _ACEOF |
| 2663 | if { (eval echo "$as_me:2663: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2664 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2665 | ac_status=$? |
| 2666 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2667 | rm -f conftest.er1 |
| 2668 | cat conftest.err >&5 |
| 2669 | echo "$as_me:2669: \$? = $ac_status" >&5 |
| 2670 | (exit $ac_status); } >/dev/null; then |
| 2671 | if test -s conftest.err; then |
| 2672 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2673 | else |
| 2674 | ac_cpp_err= |
| 2675 | fi |
| 2676 | else |
| 2677 | ac_cpp_err=yes |
| 2678 | fi |
| 2679 | if test -z "$ac_cpp_err"; then |
| 2680 | eval "$as_ac_Header=yes" |
| 2681 | else |
| 2682 | echo "$as_me: failed program was:" >&5 |
| 2683 | cat conftest.$ac_ext >&5 |
| 2684 | eval "$as_ac_Header=no" |
| 2685 | fi |
| 2686 | rm -f conftest.err conftest.$ac_ext |
| 2687 | fi |
| 2688 | echo "$as_me:2688: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 2689 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 2690 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 2691 | cat >>confdefs.h <<EOF |
| 2692 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 2693 | EOF |
| 2694 | |
| 2695 | fi |
| 2696 | done |
| 2697 | |
| 2698 | ac_ext=cc |
| 2699 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2700 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2701 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2702 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2703 | if test -n "$ac_tool_prefix"; then |
| 2704 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 2705 | do |
| 2706 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2707 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2708 | echo "$as_me:2708: checking for $ac_word" >&5 |
| 2709 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2710 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2712 | else |
| 2713 | if test -n "$CXX"; then |
| 2714 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2715 | else |
| 2716 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 2717 | ac_dummy="$PATH" |
| 2718 | for ac_dir in $ac_dummy; do |
| 2719 | IFS=$ac_save_IFS |
| 2720 | test -z "$ac_dir" && ac_dir=. |
| 2721 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 2722 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2723 | echo "$as_me:2723: found $ac_dir/$ac_word" >&5 |
| 2724 | break |
| 2725 | done |
| 2726 | |
| 2727 | fi |
| 2728 | fi |
| 2729 | CXX=$ac_cv_prog_CXX |
| 2730 | if test -n "$CXX"; then |
| 2731 | echo "$as_me:2731: result: $CXX" >&5 |
| 2732 | echo "${ECHO_T}$CXX" >&6 |
| 2733 | else |
| 2734 | echo "$as_me:2734: result: no" >&5 |
| 2735 | echo "${ECHO_T}no" >&6 |
| 2736 | fi |
| 2737 | |
| 2738 | test -n "$CXX" && break |
| 2739 | done |
| 2740 | fi |
| 2741 | if test -z "$CXX"; then |
| 2742 | ac_ct_CXX=$CXX |
| 2743 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 2744 | do |
| 2745 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2746 | set dummy $ac_prog; ac_word=$2 |
| 2747 | echo "$as_me:2747: checking for $ac_word" >&5 |
| 2748 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2749 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 2750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2751 | else |
| 2752 | if test -n "$ac_ct_CXX"; then |
| 2753 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2754 | else |
| 2755 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 2756 | ac_dummy="$PATH" |
| 2757 | for ac_dir in $ac_dummy; do |
| 2758 | IFS=$ac_save_IFS |
| 2759 | test -z "$ac_dir" && ac_dir=. |
| 2760 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 2761 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 2762 | echo "$as_me:2762: found $ac_dir/$ac_word" >&5 |
| 2763 | break |
| 2764 | done |
| 2765 | |
| 2766 | fi |
| 2767 | fi |
| 2768 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2769 | if test -n "$ac_ct_CXX"; then |
| 2770 | echo "$as_me:2770: result: $ac_ct_CXX" >&5 |
| 2771 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
| 2772 | else |
| 2773 | echo "$as_me:2773: result: no" >&5 |
| 2774 | echo "${ECHO_T}no" >&6 |
| 2775 | fi |
| 2776 | |
| 2777 | test -n "$ac_ct_CXX" && break |
| 2778 | done |
| 2779 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 2780 | |
| 2781 | CXX=$ac_ct_CXX |
| 2782 | fi |
| 2783 | |
| 2784 | # Provide some information about the compiler. |
| 2785 | echo "$as_me:2785:" \ |
| 2786 | "checking for C++ compiler version" >&5 |
| 2787 | ac_compiler=`set X $ac_compile; echo $2` |
| 2788 | { (eval echo "$as_me:2788: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2789 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2790 | ac_status=$? |
| 2791 | echo "$as_me:2791: \$? = $ac_status" >&5 |
| 2792 | (exit $ac_status); } |
| 2793 | { (eval echo "$as_me:2793: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2794 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2795 | ac_status=$? |
| 2796 | echo "$as_me:2796: \$? = $ac_status" >&5 |
| 2797 | (exit $ac_status); } |
| 2798 | { (eval echo "$as_me:2798: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2799 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2800 | ac_status=$? |
| 2801 | echo "$as_me:2801: \$? = $ac_status" >&5 |
| 2802 | (exit $ac_status); } |
| 2803 | |
| 2804 | echo "$as_me:2804: checking whether we are using the GNU C++ compiler" >&5 |
| 2805 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 2806 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 2807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2808 | else |
| 2809 | cat >conftest.$ac_ext <<_ACEOF |
| 2810 | #line 2810 "configure" |
| 2811 | #include "confdefs.h" |
| 2812 | |
| 2813 | int |
| 2814 | main () |
| 2815 | { |
| 2816 | #ifndef __GNUC__ |
| 2817 | choke me |
| 2818 | #endif |
| 2819 | |
| 2820 | ; |
| 2821 | return 0; |
| 2822 | } |
| 2823 | _ACEOF |
| 2824 | rm -f conftest.$ac_objext |
| 2825 | if { (eval echo "$as_me:2825: \"$ac_compile\"") >&5 |
| 2826 | (eval $ac_compile) 2>&5 |
| 2827 | ac_status=$? |
| 2828 | echo "$as_me:2828: \$? = $ac_status" >&5 |
| 2829 | (exit $ac_status); } && |
| 2830 | { ac_try='test -s conftest.$ac_objext' |
| 2831 | { (eval echo "$as_me:2831: \"$ac_try\"") >&5 |
| 2832 | (eval $ac_try) 2>&5 |
| 2833 | ac_status=$? |
| 2834 | echo "$as_me:2834: \$? = $ac_status" >&5 |
| 2835 | (exit $ac_status); }; }; then |
| 2836 | ac_compiler_gnu=yes |
| 2837 | else |
| 2838 | echo "$as_me: failed program was:" >&5 |
| 2839 | cat conftest.$ac_ext >&5 |
| 2840 | ac_compiler_gnu=no |
| 2841 | fi |
| 2842 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2843 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 2844 | |
| 2845 | fi |
| 2846 | echo "$as_me:2846: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 2847 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 2848 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 2849 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 2850 | ac_save_CXXFLAGS=$CXXFLAGS |
| 2851 | CXXFLAGS="-g" |
| 2852 | echo "$as_me:2852: checking whether $CXX accepts -g" >&5 |
| 2853 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 2854 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 2855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2856 | else |
| 2857 | cat >conftest.$ac_ext <<_ACEOF |
| 2858 | #line 2858 "configure" |
| 2859 | #include "confdefs.h" |
| 2860 | |
| 2861 | int |
| 2862 | main () |
| 2863 | { |
| 2864 | |
| 2865 | ; |
| 2866 | return 0; |
| 2867 | } |
| 2868 | _ACEOF |
| 2869 | rm -f conftest.$ac_objext |
| 2870 | if { (eval echo "$as_me:2870: \"$ac_compile\"") >&5 |
| 2871 | (eval $ac_compile) 2>&5 |
| 2872 | ac_status=$? |
| 2873 | echo "$as_me:2873: \$? = $ac_status" >&5 |
| 2874 | (exit $ac_status); } && |
| 2875 | { ac_try='test -s conftest.$ac_objext' |
| 2876 | { (eval echo "$as_me:2876: \"$ac_try\"") >&5 |
| 2877 | (eval $ac_try) 2>&5 |
| 2878 | ac_status=$? |
| 2879 | echo "$as_me:2879: \$? = $ac_status" >&5 |
| 2880 | (exit $ac_status); }; }; then |
| 2881 | ac_cv_prog_cxx_g=yes |
| 2882 | else |
| 2883 | echo "$as_me: failed program was:" >&5 |
| 2884 | cat conftest.$ac_ext >&5 |
| 2885 | ac_cv_prog_cxx_g=no |
| 2886 | fi |
| 2887 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2888 | fi |
| 2889 | echo "$as_me:2889: result: $ac_cv_prog_cxx_g" >&5 |
| 2890 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 2891 | if test "$ac_test_CXXFLAGS" = set; then |
| 2892 | CXXFLAGS=$ac_save_CXXFLAGS |
| 2893 | elif test $ac_cv_prog_cxx_g = yes; then |
| 2894 | if test "$GXX" = yes; then |
| 2895 | CXXFLAGS="-g -O2" |
| 2896 | else |
| 2897 | CXXFLAGS="-g" |
| 2898 | fi |
| 2899 | else |
| 2900 | if test "$GXX" = yes; then |
| 2901 | CXXFLAGS="-O2" |
| 2902 | else |
| 2903 | CXXFLAGS= |
| 2904 | fi |
| 2905 | fi |
| 2906 | for ac_declaration in \ |
| 2907 | ''\ |
| 2908 | '#include <stdlib.h>' \ |
| 2909 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2910 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2911 | 'extern "C" void exit (int) throw ();' \ |
| 2912 | 'extern "C" void exit (int);' \ |
| 2913 | 'void exit (int);' |
| 2914 | do |
| 2915 | cat >conftest.$ac_ext <<_ACEOF |
| 2916 | #line 2916 "configure" |
| 2917 | #include "confdefs.h" |
| 2918 | #include <stdlib.h> |
| 2919 | $ac_declaration |
| 2920 | int |
| 2921 | main () |
| 2922 | { |
| 2923 | exit (42); |
| 2924 | ; |
| 2925 | return 0; |
| 2926 | } |
| 2927 | _ACEOF |
| 2928 | rm -f conftest.$ac_objext |
| 2929 | if { (eval echo "$as_me:2929: \"$ac_compile\"") >&5 |
| 2930 | (eval $ac_compile) 2>&5 |
| 2931 | ac_status=$? |
| 2932 | echo "$as_me:2932: \$? = $ac_status" >&5 |
| 2933 | (exit $ac_status); } && |
| 2934 | { ac_try='test -s conftest.$ac_objext' |
| 2935 | { (eval echo "$as_me:2935: \"$ac_try\"") >&5 |
| 2936 | (eval $ac_try) 2>&5 |
| 2937 | ac_status=$? |
| 2938 | echo "$as_me:2938: \$? = $ac_status" >&5 |
| 2939 | (exit $ac_status); }; }; then |
| 2940 | : |
| 2941 | else |
| 2942 | echo "$as_me: failed program was:" >&5 |
| 2943 | cat conftest.$ac_ext >&5 |
| 2944 | continue |
| 2945 | fi |
| 2946 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2947 | cat >conftest.$ac_ext <<_ACEOF |
| 2948 | #line 2948 "configure" |
| 2949 | #include "confdefs.h" |
| 2950 | $ac_declaration |
| 2951 | int |
| 2952 | main () |
| 2953 | { |
| 2954 | exit (42); |
| 2955 | ; |
| 2956 | return 0; |
| 2957 | } |
| 2958 | _ACEOF |
| 2959 | rm -f conftest.$ac_objext |
| 2960 | if { (eval echo "$as_me:2960: \"$ac_compile\"") >&5 |
| 2961 | (eval $ac_compile) 2>&5 |
| 2962 | ac_status=$? |
| 2963 | echo "$as_me:2963: \$? = $ac_status" >&5 |
| 2964 | (exit $ac_status); } && |
| 2965 | { ac_try='test -s conftest.$ac_objext' |
| 2966 | { (eval echo "$as_me:2966: \"$ac_try\"") >&5 |
| 2967 | (eval $ac_try) 2>&5 |
| 2968 | ac_status=$? |
| 2969 | echo "$as_me:2969: \$? = $ac_status" >&5 |
| 2970 | (exit $ac_status); }; }; then |
| 2971 | break |
| 2972 | else |
| 2973 | echo "$as_me: failed program was:" >&5 |
| 2974 | cat conftest.$ac_ext >&5 |
| 2975 | fi |
| 2976 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2977 | done |
| 2978 | rm -f conftest* |
| 2979 | if test -n "$ac_declaration"; then |
| 2980 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2981 | echo $ac_declaration >>confdefs.h |
| 2982 | echo '#endif' >>confdefs.h |
| 2983 | fi |
| 2984 | |
| 2985 | ac_ext=cc |
| 2986 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2987 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2988 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2989 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2990 | |
| 2991 | ac_ext=cc |
| 2992 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2993 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2994 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2995 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2996 | echo "$as_me:2996: checking how to run the C++ preprocessor" >&5 |
| 2997 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
| 2998 | if test -z "$CXXCPP"; then |
| 2999 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
| 3000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3001 | else |
| 3002 | # Double quotes because CXXCPP needs to be expanded |
| 3003 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 3004 | do |
| 3005 | ac_preproc_ok=false |
| 3006 | for ac_cxx_preproc_warn_flag in '' yes |
| 3007 | do |
| 3008 | # Use a header file that comes with gcc, so configuring glibc |
| 3009 | # with a fresh cross-compiler works. |
| 3010 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3011 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3012 | cat >conftest.$ac_ext <<_ACEOF |
| 3013 | #line 3013 "configure" |
| 3014 | #include "confdefs.h" |
| 3015 | #include <assert.h> |
| 3016 | Syntax error |
| 3017 | _ACEOF |
| 3018 | if { (eval echo "$as_me:3018: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3019 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3020 | ac_status=$? |
| 3021 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3022 | rm -f conftest.er1 |
| 3023 | cat conftest.err >&5 |
| 3024 | echo "$as_me:3024: \$? = $ac_status" >&5 |
| 3025 | (exit $ac_status); } >/dev/null; then |
| 3026 | if test -s conftest.err; then |
| 3027 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 3028 | else |
| 3029 | ac_cpp_err= |
| 3030 | fi |
| 3031 | else |
| 3032 | ac_cpp_err=yes |
| 3033 | fi |
| 3034 | if test -z "$ac_cpp_err"; then |
| 3035 | : |
| 3036 | else |
| 3037 | echo "$as_me: failed program was:" >&5 |
| 3038 | cat conftest.$ac_ext >&5 |
| 3039 | # Broken: fails on valid input. |
| 3040 | continue |
| 3041 | fi |
| 3042 | rm -f conftest.err conftest.$ac_ext |
| 3043 | |
| 3044 | # OK, works on sane cases. Now check whether non-existent headers |
| 3045 | # can be detected and how. |
| 3046 | cat >conftest.$ac_ext <<_ACEOF |
| 3047 | #line 3047 "configure" |
| 3048 | #include "confdefs.h" |
| 3049 | #include <ac_nonexistent.h> |
| 3050 | _ACEOF |
| 3051 | if { (eval echo "$as_me:3051: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3052 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3053 | ac_status=$? |
| 3054 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3055 | rm -f conftest.er1 |
| 3056 | cat conftest.err >&5 |
| 3057 | echo "$as_me:3057: \$? = $ac_status" >&5 |
| 3058 | (exit $ac_status); } >/dev/null; then |
| 3059 | if test -s conftest.err; then |
| 3060 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 3061 | else |
| 3062 | ac_cpp_err= |
| 3063 | fi |
| 3064 | else |
| 3065 | ac_cpp_err=yes |
| 3066 | fi |
| 3067 | if test -z "$ac_cpp_err"; then |
| 3068 | # Broken: success on invalid input. |
| 3069 | continue |
| 3070 | else |
| 3071 | echo "$as_me: failed program was:" >&5 |
| 3072 | cat conftest.$ac_ext >&5 |
| 3073 | # Passes both tests. |
| 3074 | ac_preproc_ok=: |
| 3075 | break |
| 3076 | fi |
| 3077 | rm -f conftest.err conftest.$ac_ext |
| 3078 | |
| 3079 | done |
| 3080 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3081 | rm -f conftest.err conftest.$ac_ext |
| 3082 | if $ac_preproc_ok; then |
| 3083 | break |
| 3084 | fi |
| 3085 | |
| 3086 | done |
| 3087 | ac_cv_prog_CXXCPP=$CXXCPP |
| 3088 | |
| 3089 | fi |
| 3090 | CXXCPP=$ac_cv_prog_CXXCPP |
| 3091 | else |
| 3092 | ac_cv_prog_CXXCPP=$CXXCPP |
| 3093 | fi |
| 3094 | echo "$as_me:3094: result: $CXXCPP" >&5 |
| 3095 | echo "${ECHO_T}$CXXCPP" >&6 |
| 3096 | ac_preproc_ok=false |
| 3097 | for ac_cxx_preproc_warn_flag in '' yes |
| 3098 | do |
| 3099 | # Use a header file that comes with gcc, so configuring glibc |
| 3100 | # with a fresh cross-compiler works. |
| 3101 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3102 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3103 | cat >conftest.$ac_ext <<_ACEOF |
| 3104 | #line 3104 "configure" |
| 3105 | #include "confdefs.h" |
| 3106 | #include <assert.h> |
| 3107 | Syntax error |
| 3108 | _ACEOF |
| 3109 | if { (eval echo "$as_me:3109: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3110 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3111 | ac_status=$? |
| 3112 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3113 | rm -f conftest.er1 |
| 3114 | cat conftest.err >&5 |
| 3115 | echo "$as_me:3115: \$? = $ac_status" >&5 |
| 3116 | (exit $ac_status); } >/dev/null; then |
| 3117 | if test -s conftest.err; then |
| 3118 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 3119 | else |
| 3120 | ac_cpp_err= |
| 3121 | fi |
| 3122 | else |
| 3123 | ac_cpp_err=yes |
| 3124 | fi |
| 3125 | if test -z "$ac_cpp_err"; then |
| 3126 | : |
| 3127 | else |
| 3128 | echo "$as_me: failed program was:" >&5 |
| 3129 | cat conftest.$ac_ext >&5 |
| 3130 | # Broken: fails on valid input. |
| 3131 | continue |
| 3132 | fi |
| 3133 | rm -f conftest.err conftest.$ac_ext |
| 3134 | |
| 3135 | # OK, works on sane cases. Now check whether non-existent headers |
| 3136 | # can be detected and how. |
| 3137 | cat >conftest.$ac_ext <<_ACEOF |
| 3138 | #line 3138 "configure" |
| 3139 | #include "confdefs.h" |
| 3140 | #include <ac_nonexistent.h> |
| 3141 | _ACEOF |
| 3142 | if { (eval echo "$as_me:3142: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3143 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3144 | ac_status=$? |
| 3145 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3146 | rm -f conftest.er1 |
| 3147 | cat conftest.err >&5 |
| 3148 | echo "$as_me:3148: \$? = $ac_status" >&5 |
| 3149 | (exit $ac_status); } >/dev/null; then |
| 3150 | if test -s conftest.err; then |
| 3151 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 3152 | else |
| 3153 | ac_cpp_err= |
| 3154 | fi |
| 3155 | else |
| 3156 | ac_cpp_err=yes |
| 3157 | fi |
| 3158 | if test -z "$ac_cpp_err"; then |
| 3159 | # Broken: success on invalid input. |
| 3160 | continue |
| 3161 | else |
| 3162 | echo "$as_me: failed program was:" >&5 |
| 3163 | cat conftest.$ac_ext >&5 |
| 3164 | # Passes both tests. |
| 3165 | ac_preproc_ok=: |
| 3166 | break |
| 3167 | fi |
| 3168 | rm -f conftest.err conftest.$ac_ext |
| 3169 | |
| 3170 | done |
| 3171 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3172 | rm -f conftest.err conftest.$ac_ext |
| 3173 | if $ac_preproc_ok; then |
| 3174 | : |
| 3175 | else |
| 3176 | { { echo "$as_me:3176: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5 |
| 3177 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;} |
| 3178 | { (exit 1); exit 1; }; } |
| 3179 | fi |
| 3180 | |
| 3181 | ac_ext=cc |
| 3182 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3183 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3184 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3185 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3186 | |
| 3187 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 3188 | |
| 3189 | # find the maximum length of command line arguments |
| 3190 | echo "$as_me:3190: checking the maximum length of command line arguments" >&5 |
| 3191 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
| 3192 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 3193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3194 | else |
| 3195 | i=0 |
| 3196 | testring="ABCD" |
| 3197 | |
| 3198 | case $host_os in |
| 3199 | msdosdjgpp*) |
| 3200 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 3201 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 3202 | # during glob expansion). Even if it were fixed, the result of this |
| 3203 | # check would be larger than it should be. |
| 3204 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 3205 | ;; |
| 3206 | |
| 3207 | gnu*) |
| 3208 | # Under GNU Hurd, this test is not required because there is |
| 3209 | # no limit to the length of command line arguments. |
| 3210 | # Libtool will interpret -1 as no limit whatsoever |
| 3211 | lt_cv_sys_max_cmd_len=-1; |
| 3212 | ;; |
| 3213 | |
| 3214 | *) |
| 3215 | # If test is not a shell built-in, we'll probably end up computing a |
| 3216 | # maximum length that is only half of the actual maximum length, but |
| 3217 | # we can't tell. |
| 3218 | while test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ |
| 3219 | = "XX$testring" && |
| 3220 | new_result=`expr "X$testring" : ".*" 2>&1` && |
| 3221 | lt_cv_sys_max_cmd_len=$new_result && |
| 3222 | test $i != 17 # 1/2 MB should be enough |
| 3223 | do |
| 3224 | i=`expr $i + 1` |
| 3225 | testring=$testring$testring |
| 3226 | done |
| 3227 | testring= |
| 3228 | # add a significant safety factor because C++ compilers can tack on massive |
| 3229 | # amounts of additional arguments before passing them to the linker. 1/4 |
| 3230 | # should be good. |
| 3231 | len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 3232 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len - $len` |
| 3233 | ;; |
| 3234 | esac |
| 3235 | |
| 3236 | fi |
| 3237 | |
| 3238 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 3239 | echo "$as_me:3239: result: $lt_cv_sys_max_cmd_len" >&5 |
| 3240 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
| 3241 | else |
| 3242 | echo "$as_me:3242: result: none" >&5 |
| 3243 | echo "${ECHO_T}none" >&6 |
| 3244 | fi |
| 3245 | |
| 3246 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 3247 | echo "$as_me:3247: checking command to parse $NM output from $compiler object" >&5 |
| 3248 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
| 3249 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 3250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3251 | else |
| 3252 | |
| 3253 | # These are sane defaults that work on at least a few old systems. |
| 3254 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 3255 | |
| 3256 | # Character class describing NM global symbol codes. |
| 3257 | symcode='[BCDEGRST]' |
| 3258 | |
| 3259 | # Regexp to match symbols that can be accessed directly from C. |
| 3260 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 3261 | |
| 3262 | # Transform the above into a raw symbol and a C symbol. |
| 3263 | symxfrm='\1 \2\3 \3' |
| 3264 | |
| 3265 | # Transform an extracted symbol line into a proper C declaration |
| 3266 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 3267 | |
| 3268 | # Transform an extracted symbol line into symbol name and symbol address |
| 3269 | 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'" |
| 3270 | |
| 3271 | # Define system-specific variables. |
| 3272 | case $host_os in |
| 3273 | aix*) |
| 3274 | symcode='[BCDT]' |
| 3275 | ;; |
| 3276 | cygwin* | mingw* | pw32*) |
| 3277 | symcode='[ABCDGISTW]' |
| 3278 | ;; |
| 3279 | hpux*) # Its linker distinguishes data from code symbols |
| 3280 | if test "$host_cpu" = ia64; then |
| 3281 | symcode='[ABCDEGRST]' |
| 3282 | fi |
| 3283 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 3284 | 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'" |
| 3285 | ;; |
| 3286 | irix*) |
| 3287 | symcode='[BCDEGRST]' |
| 3288 | ;; |
| 3289 | solaris* | sysv5*) |
| 3290 | symcode='[BDT]' |
| 3291 | ;; |
| 3292 | sysv4) |
| 3293 | symcode='[DFNSTU]' |
| 3294 | ;; |
| 3295 | esac |
| 3296 | |
| 3297 | # Handle CRLF in mingw tool chain |
| 3298 | opt_cr= |
| 3299 | case $host_os in |
| 3300 | mingw*) |
| 3301 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 3302 | ;; |
| 3303 | esac |
| 3304 | |
| 3305 | # If we're using GNU nm, then use its standard symbol codes. |
| 3306 | if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then |
| 3307 | symcode='[ABCDGISTW]' |
| 3308 | fi |
| 3309 | |
| 3310 | # Try without a prefix undercore, then with it. |
| 3311 | for ac_symprfx in "" "_"; do |
| 3312 | |
| 3313 | # Write the raw and C identifiers. |
| 3314 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 3315 | |
| 3316 | # Check to see that the pipe works correctly. |
| 3317 | pipe_works=no |
| 3318 | |
| 3319 | rm -f conftest* |
| 3320 | cat > conftest.$ac_ext <<EOF |
| 3321 | #ifdef __cplusplus |
| 3322 | extern "C" { |
| 3323 | #endif |
| 3324 | char nm_test_var; |
| 3325 | void nm_test_func(){} |
| 3326 | #ifdef __cplusplus |
| 3327 | } |
| 3328 | #endif |
| 3329 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 3330 | EOF |
| 3331 | |
| 3332 | if { (eval echo "$as_me:3332: \"$ac_compile\"") >&5 |
| 3333 | (eval $ac_compile) 2>&5 |
| 3334 | ac_status=$? |
| 3335 | echo "$as_me:3335: \$? = $ac_status" >&5 |
| 3336 | (exit $ac_status); }; then |
| 3337 | # Now try to grab the symbols. |
| 3338 | nlist=conftest.nm |
| 3339 | if { (eval echo "$as_me:3339: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 3340 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 3341 | ac_status=$? |
| 3342 | echo "$as_me:3342: \$? = $ac_status" >&5 |
| 3343 | (exit $ac_status); } && test -s "$nlist"; then |
| 3344 | # Try sorting and uniquifying the output. |
| 3345 | if sort "$nlist" | uniq > "$nlist"T; then |
| 3346 | mv -f "$nlist"T "$nlist" |
| 3347 | else |
| 3348 | rm -f "$nlist"T |
| 3349 | fi |
| 3350 | |
| 3351 | # Make sure that we snagged all the symbols we need. |
| 3352 | if egrep ' nm_test_var$' "$nlist" >/dev/null; then |
| 3353 | if egrep ' nm_test_func$' "$nlist" >/dev/null; then |
| 3354 | cat <<EOF > conftest.$ac_ext |
| 3355 | #ifdef __cplusplus |
| 3356 | extern "C" { |
| 3357 | #endif |
| 3358 | |
| 3359 | EOF |
| 3360 | # Now generate the symbol file. |
| 3361 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' |
| 3362 | |
| 3363 | cat <<EOF >> conftest.$ac_ext |
| 3364 | #if defined (__STDC__) && __STDC__ |
| 3365 | # define lt_ptr_t void * |
| 3366 | #else |
| 3367 | # define lt_ptr_t char * |
| 3368 | # define const |
| 3369 | #endif |
| 3370 | |
| 3371 | /* The mapping between symbol names and symbols. */ |
| 3372 | const struct { |
| 3373 | const char *name; |
| 3374 | lt_ptr_t address; |
| 3375 | } |
| 3376 | lt_preloaded_symbols[] = |
| 3377 | { |
| 3378 | EOF |
| 3379 | sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext |
| 3380 | cat <<\EOF >> conftest.$ac_ext |
| 3381 | {0, (lt_ptr_t) 0} |
| 3382 | }; |
| 3383 | |
| 3384 | #ifdef __cplusplus |
| 3385 | } |
| 3386 | #endif |
| 3387 | EOF |
| 3388 | # Now try linking the two files. |
| 3389 | mv conftest.$ac_objext conftstm.$ac_objext |
| 3390 | lt_save_LIBS="$LIBS" |
| 3391 | lt_save_CFLAGS="$CFLAGS" |
| 3392 | LIBS="conftstm.$ac_objext" |
| 3393 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 3394 | if { (eval echo "$as_me:3394: \"$ac_link\"") >&5 |
| 3395 | (eval $ac_link) 2>&5 |
| 3396 | ac_status=$? |
| 3397 | echo "$as_me:3397: \$? = $ac_status" >&5 |
| 3398 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 3399 | pipe_works=yes |
| 3400 | fi |
| 3401 | LIBS="$lt_save_LIBS" |
| 3402 | CFLAGS="$lt_save_CFLAGS" |
| 3403 | else |
| 3404 | echo "cannot find nm_test_func in $nlist" >&5 |
| 3405 | fi |
| 3406 | else |
| 3407 | echo "cannot find nm_test_var in $nlist" >&5 |
| 3408 | fi |
| 3409 | else |
| 3410 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 3411 | fi |
| 3412 | else |
| 3413 | echo "$progname: failed program was:" >&5 |
| 3414 | cat conftest.$ac_ext >&5 |
| 3415 | fi |
| 3416 | rm -f conftest* conftst* |
| 3417 | |
| 3418 | # Do not use the global_symbol_pipe unless it works. |
| 3419 | if test "$pipe_works" = yes; then |
| 3420 | break |
| 3421 | else |
| 3422 | lt_cv_sys_global_symbol_pipe= |
| 3423 | fi |
| 3424 | done |
| 3425 | |
| 3426 | fi |
| 3427 | |
| 3428 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 3429 | lt_cv_sys_global_symbol_to_cdecl= |
| 3430 | fi |
| 3431 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 3432 | echo "$as_me:3432: result: failed" >&5 |
| 3433 | echo "${ECHO_T}failed" >&6 |
| 3434 | else |
| 3435 | echo "$as_me:3435: result: ok" >&5 |
| 3436 | echo "${ECHO_T}ok" >&6 |
| 3437 | fi |
| 3438 | |
| 3439 | echo "$as_me:3439: checking for objdir" >&5 |
| 3440 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| 3441 | if test "${lt_cv_objdir+set}" = set; then |
| 3442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3443 | else |
| 3444 | rm -f .libs 2>/dev/null |
| 3445 | mkdir .libs 2>/dev/null |
| 3446 | if test -d .libs; then |
| 3447 | lt_cv_objdir=.libs |
| 3448 | else |
| 3449 | # MS-DOS does not allow filenames that begin with a dot. |
| 3450 | lt_cv_objdir=_libs |
| 3451 | fi |
| 3452 | rmdir .libs 2>/dev/null |
| 3453 | fi |
| 3454 | echo "$as_me:3454: result: $lt_cv_objdir" >&5 |
| 3455 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
| 3456 | objdir=$lt_cv_objdir |
| 3457 | |
| 3458 | case $host_os in |
| 3459 | aix3*) |
| 3460 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 3461 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 3462 | # vanish in a puff of smoke. |
| 3463 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 3464 | COLLECT_NAMES= |
| 3465 | export COLLECT_NAMES |
| 3466 | fi |
| 3467 | ;; |
| 3468 | esac |
| 3469 | |
| 3470 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 3471 | # metacharacters that are still active within double-quoted strings. |
| 3472 | Xsed='sed -e s/^X//' |
| 3473 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 3474 | |
| 3475 | # Same as above, but do not quote variable references. |
| 3476 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 3477 | |
| 3478 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 3479 | # double_quote_subst'ed string. |
| 3480 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 3481 | |
| 3482 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 3483 | no_glob_subst='s/\*/\\\*/g' |
| 3484 | |
| 3485 | # Constants: |
| 3486 | rm="rm -f" |
| 3487 | |
| 3488 | # Global variables: |
| 3489 | default_ofile=libtool |
| 3490 | can_build_shared=yes |
| 3491 | |
| 3492 | # All known linkers require a `.a' archive for static linking (except M$VC, |
| 3493 | # which needs '.lib'). |
| 3494 | libext=a |
| 3495 | ltmain="$ac_aux_dir/ltmain.sh" |
| 3496 | ofile="$default_ofile" |
| 3497 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 3498 | |
| 3499 | if test -n "$ac_tool_prefix"; then |
| 3500 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3501 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3502 | echo "$as_me:3502: checking for $ac_word" >&5 |
| 3503 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3504 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3506 | else |
| 3507 | if test -n "$RANLIB"; then |
| 3508 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3509 | else |
| 3510 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 3511 | ac_dummy="$PATH" |
| 3512 | for ac_dir in $ac_dummy; do |
| 3513 | IFS=$ac_save_IFS |
| 3514 | test -z "$ac_dir" && ac_dir=. |
| 3515 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 3516 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3517 | echo "$as_me:3517: found $ac_dir/$ac_word" >&5 |
| 3518 | break |
| 3519 | done |
| 3520 | |
| 3521 | fi |
| 3522 | fi |
| 3523 | RANLIB=$ac_cv_prog_RANLIB |
| 3524 | if test -n "$RANLIB"; then |
| 3525 | echo "$as_me:3525: result: $RANLIB" >&5 |
| 3526 | echo "${ECHO_T}$RANLIB" >&6 |
| 3527 | else |
| 3528 | echo "$as_me:3528: result: no" >&5 |
| 3529 | echo "${ECHO_T}no" >&6 |
| 3530 | fi |
| 3531 | |
| 3532 | fi |
| 3533 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3534 | ac_ct_RANLIB=$RANLIB |
| 3535 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3536 | set dummy ranlib; ac_word=$2 |
| 3537 | echo "$as_me:3537: checking for $ac_word" >&5 |
| 3538 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3539 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3541 | else |
| 3542 | if test -n "$ac_ct_RANLIB"; then |
| 3543 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3544 | else |
| 3545 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 3546 | ac_dummy="$PATH" |
| 3547 | for ac_dir in $ac_dummy; do |
| 3548 | IFS=$ac_save_IFS |
| 3549 | test -z "$ac_dir" && ac_dir=. |
| 3550 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 3551 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3552 | echo "$as_me:3552: found $ac_dir/$ac_word" >&5 |
| 3553 | break |
| 3554 | done |
| 3555 | |
| 3556 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3557 | fi |
| 3558 | fi |
| 3559 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3560 | if test -n "$ac_ct_RANLIB"; then |
| 3561 | echo "$as_me:3561: result: $ac_ct_RANLIB" >&5 |
| 3562 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3563 | else |
| 3564 | echo "$as_me:3564: result: no" >&5 |
| 3565 | echo "${ECHO_T}no" >&6 |
| 3566 | fi |
| 3567 | |
| 3568 | RANLIB=$ac_ct_RANLIB |
| 3569 | else |
| 3570 | RANLIB="$ac_cv_prog_RANLIB" |
| 3571 | fi |
| 3572 | |
| 3573 | if test -n "$ac_tool_prefix"; then |
| 3574 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 3575 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 3576 | echo "$as_me:3576: checking for $ac_word" >&5 |
| 3577 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3578 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 3579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3580 | else |
| 3581 | if test -n "$STRIP"; then |
| 3582 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 3583 | else |
| 3584 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 3585 | ac_dummy="$PATH" |
| 3586 | for ac_dir in $ac_dummy; do |
| 3587 | IFS=$ac_save_IFS |
| 3588 | test -z "$ac_dir" && ac_dir=. |
| 3589 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 3590 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 3591 | echo "$as_me:3591: found $ac_dir/$ac_word" >&5 |
| 3592 | break |
| 3593 | done |
| 3594 | |
| 3595 | fi |
| 3596 | fi |
| 3597 | STRIP=$ac_cv_prog_STRIP |
| 3598 | if test -n "$STRIP"; then |
| 3599 | echo "$as_me:3599: result: $STRIP" >&5 |
| 3600 | echo "${ECHO_T}$STRIP" >&6 |
| 3601 | else |
| 3602 | echo "$as_me:3602: result: no" >&5 |
| 3603 | echo "${ECHO_T}no" >&6 |
| 3604 | fi |
| 3605 | |
| 3606 | fi |
| 3607 | if test -z "$ac_cv_prog_STRIP"; then |
| 3608 | ac_ct_STRIP=$STRIP |
| 3609 | # Extract the first word of "strip", so it can be a program name with args. |
| 3610 | set dummy strip; ac_word=$2 |
| 3611 | echo "$as_me:3611: checking for $ac_word" >&5 |
| 3612 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3613 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 3614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3615 | else |
| 3616 | if test -n "$ac_ct_STRIP"; then |
| 3617 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 3618 | else |
| 3619 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 3620 | ac_dummy="$PATH" |
| 3621 | for ac_dir in $ac_dummy; do |
| 3622 | IFS=$ac_save_IFS |
| 3623 | test -z "$ac_dir" && ac_dir=. |
| 3624 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 3625 | ac_cv_prog_ac_ct_STRIP="strip" |
| 3626 | echo "$as_me:3626: found $ac_dir/$ac_word" >&5 |
| 3627 | break |
| 3628 | done |
| 3629 | |
| 3630 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 3631 | fi |
| 3632 | fi |
| 3633 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 3634 | if test -n "$ac_ct_STRIP"; then |
| 3635 | echo "$as_me:3635: result: $ac_ct_STRIP" >&5 |
| 3636 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 3637 | else |
| 3638 | echo "$as_me:3638: result: no" >&5 |
| 3639 | echo "${ECHO_T}no" >&6 |
| 3640 | fi |
| 3641 | |
| 3642 | STRIP=$ac_ct_STRIP |
| 3643 | else |
| 3644 | STRIP="$ac_cv_prog_STRIP" |
| 3645 | fi |
| 3646 | |
| 3647 | old_CC="$CC" |
| 3648 | old_CFLAGS="$CFLAGS" |
| 3649 | |
| 3650 | # Set sane defaults for various variables |
| 3651 | test -z "$AR" && AR=ar |
| 3652 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 3653 | test -z "$AS" && AS=as |
| 3654 | test -z "$CC" && CC=cc |
| 3655 | test -z "$LTCC" && LTCC=$CC |
| 3656 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 3657 | test -z "$LD" && LD=ld |
| 3658 | test -z "$LN_S" && LN_S="ln -s" |
| 3659 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 3660 | test -z "$NM" && NM=nm |
| 3661 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 3662 | test -z "$RANLIB" && RANLIB=: |
| 3663 | test -z "$STRIP" && STRIP=: |
| 3664 | test -z "$ac_objext" && ac_objext=o |
| 3665 | |
| 3666 | # Determine commands to create old-style static archives. |
| 3667 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 3668 | old_postinstall_cmds='chmod 644 $oldlib' |
| 3669 | old_postuninstall_cmds= |
| 3670 | |
| 3671 | if test -n "$RANLIB"; then |
| 3672 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 3673 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
| 3674 | fi |
| 3675 | |
| 3676 | # Only perform the check for file, if the check method requires it |
| 3677 | case $deplibs_check_method in |
| 3678 | file_magic*) |
| 3679 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 3680 | echo "$as_me:3680: checking for ${ac_tool_prefix}file" >&5 |
| 3681 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
| 3682 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 3683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3684 | else |
| 3685 | case $MAGIC_CMD in |
| 3686 | \\/* | ?:\\/*) |
| 3687 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 3688 | ;; |
| 3689 | *) |
| 3690 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 3691 | IFS="${IFS= }"; lt_save_ifs="$IFS"; IFS="${PATH_SEPARATOR-:}" |
| 3692 | ac_dummy="/usr/bin${PATH_SEPARATOR-:}$PATH" |
| 3693 | for ac_dir in $ac_dummy; do |
| 3694 | IFS="$lt_save_ifs" |
| 3695 | test -z "$ac_dir" && ac_dir=. |
| 3696 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 3697 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 3698 | if test -n "$file_magic_test_file"; then |
| 3699 | case $deplibs_check_method in |
| 3700 | "file_magic "*) |
| 3701 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 3702 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 3703 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 3704 | egrep "$file_magic_regex" > /dev/null; then |
| 3705 | : |
| 3706 | else |
| 3707 | cat <<EOF 1>&2 |
| 3708 | |
| 3709 | *** Warning: the command libtool uses to detect shared libraries, |
| 3710 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 3711 | *** The result is that libtool may fail to recognize shared libraries |
| 3712 | *** as such. This will affect the creation of libtool libraries that |
| 3713 | *** depend on shared libraries, but programs linked with such libtool |
| 3714 | *** libraries will work regardless of this problem. Nevertheless, you |
| 3715 | *** may want to report the problem to your system manager and/or to |
| 3716 | *** bug-libtool@gnu.org |
| 3717 | |
| 3718 | EOF |
| 3719 | fi ;; |
| 3720 | esac |
| 3721 | fi |
| 3722 | break |
| 3723 | fi |
| 3724 | done |
| 3725 | IFS="$lt_save_ifs" |
| 3726 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 3727 | ;; |
| 3728 | esac |
| 3729 | fi |
| 3730 | |
| 3731 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 3732 | if test -n "$MAGIC_CMD"; then |
| 3733 | echo "$as_me:3733: result: $MAGIC_CMD" >&5 |
| 3734 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 3735 | else |
| 3736 | echo "$as_me:3736: result: no" >&5 |
| 3737 | echo "${ECHO_T}no" >&6 |
| 3738 | fi |
| 3739 | |
| 3740 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 3741 | if test -n "$ac_tool_prefix"; then |
| 3742 | echo "$as_me:3742: checking for file" >&5 |
| 3743 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
| 3744 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 3745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3746 | else |
| 3747 | case $MAGIC_CMD in |
| 3748 | \\/* | ?:\\/*) |
| 3749 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 3750 | ;; |
| 3751 | *) |
| 3752 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 3753 | IFS="${IFS= }"; lt_save_ifs="$IFS"; IFS="${PATH_SEPARATOR-:}" |
| 3754 | ac_dummy="/usr/bin${PATH_SEPARATOR-:}$PATH" |
| 3755 | for ac_dir in $ac_dummy; do |
| 3756 | IFS="$lt_save_ifs" |
| 3757 | test -z "$ac_dir" && ac_dir=. |
| 3758 | if test -f $ac_dir/file; then |
| 3759 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 3760 | if test -n "$file_magic_test_file"; then |
| 3761 | case $deplibs_check_method in |
| 3762 | "file_magic "*) |
| 3763 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 3764 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 3765 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 3766 | egrep "$file_magic_regex" > /dev/null; then |
| 3767 | : |
| 3768 | else |
| 3769 | cat <<EOF 1>&2 |
| 3770 | |
| 3771 | *** Warning: the command libtool uses to detect shared libraries, |
| 3772 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 3773 | *** The result is that libtool may fail to recognize shared libraries |
| 3774 | *** as such. This will affect the creation of libtool libraries that |
| 3775 | *** depend on shared libraries, but programs linked with such libtool |
| 3776 | *** libraries will work regardless of this problem. Nevertheless, you |
| 3777 | *** may want to report the problem to your system manager and/or to |
| 3778 | *** bug-libtool@gnu.org |
| 3779 | |
| 3780 | EOF |
| 3781 | fi ;; |
| 3782 | esac |
| 3783 | fi |
| 3784 | break |
| 3785 | fi |
| 3786 | done |
| 3787 | IFS="$lt_save_ifs" |
| 3788 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 3789 | ;; |
| 3790 | esac |
| 3791 | fi |
| 3792 | |
| 3793 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 3794 | if test -n "$MAGIC_CMD"; then |
| 3795 | echo "$as_me:3795: result: $MAGIC_CMD" >&5 |
| 3796 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 3797 | else |
| 3798 | echo "$as_me:3798: result: no" >&5 |
| 3799 | echo "${ECHO_T}no" >&6 |
| 3800 | fi |
| 3801 | |
| 3802 | else |
| 3803 | MAGIC_CMD=: |
| 3804 | fi |
| 3805 | fi |
| 3806 | |
| 3807 | fi |
| 3808 | ;; |
| 3809 | esac |
| 3810 | |
| 3811 | enable_dlopen=no |
| 3812 | enable_win32_dll=no |
| 3813 | |
| 3814 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 3815 | if test "${enable_libtool_lock+set}" = set; then |
| 3816 | enableval="$enable_libtool_lock" |
| 3817 | |
| 3818 | fi; |
| 3819 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 3820 | |
| 3821 | # Check whether --with-pic or --without-pic was given. |
| 3822 | if test "${with_pic+set}" = set; then |
| 3823 | withval="$with_pic" |
| 3824 | pic_mode="$withval" |
| 3825 | else |
| 3826 | pic_mode=default |
| 3827 | fi; |
| 3828 | test -z "$pic_mode" && pic_mode=default |
| 3829 | |
| 3830 | # Use C for the default configuration in the libtool script |
| 3831 | tagname= |
| 3832 | lt_save_CC="$CC" |
| 3833 | ac_ext=c |
| 3834 | ac_cpp='$CPP $CPPFLAGS' |
| 3835 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3836 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3837 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3838 | |
| 3839 | # Source file extension for C test sources. |
| 3840 | ac_ext=c |
| 3841 | |
| 3842 | # Object file extension for compiled C test sources. |
| 3843 | objext=o |
| 3844 | objext=$objext |
| 3845 | |
| 3846 | # Code to be used in simple compile tests |
| 3847 | lt_simple_compile_test_code="int some_variable = 0;" |
| 3848 | |
| 3849 | # Code to be used in simple link tests |
| 3850 | lt_simple_link_test_code='main(){return(0);}' |
| 3851 | |
| 3852 | # If no C compiler was specified, use CC. |
| 3853 | LTCC=${LTCC-"$CC"} |
| 3854 | |
| 3855 | # Allow CC to be a program name with arguments. |
| 3856 | set dummy $CC |
| 3857 | compiler="$2" |
| 3858 | |
| 3859 | # |
| 3860 | # Check for any special shared library compilation flags. |
| 3861 | # |
| 3862 | lt_prog_cc_shlib= |
| 3863 | if test "$GCC" = no; then |
| 3864 | case $host_os in |
| 3865 | sco3.2v5*) |
| 3866 | lt_prog_cc_shlib='-belf' |
| 3867 | ;; |
| 3868 | esac |
| 3869 | fi |
| 3870 | if test -n "$lt_prog_cc_shlib"; then |
| 3871 | { echo "$as_me:3871: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
| 3872 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
| 3873 | if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : |
| 3874 | else |
| 3875 | { echo "$as_me:3875: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
| 3876 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
| 3877 | lt_cv_prog_cc_can_build_shared=no |
| 3878 | fi |
| 3879 | fi |
| 3880 | |
| 3881 | # |
| 3882 | # Check to make sure the static flag actually works. |
| 3883 | # |
| 3884 | echo "$as_me:3884: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
| 3885 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 |
| 3886 | if test "${lt_prog_compiler_static_works+set}" = set; then |
| 3887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3888 | else |
| 3889 | lt_prog_compiler_static_works=no |
| 3890 | save_LDFLAGS="$LDFLAGS" |
| 3891 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" |
| 3892 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 3893 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 3894 | # The compiler can only warn and ignore the option if not recognized |
| 3895 | # So say no if there are warnings |
| 3896 | if test -s conftest.err; then |
| 3897 | # Append any errors to the config.log. |
| 3898 | cat conftest.err 1>&5 |
| 3899 | else |
| 3900 | lt_prog_compiler_static_works=yes |
| 3901 | fi |
| 3902 | fi |
| 3903 | $rm conftest* |
| 3904 | LDFLAGS="$save_LDFLAGS" |
| 3905 | |
| 3906 | fi |
| 3907 | echo "$as_me:3907: result: $lt_prog_compiler_static_works" >&5 |
| 3908 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
| 3909 | |
| 3910 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 3911 | : |
| 3912 | else |
| 3913 | lt_prog_compiler_static= |
| 3914 | fi |
| 3915 | |
| 3916 | lt_prog_compiler_no_builtin_flag= |
| 3917 | |
| 3918 | if test "$GCC" = yes; then |
| 3919 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 3920 | |
| 3921 | echo "$as_me:3921: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 3922 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 3923 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 3924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3925 | else |
| 3926 | lt_cv_prog_compiler_rtti_exceptions=no |
| 3927 | ac_outfile=conftest.$ac_objext |
| 3928 | save_CFLAGS="$CFLAGS" |
| 3929 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" |
| 3930 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 3931 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then |
| 3932 | # The compiler can only warn and ignore the option if not recognized |
| 3933 | # So say no if there are warnings |
| 3934 | if test -s conftest.err; then |
| 3935 | # Append any errors to the config.log. |
| 3936 | cat conftest.err 1>&5 |
| 3937 | else |
| 3938 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 3939 | fi |
| 3940 | fi |
| 3941 | $rm conftest* |
| 3942 | CFLAGS="$save_CFLAGS" |
| 3943 | |
| 3944 | fi |
| 3945 | echo "$as_me:3945: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 3946 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 3947 | |
| 3948 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 3949 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 3950 | else |
| 3951 | : |
| 3952 | fi |
| 3953 | |
| 3954 | fi |
| 3955 | |
| 3956 | lt_prog_compiler_wl= |
| 3957 | lt_prog_compiler_pic= |
| 3958 | lt_prog_compiler_static= |
| 3959 | |
| 3960 | echo "$as_me:3960: checking for $compiler option to produce PIC" >&5 |
| 3961 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 3962 | if test "$GCC" = yes; then |
| 3963 | lt_prog_compiler_wl='-Wl,' |
| 3964 | lt_prog_compiler_static='-static' |
| 3965 | |
| 3966 | case $host_os in |
| 3967 | aix*) |
| 3968 | # All AIX code is PIC. |
| 3969 | if test "$host_cpu" = ia64; then |
| 3970 | # AIX 5 now supports IA64 processor |
| 3971 | lt_prog_compiler_static='-Bstatic' |
| 3972 | fi |
| 3973 | ;; |
| 3974 | |
| 3975 | amigaos*) |
| 3976 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 3977 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 3978 | # like `-m68040'. |
| 3979 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 3980 | ;; |
| 3981 | |
| 3982 | beos* | irix5* | irix6* | osf3* | osf4* | osf5*) |
| 3983 | # PIC is the default for these OSes. |
| 3984 | ;; |
| 3985 | |
| 3986 | cygwin* | mingw* | pw32* | os2*) |
| 3987 | # This hack is so that the source file can tell whether it is being |
| 3988 | # built for inclusion in a dll (and should export symbols for example). |
| 3989 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 3990 | ;; |
| 3991 | |
| 3992 | darwin* | rhapsody*) |
| 3993 | # PIC is the default on this platform |
| 3994 | # Common symbols not allowed in MH_DYLIB files |
| 3995 | lt_prog_compiler_pic='-fno-common' |
| 3996 | ;; |
| 3997 | |
| 3998 | msdosdjgpp*) |
| 3999 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 4000 | # on systems that don't support them. |
| 4001 | lt_prog_compiler_can_build_shared=no |
| 4002 | enable_shared=no |
| 4003 | ;; |
| 4004 | |
| 4005 | sysv4*MP*) |
| 4006 | if test -d /usr/nec; then |
| 4007 | lt_prog_compiler_pic=-Kconform_pic |
| 4008 | fi |
| 4009 | ;; |
| 4010 | |
| 4011 | hpux*) |
| 4012 | # PIC is the default for IA64 HP-UX, but not for PA HP-UX. |
| 4013 | if test "$host_cpu" != ia64; then |
| 4014 | lt_prog_compiler_pic='-fPIC' |
| 4015 | fi |
| 4016 | ;; |
| 4017 | |
| 4018 | *) |
| 4019 | lt_prog_compiler_pic='-fPIC' |
| 4020 | ;; |
| 4021 | esac |
| 4022 | else |
| 4023 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 4024 | case $host_os in |
| 4025 | aix*) |
| 4026 | lt_prog_compiler_wl='-Wl,' |
| 4027 | if test "$host_cpu" = ia64; then |
| 4028 | # AIX 5 now supports IA64 processor |
| 4029 | lt_prog_compiler_static='-Bstatic' |
| 4030 | else |
| 4031 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 4032 | fi |
| 4033 | ;; |
| 4034 | |
| 4035 | cygwin* | mingw* | pw32* | os2*) |
| 4036 | # This hack is so that the source file can tell whether it is being |
| 4037 | # built for inclusion in a dll (and should export symbols for example). |
| 4038 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 4039 | ;; |
| 4040 | |
| 4041 | hpux9* | hpux10* | hpux11*) |
| 4042 | lt_prog_compiler_wl='-Wl,' |
| 4043 | if test "$host_cpu" != ia64; then |
| 4044 | lt_prog_compiler_pic='+Z' |
| 4045 | fi |
| 4046 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 4047 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 4048 | ;; |
| 4049 | |
| 4050 | irix5* | irix6*) |
| 4051 | lt_prog_compiler_wl='-Wl,' |
| 4052 | # PIC (with -KPIC) is the default. |
| 4053 | lt_prog_compiler_static='-non_shared' |
| 4054 | ;; |
| 4055 | |
| 4056 | newsos6) |
| 4057 | lt_prog_compiler_pic='-KPIC' |
| 4058 | lt_prog_compiler_static='-Bstatic' |
| 4059 | ;; |
| 4060 | |
| 4061 | osf3* | osf4* | osf5*) |
| 4062 | lt_prog_compiler_wl='-Wl,' |
| 4063 | # All OSF/1 code is PIC. |
| 4064 | lt_prog_compiler_static='-non_shared' |
| 4065 | ;; |
| 4066 | |
| 4067 | sco3.2v5*) |
| 4068 | lt_prog_compiler_pic='-Kpic' |
| 4069 | lt_prog_compiler_static='-dn' |
| 4070 | ;; |
| 4071 | |
| 4072 | solaris*) |
| 4073 | lt_prog_compiler_wl='-Wl,' |
| 4074 | lt_prog_compiler_pic='-KPIC' |
| 4075 | lt_prog_compiler_static='-Bstatic' |
| 4076 | ;; |
| 4077 | |
| 4078 | sunos4*) |
| 4079 | lt_prog_compiler_wl='-Qoption ld ' |
| 4080 | lt_prog_compiler_pic='-PIC' |
| 4081 | lt_prog_compiler_static='-Bstatic' |
| 4082 | ;; |
| 4083 | |
| 4084 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 4085 | if test "x$host_vendor" = xsni; then |
| 4086 | lt_prog_compiler_wl='-LD' |
| 4087 | else |
| 4088 | lt_prog_compiler_wl='-Wl,' |
| 4089 | fi |
| 4090 | lt_prog_compiler_pic='-KPIC' |
| 4091 | lt_prog_compiler_static='-Bstatic' |
| 4092 | ;; |
| 4093 | |
| 4094 | sysv4*MP*) |
| 4095 | if test -d /usr/nec ;then |
| 4096 | lt_prog_compiler_pic='-Kconform_pic' |
| 4097 | lt_prog_compiler_static='-Bstatic' |
| 4098 | fi |
| 4099 | ;; |
| 4100 | |
| 4101 | uts4*) |
| 4102 | lt_prog_compiler_pic='-pic' |
| 4103 | lt_prog_compiler_static='-Bstatic' |
| 4104 | ;; |
| 4105 | |
| 4106 | *) |
| 4107 | lt_prog_compiler_can_build_shared=no |
| 4108 | ;; |
| 4109 | esac |
| 4110 | fi |
| 4111 | |
| 4112 | echo "$as_me:4112: result: $lt_prog_compiler_pic" >&5 |
| 4113 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
| 4114 | |
| 4115 | # |
| 4116 | # Check to make sure the PIC flag actually works. |
| 4117 | # |
| 4118 | if test -n "$lt_prog_compiler_pic"; then |
| 4119 | echo "$as_me:4119: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 4120 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
| 4121 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
| 4122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4123 | else |
| 4124 | lt_prog_compiler_pic_works=no |
| 4125 | ac_outfile=conftest.$ac_objext |
| 4126 | save_CFLAGS="$CFLAGS" |
| 4127 | CFLAGS="$CFLAGS $lt_prog_compiler_pic -DPIC" |
| 4128 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 4129 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then |
| 4130 | # The compiler can only warn and ignore the option if not recognized |
| 4131 | # So say no if there are warnings |
| 4132 | if test -s conftest.err; then |
| 4133 | # Append any errors to the config.log. |
| 4134 | cat conftest.err 1>&5 |
| 4135 | else |
| 4136 | lt_prog_compiler_pic_works=yes |
| 4137 | fi |
| 4138 | fi |
| 4139 | $rm conftest* |
| 4140 | CFLAGS="$save_CFLAGS" |
| 4141 | |
| 4142 | fi |
| 4143 | echo "$as_me:4143: result: $lt_prog_compiler_pic_works" >&5 |
| 4144 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
| 4145 | |
| 4146 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 4147 | case $lt_prog_compiler_pic in |
| 4148 | "" | " "*) ;; |
| 4149 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 4150 | esac |
| 4151 | else |
| 4152 | lt_prog_compiler_pic= |
| 4153 | lt_prog_compiler_can_build_shared=no |
| 4154 | fi |
| 4155 | |
| 4156 | fi |
| 4157 | case "$host_os" in |
| 4158 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 4159 | *djgpp*) |
| 4160 | lt_prog_compiler_pic= |
| 4161 | ;; |
| 4162 | *) |
| 4163 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 4164 | ;; |
| 4165 | esac |
| 4166 | |
| 4167 | echo "$as_me:4167: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 4168 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 4169 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
| 4170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4171 | else |
| 4172 | lt_cv_prog_compiler_c_o=no |
| 4173 | $rm -r conftest 2>/dev/null |
| 4174 | mkdir conftest |
| 4175 | cd conftest |
| 4176 | mkdir out |
| 4177 | save_CFLAGS="$CFLAGS" |
| 4178 | CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" |
| 4179 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 4180 | |
| 4181 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 4182 | # that will create temporary files in the current directory regardless of |
| 4183 | # the output directory. Thus, making CWD read-only will cause this test |
| 4184 | # to fail, enabling locking or at least warning the user not to do parallel |
| 4185 | # builds. |
| 4186 | chmod -w . |
| 4187 | |
| 4188 | if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext |
| 4189 | then |
| 4190 | # The compiler can only warn and ignore the option if not recognized |
| 4191 | # So say no if there are warnings |
| 4192 | if test -s out/conftest.err; then |
| 4193 | # Append any errors to the config.log. |
| 4194 | cat out/conftest.err 1>&5 |
| 4195 | else |
| 4196 | lt_cv_prog_compiler_c_o=yes |
| 4197 | fi |
| 4198 | fi |
| 4199 | CFLAGS="$save_CFLAGS" |
| 4200 | chmod u+w . |
| 4201 | $rm conftest* out/* |
| 4202 | rmdir out |
| 4203 | cd .. |
| 4204 | rmdir conftest |
| 4205 | $rm conftest* |
| 4206 | |
| 4207 | fi |
| 4208 | echo "$as_me:4208: result: $lt_cv_prog_compiler_c_o" >&5 |
| 4209 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
| 4210 | |
| 4211 | hard_links="nottested" |
| 4212 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 4213 | # do not overwrite the value of need_locks provided by the user |
| 4214 | echo "$as_me:4214: checking if we can lock with hard links" >&5 |
| 4215 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 4216 | hard_links=yes |
| 4217 | $rm conftest* |
| 4218 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 4219 | touch conftest.a |
| 4220 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 4221 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 4222 | echo "$as_me:4222: result: $hard_links" >&5 |
| 4223 | echo "${ECHO_T}$hard_links" >&6 |
| 4224 | if test "$hard_links" = no; then |
| 4225 | { echo "$as_me:4225: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 4226 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 4227 | need_locks=warn |
| 4228 | fi |
| 4229 | else |
| 4230 | need_locks=no |
| 4231 | fi |
| 4232 | |
| 4233 | echo "$as_me:4233: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 4234 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 4235 | |
| 4236 | runpath_var= |
| 4237 | allow_undefined_flag= |
| 4238 | |
| 4239 | archive_cmds= |
| 4240 | archive_cmds_need_lc= |
| 4241 | archive_expsym_cmds= |
| 4242 | old_archive_From_new_cmds= |
| 4243 | old_archive_from_expsyms_cmds= |
| 4244 | export_dynamic_flag_spec= |
| 4245 | whole_archive_flag_spec= |
| 4246 | thread_safe_flag_spec= |
| 4247 | hardcode_libdir_flag_spec= |
| 4248 | hardcode_libdir_separator= |
| 4249 | hardcode_direct=no |
| 4250 | hardcode_minus_L=no |
| 4251 | hardcode_shlibpath_var=unsupported |
| 4252 | link_all_deplibs=unknown |
| 4253 | always_export_symbols=no |
| 4254 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 4255 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 4256 | # included in the symbol list |
| 4257 | include_expsyms= |
| 4258 | # exclude_expsyms can be an egrep regular expression of symbols to exclude |
| 4259 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 4260 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 4261 | # as well as any symbol that contains `d'. |
| 4262 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 4263 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 4264 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 4265 | # the symbol is explicitly referenced. Since portable code cannot |
| 4266 | # rely on this symbol name, it's probably fine to never include it in |
| 4267 | # preloaded symbol tables. |
| 4268 | extract_expsyms_cmds= |
| 4269 | |
| 4270 | case $host_os in |
| 4271 | cygwin* | mingw* | pw32*) |
| 4272 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 4273 | # When not using gcc, we currently assume that we are using |
| 4274 | # Microsoft Visual C++. |
| 4275 | if test "$GCC" != yes; then |
| 4276 | with_gnu_ld=no |
| 4277 | fi |
| 4278 | ;; |
| 4279 | openbsd*) |
| 4280 | with_gnu_ld=no |
| 4281 | ;; |
| 4282 | esac |
| 4283 | |
| 4284 | ld_shlibs=yes |
| 4285 | if test "$with_gnu_ld" = yes; then |
| 4286 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 4287 | wlarc='${wl}' |
| 4288 | |
| 4289 | # See if GNU ld supports shared libraries. |
| 4290 | case $host_os in |
| 4291 | aix3* | aix4* | aix5*) |
| 4292 | # On AIX/PPC, the GNU linker is very broken |
| 4293 | if test "$host_cpu" != ia64; then |
| 4294 | ld_shlibs=no |
| 4295 | cat <<EOF 1>&2 |
| 4296 | |
| 4297 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 4298 | *** to be unable to reliably create shared libraries on AIX. |
| 4299 | *** Therefore, libtool is disabling shared libraries support. If you |
| 4300 | *** really care for shared libraries, you may want to modify your PATH |
| 4301 | *** so that a non-GNU linker is found, and then restart. |
| 4302 | |
| 4303 | EOF |
| 4304 | fi |
| 4305 | ;; |
| 4306 | |
| 4307 | amigaos*) |
| 4308 | 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)' |
| 4309 | hardcode_libdir_flag_spec='-L$libdir' |
| 4310 | hardcode_minus_L=yes |
| 4311 | |
| 4312 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 4313 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 4314 | # to version 4, is to share data among multiple programs linked |
| 4315 | # with the same dynamic library. Since this doesn't match the |
| 4316 | # behavior of shared libraries on other platforms, we can't use |
| 4317 | # them. |
| 4318 | ld_shlibs=no |
| 4319 | ;; |
| 4320 | |
| 4321 | beos*) |
| 4322 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 4323 | allow_undefined_flag=unsupported |
| 4324 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 4325 | # support --undefined. This deserves some investigation. FIXME |
| 4326 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 4327 | else |
| 4328 | ld_shlibs=no |
| 4329 | fi |
| 4330 | ;; |
| 4331 | |
| 4332 | cygwin* | mingw* | pw32*) |
| 4333 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, as there is |
| 4334 | # no search path for DLLs. |
| 4335 | hardcode_libdir_flag_spec='-L$libdir' |
| 4336 | allow_undefined_flag=unsupported |
| 4337 | always_export_symbols=yes |
| 4338 | |
| 4339 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ |
| 4340 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ |
| 4341 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ |
| 4342 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ |
| 4343 | else $CC -o impgen impgen.c ; fi)~ |
| 4344 | $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' |
| 4345 | |
| 4346 | old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' |
| 4347 | |
| 4348 | # cygwin and mingw dlls have different entry points and sets of symbols |
| 4349 | # to exclude. |
| 4350 | # FIXME: what about values for MSVC? |
| 4351 | dll_entry=__cygwin_dll_entry@12 |
| 4352 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ |
| 4353 | case $host_os in |
| 4354 | mingw*) |
| 4355 | # mingw values |
| 4356 | dll_entry=_DllMainCRTStartup@12 |
| 4357 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ |
| 4358 | ;; |
| 4359 | esac |
| 4360 | |
| 4361 | # mingw and cygwin differ, and it's simplest to just exclude the union |
| 4362 | # of the two symbol sets. |
| 4363 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 |
| 4364 | |
| 4365 | # recent cygwin and mingw systems supply a stub DllMain which the user |
| 4366 | # can override, but on older systems we have to supply one (in ltdll.c) |
| 4367 | if test "x$lt_cv_need_dllmain" = "xyes"; then |
| 4368 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
| 4369 | ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ |
| 4370 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
| 4371 | else |
| 4372 | ltdll_obj= |
| 4373 | ltdll_cmds= |
| 4374 | fi |
| 4375 | |
| 4376 | # Extract the symbol export list from an `--export-all' def file, |
| 4377 | # then regenerate the def file from the symbol export list, so that |
| 4378 | # the compiled dll only exports the symbol export list. |
| 4379 | # Be careful not to strip the DATA tag left by newer dlltools. |
| 4380 | export_symbols_cmds="$ltdll_cmds"' |
| 4381 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
| 4382 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' |
| 4383 | |
| 4384 | # If the export-symbols file already is a .def file (1st line |
| 4385 | # is EXPORTS), use it as is. |
| 4386 | # If DATA tags from a recent dlltool are present, honour them! |
| 4387 | archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then |
| 4388 | cp $export_symbols $output_objdir/$soname-def; |
| 4389 | else |
| 4390 | echo EXPORTS > $output_objdir/$soname-def; |
| 4391 | _lt_hint=1; |
| 4392 | cat $export_symbols | while read symbol; do |
| 4393 | set dummy \$symbol; |
| 4394 | case \$# in |
| 4395 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
| 4396 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; |
| 4397 | esac; |
| 4398 | _lt_hint=`expr 1 + \$_lt_hint`; |
| 4399 | done; |
| 4400 | fi~ |
| 4401 | '"$ltdll_cmds"' |
| 4402 | $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
| 4403 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ |
| 4404 | $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
| 4405 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ |
| 4406 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' |
| 4407 | ;; |
| 4408 | |
| 4409 | darwin* | rhapsody*) |
| 4410 | allow_undefined_flag='-undefined suppress' |
| 4411 | # FIXME: Relying on posixy $() will cause problems for |
| 4412 | # cross-compilation, but unfortunately the echo tests do not |
| 4413 | # yet detect zsh echo's removal of \ escapes. |
| 4414 | archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)' |
| 4415 | # We need to add '_' to the symbols in $export_symbols first |
| 4416 | #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols' |
| 4417 | hardcode_direct=yes |
| 4418 | hardcode_shlibpath_var=no |
| 4419 | whole_archive_flag_spec='-all_load $convenience' |
| 4420 | ;; |
| 4421 | |
| 4422 | netbsd*) |
| 4423 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 4424 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 4425 | wlarc= |
| 4426 | else |
| 4427 | archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 4428 | archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 4429 | fi |
| 4430 | ;; |
| 4431 | |
| 4432 | solaris* | sysv5*) |
| 4433 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
| 4434 | ld_shlibs=no |
| 4435 | cat <<EOF 1>&2 |
| 4436 | |
| 4437 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 4438 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 4439 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 4440 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 4441 | *** your PATH or compiler configuration so that the native linker is |
| 4442 | *** used, and then restart. |
| 4443 | |
| 4444 | EOF |
| 4445 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 4446 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 4447 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 4448 | else |
| 4449 | ld_shlibs=no |
| 4450 | fi |
| 4451 | ;; |
| 4452 | |
| 4453 | sunos4*) |
| 4454 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 4455 | wlarc= |
| 4456 | hardcode_direct=yes |
| 4457 | hardcode_shlibpath_var=no |
| 4458 | ;; |
| 4459 | |
| 4460 | *) |
| 4461 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 4462 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 4463 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 4464 | else |
| 4465 | ld_shlibs=no |
| 4466 | fi |
| 4467 | ;; |
| 4468 | esac |
| 4469 | |
| 4470 | if test "$ld_shlibs" = yes; then |
| 4471 | runpath_var=LD_RUN_PATH |
| 4472 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 4473 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 4474 | case $host_os in |
| 4475 | cygwin* | mingw* | pw32*) |
| 4476 | # dlltool doesn't understand --whole-archive et. al. |
| 4477 | whole_archive_flag_spec= |
| 4478 | ;; |
| 4479 | *) |
| 4480 | # ancient GNU ld didn't support --whole-archive et. al. |
| 4481 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then |
| 4482 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 4483 | else |
| 4484 | whole_archive_flag_spec= |
| 4485 | fi |
| 4486 | ;; |
| 4487 | esac |
| 4488 | fi |
| 4489 | else |
| 4490 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 4491 | case $host_os in |
| 4492 | aix3*) |
| 4493 | allow_undefined_flag=unsupported |
| 4494 | always_export_symbols=yes |
| 4495 | 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' |
| 4496 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 4497 | # are no directories specified by -L. |
| 4498 | hardcode_minus_L=yes |
| 4499 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 4500 | # Neither direct hardcoding nor static linking is supported with a |
| 4501 | # broken collect2. |
| 4502 | hardcode_direct=unsupported |
| 4503 | fi |
| 4504 | ;; |
| 4505 | |
| 4506 | aix4* | aix5*) |
| 4507 | if test "$host_cpu" = ia64; then |
| 4508 | # On IA64, the linker does run time linking by default, so we don't |
| 4509 | # have to do anything special. |
| 4510 | aix_use_runtimelinking=no |
| 4511 | exp_sym_flag='-Bexport' |
| 4512 | no_entry_flag="" |
| 4513 | else |
| 4514 | aix_use_runtimelinking=no |
| 4515 | |
| 4516 | # Test if we are trying to use run time linking or normal |
| 4517 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 4518 | # need to do runtime linking. |
| 4519 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 4520 | for ld_flag in $LDFLAGS; do |
| 4521 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 4522 | aix_use_runtimelinking=yes |
| 4523 | break |
| 4524 | fi |
| 4525 | done |
| 4526 | esac |
| 4527 | |
| 4528 | exp_sym_flag='-bexport' |
| 4529 | no_entry_flag='-bnoentry' |
| 4530 | fi |
| 4531 | |
| 4532 | # When large executables or shared objects are built, AIX ld can |
| 4533 | # have problems creating the table of contents. If linking a library |
| 4534 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 4535 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 4536 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 4537 | |
| 4538 | archive_cmds='' |
| 4539 | hardcode_direct=yes |
| 4540 | hardcode_libdir_separator=':' |
| 4541 | link_all_deplibs=yes |
| 4542 | |
| 4543 | if test "$GCC" = yes; then |
| 4544 | case $host_os in aix4.012|aix4.012.*) |
| 4545 | # We only want to do this on AIX 4.2 and lower, the check |
| 4546 | # below for broken collect2 doesn't work under 4.3+ |
| 4547 | collect2name=`${CC} -print-prog-name=collect2` |
| 4548 | if test -f "$collect2name" && \ |
| 4549 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 4550 | then |
| 4551 | # We have reworked collect2 |
| 4552 | hardcode_direct=yes |
| 4553 | else |
| 4554 | # We have old collect2 |
| 4555 | hardcode_direct=unsupported |
| 4556 | # It fails to find uninstalled libraries when the uninstalled |
| 4557 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 4558 | # to unsupported forces relinking |
| 4559 | hardcode_minus_L=yes |
| 4560 | hardcode_libdir_flag_spec='-L$libdir' |
| 4561 | hardcode_libdir_separator= |
| 4562 | fi |
| 4563 | esac |
| 4564 | shared_flag='-shared' |
| 4565 | else |
| 4566 | # not using gcc |
| 4567 | if test "$host_cpu" = ia64; then |
| 4568 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 4569 | # chokes on -Wl,-G. The following line is correct: |
| 4570 | shared_flag='-G' |
| 4571 | else |
| 4572 | if test "$aix_use_runtimelinking" = yes; then |
| 4573 | shared_flag='${wl}-G' |
| 4574 | else |
| 4575 | shared_flag='${wl}-bM:SRE' |
| 4576 | fi |
| 4577 | fi |
| 4578 | fi |
| 4579 | |
| 4580 | # It seems that -bexpall does not export symbols beginning with |
| 4581 | # underscore (_), so it is better to generate a list of symbols to export. |
| 4582 | always_export_symbols=yes |
| 4583 | if test "$aix_use_runtimelinking" = yes; then |
| 4584 | # Warning - without using the other runtime loading flags (-brtl), |
| 4585 | # -berok will link without error, but may produce a broken library. |
| 4586 | allow_undefined_flag='-berok' |
| 4587 | # Determine the default libpath from the value encoded in an empty executable. |
| 4588 | cat >conftest.$ac_ext <<_ACEOF |
| 4589 | #line 4589 "configure" |
| 4590 | #include "confdefs.h" |
| 4591 | |
| 4592 | int |
| 4593 | main () |
| 4594 | { |
| 4595 | |
| 4596 | ; |
| 4597 | return 0; |
| 4598 | } |
| 4599 | _ACEOF |
| 4600 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4601 | if { (eval echo "$as_me:4601: \"$ac_link\"") >&5 |
| 4602 | (eval $ac_link) 2>&5 |
| 4603 | ac_status=$? |
| 4604 | echo "$as_me:4604: \$? = $ac_status" >&5 |
| 4605 | (exit $ac_status); } && |
| 4606 | { ac_try='test -s conftest$ac_exeext' |
| 4607 | { (eval echo "$as_me:4607: \"$ac_try\"") >&5 |
| 4608 | (eval $ac_try) 2>&5 |
| 4609 | ac_status=$? |
| 4610 | echo "$as_me:4610: \$? = $ac_status" >&5 |
| 4611 | (exit $ac_status); }; }; then |
| 4612 | |
| 4613 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'` |
| 4614 | # Check for a 64-bit object if we didn't find anything. |
| 4615 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi |
| 4616 | else |
| 4617 | echo "$as_me: failed program was:" >&5 |
| 4618 | cat conftest.$ac_ext >&5 |
| 4619 | fi |
| 4620 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4621 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 4622 | |
| 4623 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 4624 | 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" |
| 4625 | else |
| 4626 | if test "$host_cpu" = ia64; then |
| 4627 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 4628 | allow_undefined_flag="-z nodefs" |
| 4629 | 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" |
| 4630 | else |
| 4631 | # Determine the default libpath from the value encoded in an empty executable. |
| 4632 | cat >conftest.$ac_ext <<_ACEOF |
| 4633 | #line 4633 "configure" |
| 4634 | #include "confdefs.h" |
| 4635 | |
| 4636 | int |
| 4637 | main () |
| 4638 | { |
| 4639 | |
| 4640 | ; |
| 4641 | return 0; |
| 4642 | } |
| 4643 | _ACEOF |
| 4644 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4645 | if { (eval echo "$as_me:4645: \"$ac_link\"") >&5 |
| 4646 | (eval $ac_link) 2>&5 |
| 4647 | ac_status=$? |
| 4648 | echo "$as_me:4648: \$? = $ac_status" >&5 |
| 4649 | (exit $ac_status); } && |
| 4650 | { ac_try='test -s conftest$ac_exeext' |
| 4651 | { (eval echo "$as_me:4651: \"$ac_try\"") >&5 |
| 4652 | (eval $ac_try) 2>&5 |
| 4653 | ac_status=$? |
| 4654 | echo "$as_me:4654: \$? = $ac_status" >&5 |
| 4655 | (exit $ac_status); }; }; then |
| 4656 | |
| 4657 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'` |
| 4658 | # Check for a 64-bit object if we didn't find anything. |
| 4659 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi |
| 4660 | else |
| 4661 | echo "$as_me: failed program was:" >&5 |
| 4662 | cat conftest.$ac_ext >&5 |
| 4663 | fi |
| 4664 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4665 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 4666 | |
| 4667 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 4668 | # Warning - without using the other run time loading flags, |
| 4669 | # -berok will link without error, but may produce a broken library. |
| 4670 | no_undefined_flag=' ${wl}-bernotok' |
| 4671 | allow_undefined_flag=' ${wl}-berok' |
| 4672 | # -bexpall does not export symbols beginning with underscore (_) |
| 4673 | always_export_symbols=yes |
| 4674 | # Exported symbols can be pulled into shared objects from archives |
| 4675 | whole_archive_flag_spec=' ' |
| 4676 | archive_cmds_need_lc=yes |
| 4677 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 4678 | 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' |
| 4679 | fi |
| 4680 | fi |
| 4681 | ;; |
| 4682 | |
| 4683 | amigaos*) |
| 4684 | 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)' |
| 4685 | hardcode_libdir_flag_spec='-L$libdir' |
| 4686 | hardcode_minus_L=yes |
| 4687 | # see comment about different semantics on the GNU ld section |
| 4688 | ld_shlibs=no |
| 4689 | ;; |
| 4690 | |
| 4691 | bsdi4*) |
| 4692 | export_dynamic_flag_spec=-rdynamic |
| 4693 | ;; |
| 4694 | |
| 4695 | cygwin* | mingw* | pw32*) |
| 4696 | # When not using gcc, we currently assume that we are using |
| 4697 | # Microsoft Visual C++. |
| 4698 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 4699 | # no search path for DLLs. |
| 4700 | hardcode_libdir_flag_spec=' ' |
| 4701 | allow_undefined_flag=unsupported |
| 4702 | # Tell ltmain to make .lib files, not .a files. |
| 4703 | libext=lib |
| 4704 | # FIXME: Setting linknames here is a bad hack. |
| 4705 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 4706 | # The linker will automatically build a .lib file if we build a DLL. |
| 4707 | old_archive_From_new_cmds='true' |
| 4708 | # FIXME: Should let the user specify the lib program. |
| 4709 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 4710 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 4711 | ;; |
| 4712 | |
| 4713 | dgux*) |
| 4714 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 4715 | hardcode_libdir_flag_spec='-L$libdir' |
| 4716 | hardcode_shlibpath_var=no |
| 4717 | ;; |
| 4718 | |
| 4719 | freebsd1*) |
| 4720 | ld_shlibs=no |
| 4721 | ;; |
| 4722 | |
| 4723 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 4724 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 4725 | # does not break anything, and helps significantly (at the cost of a little |
| 4726 | # extra space). |
| 4727 | freebsd2.2*) |
| 4728 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 4729 | hardcode_libdir_flag_spec='-R$libdir' |
| 4730 | hardcode_direct=yes |
| 4731 | hardcode_shlibpath_var=no |
| 4732 | ;; |
| 4733 | |
| 4734 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 4735 | freebsd2*) |
| 4736 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 4737 | hardcode_direct=yes |
| 4738 | hardcode_minus_L=yes |
| 4739 | hardcode_shlibpath_var=no |
| 4740 | ;; |
| 4741 | |
| 4742 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 4743 | freebsd*) |
| 4744 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 4745 | hardcode_libdir_flag_spec='-R$libdir' |
| 4746 | hardcode_direct=yes |
| 4747 | hardcode_shlibpath_var=no |
| 4748 | ;; |
| 4749 | |
| 4750 | hpux9* | hpux10* | hpux11*) |
| 4751 | if test $GXX = yes; then |
| 4752 | case $host_os in |
| 4753 | hpux9*) |
| 4754 | 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' |
| 4755 | ;; |
| 4756 | *) |
| 4757 | if test "$host_cpu" = ia64; then |
| 4758 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 4759 | else |
| 4760 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 4761 | fi |
| 4762 | ;; |
| 4763 | esac |
| 4764 | else |
| 4765 | case $host_os in |
| 4766 | hpux9*) |
| 4767 | 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' |
| 4768 | ;; |
| 4769 | *) |
| 4770 | if test "$host_cpu" = ia64; then |
| 4771 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 4772 | else |
| 4773 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 4774 | fi |
| 4775 | ;; |
| 4776 | esac |
| 4777 | fi |
| 4778 | if test "$host_cpu" = ia64; then |
| 4779 | hardcode_libdir_flag_spec='-L$libdir' |
| 4780 | hardcode_direct=no |
| 4781 | hardcode_shlibpath_var=no |
| 4782 | else |
| 4783 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 4784 | hardcode_libdir_separator=: |
| 4785 | hardcode_direct=yes |
| 4786 | fi |
| 4787 | # hardcode_minus_L: Not really in the search PATH, |
| 4788 | # but as the default location of the library. |
| 4789 | hardcode_minus_L=yes |
| 4790 | export_dynamic_flag_spec='${wl}-E' |
| 4791 | ;; |
| 4792 | |
| 4793 | irix5* | irix6*) |
| 4794 | if test "$GCC" = yes; then |
| 4795 | 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' |
| 4796 | else |
| 4797 | 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' |
| 4798 | fi |
| 4799 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 4800 | hardcode_libdir_separator=: |
| 4801 | link_all_deplibs=yes |
| 4802 | ;; |
| 4803 | |
| 4804 | netbsd*) |
| 4805 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 4806 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 4807 | else |
| 4808 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 4809 | fi |
| 4810 | hardcode_libdir_flag_spec='-R$libdir' |
| 4811 | hardcode_direct=yes |
| 4812 | hardcode_shlibpath_var=no |
| 4813 | ;; |
| 4814 | |
| 4815 | newsos6) |
| 4816 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' |
| 4817 | hardcode_direct=yes |
| 4818 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 4819 | hardcode_libdir_separator=: |
| 4820 | hardcode_shlibpath_var=no |
| 4821 | ;; |
| 4822 | |
| 4823 | openbsd*) |
| 4824 | hardcode_direct=yes |
| 4825 | hardcode_shlibpath_var=no |
| 4826 | |
| 4827 | case "$host_os" in |
| 4828 | openbsd01.* | openbsd2.0-7 | openbsd2.0-7.*) |
| 4829 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 4830 | hardcode_libdir_flag_spec='-R$libdir' |
| 4831 | ;; |
| 4832 | *) |
| 4833 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' |
| 4834 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 4835 | if "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then |
| 4836 | export_dynamic_flag_spec='${wl}-E' |
| 4837 | fi |
| 4838 | ;; |
| 4839 | esac |
| 4840 | ;; |
| 4841 | |
| 4842 | os2*) |
| 4843 | hardcode_libdir_flag_spec='-L$libdir' |
| 4844 | hardcode_minus_L=yes |
| 4845 | allow_undefined_flag=unsupported |
| 4846 | 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' |
| 4847 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 4848 | ;; |
| 4849 | |
| 4850 | osf3*) |
| 4851 | if test "$GCC" = yes; then |
| 4852 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 4853 | 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' |
| 4854 | else |
| 4855 | allow_undefined_flag=' -expect_unresolved \*' |
| 4856 | 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' |
| 4857 | fi |
| 4858 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 4859 | hardcode_libdir_separator=: |
| 4860 | ;; |
| 4861 | |
| 4862 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 4863 | if test "$GCC" = yes; then |
| 4864 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 4865 | 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' |
| 4866 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 4867 | else |
| 4868 | allow_undefined_flag=' -expect_unresolved \*' |
| 4869 | 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' |
| 4870 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 4871 | $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' |
| 4872 | |
| 4873 | # Both c and cxx compiler support -rpath directly |
| 4874 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 4875 | fi |
| 4876 | hardcode_libdir_separator=: |
| 4877 | ;; |
| 4878 | |
| 4879 | sco3.2v5*) |
| 4880 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 4881 | hardcode_shlibpath_var=no |
| 4882 | export_dynamic_flag_spec='${wl}-Bexport' |
| 4883 | runpath_var=LD_RUN_PATH |
| 4884 | hardcode_runpath_var=yes |
| 4885 | ;; |
| 4886 | |
| 4887 | solaris*) |
| 4888 | no_undefined_flag=' -z defs' |
| 4889 | if test "$GXX" = yes; then |
| 4890 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 4891 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 4892 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 4893 | else |
| 4894 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 4895 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 4896 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 4897 | fi |
| 4898 | hardcode_libdir_flag_spec='-R$libdir' |
| 4899 | hardcode_shlibpath_var=no |
| 4900 | case $host_os in |
| 4901 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 4902 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 4903 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 4904 | esac |
| 4905 | link_all_deplibs=yes |
| 4906 | ;; |
| 4907 | |
| 4908 | sunos4*) |
| 4909 | if test "x$host_vendor" = xsequent; then |
| 4910 | # Use $CC to link under sequent, because it throws in some extra .o |
| 4911 | # files that make .init and .fini sections work. |
| 4912 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 4913 | else |
| 4914 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 4915 | fi |
| 4916 | hardcode_libdir_flag_spec='-L$libdir' |
| 4917 | hardcode_direct=yes |
| 4918 | hardcode_minus_L=yes |
| 4919 | hardcode_shlibpath_var=no |
| 4920 | ;; |
| 4921 | |
| 4922 | sysv4) |
| 4923 | if test "x$host_vendor" = xsni; then |
| 4924 | archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts' |
| 4925 | hardcode_direct=yes # is this really true??? |
| 4926 | else |
| 4927 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 4928 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 4929 | fi |
| 4930 | runpath_var='LD_RUN_PATH' |
| 4931 | hardcode_shlibpath_var=no |
| 4932 | ;; |
| 4933 | |
| 4934 | sysv4.3*) |
| 4935 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 4936 | hardcode_shlibpath_var=no |
| 4937 | export_dynamic_flag_spec='-Bexport' |
| 4938 | ;; |
| 4939 | |
| 4940 | sysv4*MP*) |
| 4941 | if test -d /usr/nec; then |
| 4942 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 4943 | hardcode_shlibpath_var=no |
| 4944 | runpath_var=LD_RUN_PATH |
| 4945 | hardcode_runpath_var=yes |
| 4946 | ld_shlibs=yes |
| 4947 | fi |
| 4948 | ;; |
| 4949 | |
| 4950 | sysv4.2uw2*) |
| 4951 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 4952 | hardcode_direct=yes |
| 4953 | hardcode_minus_L=no |
| 4954 | hardcode_shlibpath_var=no |
| 4955 | hardcode_runpath_var=yes |
| 4956 | runpath_var=LD_RUN_PATH |
| 4957 | ;; |
| 4958 | |
| 4959 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 4960 | no_undefined_flag='${wl}-z ${wl}text' |
| 4961 | if test "$GCC" = yes; then |
| 4962 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 4963 | else |
| 4964 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 4965 | fi |
| 4966 | runpath_var='LD_RUN_PATH' |
| 4967 | hardcode_shlibpath_var=no |
| 4968 | ;; |
| 4969 | |
| 4970 | sysv5*) |
| 4971 | no_undefined_flag=' -z text' |
| 4972 | # $CC -shared without GNU ld will not create a library from C++ |
| 4973 | # object files and a static libstdc++, better avoid it by now |
| 4974 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 4975 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 4976 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 4977 | hardcode_libdir_flag_spec= |
| 4978 | hardcode_shlibpath_var=no |
| 4979 | runpath_var='LD_RUN_PATH' |
| 4980 | ;; |
| 4981 | |
| 4982 | uts4*) |
| 4983 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 4984 | hardcode_libdir_flag_spec='-L$libdir' |
| 4985 | hardcode_shlibpath_var=no |
| 4986 | ;; |
| 4987 | |
| 4988 | *) |
| 4989 | ld_shlibs=no |
| 4990 | ;; |
| 4991 | esac |
| 4992 | fi |
| 4993 | |
| 4994 | echo "$as_me:4994: result: $ld_shlibs" >&5 |
| 4995 | echo "${ECHO_T}$ld_shlibs" >&6 |
| 4996 | test "$ld_shlibs" = no && can_build_shared=no |
| 4997 | |
| 4998 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 4999 | if test "$GCC" = yes; then |
| 5000 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 5001 | fi |
| 5002 | |
| 5003 | # |
| 5004 | # Do we need to explicitly link libc? |
| 5005 | # |
| 5006 | archive_cmds_need_lc=yes |
| 5007 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 5008 | case $archive_cmds in |
| 5009 | *'~'*) |
| 5010 | # FIXME: we may have to deal with multi-command sequences. |
| 5011 | ;; |
| 5012 | '$CC '*) |
| 5013 | # Test whether the compiler implicitly links with -lc since on some |
| 5014 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 5015 | # to ld, don't add -lc before -lgcc. |
| 5016 | echo "$as_me:5016: checking whether -lc should be explicitly linked in" >&5 |
| 5017 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 5018 | $rm conftest* |
| 5019 | echo 'static int dummy;' > conftest.$ac_ext |
| 5020 | |
| 5021 | if { (eval echo "$as_me:5021: \"$ac_compile\"") >&5 |
| 5022 | (eval $ac_compile) 2>&5 |
| 5023 | ac_status=$? |
| 5024 | echo "$as_me:5024: \$? = $ac_status" >&5 |
| 5025 | (exit $ac_status); } 2>conftest.err; then |
| 5026 | soname=conftest |
| 5027 | lib=conftest |
| 5028 | libobjs=conftest.$ac_objext |
| 5029 | deplibs= |
| 5030 | wl=$lt_prog_compiler_wl |
| 5031 | compiler_flags=-v |
| 5032 | linker_flags=-v |
| 5033 | verstring= |
| 5034 | output_objdir=. |
| 5035 | libname=conftest |
| 5036 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 5037 | allow_undefined_flag= |
| 5038 | if { (eval echo "$as_me:5038: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 5039 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 5040 | ac_status=$? |
| 5041 | echo "$as_me:5041: \$? = $ac_status" >&5 |
| 5042 | (exit $ac_status); } |
| 5043 | then |
| 5044 | archive_cmds_need_lc=no |
| 5045 | else |
| 5046 | archive_cmds_need_lc=yes |
| 5047 | fi |
| 5048 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 5049 | else |
| 5050 | cat conftest.err 1>&5 |
| 5051 | fi |
| 5052 | $rm conftest* |
| 5053 | echo "$as_me:5053: result: $archive_cmds_need_lc" >&5 |
| 5054 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
| 5055 | ;; |
| 5056 | esac |
| 5057 | fi |
| 5058 | |
| 5059 | echo "$as_me:5059: checking how to hardcode library paths into programs" >&5 |
| 5060 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 5061 | hardcode_action= |
| 5062 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 5063 | test -n "$runpath_var "; then |
| 5064 | |
| 5065 | # We can hardcode non-existant directories. |
| 5066 | if test "$hardcode_direct" != no && |
| 5067 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 5068 | # have to relink, otherwise we might link with an installed library |
| 5069 | # when we should be linking with a yet-to-be-installed one |
| 5070 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 5071 | test "$hardcode_minus_L" != no; then |
| 5072 | # Linking always hardcodes the temporary library directory. |
| 5073 | hardcode_action=relink |
| 5074 | else |
| 5075 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 5076 | hardcode_action=immediate |
| 5077 | fi |
| 5078 | else |
| 5079 | # We cannot hardcode anything, or else we can only hardcode existing |
| 5080 | # directories. |
| 5081 | hardcode_action=unsupported |
| 5082 | fi |
| 5083 | echo "$as_me:5083: result: $hardcode_action" >&5 |
| 5084 | echo "${ECHO_T}$hardcode_action" >&6 |
| 5085 | |
| 5086 | if test "$hardcode_action" = relink; then |
| 5087 | # Fast installation is not supported |
| 5088 | enable_fast_install=no |
| 5089 | elif test "$shlibpath_overrides_runpath" = yes || |
| 5090 | test "$enable_shared" = no; then |
| 5091 | # Fast installation is not necessary |
| 5092 | enable_fast_install=needless |
| 5093 | fi |
| 5094 | |
| 5095 | striplib= |
| 5096 | old_striplib= |
| 5097 | echo "$as_me:5097: checking whether stripping libraries is possible" >&5 |
| 5098 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 5099 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 5100 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 5101 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 5102 | echo "$as_me:5102: result: yes" >&5 |
| 5103 | echo "${ECHO_T}yes" >&6 |
| 5104 | else |
| 5105 | echo "$as_me:5105: result: no" >&5 |
| 5106 | echo "${ECHO_T}no" >&6 |
| 5107 | fi |
| 5108 | |
| 5109 | echo "$as_me:5109: checking dynamic linker characteristics" >&5 |
| 5110 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 5111 | library_names_spec= |
| 5112 | libname_spec='lib$name' |
| 5113 | soname_spec= |
| 5114 | postinstall_cmds= |
| 5115 | postuninstall_cmds= |
| 5116 | finish_cmds= |
| 5117 | finish_eval= |
| 5118 | shlibpath_var= |
| 5119 | shlibpath_overrides_runpath=unknown |
| 5120 | version_type=none |
| 5121 | dynamic_linker="$host_os ld.so" |
| 5122 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 5123 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 5124 | need_lib_prefix=unknown |
| 5125 | hardcode_into_libs=no |
| 5126 | |
| 5127 | # when you set need_version to no, make sure it does not cause -set_version |
| 5128 | # flags to be left without arguments |
| 5129 | need_version=unknown |
| 5130 | |
| 5131 | case $host_os in |
| 5132 | aix3*) |
| 5133 | version_type=linux |
| 5134 | library_names_spec='${libname}${release}.so$versuffix $libname.a' |
| 5135 | shlibpath_var=LIBPATH |
| 5136 | |
| 5137 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 5138 | soname_spec='${libname}${release}.so$major' |
| 5139 | ;; |
| 5140 | |
| 5141 | aix4* | aix5*) |
| 5142 | version_type=linux |
| 5143 | if test "$host_cpu" = ia64; then |
| 5144 | # AIX 5 supports IA64 |
| 5145 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' |
| 5146 | shlibpath_var=LD_LIBRARY_PATH |
| 5147 | else |
| 5148 | # With GCC up to 2.95.x, collect2 would create an import file |
| 5149 | # for dependence libraries. The import file would start with |
| 5150 | # the line `#! .'. This would cause the generated library to |
| 5151 | # depend on `.', always an invalid library. This was fixed in |
| 5152 | # development snapshots of GCC prior to 3.0. |
| 5153 | case $host_os in |
| 5154 | aix4 | aix4.[01] | aix4.[01].*) |
| 5155 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 5156 | echo ' yes ' |
| 5157 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 5158 | : |
| 5159 | else |
| 5160 | can_build_shared=no |
| 5161 | fi |
| 5162 | ;; |
| 5163 | esac |
| 5164 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 5165 | # soname into executable. Probably we can add versioning support to |
| 5166 | # collect2, so additional links can be useful in future. |
| 5167 | if test "$aix_use_runtimelinking" = yes; then |
| 5168 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 5169 | # instead of lib<name>.a to let people know that these are not |
| 5170 | # typical AIX shared libraries. |
| 5171 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5172 | else |
| 5173 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 5174 | # and later when we are not doing run time linking. |
| 5175 | library_names_spec='${libname}${release}.a $libname.a' |
| 5176 | soname_spec='${libname}${release}.so$major' |
| 5177 | fi |
| 5178 | shlibpath_var=LIBPATH |
| 5179 | deplibs_check_method=pass_all |
| 5180 | fi |
| 5181 | ;; |
| 5182 | |
| 5183 | amigaos*) |
| 5184 | library_names_spec='$libname.ixlibrary $libname.a' |
| 5185 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 5186 | 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' |
| 5187 | ;; |
| 5188 | |
| 5189 | beos*) |
| 5190 | library_names_spec='${libname}.so' |
| 5191 | dynamic_linker="$host_os ld.so" |
| 5192 | shlibpath_var=LIBRARY_PATH |
| 5193 | ;; |
| 5194 | |
| 5195 | bsdi4*) |
| 5196 | version_type=linux |
| 5197 | need_version=no |
| 5198 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5199 | soname_spec='${libname}${release}.so$major' |
| 5200 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 5201 | shlibpath_var=LD_LIBRARY_PATH |
| 5202 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 5203 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 5204 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 5205 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 5206 | # libtool to hard-code these into programs |
| 5207 | ;; |
| 5208 | |
| 5209 | cygwin* | mingw* | pw32*) |
| 5210 | version_type=windows |
| 5211 | need_version=no |
| 5212 | need_lib_prefix=no |
| 5213 | case $GCC,$host_os in |
| 5214 | yes,cygwin*) |
| 5215 | library_names_spec='$libname.dll.a' |
| 5216 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" |
| 5217 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
| 5218 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ |
| 5219 | dldir=$destdir/`dirname \$dlpath`~ |
| 5220 | test -d \$dldir || mkdir -p \$dldir~ |
| 5221 | $install_prog .libs/$dlname \$dldir/$dlname' |
| 5222 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 5223 | dlpath=$dir/\$dldll~ |
| 5224 | $rm \$dlpath' |
| 5225 | ;; |
| 5226 | yes,mingw*) |
| 5227 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
| 5228 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/$PATH_SEPARATOR/ /g"` |
| 5229 | ;; |
| 5230 | yes,pw32*) |
| 5231 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' |
| 5232 | ;; |
| 5233 | *) |
| 5234 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' |
| 5235 | ;; |
| 5236 | esac |
| 5237 | dynamic_linker='Win32 ld.exe' |
| 5238 | # FIXME: first we should search . and the directory the executable is in |
| 5239 | shlibpath_var=PATH |
| 5240 | ;; |
| 5241 | |
| 5242 | darwin* | rhapsody*) |
| 5243 | dynamic_linker="$host_os dyld" |
| 5244 | version_type=darwin |
| 5245 | need_lib_prefix=no |
| 5246 | need_version=no |
| 5247 | # FIXME: Relying on posixy $() will cause problems for |
| 5248 | # cross-compilation, but unfortunately the echo tests do not |
| 5249 | # yet detect zsh echo's removal of \ escapes. |
| 5250 | library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' |
| 5251 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' |
| 5252 | shlibpath_overrides_runpath=yes |
| 5253 | shlibpath_var=DYLD_LIBRARY_PATH |
| 5254 | ;; |
| 5255 | |
| 5256 | dgux*) |
| 5257 | version_type=linux |
| 5258 | need_lib_prefix=no |
| 5259 | need_version=no |
| 5260 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5261 | soname_spec='${libname}${release}.so$major' |
| 5262 | shlibpath_var=LD_LIBRARY_PATH |
| 5263 | ;; |
| 5264 | |
| 5265 | freebsd1*) |
| 5266 | dynamic_linker=no |
| 5267 | ;; |
| 5268 | |
| 5269 | freebsd*) |
| 5270 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 5271 | version_type=freebsd-$objformat |
| 5272 | case $version_type in |
| 5273 | freebsd-elf*) |
| 5274 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
| 5275 | need_version=no |
| 5276 | need_lib_prefix=no |
| 5277 | ;; |
| 5278 | freebsd-*) |
| 5279 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' |
| 5280 | need_version=yes |
| 5281 | ;; |
| 5282 | esac |
| 5283 | shlibpath_var=LD_LIBRARY_PATH |
| 5284 | case $host_os in |
| 5285 | freebsd2*) |
| 5286 | shlibpath_overrides_runpath=yes |
| 5287 | ;; |
| 5288 | freebsd3.01* | freebsdelf3.01*) |
| 5289 | shlibpath_overrides_runpath=yes |
| 5290 | hardcode_into_libs=yes |
| 5291 | ;; |
| 5292 | *) # from 3.2 on |
| 5293 | shlibpath_overrides_runpath=no |
| 5294 | hardcode_into_libs=yes |
| 5295 | ;; |
| 5296 | esac |
| 5297 | ;; |
| 5298 | |
| 5299 | gnu*) |
| 5300 | version_type=linux |
| 5301 | need_lib_prefix=no |
| 5302 | need_version=no |
| 5303 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' |
| 5304 | soname_spec='${libname}${release}.so$major' |
| 5305 | shlibpath_var=LD_LIBRARY_PATH |
| 5306 | hardcode_into_libs=yes |
| 5307 | ;; |
| 5308 | |
| 5309 | hpux9* | hpux10* | hpux11*) |
| 5310 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 5311 | # link against other versions. |
| 5312 | version_type=sunos |
| 5313 | need_lib_prefix=no |
| 5314 | need_version=no |
| 5315 | if test "$host_cpu" = ia64; then |
| 5316 | hardcode_into_libs=yes |
| 5317 | dynamic_linker="$host_os dld.so" |
| 5318 | shlibpath_var=LD_LIBRARY_PATH |
| 5319 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 5320 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5321 | soname_spec='${libname}${release}.so$major' |
| 5322 | if test "X$HPUX_IA64_MODE" = X32; then |
| 5323 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 5324 | else |
| 5325 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 5326 | fi |
| 5327 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 5328 | else |
| 5329 | dynamic_linker="$host_os dld.sl" |
| 5330 | shlibpath_var=SHLIB_PATH |
| 5331 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 5332 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' |
| 5333 | soname_spec='${libname}${release}.sl$major' |
| 5334 | fi |
| 5335 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 5336 | postinstall_cmds='chmod 555 $lib' |
| 5337 | ;; |
| 5338 | |
| 5339 | irix5* | irix6*) |
| 5340 | version_type=irix |
| 5341 | need_lib_prefix=no |
| 5342 | need_version=no |
| 5343 | soname_spec='${libname}${release}.so$major' |
| 5344 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
| 5345 | case $host_os in |
| 5346 | irix5*) |
| 5347 | libsuff= shlibsuff= |
| 5348 | ;; |
| 5349 | *) |
| 5350 | case $LD in # libtool.m4 will add one of these switches to LD |
| 5351 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; |
| 5352 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 5353 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 5354 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 5355 | esac |
| 5356 | ;; |
| 5357 | esac |
| 5358 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 5359 | shlibpath_overrides_runpath=no |
| 5360 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 5361 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 5362 | ;; |
| 5363 | |
| 5364 | # No shared lib support for Linux oldld, aout, or coff. |
| 5365 | linux*oldld* | linux*aout* | linux*coff*) |
| 5366 | dynamic_linker=no |
| 5367 | ;; |
| 5368 | |
| 5369 | # This must be Linux ELF. |
| 5370 | linux*) |
| 5371 | version_type=linux |
| 5372 | need_lib_prefix=no |
| 5373 | need_version=no |
| 5374 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5375 | soname_spec='${libname}${release}.so$major' |
| 5376 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 5377 | shlibpath_var=LD_LIBRARY_PATH |
| 5378 | shlibpath_overrides_runpath=no |
| 5379 | # This implies no fast_install, which is unacceptable. |
| 5380 | # Some rework will be needed to allow for fast_install |
| 5381 | # before this can be enabled. |
| 5382 | hardcode_into_libs=yes |
| 5383 | |
| 5384 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 5385 | # powerpc, because MkLinux only supported shared libraries with the |
| 5386 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 5387 | # most powerpc-linux boxes support dynamic linking these days and |
| 5388 | # people can always --disable-shared, the test was removed, and we |
| 5389 | # assume the GNU/Linux dynamic linker is in use. |
| 5390 | dynamic_linker='GNU/Linux ld.so' |
| 5391 | ;; |
| 5392 | |
| 5393 | netbsd*) |
| 5394 | version_type=sunos |
| 5395 | need_lib_prefix=no |
| 5396 | need_version=no |
| 5397 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 5398 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 5399 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 5400 | dynamic_linker='NetBSD (a.out) ld.so' |
| 5401 | else |
| 5402 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' |
| 5403 | soname_spec='${libname}${release}.so$major' |
| 5404 | dynamic_linker='NetBSD ld.elf_so' |
| 5405 | fi |
| 5406 | shlibpath_var=LD_LIBRARY_PATH |
| 5407 | shlibpath_overrides_runpath=yes |
| 5408 | hardcode_into_libs=yes |
| 5409 | ;; |
| 5410 | |
| 5411 | newsos6) |
| 5412 | version_type=linux |
| 5413 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5414 | shlibpath_var=LD_LIBRARY_PATH |
| 5415 | shlibpath_overrides_runpath=yes |
| 5416 | ;; |
| 5417 | |
| 5418 | nto-qnx) |
| 5419 | version_type=linux |
| 5420 | need_lib_prefix=no |
| 5421 | need_version=no |
| 5422 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5423 | soname_spec='${libname}${release}.so$major' |
| 5424 | shlibpath_var=LD_LIBRARY_PATH |
| 5425 | shlibpath_overrides_runpath=yes |
| 5426 | ;; |
| 5427 | |
| 5428 | openbsd*) |
| 5429 | version_type=sunos |
| 5430 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 5431 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 5432 | shlibpath_var=LD_LIBRARY_PATH |
| 5433 | file_magic_cmd=/usr/bin/file |
| 5434 | file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 5435 | if "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then |
| 5436 | deplibs_check_method='file_magic ELF 0-90-9*-bit LMSB shared object' |
| 5437 | else |
| 5438 | deplibs_check_method='file_magic OpenBSD.* shared library' |
| 5439 | fi |
| 5440 | ;; |
| 5441 | |
| 5442 | os2*) |
| 5443 | libname_spec='$name' |
| 5444 | need_lib_prefix=no |
| 5445 | library_names_spec='$libname.dll $libname.a' |
| 5446 | dynamic_linker='OS/2 ld.exe' |
| 5447 | shlibpath_var=LIBPATH |
| 5448 | ;; |
| 5449 | |
| 5450 | osf3* | osf4* | osf5*) |
| 5451 | version_type=osf |
| 5452 | need_version=no |
| 5453 | soname_spec='${libname}${release}.so' |
| 5454 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
| 5455 | shlibpath_var=LD_LIBRARY_PATH |
| 5456 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 5457 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 5458 | ;; |
| 5459 | |
| 5460 | sco3.2v5*) |
| 5461 | version_type=osf |
| 5462 | soname_spec='${libname}${release}.so$major' |
| 5463 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5464 | shlibpath_var=LD_LIBRARY_PATH |
| 5465 | ;; |
| 5466 | |
| 5467 | solaris*) |
| 5468 | version_type=linux |
| 5469 | need_lib_prefix=no |
| 5470 | need_version=no |
| 5471 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5472 | soname_spec='${libname}${release}.so$major' |
| 5473 | shlibpath_var=LD_LIBRARY_PATH |
| 5474 | shlibpath_overrides_runpath=yes |
| 5475 | hardcode_into_libs=yes |
| 5476 | # ldd complains unless libraries are executable |
| 5477 | postinstall_cmds='chmod +x $lib' |
| 5478 | ;; |
| 5479 | |
| 5480 | sunos4*) |
| 5481 | version_type=sunos |
| 5482 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 5483 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 5484 | shlibpath_var=LD_LIBRARY_PATH |
| 5485 | shlibpath_overrides_runpath=yes |
| 5486 | if test "$with_gnu_ld" = yes; then |
| 5487 | need_lib_prefix=no |
| 5488 | fi |
| 5489 | need_version=yes |
| 5490 | ;; |
| 5491 | |
| 5492 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 5493 | version_type=linux |
| 5494 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5495 | soname_spec='${libname}${release}.so$major' |
| 5496 | shlibpath_var=LD_LIBRARY_PATH |
| 5497 | case $host_vendor in |
| 5498 | sni) |
| 5499 | shlibpath_overrides_runpath=no |
| 5500 | ;; |
| 5501 | motorola) |
| 5502 | need_lib_prefix=no |
| 5503 | need_version=no |
| 5504 | shlibpath_overrides_runpath=no |
| 5505 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 5506 | ;; |
| 5507 | esac |
| 5508 | ;; |
| 5509 | |
| 5510 | sysv4*MP*) |
| 5511 | if test -d /usr/nec ;then |
| 5512 | version_type=linux |
| 5513 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' |
| 5514 | soname_spec='$libname.so.$major' |
| 5515 | shlibpath_var=LD_LIBRARY_PATH |
| 5516 | fi |
| 5517 | ;; |
| 5518 | |
| 5519 | uts4*) |
| 5520 | version_type=linux |
| 5521 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 5522 | soname_spec='${libname}${release}.so$major' |
| 5523 | shlibpath_var=LD_LIBRARY_PATH |
| 5524 | ;; |
| 5525 | |
| 5526 | *) |
| 5527 | dynamic_linker=no |
| 5528 | ;; |
| 5529 | esac |
| 5530 | echo "$as_me:5530: result: $dynamic_linker" >&5 |
| 5531 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 5532 | test "$dynamic_linker" = no && can_build_shared=no |
| 5533 | |
| 5534 | if test "x$enable_dlopen" != xyes; then |
| 5535 | enable_dlopen=unknown |
| 5536 | enable_dlopen_self=unknown |
| 5537 | enable_dlopen_self_static=unknown |
| 5538 | else |
| 5539 | lt_cv_dlopen=no |
| 5540 | lt_cv_dlopen_libs= |
| 5541 | |
| 5542 | case $host_os in |
| 5543 | beos*) |
| 5544 | lt_cv_dlopen="load_add_on" |
| 5545 | lt_cv_dlopen_libs= |
| 5546 | lt_cv_dlopen_self=yes |
| 5547 | ;; |
| 5548 | |
| 5549 | cygwin* | mingw* | pw32*) |
| 5550 | lt_cv_dlopen="LoadLibrary" |
| 5551 | lt_cv_dlopen_libs= |
| 5552 | ;; |
| 5553 | |
| 5554 | *) |
| 5555 | echo "$as_me:5555: checking for shl_load" >&5 |
| 5556 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 5557 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 5558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5559 | else |
| 5560 | cat >conftest.$ac_ext <<_ACEOF |
| 5561 | #line 5561 "configure" |
| 5562 | #include "confdefs.h" |
| 5563 | /* System header to define __stub macros and hopefully few prototypes, |
| 5564 | which can conflict with char shl_load (); below. */ |
| 5565 | #include <assert.h> |
| 5566 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5567 | #ifdef __cplusplus |
| 5568 | extern "C" |
| 5569 | #endif |
| 5570 | /* We use char because int might match the return type of a gcc2 |
| 5571 | builtin and then its argument prototype would still apply. */ |
| 5572 | char shl_load (); |
| 5573 | char (*f) (); |
| 5574 | |
| 5575 | int |
| 5576 | main () |
| 5577 | { |
| 5578 | /* The GNU C library defines this for functions which it implements |
| 5579 | to always fail with ENOSYS. Some functions are actually named |
| 5580 | something starting with __ and the normal name is an alias. */ |
| 5581 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 5582 | choke me |
| 5583 | #else |
| 5584 | f = shl_load; |
| 5585 | #endif |
| 5586 | |
| 5587 | ; |
| 5588 | return 0; |
| 5589 | } |
| 5590 | _ACEOF |
| 5591 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5592 | if { (eval echo "$as_me:5592: \"$ac_link\"") >&5 |
| 5593 | (eval $ac_link) 2>&5 |
| 5594 | ac_status=$? |
| 5595 | echo "$as_me:5595: \$? = $ac_status" >&5 |
| 5596 | (exit $ac_status); } && |
| 5597 | { ac_try='test -s conftest$ac_exeext' |
| 5598 | { (eval echo "$as_me:5598: \"$ac_try\"") >&5 |
| 5599 | (eval $ac_try) 2>&5 |
| 5600 | ac_status=$? |
| 5601 | echo "$as_me:5601: \$? = $ac_status" >&5 |
| 5602 | (exit $ac_status); }; }; then |
| 5603 | ac_cv_func_shl_load=yes |
| 5604 | else |
| 5605 | echo "$as_me: failed program was:" >&5 |
| 5606 | cat conftest.$ac_ext >&5 |
| 5607 | ac_cv_func_shl_load=no |
| 5608 | fi |
| 5609 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5610 | fi |
| 5611 | echo "$as_me:5611: result: $ac_cv_func_shl_load" >&5 |
| 5612 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 5613 | if test $ac_cv_func_shl_load = yes; then |
| 5614 | lt_cv_dlopen="shl_load" |
| 5615 | else |
| 5616 | echo "$as_me:5616: checking for shl_load in -ldld" >&5 |
| 5617 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 5618 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 5619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5620 | else |
| 5621 | ac_check_lib_save_LIBS=$LIBS |
| 5622 | LIBS="-ldld $LIBS" |
| 5623 | cat >conftest.$ac_ext <<_ACEOF |
| 5624 | #line 5624 "configure" |
| 5625 | #include "confdefs.h" |
| 5626 | |
| 5627 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5628 | #ifdef __cplusplus |
| 5629 | extern "C" |
| 5630 | #endif |
| 5631 | /* We use char because int might match the return type of a gcc2 |
| 5632 | builtin and then its argument prototype would still apply. */ |
| 5633 | char shl_load (); |
| 5634 | int |
| 5635 | main () |
| 5636 | { |
| 5637 | shl_load (); |
| 5638 | ; |
| 5639 | return 0; |
| 5640 | } |
| 5641 | _ACEOF |
| 5642 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5643 | if { (eval echo "$as_me:5643: \"$ac_link\"") >&5 |
| 5644 | (eval $ac_link) 2>&5 |
| 5645 | ac_status=$? |
| 5646 | echo "$as_me:5646: \$? = $ac_status" >&5 |
| 5647 | (exit $ac_status); } && |
| 5648 | { ac_try='test -s conftest$ac_exeext' |
| 5649 | { (eval echo "$as_me:5649: \"$ac_try\"") >&5 |
| 5650 | (eval $ac_try) 2>&5 |
| 5651 | ac_status=$? |
| 5652 | echo "$as_me:5652: \$? = $ac_status" >&5 |
| 5653 | (exit $ac_status); }; }; then |
| 5654 | ac_cv_lib_dld_shl_load=yes |
| 5655 | else |
| 5656 | echo "$as_me: failed program was:" >&5 |
| 5657 | cat conftest.$ac_ext >&5 |
| 5658 | ac_cv_lib_dld_shl_load=no |
| 5659 | fi |
| 5660 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5661 | LIBS=$ac_check_lib_save_LIBS |
| 5662 | fi |
| 5663 | echo "$as_me:5663: result: $ac_cv_lib_dld_shl_load" >&5 |
| 5664 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 5665 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 5666 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 5667 | else |
| 5668 | echo "$as_me:5668: checking for dlopen in -ldl" >&5 |
| 5669 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 5670 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 5671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5672 | else |
| 5673 | ac_check_lib_save_LIBS=$LIBS |
| 5674 | LIBS="-ldl $LIBS" |
| 5675 | cat >conftest.$ac_ext <<_ACEOF |
| 5676 | #line 5676 "configure" |
| 5677 | #include "confdefs.h" |
| 5678 | |
| 5679 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5680 | #ifdef __cplusplus |
| 5681 | extern "C" |
| 5682 | #endif |
| 5683 | /* We use char because int might match the return type of a gcc2 |
| 5684 | builtin and then its argument prototype would still apply. */ |
| 5685 | char dlopen (); |
| 5686 | int |
| 5687 | main () |
| 5688 | { |
| 5689 | dlopen (); |
| 5690 | ; |
| 5691 | return 0; |
| 5692 | } |
| 5693 | _ACEOF |
| 5694 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5695 | if { (eval echo "$as_me:5695: \"$ac_link\"") >&5 |
| 5696 | (eval $ac_link) 2>&5 |
| 5697 | ac_status=$? |
| 5698 | echo "$as_me:5698: \$? = $ac_status" >&5 |
| 5699 | (exit $ac_status); } && |
| 5700 | { ac_try='test -s conftest$ac_exeext' |
| 5701 | { (eval echo "$as_me:5701: \"$ac_try\"") >&5 |
| 5702 | (eval $ac_try) 2>&5 |
| 5703 | ac_status=$? |
| 5704 | echo "$as_me:5704: \$? = $ac_status" >&5 |
| 5705 | (exit $ac_status); }; }; then |
| 5706 | ac_cv_lib_dl_dlopen=yes |
| 5707 | else |
| 5708 | echo "$as_me: failed program was:" >&5 |
| 5709 | cat conftest.$ac_ext >&5 |
| 5710 | ac_cv_lib_dl_dlopen=no |
| 5711 | fi |
| 5712 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5713 | LIBS=$ac_check_lib_save_LIBS |
| 5714 | fi |
| 5715 | echo "$as_me:5715: result: $ac_cv_lib_dl_dlopen" >&5 |
| 5716 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 5717 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 5718 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 5719 | else |
| 5720 | echo "$as_me:5720: checking for dlopen" >&5 |
| 5721 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 5722 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 5723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5724 | else |
| 5725 | cat >conftest.$ac_ext <<_ACEOF |
| 5726 | #line 5726 "configure" |
| 5727 | #include "confdefs.h" |
| 5728 | /* System header to define __stub macros and hopefully few prototypes, |
| 5729 | which can conflict with char dlopen (); below. */ |
| 5730 | #include <assert.h> |
| 5731 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5732 | #ifdef __cplusplus |
| 5733 | extern "C" |
| 5734 | #endif |
| 5735 | /* We use char because int might match the return type of a gcc2 |
| 5736 | builtin and then its argument prototype would still apply. */ |
| 5737 | char dlopen (); |
| 5738 | char (*f) (); |
| 5739 | |
| 5740 | int |
| 5741 | main () |
| 5742 | { |
| 5743 | /* The GNU C library defines this for functions which it implements |
| 5744 | to always fail with ENOSYS. Some functions are actually named |
| 5745 | something starting with __ and the normal name is an alias. */ |
| 5746 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 5747 | choke me |
| 5748 | #else |
| 5749 | f = dlopen; |
| 5750 | #endif |
| 5751 | |
| 5752 | ; |
| 5753 | return 0; |
| 5754 | } |
| 5755 | _ACEOF |
| 5756 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5757 | if { (eval echo "$as_me:5757: \"$ac_link\"") >&5 |
| 5758 | (eval $ac_link) 2>&5 |
| 5759 | ac_status=$? |
| 5760 | echo "$as_me:5760: \$? = $ac_status" >&5 |
| 5761 | (exit $ac_status); } && |
| 5762 | { ac_try='test -s conftest$ac_exeext' |
| 5763 | { (eval echo "$as_me:5763: \"$ac_try\"") >&5 |
| 5764 | (eval $ac_try) 2>&5 |
| 5765 | ac_status=$? |
| 5766 | echo "$as_me:5766: \$? = $ac_status" >&5 |
| 5767 | (exit $ac_status); }; }; then |
| 5768 | ac_cv_func_dlopen=yes |
| 5769 | else |
| 5770 | echo "$as_me: failed program was:" >&5 |
| 5771 | cat conftest.$ac_ext >&5 |
| 5772 | ac_cv_func_dlopen=no |
| 5773 | fi |
| 5774 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5775 | fi |
| 5776 | echo "$as_me:5776: result: $ac_cv_func_dlopen" >&5 |
| 5777 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 5778 | if test $ac_cv_func_dlopen = yes; then |
| 5779 | lt_cv_dlopen="dlopen" |
| 5780 | else |
| 5781 | echo "$as_me:5781: checking for dlopen in -lsvld" >&5 |
| 5782 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 5783 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 5784 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5785 | else |
| 5786 | ac_check_lib_save_LIBS=$LIBS |
| 5787 | LIBS="-lsvld $LIBS" |
| 5788 | cat >conftest.$ac_ext <<_ACEOF |
| 5789 | #line 5789 "configure" |
| 5790 | #include "confdefs.h" |
| 5791 | |
| 5792 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5793 | #ifdef __cplusplus |
| 5794 | extern "C" |
| 5795 | #endif |
| 5796 | /* We use char because int might match the return type of a gcc2 |
| 5797 | builtin and then its argument prototype would still apply. */ |
| 5798 | char dlopen (); |
| 5799 | int |
| 5800 | main () |
| 5801 | { |
| 5802 | dlopen (); |
| 5803 | ; |
| 5804 | return 0; |
| 5805 | } |
| 5806 | _ACEOF |
| 5807 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5808 | if { (eval echo "$as_me:5808: \"$ac_link\"") >&5 |
| 5809 | (eval $ac_link) 2>&5 |
| 5810 | ac_status=$? |
| 5811 | echo "$as_me:5811: \$? = $ac_status" >&5 |
| 5812 | (exit $ac_status); } && |
| 5813 | { ac_try='test -s conftest$ac_exeext' |
| 5814 | { (eval echo "$as_me:5814: \"$ac_try\"") >&5 |
| 5815 | (eval $ac_try) 2>&5 |
| 5816 | ac_status=$? |
| 5817 | echo "$as_me:5817: \$? = $ac_status" >&5 |
| 5818 | (exit $ac_status); }; }; then |
| 5819 | ac_cv_lib_svld_dlopen=yes |
| 5820 | else |
| 5821 | echo "$as_me: failed program was:" >&5 |
| 5822 | cat conftest.$ac_ext >&5 |
| 5823 | ac_cv_lib_svld_dlopen=no |
| 5824 | fi |
| 5825 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5826 | LIBS=$ac_check_lib_save_LIBS |
| 5827 | fi |
| 5828 | echo "$as_me:5828: result: $ac_cv_lib_svld_dlopen" >&5 |
| 5829 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 5830 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 5831 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 5832 | fi |
| 5833 | |
| 5834 | fi |
| 5835 | |
| 5836 | fi |
| 5837 | |
| 5838 | fi |
| 5839 | |
| 5840 | fi |
| 5841 | |
| 5842 | ;; |
| 5843 | esac |
| 5844 | |
| 5845 | if test "x$lt_cv_dlopen" != xno; then |
| 5846 | enable_dlopen=yes |
| 5847 | else |
| 5848 | enable_dlopen=no |
| 5849 | fi |
| 5850 | |
| 5851 | case $lt_cv_dlopen in |
| 5852 | dlopen) |
| 5853 | save_CPPFLAGS="$CPPFLAGS" |
| 5854 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 5855 | |
| 5856 | save_LDFLAGS="$LDFLAGS" |
| 5857 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 5858 | |
| 5859 | save_LIBS="$LIBS" |
| 5860 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 5861 | |
| 5862 | echo "$as_me:5862: checking whether a program can dlopen itself" >&5 |
| 5863 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 5864 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 5865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5866 | else |
| 5867 | if test "$cross_compiling" = yes; then : |
| 5868 | lt_cv_dlopen_self=cross |
| 5869 | else |
| 5870 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 5871 | lt_status=$lt_dlunknown |
| 5872 | cat > conftest.$ac_ext <<EOF |
| 5873 | #line 5873 "configure" |
| 5874 | #include "confdefs.h" |
| 5875 | |
| 5876 | #if HAVE_DLFCN_H |
| 5877 | #include <dlfcn.h> |
| 5878 | #endif |
| 5879 | |
| 5880 | #include <stdio.h> |
| 5881 | |
| 5882 | #ifdef RTLD_GLOBAL |
| 5883 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 5884 | #else |
| 5885 | # ifdef DL_GLOBAL |
| 5886 | # define LT_DLGLOBAL DL_GLOBAL |
| 5887 | # else |
| 5888 | # define LT_DLGLOBAL 0 |
| 5889 | # endif |
| 5890 | #endif |
| 5891 | |
| 5892 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 5893 | find out it does not work in some platform. */ |
| 5894 | #ifndef LT_DLLAZY_OR_NOW |
| 5895 | # ifdef RTLD_LAZY |
| 5896 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 5897 | # else |
| 5898 | # ifdef DL_LAZY |
| 5899 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 5900 | # else |
| 5901 | # ifdef RTLD_NOW |
| 5902 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 5903 | # else |
| 5904 | # ifdef DL_NOW |
| 5905 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 5906 | # else |
| 5907 | # define LT_DLLAZY_OR_NOW 0 |
| 5908 | # endif |
| 5909 | # endif |
| 5910 | # endif |
| 5911 | # endif |
| 5912 | #endif |
| 5913 | |
| 5914 | #ifdef __cplusplus |
| 5915 | extern "C" void exit (int); |
| 5916 | #endif |
| 5917 | |
| 5918 | void fnord() { int i=42;} |
| 5919 | int main () |
| 5920 | { |
| 5921 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 5922 | int status = $lt_dlunknown; |
| 5923 | |
| 5924 | if (self) |
| 5925 | { |
| 5926 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 5927 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 5928 | /* dlclose (self); */ |
| 5929 | } |
| 5930 | |
| 5931 | exit (status); |
| 5932 | } |
| 5933 | EOF |
| 5934 | if { (eval echo "$as_me:5934: \"$ac_link\"") >&5 |
| 5935 | (eval $ac_link) 2>&5 |
| 5936 | ac_status=$? |
| 5937 | echo "$as_me:5937: \$? = $ac_status" >&5 |
| 5938 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 5939 | (./conftest; exit; ) 2>/dev/null |
| 5940 | lt_status=$? |
| 5941 | case x$lt_status in |
| 5942 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 5943 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 5944 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 5945 | esac |
| 5946 | else : |
| 5947 | # compilation failed |
| 5948 | lt_cv_dlopen_self=no |
| 5949 | fi |
| 5950 | fi |
| 5951 | rm -fr conftest* |
| 5952 | |
| 5953 | fi |
| 5954 | echo "$as_me:5954: result: $lt_cv_dlopen_self" >&5 |
| 5955 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 5956 | |
| 5957 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 5958 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 5959 | echo "$as_me:5959: checking whether a statically linked program can dlopen itself" >&5 |
| 5960 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 5961 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 5962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5963 | else |
| 5964 | if test "$cross_compiling" = yes; then : |
| 5965 | lt_cv_dlopen_self_static=cross |
| 5966 | else |
| 5967 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 5968 | lt_status=$lt_dlunknown |
| 5969 | cat > conftest.$ac_ext <<EOF |
| 5970 | #line 5970 "configure" |
| 5971 | #include "confdefs.h" |
| 5972 | |
| 5973 | #if HAVE_DLFCN_H |
| 5974 | #include <dlfcn.h> |
| 5975 | #endif |
| 5976 | |
| 5977 | #include <stdio.h> |
| 5978 | |
| 5979 | #ifdef RTLD_GLOBAL |
| 5980 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 5981 | #else |
| 5982 | # ifdef DL_GLOBAL |
| 5983 | # define LT_DLGLOBAL DL_GLOBAL |
| 5984 | # else |
| 5985 | # define LT_DLGLOBAL 0 |
| 5986 | # endif |
| 5987 | #endif |
| 5988 | |
| 5989 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 5990 | find out it does not work in some platform. */ |
| 5991 | #ifndef LT_DLLAZY_OR_NOW |
| 5992 | # ifdef RTLD_LAZY |
| 5993 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 5994 | # else |
| 5995 | # ifdef DL_LAZY |
| 5996 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 5997 | # else |
| 5998 | # ifdef RTLD_NOW |
| 5999 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 6000 | # else |
| 6001 | # ifdef DL_NOW |
| 6002 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 6003 | # else |
| 6004 | # define LT_DLLAZY_OR_NOW 0 |
| 6005 | # endif |
| 6006 | # endif |
| 6007 | # endif |
| 6008 | # endif |
| 6009 | #endif |
| 6010 | |
| 6011 | #ifdef __cplusplus |
| 6012 | extern "C" void exit (int); |
| 6013 | #endif |
| 6014 | |
| 6015 | void fnord() { int i=42;} |
| 6016 | int main () |
| 6017 | { |
| 6018 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 6019 | int status = $lt_dlunknown; |
| 6020 | |
| 6021 | if (self) |
| 6022 | { |
| 6023 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 6024 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 6025 | /* dlclose (self); */ |
| 6026 | } |
| 6027 | |
| 6028 | exit (status); |
| 6029 | } |
| 6030 | EOF |
| 6031 | if { (eval echo "$as_me:6031: \"$ac_link\"") >&5 |
| 6032 | (eval $ac_link) 2>&5 |
| 6033 | ac_status=$? |
| 6034 | echo "$as_me:6034: \$? = $ac_status" >&5 |
| 6035 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 6036 | (./conftest; exit; ) 2>/dev/null |
| 6037 | lt_status=$? |
| 6038 | case x$lt_status in |
| 6039 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 6040 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 6041 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 6042 | esac |
| 6043 | else : |
| 6044 | # compilation failed |
| 6045 | lt_cv_dlopen_self_static=no |
| 6046 | fi |
| 6047 | fi |
| 6048 | rm -fr conftest* |
| 6049 | |
| 6050 | fi |
| 6051 | echo "$as_me:6051: result: $lt_cv_dlopen_self_static" >&5 |
| 6052 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 6053 | fi |
| 6054 | |
| 6055 | CPPFLAGS="$save_CPPFLAGS" |
| 6056 | LDFLAGS="$save_LDFLAGS" |
| 6057 | LIBS="$save_LIBS" |
| 6058 | ;; |
| 6059 | esac |
| 6060 | |
| 6061 | case $lt_cv_dlopen_self in |
| 6062 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 6063 | *) enable_dlopen_self=unknown ;; |
| 6064 | esac |
| 6065 | |
| 6066 | case $lt_cv_dlopen_self_static in |
| 6067 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 6068 | *) enable_dlopen_self_static=unknown ;; |
| 6069 | esac |
| 6070 | fi |
| 6071 | |
| 6072 | # Report which librarie types wil actually be built |
| 6073 | echo "$as_me:6073: checking if libtool supports shared libraries" >&5 |
| 6074 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 6075 | echo "$as_me:6075: result: $can_build_shared" >&5 |
| 6076 | echo "${ECHO_T}$can_build_shared" >&6 |
| 6077 | |
| 6078 | echo "$as_me:6078: checking whether to build shared libraries" >&5 |
| 6079 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| 6080 | test "$can_build_shared" = "no" && enable_shared=no |
| 6081 | |
| 6082 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 6083 | # are all built from PIC. |
| 6084 | case "$host_os" in |
| 6085 | aix3*) |
| 6086 | test "$enable_shared" = yes && enable_static=no |
| 6087 | if test -n "$RANLIB"; then |
| 6088 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 6089 | postinstall_cmds='$RANLIB $lib' |
| 6090 | fi |
| 6091 | ;; |
| 6092 | |
| 6093 | aix4*) |
| 6094 | test "$enable_shared" = yes && enable_static=no |
| 6095 | ;; |
| 6096 | esac |
| 6097 | echo "$as_me:6097: result: $enable_shared" >&5 |
| 6098 | echo "${ECHO_T}$enable_shared" >&6 |
| 6099 | |
| 6100 | echo "$as_me:6100: checking whether to build static libraries" >&5 |
| 6101 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| 6102 | # Make sure either enable_shared or enable_static is yes. |
| 6103 | test "$enable_shared" = yes || enable_static=yes |
| 6104 | echo "$as_me:6104: result: $enable_static" >&5 |
| 6105 | echo "${ECHO_T}$enable_static" >&6 |
| 6106 | |
| 6107 | # The else clause should only fire when bootstrapping the |
| 6108 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 6109 | # with your package, and you will get complaints that there are |
| 6110 | # no rules to generate ltmain.sh. |
| 6111 | if test -f "$ltmain"; then |
| 6112 | # Now quote all the things that may contain metacharacters while being |
| 6113 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 6114 | # variables and quote the copies for generation of the libtool script. |
| 6115 | for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S NM SHELL \ |
| 6116 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 6117 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 6118 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 6119 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 6120 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 6121 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 6122 | old_postinstall_cmds old_postuninstall_cmds \ |
| 6123 | compiler \ |
| 6124 | CC \ |
| 6125 | LD \ |
| 6126 | lt_prog_compiler_wl \ |
| 6127 | lt_prog_compiler_pic \ |
| 6128 | lt_prog_compiler_static \ |
| 6129 | lt_prog_compiler_no_builtin_flag \ |
| 6130 | export_dynamic_flag_spec \ |
| 6131 | thread_safe_flag_spec \ |
| 6132 | whole_archive_flag_spec \ |
| 6133 | old_archive_cmds \ |
| 6134 | old_archive_from_new_cmds \ |
| 6135 | predep_objects \ |
| 6136 | postdep_objects \ |
| 6137 | predeps \ |
| 6138 | postdeps \ |
| 6139 | compiler_lib_search_path \ |
| 6140 | archive_cmds \ |
| 6141 | archive_expsym_cmds \ |
| 6142 | postinstall_cmds \ |
| 6143 | postuninstall_cmds \ |
| 6144 | old_archive_from_expsyms_cmds \ |
| 6145 | allow_undefined_flag \ |
| 6146 | no_undefined_flag \ |
| 6147 | export_symbols_cmds \ |
| 6148 | hardcode_libdir_flag_spec \ |
| 6149 | hardcode_libdir_separator \ |
| 6150 | lt_cv_prog_compiler_c_o \ |
| 6151 | exclude_expsyms \ |
| 6152 | include_expsyms; do |
| 6153 | |
| 6154 | case $var in |
| 6155 | old_archive_cmds | \ |
| 6156 | old_archive_from_new_cmds | \ |
| 6157 | archive_cmds | \ |
| 6158 | archive_expsym_cmds | \ |
| 6159 | old_archive_from_expsyms_cmds | \ |
| 6160 | export_symbols_cmds | \ |
| 6161 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 6162 | postinstall_cmds | postuninstall_cmds | \ |
| 6163 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 6164 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 6165 | # Double-quote double-evaled strings. |
| 6166 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 6167 | ;; |
| 6168 | *) |
| 6169 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 6170 | ;; |
| 6171 | esac |
| 6172 | done |
| 6173 | |
| 6174 | case $lt_echo in |
| 6175 | *'\$0 --fallback-echo"') |
| 6176 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 6177 | ;; |
| 6178 | esac |
| 6179 | |
| 6180 | cfgfile="${ofile}T" |
| 6181 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 6182 | $rm -f "$cfgfile" |
| 6183 | { echo "$as_me:6183: creating $ofile" >&5 |
| 6184 | echo "$as_me: creating $ofile" >&6;} |
| 6185 | |
| 6186 | cat <<__EOF__ >> "$cfgfile" |
| 6187 | #! $SHELL |
| 6188 | |
| 6189 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 6190 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 6191 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 6192 | # |
| 6193 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 6194 | # Free Software Foundation, Inc. |
| 6195 | # |
| 6196 | # This file is part of GNU Libtool: |
| 6197 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 6198 | # |
| 6199 | # This program is free software; you can redistribute it and/or modify |
| 6200 | # it under the terms of the GNU General Public License as published by |
| 6201 | # the Free Software Foundation; either version 2 of the License, or |
| 6202 | # (at your option) any later version. |
| 6203 | # |
| 6204 | # This program is distributed in the hope that it will be useful, but |
| 6205 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 6206 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 6207 | # General Public License for more details. |
| 6208 | # |
| 6209 | # You should have received a copy of the GNU General Public License |
| 6210 | # along with this program; if not, write to the Free Software |
| 6211 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 6212 | # |
| 6213 | # As a special exception to the GNU General Public License, if you |
| 6214 | # distribute this file as part of a program that contains a |
| 6215 | # configuration script generated by Autoconf, you may include it under |
| 6216 | # the same distribution terms that you use for the rest of that program. |
| 6217 | |
| 6218 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 6219 | Xsed="sed -e s/^X//" |
| 6220 | |
| 6221 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 6222 | # if CDPATH is set. |
| 6223 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 6224 | |
| 6225 | # The names of the tagged configurations supported by this script. |
| 6226 | available_tags= |
| 6227 | |
| 6228 | # ### BEGIN LIBTOOL CONFIG |
| 6229 | |
| 6230 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 6231 | |
| 6232 | # Shell to use when invoking shell scripts. |
| 6233 | SHELL=$lt_SHELL |
| 6234 | |
| 6235 | # Whether or not to build shared libraries. |
| 6236 | build_libtool_libs=$enable_shared |
| 6237 | |
| 6238 | # Whether or not to build static libraries. |
| 6239 | build_old_libs=$enable_static |
| 6240 | |
| 6241 | # Whether or not to add -lc for building shared libraries. |
| 6242 | build_libtool_need_lc=$archive_cmds_need_lc |
| 6243 | |
| 6244 | # Whether or not to optimize for fast installation. |
| 6245 | fast_install=$enable_fast_install |
| 6246 | |
| 6247 | # The host system. |
| 6248 | host_alias=$host_alias |
| 6249 | host=$host |
| 6250 | |
| 6251 | # An echo program that does not interpret backslashes. |
| 6252 | echo=$lt_echo |
| 6253 | |
| 6254 | # The archiver. |
| 6255 | AR=$lt_AR |
| 6256 | AR_FLAGS=$lt_AR_FLAGS |
| 6257 | |
| 6258 | # A C compiler. |
| 6259 | LTCC=$LTCC |
| 6260 | |
| 6261 | # A language-specific compiler. |
| 6262 | CC=$lt_compiler |
| 6263 | |
| 6264 | # Is the compiler the GNU C compiler? |
| 6265 | with_gcc=$GCC |
| 6266 | |
| 6267 | # The linker used to build libraries. |
| 6268 | LD=$lt_LD |
| 6269 | |
| 6270 | # Whether we need hard or soft links. |
| 6271 | LN_S=$lt_LN_S |
| 6272 | |
| 6273 | # A BSD-compatible nm program. |
| 6274 | NM=$lt_NM |
| 6275 | |
| 6276 | # A symbol stripping program |
| 6277 | STRIP=$STRIP |
| 6278 | |
| 6279 | # Used to examine libraries when file_magic_cmd begins "file" |
| 6280 | MAGIC_CMD=$MAGIC_CMD |
| 6281 | |
| 6282 | # Used on cygwin: DLL creation program. |
| 6283 | DLLTOOL="$DLLTOOL" |
| 6284 | |
| 6285 | # Used on cygwin: object dumper. |
| 6286 | OBJDUMP="$OBJDUMP" |
| 6287 | |
| 6288 | # Used on cygwin: assembler. |
| 6289 | AS="$AS" |
| 6290 | |
| 6291 | # The name of the directory that contains temporary libtool files. |
| 6292 | objdir=$objdir |
| 6293 | |
| 6294 | # How to create reloadable object files. |
| 6295 | reload_flag=$lt_reload_flag |
| 6296 | reload_cmds=$lt_reload_cmds |
| 6297 | |
| 6298 | # How to pass a linker flag through the compiler. |
| 6299 | wl=$lt_lt_prog_compiler_wl |
| 6300 | |
| 6301 | # Object file suffix (normally "o"). |
| 6302 | objext="$ac_objext" |
| 6303 | |
| 6304 | # Old archive suffix (normally "a"). |
| 6305 | libext="$libext" |
| 6306 | |
| 6307 | # Executable file suffix (normally ""). |
| 6308 | exeext="$exeext" |
| 6309 | |
| 6310 | # Additional compiler flags for building library objects. |
| 6311 | pic_flag=$lt_lt_prog_compiler_pic |
| 6312 | pic_mode=$pic_mode |
| 6313 | |
| 6314 | # What is the maximum length of a command? |
| 6315 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 6316 | |
| 6317 | # Does compiler simultaneously support -c and -o options? |
| 6318 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 6319 | |
| 6320 | # Must we lock files when doing compilation ? |
| 6321 | need_locks=$lt_need_locks |
| 6322 | |
| 6323 | # Do we need the lib prefix for modules? |
| 6324 | need_lib_prefix=$need_lib_prefix |
| 6325 | |
| 6326 | # Do we need a version for libraries? |
| 6327 | need_version=$need_version |
| 6328 | |
| 6329 | # Whether dlopen is supported. |
| 6330 | dlopen_support=$enable_dlopen |
| 6331 | |
| 6332 | # Whether dlopen of programs is supported. |
| 6333 | dlopen_self=$enable_dlopen_self |
| 6334 | |
| 6335 | # Whether dlopen of statically linked programs is supported. |
| 6336 | dlopen_self_static=$enable_dlopen_self_static |
| 6337 | |
| 6338 | # Compiler flag to prevent dynamic linking. |
| 6339 | link_static_flag=$lt_lt_prog_compiler_static |
| 6340 | |
| 6341 | # Compiler flag to turn off builtin functions. |
| 6342 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 6343 | |
| 6344 | # Compiler flag to allow reflexive dlopens. |
| 6345 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 6346 | |
| 6347 | # Compiler flag to generate shared objects directly from archives. |
| 6348 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 6349 | |
| 6350 | # Compiler flag to generate thread-safe objects. |
| 6351 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 6352 | |
| 6353 | # Library versioning type. |
| 6354 | version_type=$version_type |
| 6355 | |
| 6356 | # Format of library name prefix. |
| 6357 | libname_spec=$lt_libname_spec |
| 6358 | |
| 6359 | # List of archive names. First name is the real one, the rest are links. |
| 6360 | # The last name is the one that the linker finds with -lNAME. |
| 6361 | library_names_spec=$lt_library_names_spec |
| 6362 | |
| 6363 | # The coded name of the library, if different from the real name. |
| 6364 | soname_spec=$lt_soname_spec |
| 6365 | |
| 6366 | # Commands used to build and install an old-style archive. |
| 6367 | RANLIB=$lt_RANLIB |
| 6368 | old_archive_cmds=$lt_old_archive_cmds |
| 6369 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 6370 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 6371 | |
| 6372 | # Create an old-style archive from a shared archive. |
| 6373 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 6374 | |
| 6375 | # Create a temporary old-style archive to link instead of a shared archive. |
| 6376 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 6377 | |
| 6378 | # Commands used to build and install a shared archive. |
| 6379 | archive_cmds=$lt_archive_cmds |
| 6380 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 6381 | postinstall_cmds=$lt_postinstall_cmds |
| 6382 | postuninstall_cmds=$lt_postuninstall_cmds |
| 6383 | |
| 6384 | # Commands to strip libraries. |
| 6385 | old_striplib=$lt_old_striplib |
| 6386 | striplib=$lt_striplib |
| 6387 | |
| 6388 | # Dependencies to place before the objects being linked to create a |
| 6389 | # shared library. |
| 6390 | predep_objects=$lt_predep_objects |
| 6391 | |
| 6392 | # Dependencies to place after the objects being linked to create a |
| 6393 | # shared library. |
| 6394 | postdep_objects=$lt_postdep_objects |
| 6395 | |
| 6396 | # Dependencies to place before the objects being linked to create a |
| 6397 | # shared library. |
| 6398 | predeps=$lt_predeps |
| 6399 | |
| 6400 | # Dependencies to place after the objects being linked to create a |
| 6401 | # shared library. |
| 6402 | postdeps=$lt_postdeps |
| 6403 | |
| 6404 | # The library search path used internally by the compiler when linking |
| 6405 | # a shared library. |
| 6406 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 6407 | |
| 6408 | # Method to check whether dependent libraries are shared objects. |
| 6409 | deplibs_check_method=$lt_deplibs_check_method |
| 6410 | |
| 6411 | # Command to use when deplibs_check_method == file_magic. |
| 6412 | file_magic_cmd=$lt_file_magic_cmd |
| 6413 | |
| 6414 | # Flag that allows shared libraries with undefined symbols to be built. |
| 6415 | allow_undefined_flag=$lt_allow_undefined_flag |
| 6416 | |
| 6417 | # Flag that forces no undefined symbols. |
| 6418 | no_undefined_flag=$lt_no_undefined_flag |
| 6419 | |
| 6420 | # Commands used to finish a libtool library installation in a directory. |
| 6421 | finish_cmds=$lt_finish_cmds |
| 6422 | |
| 6423 | # Same as above, but a single script fragment to be evaled but not shown. |
| 6424 | finish_eval=$lt_finish_eval |
| 6425 | |
| 6426 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 6427 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 6428 | |
| 6429 | # Transform the output of nm in a proper C declaration |
| 6430 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 6431 | |
| 6432 | # Transform the output of nm in a C name address pair |
| 6433 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 6434 | |
| 6435 | # This is the shared library runtime path variable. |
| 6436 | runpath_var=$runpath_var |
| 6437 | |
| 6438 | # This is the shared library path variable. |
| 6439 | shlibpath_var=$shlibpath_var |
| 6440 | |
| 6441 | # Is shlibpath searched before the hard-coded library search path? |
| 6442 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 6443 | |
| 6444 | # How to hardcode a shared library path into an executable. |
| 6445 | hardcode_action=$hardcode_action |
| 6446 | |
| 6447 | # Whether we should hardcode library paths into libraries. |
| 6448 | hardcode_into_libs=$hardcode_into_libs |
| 6449 | |
| 6450 | # Flag to hardcode \$libdir into a binary during linking. |
| 6451 | # This must work even if \$libdir does not exist. |
| 6452 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 6453 | |
| 6454 | # Whether we need a single -rpath flag with a separated argument. |
| 6455 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 6456 | |
| 6457 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the |
| 6458 | # resulting binary. |
| 6459 | hardcode_direct=$hardcode_direct |
| 6460 | |
| 6461 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 6462 | # resulting binary. |
| 6463 | hardcode_minus_L=$hardcode_minus_L |
| 6464 | |
| 6465 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 6466 | # the resulting binary. |
| 6467 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 6468 | |
| 6469 | # Variables whose values should be saved in libtool wrapper scripts and |
| 6470 | # restored at relink time. |
| 6471 | variables_saved_for_relink="$variables_saved_for_relink" |
| 6472 | |
| 6473 | # Whether libtool must link a program against all its dependency libraries. |
| 6474 | link_all_deplibs=$link_all_deplibs |
| 6475 | |
| 6476 | # Compile-time system search path for libraries |
| 6477 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 6478 | |
| 6479 | # Run-time system search path for libraries |
| 6480 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 6481 | |
| 6482 | # Fix the shell variable \$srcfile for the compiler. |
| 6483 | fix_srcfile_path="$fix_srcfile_path" |
| 6484 | |
| 6485 | # Set to yes if exported symbols are required. |
| 6486 | always_export_symbols=$always_export_symbols |
| 6487 | |
| 6488 | # The commands to list exported symbols. |
| 6489 | export_symbols_cmds=$lt_export_symbols_cmds |
| 6490 | |
| 6491 | # The commands to extract the exported symbol list from a shared archive. |
| 6492 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 6493 | |
| 6494 | # Symbols that should not be listed in the preloaded symbols. |
| 6495 | exclude_expsyms=$lt_exclude_expsyms |
| 6496 | |
| 6497 | # Symbols that must always be exported. |
| 6498 | include_expsyms=$lt_include_expsyms |
| 6499 | |
| 6500 | # ### END LIBTOOL CONFIG |
| 6501 | |
| 6502 | __EOF__ |
| 6503 | |
| 6504 | case $host_os in |
| 6505 | aix3*) |
| 6506 | cat <<\EOF >> "$cfgfile" |
| 6507 | |
| 6508 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 6509 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 6510 | # vanish in a puff of smoke. |
| 6511 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 6512 | COLLECT_NAMES= |
| 6513 | export COLLECT_NAMES |
| 6514 | fi |
| 6515 | EOF |
| 6516 | ;; |
| 6517 | |
| 6518 | cygwin* | mingw* | pw32* | os2*) |
| 6519 | cat <<'EOF' >> "$cfgfile" |
| 6520 | # This is a source program that is used to create dlls on Windows |
| 6521 | # Don't remove nor modify the starting and closing comments |
| 6522 | # /* ltdll.c starts here */ |
| 6523 | # #define WIN32_LEAN_AND_MEAN |
| 6524 | # #include <windows.h> |
| 6525 | # #undef WIN32_LEAN_AND_MEAN |
| 6526 | # #include <stdio.h> |
| 6527 | # |
| 6528 | # #ifndef __CYGWIN__ |
| 6529 | # # ifdef __CYGWIN32__ |
| 6530 | # # define __CYGWIN__ __CYGWIN32__ |
| 6531 | # # endif |
| 6532 | # #endif |
| 6533 | # |
| 6534 | # #ifdef __cplusplus |
| 6535 | # extern "C" { |
| 6536 | # #endif |
| 6537 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); |
| 6538 | # #ifdef __cplusplus |
| 6539 | # } |
| 6540 | # #endif |
| 6541 | # |
| 6542 | # #ifdef __CYGWIN__ |
| 6543 | # #include <cygwin/cygwin_dll.h> |
| 6544 | # DECLARE_CYGWIN_DLL( DllMain ); |
| 6545 | # #endif |
| 6546 | # HINSTANCE __hDllInstance_base; |
| 6547 | # |
| 6548 | # BOOL APIENTRY |
| 6549 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) |
| 6550 | # { |
| 6551 | # __hDllInstance_base = hInst; |
| 6552 | # return TRUE; |
| 6553 | # } |
| 6554 | # /* ltdll.c ends here */ |
| 6555 | |
| 6556 | # This is a source program that is used to create import libraries |
| 6557 | # on Windows for dlls which lack them. Don't remove nor modify the |
| 6558 | # starting and closing comments |
| 6559 | # /* impgen.c starts here */ |
| 6560 | # /* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. |
| 6561 | # |
| 6562 | # This file is part of GNU libtool. |
| 6563 | # |
| 6564 | # This program is free software; you can redistribute it and/or modify |
| 6565 | # it under the terms of the GNU General Public License as published by |
| 6566 | # the Free Software Foundation; either version 2 of the License, or |
| 6567 | # (at your option) any later version. |
| 6568 | # |
| 6569 | # This program is distributed in the hope that it will be useful, |
| 6570 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 6571 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 6572 | # GNU General Public License for more details. |
| 6573 | # |
| 6574 | # You should have received a copy of the GNU General Public License |
| 6575 | # along with this program; if not, write to the Free Software |
| 6576 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 6577 | # */ |
| 6578 | # |
| 6579 | # #include <stdio.h> /* for printf() */ |
| 6580 | # #include <unistd.h> /* for open(), lseek(), read() */ |
| 6581 | # #include <fcntl.h> /* for O_RDONLY, O_BINARY */ |
| 6582 | # #include <string.h> /* for strdup() */ |
| 6583 | # |
| 6584 | # /* O_BINARY isn't required (or even defined sometimes) under Unix */ |
| 6585 | # #ifndef O_BINARY |
| 6586 | # #define O_BINARY 0 |
| 6587 | # #endif |
| 6588 | # |
| 6589 | # static unsigned int |
| 6590 | # pe_get16 (fd, offset) |
| 6591 | # int fd; |
| 6592 | # int offset; |
| 6593 | # { |
| 6594 | # unsigned char b[2]; |
| 6595 | # lseek (fd, offset, SEEK_SET); |
| 6596 | # read (fd, b, 2); |
| 6597 | # return b[0] + (b[1]<<8); |
| 6598 | # } |
| 6599 | # |
| 6600 | # static unsigned int |
| 6601 | # pe_get32 (fd, offset) |
| 6602 | # int fd; |
| 6603 | # int offset; |
| 6604 | # { |
| 6605 | # unsigned char b[4]; |
| 6606 | # lseek (fd, offset, SEEK_SET); |
| 6607 | # read (fd, b, 4); |
| 6608 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
| 6609 | # } |
| 6610 | # |
| 6611 | # static unsigned int |
| 6612 | # pe_as32 (ptr) |
| 6613 | # void *ptr; |
| 6614 | # { |
| 6615 | # unsigned char *b = ptr; |
| 6616 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
| 6617 | # } |
| 6618 | # |
| 6619 | # int |
| 6620 | # main (argc, argv) |
| 6621 | # int argc; |
| 6622 | # char *argv[]; |
| 6623 | # { |
| 6624 | # int dll; |
| 6625 | # unsigned long pe_header_offset, opthdr_ofs, num_entries, i; |
| 6626 | # unsigned long export_rva, export_size, nsections, secptr, expptr; |
| 6627 | # unsigned long name_rvas, nexp; |
| 6628 | # unsigned char *expdata, *erva; |
| 6629 | # char *filename, *dll_name; |
| 6630 | # |
| 6631 | # filename = argv[1]; |
| 6632 | # |
| 6633 | # dll = open(filename, O_RDONLY|O_BINARY); |
| 6634 | # if (dll < 1) |
| 6635 | # return 1; |
| 6636 | # |
| 6637 | # dll_name = filename; |
| 6638 | # |
| 6639 | # for (i=0; filename[i]; i++) |
| 6640 | # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') |
| 6641 | # dll_name = filename + i +1; |
| 6642 | # |
| 6643 | # pe_header_offset = pe_get32 (dll, 0x3c); |
| 6644 | # opthdr_ofs = pe_header_offset + 4 + 20; |
| 6645 | # num_entries = pe_get32 (dll, opthdr_ofs + 92); |
| 6646 | # |
| 6647 | # if (num_entries < 1) /* no exports */ |
| 6648 | # return 1; |
| 6649 | # |
| 6650 | # export_rva = pe_get32 (dll, opthdr_ofs + 96); |
| 6651 | # export_size = pe_get32 (dll, opthdr_ofs + 100); |
| 6652 | # nsections = pe_get16 (dll, pe_header_offset + 4 +2); |
| 6653 | # secptr = (pe_header_offset + 4 + 20 + |
| 6654 | # pe_get16 (dll, pe_header_offset + 4 + 16)); |
| 6655 | # |
| 6656 | # expptr = 0; |
| 6657 | # for (i = 0; i < nsections; i++) |
| 6658 | # { |
| 6659 | # char sname[8]; |
| 6660 | # unsigned long secptr1 = secptr + 40 * i; |
| 6661 | # unsigned long vaddr = pe_get32 (dll, secptr1 + 12); |
| 6662 | # unsigned long vsize = pe_get32 (dll, secptr1 + 16); |
| 6663 | # unsigned long fptr = pe_get32 (dll, secptr1 + 20); |
| 6664 | # lseek(dll, secptr1, SEEK_SET); |
| 6665 | # read(dll, sname, 8); |
| 6666 | # if (vaddr <= export_rva && vaddr+vsize > export_rva) |
| 6667 | # { |
| 6668 | # expptr = fptr + (export_rva - vaddr); |
| 6669 | # if (export_rva + export_size > vaddr + vsize) |
| 6670 | # export_size = vsize - (export_rva - vaddr); |
| 6671 | # break; |
| 6672 | # } |
| 6673 | # } |
| 6674 | # |
| 6675 | # expdata = (unsigned char*)malloc(export_size); |
| 6676 | # lseek (dll, expptr, SEEK_SET); |
| 6677 | # read (dll, expdata, export_size); |
| 6678 | # erva = expdata - export_rva; |
| 6679 | # |
| 6680 | # nexp = pe_as32 (expdata+24); |
| 6681 | # name_rvas = pe_as32 (expdata+32); |
| 6682 | # |
| 6683 | # printf ("EXPORTS\n"); |
| 6684 | # for (i = 0; i<nexp; i++) |
| 6685 | # { |
| 6686 | # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); |
| 6687 | # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); |
| 6688 | # } |
| 6689 | # |
| 6690 | # return 0; |
| 6691 | # } |
| 6692 | # /* impgen.c ends here */ |
| 6693 | |
| 6694 | EOF |
| 6695 | ;; |
| 6696 | esac |
| 6697 | |
| 6698 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 6699 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 6700 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 6701 | # is reportedly fixed, but why not run on old versions too? |
| 6702 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
| 6703 | |
| 6704 | mv -f "$cfgfile" "$ofile" || \ |
| 6705 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 6706 | chmod +x "$ofile" |
| 6707 | |
| 6708 | else |
| 6709 | # If there is no Makefile yet, we rely on a make rule to execute |
| 6710 | # `config.status --recheck' to rerun these tests and create the |
| 6711 | # libtool script then. |
| 6712 | test -f Makefile && make "$ltmain" |
| 6713 | fi |
| 6714 | |
| 6715 | ac_ext=c |
| 6716 | ac_cpp='$CPP $CPPFLAGS' |
| 6717 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6718 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6719 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6720 | |
| 6721 | CC="$lt_save_CC" |
| 6722 | |
| 6723 | # Check whether --with-tags or --without-tags was given. |
| 6724 | if test "${with_tags+set}" = set; then |
| 6725 | withval="$with_tags" |
| 6726 | tagnames="$withval" |
| 6727 | else |
| 6728 | tagnames="CXX,GCJ" |
| 6729 | fi; |
| 6730 | |
| 6731 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 6732 | if test ! -f "${ofile}"; then |
| 6733 | { echo "$as_me:6733: WARNING: output file \`$ofile' does not exist" >&5 |
| 6734 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 6735 | fi |
| 6736 | |
| 6737 | if test -z "$LTCC"; then |
| 6738 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 6739 | if test -z "$LTCC"; then |
| 6740 | { echo "$as_me:6740: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 6741 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 6742 | else |
| 6743 | { echo "$as_me:6743: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 6744 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 6745 | fi |
| 6746 | fi |
| 6747 | |
| 6748 | # Extract list of available tagged configurations in $ofile. |
| 6749 | # Note that this assumes the entire list is on one line. |
| 6750 | available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 6751 | |
| 6752 | IFS="${IFS= }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}," |
| 6753 | for tagname in $tagnames; do |
| 6754 | IFS="$lt_save_ifs" |
| 6755 | # Check whether tagname contains only valid characters |
| 6756 | case `$echo "X$tagname" | $Xsed -e 's/[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]//g'` in |
| 6757 | "") ;; |
| 6758 | *) { { echo "$as_me:6758: error: invalid tag name: $tagname" >&5 |
| 6759 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 6760 | { (exit 1); exit 1; }; } |
| 6761 | ;; |
| 6762 | esac |
| 6763 | |
| 6764 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 6765 | then |
| 6766 | { { echo "$as_me:6766: error: tag name $tagname already exists" >&5 |
| 6767 | echo "$as_me: error: tag name $tagname already exists" >&2;} |
| 6768 | { (exit 1); exit 1; }; } |
| 6769 | fi |
| 6770 | |
| 6771 | # Update the list of available tags. |
| 6772 | if test -n "$tagname"; then |
| 6773 | echo appending configuration tag \"$tagname\" to $ofile |
| 6774 | |
| 6775 | case $tagname in |
| 6776 | CXX) |
| 6777 | ac_ext=cc |
| 6778 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6779 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6780 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6781 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6782 | |
| 6783 | archive_cmds_need_lc_CXX=no |
| 6784 | allow_undefined_flag_CXX= |
| 6785 | always_export_symbols_CXX=no |
| 6786 | archive_expsym_cmds_CXX= |
| 6787 | export_dynamic_flag_spec_CXX= |
| 6788 | hardcode_direct_CXX=no |
| 6789 | hardcode_libdir_flag_spec_CXX= |
| 6790 | hardcode_libdir_separator_CXX= |
| 6791 | hardcode_minus_L_CXX=no |
| 6792 | link_all_deplibs_CXX=unknown |
| 6793 | old_archive_cmds_CXX=$old_archive_cmds |
| 6794 | no_undefined_flag_CXX= |
| 6795 | whole_archive_flag_spec_CXX= |
| 6796 | |
| 6797 | # Dependencies to place before and after the object being linked: |
| 6798 | predep_objects_CXX= |
| 6799 | postdep_objects_CXX= |
| 6800 | predeps_CXX= |
| 6801 | postdeps_CXX= |
| 6802 | compiler_lib_search_path_CXX= |
| 6803 | |
| 6804 | # Source file extension for C test sources. |
| 6805 | ac_ext=cc |
| 6806 | |
| 6807 | # Object file extension for compiled C test sources. |
| 6808 | objext=o |
| 6809 | objext_CXX=$objext |
| 6810 | |
| 6811 | # Code to be used in simple compile tests |
| 6812 | lt_simple_compile_test_code="int some_variable = 0;" |
| 6813 | |
| 6814 | # Code to be used in simple link tests |
| 6815 | lt_simple_link_test_code='int main(int char *) { return(0); }' |
| 6816 | |
| 6817 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 6818 | |
| 6819 | # If no C compiler was specified, use CC. |
| 6820 | LTCC=${LTCC-"$CC"} |
| 6821 | |
| 6822 | # Allow CC to be a program name with arguments. |
| 6823 | set dummy $CC |
| 6824 | compiler="$2" |
| 6825 | |
| 6826 | # Allow CC to be a program name with arguments. |
| 6827 | lt_save_CC="$CC" |
| 6828 | CC=${CXX-"c++"} |
| 6829 | set dummy $CC |
| 6830 | compiler="$2" |
| 6831 | compiler_CXX=$CC |
| 6832 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| 6833 | |
| 6834 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 6835 | # no_builtin_flag separately |
| 6836 | if test "$GXX" = yes; then |
| 6837 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 6838 | else |
| 6839 | lt_prog_compiler_no_builtin_flag_CXX= |
| 6840 | fi |
| 6841 | |
| 6842 | if test "$GXX" = yes; then |
| 6843 | # Set up default GNU C++ configuration |
| 6844 | |
| 6845 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 6846 | # archiving commands below assume that GNU ld is being used. |
| 6847 | if eval "`$CC -print-prog-name=ld` --version 2>&1" | \ |
| 6848 | egrep 'GNU ld' > /dev/null; then |
| 6849 | with_gnu_ld=yes |
| 6850 | |
| 6851 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6852 | 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' |
| 6853 | |
| 6854 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 6855 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 6856 | |
| 6857 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 6858 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 6859 | # investigate it a little bit more. (MM) |
| 6860 | wlarc='${wl}' |
| 6861 | |
| 6862 | # ancient GNU ld didn't support --whole-archive et. al. |
| 6863 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 6864 | egrep 'no-whole-archive' > /dev/null; then |
| 6865 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 6866 | else |
| 6867 | whole_archive_flag_spec_CXX= |
| 6868 | fi |
| 6869 | else |
| 6870 | with_gnu_ld=no |
| 6871 | wlarc= |
| 6872 | |
| 6873 | # A generic and very simple default shared library creation |
| 6874 | # command for GNU C++ for the case where it uses the native |
| 6875 | # linker, instead of GNU ld. If possible, this setting should |
| 6876 | # overridden to take advantage of the native linker features on |
| 6877 | # the platform it is being used on. |
| 6878 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 6879 | fi |
| 6880 | |
| 6881 | # Commands to make compiler produce verbose output that lists |
| 6882 | # what "hidden" libraries, object files and flags are used when |
| 6883 | # linking a shared library. |
| 6884 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' |
| 6885 | |
| 6886 | else |
| 6887 | GXX=no |
| 6888 | with_gnu_ld=no |
| 6889 | wlarc= |
| 6890 | fi |
| 6891 | |
| 6892 | # PORTME: fill in a description of your system's C++ link characteristics |
| 6893 | echo "$as_me:6893: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 6894 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 6895 | ld_shlibs_CXX=yes |
| 6896 | case $host_os in |
| 6897 | aix3*) |
| 6898 | # FIXME: insert proper C++ library support |
| 6899 | ld_shlibs_CXX=no |
| 6900 | ;; |
| 6901 | aix4* | aix5*) |
| 6902 | if test "$host_cpu" = ia64; then |
| 6903 | # On IA64, the linker does run time linking by default, so we don't |
| 6904 | # have to do anything special. |
| 6905 | aix_use_runtimelinking=no |
| 6906 | exp_sym_flag='-Bexport' |
| 6907 | no_entry_flag="" |
| 6908 | else |
| 6909 | aix_use_runtimelinking=no |
| 6910 | |
| 6911 | # Test if we are trying to use run time linking or normal |
| 6912 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 6913 | # need to do runtime linking. |
| 6914 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 6915 | for ld_flag in $LDFLAGS; do |
| 6916 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 6917 | aix_use_runtimelinking=yes |
| 6918 | break |
| 6919 | fi |
| 6920 | done |
| 6921 | esac |
| 6922 | |
| 6923 | exp_sym_flag='-bexport' |
| 6924 | no_entry_flag='-bnoentry' |
| 6925 | fi |
| 6926 | |
| 6927 | # When large executables or shared objects are built, AIX ld can |
| 6928 | # have problems creating the table of contents. If linking a library |
| 6929 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 6930 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 6931 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 6932 | |
| 6933 | archive_cmds_CXX='' |
| 6934 | hardcode_direct_CXX=yes |
| 6935 | hardcode_libdir_separator_CXX=':' |
| 6936 | link_all_deplibs_CXX=yes |
| 6937 | |
| 6938 | if test "$GXX" = yes; then |
| 6939 | case $host_os in aix4.012|aix4.012.*) |
| 6940 | # We only want to do this on AIX 4.2 and lower, the check |
| 6941 | # below for broken collect2 doesn't work under 4.3+ |
| 6942 | collect2name=`${CC} -print-prog-name=collect2` |
| 6943 | if test -f "$collect2name" && \ |
| 6944 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 6945 | then |
| 6946 | # We have reworked collect2 |
| 6947 | hardcode_direct_CXX=yes |
| 6948 | else |
| 6949 | # We have old collect2 |
| 6950 | hardcode_direct_CXX=unsupported |
| 6951 | # It fails to find uninstalled libraries when the uninstalled |
| 6952 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 6953 | # to unsupported forces relinking |
| 6954 | hardcode_minus_L_CXX=yes |
| 6955 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 6956 | hardcode_libdir_separator_CXX= |
| 6957 | fi |
| 6958 | esac |
| 6959 | shared_flag='-shared' |
| 6960 | else |
| 6961 | # not using gcc |
| 6962 | if test "$host_cpu" = ia64; then |
| 6963 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 6964 | # chokes on -Wl,-G. The following line is correct: |
| 6965 | shared_flag='-G' |
| 6966 | else |
| 6967 | if test "$aix_use_runtimelinking" = yes; then |
| 6968 | shared_flag='${wl}-G' |
| 6969 | else |
| 6970 | shared_flag='${wl}-bM:SRE' |
| 6971 | fi |
| 6972 | fi |
| 6973 | fi |
| 6974 | |
| 6975 | # It seems that -bexpall does not export symbols beginning with |
| 6976 | # underscore (_), so it is better to generate a list of symbols to export. |
| 6977 | always_export_symbols_CXX=yes |
| 6978 | if test "$aix_use_runtimelinking" = yes; then |
| 6979 | # Warning - without using the other runtime loading flags (-brtl), |
| 6980 | # -berok will link without error, but may produce a broken library. |
| 6981 | allow_undefined_flag_CXX='-berok' |
| 6982 | # Determine the default libpath from the value encoded in an empty executable. |
| 6983 | cat >conftest.$ac_ext <<_ACEOF |
| 6984 | #line 6984 "configure" |
| 6985 | #include "confdefs.h" |
| 6986 | |
| 6987 | int |
| 6988 | main () |
| 6989 | { |
| 6990 | |
| 6991 | ; |
| 6992 | return 0; |
| 6993 | } |
| 6994 | _ACEOF |
| 6995 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6996 | if { (eval echo "$as_me:6996: \"$ac_link\"") >&5 |
| 6997 | (eval $ac_link) 2>&5 |
| 6998 | ac_status=$? |
| 6999 | echo "$as_me:6999: \$? = $ac_status" >&5 |
| 7000 | (exit $ac_status); } && |
| 7001 | { ac_try='test -s conftest$ac_exeext' |
| 7002 | { (eval echo "$as_me:7002: \"$ac_try\"") >&5 |
| 7003 | (eval $ac_try) 2>&5 |
| 7004 | ac_status=$? |
| 7005 | echo "$as_me:7005: \$? = $ac_status" >&5 |
| 7006 | (exit $ac_status); }; }; then |
| 7007 | |
| 7008 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'` |
| 7009 | # Check for a 64-bit object if we didn't find anything. |
| 7010 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi |
| 7011 | else |
| 7012 | echo "$as_me: failed program was:" >&5 |
| 7013 | cat conftest.$ac_ext >&5 |
| 7014 | fi |
| 7015 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7016 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 7017 | |
| 7018 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 7019 | |
| 7020 | 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" |
| 7021 | else |
| 7022 | if test "$host_cpu" = ia64; then |
| 7023 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 7024 | allow_undefined_flag_CXX="-z nodefs" |
| 7025 | 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" |
| 7026 | else |
| 7027 | # Determine the default libpath from the value encoded in an empty executable. |
| 7028 | cat >conftest.$ac_ext <<_ACEOF |
| 7029 | #line 7029 "configure" |
| 7030 | #include "confdefs.h" |
| 7031 | |
| 7032 | int |
| 7033 | main () |
| 7034 | { |
| 7035 | |
| 7036 | ; |
| 7037 | return 0; |
| 7038 | } |
| 7039 | _ACEOF |
| 7040 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7041 | if { (eval echo "$as_me:7041: \"$ac_link\"") >&5 |
| 7042 | (eval $ac_link) 2>&5 |
| 7043 | ac_status=$? |
| 7044 | echo "$as_me:7044: \$? = $ac_status" >&5 |
| 7045 | (exit $ac_status); } && |
| 7046 | { ac_try='test -s conftest$ac_exeext' |
| 7047 | { (eval echo "$as_me:7047: \"$ac_try\"") >&5 |
| 7048 | (eval $ac_try) 2>&5 |
| 7049 | ac_status=$? |
| 7050 | echo "$as_me:7050: \$? = $ac_status" >&5 |
| 7051 | (exit $ac_status); }; }; then |
| 7052 | |
| 7053 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'` |
| 7054 | # Check for a 64-bit object if we didn't find anything. |
| 7055 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi |
| 7056 | else |
| 7057 | echo "$as_me: failed program was:" >&5 |
| 7058 | cat conftest.$ac_ext >&5 |
| 7059 | fi |
| 7060 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7061 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 7062 | |
| 7063 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 7064 | # Warning - without using the other run time loading flags, |
| 7065 | # -berok will link without error, but may produce a broken library. |
| 7066 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 7067 | allow_undefined_flag_CXX=' ${wl}-berok' |
| 7068 | # -bexpall does not export symbols beginning with underscore (_) |
| 7069 | always_export_symbols_CXX=yes |
| 7070 | # Exported symbols can be pulled into shared objects from archives |
| 7071 | whole_archive_flag_spec_CXX=' ' |
| 7072 | archive_cmds_need_lc_CXX=yes |
| 7073 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 7074 | 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' |
| 7075 | fi |
| 7076 | fi |
| 7077 | ;; |
| 7078 | chorus*) |
| 7079 | case $cc_basename in |
| 7080 | *) |
| 7081 | # FIXME: insert proper C++ library support |
| 7082 | ld_shlibs_CXX=no |
| 7083 | ;; |
| 7084 | esac |
| 7085 | ;; |
| 7086 | dgux*) |
| 7087 | case $cc_basename in |
| 7088 | ec++) |
| 7089 | # FIXME: insert proper C++ library support |
| 7090 | ld_shlibs_CXX=no |
| 7091 | ;; |
| 7092 | ghcx) |
| 7093 | # Green Hills C++ Compiler |
| 7094 | # FIXME: insert proper C++ library support |
| 7095 | ld_shlibs_CXX=no |
| 7096 | ;; |
| 7097 | *) |
| 7098 | # FIXME: insert proper C++ library support |
| 7099 | ld_shlibs_CXX=no |
| 7100 | ;; |
| 7101 | esac |
| 7102 | ;; |
| 7103 | freebsd12*) |
| 7104 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 7105 | ld_shlibs_CXX=no |
| 7106 | ;; |
| 7107 | freebsd-elf*) |
| 7108 | archive_cmds_need_lc_CXX=no |
| 7109 | ;; |
| 7110 | freebsd*) |
| 7111 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 7112 | # conventions |
| 7113 | ld_shlibs_CXX=yes |
| 7114 | ;; |
| 7115 | gnu*) |
| 7116 | ;; |
| 7117 | hpux*) |
| 7118 | if test $with_gnu_ld = no; then |
| 7119 | if test "$host_cpu" = ia64; then |
| 7120 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 7121 | else |
| 7122 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 7123 | hardcode_libdir_separator_CXX=: |
| 7124 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 7125 | fi |
| 7126 | fi |
| 7127 | if test "$host_cpu" = ia64; then |
| 7128 | hardcode_direct_CXX=no |
| 7129 | hardcode_shlibpath_var_CXX=no |
| 7130 | else |
| 7131 | hardcode_direct_CXX=yes |
| 7132 | fi |
| 7133 | hardcode_minus_L_CXX=yes # Not in the search PATH, but as the default |
| 7134 | # location of the library. |
| 7135 | |
| 7136 | case $cc_basename in |
| 7137 | CC) |
| 7138 | # FIXME: insert proper C++ library support |
| 7139 | ld_shlibs_CXX=no |
| 7140 | ;; |
| 7141 | aCC) |
| 7142 | case $host_os in |
| 7143 | hpux9*) |
| 7144 | 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' |
| 7145 | ;; |
| 7146 | *) |
| 7147 | if test "$host_cpu" = ia64; then |
| 7148 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 7149 | else |
| 7150 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 7151 | fi |
| 7152 | ;; |
| 7153 | esac |
| 7154 | # Commands to make compiler produce verbose output that lists |
| 7155 | # what "hidden" libraries, object files and flags are used when |
| 7156 | # linking a shared library. |
| 7157 | # |
| 7158 | # There doesn't appear to be a way to prevent this compiler from |
| 7159 | # explicitly linking system object files so we need to strip them |
| 7160 | # from the output so that they don't get included in the library |
| 7161 | # dependencies. |
| 7162 | 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' |
| 7163 | ;; |
| 7164 | *) |
| 7165 | if test $GXX = yes; then |
| 7166 | if test $with_gnu_ld = no; then |
| 7167 | case "$host_os" in |
| 7168 | hpux9*) |
| 7169 | 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' |
| 7170 | ;; |
| 7171 | *) |
| 7172 | if test "$host_cpu" = ia64; then |
| 7173 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| 7174 | else |
| 7175 | 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' |
| 7176 | fi |
| 7177 | ;; |
| 7178 | esac |
| 7179 | fi |
| 7180 | else |
| 7181 | # FIXME: insert proper C++ library support |
| 7182 | ld_shlibs_CXX=no |
| 7183 | fi |
| 7184 | ;; |
| 7185 | esac |
| 7186 | ;; |
| 7187 | irix5* | irix6*) |
| 7188 | case $cc_basename in |
| 7189 | CC) |
| 7190 | # SGI C++ |
| 7191 | 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' |
| 7192 | |
| 7193 | # Archives containing C++ object files must be created using |
| 7194 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 7195 | # necessary to make sure instantiated templates are included |
| 7196 | # in the archive. |
| 7197 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 7198 | ;; |
| 7199 | *) |
| 7200 | if test "$GXX" = yes; then |
| 7201 | if test "$with_gnu_ld" = no; then |
| 7202 | 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' |
| 7203 | else |
| 7204 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib' |
| 7205 | fi |
| 7206 | fi |
| 7207 | link_all_deplibs_CXX=yes |
| 7208 | ;; |
| 7209 | esac |
| 7210 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 7211 | hardcode_libdir_separator_CXX=: |
| 7212 | ;; |
| 7213 | linux*) |
| 7214 | case $cc_basename in |
| 7215 | KCC) |
| 7216 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 7217 | |
| 7218 | # KCC will only create a shared library if the output file |
| 7219 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 7220 | # to its proper name (with version) after linking. |
| 7221 | archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 7222 | archive_expsym_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' |
| 7223 | |
| 7224 | # Commands to make compiler produce verbose output that lists |
| 7225 | # what "hidden" libraries, object files and flags are used when |
| 7226 | # linking a shared library. |
| 7227 | # |
| 7228 | # There doesn't appear to be a way to prevent this compiler from |
| 7229 | # explicitly linking system object files so we need to strip them |
| 7230 | # from the output so that they don't get included in the library |
| 7231 | # dependencies. |
| 7232 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest.so 2>&1 | egrep "ld"`; rm -f libconftest.so; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 7233 | |
| 7234 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 7235 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 7236 | |
| 7237 | # Archives containing C++ object files must be created using |
| 7238 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 7239 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 7240 | ;; |
| 7241 | cxx) |
| 7242 | # Compaq C++ |
| 7243 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7244 | 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' |
| 7245 | |
| 7246 | runpath_var=LD_RUN_PATH |
| 7247 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 7248 | hardcode_libdir_separator_CXX=: |
| 7249 | |
| 7250 | # Commands to make compiler produce verbose output that lists |
| 7251 | # what "hidden" libraries, object files and flags are used when |
| 7252 | # linking a shared library. |
| 7253 | # |
| 7254 | # There doesn't appear to be a way to prevent this compiler from |
| 7255 | # explicitly linking system object files so we need to strip them |
| 7256 | # from the output so that they don't get included in the library |
| 7257 | # dependencies. |
| 7258 | 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' |
| 7259 | ;; |
| 7260 | esac |
| 7261 | ;; |
| 7262 | lynxos*) |
| 7263 | # FIXME: insert proper C++ library support |
| 7264 | ld_shlibs_CXX=no |
| 7265 | ;; |
| 7266 | m88k*) |
| 7267 | # FIXME: insert proper C++ library support |
| 7268 | ld_shlibs_CXX=no |
| 7269 | ;; |
| 7270 | mvs*) |
| 7271 | case $cc_basename in |
| 7272 | cxx) |
| 7273 | # FIXME: insert proper C++ library support |
| 7274 | ld_shlibs_CXX=no |
| 7275 | ;; |
| 7276 | *) |
| 7277 | # FIXME: insert proper C++ library support |
| 7278 | ld_shlibs_CXX=no |
| 7279 | ;; |
| 7280 | esac |
| 7281 | ;; |
| 7282 | netbsd*) |
| 7283 | # NetBSD uses g++ - do we need to do anything? |
| 7284 | ;; |
| 7285 | osf3*) |
| 7286 | case $cc_basename in |
| 7287 | KCC) |
| 7288 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 7289 | |
| 7290 | # KCC will only create a shared library if the output file |
| 7291 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 7292 | # to its proper name (with version) after linking. |
| 7293 | archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 7294 | |
| 7295 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 7296 | hardcode_libdir_separator_CXX=: |
| 7297 | |
| 7298 | # Archives containing C++ object files must be created using |
| 7299 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 7300 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 7301 | |
| 7302 | ;; |
| 7303 | RCC) |
| 7304 | # Rational C++ 2.4.1 |
| 7305 | # FIXME: insert proper C++ library support |
| 7306 | ld_shlibs_CXX=no |
| 7307 | ;; |
| 7308 | cxx) |
| 7309 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 7310 | 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' |
| 7311 | |
| 7312 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 7313 | hardcode_libdir_separator_CXX=: |
| 7314 | |
| 7315 | # Commands to make compiler produce verbose output that lists |
| 7316 | # what "hidden" libraries, object files and flags are used when |
| 7317 | # linking a shared library. |
| 7318 | # |
| 7319 | # There doesn't appear to be a way to prevent this compiler from |
| 7320 | # explicitly linking system object files so we need to strip them |
| 7321 | # from the output so that they don't get included in the library |
| 7322 | # dependencies. |
| 7323 | 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' |
| 7324 | ;; |
| 7325 | *) |
| 7326 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 7327 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 7328 | 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' |
| 7329 | |
| 7330 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 7331 | hardcode_libdir_separator_CXX=: |
| 7332 | |
| 7333 | # Commands to make compiler produce verbose output that lists |
| 7334 | # what "hidden" libraries, object files and flags are used when |
| 7335 | # linking a shared library. |
| 7336 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' |
| 7337 | |
| 7338 | else |
| 7339 | # FIXME: insert proper C++ library support |
| 7340 | ld_shlibs_CXX=no |
| 7341 | fi |
| 7342 | ;; |
| 7343 | esac |
| 7344 | ;; |
| 7345 | osf4* | osf5*) |
| 7346 | case $cc_basename in |
| 7347 | KCC) |
| 7348 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 7349 | |
| 7350 | # KCC will only create a shared library if the output file |
| 7351 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 7352 | # to its proper name (with version) after linking. |
| 7353 | archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 7354 | |
| 7355 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 7356 | hardcode_libdir_separator_CXX=: |
| 7357 | |
| 7358 | # Archives containing C++ object files must be created using |
| 7359 | # the KAI C++ compiler. |
| 7360 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 7361 | ;; |
| 7362 | RCC) |
| 7363 | # Rational C++ 2.4.1 |
| 7364 | # FIXME: insert proper C++ library support |
| 7365 | ld_shlibs_CXX=no |
| 7366 | ;; |
| 7367 | cxx) |
| 7368 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 7369 | 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' |
| 7370 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~ |
| 7371 | echo "-hidden">> $lib.exp~ |
| 7372 | $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~ |
| 7373 | $rm $lib.exp' |
| 7374 | |
| 7375 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 7376 | hardcode_libdir_separator_CXX=: |
| 7377 | |
| 7378 | # Commands to make compiler produce verbose output that lists |
| 7379 | # what "hidden" libraries, object files and flags are used when |
| 7380 | # linking a shared library. |
| 7381 | # |
| 7382 | # There doesn't appear to be a way to prevent this compiler from |
| 7383 | # explicitly linking system object files so we need to strip them |
| 7384 | # from the output so that they don't get included in the library |
| 7385 | # dependencies. |
| 7386 | 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' |
| 7387 | ;; |
| 7388 | *) |
| 7389 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 7390 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 7391 | 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' |
| 7392 | |
| 7393 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 7394 | hardcode_libdir_separator_CXX=: |
| 7395 | |
| 7396 | # Commands to make compiler produce verbose output that lists |
| 7397 | # what "hidden" libraries, object files and flags are used when |
| 7398 | # linking a shared library. |
| 7399 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' |
| 7400 | |
| 7401 | else |
| 7402 | # FIXME: insert proper C++ library support |
| 7403 | ld_shlibs_CXX=no |
| 7404 | fi |
| 7405 | ;; |
| 7406 | esac |
| 7407 | ;; |
| 7408 | psos*) |
| 7409 | # FIXME: insert proper C++ library support |
| 7410 | ld_shlibs_CXX=no |
| 7411 | ;; |
| 7412 | sco*) |
| 7413 | case $cc_basename in |
| 7414 | CC) |
| 7415 | # FIXME: insert proper C++ library support |
| 7416 | ld_shlibs_CXX=no |
| 7417 | ;; |
| 7418 | *) |
| 7419 | # FIXME: insert proper C++ library support |
| 7420 | ld_shlibs_CXX=no |
| 7421 | ;; |
| 7422 | esac |
| 7423 | ;; |
| 7424 | sunos4*) |
| 7425 | case $cc_basename in |
| 7426 | CC) |
| 7427 | # Sun C++ 4.x |
| 7428 | # FIXME: insert proper C++ library support |
| 7429 | ld_shlibs_CXX=no |
| 7430 | ;; |
| 7431 | lcc) |
| 7432 | # Lucid |
| 7433 | # FIXME: insert proper C++ library support |
| 7434 | ld_shlibs_CXX=no |
| 7435 | ;; |
| 7436 | *) |
| 7437 | # FIXME: insert proper C++ library support |
| 7438 | ld_shlibs_CXX=no |
| 7439 | ;; |
| 7440 | esac |
| 7441 | ;; |
| 7442 | solaris*) |
| 7443 | case $cc_basename in |
| 7444 | CC) |
| 7445 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 7446 | no_undefined_flag_CXX=' -zdefs' |
| 7447 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 7448 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 7449 | $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' |
| 7450 | |
| 7451 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 7452 | hardcode_shlibpath_var_CXX=no |
| 7453 | case $host_os in |
| 7454 | solaris2.0-5 | solaris2.0-5.*) ;; |
| 7455 | *) |
| 7456 | # The C++ compiler is used as linker so we must use $wl |
| 7457 | # flag to pass the commands to the underlying system |
| 7458 | # linker. |
| 7459 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 7460 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 7461 | ;; |
| 7462 | esac |
| 7463 | link_all_deplibs_CXX=yes |
| 7464 | |
| 7465 | # Commands to make compiler produce verbose output that lists |
| 7466 | # what "hidden" libraries, object files and flags are used when |
| 7467 | # linking a shared library. |
| 7468 | # |
| 7469 | # There doesn't appear to be a way to prevent this compiler from |
| 7470 | # explicitly linking system object files so we need to strip them |
| 7471 | # from the output so that they don't get included in the library |
| 7472 | # dependencies. |
| 7473 | output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep "\-R|\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 7474 | |
| 7475 | # Archives containing C++ object files must be created using |
| 7476 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 7477 | # necessary to make sure instantiated templates are included |
| 7478 | # in the archive. |
| 7479 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 7480 | ;; |
| 7481 | gcx) |
| 7482 | # Green Hills C++ Compiler |
| 7483 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 7484 | |
| 7485 | # The C++ compiler must be used to create the archive. |
| 7486 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 7487 | ;; |
| 7488 | *) |
| 7489 | # GNU C++ compiler with Solaris linker |
| 7490 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 7491 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 7492 | if $CC --version | egrep -v '^2\.7' > /dev/null; then |
| 7493 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib' |
| 7494 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 7495 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp' |
| 7496 | |
| 7497 | # Commands to make compiler produce verbose output that lists |
| 7498 | # what "hidden" libraries, object files and flags are used when |
| 7499 | # linking a shared library. |
| 7500 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\"" |
| 7501 | else |
| 7502 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 7503 | # platform. |
| 7504 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib' |
| 7505 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 7506 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp' |
| 7507 | |
| 7508 | # Commands to make compiler produce verbose output that lists |
| 7509 | # what "hidden" libraries, object files and flags are used when |
| 7510 | # linking a shared library. |
| 7511 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\"" |
| 7512 | fi |
| 7513 | |
| 7514 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 7515 | fi |
| 7516 | ;; |
| 7517 | esac |
| 7518 | ;; |
| 7519 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 7520 | archive_cmds_need_lc=no |
| 7521 | ;; |
| 7522 | tandem*) |
| 7523 | case $cc_basename in |
| 7524 | NCC) |
| 7525 | # NonStop-UX NCC 3.20 |
| 7526 | # FIXME: insert proper C++ library support |
| 7527 | ld_shlibs_CXX=no |
| 7528 | ;; |
| 7529 | *) |
| 7530 | # FIXME: insert proper C++ library support |
| 7531 | ld_shlibs_CXX=no |
| 7532 | ;; |
| 7533 | esac |
| 7534 | ;; |
| 7535 | vxworks*) |
| 7536 | # FIXME: insert proper C++ library support |
| 7537 | ld_shlibs_CXX=no |
| 7538 | ;; |
| 7539 | *) |
| 7540 | # FIXME: insert proper C++ library support |
| 7541 | ld_shlibs_CXX=no |
| 7542 | ;; |
| 7543 | esac |
| 7544 | echo "$as_me:7544: result: $ld_shlibs_CXX" >&5 |
| 7545 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| 7546 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 7547 | |
| 7548 | # Figure out "hidden" C++ library dependencies from verbose |
| 7549 | # compiler output whening linking a shared library. |
| 7550 | cat > conftest.$ac_ext <<EOF |
| 7551 | class Foo |
| 7552 | { |
| 7553 | public: |
| 7554 | Foo (void) { a = 0; } |
| 7555 | private: |
| 7556 | int a; |
| 7557 | }; |
| 7558 | EOF |
| 7559 | |
| 7560 | if { (eval echo "$as_me:7560: \"$ac_compile\"") >&5 |
| 7561 | (eval $ac_compile) 2>&5 |
| 7562 | ac_status=$? |
| 7563 | echo "$as_me:7563: \$? = $ac_status" >&5 |
| 7564 | (exit $ac_status); }; then |
| 7565 | # Parse the compiler output and extract the necessary |
| 7566 | # objects, libraries and library flags. |
| 7567 | |
| 7568 | # Sentinel used to keep track of whether or not we are before |
| 7569 | # the conftest object file. |
| 7570 | pre_test_object_deps_done=no |
| 7571 | |
| 7572 | # The `*' in the case matches for architectures that use `case' in |
| 7573 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 7574 | # eval without this substitution. |
| 7575 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
| 7576 | |
| 7577 | for p in `eval $output_verbose_link_cmd`; do |
| 7578 | case $p in |
| 7579 | |
| 7580 | -L* | -R* | -l*) |
| 7581 | # Some compilers place space between "-{L,R}" and the path. |
| 7582 | # Remove the space. |
| 7583 | if test $p = "-L" \ |
| 7584 | || test $p = "-R"; then |
| 7585 | prev=$p |
| 7586 | continue |
| 7587 | else |
| 7588 | prev= |
| 7589 | fi |
| 7590 | |
| 7591 | if test "$pre_test_object_deps_done" = no; then |
| 7592 | case $p in |
| 7593 | -L* | -R*) |
| 7594 | # Internal compiler library paths should come after those |
| 7595 | # provided the user. The postdeps already come after the |
| 7596 | # user supplied libs so there is no need to process them. |
| 7597 | if test -z "$compiler_lib_search_path_CXX"; then |
| 7598 | compiler_lib_search_path_CXX="${prev}${p}" |
| 7599 | else |
| 7600 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 7601 | fi |
| 7602 | ;; |
| 7603 | # The "-l" case would never come before the object being |
| 7604 | # linked, so don't bother handling this case. |
| 7605 | esac |
| 7606 | else |
| 7607 | if test -z "$postdeps_CXX"; then |
| 7608 | postdeps_CXX="${prev}${p}" |
| 7609 | else |
| 7610 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 7611 | fi |
| 7612 | fi |
| 7613 | ;; |
| 7614 | |
| 7615 | *.$objext) |
| 7616 | # This assumes that the test object file only shows up |
| 7617 | # once in the compiler output. |
| 7618 | if test "$p" = "conftest.$objext"; then |
| 7619 | pre_test_object_deps_done=yes |
| 7620 | continue |
| 7621 | fi |
| 7622 | |
| 7623 | if test "$pre_test_object_deps_done" = no; then |
| 7624 | if test -z "$predep_objects_CXX"; then |
| 7625 | predep_objects_CXX="$p" |
| 7626 | else |
| 7627 | predep_objects_CXX="$predep_objects_CXX $p" |
| 7628 | fi |
| 7629 | else |
| 7630 | if test -z "$postdep_objects_CXX"; then |
| 7631 | postdep_objects_CXX="$p" |
| 7632 | else |
| 7633 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 7634 | fi |
| 7635 | fi |
| 7636 | ;; |
| 7637 | |
| 7638 | *) ;; # Ignore the rest. |
| 7639 | |
| 7640 | esac |
| 7641 | done |
| 7642 | |
| 7643 | # Clean up. |
| 7644 | rm -f a.out |
| 7645 | else |
| 7646 | echo "ltcf-cxx.sh: error: problem compiling test program" |
| 7647 | fi |
| 7648 | |
| 7649 | $rm -f confest.$objext |
| 7650 | |
| 7651 | case " $postdeps_CXX " in |
| 7652 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 7653 | *) archive_cmds_need_lc_CXX=yes ;; |
| 7654 | esac |
| 7655 | |
| 7656 | GCC_CXX="$GXX" |
| 7657 | LD_CXX="$LD" |
| 7658 | |
| 7659 | lt_prog_compiler_wl_CXX= |
| 7660 | lt_prog_compiler_pic_CXX= |
| 7661 | lt_prog_compiler_static_CXX= |
| 7662 | |
| 7663 | # C++ specific cases for pic, static, wl, etc. |
| 7664 | if test "$GXX" = yes; then |
| 7665 | lt_prog_compiler_wl_CXX='-Wl,' |
| 7666 | lt_prog_compiler_static_CXX='-static' |
| 7667 | |
| 7668 | case $host_os in |
| 7669 | aix*) |
| 7670 | # All AIX code is PIC. |
| 7671 | if test "$host_cpu" = ia64; then |
| 7672 | # AIX 5 now supports IA64 processor |
| 7673 | lt_prog_compiler_static_CXX='-Bstatic' |
| 7674 | fi |
| 7675 | ;; |
| 7676 | amigaos*) |
| 7677 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 7678 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 7679 | # like `-m68040'. |
| 7680 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 7681 | ;; |
| 7682 | beos* | irix5* | irix6* | osf3* | osf4* | osf5*) |
| 7683 | # PIC is the default for these OSes. |
| 7684 | ;; |
| 7685 | cygwin* | mingw* | os2*) |
| 7686 | # This hack is so that the source file can tell whether it is being |
| 7687 | # built for inclusion in a dll (and should export symbols for example). |
| 7688 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 7689 | ;; |
| 7690 | darwin* | rhapsody*) |
| 7691 | # PIC is the default on this platform |
| 7692 | # Common symbols not allowed in MH_DYLIB files |
| 7693 | lt_prog_compiler_pic_CXX='-fno-common' |
| 7694 | ;; |
| 7695 | *djgpp*) |
| 7696 | # DJGPP does not support shared libraries at all |
| 7697 | lt_prog_compiler_pic_CXX= |
| 7698 | ;; |
| 7699 | sysv4*MP*) |
| 7700 | if test -d /usr/nec; then |
| 7701 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 7702 | fi |
| 7703 | ;; |
| 7704 | hpux*) |
| 7705 | # PIC is the default for IA64 HP-UX, but not for PA HP-UX. |
| 7706 | if test "$host_cpu" != ia64; then |
| 7707 | lt_prog_compiler_pic_CXX='-fPIC' |
| 7708 | fi |
| 7709 | ;; |
| 7710 | *) |
| 7711 | lt_prog_compiler_pic_CXX='-fPIC' |
| 7712 | ;; |
| 7713 | esac |
| 7714 | else |
| 7715 | case $host_os in |
| 7716 | aix4* | aix5*) |
| 7717 | # All AIX code is PIC. |
| 7718 | if test "$host_cpu" = ia64; then |
| 7719 | # AIX 5 now supports IA64 processor |
| 7720 | lt_prog_compiler_static_CXX='-Bstatic' |
| 7721 | else |
| 7722 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 7723 | fi |
| 7724 | ;; |
| 7725 | chorus*) |
| 7726 | case $cc_basename in |
| 7727 | cxch68) |
| 7728 | # Green Hills C++ Compiler |
| 7729 | # _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" |
| 7730 | ;; |
| 7731 | esac |
| 7732 | ;; |
| 7733 | dgux*) |
| 7734 | case $cc_basename in |
| 7735 | ec++) |
| 7736 | lt_prog_compiler_pic_CXX='-KPIC' |
| 7737 | ;; |
| 7738 | ghcx) |
| 7739 | # Green Hills C++ Compiler |
| 7740 | lt_prog_compiler_pic_CXX='-pic' |
| 7741 | ;; |
| 7742 | *) |
| 7743 | ;; |
| 7744 | esac |
| 7745 | ;; |
| 7746 | freebsd*) |
| 7747 | # FreeBSD uses GNU C++ |
| 7748 | ;; |
| 7749 | hpux9* | hpux10* | hpux11*) |
| 7750 | case $cc_basename in |
| 7751 | CC) |
| 7752 | lt_prog_compiler_wl_CXX='-Wl,' |
| 7753 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 7754 | if test "$host_cpu" != ia64; then |
| 7755 | lt_prog_compiler_pic_CXX='+Z' |
| 7756 | fi |
| 7757 | ;; |
| 7758 | aCC) |
| 7759 | lt_prog_compiler_wl_CXX='-Wl,' |
| 7760 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
| 7761 | if test "$host_cpu" != ia64; then |
| 7762 | lt_prog_compiler_pic_CXX='+Z' |
| 7763 | fi |
| 7764 | ;; |
| 7765 | *) |
| 7766 | ;; |
| 7767 | esac |
| 7768 | ;; |
| 7769 | irix5* | irix6*) |
| 7770 | case $cc_basename in |
| 7771 | CC) |
| 7772 | lt_prog_compiler_wl_CXX='-Wl,' |
| 7773 | lt_prog_compiler_static_CXX='-non_shared' |
| 7774 | # CC pic flag -KPIC is the default. |
| 7775 | ;; |
| 7776 | *) |
| 7777 | ;; |
| 7778 | esac |
| 7779 | ;; |
| 7780 | linux*) |
| 7781 | case $cc_basename in |
| 7782 | KCC) |
| 7783 | # KAI C++ Compiler |
| 7784 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 7785 | lt_prog_compiler_pic_CXX='-fPIC' |
| 7786 | ;; |
| 7787 | cxx) |
| 7788 | # Compaq C++ |
| 7789 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 7790 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 7791 | lt_prog_compiler_pic_CXX= |
| 7792 | lt_prog_compiler_static_CXX='-non_shared' |
| 7793 | ;; |
| 7794 | *) |
| 7795 | ;; |
| 7796 | esac |
| 7797 | ;; |
| 7798 | lynxos*) |
| 7799 | ;; |
| 7800 | m88k*) |
| 7801 | ;; |
| 7802 | mvs*) |
| 7803 | case $cc_basename in |
| 7804 | cxx) |
| 7805 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 7806 | ;; |
| 7807 | *) |
| 7808 | ;; |
| 7809 | esac |
| 7810 | ;; |
| 7811 | netbsd*) |
| 7812 | ;; |
| 7813 | osf3* | osf4* | osf5*) |
| 7814 | case $cc_basename in |
| 7815 | KCC) |
| 7816 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 7817 | ;; |
| 7818 | RCC) |
| 7819 | # Rational C++ 2.4.1 |
| 7820 | lt_prog_compiler_pic_CXX='-pic' |
| 7821 | ;; |
| 7822 | cxx) |
| 7823 | # Digital/Compaq C++ |
| 7824 | lt_prog_compiler_wl_CXX='-Wl,' |
| 7825 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 7826 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 7827 | lt_prog_compiler_pic_CXX= |
| 7828 | lt_prog_compiler_static_CXX='-non_shared' |
| 7829 | ;; |
| 7830 | *) |
| 7831 | ;; |
| 7832 | esac |
| 7833 | ;; |
| 7834 | psos*) |
| 7835 | ;; |
| 7836 | sco*) |
| 7837 | case $cc_basename in |
| 7838 | CC) |
| 7839 | lt_prog_compiler_pic_CXX='-fPIC' |
| 7840 | ;; |
| 7841 | *) |
| 7842 | ;; |
| 7843 | esac |
| 7844 | ;; |
| 7845 | solaris*) |
| 7846 | case $cc_basename in |
| 7847 | CC) |
| 7848 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 7849 | lt_prog_compiler_pic_CXX='-KPIC' |
| 7850 | lt_prog_compiler_static_CXX='-Bstatic' |
| 7851 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 7852 | ;; |
| 7853 | gcx) |
| 7854 | # Green Hills C++ Compiler |
| 7855 | lt_prog_compiler_pic_CXX='-PIC' |
| 7856 | ;; |
| 7857 | *) |
| 7858 | ;; |
| 7859 | esac |
| 7860 | ;; |
| 7861 | sunos4*) |
| 7862 | case $cc_basename in |
| 7863 | CC) |
| 7864 | # Sun C++ 4.x |
| 7865 | lt_prog_compiler_pic_CXX='-pic' |
| 7866 | lt_prog_compiler_static_CXX='-Bstatic' |
| 7867 | ;; |
| 7868 | lcc) |
| 7869 | # Lucid |
| 7870 | lt_prog_compiler_pic_CXX='-pic' |
| 7871 | ;; |
| 7872 | *) |
| 7873 | ;; |
| 7874 | esac |
| 7875 | ;; |
| 7876 | tandem*) |
| 7877 | case $cc_basename in |
| 7878 | NCC) |
| 7879 | # NonStop-UX NCC 3.20 |
| 7880 | lt_prog_compiler_pic_CXX='-KPIC' |
| 7881 | ;; |
| 7882 | *) |
| 7883 | ;; |
| 7884 | esac |
| 7885 | ;; |
| 7886 | unixware*) |
| 7887 | ;; |
| 7888 | vxworks*) |
| 7889 | ;; |
| 7890 | *) |
| 7891 | lt_prog_compiler_can_build_shared_CXX=no |
| 7892 | ;; |
| 7893 | esac |
| 7894 | fi |
| 7895 | |
| 7896 | echo "$as_me:7896: result: $lt_prog_compiler_pic_CXX" >&5 |
| 7897 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
| 7898 | |
| 7899 | # |
| 7900 | # Check to make sure the PIC flag actually works. |
| 7901 | # |
| 7902 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| 7903 | echo "$as_me:7903: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 7904 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
| 7905 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 7906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7907 | else |
| 7908 | lt_prog_compiler_pic_works_CXX=no |
| 7909 | ac_outfile=conftest.$ac_objext |
| 7910 | save_CFLAGS="$CFLAGS" |
| 7911 | CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX -DPIC" |
| 7912 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7913 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then |
| 7914 | # The compiler can only warn and ignore the option if not recognized |
| 7915 | # So say no if there are warnings |
| 7916 | if test -s conftest.err; then |
| 7917 | # Append any errors to the config.log. |
| 7918 | cat conftest.err 1>&5 |
| 7919 | else |
| 7920 | lt_prog_compiler_pic_works_CXX=yes |
| 7921 | fi |
| 7922 | fi |
| 7923 | $rm conftest* |
| 7924 | CFLAGS="$save_CFLAGS" |
| 7925 | |
| 7926 | fi |
| 7927 | echo "$as_me:7927: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 7928 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
| 7929 | |
| 7930 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 7931 | case $lt_prog_compiler_pic_CXX in |
| 7932 | "" | " "*) ;; |
| 7933 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 7934 | esac |
| 7935 | else |
| 7936 | lt_prog_compiler_pic_CXX= |
| 7937 | lt_prog_compiler_can_build_shared_CXX=no |
| 7938 | fi |
| 7939 | |
| 7940 | fi |
| 7941 | case "$host_os" in |
| 7942 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 7943 | *djgpp*) |
| 7944 | lt_prog_compiler_pic_CXX= |
| 7945 | ;; |
| 7946 | *) |
| 7947 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 7948 | ;; |
| 7949 | esac |
| 7950 | |
| 7951 | echo "$as_me:7951: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 7952 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 7953 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 7954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7955 | else |
| 7956 | lt_cv_prog_compiler_c_o_CXX=no |
| 7957 | $rm -r conftest 2>/dev/null |
| 7958 | mkdir conftest |
| 7959 | cd conftest |
| 7960 | mkdir out |
| 7961 | save_CXXFLAGS="$CXXFLAGS" |
| 7962 | CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext" |
| 7963 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7964 | |
| 7965 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 7966 | # that will create temporary files in the current directory regardless of |
| 7967 | # the output directory. Thus, making CWD read-only will cause this test |
| 7968 | # to fail, enabling locking or at least warning the user not to do parallel |
| 7969 | # builds. |
| 7970 | chmod -w . |
| 7971 | |
| 7972 | if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext |
| 7973 | then |
| 7974 | # The compiler can only warn and ignore the option if not recognized |
| 7975 | # So say no if there are warnings |
| 7976 | if test -s out/conftest.err; then |
| 7977 | # Append any errors to the config.log. |
| 7978 | cat out/conftest.err 1>&5 |
| 7979 | else |
| 7980 | lt_cv_prog_compiler_c_o_CXX=yes |
| 7981 | fi |
| 7982 | fi |
| 7983 | CXXFLAGS="$save_CXXFLAGS" |
| 7984 | chmod u+w . |
| 7985 | $rm conftest* out/* |
| 7986 | rmdir out |
| 7987 | cd .. |
| 7988 | rmdir conftest |
| 7989 | $rm conftest* |
| 7990 | |
| 7991 | fi |
| 7992 | echo "$as_me:7992: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 7993 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
| 7994 | |
| 7995 | hard_links="nottested" |
| 7996 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 7997 | # do not overwrite the value of need_locks provided by the user |
| 7998 | echo "$as_me:7998: checking if we can lock with hard links" >&5 |
| 7999 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 8000 | hard_links=yes |
| 8001 | $rm conftest* |
| 8002 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 8003 | touch conftest.a |
| 8004 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 8005 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 8006 | echo "$as_me:8006: result: $hard_links" >&5 |
| 8007 | echo "${ECHO_T}$hard_links" >&6 |
| 8008 | if test "$hard_links" = no; then |
| 8009 | { echo "$as_me:8009: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 8010 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 8011 | need_locks=warn |
| 8012 | fi |
| 8013 | else |
| 8014 | need_locks=no |
| 8015 | fi |
| 8016 | |
| 8017 | echo "$as_me:8017: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 8018 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 8019 | |
| 8020 | echo "$as_me:8020: result: $ld_shlibs_CXX" >&5 |
| 8021 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| 8022 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 8023 | |
| 8024 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 8025 | if test "$GCC" = yes; then |
| 8026 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 8027 | fi |
| 8028 | |
| 8029 | # |
| 8030 | # Do we need to explicitly link libc? |
| 8031 | # |
| 8032 | archive_cmds_need_lc_CXX=yes |
| 8033 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 8034 | case $archive_cmds_CXX in |
| 8035 | *'~'*) |
| 8036 | # FIXME: we may have to deal with multi-command sequences. |
| 8037 | ;; |
| 8038 | '$CC '*) |
| 8039 | # Test whether the compiler implicitly links with -lc since on some |
| 8040 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 8041 | # to ld, don't add -lc before -lgcc. |
| 8042 | echo "$as_me:8042: checking whether -lc should be explicitly linked in" >&5 |
| 8043 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 8044 | $rm conftest* |
| 8045 | echo 'static int dummy;' > conftest.$ac_ext |
| 8046 | |
| 8047 | if { (eval echo "$as_me:8047: \"$ac_compile\"") >&5 |
| 8048 | (eval $ac_compile) 2>&5 |
| 8049 | ac_status=$? |
| 8050 | echo "$as_me:8050: \$? = $ac_status" >&5 |
| 8051 | (exit $ac_status); } 2>conftest.err; then |
| 8052 | soname=conftest |
| 8053 | lib=conftest |
| 8054 | libobjs=conftest.$ac_objext |
| 8055 | deplibs= |
| 8056 | wl=$lt_prog_compiler_wl_CXX |
| 8057 | compiler_flags=-v |
| 8058 | linker_flags=-v |
| 8059 | verstring= |
| 8060 | output_objdir=. |
| 8061 | libname=conftest |
| 8062 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 8063 | allow_undefined_flag_CXX= |
| 8064 | if { (eval echo "$as_me:8064: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 8065 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 8066 | ac_status=$? |
| 8067 | echo "$as_me:8067: \$? = $ac_status" >&5 |
| 8068 | (exit $ac_status); } |
| 8069 | then |
| 8070 | archive_cmds_need_lc_CXX=no |
| 8071 | else |
| 8072 | archive_cmds_need_lc_CXX=yes |
| 8073 | fi |
| 8074 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 8075 | else |
| 8076 | cat conftest.err 1>&5 |
| 8077 | fi |
| 8078 | $rm conftest* |
| 8079 | echo "$as_me:8079: result: $archive_cmds_need_lc_CXX" >&5 |
| 8080 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
| 8081 | ;; |
| 8082 | esac |
| 8083 | fi |
| 8084 | |
| 8085 | echo "$as_me:8085: checking how to hardcode library paths into programs" >&5 |
| 8086 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 8087 | hardcode_action_CXX= |
| 8088 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 8089 | test -n "$runpath_var CXX"; then |
| 8090 | |
| 8091 | # We can hardcode non-existant directories. |
| 8092 | if test "$hardcode_direct_CXX" != no && |
| 8093 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 8094 | # have to relink, otherwise we might link with an installed library |
| 8095 | # when we should be linking with a yet-to-be-installed one |
| 8096 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 8097 | test "$hardcode_minus_L_CXX" != no; then |
| 8098 | # Linking always hardcodes the temporary library directory. |
| 8099 | hardcode_action_CXX=relink |
| 8100 | else |
| 8101 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 8102 | hardcode_action_CXX=immediate |
| 8103 | fi |
| 8104 | else |
| 8105 | # We cannot hardcode anything, or else we can only hardcode existing |
| 8106 | # directories. |
| 8107 | hardcode_action_CXX=unsupported |
| 8108 | fi |
| 8109 | echo "$as_me:8109: result: $hardcode_action_CXX" >&5 |
| 8110 | echo "${ECHO_T}$hardcode_action_CXX" >&6 |
| 8111 | |
| 8112 | if test "$hardcode_action_CXX" = relink; then |
| 8113 | # Fast installation is not supported |
| 8114 | enable_fast_install=no |
| 8115 | elif test "$shlibpath_overrides_runpath" = yes || |
| 8116 | test "$enable_shared" = no; then |
| 8117 | # Fast installation is not necessary |
| 8118 | enable_fast_install=needless |
| 8119 | fi |
| 8120 | |
| 8121 | striplib= |
| 8122 | old_striplib= |
| 8123 | echo "$as_me:8123: checking whether stripping libraries is possible" >&5 |
| 8124 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 8125 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 8126 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 8127 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 8128 | echo "$as_me:8128: result: yes" >&5 |
| 8129 | echo "${ECHO_T}yes" >&6 |
| 8130 | else |
| 8131 | echo "$as_me:8131: result: no" >&5 |
| 8132 | echo "${ECHO_T}no" >&6 |
| 8133 | fi |
| 8134 | |
| 8135 | echo "$as_me:8135: checking dynamic linker characteristics" >&5 |
| 8136 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 8137 | library_names_spec= |
| 8138 | libname_spec='lib$name' |
| 8139 | soname_spec= |
| 8140 | postinstall_cmds= |
| 8141 | postuninstall_cmds= |
| 8142 | finish_cmds= |
| 8143 | finish_eval= |
| 8144 | shlibpath_var= |
| 8145 | shlibpath_overrides_runpath=unknown |
| 8146 | version_type=none |
| 8147 | dynamic_linker="$host_os ld.so" |
| 8148 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 8149 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 8150 | need_lib_prefix=unknown |
| 8151 | hardcode_into_libs=no |
| 8152 | |
| 8153 | # when you set need_version to no, make sure it does not cause -set_version |
| 8154 | # flags to be left without arguments |
| 8155 | need_version=unknown |
| 8156 | |
| 8157 | case $host_os in |
| 8158 | aix3*) |
| 8159 | version_type=linux |
| 8160 | library_names_spec='${libname}${release}.so$versuffix $libname.a' |
| 8161 | shlibpath_var=LIBPATH |
| 8162 | |
| 8163 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 8164 | soname_spec='${libname}${release}.so$major' |
| 8165 | ;; |
| 8166 | |
| 8167 | aix4* | aix5*) |
| 8168 | version_type=linux |
| 8169 | if test "$host_cpu" = ia64; then |
| 8170 | # AIX 5 supports IA64 |
| 8171 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' |
| 8172 | shlibpath_var=LD_LIBRARY_PATH |
| 8173 | else |
| 8174 | # With GCC up to 2.95.x, collect2 would create an import file |
| 8175 | # for dependence libraries. The import file would start with |
| 8176 | # the line `#! .'. This would cause the generated library to |
| 8177 | # depend on `.', always an invalid library. This was fixed in |
| 8178 | # development snapshots of GCC prior to 3.0. |
| 8179 | case $host_os in |
| 8180 | aix4 | aix4.[01] | aix4.[01].*) |
| 8181 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 8182 | echo ' yes ' |
| 8183 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 8184 | : |
| 8185 | else |
| 8186 | can_build_shared=no |
| 8187 | fi |
| 8188 | ;; |
| 8189 | esac |
| 8190 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 8191 | # soname into executable. Probably we can add versioning support to |
| 8192 | # collect2, so additional links can be useful in future. |
| 8193 | if test "$aix_use_runtimelinking" = yes; then |
| 8194 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 8195 | # instead of lib<name>.a to let people know that these are not |
| 8196 | # typical AIX shared libraries. |
| 8197 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 8198 | else |
| 8199 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 8200 | # and later when we are not doing run time linking. |
| 8201 | library_names_spec='${libname}${release}.a $libname.a' |
| 8202 | soname_spec='${libname}${release}.so$major' |
| 8203 | fi |
| 8204 | shlibpath_var=LIBPATH |
| 8205 | deplibs_check_method=pass_all |
| 8206 | fi |
| 8207 | ;; |
| 8208 | |
| 8209 | amigaos*) |
| 8210 | library_names_spec='$libname.ixlibrary $libname.a' |
| 8211 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 8212 | 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' |
| 8213 | ;; |
| 8214 | |
| 8215 | beos*) |
| 8216 | library_names_spec='${libname}.so' |
| 8217 | dynamic_linker="$host_os ld.so" |
| 8218 | shlibpath_var=LIBRARY_PATH |
| 8219 | ;; |
| 8220 | |
| 8221 | bsdi4*) |
| 8222 | version_type=linux |
| 8223 | need_version=no |
| 8224 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 8225 | soname_spec='${libname}${release}.so$major' |
| 8226 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 8227 | shlibpath_var=LD_LIBRARY_PATH |
| 8228 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 8229 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 8230 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 8231 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 8232 | # libtool to hard-code these into programs |
| 8233 | ;; |
| 8234 | |
| 8235 | cygwin* | mingw* | pw32*) |
| 8236 | version_type=windows |
| 8237 | need_version=no |
| 8238 | need_lib_prefix=no |
| 8239 | case $GCC,$host_os in |
| 8240 | yes,cygwin*) |
| 8241 | library_names_spec='$libname.dll.a' |
| 8242 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" |
| 8243 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
| 8244 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ |
| 8245 | dldir=$destdir/`dirname \$dlpath`~ |
| 8246 | test -d \$dldir || mkdir -p \$dldir~ |
| 8247 | $install_prog .libs/$dlname \$dldir/$dlname' |
| 8248 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 8249 | dlpath=$dir/\$dldll~ |
| 8250 | $rm \$dlpath' |
| 8251 | ;; |
| 8252 | yes,mingw*) |
| 8253 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
| 8254 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/$PATH_SEPARATOR/ /g"` |
| 8255 | ;; |
| 8256 | yes,pw32*) |
| 8257 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' |
| 8258 | ;; |
| 8259 | *) |
| 8260 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' |
| 8261 | ;; |
| 8262 | esac |
| 8263 | dynamic_linker='Win32 ld.exe' |
| 8264 | # FIXME: first we should search . and the directory the executable is in |
| 8265 | shlibpath_var=PATH |
| 8266 | ;; |
| 8267 | |
| 8268 | darwin* | rhapsody*) |
| 8269 | dynamic_linker="$host_os dyld" |
| 8270 | version_type=darwin |
| 8271 | need_lib_prefix=no |
| 8272 | need_version=no |
| 8273 | # FIXME: Relying on posixy $() will cause problems for |
| 8274 | # cross-compilation, but unfortunately the echo tests do not |
| 8275 | # yet detect zsh echo's removal of \ escapes. |
| 8276 | library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' |
| 8277 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' |
| 8278 | shlibpath_overrides_runpath=yes |
| 8279 | shlibpath_var=DYLD_LIBRARY_PATH |
| 8280 | ;; |
| 8281 | |
| 8282 | dgux*) |
| 8283 | version_type=linux |
| 8284 | need_lib_prefix=no |
| 8285 | need_version=no |
| 8286 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 8287 | soname_spec='${libname}${release}.so$major' |
| 8288 | shlibpath_var=LD_LIBRARY_PATH |
| 8289 | ;; |
| 8290 | |
| 8291 | freebsd1*) |
| 8292 | dynamic_linker=no |
| 8293 | ;; |
| 8294 | |
| 8295 | freebsd*) |
| 8296 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 8297 | version_type=freebsd-$objformat |
| 8298 | case $version_type in |
| 8299 | freebsd-elf*) |
| 8300 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
| 8301 | need_version=no |
| 8302 | need_lib_prefix=no |
| 8303 | ;; |
| 8304 | freebsd-*) |
| 8305 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' |
| 8306 | need_version=yes |
| 8307 | ;; |
| 8308 | esac |
| 8309 | shlibpath_var=LD_LIBRARY_PATH |
| 8310 | case $host_os in |
| 8311 | freebsd2*) |
| 8312 | shlibpath_overrides_runpath=yes |
| 8313 | ;; |
| 8314 | freebsd3.01* | freebsdelf3.01*) |
| 8315 | shlibpath_overrides_runpath=yes |
| 8316 | hardcode_into_libs=yes |
| 8317 | ;; |
| 8318 | *) # from 3.2 on |
| 8319 | shlibpath_overrides_runpath=no |
| 8320 | hardcode_into_libs=yes |
| 8321 | ;; |
| 8322 | esac |
| 8323 | ;; |
| 8324 | |
| 8325 | gnu*) |
| 8326 | version_type=linux |
| 8327 | need_lib_prefix=no |
| 8328 | need_version=no |
| 8329 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' |
| 8330 | soname_spec='${libname}${release}.so$major' |
| 8331 | shlibpath_var=LD_LIBRARY_PATH |
| 8332 | hardcode_into_libs=yes |
| 8333 | ;; |
| 8334 | |
| 8335 | hpux9* | hpux10* | hpux11*) |
| 8336 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 8337 | # link against other versions. |
| 8338 | version_type=sunos |
| 8339 | need_lib_prefix=no |
| 8340 | need_version=no |
| 8341 | if test "$host_cpu" = ia64; then |
| 8342 | hardcode_into_libs=yes |
| 8343 | dynamic_linker="$host_os dld.so" |
| 8344 | shlibpath_var=LD_LIBRARY_PATH |
| 8345 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8346 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 8347 | soname_spec='${libname}${release}.so$major' |
| 8348 | if test "X$HPUX_IA64_MODE" = X32; then |
| 8349 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 8350 | else |
| 8351 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 8352 | fi |
| 8353 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8354 | else |
| 8355 | dynamic_linker="$host_os dld.sl" |
| 8356 | shlibpath_var=SHLIB_PATH |
| 8357 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 8358 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' |
| 8359 | soname_spec='${libname}${release}.sl$major' |
| 8360 | fi |
| 8361 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 8362 | postinstall_cmds='chmod 555 $lib' |
| 8363 | ;; |
| 8364 | |
| 8365 | irix5* | irix6*) |
| 8366 | version_type=irix |
| 8367 | need_lib_prefix=no |
| 8368 | need_version=no |
| 8369 | soname_spec='${libname}${release}.so$major' |
| 8370 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
| 8371 | case $host_os in |
| 8372 | irix5*) |
| 8373 | libsuff= shlibsuff= |
| 8374 | ;; |
| 8375 | *) |
| 8376 | case $LD in # libtool.m4 will add one of these switches to LD |
| 8377 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; |
| 8378 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 8379 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 8380 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 8381 | esac |
| 8382 | ;; |
| 8383 | esac |
| 8384 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 8385 | shlibpath_overrides_runpath=no |
| 8386 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 8387 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 8388 | ;; |
| 8389 | |
| 8390 | # No shared lib support for Linux oldld, aout, or coff. |
| 8391 | linux*oldld* | linux*aout* | linux*coff*) |
| 8392 | dynamic_linker=no |
| 8393 | ;; |
| 8394 | |
| 8395 | # This must be Linux ELF. |
| 8396 | linux*) |
| 8397 | version_type=linux |
| 8398 | need_lib_prefix=no |
| 8399 | need_version=no |
| 8400 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 8401 | soname_spec='${libname}${release}.so$major' |
| 8402 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 8403 | shlibpath_var=LD_LIBRARY_PATH |
| 8404 | shlibpath_overrides_runpath=no |
| 8405 | # This implies no fast_install, which is unacceptable. |
| 8406 | # Some rework will be needed to allow for fast_install |
| 8407 | # before this can be enabled. |
| 8408 | hardcode_into_libs=yes |
| 8409 | |
| 8410 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 8411 | # powerpc, because MkLinux only supported shared libraries with the |
| 8412 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 8413 | # most powerpc-linux boxes support dynamic linking these days and |
| 8414 | # people can always --disable-shared, the test was removed, and we |
| 8415 | # assume the GNU/Linux dynamic linker is in use. |
| 8416 | dynamic_linker='GNU/Linux ld.so' |
| 8417 | ;; |
| 8418 | |
| 8419 | netbsd*) |
| 8420 | version_type=sunos |
| 8421 | need_lib_prefix=no |
| 8422 | need_version=no |
| 8423 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 8424 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 8425 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 8426 | dynamic_linker='NetBSD (a.out) ld.so' |
| 8427 | else |
| 8428 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' |
| 8429 | soname_spec='${libname}${release}.so$major' |
| 8430 | dynamic_linker='NetBSD ld.elf_so' |
| 8431 | fi |
| 8432 | shlibpath_var=LD_LIBRARY_PATH |
| 8433 | shlibpath_overrides_runpath=yes |
| 8434 | hardcode_into_libs=yes |
| 8435 | ;; |
| 8436 | |
| 8437 | newsos6) |
| 8438 | version_type=linux |
| 8439 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 8440 | shlibpath_var=LD_LIBRARY_PATH |
| 8441 | shlibpath_overrides_runpath=yes |
| 8442 | ;; |
| 8443 | |
| 8444 | nto-qnx) |
| 8445 | version_type=linux |
| 8446 | need_lib_prefix=no |
| 8447 | need_version=no |
| 8448 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 8449 | soname_spec='${libname}${release}.so$major' |
| 8450 | shlibpath_var=LD_LIBRARY_PATH |
| 8451 | shlibpath_overrides_runpath=yes |
| 8452 | ;; |
| 8453 | |
| 8454 | openbsd*) |
| 8455 | version_type=sunos |
| 8456 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 8457 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 8458 | shlibpath_var=LD_LIBRARY_PATH |
| 8459 | file_magic_cmd=/usr/bin/file |
| 8460 | file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 8461 | if "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then |
| 8462 | deplibs_check_method='file_magic ELF 0-90-9*-bit LMSB shared object' |
| 8463 | else |
| 8464 | deplibs_check_method='file_magic OpenBSD.* shared library' |
| 8465 | fi |
| 8466 | ;; |
| 8467 | |
| 8468 | os2*) |
| 8469 | libname_spec='$name' |
| 8470 | need_lib_prefix=no |
| 8471 | library_names_spec='$libname.dll $libname.a' |
| 8472 | dynamic_linker='OS/2 ld.exe' |
| 8473 | shlibpath_var=LIBPATH |
| 8474 | ;; |
| 8475 | |
| 8476 | osf3* | osf4* | osf5*) |
| 8477 | version_type=osf |
| 8478 | need_version=no |
| 8479 | soname_spec='${libname}${release}.so' |
| 8480 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
| 8481 | shlibpath_var=LD_LIBRARY_PATH |
| 8482 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 8483 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 8484 | ;; |
| 8485 | |
| 8486 | sco3.2v5*) |
| 8487 | version_type=osf |
| 8488 | soname_spec='${libname}${release}.so$major' |
| 8489 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 8490 | shlibpath_var=LD_LIBRARY_PATH |
| 8491 | ;; |
| 8492 | |
| 8493 | solaris*) |
| 8494 | version_type=linux |
| 8495 | need_lib_prefix=no |
| 8496 | need_version=no |
| 8497 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 8498 | soname_spec='${libname}${release}.so$major' |
| 8499 | shlibpath_var=LD_LIBRARY_PATH |
| 8500 | shlibpath_overrides_runpath=yes |
| 8501 | hardcode_into_libs=yes |
| 8502 | # ldd complains unless libraries are executable |
| 8503 | postinstall_cmds='chmod +x $lib' |
| 8504 | ;; |
| 8505 | |
| 8506 | sunos4*) |
| 8507 | version_type=sunos |
| 8508 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 8509 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 8510 | shlibpath_var=LD_LIBRARY_PATH |
| 8511 | shlibpath_overrides_runpath=yes |
| 8512 | if test "$with_gnu_ld" = yes; then |
| 8513 | need_lib_prefix=no |
| 8514 | fi |
| 8515 | need_version=yes |
| 8516 | ;; |
| 8517 | |
| 8518 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 8519 | version_type=linux |
| 8520 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 8521 | soname_spec='${libname}${release}.so$major' |
| 8522 | shlibpath_var=LD_LIBRARY_PATH |
| 8523 | case $host_vendor in |
| 8524 | sni) |
| 8525 | shlibpath_overrides_runpath=no |
| 8526 | ;; |
| 8527 | motorola) |
| 8528 | need_lib_prefix=no |
| 8529 | need_version=no |
| 8530 | shlibpath_overrides_runpath=no |
| 8531 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 8532 | ;; |
| 8533 | esac |
| 8534 | ;; |
| 8535 | |
| 8536 | sysv4*MP*) |
| 8537 | if test -d /usr/nec ;then |
| 8538 | version_type=linux |
| 8539 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' |
| 8540 | soname_spec='$libname.so.$major' |
| 8541 | shlibpath_var=LD_LIBRARY_PATH |
| 8542 | fi |
| 8543 | ;; |
| 8544 | |
| 8545 | uts4*) |
| 8546 | version_type=linux |
| 8547 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 8548 | soname_spec='${libname}${release}.so$major' |
| 8549 | shlibpath_var=LD_LIBRARY_PATH |
| 8550 | ;; |
| 8551 | |
| 8552 | *) |
| 8553 | dynamic_linker=no |
| 8554 | ;; |
| 8555 | esac |
| 8556 | echo "$as_me:8556: result: $dynamic_linker" >&5 |
| 8557 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 8558 | test "$dynamic_linker" = no && can_build_shared=no |
| 8559 | |
| 8560 | if test "x$enable_dlopen" != xyes; then |
| 8561 | enable_dlopen=unknown |
| 8562 | enable_dlopen_self=unknown |
| 8563 | enable_dlopen_self_static=unknown |
| 8564 | else |
| 8565 | lt_cv_dlopen=no |
| 8566 | lt_cv_dlopen_libs= |
| 8567 | |
| 8568 | case $host_os in |
| 8569 | beos*) |
| 8570 | lt_cv_dlopen="load_add_on" |
| 8571 | lt_cv_dlopen_libs= |
| 8572 | lt_cv_dlopen_self=yes |
| 8573 | ;; |
| 8574 | |
| 8575 | cygwin* | mingw* | pw32*) |
| 8576 | lt_cv_dlopen="LoadLibrary" |
| 8577 | lt_cv_dlopen_libs= |
| 8578 | ;; |
| 8579 | |
| 8580 | *) |
| 8581 | echo "$as_me:8581: checking for shl_load" >&5 |
| 8582 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 8583 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 8584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8585 | else |
| 8586 | cat >conftest.$ac_ext <<_ACEOF |
| 8587 | #line 8587 "configure" |
| 8588 | #include "confdefs.h" |
| 8589 | /* System header to define __stub macros and hopefully few prototypes, |
| 8590 | which can conflict with char shl_load (); below. */ |
| 8591 | #include <assert.h> |
| 8592 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8593 | #ifdef __cplusplus |
| 8594 | extern "C" |
| 8595 | #endif |
| 8596 | /* We use char because int might match the return type of a gcc2 |
| 8597 | builtin and then its argument prototype would still apply. */ |
| 8598 | char shl_load (); |
| 8599 | char (*f) (); |
| 8600 | |
| 8601 | int |
| 8602 | main () |
| 8603 | { |
| 8604 | /* The GNU C library defines this for functions which it implements |
| 8605 | to always fail with ENOSYS. Some functions are actually named |
| 8606 | something starting with __ and the normal name is an alias. */ |
| 8607 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 8608 | choke me |
| 8609 | #else |
| 8610 | f = shl_load; |
| 8611 | #endif |
| 8612 | |
| 8613 | ; |
| 8614 | return 0; |
| 8615 | } |
| 8616 | _ACEOF |
| 8617 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8618 | if { (eval echo "$as_me:8618: \"$ac_link\"") >&5 |
| 8619 | (eval $ac_link) 2>&5 |
| 8620 | ac_status=$? |
| 8621 | echo "$as_me:8621: \$? = $ac_status" >&5 |
| 8622 | (exit $ac_status); } && |
| 8623 | { ac_try='test -s conftest$ac_exeext' |
| 8624 | { (eval echo "$as_me:8624: \"$ac_try\"") >&5 |
| 8625 | (eval $ac_try) 2>&5 |
| 8626 | ac_status=$? |
| 8627 | echo "$as_me:8627: \$? = $ac_status" >&5 |
| 8628 | (exit $ac_status); }; }; then |
| 8629 | ac_cv_func_shl_load=yes |
| 8630 | else |
| 8631 | echo "$as_me: failed program was:" >&5 |
| 8632 | cat conftest.$ac_ext >&5 |
| 8633 | ac_cv_func_shl_load=no |
| 8634 | fi |
| 8635 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8636 | fi |
| 8637 | echo "$as_me:8637: result: $ac_cv_func_shl_load" >&5 |
| 8638 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 8639 | if test $ac_cv_func_shl_load = yes; then |
| 8640 | lt_cv_dlopen="shl_load" |
| 8641 | else |
| 8642 | echo "$as_me:8642: checking for shl_load in -ldld" >&5 |
| 8643 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 8644 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 8645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8646 | else |
| 8647 | ac_check_lib_save_LIBS=$LIBS |
| 8648 | LIBS="-ldld $LIBS" |
| 8649 | cat >conftest.$ac_ext <<_ACEOF |
| 8650 | #line 8650 "configure" |
| 8651 | #include "confdefs.h" |
| 8652 | |
| 8653 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8654 | #ifdef __cplusplus |
| 8655 | extern "C" |
| 8656 | #endif |
| 8657 | /* We use char because int might match the return type of a gcc2 |
| 8658 | builtin and then its argument prototype would still apply. */ |
| 8659 | char shl_load (); |
| 8660 | int |
| 8661 | main () |
| 8662 | { |
| 8663 | shl_load (); |
| 8664 | ; |
| 8665 | return 0; |
| 8666 | } |
| 8667 | _ACEOF |
| 8668 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8669 | if { (eval echo "$as_me:8669: \"$ac_link\"") >&5 |
| 8670 | (eval $ac_link) 2>&5 |
| 8671 | ac_status=$? |
| 8672 | echo "$as_me:8672: \$? = $ac_status" >&5 |
| 8673 | (exit $ac_status); } && |
| 8674 | { ac_try='test -s conftest$ac_exeext' |
| 8675 | { (eval echo "$as_me:8675: \"$ac_try\"") >&5 |
| 8676 | (eval $ac_try) 2>&5 |
| 8677 | ac_status=$? |
| 8678 | echo "$as_me:8678: \$? = $ac_status" >&5 |
| 8679 | (exit $ac_status); }; }; then |
| 8680 | ac_cv_lib_dld_shl_load=yes |
| 8681 | else |
| 8682 | echo "$as_me: failed program was:" >&5 |
| 8683 | cat conftest.$ac_ext >&5 |
| 8684 | ac_cv_lib_dld_shl_load=no |
| 8685 | fi |
| 8686 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8687 | LIBS=$ac_check_lib_save_LIBS |
| 8688 | fi |
| 8689 | echo "$as_me:8689: result: $ac_cv_lib_dld_shl_load" >&5 |
| 8690 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 8691 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 8692 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 8693 | else |
| 8694 | echo "$as_me:8694: checking for dlopen in -ldl" >&5 |
| 8695 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 8696 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 8697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8698 | else |
| 8699 | ac_check_lib_save_LIBS=$LIBS |
| 8700 | LIBS="-ldl $LIBS" |
| 8701 | cat >conftest.$ac_ext <<_ACEOF |
| 8702 | #line 8702 "configure" |
| 8703 | #include "confdefs.h" |
| 8704 | |
| 8705 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8706 | #ifdef __cplusplus |
| 8707 | extern "C" |
| 8708 | #endif |
| 8709 | /* We use char because int might match the return type of a gcc2 |
| 8710 | builtin and then its argument prototype would still apply. */ |
| 8711 | char dlopen (); |
| 8712 | int |
| 8713 | main () |
| 8714 | { |
| 8715 | dlopen (); |
| 8716 | ; |
| 8717 | return 0; |
| 8718 | } |
| 8719 | _ACEOF |
| 8720 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8721 | if { (eval echo "$as_me:8721: \"$ac_link\"") >&5 |
| 8722 | (eval $ac_link) 2>&5 |
| 8723 | ac_status=$? |
| 8724 | echo "$as_me:8724: \$? = $ac_status" >&5 |
| 8725 | (exit $ac_status); } && |
| 8726 | { ac_try='test -s conftest$ac_exeext' |
| 8727 | { (eval echo "$as_me:8727: \"$ac_try\"") >&5 |
| 8728 | (eval $ac_try) 2>&5 |
| 8729 | ac_status=$? |
| 8730 | echo "$as_me:8730: \$? = $ac_status" >&5 |
| 8731 | (exit $ac_status); }; }; then |
| 8732 | ac_cv_lib_dl_dlopen=yes |
| 8733 | else |
| 8734 | echo "$as_me: failed program was:" >&5 |
| 8735 | cat conftest.$ac_ext >&5 |
| 8736 | ac_cv_lib_dl_dlopen=no |
| 8737 | fi |
| 8738 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8739 | LIBS=$ac_check_lib_save_LIBS |
| 8740 | fi |
| 8741 | echo "$as_me:8741: result: $ac_cv_lib_dl_dlopen" >&5 |
| 8742 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 8743 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 8744 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 8745 | else |
| 8746 | echo "$as_me:8746: checking for dlopen" >&5 |
| 8747 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 8748 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 8749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8750 | else |
| 8751 | cat >conftest.$ac_ext <<_ACEOF |
| 8752 | #line 8752 "configure" |
| 8753 | #include "confdefs.h" |
| 8754 | /* System header to define __stub macros and hopefully few prototypes, |
| 8755 | which can conflict with char dlopen (); below. */ |
| 8756 | #include <assert.h> |
| 8757 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8758 | #ifdef __cplusplus |
| 8759 | extern "C" |
| 8760 | #endif |
| 8761 | /* We use char because int might match the return type of a gcc2 |
| 8762 | builtin and then its argument prototype would still apply. */ |
| 8763 | char dlopen (); |
| 8764 | char (*f) (); |
| 8765 | |
| 8766 | int |
| 8767 | main () |
| 8768 | { |
| 8769 | /* The GNU C library defines this for functions which it implements |
| 8770 | to always fail with ENOSYS. Some functions are actually named |
| 8771 | something starting with __ and the normal name is an alias. */ |
| 8772 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 8773 | choke me |
| 8774 | #else |
| 8775 | f = dlopen; |
| 8776 | #endif |
| 8777 | |
| 8778 | ; |
| 8779 | return 0; |
| 8780 | } |
| 8781 | _ACEOF |
| 8782 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8783 | if { (eval echo "$as_me:8783: \"$ac_link\"") >&5 |
| 8784 | (eval $ac_link) 2>&5 |
| 8785 | ac_status=$? |
| 8786 | echo "$as_me:8786: \$? = $ac_status" >&5 |
| 8787 | (exit $ac_status); } && |
| 8788 | { ac_try='test -s conftest$ac_exeext' |
| 8789 | { (eval echo "$as_me:8789: \"$ac_try\"") >&5 |
| 8790 | (eval $ac_try) 2>&5 |
| 8791 | ac_status=$? |
| 8792 | echo "$as_me:8792: \$? = $ac_status" >&5 |
| 8793 | (exit $ac_status); }; }; then |
| 8794 | ac_cv_func_dlopen=yes |
| 8795 | else |
| 8796 | echo "$as_me: failed program was:" >&5 |
| 8797 | cat conftest.$ac_ext >&5 |
| 8798 | ac_cv_func_dlopen=no |
| 8799 | fi |
| 8800 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8801 | fi |
| 8802 | echo "$as_me:8802: result: $ac_cv_func_dlopen" >&5 |
| 8803 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 8804 | if test $ac_cv_func_dlopen = yes; then |
| 8805 | lt_cv_dlopen="dlopen" |
| 8806 | else |
| 8807 | echo "$as_me:8807: checking for dlopen in -lsvld" >&5 |
| 8808 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 8809 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 8810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8811 | else |
| 8812 | ac_check_lib_save_LIBS=$LIBS |
| 8813 | LIBS="-lsvld $LIBS" |
| 8814 | cat >conftest.$ac_ext <<_ACEOF |
| 8815 | #line 8815 "configure" |
| 8816 | #include "confdefs.h" |
| 8817 | |
| 8818 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8819 | #ifdef __cplusplus |
| 8820 | extern "C" |
| 8821 | #endif |
| 8822 | /* We use char because int might match the return type of a gcc2 |
| 8823 | builtin and then its argument prototype would still apply. */ |
| 8824 | char dlopen (); |
| 8825 | int |
| 8826 | main () |
| 8827 | { |
| 8828 | dlopen (); |
| 8829 | ; |
| 8830 | return 0; |
| 8831 | } |
| 8832 | _ACEOF |
| 8833 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8834 | if { (eval echo "$as_me:8834: \"$ac_link\"") >&5 |
| 8835 | (eval $ac_link) 2>&5 |
| 8836 | ac_status=$? |
| 8837 | echo "$as_me:8837: \$? = $ac_status" >&5 |
| 8838 | (exit $ac_status); } && |
| 8839 | { ac_try='test -s conftest$ac_exeext' |
| 8840 | { (eval echo "$as_me:8840: \"$ac_try\"") >&5 |
| 8841 | (eval $ac_try) 2>&5 |
| 8842 | ac_status=$? |
| 8843 | echo "$as_me:8843: \$? = $ac_status" >&5 |
| 8844 | (exit $ac_status); }; }; then |
| 8845 | ac_cv_lib_svld_dlopen=yes |
| 8846 | else |
| 8847 | echo "$as_me: failed program was:" >&5 |
| 8848 | cat conftest.$ac_ext >&5 |
| 8849 | ac_cv_lib_svld_dlopen=no |
| 8850 | fi |
| 8851 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8852 | LIBS=$ac_check_lib_save_LIBS |
| 8853 | fi |
| 8854 | echo "$as_me:8854: result: $ac_cv_lib_svld_dlopen" >&5 |
| 8855 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 8856 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 8857 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 8858 | fi |
| 8859 | |
| 8860 | fi |
| 8861 | |
| 8862 | fi |
| 8863 | |
| 8864 | fi |
| 8865 | |
| 8866 | fi |
| 8867 | |
| 8868 | ;; |
| 8869 | esac |
| 8870 | |
| 8871 | if test "x$lt_cv_dlopen" != xno; then |
| 8872 | enable_dlopen=yes |
| 8873 | else |
| 8874 | enable_dlopen=no |
| 8875 | fi |
| 8876 | |
| 8877 | case $lt_cv_dlopen in |
| 8878 | dlopen) |
| 8879 | save_CPPFLAGS="$CPPFLAGS" |
| 8880 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 8881 | |
| 8882 | save_LDFLAGS="$LDFLAGS" |
| 8883 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 8884 | |
| 8885 | save_LIBS="$LIBS" |
| 8886 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 8887 | |
| 8888 | echo "$as_me:8888: checking whether a program can dlopen itself" >&5 |
| 8889 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 8890 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 8891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8892 | else |
| 8893 | if test "$cross_compiling" = yes; then : |
| 8894 | lt_cv_dlopen_self=cross |
| 8895 | else |
| 8896 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 8897 | lt_status=$lt_dlunknown |
| 8898 | cat > conftest.$ac_ext <<EOF |
| 8899 | #line 8899 "configure" |
| 8900 | #include "confdefs.h" |
| 8901 | |
| 8902 | #if HAVE_DLFCN_H |
| 8903 | #include <dlfcn.h> |
| 8904 | #endif |
| 8905 | |
| 8906 | #include <stdio.h> |
| 8907 | |
| 8908 | #ifdef RTLD_GLOBAL |
| 8909 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 8910 | #else |
| 8911 | # ifdef DL_GLOBAL |
| 8912 | # define LT_DLGLOBAL DL_GLOBAL |
| 8913 | # else |
| 8914 | # define LT_DLGLOBAL 0 |
| 8915 | # endif |
| 8916 | #endif |
| 8917 | |
| 8918 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 8919 | find out it does not work in some platform. */ |
| 8920 | #ifndef LT_DLLAZY_OR_NOW |
| 8921 | # ifdef RTLD_LAZY |
| 8922 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 8923 | # else |
| 8924 | # ifdef DL_LAZY |
| 8925 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 8926 | # else |
| 8927 | # ifdef RTLD_NOW |
| 8928 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 8929 | # else |
| 8930 | # ifdef DL_NOW |
| 8931 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 8932 | # else |
| 8933 | # define LT_DLLAZY_OR_NOW 0 |
| 8934 | # endif |
| 8935 | # endif |
| 8936 | # endif |
| 8937 | # endif |
| 8938 | #endif |
| 8939 | |
| 8940 | #ifdef __cplusplus |
| 8941 | extern "C" void exit (int); |
| 8942 | #endif |
| 8943 | |
| 8944 | void fnord() { int i=42;} |
| 8945 | int main () |
| 8946 | { |
| 8947 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 8948 | int status = $lt_dlunknown; |
| 8949 | |
| 8950 | if (self) |
| 8951 | { |
| 8952 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 8953 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 8954 | /* dlclose (self); */ |
| 8955 | } |
| 8956 | |
| 8957 | exit (status); |
| 8958 | } |
| 8959 | EOF |
| 8960 | if { (eval echo "$as_me:8960: \"$ac_link\"") >&5 |
| 8961 | (eval $ac_link) 2>&5 |
| 8962 | ac_status=$? |
| 8963 | echo "$as_me:8963: \$? = $ac_status" >&5 |
| 8964 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 8965 | (./conftest; exit; ) 2>/dev/null |
| 8966 | lt_status=$? |
| 8967 | case x$lt_status in |
| 8968 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 8969 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 8970 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 8971 | esac |
| 8972 | else : |
| 8973 | # compilation failed |
| 8974 | lt_cv_dlopen_self=no |
| 8975 | fi |
| 8976 | fi |
| 8977 | rm -fr conftest* |
| 8978 | |
| 8979 | fi |
| 8980 | echo "$as_me:8980: result: $lt_cv_dlopen_self" >&5 |
| 8981 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 8982 | |
| 8983 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 8984 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 8985 | echo "$as_me:8985: checking whether a statically linked program can dlopen itself" >&5 |
| 8986 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 8987 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 8988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8989 | else |
| 8990 | if test "$cross_compiling" = yes; then : |
| 8991 | lt_cv_dlopen_self_static=cross |
| 8992 | else |
| 8993 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 8994 | lt_status=$lt_dlunknown |
| 8995 | cat > conftest.$ac_ext <<EOF |
| 8996 | #line 8996 "configure" |
| 8997 | #include "confdefs.h" |
| 8998 | |
| 8999 | #if HAVE_DLFCN_H |
| 9000 | #include <dlfcn.h> |
| 9001 | #endif |
| 9002 | |
| 9003 | #include <stdio.h> |
| 9004 | |
| 9005 | #ifdef RTLD_GLOBAL |
| 9006 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 9007 | #else |
| 9008 | # ifdef DL_GLOBAL |
| 9009 | # define LT_DLGLOBAL DL_GLOBAL |
| 9010 | # else |
| 9011 | # define LT_DLGLOBAL 0 |
| 9012 | # endif |
| 9013 | #endif |
| 9014 | |
| 9015 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 9016 | find out it does not work in some platform. */ |
| 9017 | #ifndef LT_DLLAZY_OR_NOW |
| 9018 | # ifdef RTLD_LAZY |
| 9019 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 9020 | # else |
| 9021 | # ifdef DL_LAZY |
| 9022 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 9023 | # else |
| 9024 | # ifdef RTLD_NOW |
| 9025 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 9026 | # else |
| 9027 | # ifdef DL_NOW |
| 9028 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 9029 | # else |
| 9030 | # define LT_DLLAZY_OR_NOW 0 |
| 9031 | # endif |
| 9032 | # endif |
| 9033 | # endif |
| 9034 | # endif |
| 9035 | #endif |
| 9036 | |
| 9037 | #ifdef __cplusplus |
| 9038 | extern "C" void exit (int); |
| 9039 | #endif |
| 9040 | |
| 9041 | void fnord() { int i=42;} |
| 9042 | int main () |
| 9043 | { |
| 9044 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 9045 | int status = $lt_dlunknown; |
| 9046 | |
| 9047 | if (self) |
| 9048 | { |
| 9049 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 9050 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 9051 | /* dlclose (self); */ |
| 9052 | } |
| 9053 | |
| 9054 | exit (status); |
| 9055 | } |
| 9056 | EOF |
| 9057 | if { (eval echo "$as_me:9057: \"$ac_link\"") >&5 |
| 9058 | (eval $ac_link) 2>&5 |
| 9059 | ac_status=$? |
| 9060 | echo "$as_me:9060: \$? = $ac_status" >&5 |
| 9061 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 9062 | (./conftest; exit; ) 2>/dev/null |
| 9063 | lt_status=$? |
| 9064 | case x$lt_status in |
| 9065 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 9066 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 9067 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 9068 | esac |
| 9069 | else : |
| 9070 | # compilation failed |
| 9071 | lt_cv_dlopen_self_static=no |
| 9072 | fi |
| 9073 | fi |
| 9074 | rm -fr conftest* |
| 9075 | |
| 9076 | fi |
| 9077 | echo "$as_me:9077: result: $lt_cv_dlopen_self_static" >&5 |
| 9078 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 9079 | fi |
| 9080 | |
| 9081 | CPPFLAGS="$save_CPPFLAGS" |
| 9082 | LDFLAGS="$save_LDFLAGS" |
| 9083 | LIBS="$save_LIBS" |
| 9084 | ;; |
| 9085 | esac |
| 9086 | |
| 9087 | case $lt_cv_dlopen_self in |
| 9088 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 9089 | *) enable_dlopen_self=unknown ;; |
| 9090 | esac |
| 9091 | |
| 9092 | case $lt_cv_dlopen_self_static in |
| 9093 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 9094 | *) enable_dlopen_self_static=unknown ;; |
| 9095 | esac |
| 9096 | fi |
| 9097 | |
| 9098 | # The else clause should only fire when bootstrapping the |
| 9099 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 9100 | # with your package, and you will get complaints that there are |
| 9101 | # no rules to generate ltmain.sh. |
| 9102 | if test -f "$ltmain"; then |
| 9103 | # Now quote all the things that may contain metacharacters while being |
| 9104 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 9105 | # variables and quote the copies for generation of the libtool script. |
| 9106 | for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S NM SHELL \ |
| 9107 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 9108 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 9109 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 9110 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 9111 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 9112 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 9113 | old_postinstall_cmds old_postuninstall_cmds \ |
| 9114 | compiler_CXX \ |
| 9115 | CC_CXX \ |
| 9116 | LD_CXX \ |
| 9117 | lt_prog_compiler_wl_CXX \ |
| 9118 | lt_prog_compiler_pic_CXX \ |
| 9119 | lt_prog_compiler_static_CXX \ |
| 9120 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 9121 | export_dynamic_flag_spec_CXX \ |
| 9122 | thread_safe_flag_spec_CXX \ |
| 9123 | whole_archive_flag_spec_CXX \ |
| 9124 | old_archive_cmds_CXX \ |
| 9125 | old_archive_from_new_cmds_CXX \ |
| 9126 | predep_objects_CXX \ |
| 9127 | postdep_objects_CXX \ |
| 9128 | predeps_CXX \ |
| 9129 | postdeps_CXX \ |
| 9130 | compiler_lib_search_path_CXX \ |
| 9131 | archive_cmds_CXX \ |
| 9132 | archive_expsym_cmds_CXX \ |
| 9133 | postinstall_cmds_CXX \ |
| 9134 | postuninstall_cmds_CXX \ |
| 9135 | old_archive_from_expsyms_cmds_CXX \ |
| 9136 | allow_undefined_flag_CXX \ |
| 9137 | no_undefined_flag_CXX \ |
| 9138 | export_symbols_cmds_CXX \ |
| 9139 | hardcode_libdir_flag_spec_CXX \ |
| 9140 | hardcode_libdir_separator_CXX \ |
| 9141 | lt_cv_prog_compiler_c_o_CXX \ |
| 9142 | exclude_expsyms_CXX \ |
| 9143 | include_expsyms_CXX; do |
| 9144 | |
| 9145 | case $var in |
| 9146 | old_archive_cmds_CXX | \ |
| 9147 | old_archive_from_new_cmds_CXX | \ |
| 9148 | archive_cmds_CXX | \ |
| 9149 | archive_expsym_cmds_CXX | \ |
| 9150 | old_archive_from_expsyms_cmds_CXX | \ |
| 9151 | export_symbols_cmds_CXX | \ |
| 9152 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 9153 | postinstall_cmds | postuninstall_cmds | \ |
| 9154 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 9155 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 9156 | # Double-quote double-evaled strings. |
| 9157 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 9158 | ;; |
| 9159 | *) |
| 9160 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 9161 | ;; |
| 9162 | esac |
| 9163 | done |
| 9164 | |
| 9165 | case $lt_echo in |
| 9166 | *'\$0 --fallback-echo"') |
| 9167 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 9168 | ;; |
| 9169 | esac |
| 9170 | |
| 9171 | cfgfile="$ofile" |
| 9172 | |
| 9173 | cat <<__EOF__ >> "$cfgfile" |
| 9174 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 9175 | |
| 9176 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 9177 | |
| 9178 | # Shell to use when invoking shell scripts. |
| 9179 | SHELL=$lt_SHELL |
| 9180 | |
| 9181 | # Whether or not to build shared libraries. |
| 9182 | build_libtool_libs=$enable_shared |
| 9183 | |
| 9184 | # Whether or not to build static libraries. |
| 9185 | build_old_libs=$enable_static |
| 9186 | |
| 9187 | # Whether or not to add -lc for building shared libraries. |
| 9188 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 9189 | |
| 9190 | # Whether or not to optimize for fast installation. |
| 9191 | fast_install=$enable_fast_install |
| 9192 | |
| 9193 | # The host system. |
| 9194 | host_alias=$host_alias |
| 9195 | host=$host |
| 9196 | |
| 9197 | # An echo program that does not interpret backslashes. |
| 9198 | echo=$lt_echo |
| 9199 | |
| 9200 | # The archiver. |
| 9201 | AR=$lt_AR |
| 9202 | AR_FLAGS=$lt_AR_FLAGS |
| 9203 | |
| 9204 | # A C compiler. |
| 9205 | LTCC=$LTCC |
| 9206 | |
| 9207 | # A language-specific compiler. |
| 9208 | CC=$lt_compiler_CXX |
| 9209 | |
| 9210 | # Is the compiler the GNU C compiler? |
| 9211 | with_gcc=$GCC_CXX |
| 9212 | |
| 9213 | # The linker used to build libraries. |
| 9214 | LD=$lt_LD_CXX |
| 9215 | |
| 9216 | # Whether we need hard or soft links. |
| 9217 | LN_S=$lt_LN_S |
| 9218 | |
| 9219 | # A BSD-compatible nm program. |
| 9220 | NM=$lt_NM |
| 9221 | |
| 9222 | # A symbol stripping program |
| 9223 | STRIP=$STRIP |
| 9224 | |
| 9225 | # Used to examine libraries when file_magic_cmd begins "file" |
| 9226 | MAGIC_CMD=$MAGIC_CMD |
| 9227 | |
| 9228 | # Used on cygwin: DLL creation program. |
| 9229 | DLLTOOL="$DLLTOOL" |
| 9230 | |
| 9231 | # Used on cygwin: object dumper. |
| 9232 | OBJDUMP="$OBJDUMP" |
| 9233 | |
| 9234 | # Used on cygwin: assembler. |
| 9235 | AS="$AS" |
| 9236 | |
| 9237 | # The name of the directory that contains temporary libtool files. |
| 9238 | objdir=$objdir |
| 9239 | |
| 9240 | # How to create reloadable object files. |
| 9241 | reload_flag=$lt_reload_flag |
| 9242 | reload_cmds=$lt_reload_cmds |
| 9243 | |
| 9244 | # How to pass a linker flag through the compiler. |
| 9245 | wl=$lt_lt_prog_compiler_wl_CXX |
| 9246 | |
| 9247 | # Object file suffix (normally "o"). |
| 9248 | objext="$ac_objext" |
| 9249 | |
| 9250 | # Old archive suffix (normally "a"). |
| 9251 | libext="$libext" |
| 9252 | |
| 9253 | # Executable file suffix (normally ""). |
| 9254 | exeext="$exeext" |
| 9255 | |
| 9256 | # Additional compiler flags for building library objects. |
| 9257 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 9258 | pic_mode=$pic_mode |
| 9259 | |
| 9260 | # What is the maximum length of a command? |
| 9261 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 9262 | |
| 9263 | # Does compiler simultaneously support -c and -o options? |
| 9264 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 9265 | |
| 9266 | # Must we lock files when doing compilation ? |
| 9267 | need_locks=$lt_need_locks |
| 9268 | |
| 9269 | # Do we need the lib prefix for modules? |
| 9270 | need_lib_prefix=$need_lib_prefix |
| 9271 | |
| 9272 | # Do we need a version for libraries? |
| 9273 | need_version=$need_version |
| 9274 | |
| 9275 | # Whether dlopen is supported. |
| 9276 | dlopen_support=$enable_dlopen |
| 9277 | |
| 9278 | # Whether dlopen of programs is supported. |
| 9279 | dlopen_self=$enable_dlopen_self |
| 9280 | |
| 9281 | # Whether dlopen of statically linked programs is supported. |
| 9282 | dlopen_self_static=$enable_dlopen_self_static |
| 9283 | |
| 9284 | # Compiler flag to prevent dynamic linking. |
| 9285 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 9286 | |
| 9287 | # Compiler flag to turn off builtin functions. |
| 9288 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 9289 | |
| 9290 | # Compiler flag to allow reflexive dlopens. |
| 9291 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 9292 | |
| 9293 | # Compiler flag to generate shared objects directly from archives. |
| 9294 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 9295 | |
| 9296 | # Compiler flag to generate thread-safe objects. |
| 9297 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 9298 | |
| 9299 | # Library versioning type. |
| 9300 | version_type=$version_type |
| 9301 | |
| 9302 | # Format of library name prefix. |
| 9303 | libname_spec=$lt_libname_spec |
| 9304 | |
| 9305 | # List of archive names. First name is the real one, the rest are links. |
| 9306 | # The last name is the one that the linker finds with -lNAME. |
| 9307 | library_names_spec=$lt_library_names_spec |
| 9308 | |
| 9309 | # The coded name of the library, if different from the real name. |
| 9310 | soname_spec=$lt_soname_spec |
| 9311 | |
| 9312 | # Commands used to build and install an old-style archive. |
| 9313 | RANLIB=$lt_RANLIB |
| 9314 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 9315 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 9316 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 9317 | |
| 9318 | # Create an old-style archive from a shared archive. |
| 9319 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 9320 | |
| 9321 | # Create a temporary old-style archive to link instead of a shared archive. |
| 9322 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 9323 | |
| 9324 | # Commands used to build and install a shared archive. |
| 9325 | archive_cmds=$lt_archive_cmds_CXX |
| 9326 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 9327 | postinstall_cmds=$lt_postinstall_cmds |
| 9328 | postuninstall_cmds=$lt_postuninstall_cmds |
| 9329 | |
| 9330 | # Commands to strip libraries. |
| 9331 | old_striplib=$lt_old_striplib |
| 9332 | striplib=$lt_striplib |
| 9333 | |
| 9334 | # Dependencies to place before the objects being linked to create a |
| 9335 | # shared library. |
| 9336 | predep_objects=$lt_predep_objects_CXX |
| 9337 | |
| 9338 | # Dependencies to place after the objects being linked to create a |
| 9339 | # shared library. |
| 9340 | postdep_objects=$lt_postdep_objects_CXX |
| 9341 | |
| 9342 | # Dependencies to place before the objects being linked to create a |
| 9343 | # shared library. |
| 9344 | predeps=$lt_predeps_CXX |
| 9345 | |
| 9346 | # Dependencies to place after the objects being linked to create a |
| 9347 | # shared library. |
| 9348 | postdeps=$lt_postdeps_CXX |
| 9349 | |
| 9350 | # The library search path used internally by the compiler when linking |
| 9351 | # a shared library. |
| 9352 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 9353 | |
| 9354 | # Method to check whether dependent libraries are shared objects. |
| 9355 | deplibs_check_method=$lt_deplibs_check_method |
| 9356 | |
| 9357 | # Command to use when deplibs_check_method == file_magic. |
| 9358 | file_magic_cmd=$lt_file_magic_cmd |
| 9359 | |
| 9360 | # Flag that allows shared libraries with undefined symbols to be built. |
| 9361 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 9362 | |
| 9363 | # Flag that forces no undefined symbols. |
| 9364 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 9365 | |
| 9366 | # Commands used to finish a libtool library installation in a directory. |
| 9367 | finish_cmds=$lt_finish_cmds |
| 9368 | |
| 9369 | # Same as above, but a single script fragment to be evaled but not shown. |
| 9370 | finish_eval=$lt_finish_eval |
| 9371 | |
| 9372 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 9373 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 9374 | |
| 9375 | # Transform the output of nm in a proper C declaration |
| 9376 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 9377 | |
| 9378 | # Transform the output of nm in a C name address pair |
| 9379 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 9380 | |
| 9381 | # This is the shared library runtime path variable. |
| 9382 | runpath_var=$runpath_var |
| 9383 | |
| 9384 | # This is the shared library path variable. |
| 9385 | shlibpath_var=$shlibpath_var |
| 9386 | |
| 9387 | # Is shlibpath searched before the hard-coded library search path? |
| 9388 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 9389 | |
| 9390 | # How to hardcode a shared library path into an executable. |
| 9391 | hardcode_action=$hardcode_action_CXX |
| 9392 | |
| 9393 | # Whether we should hardcode library paths into libraries. |
| 9394 | hardcode_into_libs=$hardcode_into_libs |
| 9395 | |
| 9396 | # Flag to hardcode \$libdir into a binary during linking. |
| 9397 | # This must work even if \$libdir does not exist. |
| 9398 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 9399 | |
| 9400 | # Whether we need a single -rpath flag with a separated argument. |
| 9401 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 9402 | |
| 9403 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the |
| 9404 | # resulting binary. |
| 9405 | hardcode_direct=$hardcode_direct_CXX |
| 9406 | |
| 9407 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 9408 | # resulting binary. |
| 9409 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 9410 | |
| 9411 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 9412 | # the resulting binary. |
| 9413 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 9414 | |
| 9415 | # Variables whose values should be saved in libtool wrapper scripts and |
| 9416 | # restored at relink time. |
| 9417 | variables_saved_for_relink="$variables_saved_for_relink" |
| 9418 | |
| 9419 | # Whether libtool must link a program against all its dependency libraries. |
| 9420 | link_all_deplibs=$link_all_deplibs_CXX |
| 9421 | |
| 9422 | # Compile-time system search path for libraries |
| 9423 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 9424 | |
| 9425 | # Run-time system search path for libraries |
| 9426 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 9427 | |
| 9428 | # Fix the shell variable \$srcfile for the compiler. |
| 9429 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 9430 | |
| 9431 | # Set to yes if exported symbols are required. |
| 9432 | always_export_symbols=$always_export_symbols_CXX |
| 9433 | |
| 9434 | # The commands to list exported symbols. |
| 9435 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 9436 | |
| 9437 | # The commands to extract the exported symbol list from a shared archive. |
| 9438 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 9439 | |
| 9440 | # Symbols that should not be listed in the preloaded symbols. |
| 9441 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 9442 | |
| 9443 | # Symbols that must always be exported. |
| 9444 | include_expsyms=$lt_include_expsyms_CXX |
| 9445 | |
| 9446 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 9447 | |
| 9448 | __EOF__ |
| 9449 | |
| 9450 | else |
| 9451 | # If there is no Makefile yet, we rely on a make rule to execute |
| 9452 | # `config.status --recheck' to rerun these tests and create the |
| 9453 | # libtool script then. |
| 9454 | test -f Makefile && make "$ltmain" |
| 9455 | fi |
| 9456 | |
| 9457 | ac_ext=c |
| 9458 | ac_cpp='$CPP $CPPFLAGS' |
| 9459 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9460 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9461 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9462 | |
| 9463 | CC="$lt_save_CC" |
| 9464 | |
| 9465 | ;; |
| 9466 | |
| 9467 | GCJ) |
| 9468 | |
| 9469 | # Source file extension for C test sources. |
| 9470 | ac_ext=java |
| 9471 | |
| 9472 | # Object file extension for compiled C test sources. |
| 9473 | objext=o |
| 9474 | objext_GCJ=$objext |
| 9475 | |
| 9476 | # Code to be used in simple compile tests |
| 9477 | lt_simple_compile_test_code="class foo {}" |
| 9478 | |
| 9479 | # Code to be used in simple link tests |
| 9480 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }' |
| 9481 | |
| 9482 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 9483 | |
| 9484 | # If no C compiler was specified, use CC. |
| 9485 | LTCC=${LTCC-"$CC"} |
| 9486 | |
| 9487 | # Allow CC to be a program name with arguments. |
| 9488 | set dummy $CC |
| 9489 | compiler="$2" |
| 9490 | |
| 9491 | # Allow CC to be a program name with arguments. |
| 9492 | lt_save_CC="$CC" |
| 9493 | CC=${GCJ-"gcj"} |
| 9494 | set dummy $CC |
| 9495 | compiler="$2" |
| 9496 | compiler_GCJ=$CC |
| 9497 | |
| 9498 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 9499 | archive_cmds_need_lc_GCJ=no |
| 9500 | |
| 9501 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 9502 | |
| 9503 | if test "$GCC" = yes; then |
| 9504 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 9505 | |
| 9506 | echo "$as_me:9506: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 9507 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 9508 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 9509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9510 | else |
| 9511 | lt_cv_prog_compiler_rtti_exceptions=no |
| 9512 | ac_outfile=conftest.$ac_objext |
| 9513 | save_CFLAGS="$CFLAGS" |
| 9514 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" |
| 9515 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 9516 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then |
| 9517 | # The compiler can only warn and ignore the option if not recognized |
| 9518 | # So say no if there are warnings |
| 9519 | if test -s conftest.err; then |
| 9520 | # Append any errors to the config.log. |
| 9521 | cat conftest.err 1>&5 |
| 9522 | else |
| 9523 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 9524 | fi |
| 9525 | fi |
| 9526 | $rm conftest* |
| 9527 | CFLAGS="$save_CFLAGS" |
| 9528 | |
| 9529 | fi |
| 9530 | echo "$as_me:9530: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 9531 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 9532 | |
| 9533 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 9534 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 9535 | else |
| 9536 | : |
| 9537 | fi |
| 9538 | |
| 9539 | fi |
| 9540 | |
| 9541 | lt_prog_compiler_wl_GCJ= |
| 9542 | lt_prog_compiler_pic_GCJ= |
| 9543 | lt_prog_compiler_static_GCJ= |
| 9544 | |
| 9545 | echo "$as_me:9545: checking for $compiler option to produce PIC" >&5 |
| 9546 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 9547 | if test "$GCC" = yes; then |
| 9548 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 9549 | lt_prog_compiler_static_GCJ='-static' |
| 9550 | |
| 9551 | case $host_os in |
| 9552 | aix*) |
| 9553 | # All AIX code is PIC. |
| 9554 | if test "$host_cpu" = ia64; then |
| 9555 | # AIX 5 now supports IA64 processor |
| 9556 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 9557 | fi |
| 9558 | ;; |
| 9559 | |
| 9560 | amigaos*) |
| 9561 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 9562 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 9563 | # like `-m68040'. |
| 9564 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 9565 | ;; |
| 9566 | |
| 9567 | beos* | irix5* | irix6* | osf3* | osf4* | osf5*) |
| 9568 | # PIC is the default for these OSes. |
| 9569 | ;; |
| 9570 | |
| 9571 | cygwin* | mingw* | pw32* | os2*) |
| 9572 | # This hack is so that the source file can tell whether it is being |
| 9573 | # built for inclusion in a dll (and should export symbols for example). |
| 9574 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 9575 | ;; |
| 9576 | |
| 9577 | darwin* | rhapsody*) |
| 9578 | # PIC is the default on this platform |
| 9579 | # Common symbols not allowed in MH_DYLIB files |
| 9580 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 9581 | ;; |
| 9582 | |
| 9583 | msdosdjgpp*) |
| 9584 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 9585 | # on systems that don't support them. |
| 9586 | lt_prog_compiler_can_build_shared_GCJ=no |
| 9587 | enable_shared=no |
| 9588 | ;; |
| 9589 | |
| 9590 | sysv4*MP*) |
| 9591 | if test -d /usr/nec; then |
| 9592 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 9593 | fi |
| 9594 | ;; |
| 9595 | |
| 9596 | hpux*) |
| 9597 | # PIC is the default for IA64 HP-UX, but not for PA HP-UX. |
| 9598 | if test "$host_cpu" != ia64; then |
| 9599 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 9600 | fi |
| 9601 | ;; |
| 9602 | |
| 9603 | *) |
| 9604 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 9605 | ;; |
| 9606 | esac |
| 9607 | else |
| 9608 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 9609 | case $host_os in |
| 9610 | aix*) |
| 9611 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 9612 | if test "$host_cpu" = ia64; then |
| 9613 | # AIX 5 now supports IA64 processor |
| 9614 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 9615 | else |
| 9616 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 9617 | fi |
| 9618 | ;; |
| 9619 | |
| 9620 | cygwin* | mingw* | pw32* | os2*) |
| 9621 | # This hack is so that the source file can tell whether it is being |
| 9622 | # built for inclusion in a dll (and should export symbols for example). |
| 9623 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 9624 | ;; |
| 9625 | |
| 9626 | hpux9* | hpux10* | hpux11*) |
| 9627 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 9628 | if test "$host_cpu" != ia64; then |
| 9629 | lt_prog_compiler_pic_GCJ='+Z' |
| 9630 | fi |
| 9631 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 9632 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 9633 | ;; |
| 9634 | |
| 9635 | irix5* | irix6*) |
| 9636 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 9637 | # PIC (with -KPIC) is the default. |
| 9638 | lt_prog_compiler_static_GCJ='-non_shared' |
| 9639 | ;; |
| 9640 | |
| 9641 | newsos6) |
| 9642 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 9643 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 9644 | ;; |
| 9645 | |
| 9646 | osf3* | osf4* | osf5*) |
| 9647 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 9648 | # All OSF/1 code is PIC. |
| 9649 | lt_prog_compiler_static_GCJ='-non_shared' |
| 9650 | ;; |
| 9651 | |
| 9652 | sco3.2v5*) |
| 9653 | lt_prog_compiler_pic_GCJ='-Kpic' |
| 9654 | lt_prog_compiler_static_GCJ='-dn' |
| 9655 | ;; |
| 9656 | |
| 9657 | solaris*) |
| 9658 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 9659 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 9660 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 9661 | ;; |
| 9662 | |
| 9663 | sunos4*) |
| 9664 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 9665 | lt_prog_compiler_pic_GCJ='-PIC' |
| 9666 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 9667 | ;; |
| 9668 | |
| 9669 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 9670 | if test "x$host_vendor" = xsni; then |
| 9671 | lt_prog_compiler_wl_GCJ='-LD' |
| 9672 | else |
| 9673 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 9674 | fi |
| 9675 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 9676 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 9677 | ;; |
| 9678 | |
| 9679 | sysv4*MP*) |
| 9680 | if test -d /usr/nec ;then |
| 9681 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 9682 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 9683 | fi |
| 9684 | ;; |
| 9685 | |
| 9686 | uts4*) |
| 9687 | lt_prog_compiler_pic_GCJ='-pic' |
| 9688 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 9689 | ;; |
| 9690 | |
| 9691 | *) |
| 9692 | lt_prog_compiler_can_build_shared_GCJ=no |
| 9693 | ;; |
| 9694 | esac |
| 9695 | fi |
| 9696 | |
| 9697 | echo "$as_me:9697: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 9698 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
| 9699 | |
| 9700 | # |
| 9701 | # Check to make sure the PIC flag actually works. |
| 9702 | # |
| 9703 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
| 9704 | echo "$as_me:9704: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 9705 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
| 9706 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 9707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9708 | else |
| 9709 | lt_prog_compiler_pic_works_GCJ=no |
| 9710 | ac_outfile=conftest.$ac_objext |
| 9711 | save_CFLAGS="$CFLAGS" |
| 9712 | CFLAGS="$CFLAGS $lt_prog_compiler_pic_GCJ -DPIC" |
| 9713 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 9714 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then |
| 9715 | # The compiler can only warn and ignore the option if not recognized |
| 9716 | # So say no if there are warnings |
| 9717 | if test -s conftest.err; then |
| 9718 | # Append any errors to the config.log. |
| 9719 | cat conftest.err 1>&5 |
| 9720 | else |
| 9721 | lt_prog_compiler_pic_works_GCJ=yes |
| 9722 | fi |
| 9723 | fi |
| 9724 | $rm conftest* |
| 9725 | CFLAGS="$save_CFLAGS" |
| 9726 | |
| 9727 | fi |
| 9728 | echo "$as_me:9728: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 9729 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
| 9730 | |
| 9731 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 9732 | case $lt_prog_compiler_pic_GCJ in |
| 9733 | "" | " "*) ;; |
| 9734 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 9735 | esac |
| 9736 | else |
| 9737 | lt_prog_compiler_pic_GCJ= |
| 9738 | lt_prog_compiler_can_build_shared_GCJ=no |
| 9739 | fi |
| 9740 | |
| 9741 | fi |
| 9742 | case "$host_os" in |
| 9743 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 9744 | *djgpp*) |
| 9745 | lt_prog_compiler_pic_GCJ= |
| 9746 | ;; |
| 9747 | *) |
| 9748 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ -DPIC" |
| 9749 | ;; |
| 9750 | esac |
| 9751 | |
| 9752 | echo "$as_me:9752: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 9753 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 9754 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 9755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9756 | else |
| 9757 | lt_cv_prog_compiler_c_o_GCJ=no |
| 9758 | $rm -r conftest 2>/dev/null |
| 9759 | mkdir conftest |
| 9760 | cd conftest |
| 9761 | mkdir out |
| 9762 | save_GCJFLAGS="$GCJFLAGS" |
| 9763 | GCJFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext" |
| 9764 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 9765 | |
| 9766 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 9767 | # that will create temporary files in the current directory regardless of |
| 9768 | # the output directory. Thus, making CWD read-only will cause this test |
| 9769 | # to fail, enabling locking or at least warning the user not to do parallel |
| 9770 | # builds. |
| 9771 | chmod -w . |
| 9772 | |
| 9773 | if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext |
| 9774 | then |
| 9775 | # The compiler can only warn and ignore the option if not recognized |
| 9776 | # So say no if there are warnings |
| 9777 | if test -s out/conftest.err; then |
| 9778 | # Append any errors to the config.log. |
| 9779 | cat out/conftest.err 1>&5 |
| 9780 | else |
| 9781 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 9782 | fi |
| 9783 | fi |
| 9784 | GCJFLAGS="$save_GCJFLAGS" |
| 9785 | chmod u+w . |
| 9786 | $rm conftest* out/* |
| 9787 | rmdir out |
| 9788 | cd .. |
| 9789 | rmdir conftest |
| 9790 | $rm conftest* |
| 9791 | |
| 9792 | fi |
| 9793 | echo "$as_me:9793: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 9794 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
| 9795 | |
| 9796 | hard_links="nottested" |
| 9797 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 9798 | # do not overwrite the value of need_locks provided by the user |
| 9799 | echo "$as_me:9799: checking if we can lock with hard links" >&5 |
| 9800 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 9801 | hard_links=yes |
| 9802 | $rm conftest* |
| 9803 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 9804 | touch conftest.a |
| 9805 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 9806 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 9807 | echo "$as_me:9807: result: $hard_links" >&5 |
| 9808 | echo "${ECHO_T}$hard_links" >&6 |
| 9809 | if test "$hard_links" = no; then |
| 9810 | { echo "$as_me:9810: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 9811 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 9812 | need_locks=warn |
| 9813 | fi |
| 9814 | else |
| 9815 | need_locks=no |
| 9816 | fi |
| 9817 | |
| 9818 | echo "$as_me:9818: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 9819 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 9820 | |
| 9821 | runpath_var= |
| 9822 | allow_undefined_flag_GCJ= |
| 9823 | |
| 9824 | archive_cmds_GCJ= |
| 9825 | archive_cmds_need_lc_GCJ= |
| 9826 | archive_expsym_cmds_GCJ= |
| 9827 | old_archive_From_new_cmds_GCJ= |
| 9828 | old_archive_from_expsyms_cmds_GCJ= |
| 9829 | export_dynamic_flag_spec_GCJ= |
| 9830 | whole_archive_flag_spec_GCJ= |
| 9831 | thread_safe_flag_spec_GCJ= |
| 9832 | hardcode_libdir_flag_spec_GCJ= |
| 9833 | hardcode_libdir_separator_GCJ= |
| 9834 | hardcode_direct_GCJ=no |
| 9835 | hardcode_minus_L_GCJ=no |
| 9836 | hardcode_shlibpath_var_GCJ=unsupported |
| 9837 | link_all_deplibs_GCJ=unknown |
| 9838 | always_export_symbols_GCJ=no |
| 9839 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 9840 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 9841 | # included in the symbol list |
| 9842 | include_expsyms_GCJ= |
| 9843 | # exclude_expsyms can be an egrep regular expression of symbols to exclude |
| 9844 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 9845 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 9846 | # as well as any symbol that contains `d'. |
| 9847 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 9848 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 9849 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 9850 | # the symbol is explicitly referenced. Since portable code cannot |
| 9851 | # rely on this symbol name, it's probably fine to never include it in |
| 9852 | # preloaded symbol tables. |
| 9853 | extract_expsyms_cmds= |
| 9854 | |
| 9855 | case $host_os in |
| 9856 | cygwin* | mingw* | pw32*) |
| 9857 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 9858 | # When not using gcc, we currently assume that we are using |
| 9859 | # Microsoft Visual C++. |
| 9860 | if test "$GCC" != yes; then |
| 9861 | with_gnu_ld=no |
| 9862 | fi |
| 9863 | ;; |
| 9864 | openbsd*) |
| 9865 | with_gnu_ld=no |
| 9866 | ;; |
| 9867 | esac |
| 9868 | |
| 9869 | ld_shlibs_GCJ=yes |
| 9870 | if test "$with_gnu_ld" = yes; then |
| 9871 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 9872 | wlarc='${wl}' |
| 9873 | |
| 9874 | # See if GNU ld supports shared libraries. |
| 9875 | case $host_os in |
| 9876 | aix3* | aix4* | aix5*) |
| 9877 | # On AIX/PPC, the GNU linker is very broken |
| 9878 | if test "$host_cpu" != ia64; then |
| 9879 | ld_shlibs_GCJ=no |
| 9880 | cat <<EOF 1>&2 |
| 9881 | |
| 9882 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 9883 | *** to be unable to reliably create shared libraries on AIX. |
| 9884 | *** Therefore, libtool is disabling shared libraries support. If you |
| 9885 | *** really care for shared libraries, you may want to modify your PATH |
| 9886 | *** so that a non-GNU linker is found, and then restart. |
| 9887 | |
| 9888 | EOF |
| 9889 | fi |
| 9890 | ;; |
| 9891 | |
| 9892 | amigaos*) |
| 9893 | 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)' |
| 9894 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 9895 | hardcode_minus_L_GCJ=yes |
| 9896 | |
| 9897 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 9898 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 9899 | # to version 4, is to share data among multiple programs linked |
| 9900 | # with the same dynamic library. Since this doesn't match the |
| 9901 | # behavior of shared libraries on other platforms, we can't use |
| 9902 | # them. |
| 9903 | ld_shlibs_GCJ=no |
| 9904 | ;; |
| 9905 | |
| 9906 | beos*) |
| 9907 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 9908 | allow_undefined_flag_GCJ=unsupported |
| 9909 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 9910 | # support --undefined. This deserves some investigation. FIXME |
| 9911 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9912 | else |
| 9913 | ld_shlibs_GCJ=no |
| 9914 | fi |
| 9915 | ;; |
| 9916 | |
| 9917 | cygwin* | mingw* | pw32*) |
| 9918 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, as there is |
| 9919 | # no search path for DLLs. |
| 9920 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 9921 | allow_undefined_flag_GCJ=unsupported |
| 9922 | always_export_symbols_GCJ=yes |
| 9923 | |
| 9924 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ |
| 9925 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ |
| 9926 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ |
| 9927 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ |
| 9928 | else $CC -o impgen impgen.c ; fi)~ |
| 9929 | $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' |
| 9930 | |
| 9931 | old_archive_from_expsyms_cmds_GCJ='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' |
| 9932 | |
| 9933 | # cygwin and mingw dlls have different entry points and sets of symbols |
| 9934 | # to exclude. |
| 9935 | # FIXME: what about values for MSVC? |
| 9936 | dll_entry=__cygwin_dll_entry@12 |
| 9937 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ |
| 9938 | case $host_os in |
| 9939 | mingw*) |
| 9940 | # mingw values |
| 9941 | dll_entry=_DllMainCRTStartup@12 |
| 9942 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ |
| 9943 | ;; |
| 9944 | esac |
| 9945 | |
| 9946 | # mingw and cygwin differ, and it's simplest to just exclude the union |
| 9947 | # of the two symbol sets. |
| 9948 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 |
| 9949 | |
| 9950 | # recent cygwin and mingw systems supply a stub DllMain which the user |
| 9951 | # can override, but on older systems we have to supply one (in ltdll.c) |
| 9952 | if test "x$lt_cv_need_dllmain" = "xyes"; then |
| 9953 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
| 9954 | ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ |
| 9955 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
| 9956 | else |
| 9957 | ltdll_obj= |
| 9958 | ltdll_cmds= |
| 9959 | fi |
| 9960 | |
| 9961 | # Extract the symbol export list from an `--export-all' def file, |
| 9962 | # then regenerate the def file from the symbol export list, so that |
| 9963 | # the compiled dll only exports the symbol export list. |
| 9964 | # Be careful not to strip the DATA tag left by newer dlltools. |
| 9965 | export_symbols_cmds_GCJ="$ltdll_cmds"' |
| 9966 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
| 9967 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' |
| 9968 | |
| 9969 | # If the export-symbols file already is a .def file (1st line |
| 9970 | # is EXPORTS), use it as is. |
| 9971 | # If DATA tags from a recent dlltool are present, honour them! |
| 9972 | archive_expsym_cmds_GCJ='if test "x`head -1 $export_symbols`" = xEXPORTS; then |
| 9973 | cp $export_symbols $output_objdir/$soname-def; |
| 9974 | else |
| 9975 | echo EXPORTS > $output_objdir/$soname-def; |
| 9976 | _lt_hint=1; |
| 9977 | cat $export_symbols | while read symbol; do |
| 9978 | set dummy \$symbol; |
| 9979 | case \$# in |
| 9980 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
| 9981 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; |
| 9982 | esac; |
| 9983 | _lt_hint=`expr 1 + \$_lt_hint`; |
| 9984 | done; |
| 9985 | fi~ |
| 9986 | '"$ltdll_cmds"' |
| 9987 | $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
| 9988 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ |
| 9989 | $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
| 9990 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ |
| 9991 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' |
| 9992 | ;; |
| 9993 | |
| 9994 | darwin* | rhapsody*) |
| 9995 | allow_undefined_flag_GCJ='-undefined suppress' |
| 9996 | # FIXME: Relying on posixy $() will cause problems for |
| 9997 | # cross-compilation, but unfortunately the echo tests do not |
| 9998 | # yet detect zsh echo's removal of \ escapes. |
| 9999 | archive_cmds_GCJ='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)' |
| 10000 | # We need to add '_' to the symbols in $export_symbols first |
| 10001 | #_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols' |
| 10002 | hardcode_direct_GCJ=yes |
| 10003 | hardcode_shlibpath_var_GCJ=no |
| 10004 | whole_archive_flag_spec_GCJ='-all_load $convenience' |
| 10005 | ;; |
| 10006 | |
| 10007 | netbsd*) |
| 10008 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 10009 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 10010 | wlarc= |
| 10011 | else |
| 10012 | archive_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10013 | archive_expsym_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 10014 | fi |
| 10015 | ;; |
| 10016 | |
| 10017 | solaris* | sysv5*) |
| 10018 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
| 10019 | ld_shlibs_GCJ=no |
| 10020 | cat <<EOF 1>&2 |
| 10021 | |
| 10022 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 10023 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 10024 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 10025 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 10026 | *** your PATH or compiler configuration so that the native linker is |
| 10027 | *** used, and then restart. |
| 10028 | |
| 10029 | EOF |
| 10030 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 10031 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10032 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 10033 | else |
| 10034 | ld_shlibs_GCJ=no |
| 10035 | fi |
| 10036 | ;; |
| 10037 | |
| 10038 | sunos4*) |
| 10039 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 10040 | wlarc= |
| 10041 | hardcode_direct_GCJ=yes |
| 10042 | hardcode_shlibpath_var_GCJ=no |
| 10043 | ;; |
| 10044 | |
| 10045 | *) |
| 10046 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 10047 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10048 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 10049 | else |
| 10050 | ld_shlibs_GCJ=no |
| 10051 | fi |
| 10052 | ;; |
| 10053 | esac |
| 10054 | |
| 10055 | if test "$ld_shlibs_GCJ" = yes; then |
| 10056 | runpath_var=LD_RUN_PATH |
| 10057 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 10058 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 10059 | case $host_os in |
| 10060 | cygwin* | mingw* | pw32*) |
| 10061 | # dlltool doesn't understand --whole-archive et. al. |
| 10062 | whole_archive_flag_spec_GCJ= |
| 10063 | ;; |
| 10064 | *) |
| 10065 | # ancient GNU ld didn't support --whole-archive et. al. |
| 10066 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then |
| 10067 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 10068 | else |
| 10069 | whole_archive_flag_spec_GCJ= |
| 10070 | fi |
| 10071 | ;; |
| 10072 | esac |
| 10073 | fi |
| 10074 | else |
| 10075 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 10076 | case $host_os in |
| 10077 | aix3*) |
| 10078 | allow_undefined_flag_GCJ=unsupported |
| 10079 | always_export_symbols_GCJ=yes |
| 10080 | 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' |
| 10081 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 10082 | # are no directories specified by -L. |
| 10083 | hardcode_minus_L_GCJ=yes |
| 10084 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 10085 | # Neither direct hardcoding nor static linking is supported with a |
| 10086 | # broken collect2. |
| 10087 | hardcode_direct_GCJ=unsupported |
| 10088 | fi |
| 10089 | ;; |
| 10090 | |
| 10091 | aix4* | aix5*) |
| 10092 | if test "$host_cpu" = ia64; then |
| 10093 | # On IA64, the linker does run time linking by default, so we don't |
| 10094 | # have to do anything special. |
| 10095 | aix_use_runtimelinking=no |
| 10096 | exp_sym_flag='-Bexport' |
| 10097 | no_entry_flag="" |
| 10098 | else |
| 10099 | aix_use_runtimelinking=no |
| 10100 | |
| 10101 | # Test if we are trying to use run time linking or normal |
| 10102 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 10103 | # need to do runtime linking. |
| 10104 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 10105 | for ld_flag in $LDFLAGS; do |
| 10106 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 10107 | aix_use_runtimelinking=yes |
| 10108 | break |
| 10109 | fi |
| 10110 | done |
| 10111 | esac |
| 10112 | |
| 10113 | exp_sym_flag='-bexport' |
| 10114 | no_entry_flag='-bnoentry' |
| 10115 | fi |
| 10116 | |
| 10117 | # When large executables or shared objects are built, AIX ld can |
| 10118 | # have problems creating the table of contents. If linking a library |
| 10119 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 10120 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 10121 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 10122 | |
| 10123 | archive_cmds_GCJ='' |
| 10124 | hardcode_direct_GCJ=yes |
| 10125 | hardcode_libdir_separator_GCJ=':' |
| 10126 | link_all_deplibs_GCJ=yes |
| 10127 | |
| 10128 | if test "$GCC" = yes; then |
| 10129 | case $host_os in aix4.012|aix4.012.*) |
| 10130 | # We only want to do this on AIX 4.2 and lower, the check |
| 10131 | # below for broken collect2 doesn't work under 4.3+ |
| 10132 | collect2name=`${CC} -print-prog-name=collect2` |
| 10133 | if test -f "$collect2name" && \ |
| 10134 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 10135 | then |
| 10136 | # We have reworked collect2 |
| 10137 | hardcode_direct_GCJ=yes |
| 10138 | else |
| 10139 | # We have old collect2 |
| 10140 | hardcode_direct_GCJ=unsupported |
| 10141 | # It fails to find uninstalled libraries when the uninstalled |
| 10142 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 10143 | # to unsupported forces relinking |
| 10144 | hardcode_minus_L_GCJ=yes |
| 10145 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 10146 | hardcode_libdir_separator_GCJ= |
| 10147 | fi |
| 10148 | esac |
| 10149 | shared_flag='-shared' |
| 10150 | else |
| 10151 | # not using gcc |
| 10152 | if test "$host_cpu" = ia64; then |
| 10153 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 10154 | # chokes on -Wl,-G. The following line is correct: |
| 10155 | shared_flag='-G' |
| 10156 | else |
| 10157 | if test "$aix_use_runtimelinking" = yes; then |
| 10158 | shared_flag='${wl}-G' |
| 10159 | else |
| 10160 | shared_flag='${wl}-bM:SRE' |
| 10161 | fi |
| 10162 | fi |
| 10163 | fi |
| 10164 | |
| 10165 | # It seems that -bexpall does not export symbols beginning with |
| 10166 | # underscore (_), so it is better to generate a list of symbols to export. |
| 10167 | always_export_symbols_GCJ=yes |
| 10168 | if test "$aix_use_runtimelinking" = yes; then |
| 10169 | # Warning - without using the other runtime loading flags (-brtl), |
| 10170 | # -berok will link without error, but may produce a broken library. |
| 10171 | allow_undefined_flag_GCJ='-berok' |
| 10172 | # Determine the default libpath from the value encoded in an empty executable. |
| 10173 | cat >conftest.$ac_ext <<_ACEOF |
| 10174 | #line 10174 "configure" |
| 10175 | #include "confdefs.h" |
| 10176 | |
| 10177 | int |
| 10178 | main () |
| 10179 | { |
| 10180 | |
| 10181 | ; |
| 10182 | return 0; |
| 10183 | } |
| 10184 | _ACEOF |
| 10185 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10186 | if { (eval echo "$as_me:10186: \"$ac_link\"") >&5 |
| 10187 | (eval $ac_link) 2>&5 |
| 10188 | ac_status=$? |
| 10189 | echo "$as_me:10189: \$? = $ac_status" >&5 |
| 10190 | (exit $ac_status); } && |
| 10191 | { ac_try='test -s conftest$ac_exeext' |
| 10192 | { (eval echo "$as_me:10192: \"$ac_try\"") >&5 |
| 10193 | (eval $ac_try) 2>&5 |
| 10194 | ac_status=$? |
| 10195 | echo "$as_me:10195: \$? = $ac_status" >&5 |
| 10196 | (exit $ac_status); }; }; then |
| 10197 | |
| 10198 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'` |
| 10199 | # Check for a 64-bit object if we didn't find anything. |
| 10200 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi |
| 10201 | else |
| 10202 | echo "$as_me: failed program was:" >&5 |
| 10203 | cat conftest.$ac_ext >&5 |
| 10204 | fi |
| 10205 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10206 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 10207 | |
| 10208 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 10209 | 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" |
| 10210 | else |
| 10211 | if test "$host_cpu" = ia64; then |
| 10212 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 10213 | allow_undefined_flag_GCJ="-z nodefs" |
| 10214 | 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" |
| 10215 | else |
| 10216 | # Determine the default libpath from the value encoded in an empty executable. |
| 10217 | cat >conftest.$ac_ext <<_ACEOF |
| 10218 | #line 10218 "configure" |
| 10219 | #include "confdefs.h" |
| 10220 | |
| 10221 | int |
| 10222 | main () |
| 10223 | { |
| 10224 | |
| 10225 | ; |
| 10226 | return 0; |
| 10227 | } |
| 10228 | _ACEOF |
| 10229 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10230 | if { (eval echo "$as_me:10230: \"$ac_link\"") >&5 |
| 10231 | (eval $ac_link) 2>&5 |
| 10232 | ac_status=$? |
| 10233 | echo "$as_me:10233: \$? = $ac_status" >&5 |
| 10234 | (exit $ac_status); } && |
| 10235 | { ac_try='test -s conftest$ac_exeext' |
| 10236 | { (eval echo "$as_me:10236: \"$ac_try\"") >&5 |
| 10237 | (eval $ac_try) 2>&5 |
| 10238 | ac_status=$? |
| 10239 | echo "$as_me:10239: \$? = $ac_status" >&5 |
| 10240 | (exit $ac_status); }; }; then |
| 10241 | |
| 10242 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'` |
| 10243 | # Check for a 64-bit object if we didn't find anything. |
| 10244 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi |
| 10245 | else |
| 10246 | echo "$as_me: failed program was:" >&5 |
| 10247 | cat conftest.$ac_ext >&5 |
| 10248 | fi |
| 10249 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10250 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 10251 | |
| 10252 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 10253 | # Warning - without using the other run time loading flags, |
| 10254 | # -berok will link without error, but may produce a broken library. |
| 10255 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 10256 | allow_undefined_flag_GCJ=' ${wl}-berok' |
| 10257 | # -bexpall does not export symbols beginning with underscore (_) |
| 10258 | always_export_symbols_GCJ=yes |
| 10259 | # Exported symbols can be pulled into shared objects from archives |
| 10260 | whole_archive_flag_spec_GCJ=' ' |
| 10261 | archive_cmds_need_lc_GCJ=yes |
| 10262 | # This is similar to how AIX traditionally builds it's shared libraries. |
| 10263 | 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' |
| 10264 | fi |
| 10265 | fi |
| 10266 | ;; |
| 10267 | |
| 10268 | amigaos*) |
| 10269 | 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)' |
| 10270 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 10271 | hardcode_minus_L_GCJ=yes |
| 10272 | # see comment about different semantics on the GNU ld section |
| 10273 | ld_shlibs_GCJ=no |
| 10274 | ;; |
| 10275 | |
| 10276 | bsdi4*) |
| 10277 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 10278 | ;; |
| 10279 | |
| 10280 | cygwin* | mingw* | pw32*) |
| 10281 | # When not using gcc, we currently assume that we are using |
| 10282 | # Microsoft Visual C++. |
| 10283 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 10284 | # no search path for DLLs. |
| 10285 | hardcode_libdir_flag_spec_GCJ=' ' |
| 10286 | allow_undefined_flag_GCJ=unsupported |
| 10287 | # Tell ltmain to make .lib files, not .a files. |
| 10288 | libext=lib |
| 10289 | # FIXME: Setting linknames here is a bad hack. |
| 10290 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 10291 | # The linker will automatically build a .lib file if we build a DLL. |
| 10292 | old_archive_From_new_cmds_GCJ='true' |
| 10293 | # FIXME: Should let the user specify the lib program. |
| 10294 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 10295 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 10296 | ;; |
| 10297 | |
| 10298 | dgux*) |
| 10299 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10300 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 10301 | hardcode_shlibpath_var_GCJ=no |
| 10302 | ;; |
| 10303 | |
| 10304 | freebsd1*) |
| 10305 | ld_shlibs_GCJ=no |
| 10306 | ;; |
| 10307 | |
| 10308 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 10309 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 10310 | # does not break anything, and helps significantly (at the cost of a little |
| 10311 | # extra space). |
| 10312 | freebsd2.2*) |
| 10313 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 10314 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 10315 | hardcode_direct_GCJ=yes |
| 10316 | hardcode_shlibpath_var_GCJ=no |
| 10317 | ;; |
| 10318 | |
| 10319 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 10320 | freebsd2*) |
| 10321 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 10322 | hardcode_direct_GCJ=yes |
| 10323 | hardcode_minus_L_GCJ=yes |
| 10324 | hardcode_shlibpath_var_GCJ=no |
| 10325 | ;; |
| 10326 | |
| 10327 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 10328 | freebsd*) |
| 10329 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 10330 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 10331 | hardcode_direct_GCJ=yes |
| 10332 | hardcode_shlibpath_var_GCJ=no |
| 10333 | ;; |
| 10334 | |
| 10335 | hpux9* | hpux10* | hpux11*) |
| 10336 | if test $GXX = yes; then |
| 10337 | case $host_os in |
| 10338 | hpux9*) |
| 10339 | 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' |
| 10340 | ;; |
| 10341 | *) |
| 10342 | if test "$host_cpu" = ia64; then |
| 10343 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10344 | else |
| 10345 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 10346 | fi |
| 10347 | ;; |
| 10348 | esac |
| 10349 | else |
| 10350 | case $host_os in |
| 10351 | hpux9*) |
| 10352 | 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' |
| 10353 | ;; |
| 10354 | *) |
| 10355 | if test "$host_cpu" = ia64; then |
| 10356 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10357 | else |
| 10358 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 10359 | fi |
| 10360 | ;; |
| 10361 | esac |
| 10362 | fi |
| 10363 | if test "$host_cpu" = ia64; then |
| 10364 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 10365 | hardcode_direct_GCJ=no |
| 10366 | hardcode_shlibpath_var_GCJ=no |
| 10367 | else |
| 10368 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 10369 | hardcode_libdir_separator_GCJ=: |
| 10370 | hardcode_direct_GCJ=yes |
| 10371 | fi |
| 10372 | # hardcode_minus_L: Not really in the search PATH, |
| 10373 | # but as the default location of the library. |
| 10374 | hardcode_minus_L_GCJ=yes |
| 10375 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 10376 | ;; |
| 10377 | |
| 10378 | irix5* | irix6*) |
| 10379 | if test "$GCC" = yes; then |
| 10380 | 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' |
| 10381 | else |
| 10382 | 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' |
| 10383 | fi |
| 10384 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 10385 | hardcode_libdir_separator_GCJ=: |
| 10386 | link_all_deplibs_GCJ=yes |
| 10387 | ;; |
| 10388 | |
| 10389 | netbsd*) |
| 10390 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 10391 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 10392 | else |
| 10393 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 10394 | fi |
| 10395 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 10396 | hardcode_direct_GCJ=yes |
| 10397 | hardcode_shlibpath_var_GCJ=no |
| 10398 | ;; |
| 10399 | |
| 10400 | newsos6) |
| 10401 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' |
| 10402 | hardcode_direct_GCJ=yes |
| 10403 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 10404 | hardcode_libdir_separator_GCJ=: |
| 10405 | hardcode_shlibpath_var_GCJ=no |
| 10406 | ;; |
| 10407 | |
| 10408 | openbsd*) |
| 10409 | hardcode_direct_GCJ=yes |
| 10410 | hardcode_shlibpath_var_GCJ=no |
| 10411 | |
| 10412 | case "$host_os" in |
| 10413 | openbsd01.* | openbsd2.0-7 | openbsd2.0-7.*) |
| 10414 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 10415 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 10416 | ;; |
| 10417 | *) |
| 10418 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' |
| 10419 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 10420 | if "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then |
| 10421 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 10422 | fi |
| 10423 | ;; |
| 10424 | esac |
| 10425 | ;; |
| 10426 | |
| 10427 | os2*) |
| 10428 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 10429 | hardcode_minus_L_GCJ=yes |
| 10430 | allow_undefined_flag_GCJ=unsupported |
| 10431 | 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' |
| 10432 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 10433 | ;; |
| 10434 | |
| 10435 | osf3*) |
| 10436 | if test "$GCC" = yes; then |
| 10437 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 10438 | 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' |
| 10439 | else |
| 10440 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 10441 | 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' |
| 10442 | fi |
| 10443 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 10444 | hardcode_libdir_separator_GCJ=: |
| 10445 | ;; |
| 10446 | |
| 10447 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 10448 | if test "$GCC" = yes; then |
| 10449 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 10450 | 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' |
| 10451 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 10452 | else |
| 10453 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 10454 | 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' |
| 10455 | archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 10456 | $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' |
| 10457 | |
| 10458 | # Both c and cxx compiler support -rpath directly |
| 10459 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 10460 | fi |
| 10461 | hardcode_libdir_separator_GCJ=: |
| 10462 | ;; |
| 10463 | |
| 10464 | sco3.2v5*) |
| 10465 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10466 | hardcode_shlibpath_var_GCJ=no |
| 10467 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
| 10468 | runpath_var=LD_RUN_PATH |
| 10469 | hardcode_runpath_var=yes |
| 10470 | ;; |
| 10471 | |
| 10472 | solaris*) |
| 10473 | no_undefined_flag_GCJ=' -z defs' |
| 10474 | if test "$GXX" = yes; then |
| 10475 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10476 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 10477 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 10478 | else |
| 10479 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10480 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 10481 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 10482 | fi |
| 10483 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 10484 | hardcode_shlibpath_var_GCJ=no |
| 10485 | case $host_os in |
| 10486 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 10487 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 10488 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 10489 | esac |
| 10490 | link_all_deplibs_GCJ=yes |
| 10491 | ;; |
| 10492 | |
| 10493 | sunos4*) |
| 10494 | if test "x$host_vendor" = xsequent; then |
| 10495 | # Use $CC to link under sequent, because it throws in some extra .o |
| 10496 | # files that make .init and .fini sections work. |
| 10497 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10498 | else |
| 10499 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 10500 | fi |
| 10501 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 10502 | hardcode_direct_GCJ=yes |
| 10503 | hardcode_minus_L_GCJ=yes |
| 10504 | hardcode_shlibpath_var_GCJ=no |
| 10505 | ;; |
| 10506 | |
| 10507 | sysv4) |
| 10508 | if test "x$host_vendor" = xsni; then |
| 10509 | archive_cmds_GCJ='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts' |
| 10510 | hardcode_direct_GCJ=yes # is this really true??? |
| 10511 | else |
| 10512 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10513 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 10514 | fi |
| 10515 | runpath_var='LD_RUN_PATH' |
| 10516 | hardcode_shlibpath_var_GCJ=no |
| 10517 | ;; |
| 10518 | |
| 10519 | sysv4.3*) |
| 10520 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10521 | hardcode_shlibpath_var_GCJ=no |
| 10522 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 10523 | ;; |
| 10524 | |
| 10525 | sysv4*MP*) |
| 10526 | if test -d /usr/nec; then |
| 10527 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10528 | hardcode_shlibpath_var_GCJ=no |
| 10529 | runpath_var=LD_RUN_PATH |
| 10530 | hardcode_runpath_var=yes |
| 10531 | ld_shlibs_GCJ=yes |
| 10532 | fi |
| 10533 | ;; |
| 10534 | |
| 10535 | sysv4.2uw2*) |
| 10536 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 10537 | hardcode_direct_GCJ=yes |
| 10538 | hardcode_minus_L_GCJ=no |
| 10539 | hardcode_shlibpath_var_GCJ=no |
| 10540 | hardcode_runpath_var=yes |
| 10541 | runpath_var=LD_RUN_PATH |
| 10542 | ;; |
| 10543 | |
| 10544 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 10545 | no_undefined_flag_GCJ='${wl}-z ${wl}text' |
| 10546 | if test "$GCC" = yes; then |
| 10547 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10548 | else |
| 10549 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10550 | fi |
| 10551 | runpath_var='LD_RUN_PATH' |
| 10552 | hardcode_shlibpath_var_GCJ=no |
| 10553 | ;; |
| 10554 | |
| 10555 | sysv5*) |
| 10556 | no_undefined_flag_GCJ=' -z text' |
| 10557 | # $CC -shared without GNU ld will not create a library from C++ |
| 10558 | # object files and a static libstdc++, better avoid it by now |
| 10559 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10560 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 10561 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 10562 | hardcode_libdir_flag_spec_GCJ= |
| 10563 | hardcode_shlibpath_var_GCJ=no |
| 10564 | runpath_var='LD_RUN_PATH' |
| 10565 | ;; |
| 10566 | |
| 10567 | uts4*) |
| 10568 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10569 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 10570 | hardcode_shlibpath_var_GCJ=no |
| 10571 | ;; |
| 10572 | |
| 10573 | *) |
| 10574 | ld_shlibs_GCJ=no |
| 10575 | ;; |
| 10576 | esac |
| 10577 | fi |
| 10578 | |
| 10579 | echo "$as_me:10579: result: $ld_shlibs_GCJ" >&5 |
| 10580 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
| 10581 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 10582 | |
| 10583 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 10584 | if test "$GCC" = yes; then |
| 10585 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 10586 | fi |
| 10587 | |
| 10588 | # |
| 10589 | # Do we need to explicitly link libc? |
| 10590 | # |
| 10591 | archive_cmds_need_lc_GCJ=yes |
| 10592 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 10593 | case $archive_cmds_GCJ in |
| 10594 | *'~'*) |
| 10595 | # FIXME: we may have to deal with multi-command sequences. |
| 10596 | ;; |
| 10597 | '$CC '*) |
| 10598 | # Test whether the compiler implicitly links with -lc since on some |
| 10599 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 10600 | # to ld, don't add -lc before -lgcc. |
| 10601 | echo "$as_me:10601: checking whether -lc should be explicitly linked in" >&5 |
| 10602 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 10603 | $rm conftest* |
| 10604 | echo 'static int dummy;' > conftest.$ac_ext |
| 10605 | |
| 10606 | if { (eval echo "$as_me:10606: \"$ac_compile\"") >&5 |
| 10607 | (eval $ac_compile) 2>&5 |
| 10608 | ac_status=$? |
| 10609 | echo "$as_me:10609: \$? = $ac_status" >&5 |
| 10610 | (exit $ac_status); } 2>conftest.err; then |
| 10611 | soname=conftest |
| 10612 | lib=conftest |
| 10613 | libobjs=conftest.$ac_objext |
| 10614 | deplibs= |
| 10615 | wl=$lt_prog_compiler_wl_GCJ |
| 10616 | compiler_flags=-v |
| 10617 | linker_flags=-v |
| 10618 | verstring= |
| 10619 | output_objdir=. |
| 10620 | libname=conftest |
| 10621 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 10622 | allow_undefined_flag_GCJ= |
| 10623 | if { (eval echo "$as_me:10623: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 10624 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 10625 | ac_status=$? |
| 10626 | echo "$as_me:10626: \$? = $ac_status" >&5 |
| 10627 | (exit $ac_status); } |
| 10628 | then |
| 10629 | archive_cmds_need_lc_GCJ=no |
| 10630 | else |
| 10631 | archive_cmds_need_lc_GCJ=yes |
| 10632 | fi |
| 10633 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 10634 | else |
| 10635 | cat conftest.err 1>&5 |
| 10636 | fi |
| 10637 | $rm conftest* |
| 10638 | echo "$as_me:10638: result: $archive_cmds_need_lc_GCJ" >&5 |
| 10639 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
| 10640 | ;; |
| 10641 | esac |
| 10642 | fi |
| 10643 | |
| 10644 | echo "$as_me:10644: checking how to hardcode library paths into programs" >&5 |
| 10645 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 10646 | hardcode_action_GCJ= |
| 10647 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 10648 | test -n "$runpath_var GCJ"; then |
| 10649 | |
| 10650 | # We can hardcode non-existant directories. |
| 10651 | if test "$hardcode_direct_GCJ" != no && |
| 10652 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 10653 | # have to relink, otherwise we might link with an installed library |
| 10654 | # when we should be linking with a yet-to-be-installed one |
| 10655 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 10656 | test "$hardcode_minus_L_GCJ" != no; then |
| 10657 | # Linking always hardcodes the temporary library directory. |
| 10658 | hardcode_action_GCJ=relink |
| 10659 | else |
| 10660 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 10661 | hardcode_action_GCJ=immediate |
| 10662 | fi |
| 10663 | else |
| 10664 | # We cannot hardcode anything, or else we can only hardcode existing |
| 10665 | # directories. |
| 10666 | hardcode_action_GCJ=unsupported |
| 10667 | fi |
| 10668 | echo "$as_me:10668: result: $hardcode_action_GCJ" >&5 |
| 10669 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
| 10670 | |
| 10671 | if test "$hardcode_action_GCJ" = relink; then |
| 10672 | # Fast installation is not supported |
| 10673 | enable_fast_install=no |
| 10674 | elif test "$shlibpath_overrides_runpath" = yes || |
| 10675 | test "$enable_shared" = no; then |
| 10676 | # Fast installation is not necessary |
| 10677 | enable_fast_install=needless |
| 10678 | fi |
| 10679 | |
| 10680 | striplib= |
| 10681 | old_striplib= |
| 10682 | echo "$as_me:10682: checking whether stripping libraries is possible" >&5 |
| 10683 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 10684 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 10685 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 10686 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 10687 | echo "$as_me:10687: result: yes" >&5 |
| 10688 | echo "${ECHO_T}yes" >&6 |
| 10689 | else |
| 10690 | echo "$as_me:10690: result: no" >&5 |
| 10691 | echo "${ECHO_T}no" >&6 |
| 10692 | fi |
| 10693 | |
| 10694 | echo "$as_me:10694: checking dynamic linker characteristics" >&5 |
| 10695 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 10696 | library_names_spec= |
| 10697 | libname_spec='lib$name' |
| 10698 | soname_spec= |
| 10699 | postinstall_cmds= |
| 10700 | postuninstall_cmds= |
| 10701 | finish_cmds= |
| 10702 | finish_eval= |
| 10703 | shlibpath_var= |
| 10704 | shlibpath_overrides_runpath=unknown |
| 10705 | version_type=none |
| 10706 | dynamic_linker="$host_os ld.so" |
| 10707 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 10708 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 10709 | need_lib_prefix=unknown |
| 10710 | hardcode_into_libs=no |
| 10711 | |
| 10712 | # when you set need_version to no, make sure it does not cause -set_version |
| 10713 | # flags to be left without arguments |
| 10714 | need_version=unknown |
| 10715 | |
| 10716 | case $host_os in |
| 10717 | aix3*) |
| 10718 | version_type=linux |
| 10719 | library_names_spec='${libname}${release}.so$versuffix $libname.a' |
| 10720 | shlibpath_var=LIBPATH |
| 10721 | |
| 10722 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 10723 | soname_spec='${libname}${release}.so$major' |
| 10724 | ;; |
| 10725 | |
| 10726 | aix4* | aix5*) |
| 10727 | version_type=linux |
| 10728 | if test "$host_cpu" = ia64; then |
| 10729 | # AIX 5 supports IA64 |
| 10730 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' |
| 10731 | shlibpath_var=LD_LIBRARY_PATH |
| 10732 | else |
| 10733 | # With GCC up to 2.95.x, collect2 would create an import file |
| 10734 | # for dependence libraries. The import file would start with |
| 10735 | # the line `#! .'. This would cause the generated library to |
| 10736 | # depend on `.', always an invalid library. This was fixed in |
| 10737 | # development snapshots of GCC prior to 3.0. |
| 10738 | case $host_os in |
| 10739 | aix4 | aix4.[01] | aix4.[01].*) |
| 10740 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 10741 | echo ' yes ' |
| 10742 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 10743 | : |
| 10744 | else |
| 10745 | can_build_shared=no |
| 10746 | fi |
| 10747 | ;; |
| 10748 | esac |
| 10749 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 10750 | # soname into executable. Probably we can add versioning support to |
| 10751 | # collect2, so additional links can be useful in future. |
| 10752 | if test "$aix_use_runtimelinking" = yes; then |
| 10753 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 10754 | # instead of lib<name>.a to let people know that these are not |
| 10755 | # typical AIX shared libraries. |
| 10756 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 10757 | else |
| 10758 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 10759 | # and later when we are not doing run time linking. |
| 10760 | library_names_spec='${libname}${release}.a $libname.a' |
| 10761 | soname_spec='${libname}${release}.so$major' |
| 10762 | fi |
| 10763 | shlibpath_var=LIBPATH |
| 10764 | deplibs_check_method=pass_all |
| 10765 | fi |
| 10766 | ;; |
| 10767 | |
| 10768 | amigaos*) |
| 10769 | library_names_spec='$libname.ixlibrary $libname.a' |
| 10770 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 10771 | 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' |
| 10772 | ;; |
| 10773 | |
| 10774 | beos*) |
| 10775 | library_names_spec='${libname}.so' |
| 10776 | dynamic_linker="$host_os ld.so" |
| 10777 | shlibpath_var=LIBRARY_PATH |
| 10778 | ;; |
| 10779 | |
| 10780 | bsdi4*) |
| 10781 | version_type=linux |
| 10782 | need_version=no |
| 10783 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 10784 | soname_spec='${libname}${release}.so$major' |
| 10785 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 10786 | shlibpath_var=LD_LIBRARY_PATH |
| 10787 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 10788 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 10789 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 10790 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 10791 | # libtool to hard-code these into programs |
| 10792 | ;; |
| 10793 | |
| 10794 | cygwin* | mingw* | pw32*) |
| 10795 | version_type=windows |
| 10796 | need_version=no |
| 10797 | need_lib_prefix=no |
| 10798 | case $GCC,$host_os in |
| 10799 | yes,cygwin*) |
| 10800 | library_names_spec='$libname.dll.a' |
| 10801 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" |
| 10802 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
| 10803 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ |
| 10804 | dldir=$destdir/`dirname \$dlpath`~ |
| 10805 | test -d \$dldir || mkdir -p \$dldir~ |
| 10806 | $install_prog .libs/$dlname \$dldir/$dlname' |
| 10807 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 10808 | dlpath=$dir/\$dldll~ |
| 10809 | $rm \$dlpath' |
| 10810 | ;; |
| 10811 | yes,mingw*) |
| 10812 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
| 10813 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/$PATH_SEPARATOR/ /g"` |
| 10814 | ;; |
| 10815 | yes,pw32*) |
| 10816 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' |
| 10817 | ;; |
| 10818 | *) |
| 10819 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' |
| 10820 | ;; |
| 10821 | esac |
| 10822 | dynamic_linker='Win32 ld.exe' |
| 10823 | # FIXME: first we should search . and the directory the executable is in |
| 10824 | shlibpath_var=PATH |
| 10825 | ;; |
| 10826 | |
| 10827 | darwin* | rhapsody*) |
| 10828 | dynamic_linker="$host_os dyld" |
| 10829 | version_type=darwin |
| 10830 | need_lib_prefix=no |
| 10831 | need_version=no |
| 10832 | # FIXME: Relying on posixy $() will cause problems for |
| 10833 | # cross-compilation, but unfortunately the echo tests do not |
| 10834 | # yet detect zsh echo's removal of \ escapes. |
| 10835 | library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' |
| 10836 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' |
| 10837 | shlibpath_overrides_runpath=yes |
| 10838 | shlibpath_var=DYLD_LIBRARY_PATH |
| 10839 | ;; |
| 10840 | |
| 10841 | dgux*) |
| 10842 | version_type=linux |
| 10843 | need_lib_prefix=no |
| 10844 | need_version=no |
| 10845 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 10846 | soname_spec='${libname}${release}.so$major' |
| 10847 | shlibpath_var=LD_LIBRARY_PATH |
| 10848 | ;; |
| 10849 | |
| 10850 | freebsd1*) |
| 10851 | dynamic_linker=no |
| 10852 | ;; |
| 10853 | |
| 10854 | freebsd*) |
| 10855 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 10856 | version_type=freebsd-$objformat |
| 10857 | case $version_type in |
| 10858 | freebsd-elf*) |
| 10859 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
| 10860 | need_version=no |
| 10861 | need_lib_prefix=no |
| 10862 | ;; |
| 10863 | freebsd-*) |
| 10864 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' |
| 10865 | need_version=yes |
| 10866 | ;; |
| 10867 | esac |
| 10868 | shlibpath_var=LD_LIBRARY_PATH |
| 10869 | case $host_os in |
| 10870 | freebsd2*) |
| 10871 | shlibpath_overrides_runpath=yes |
| 10872 | ;; |
| 10873 | freebsd3.01* | freebsdelf3.01*) |
| 10874 | shlibpath_overrides_runpath=yes |
| 10875 | hardcode_into_libs=yes |
| 10876 | ;; |
| 10877 | *) # from 3.2 on |
| 10878 | shlibpath_overrides_runpath=no |
| 10879 | hardcode_into_libs=yes |
| 10880 | ;; |
| 10881 | esac |
| 10882 | ;; |
| 10883 | |
| 10884 | gnu*) |
| 10885 | version_type=linux |
| 10886 | need_lib_prefix=no |
| 10887 | need_version=no |
| 10888 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' |
| 10889 | soname_spec='${libname}${release}.so$major' |
| 10890 | shlibpath_var=LD_LIBRARY_PATH |
| 10891 | hardcode_into_libs=yes |
| 10892 | ;; |
| 10893 | |
| 10894 | hpux9* | hpux10* | hpux11*) |
| 10895 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 10896 | # link against other versions. |
| 10897 | version_type=sunos |
| 10898 | need_lib_prefix=no |
| 10899 | need_version=no |
| 10900 | if test "$host_cpu" = ia64; then |
| 10901 | hardcode_into_libs=yes |
| 10902 | dynamic_linker="$host_os dld.so" |
| 10903 | shlibpath_var=LD_LIBRARY_PATH |
| 10904 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10905 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 10906 | soname_spec='${libname}${release}.so$major' |
| 10907 | if test "X$HPUX_IA64_MODE" = X32; then |
| 10908 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 10909 | else |
| 10910 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 10911 | fi |
| 10912 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10913 | else |
| 10914 | dynamic_linker="$host_os dld.sl" |
| 10915 | shlibpath_var=SHLIB_PATH |
| 10916 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 10917 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' |
| 10918 | soname_spec='${libname}${release}.sl$major' |
| 10919 | fi |
| 10920 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 10921 | postinstall_cmds='chmod 555 $lib' |
| 10922 | ;; |
| 10923 | |
| 10924 | irix5* | irix6*) |
| 10925 | version_type=irix |
| 10926 | need_lib_prefix=no |
| 10927 | need_version=no |
| 10928 | soname_spec='${libname}${release}.so$major' |
| 10929 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
| 10930 | case $host_os in |
| 10931 | irix5*) |
| 10932 | libsuff= shlibsuff= |
| 10933 | ;; |
| 10934 | *) |
| 10935 | case $LD in # libtool.m4 will add one of these switches to LD |
| 10936 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; |
| 10937 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 10938 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 10939 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 10940 | esac |
| 10941 | ;; |
| 10942 | esac |
| 10943 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 10944 | shlibpath_overrides_runpath=no |
| 10945 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 10946 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 10947 | ;; |
| 10948 | |
| 10949 | # No shared lib support for Linux oldld, aout, or coff. |
| 10950 | linux*oldld* | linux*aout* | linux*coff*) |
| 10951 | dynamic_linker=no |
| 10952 | ;; |
| 10953 | |
| 10954 | # This must be Linux ELF. |
| 10955 | linux*) |
| 10956 | version_type=linux |
| 10957 | need_lib_prefix=no |
| 10958 | need_version=no |
| 10959 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 10960 | soname_spec='${libname}${release}.so$major' |
| 10961 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 10962 | shlibpath_var=LD_LIBRARY_PATH |
| 10963 | shlibpath_overrides_runpath=no |
| 10964 | # This implies no fast_install, which is unacceptable. |
| 10965 | # Some rework will be needed to allow for fast_install |
| 10966 | # before this can be enabled. |
| 10967 | hardcode_into_libs=yes |
| 10968 | |
| 10969 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 10970 | # powerpc, because MkLinux only supported shared libraries with the |
| 10971 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 10972 | # most powerpc-linux boxes support dynamic linking these days and |
| 10973 | # people can always --disable-shared, the test was removed, and we |
| 10974 | # assume the GNU/Linux dynamic linker is in use. |
| 10975 | dynamic_linker='GNU/Linux ld.so' |
| 10976 | ;; |
| 10977 | |
| 10978 | netbsd*) |
| 10979 | version_type=sunos |
| 10980 | need_lib_prefix=no |
| 10981 | need_version=no |
| 10982 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 10983 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 10984 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10985 | dynamic_linker='NetBSD (a.out) ld.so' |
| 10986 | else |
| 10987 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' |
| 10988 | soname_spec='${libname}${release}.so$major' |
| 10989 | dynamic_linker='NetBSD ld.elf_so' |
| 10990 | fi |
| 10991 | shlibpath_var=LD_LIBRARY_PATH |
| 10992 | shlibpath_overrides_runpath=yes |
| 10993 | hardcode_into_libs=yes |
| 10994 | ;; |
| 10995 | |
| 10996 | newsos6) |
| 10997 | version_type=linux |
| 10998 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 10999 | shlibpath_var=LD_LIBRARY_PATH |
| 11000 | shlibpath_overrides_runpath=yes |
| 11001 | ;; |
| 11002 | |
| 11003 | nto-qnx) |
| 11004 | version_type=linux |
| 11005 | need_lib_prefix=no |
| 11006 | need_version=no |
| 11007 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 11008 | soname_spec='${libname}${release}.so$major' |
| 11009 | shlibpath_var=LD_LIBRARY_PATH |
| 11010 | shlibpath_overrides_runpath=yes |
| 11011 | ;; |
| 11012 | |
| 11013 | openbsd*) |
| 11014 | version_type=sunos |
| 11015 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 11016 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11017 | shlibpath_var=LD_LIBRARY_PATH |
| 11018 | file_magic_cmd=/usr/bin/file |
| 11019 | file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 11020 | if "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then |
| 11021 | deplibs_check_method='file_magic ELF 0-90-9*-bit LMSB shared object' |
| 11022 | else |
| 11023 | deplibs_check_method='file_magic OpenBSD.* shared library' |
| 11024 | fi |
| 11025 | ;; |
| 11026 | |
| 11027 | os2*) |
| 11028 | libname_spec='$name' |
| 11029 | need_lib_prefix=no |
| 11030 | library_names_spec='$libname.dll $libname.a' |
| 11031 | dynamic_linker='OS/2 ld.exe' |
| 11032 | shlibpath_var=LIBPATH |
| 11033 | ;; |
| 11034 | |
| 11035 | osf3* | osf4* | osf5*) |
| 11036 | version_type=osf |
| 11037 | need_version=no |
| 11038 | soname_spec='${libname}${release}.so' |
| 11039 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
| 11040 | shlibpath_var=LD_LIBRARY_PATH |
| 11041 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 11042 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 11043 | ;; |
| 11044 | |
| 11045 | sco3.2v5*) |
| 11046 | version_type=osf |
| 11047 | soname_spec='${libname}${release}.so$major' |
| 11048 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 11049 | shlibpath_var=LD_LIBRARY_PATH |
| 11050 | ;; |
| 11051 | |
| 11052 | solaris*) |
| 11053 | version_type=linux |
| 11054 | need_lib_prefix=no |
| 11055 | need_version=no |
| 11056 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 11057 | soname_spec='${libname}${release}.so$major' |
| 11058 | shlibpath_var=LD_LIBRARY_PATH |
| 11059 | shlibpath_overrides_runpath=yes |
| 11060 | hardcode_into_libs=yes |
| 11061 | # ldd complains unless libraries are executable |
| 11062 | postinstall_cmds='chmod +x $lib' |
| 11063 | ;; |
| 11064 | |
| 11065 | sunos4*) |
| 11066 | version_type=sunos |
| 11067 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 11068 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 11069 | shlibpath_var=LD_LIBRARY_PATH |
| 11070 | shlibpath_overrides_runpath=yes |
| 11071 | if test "$with_gnu_ld" = yes; then |
| 11072 | need_lib_prefix=no |
| 11073 | fi |
| 11074 | need_version=yes |
| 11075 | ;; |
| 11076 | |
| 11077 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 11078 | version_type=linux |
| 11079 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 11080 | soname_spec='${libname}${release}.so$major' |
| 11081 | shlibpath_var=LD_LIBRARY_PATH |
| 11082 | case $host_vendor in |
| 11083 | sni) |
| 11084 | shlibpath_overrides_runpath=no |
| 11085 | ;; |
| 11086 | motorola) |
| 11087 | need_lib_prefix=no |
| 11088 | need_version=no |
| 11089 | shlibpath_overrides_runpath=no |
| 11090 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 11091 | ;; |
| 11092 | esac |
| 11093 | ;; |
| 11094 | |
| 11095 | sysv4*MP*) |
| 11096 | if test -d /usr/nec ;then |
| 11097 | version_type=linux |
| 11098 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' |
| 11099 | soname_spec='$libname.so.$major' |
| 11100 | shlibpath_var=LD_LIBRARY_PATH |
| 11101 | fi |
| 11102 | ;; |
| 11103 | |
| 11104 | uts4*) |
| 11105 | version_type=linux |
| 11106 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 11107 | soname_spec='${libname}${release}.so$major' |
| 11108 | shlibpath_var=LD_LIBRARY_PATH |
| 11109 | ;; |
| 11110 | |
| 11111 | *) |
| 11112 | dynamic_linker=no |
| 11113 | ;; |
| 11114 | esac |
| 11115 | echo "$as_me:11115: result: $dynamic_linker" >&5 |
| 11116 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 11117 | test "$dynamic_linker" = no && can_build_shared=no |
| 11118 | |
| 11119 | if test "x$enable_dlopen" != xyes; then |
| 11120 | enable_dlopen=unknown |
| 11121 | enable_dlopen_self=unknown |
| 11122 | enable_dlopen_self_static=unknown |
| 11123 | else |
| 11124 | lt_cv_dlopen=no |
| 11125 | lt_cv_dlopen_libs= |
| 11126 | |
| 11127 | case $host_os in |
| 11128 | beos*) |
| 11129 | lt_cv_dlopen="load_add_on" |
| 11130 | lt_cv_dlopen_libs= |
| 11131 | lt_cv_dlopen_self=yes |
| 11132 | ;; |
| 11133 | |
| 11134 | cygwin* | mingw* | pw32*) |
| 11135 | lt_cv_dlopen="LoadLibrary" |
| 11136 | lt_cv_dlopen_libs= |
| 11137 | ;; |
| 11138 | |
| 11139 | *) |
| 11140 | echo "$as_me:11140: checking for shl_load" >&5 |
| 11141 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| 11142 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 11143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11144 | else |
| 11145 | cat >conftest.$ac_ext <<_ACEOF |
| 11146 | #line 11146 "configure" |
| 11147 | #include "confdefs.h" |
| 11148 | /* System header to define __stub macros and hopefully few prototypes, |
| 11149 | which can conflict with char shl_load (); below. */ |
| 11150 | #include <assert.h> |
| 11151 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11152 | #ifdef __cplusplus |
| 11153 | extern "C" |
| 11154 | #endif |
| 11155 | /* We use char because int might match the return type of a gcc2 |
| 11156 | builtin and then its argument prototype would still apply. */ |
| 11157 | char shl_load (); |
| 11158 | char (*f) (); |
| 11159 | |
| 11160 | int |
| 11161 | main () |
| 11162 | { |
| 11163 | /* The GNU C library defines this for functions which it implements |
| 11164 | to always fail with ENOSYS. Some functions are actually named |
| 11165 | something starting with __ and the normal name is an alias. */ |
| 11166 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 11167 | choke me |
| 11168 | #else |
| 11169 | f = shl_load; |
| 11170 | #endif |
| 11171 | |
| 11172 | ; |
| 11173 | return 0; |
| 11174 | } |
| 11175 | _ACEOF |
| 11176 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11177 | if { (eval echo "$as_me:11177: \"$ac_link\"") >&5 |
| 11178 | (eval $ac_link) 2>&5 |
| 11179 | ac_status=$? |
| 11180 | echo "$as_me:11180: \$? = $ac_status" >&5 |
| 11181 | (exit $ac_status); } && |
| 11182 | { ac_try='test -s conftest$ac_exeext' |
| 11183 | { (eval echo "$as_me:11183: \"$ac_try\"") >&5 |
| 11184 | (eval $ac_try) 2>&5 |
| 11185 | ac_status=$? |
| 11186 | echo "$as_me:11186: \$? = $ac_status" >&5 |
| 11187 | (exit $ac_status); }; }; then |
| 11188 | ac_cv_func_shl_load=yes |
| 11189 | else |
| 11190 | echo "$as_me: failed program was:" >&5 |
| 11191 | cat conftest.$ac_ext >&5 |
| 11192 | ac_cv_func_shl_load=no |
| 11193 | fi |
| 11194 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11195 | fi |
| 11196 | echo "$as_me:11196: result: $ac_cv_func_shl_load" >&5 |
| 11197 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| 11198 | if test $ac_cv_func_shl_load = yes; then |
| 11199 | lt_cv_dlopen="shl_load" |
| 11200 | else |
| 11201 | echo "$as_me:11201: checking for shl_load in -ldld" >&5 |
| 11202 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 11203 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 11204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11205 | else |
| 11206 | ac_check_lib_save_LIBS=$LIBS |
| 11207 | LIBS="-ldld $LIBS" |
| 11208 | cat >conftest.$ac_ext <<_ACEOF |
| 11209 | #line 11209 "configure" |
| 11210 | #include "confdefs.h" |
| 11211 | |
| 11212 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11213 | #ifdef __cplusplus |
| 11214 | extern "C" |
| 11215 | #endif |
| 11216 | /* We use char because int might match the return type of a gcc2 |
| 11217 | builtin and then its argument prototype would still apply. */ |
| 11218 | char shl_load (); |
| 11219 | int |
| 11220 | main () |
| 11221 | { |
| 11222 | shl_load (); |
| 11223 | ; |
| 11224 | return 0; |
| 11225 | } |
| 11226 | _ACEOF |
| 11227 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11228 | if { (eval echo "$as_me:11228: \"$ac_link\"") >&5 |
| 11229 | (eval $ac_link) 2>&5 |
| 11230 | ac_status=$? |
| 11231 | echo "$as_me:11231: \$? = $ac_status" >&5 |
| 11232 | (exit $ac_status); } && |
| 11233 | { ac_try='test -s conftest$ac_exeext' |
| 11234 | { (eval echo "$as_me:11234: \"$ac_try\"") >&5 |
| 11235 | (eval $ac_try) 2>&5 |
| 11236 | ac_status=$? |
| 11237 | echo "$as_me:11237: \$? = $ac_status" >&5 |
| 11238 | (exit $ac_status); }; }; then |
| 11239 | ac_cv_lib_dld_shl_load=yes |
| 11240 | else |
| 11241 | echo "$as_me: failed program was:" >&5 |
| 11242 | cat conftest.$ac_ext >&5 |
| 11243 | ac_cv_lib_dld_shl_load=no |
| 11244 | fi |
| 11245 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11246 | LIBS=$ac_check_lib_save_LIBS |
| 11247 | fi |
| 11248 | echo "$as_me:11248: result: $ac_cv_lib_dld_shl_load" >&5 |
| 11249 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 11250 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 11251 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 11252 | else |
| 11253 | echo "$as_me:11253: checking for dlopen in -ldl" >&5 |
| 11254 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 11255 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 11256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11257 | else |
| 11258 | ac_check_lib_save_LIBS=$LIBS |
| 11259 | LIBS="-ldl $LIBS" |
| 11260 | cat >conftest.$ac_ext <<_ACEOF |
| 11261 | #line 11261 "configure" |
| 11262 | #include "confdefs.h" |
| 11263 | |
| 11264 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11265 | #ifdef __cplusplus |
| 11266 | extern "C" |
| 11267 | #endif |
| 11268 | /* We use char because int might match the return type of a gcc2 |
| 11269 | builtin and then its argument prototype would still apply. */ |
| 11270 | char dlopen (); |
| 11271 | int |
| 11272 | main () |
| 11273 | { |
| 11274 | dlopen (); |
| 11275 | ; |
| 11276 | return 0; |
| 11277 | } |
| 11278 | _ACEOF |
| 11279 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11280 | if { (eval echo "$as_me:11280: \"$ac_link\"") >&5 |
| 11281 | (eval $ac_link) 2>&5 |
| 11282 | ac_status=$? |
| 11283 | echo "$as_me:11283: \$? = $ac_status" >&5 |
| 11284 | (exit $ac_status); } && |
| 11285 | { ac_try='test -s conftest$ac_exeext' |
| 11286 | { (eval echo "$as_me:11286: \"$ac_try\"") >&5 |
| 11287 | (eval $ac_try) 2>&5 |
| 11288 | ac_status=$? |
| 11289 | echo "$as_me:11289: \$? = $ac_status" >&5 |
| 11290 | (exit $ac_status); }; }; then |
| 11291 | ac_cv_lib_dl_dlopen=yes |
| 11292 | else |
| 11293 | echo "$as_me: failed program was:" >&5 |
| 11294 | cat conftest.$ac_ext >&5 |
| 11295 | ac_cv_lib_dl_dlopen=no |
| 11296 | fi |
| 11297 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11298 | LIBS=$ac_check_lib_save_LIBS |
| 11299 | fi |
| 11300 | echo "$as_me:11300: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11301 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 11302 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 11303 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11304 | else |
| 11305 | echo "$as_me:11305: checking for dlopen" >&5 |
| 11306 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| 11307 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 11308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11309 | else |
| 11310 | cat >conftest.$ac_ext <<_ACEOF |
| 11311 | #line 11311 "configure" |
| 11312 | #include "confdefs.h" |
| 11313 | /* System header to define __stub macros and hopefully few prototypes, |
| 11314 | which can conflict with char dlopen (); below. */ |
| 11315 | #include <assert.h> |
| 11316 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11317 | #ifdef __cplusplus |
| 11318 | extern "C" |
| 11319 | #endif |
| 11320 | /* We use char because int might match the return type of a gcc2 |
| 11321 | builtin and then its argument prototype would still apply. */ |
| 11322 | char dlopen (); |
| 11323 | char (*f) (); |
| 11324 | |
| 11325 | int |
| 11326 | main () |
| 11327 | { |
| 11328 | /* The GNU C library defines this for functions which it implements |
| 11329 | to always fail with ENOSYS. Some functions are actually named |
| 11330 | something starting with __ and the normal name is an alias. */ |
| 11331 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 11332 | choke me |
| 11333 | #else |
| 11334 | f = dlopen; |
| 11335 | #endif |
| 11336 | |
| 11337 | ; |
| 11338 | return 0; |
| 11339 | } |
| 11340 | _ACEOF |
| 11341 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11342 | if { (eval echo "$as_me:11342: \"$ac_link\"") >&5 |
| 11343 | (eval $ac_link) 2>&5 |
| 11344 | ac_status=$? |
| 11345 | echo "$as_me:11345: \$? = $ac_status" >&5 |
| 11346 | (exit $ac_status); } && |
| 11347 | { ac_try='test -s conftest$ac_exeext' |
| 11348 | { (eval echo "$as_me:11348: \"$ac_try\"") >&5 |
| 11349 | (eval $ac_try) 2>&5 |
| 11350 | ac_status=$? |
| 11351 | echo "$as_me:11351: \$? = $ac_status" >&5 |
| 11352 | (exit $ac_status); }; }; then |
| 11353 | ac_cv_func_dlopen=yes |
| 11354 | else |
| 11355 | echo "$as_me: failed program was:" >&5 |
| 11356 | cat conftest.$ac_ext >&5 |
| 11357 | ac_cv_func_dlopen=no |
| 11358 | fi |
| 11359 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11360 | fi |
| 11361 | echo "$as_me:11361: result: $ac_cv_func_dlopen" >&5 |
| 11362 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| 11363 | if test $ac_cv_func_dlopen = yes; then |
| 11364 | lt_cv_dlopen="dlopen" |
| 11365 | else |
| 11366 | echo "$as_me:11366: checking for dlopen in -lsvld" >&5 |
| 11367 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| 11368 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 11369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11370 | else |
| 11371 | ac_check_lib_save_LIBS=$LIBS |
| 11372 | LIBS="-lsvld $LIBS" |
| 11373 | cat >conftest.$ac_ext <<_ACEOF |
| 11374 | #line 11374 "configure" |
| 11375 | #include "confdefs.h" |
| 11376 | |
| 11377 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11378 | #ifdef __cplusplus |
| 11379 | extern "C" |
| 11380 | #endif |
| 11381 | /* We use char because int might match the return type of a gcc2 |
| 11382 | builtin and then its argument prototype would still apply. */ |
| 11383 | char dlopen (); |
| 11384 | int |
| 11385 | main () |
| 11386 | { |
| 11387 | dlopen (); |
| 11388 | ; |
| 11389 | return 0; |
| 11390 | } |
| 11391 | _ACEOF |
| 11392 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11393 | if { (eval echo "$as_me:11393: \"$ac_link\"") >&5 |
| 11394 | (eval $ac_link) 2>&5 |
| 11395 | ac_status=$? |
| 11396 | echo "$as_me:11396: \$? = $ac_status" >&5 |
| 11397 | (exit $ac_status); } && |
| 11398 | { ac_try='test -s conftest$ac_exeext' |
| 11399 | { (eval echo "$as_me:11399: \"$ac_try\"") >&5 |
| 11400 | (eval $ac_try) 2>&5 |
| 11401 | ac_status=$? |
| 11402 | echo "$as_me:11402: \$? = $ac_status" >&5 |
| 11403 | (exit $ac_status); }; }; then |
| 11404 | ac_cv_lib_svld_dlopen=yes |
| 11405 | else |
| 11406 | echo "$as_me: failed program was:" >&5 |
| 11407 | cat conftest.$ac_ext >&5 |
| 11408 | ac_cv_lib_svld_dlopen=no |
| 11409 | fi |
| 11410 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11411 | LIBS=$ac_check_lib_save_LIBS |
| 11412 | fi |
| 11413 | echo "$as_me:11413: result: $ac_cv_lib_svld_dlopen" >&5 |
| 11414 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| 11415 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 11416 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 11417 | fi |
| 11418 | |
| 11419 | fi |
| 11420 | |
| 11421 | fi |
| 11422 | |
| 11423 | fi |
| 11424 | |
| 11425 | fi |
| 11426 | |
| 11427 | ;; |
| 11428 | esac |
| 11429 | |
| 11430 | if test "x$lt_cv_dlopen" != xno; then |
| 11431 | enable_dlopen=yes |
| 11432 | else |
| 11433 | enable_dlopen=no |
| 11434 | fi |
| 11435 | |
| 11436 | case $lt_cv_dlopen in |
| 11437 | dlopen) |
| 11438 | save_CPPFLAGS="$CPPFLAGS" |
| 11439 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 11440 | |
| 11441 | save_LDFLAGS="$LDFLAGS" |
| 11442 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 11443 | |
| 11444 | save_LIBS="$LIBS" |
| 11445 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 11446 | |
| 11447 | echo "$as_me:11447: checking whether a program can dlopen itself" >&5 |
| 11448 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| 11449 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 11450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11451 | else |
| 11452 | if test "$cross_compiling" = yes; then : |
| 11453 | lt_cv_dlopen_self=cross |
| 11454 | else |
| 11455 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11456 | lt_status=$lt_dlunknown |
| 11457 | cat > conftest.$ac_ext <<EOF |
| 11458 | #line 11458 "configure" |
| 11459 | #include "confdefs.h" |
| 11460 | |
| 11461 | #if HAVE_DLFCN_H |
| 11462 | #include <dlfcn.h> |
| 11463 | #endif |
| 11464 | |
| 11465 | #include <stdio.h> |
| 11466 | |
| 11467 | #ifdef RTLD_GLOBAL |
| 11468 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11469 | #else |
| 11470 | # ifdef DL_GLOBAL |
| 11471 | # define LT_DLGLOBAL DL_GLOBAL |
| 11472 | # else |
| 11473 | # define LT_DLGLOBAL 0 |
| 11474 | # endif |
| 11475 | #endif |
| 11476 | |
| 11477 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11478 | find out it does not work in some platform. */ |
| 11479 | #ifndef LT_DLLAZY_OR_NOW |
| 11480 | # ifdef RTLD_LAZY |
| 11481 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11482 | # else |
| 11483 | # ifdef DL_LAZY |
| 11484 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11485 | # else |
| 11486 | # ifdef RTLD_NOW |
| 11487 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11488 | # else |
| 11489 | # ifdef DL_NOW |
| 11490 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11491 | # else |
| 11492 | # define LT_DLLAZY_OR_NOW 0 |
| 11493 | # endif |
| 11494 | # endif |
| 11495 | # endif |
| 11496 | # endif |
| 11497 | #endif |
| 11498 | |
| 11499 | #ifdef __cplusplus |
| 11500 | extern "C" void exit (int); |
| 11501 | #endif |
| 11502 | |
| 11503 | void fnord() { int i=42;} |
| 11504 | int main () |
| 11505 | { |
| 11506 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11507 | int status = $lt_dlunknown; |
| 11508 | |
| 11509 | if (self) |
| 11510 | { |
| 11511 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11512 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11513 | /* dlclose (self); */ |
| 11514 | } |
| 11515 | |
| 11516 | exit (status); |
| 11517 | } |
| 11518 | EOF |
| 11519 | if { (eval echo "$as_me:11519: \"$ac_link\"") >&5 |
| 11520 | (eval $ac_link) 2>&5 |
| 11521 | ac_status=$? |
| 11522 | echo "$as_me:11522: \$? = $ac_status" >&5 |
| 11523 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 11524 | (./conftest; exit; ) 2>/dev/null |
| 11525 | lt_status=$? |
| 11526 | case x$lt_status in |
| 11527 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 11528 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 11529 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 11530 | esac |
| 11531 | else : |
| 11532 | # compilation failed |
| 11533 | lt_cv_dlopen_self=no |
| 11534 | fi |
| 11535 | fi |
| 11536 | rm -fr conftest* |
| 11537 | |
| 11538 | fi |
| 11539 | echo "$as_me:11539: result: $lt_cv_dlopen_self" >&5 |
| 11540 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| 11541 | |
| 11542 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 11543 | LDFLAGS="$LDFLAGS $link_static_flag" |
| 11544 | echo "$as_me:11544: checking whether a statically linked program can dlopen itself" >&5 |
| 11545 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| 11546 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 11547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11548 | else |
| 11549 | if test "$cross_compiling" = yes; then : |
| 11550 | lt_cv_dlopen_self_static=cross |
| 11551 | else |
| 11552 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11553 | lt_status=$lt_dlunknown |
| 11554 | cat > conftest.$ac_ext <<EOF |
| 11555 | #line 11555 "configure" |
| 11556 | #include "confdefs.h" |
| 11557 | |
| 11558 | #if HAVE_DLFCN_H |
| 11559 | #include <dlfcn.h> |
| 11560 | #endif |
| 11561 | |
| 11562 | #include <stdio.h> |
| 11563 | |
| 11564 | #ifdef RTLD_GLOBAL |
| 11565 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11566 | #else |
| 11567 | # ifdef DL_GLOBAL |
| 11568 | # define LT_DLGLOBAL DL_GLOBAL |
| 11569 | # else |
| 11570 | # define LT_DLGLOBAL 0 |
| 11571 | # endif |
| 11572 | #endif |
| 11573 | |
| 11574 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11575 | find out it does not work in some platform. */ |
| 11576 | #ifndef LT_DLLAZY_OR_NOW |
| 11577 | # ifdef RTLD_LAZY |
| 11578 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11579 | # else |
| 11580 | # ifdef DL_LAZY |
| 11581 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11582 | # else |
| 11583 | # ifdef RTLD_NOW |
| 11584 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11585 | # else |
| 11586 | # ifdef DL_NOW |
| 11587 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11588 | # else |
| 11589 | # define LT_DLLAZY_OR_NOW 0 |
| 11590 | # endif |
| 11591 | # endif |
| 11592 | # endif |
| 11593 | # endif |
| 11594 | #endif |
| 11595 | |
| 11596 | #ifdef __cplusplus |
| 11597 | extern "C" void exit (int); |
| 11598 | #endif |
| 11599 | |
| 11600 | void fnord() { int i=42;} |
| 11601 | int main () |
| 11602 | { |
| 11603 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11604 | int status = $lt_dlunknown; |
| 11605 | |
| 11606 | if (self) |
| 11607 | { |
| 11608 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11609 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11610 | /* dlclose (self); */ |
| 11611 | } |
| 11612 | |
| 11613 | exit (status); |
| 11614 | } |
| 11615 | EOF |
| 11616 | if { (eval echo "$as_me:11616: \"$ac_link\"") >&5 |
| 11617 | (eval $ac_link) 2>&5 |
| 11618 | ac_status=$? |
| 11619 | echo "$as_me:11619: \$? = $ac_status" >&5 |
| 11620 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 11621 | (./conftest; exit; ) 2>/dev/null |
| 11622 | lt_status=$? |
| 11623 | case x$lt_status in |
| 11624 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11625 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11626 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 11627 | esac |
| 11628 | else : |
| 11629 | # compilation failed |
| 11630 | lt_cv_dlopen_self_static=no |
| 11631 | fi |
| 11632 | fi |
| 11633 | rm -fr conftest* |
| 11634 | |
| 11635 | fi |
| 11636 | echo "$as_me:11636: result: $lt_cv_dlopen_self_static" >&5 |
| 11637 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| 11638 | fi |
| 11639 | |
| 11640 | CPPFLAGS="$save_CPPFLAGS" |
| 11641 | LDFLAGS="$save_LDFLAGS" |
| 11642 | LIBS="$save_LIBS" |
| 11643 | ;; |
| 11644 | esac |
| 11645 | |
| 11646 | case $lt_cv_dlopen_self in |
| 11647 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 11648 | *) enable_dlopen_self=unknown ;; |
| 11649 | esac |
| 11650 | |
| 11651 | case $lt_cv_dlopen_self_static in |
| 11652 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 11653 | *) enable_dlopen_self_static=unknown ;; |
| 11654 | esac |
| 11655 | fi |
| 11656 | |
| 11657 | # The else clause should only fire when bootstrapping the |
| 11658 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 11659 | # with your package, and you will get complaints that there are |
| 11660 | # no rules to generate ltmain.sh. |
| 11661 | if test -f "$ltmain"; then |
| 11662 | # Now quote all the things that may contain metacharacters while being |
| 11663 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 11664 | # variables and quote the copies for generation of the libtool script. |
| 11665 | for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S NM SHELL \ |
| 11666 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 11667 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 11668 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 11669 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 11670 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 11671 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 11672 | old_postinstall_cmds old_postuninstall_cmds \ |
| 11673 | compiler_GCJ \ |
| 11674 | CC_GCJ \ |
| 11675 | LD_GCJ \ |
| 11676 | lt_prog_compiler_wl_GCJ \ |
| 11677 | lt_prog_compiler_pic_GCJ \ |
| 11678 | lt_prog_compiler_static_GCJ \ |
| 11679 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 11680 | export_dynamic_flag_spec_GCJ \ |
| 11681 | thread_safe_flag_spec_GCJ \ |
| 11682 | whole_archive_flag_spec_GCJ \ |
| 11683 | old_archive_cmds_GCJ \ |
| 11684 | old_archive_from_new_cmds_GCJ \ |
| 11685 | predep_objects_GCJ \ |
| 11686 | postdep_objects_GCJ \ |
| 11687 | predeps_GCJ \ |
| 11688 | postdeps_GCJ \ |
| 11689 | compiler_lib_search_path_GCJ \ |
| 11690 | archive_cmds_GCJ \ |
| 11691 | archive_expsym_cmds_GCJ \ |
| 11692 | postinstall_cmds_GCJ \ |
| 11693 | postuninstall_cmds_GCJ \ |
| 11694 | old_archive_from_expsyms_cmds_GCJ \ |
| 11695 | allow_undefined_flag_GCJ \ |
| 11696 | no_undefined_flag_GCJ \ |
| 11697 | export_symbols_cmds_GCJ \ |
| 11698 | hardcode_libdir_flag_spec_GCJ \ |
| 11699 | hardcode_libdir_separator_GCJ \ |
| 11700 | lt_cv_prog_compiler_c_o_GCJ \ |
| 11701 | exclude_expsyms_GCJ \ |
| 11702 | include_expsyms_GCJ; do |
| 11703 | |
| 11704 | case $var in |
| 11705 | old_archive_cmds_GCJ | \ |
| 11706 | old_archive_from_new_cmds_GCJ | \ |
| 11707 | archive_cmds_GCJ | \ |
| 11708 | archive_expsym_cmds_GCJ | \ |
| 11709 | old_archive_from_expsyms_cmds_GCJ | \ |
| 11710 | export_symbols_cmds_GCJ | \ |
| 11711 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 11712 | postinstall_cmds | postuninstall_cmds | \ |
| 11713 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 11714 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 11715 | # Double-quote double-evaled strings. |
| 11716 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 11717 | ;; |
| 11718 | *) |
| 11719 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 11720 | ;; |
| 11721 | esac |
| 11722 | done |
| 11723 | |
| 11724 | case $lt_echo in |
| 11725 | *'\$0 --fallback-echo"') |
| 11726 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 11727 | ;; |
| 11728 | esac |
| 11729 | |
| 11730 | cfgfile="$ofile" |
| 11731 | |
| 11732 | cat <<__EOF__ >> "$cfgfile" |
| 11733 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 11734 | |
| 11735 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 11736 | |
| 11737 | # Shell to use when invoking shell scripts. |
| 11738 | SHELL=$lt_SHELL |
| 11739 | |
| 11740 | # Whether or not to build shared libraries. |
| 11741 | build_libtool_libs=$enable_shared |
| 11742 | |
| 11743 | # Whether or not to build static libraries. |
| 11744 | build_old_libs=$enable_static |
| 11745 | |
| 11746 | # Whether or not to add -lc for building shared libraries. |
| 11747 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 11748 | |
| 11749 | # Whether or not to optimize for fast installation. |
| 11750 | fast_install=$enable_fast_install |
| 11751 | |
| 11752 | # The host system. |
| 11753 | host_alias=$host_alias |
| 11754 | host=$host |
| 11755 | |
| 11756 | # An echo program that does not interpret backslashes. |
| 11757 | echo=$lt_echo |
| 11758 | |
| 11759 | # The archiver. |
| 11760 | AR=$lt_AR |
| 11761 | AR_FLAGS=$lt_AR_FLAGS |
| 11762 | |
| 11763 | # A C compiler. |
| 11764 | LTCC=$LTCC |
| 11765 | |
| 11766 | # A language-specific compiler. |
| 11767 | CC=$lt_compiler_GCJ |
| 11768 | |
| 11769 | # Is the compiler the GNU C compiler? |
| 11770 | with_gcc=$GCC_GCJ |
| 11771 | |
| 11772 | # The linker used to build libraries. |
| 11773 | LD=$lt_LD_GCJ |
| 11774 | |
| 11775 | # Whether we need hard or soft links. |
| 11776 | LN_S=$lt_LN_S |
| 11777 | |
| 11778 | # A BSD-compatible nm program. |
| 11779 | NM=$lt_NM |
| 11780 | |
| 11781 | # A symbol stripping program |
| 11782 | STRIP=$STRIP |
| 11783 | |
| 11784 | # Used to examine libraries when file_magic_cmd begins "file" |
| 11785 | MAGIC_CMD=$MAGIC_CMD |
| 11786 | |
| 11787 | # Used on cygwin: DLL creation program. |
| 11788 | DLLTOOL="$DLLTOOL" |
| 11789 | |
| 11790 | # Used on cygwin: object dumper. |
| 11791 | OBJDUMP="$OBJDUMP" |
| 11792 | |
| 11793 | # Used on cygwin: assembler. |
| 11794 | AS="$AS" |
| 11795 | |
| 11796 | # The name of the directory that contains temporary libtool files. |
| 11797 | objdir=$objdir |
| 11798 | |
| 11799 | # How to create reloadable object files. |
| 11800 | reload_flag=$lt_reload_flag |
| 11801 | reload_cmds=$lt_reload_cmds |
| 11802 | |
| 11803 | # How to pass a linker flag through the compiler. |
| 11804 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 11805 | |
| 11806 | # Object file suffix (normally "o"). |
| 11807 | objext="$ac_objext" |
| 11808 | |
| 11809 | # Old archive suffix (normally "a"). |
| 11810 | libext="$libext" |
| 11811 | |
| 11812 | # Executable file suffix (normally ""). |
| 11813 | exeext="$exeext" |
| 11814 | |
| 11815 | # Additional compiler flags for building library objects. |
| 11816 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 11817 | pic_mode=$pic_mode |
| 11818 | |
| 11819 | # What is the maximum length of a command? |
| 11820 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 11821 | |
| 11822 | # Does compiler simultaneously support -c and -o options? |
| 11823 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 11824 | |
| 11825 | # Must we lock files when doing compilation ? |
| 11826 | need_locks=$lt_need_locks |
| 11827 | |
| 11828 | # Do we need the lib prefix for modules? |
| 11829 | need_lib_prefix=$need_lib_prefix |
| 11830 | |
| 11831 | # Do we need a version for libraries? |
| 11832 | need_version=$need_version |
| 11833 | |
| 11834 | # Whether dlopen is supported. |
| 11835 | dlopen_support=$enable_dlopen |
| 11836 | |
| 11837 | # Whether dlopen of programs is supported. |
| 11838 | dlopen_self=$enable_dlopen_self |
| 11839 | |
| 11840 | # Whether dlopen of statically linked programs is supported. |
| 11841 | dlopen_self_static=$enable_dlopen_self_static |
| 11842 | |
| 11843 | # Compiler flag to prevent dynamic linking. |
| 11844 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 11845 | |
| 11846 | # Compiler flag to turn off builtin functions. |
| 11847 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 11848 | |
| 11849 | # Compiler flag to allow reflexive dlopens. |
| 11850 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 11851 | |
| 11852 | # Compiler flag to generate shared objects directly from archives. |
| 11853 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 11854 | |
| 11855 | # Compiler flag to generate thread-safe objects. |
| 11856 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 11857 | |
| 11858 | # Library versioning type. |
| 11859 | version_type=$version_type |
| 11860 | |
| 11861 | # Format of library name prefix. |
| 11862 | libname_spec=$lt_libname_spec |
| 11863 | |
| 11864 | # List of archive names. First name is the real one, the rest are links. |
| 11865 | # The last name is the one that the linker finds with -lNAME. |
| 11866 | library_names_spec=$lt_library_names_spec |
| 11867 | |
| 11868 | # The coded name of the library, if different from the real name. |
| 11869 | soname_spec=$lt_soname_spec |
| 11870 | |
| 11871 | # Commands used to build and install an old-style archive. |
| 11872 | RANLIB=$lt_RANLIB |
| 11873 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 11874 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 11875 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 11876 | |
| 11877 | # Create an old-style archive from a shared archive. |
| 11878 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 11879 | |
| 11880 | # Create a temporary old-style archive to link instead of a shared archive. |
| 11881 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 11882 | |
| 11883 | # Commands used to build and install a shared archive. |
| 11884 | archive_cmds=$lt_archive_cmds_GCJ |
| 11885 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 11886 | postinstall_cmds=$lt_postinstall_cmds |
| 11887 | postuninstall_cmds=$lt_postuninstall_cmds |
| 11888 | |
| 11889 | # Commands to strip libraries. |
| 11890 | old_striplib=$lt_old_striplib |
| 11891 | striplib=$lt_striplib |
| 11892 | |
| 11893 | # Dependencies to place before the objects being linked to create a |
| 11894 | # shared library. |
| 11895 | predep_objects=$lt_predep_objects_GCJ |
| 11896 | |
| 11897 | # Dependencies to place after the objects being linked to create a |
| 11898 | # shared library. |
| 11899 | postdep_objects=$lt_postdep_objects_GCJ |
| 11900 | |
| 11901 | # Dependencies to place before the objects being linked to create a |
| 11902 | # shared library. |
| 11903 | predeps=$lt_predeps_GCJ |
| 11904 | |
| 11905 | # Dependencies to place after the objects being linked to create a |
| 11906 | # shared library. |
| 11907 | postdeps=$lt_postdeps_GCJ |
| 11908 | |
| 11909 | # The library search path used internally by the compiler when linking |
| 11910 | # a shared library. |
| 11911 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 11912 | |
| 11913 | # Method to check whether dependent libraries are shared objects. |
| 11914 | deplibs_check_method=$lt_deplibs_check_method |
| 11915 | |
| 11916 | # Command to use when deplibs_check_method == file_magic. |
| 11917 | file_magic_cmd=$lt_file_magic_cmd |
| 11918 | |
| 11919 | # Flag that allows shared libraries with undefined symbols to be built. |
| 11920 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 11921 | |
| 11922 | # Flag that forces no undefined symbols. |
| 11923 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 11924 | |
| 11925 | # Commands used to finish a libtool library installation in a directory. |
| 11926 | finish_cmds=$lt_finish_cmds |
| 11927 | |
| 11928 | # Same as above, but a single script fragment to be evaled but not shown. |
| 11929 | finish_eval=$lt_finish_eval |
| 11930 | |
| 11931 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 11932 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 11933 | |
| 11934 | # Transform the output of nm in a proper C declaration |
| 11935 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 11936 | |
| 11937 | # Transform the output of nm in a C name address pair |
| 11938 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 11939 | |
| 11940 | # This is the shared library runtime path variable. |
| 11941 | runpath_var=$runpath_var |
| 11942 | |
| 11943 | # This is the shared library path variable. |
| 11944 | shlibpath_var=$shlibpath_var |
| 11945 | |
| 11946 | # Is shlibpath searched before the hard-coded library search path? |
| 11947 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 11948 | |
| 11949 | # How to hardcode a shared library path into an executable. |
| 11950 | hardcode_action=$hardcode_action_GCJ |
| 11951 | |
| 11952 | # Whether we should hardcode library paths into libraries. |
| 11953 | hardcode_into_libs=$hardcode_into_libs |
| 11954 | |
| 11955 | # Flag to hardcode \$libdir into a binary during linking. |
| 11956 | # This must work even if \$libdir does not exist. |
| 11957 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 11958 | |
| 11959 | # Whether we need a single -rpath flag with a separated argument. |
| 11960 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 11961 | |
| 11962 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the |
| 11963 | # resulting binary. |
| 11964 | hardcode_direct=$hardcode_direct_GCJ |
| 11965 | |
| 11966 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 11967 | # resulting binary. |
| 11968 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 11969 | |
| 11970 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 11971 | # the resulting binary. |
| 11972 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 11973 | |
| 11974 | # Variables whose values should be saved in libtool wrapper scripts and |
| 11975 | # restored at relink time. |
| 11976 | variables_saved_for_relink="$variables_saved_for_relink" |
| 11977 | |
| 11978 | # Whether libtool must link a program against all its dependency libraries. |
| 11979 | link_all_deplibs=$link_all_deplibs_GCJ |
| 11980 | |
| 11981 | # Compile-time system search path for libraries |
| 11982 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 11983 | |
| 11984 | # Run-time system search path for libraries |
| 11985 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 11986 | |
| 11987 | # Fix the shell variable \$srcfile for the compiler. |
| 11988 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 11989 | |
| 11990 | # Set to yes if exported symbols are required. |
| 11991 | always_export_symbols=$always_export_symbols_GCJ |
| 11992 | |
| 11993 | # The commands to list exported symbols. |
| 11994 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 11995 | |
| 11996 | # The commands to extract the exported symbol list from a shared archive. |
| 11997 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 11998 | |
| 11999 | # Symbols that should not be listed in the preloaded symbols. |
| 12000 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 12001 | |
| 12002 | # Symbols that must always be exported. |
| 12003 | include_expsyms=$lt_include_expsyms_GCJ |
| 12004 | |
| 12005 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 12006 | |
| 12007 | __EOF__ |
| 12008 | |
| 12009 | else |
| 12010 | # If there is no Makefile yet, we rely on a make rule to execute |
| 12011 | # `config.status --recheck' to rerun these tests and create the |
| 12012 | # libtool script then. |
| 12013 | test -f Makefile && make "$ltmain" |
| 12014 | fi |
| 12015 | |
| 12016 | ac_ext=c |
| 12017 | ac_cpp='$CPP $CPPFLAGS' |
| 12018 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12019 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12020 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12021 | |
| 12022 | CC="$lt_save_CC" |
| 12023 | |
| 12024 | ;; |
| 12025 | |
| 12026 | *) |
| 12027 | { { echo "$as_me:12027: error: Unsupported tag name: $tagname" >&5 |
| 12028 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 12029 | { (exit 1); exit 1; }; } |
| 12030 | ;; |
| 12031 | esac |
| 12032 | |
| 12033 | # Append the new tag name to the list of available tags. |
| 12034 | available_tags="$available_tags $tagname" |
| 12035 | fi |
| 12036 | done |
| 12037 | IFS="$lt_save_ifs" |
| 12038 | |
| 12039 | # Now substitute the updated list of available tags. |
| 12040 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 12041 | mv "${ofile}T" "$ofile" |
| 12042 | chmod +x "$ofile" |
| 12043 | else |
| 12044 | rm -f "${ofile}T" |
| 12045 | { { echo "$as_me:12045: error: unable to update list of available tagged configurations." >&5 |
| 12046 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 12047 | { (exit 1); exit 1; }; } |
| 12048 | fi |
| 12049 | fi |
| 12050 | |
| 12051 | # This can be used to rebuild libtool when needed |
| 12052 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 12053 | |
| 12054 | # Always use our own libtool. |
| 12055 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 12056 | |
| 12057 | # Prevent multiple expansion |
| 12058 | |
| 12059 | # Find a good install program. We prefer a C program (faster), |
| 12060 | # so one script is as good as another. But avoid the broken or |
| 12061 | # incompatible versions: |
| 12062 | # SysV /etc/install, /usr/sbin/install |
| 12063 | # SunOS /usr/etc/install |
| 12064 | # IRIX /sbin/install |
| 12065 | # AIX /bin/install |
| 12066 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 12067 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 12068 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 12069 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 12070 | # ./install, which can be erroneously created by make from ./install.sh. |
| 12071 | echo "$as_me:12071: checking for a BSD compatible install" >&5 |
| 12072 | echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 |
| 12073 | if test -z "$INSTALL"; then |
| 12074 | if test "${ac_cv_path_install+set}" = set; then |
| 12075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12076 | else |
| 12077 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 12078 | for ac_dir in $PATH; do |
| 12079 | IFS=$ac_save_IFS |
| 12080 | # Account for people who put trailing slashes in PATH elements. |
| 12081 | case $ac_dir/ in |
| 12082 | / | ./ | .// | /cC/* \ |
| 12083 | | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ |
| 12084 | | /usr/ucb/* ) ;; |
| 12085 | *) |
| 12086 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 12087 | # Don't use installbsd from OSF since it installs stuff as root |
| 12088 | # by default. |
| 12089 | for ac_prog in ginstall scoinst install; do |
| 12090 | if $as_executable_p "$ac_dir/$ac_prog"; then |
| 12091 | if test $ac_prog = install && |
| 12092 | grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then |
| 12093 | # AIX install. It has an incompatible calling convention. |
| 12094 | : |
| 12095 | elif test $ac_prog = install && |
| 12096 | grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then |
| 12097 | # program-specific install script used by HP pwplus--don't use. |
| 12098 | : |
| 12099 | else |
| 12100 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 12101 | break 2 |
| 12102 | fi |
| 12103 | fi |
| 12104 | done |
| 12105 | ;; |
| 12106 | esac |
| 12107 | done |
| 12108 | |
| 12109 | fi |
| 12110 | if test "${ac_cv_path_install+set}" = set; then |
| 12111 | INSTALL=$ac_cv_path_install |
| 12112 | else |
| 12113 | # As a last resort, use the slow shell script. We don't cache a |
| 12114 | # path for INSTALL within a source directory, because that will |
| 12115 | # break other packages using the cache if that directory is |
| 12116 | # removed, or if the path is relative. |
| 12117 | INSTALL=$ac_install_sh |
| 12118 | fi |
| 12119 | fi |
| 12120 | echo "$as_me:12120: result: $INSTALL" >&5 |
| 12121 | echo "${ECHO_T}$INSTALL" >&6 |
| 12122 | |
| 12123 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 12124 | # It thinks the first close brace ends the variable substitution. |
| 12125 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 12126 | |
| 12127 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 12128 | |
| 12129 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 12130 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12131 | ######### |
| 12132 | # Set up an appropriate program prefix |
| 12133 | # |
| 12134 | if test "$program_prefix" = "NONE"; then |
| 12135 | program_prefix="" |
| 12136 | fi |
| 12137 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12138 | ######### |
| 12139 | # Check to see if the --with-hints=FILE option is used. If there is none, |
| 12140 | # then check for a files named "$host.hints" and ../$hosts.hints where |
| 12141 | # $host is the hostname of the build system. If still no hints are |
| 12142 | # found, try looking in $system.hints and ../$system.hints where |
| 12143 | # $system is the result of uname -s. |
| 12144 | # |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12145 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12146 | # Check whether --with-hints or --without-hints was given. |
| 12147 | if test "${with_hints+set}" = set; then |
| 12148 | withval="$with_hints" |
| 12149 | hints=$withval |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12150 | fi; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12151 | if test "$hints" = ""; then |
| 12152 | host=`hostname | sed 's/\..*//'` |
| 12153 | if test -r $host.hints; then |
| 12154 | hints=$host.hints |
| 12155 | else |
| 12156 | if test -r ../$host.hints; then |
| 12157 | hints=../$host.hints |
| 12158 | fi |
| 12159 | fi |
| 12160 | fi |
| 12161 | if test "$hints" = ""; then |
| 12162 | sys=`uname -s` |
| 12163 | if test -r $sys.hints; then |
| 12164 | hints=$sys.hints |
| 12165 | else |
| 12166 | if test -r ../$sys.hints; then |
| 12167 | hints=../$sys.hints |
| 12168 | fi |
| 12169 | fi |
| 12170 | fi |
| 12171 | if test "$hints" != ""; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12172 | echo "$as_me:12172: result: reading hints from $hints" >&5 |
| 12173 | echo "${ECHO_T}reading hints from $hints" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12174 | . $hints |
| 12175 | fi |
| 12176 | |
| 12177 | ######### |
| 12178 | # Locate a compiler for the build machine. This compiler should |
| 12179 | # generate command-line programs that run on the build machine. |
| 12180 | # |
| 12181 | default_build_cflags="-g" |
| 12182 | if test "$config_BUILD_CC" = ""; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12183 | ac_ext=c |
| 12184 | ac_cpp='$CPP $CPPFLAGS' |
| 12185 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12186 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12187 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12188 | if test -n "$ac_tool_prefix"; then |
| 12189 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 12190 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 12191 | echo "$as_me:12191: checking for $ac_word" >&5 |
| 12192 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 12193 | if test "${ac_cv_prog_CC+set}" = set; then |
| 12194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12195 | else |
| 12196 | if test -n "$CC"; then |
| 12197 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 12198 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12199 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 12200 | ac_dummy="$PATH" |
| 12201 | for ac_dir in $ac_dummy; do |
| 12202 | IFS=$ac_save_IFS |
| 12203 | test -z "$ac_dir" && ac_dir=. |
| 12204 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 12205 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 12206 | echo "$as_me:12206: found $ac_dir/$ac_word" >&5 |
| 12207 | break |
| 12208 | done |
| 12209 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12210 | fi |
| 12211 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12212 | CC=$ac_cv_prog_CC |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12213 | if test -n "$CC"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12214 | echo "$as_me:12214: result: $CC" >&5 |
| 12215 | echo "${ECHO_T}$CC" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12216 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12217 | echo "$as_me:12217: result: no" >&5 |
| 12218 | echo "${ECHO_T}no" >&6 |
| 12219 | fi |
| 12220 | |
| 12221 | fi |
| 12222 | if test -z "$ac_cv_prog_CC"; then |
| 12223 | ac_ct_CC=$CC |
| 12224 | # Extract the first word of "gcc", so it can be a program name with args. |
| 12225 | set dummy gcc; ac_word=$2 |
| 12226 | echo "$as_me:12226: checking for $ac_word" >&5 |
| 12227 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 12228 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 12229 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12230 | else |
| 12231 | if test -n "$ac_ct_CC"; then |
| 12232 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 12233 | else |
| 12234 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 12235 | ac_dummy="$PATH" |
| 12236 | for ac_dir in $ac_dummy; do |
| 12237 | IFS=$ac_save_IFS |
| 12238 | test -z "$ac_dir" && ac_dir=. |
| 12239 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 12240 | ac_cv_prog_ac_ct_CC="gcc" |
| 12241 | echo "$as_me:12241: found $ac_dir/$ac_word" >&5 |
| 12242 | break |
| 12243 | done |
| 12244 | |
| 12245 | fi |
| 12246 | fi |
| 12247 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 12248 | if test -n "$ac_ct_CC"; then |
| 12249 | echo "$as_me:12249: result: $ac_ct_CC" >&5 |
| 12250 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 12251 | else |
| 12252 | echo "$as_me:12252: result: no" >&5 |
| 12253 | echo "${ECHO_T}no" >&6 |
| 12254 | fi |
| 12255 | |
| 12256 | CC=$ac_ct_CC |
| 12257 | else |
| 12258 | CC="$ac_cv_prog_CC" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12259 | fi |
| 12260 | |
| 12261 | if test -z "$CC"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12262 | if test -n "$ac_tool_prefix"; then |
| 12263 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 12264 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 12265 | echo "$as_me:12265: checking for $ac_word" >&5 |
| 12266 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 12267 | if test "${ac_cv_prog_CC+set}" = set; then |
| 12268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12269 | else |
| 12270 | if test -n "$CC"; then |
| 12271 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 12272 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12273 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 12274 | ac_dummy="$PATH" |
| 12275 | for ac_dir in $ac_dummy; do |
| 12276 | IFS=$ac_save_IFS |
| 12277 | test -z "$ac_dir" && ac_dir=. |
| 12278 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 12279 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 12280 | echo "$as_me:12280: found $ac_dir/$ac_word" >&5 |
| 12281 | break |
| 12282 | done |
| 12283 | |
| 12284 | fi |
| 12285 | fi |
| 12286 | CC=$ac_cv_prog_CC |
| 12287 | if test -n "$CC"; then |
| 12288 | echo "$as_me:12288: result: $CC" >&5 |
| 12289 | echo "${ECHO_T}$CC" >&6 |
| 12290 | else |
| 12291 | echo "$as_me:12291: result: no" >&5 |
| 12292 | echo "${ECHO_T}no" >&6 |
| 12293 | fi |
| 12294 | |
| 12295 | fi |
| 12296 | if test -z "$ac_cv_prog_CC"; then |
| 12297 | ac_ct_CC=$CC |
| 12298 | # Extract the first word of "cc", so it can be a program name with args. |
| 12299 | set dummy cc; ac_word=$2 |
| 12300 | echo "$as_me:12300: checking for $ac_word" >&5 |
| 12301 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 12302 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 12303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12304 | else |
| 12305 | if test -n "$ac_ct_CC"; then |
| 12306 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 12307 | else |
| 12308 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 12309 | ac_dummy="$PATH" |
| 12310 | for ac_dir in $ac_dummy; do |
| 12311 | IFS=$ac_save_IFS |
| 12312 | test -z "$ac_dir" && ac_dir=. |
| 12313 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 12314 | ac_cv_prog_ac_ct_CC="cc" |
| 12315 | echo "$as_me:12315: found $ac_dir/$ac_word" >&5 |
| 12316 | break |
| 12317 | done |
| 12318 | |
| 12319 | fi |
| 12320 | fi |
| 12321 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 12322 | if test -n "$ac_ct_CC"; then |
| 12323 | echo "$as_me:12323: result: $ac_ct_CC" >&5 |
| 12324 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 12325 | else |
| 12326 | echo "$as_me:12326: result: no" >&5 |
| 12327 | echo "${ECHO_T}no" >&6 |
| 12328 | fi |
| 12329 | |
| 12330 | CC=$ac_ct_CC |
| 12331 | else |
| 12332 | CC="$ac_cv_prog_CC" |
| 12333 | fi |
| 12334 | |
| 12335 | fi |
| 12336 | if test -z "$CC"; then |
| 12337 | # Extract the first word of "cc", so it can be a program name with args. |
| 12338 | set dummy cc; ac_word=$2 |
| 12339 | echo "$as_me:12339: checking for $ac_word" >&5 |
| 12340 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 12341 | if test "${ac_cv_prog_CC+set}" = set; then |
| 12342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12343 | else |
| 12344 | if test -n "$CC"; then |
| 12345 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 12346 | else |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12347 | ac_prog_rejected=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12348 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 12349 | ac_dummy="$PATH" |
| 12350 | for ac_dir in $ac_dummy; do |
| 12351 | IFS=$ac_save_IFS |
| 12352 | test -z "$ac_dir" && ac_dir=. |
| 12353 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 12354 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 12355 | ac_prog_rejected=yes |
| 12356 | continue |
| 12357 | fi |
| 12358 | ac_cv_prog_CC="cc" |
| 12359 | echo "$as_me:12359: found $ac_dir/$ac_word" >&5 |
| 12360 | break |
| 12361 | done |
| 12362 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12363 | if test $ac_prog_rejected = yes; then |
| 12364 | # We found a bogon in the path, so make sure we never use it. |
| 12365 | set dummy $ac_cv_prog_CC |
| 12366 | shift |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12367 | if test $# != 0; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12368 | # We chose a different compiler from the bogus one. |
| 12369 | # However, it has the same basename, so the bogon will be chosen |
| 12370 | # first if we set CC to just the basename; use the full file name. |
| 12371 | shift |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12372 | set dummy "$ac_dir/$ac_word" ${1+"$@"} |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12373 | shift |
| 12374 | ac_cv_prog_CC="$@" |
| 12375 | fi |
| 12376 | fi |
| 12377 | fi |
| 12378 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12379 | CC=$ac_cv_prog_CC |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12380 | if test -n "$CC"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12381 | echo "$as_me:12381: result: $CC" >&5 |
| 12382 | echo "${ECHO_T}$CC" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12383 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12384 | echo "$as_me:12384: result: no" >&5 |
| 12385 | echo "${ECHO_T}no" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12386 | fi |
| 12387 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12388 | fi |
| 12389 | if test -z "$CC"; then |
| 12390 | if test -n "$ac_tool_prefix"; then |
| 12391 | for ac_prog in cl |
| 12392 | do |
| 12393 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 12394 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 12395 | echo "$as_me:12395: checking for $ac_word" >&5 |
| 12396 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 12397 | if test "${ac_cv_prog_CC+set}" = set; then |
| 12398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12399 | else |
| 12400 | if test -n "$CC"; then |
| 12401 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 12402 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12403 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 12404 | ac_dummy="$PATH" |
| 12405 | for ac_dir in $ac_dummy; do |
| 12406 | IFS=$ac_save_IFS |
| 12407 | test -z "$ac_dir" && ac_dir=. |
| 12408 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 12409 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 12410 | echo "$as_me:12410: found $ac_dir/$ac_word" >&5 |
| 12411 | break |
| 12412 | done |
| 12413 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12414 | fi |
| 12415 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12416 | CC=$ac_cv_prog_CC |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12417 | if test -n "$CC"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12418 | echo "$as_me:12418: result: $CC" >&5 |
| 12419 | echo "${ECHO_T}$CC" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12420 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12421 | echo "$as_me:12421: result: no" >&5 |
| 12422 | echo "${ECHO_T}no" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12423 | fi |
| 12424 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12425 | test -n "$CC" && break |
| 12426 | done |
| 12427 | fi |
| 12428 | if test -z "$CC"; then |
| 12429 | ac_ct_CC=$CC |
| 12430 | for ac_prog in cl |
| 12431 | do |
| 12432 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 12433 | set dummy $ac_prog; ac_word=$2 |
| 12434 | echo "$as_me:12434: checking for $ac_word" >&5 |
| 12435 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 12436 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 12437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12438 | else |
| 12439 | if test -n "$ac_ct_CC"; then |
| 12440 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 12441 | else |
| 12442 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 12443 | ac_dummy="$PATH" |
| 12444 | for ac_dir in $ac_dummy; do |
| 12445 | IFS=$ac_save_IFS |
| 12446 | test -z "$ac_dir" && ac_dir=. |
| 12447 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 12448 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 12449 | echo "$as_me:12449: found $ac_dir/$ac_word" >&5 |
| 12450 | break |
| 12451 | done |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12452 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12453 | fi |
| 12454 | fi |
| 12455 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 12456 | if test -n "$ac_ct_CC"; then |
| 12457 | echo "$as_me:12457: result: $ac_ct_CC" >&5 |
| 12458 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 12459 | else |
| 12460 | echo "$as_me:12460: result: no" >&5 |
| 12461 | echo "${ECHO_T}no" >&6 |
| 12462 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12463 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12464 | test -n "$ac_ct_CC" && break |
| 12465 | done |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12466 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12467 | CC=$ac_ct_CC |
| 12468 | fi |
| 12469 | |
| 12470 | fi |
| 12471 | |
| 12472 | test -z "$CC" && { { echo "$as_me:12472: error: no acceptable cc found in \$PATH" >&5 |
| 12473 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 12474 | { (exit 1); exit 1; }; } |
| 12475 | |
| 12476 | # Provide some information about the compiler. |
| 12477 | echo "$as_me:12477:" \ |
| 12478 | "checking for C compiler version" >&5 |
| 12479 | ac_compiler=`set X $ac_compile; echo $2` |
| 12480 | { (eval echo "$as_me:12480: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 12481 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 12482 | ac_status=$? |
| 12483 | echo "$as_me:12483: \$? = $ac_status" >&5 |
| 12484 | (exit $ac_status); } |
| 12485 | { (eval echo "$as_me:12485: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 12486 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 12487 | ac_status=$? |
| 12488 | echo "$as_me:12488: \$? = $ac_status" >&5 |
| 12489 | (exit $ac_status); } |
| 12490 | { (eval echo "$as_me:12490: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 12491 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 12492 | ac_status=$? |
| 12493 | echo "$as_me:12493: \$? = $ac_status" >&5 |
| 12494 | (exit $ac_status); } |
| 12495 | |
| 12496 | echo "$as_me:12496: checking whether we are using the GNU C compiler" >&5 |
| 12497 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 12498 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 12499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12500 | else |
| 12501 | cat >conftest.$ac_ext <<_ACEOF |
| 12502 | #line 12502 "configure" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12503 | #include "confdefs.h" |
| 12504 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12505 | int |
| 12506 | main () |
| 12507 | { |
| 12508 | #ifndef __GNUC__ |
| 12509 | choke me |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12510 | #endif |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12511 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12512 | ; |
| 12513 | return 0; |
| 12514 | } |
| 12515 | _ACEOF |
| 12516 | rm -f conftest.$ac_objext |
| 12517 | if { (eval echo "$as_me:12517: \"$ac_compile\"") >&5 |
| 12518 | (eval $ac_compile) 2>&5 |
| 12519 | ac_status=$? |
| 12520 | echo "$as_me:12520: \$? = $ac_status" >&5 |
| 12521 | (exit $ac_status); } && |
| 12522 | { ac_try='test -s conftest.$ac_objext' |
| 12523 | { (eval echo "$as_me:12523: \"$ac_try\"") >&5 |
| 12524 | (eval $ac_try) 2>&5 |
| 12525 | ac_status=$? |
| 12526 | echo "$as_me:12526: \$? = $ac_status" >&5 |
| 12527 | (exit $ac_status); }; }; then |
| 12528 | ac_compiler_gnu=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12529 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12530 | echo "$as_me: failed program was:" >&5 |
| 12531 | cat conftest.$ac_ext >&5 |
| 12532 | ac_compiler_gnu=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12533 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12534 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12535 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12536 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12537 | fi |
| 12538 | echo "$as_me:12538: result: $ac_cv_c_compiler_gnu" >&5 |
| 12539 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 12540 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 12541 | ac_test_CFLAGS=${CFLAGS+set} |
| 12542 | ac_save_CFLAGS=$CFLAGS |
| 12543 | CFLAGS="-g" |
| 12544 | echo "$as_me:12544: checking whether $CC accepts -g" >&5 |
| 12545 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 12546 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 12547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12548 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12549 | cat >conftest.$ac_ext <<_ACEOF |
| 12550 | #line 12550 "configure" |
| 12551 | #include "confdefs.h" |
| 12552 | |
| 12553 | int |
| 12554 | main () |
| 12555 | { |
| 12556 | |
| 12557 | ; |
| 12558 | return 0; |
| 12559 | } |
| 12560 | _ACEOF |
| 12561 | rm -f conftest.$ac_objext |
| 12562 | if { (eval echo "$as_me:12562: \"$ac_compile\"") >&5 |
| 12563 | (eval $ac_compile) 2>&5 |
| 12564 | ac_status=$? |
| 12565 | echo "$as_me:12565: \$? = $ac_status" >&5 |
| 12566 | (exit $ac_status); } && |
| 12567 | { ac_try='test -s conftest.$ac_objext' |
| 12568 | { (eval echo "$as_me:12568: \"$ac_try\"") >&5 |
| 12569 | (eval $ac_try) 2>&5 |
| 12570 | ac_status=$? |
| 12571 | echo "$as_me:12571: \$? = $ac_status" >&5 |
| 12572 | (exit $ac_status); }; }; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12573 | ac_cv_prog_cc_g=yes |
| 12574 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12575 | echo "$as_me: failed program was:" >&5 |
| 12576 | cat conftest.$ac_ext >&5 |
| 12577 | ac_cv_prog_cc_g=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12578 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12579 | rm -f conftest.$ac_objext conftest.$ac_ext |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12580 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12581 | echo "$as_me:12581: result: $ac_cv_prog_cc_g" >&5 |
| 12582 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12583 | if test "$ac_test_CFLAGS" = set; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12584 | CFLAGS=$ac_save_CFLAGS |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12585 | elif test $ac_cv_prog_cc_g = yes; then |
| 12586 | if test "$GCC" = yes; then |
| 12587 | CFLAGS="-g -O2" |
| 12588 | else |
| 12589 | CFLAGS="-g" |
| 12590 | fi |
| 12591 | else |
| 12592 | if test "$GCC" = yes; then |
| 12593 | CFLAGS="-O2" |
| 12594 | else |
| 12595 | CFLAGS= |
| 12596 | fi |
| 12597 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12598 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 12599 | # in C++ we need to declare it. In case someone uses the same compiler |
| 12600 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 12601 | # the declaration of exit, since it's the most demanding environment. |
| 12602 | cat >conftest.$ac_ext <<_ACEOF |
| 12603 | #ifndef __cplusplus |
| 12604 | choke me |
| 12605 | #endif |
| 12606 | _ACEOF |
| 12607 | rm -f conftest.$ac_objext |
| 12608 | if { (eval echo "$as_me:12608: \"$ac_compile\"") >&5 |
| 12609 | (eval $ac_compile) 2>&5 |
| 12610 | ac_status=$? |
| 12611 | echo "$as_me:12611: \$? = $ac_status" >&5 |
| 12612 | (exit $ac_status); } && |
| 12613 | { ac_try='test -s conftest.$ac_objext' |
| 12614 | { (eval echo "$as_me:12614: \"$ac_try\"") >&5 |
| 12615 | (eval $ac_try) 2>&5 |
| 12616 | ac_status=$? |
| 12617 | echo "$as_me:12617: \$? = $ac_status" >&5 |
| 12618 | (exit $ac_status); }; }; then |
| 12619 | for ac_declaration in \ |
| 12620 | ''\ |
| 12621 | '#include <stdlib.h>' \ |
| 12622 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 12623 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 12624 | 'extern "C" void exit (int) throw ();' \ |
| 12625 | 'extern "C" void exit (int);' \ |
| 12626 | 'void exit (int);' |
| 12627 | do |
| 12628 | cat >conftest.$ac_ext <<_ACEOF |
| 12629 | #line 12629 "configure" |
| 12630 | #include "confdefs.h" |
| 12631 | #include <stdlib.h> |
| 12632 | $ac_declaration |
| 12633 | int |
| 12634 | main () |
| 12635 | { |
| 12636 | exit (42); |
| 12637 | ; |
| 12638 | return 0; |
| 12639 | } |
| 12640 | _ACEOF |
| 12641 | rm -f conftest.$ac_objext |
| 12642 | if { (eval echo "$as_me:12642: \"$ac_compile\"") >&5 |
| 12643 | (eval $ac_compile) 2>&5 |
| 12644 | ac_status=$? |
| 12645 | echo "$as_me:12645: \$? = $ac_status" >&5 |
| 12646 | (exit $ac_status); } && |
| 12647 | { ac_try='test -s conftest.$ac_objext' |
| 12648 | { (eval echo "$as_me:12648: \"$ac_try\"") >&5 |
| 12649 | (eval $ac_try) 2>&5 |
| 12650 | ac_status=$? |
| 12651 | echo "$as_me:12651: \$? = $ac_status" >&5 |
| 12652 | (exit $ac_status); }; }; then |
| 12653 | : |
| 12654 | else |
| 12655 | echo "$as_me: failed program was:" >&5 |
| 12656 | cat conftest.$ac_ext >&5 |
| 12657 | continue |
| 12658 | fi |
| 12659 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12660 | cat >conftest.$ac_ext <<_ACEOF |
| 12661 | #line 12661 "configure" |
| 12662 | #include "confdefs.h" |
| 12663 | $ac_declaration |
| 12664 | int |
| 12665 | main () |
| 12666 | { |
| 12667 | exit (42); |
| 12668 | ; |
| 12669 | return 0; |
| 12670 | } |
| 12671 | _ACEOF |
| 12672 | rm -f conftest.$ac_objext |
| 12673 | if { (eval echo "$as_me:12673: \"$ac_compile\"") >&5 |
| 12674 | (eval $ac_compile) 2>&5 |
| 12675 | ac_status=$? |
| 12676 | echo "$as_me:12676: \$? = $ac_status" >&5 |
| 12677 | (exit $ac_status); } && |
| 12678 | { ac_try='test -s conftest.$ac_objext' |
| 12679 | { (eval echo "$as_me:12679: \"$ac_try\"") >&5 |
| 12680 | (eval $ac_try) 2>&5 |
| 12681 | ac_status=$? |
| 12682 | echo "$as_me:12682: \$? = $ac_status" >&5 |
| 12683 | (exit $ac_status); }; }; then |
| 12684 | break |
| 12685 | else |
| 12686 | echo "$as_me: failed program was:" >&5 |
| 12687 | cat conftest.$ac_ext >&5 |
| 12688 | fi |
| 12689 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12690 | done |
| 12691 | rm -f conftest* |
| 12692 | if test -n "$ac_declaration"; then |
| 12693 | echo '#ifdef __cplusplus' >>confdefs.h |
| 12694 | echo $ac_declaration >>confdefs.h |
| 12695 | echo '#endif' >>confdefs.h |
| 12696 | fi |
| 12697 | |
| 12698 | else |
| 12699 | echo "$as_me: failed program was:" >&5 |
| 12700 | cat conftest.$ac_ext >&5 |
| 12701 | fi |
| 12702 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12703 | ac_ext=c |
| 12704 | ac_cpp='$CPP $CPPFLAGS' |
| 12705 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12706 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12707 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12708 | |
| 12709 | if test "$cross_compiling" = "yes"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12710 | { { echo "$as_me:12710: error: unable to find a compiler for building build tools" >&5 |
| 12711 | echo "$as_me: error: unable to find a compiler for building build tools" >&2;} |
| 12712 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12713 | fi |
| 12714 | BUILD_CC=$CC |
| 12715 | default_build_cflags=$CFLAGS |
| 12716 | else |
| 12717 | BUILD_CC=$config_BUILD_CC |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12718 | echo "$as_me:12718: checking host compiler" >&5 |
| 12719 | echo $ECHO_N "checking host compiler... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12720 | CC=$BUILD_CC |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12721 | echo "$as_me:12721: result: $BUILD_CC" >&5 |
| 12722 | echo "${ECHO_T}$BUILD_CC" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12723 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12724 | echo "$as_me:12724: checking switches for the host compiler" >&5 |
| 12725 | echo $ECHO_N "checking switches for the host compiler... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12726 | if test "$config_BUILD_CFLAGS" != ""; then |
| 12727 | CFLAGS=$config_BUILD_CFLAGS |
| 12728 | BUILD_CFLAGS=$config_BUILD_CFLAGS |
| 12729 | else |
| 12730 | BUILD_CFLAGS=$default_build_cflags |
| 12731 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12732 | echo "$as_me:12732: result: $BUILD_CFLAGS" >&5 |
| 12733 | echo "${ECHO_T}$BUILD_CFLAGS" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12734 | if test "$config_BUILD_LIBS" != ""; then |
| 12735 | BUILD_LIBS=$config_BUILD_LIBS |
| 12736 | fi |
| 12737 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12738 | ########## |
| 12739 | # Locate a compiler that converts C code into *.o files that run on |
| 12740 | # the target machine. |
| 12741 | # |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12742 | echo "$as_me:12742: checking target compiler" >&5 |
| 12743 | echo $ECHO_N "checking target compiler... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12744 | if test "$config_TARGET_CC" != ""; then |
| 12745 | TARGET_CC=$config_TARGET_CC |
| 12746 | else |
| 12747 | TARGET_CC=$BUILD_CC |
| 12748 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12749 | echo "$as_me:12749: result: $TARGET_CC" >&5 |
| 12750 | echo "${ECHO_T}$TARGET_CC" >&6 |
| 12751 | echo "$as_me:12751: checking switches on the target compiler" >&5 |
| 12752 | echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12753 | if test "$config_TARGET_CFLAGS" != ""; then |
| 12754 | TARGET_CFLAGS=$config_TARGET_CFLAGS |
| 12755 | else |
| 12756 | TARGET_CFLAGS=$BUILD_CFLAGS |
| 12757 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12758 | echo "$as_me:12758: result: $TARGET_CFLAGS" >&5 |
| 12759 | echo "${ECHO_T}$TARGET_CFLAGS" >&6 |
| 12760 | echo "$as_me:12760: checking target linker" >&5 |
| 12761 | echo $ECHO_N "checking target linker... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12762 | if test "$config_TARGET_LINK" = ""; then |
| 12763 | TARGET_LINK=$TARGET_CC |
| 12764 | else |
| 12765 | TARGET_LINK=$config_TARGET_LINK |
| 12766 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12767 | echo "$as_me:12767: result: $TARGET_LINK" >&5 |
| 12768 | echo "${ECHO_T}$TARGET_LINK" >&6 |
| 12769 | echo "$as_me:12769: checking switches on the target compiler" >&5 |
| 12770 | echo $ECHO_N "checking switches on the target compiler... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12771 | if test "$config_TARGET_TFLAGS" != ""; then |
| 12772 | TARGET_TFLAGS=$config_TARGET_TFLAGS |
| 12773 | else |
| 12774 | TARGET_TFLAGS=$BUILD_CFLAGS |
| 12775 | fi |
| 12776 | if test "$config_TARGET_RANLIB" != ""; then |
| 12777 | TARGET_RANLIB=$config_TARGET_RANLIB |
| 12778 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12779 | if test -n "$ac_tool_prefix"; then |
| 12780 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 12781 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 12782 | echo "$as_me:12782: checking for $ac_word" >&5 |
| 12783 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 12784 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 12785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12786 | else |
| 12787 | if test -n "$RANLIB"; then |
| 12788 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 12789 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12790 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 12791 | ac_dummy="$PATH" |
| 12792 | for ac_dir in $ac_dummy; do |
| 12793 | IFS=$ac_save_IFS |
| 12794 | test -z "$ac_dir" && ac_dir=. |
| 12795 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 12796 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 12797 | echo "$as_me:12797: found $ac_dir/$ac_word" >&5 |
| 12798 | break |
| 12799 | done |
| 12800 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12801 | fi |
| 12802 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12803 | RANLIB=$ac_cv_prog_RANLIB |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12804 | if test -n "$RANLIB"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12805 | echo "$as_me:12805: result: $RANLIB" >&5 |
| 12806 | echo "${ECHO_T}$RANLIB" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12807 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12808 | echo "$as_me:12808: result: no" >&5 |
| 12809 | echo "${ECHO_T}no" >&6 |
| 12810 | fi |
| 12811 | |
| 12812 | fi |
| 12813 | if test -z "$ac_cv_prog_RANLIB"; then |
| 12814 | ac_ct_RANLIB=$RANLIB |
| 12815 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 12816 | set dummy ranlib; ac_word=$2 |
| 12817 | echo "$as_me:12817: checking for $ac_word" >&5 |
| 12818 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 12819 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 12820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12821 | else |
| 12822 | if test -n "$ac_ct_RANLIB"; then |
| 12823 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 12824 | else |
| 12825 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 12826 | ac_dummy="$PATH" |
| 12827 | for ac_dir in $ac_dummy; do |
| 12828 | IFS=$ac_save_IFS |
| 12829 | test -z "$ac_dir" && ac_dir=. |
| 12830 | $as_executable_p "$ac_dir/$ac_word" || continue |
| 12831 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 12832 | echo "$as_me:12832: found $ac_dir/$ac_word" >&5 |
| 12833 | break |
| 12834 | done |
| 12835 | |
| 12836 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 12837 | fi |
| 12838 | fi |
| 12839 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 12840 | if test -n "$ac_ct_RANLIB"; then |
| 12841 | echo "$as_me:12841: result: $ac_ct_RANLIB" >&5 |
| 12842 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 12843 | else |
| 12844 | echo "$as_me:12844: result: no" >&5 |
| 12845 | echo "${ECHO_T}no" >&6 |
| 12846 | fi |
| 12847 | |
| 12848 | RANLIB=$ac_ct_RANLIB |
| 12849 | else |
| 12850 | RANLIB="$ac_cv_prog_RANLIB" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12851 | fi |
| 12852 | |
| 12853 | TARGET_RANLIB=$RANLIB |
| 12854 | fi |
| 12855 | if test "$config_TARGET_AR" != ""; then |
drh | 82ad383 | 2000-07-31 13:38:24 +0000 | [diff] [blame] | 12856 | TARGET_AR=$config_TARGET_AR |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12857 | else |
| 12858 | TARGET_AR='ar cr' |
| 12859 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12860 | echo "$as_me:12860: result: $TARGET_TFLAGS" >&5 |
| 12861 | echo "${ECHO_T}$TARGET_TFLAGS" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12862 | |
| 12863 | # Set the $cross variable if we are cross-compiling. Make |
| 12864 | # it 0 if we are not. |
| 12865 | # |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12866 | echo "$as_me:12866: checking if host and target compilers are the same" >&5 |
| 12867 | 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] | 12868 | if test "$BUILD_CC" = "$TARGET_CC"; then |
| 12869 | cross=0 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12870 | echo "$as_me:12870: result: yes" >&5 |
| 12871 | echo "${ECHO_T}yes" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12872 | else |
| 12873 | cross=1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12874 | echo "$as_me:12874: result: no" >&5 |
| 12875 | echo "${ECHO_T}no" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12876 | fi |
| 12877 | |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 12878 | ########## |
| 12879 | # Are we using UTF-8 or iso8859 encodings? |
| 12880 | # |
| 12881 | # Check whether --enable-utf8 or --disable-utf8 was given. |
| 12882 | if test "${enable_utf8+set}" = set; then |
| 12883 | enableval="$enable_utf8" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12884 | |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 12885 | else |
| 12886 | enable_utf8=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12887 | fi; |
| 12888 | echo "$as_me:12888: checking character encoding" >&5 |
| 12889 | echo $ECHO_N "checking character encoding... $ECHO_C" >&6 |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 12890 | if test "$enable_utf8" = "no"; then |
| 12891 | ENCODING=ISO8859 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12892 | echo "$as_me:12892: result: iso8859" >&5 |
| 12893 | echo "${ECHO_T}iso8859" >&6 |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 12894 | else |
| 12895 | ENCODING=UTF8 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12896 | echo "$as_me:12896: result: UTF-8" >&5 |
| 12897 | echo "${ECHO_T}UTF-8" >&6 |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 12898 | fi |
| 12899 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12900 | ########### |
| 12901 | # Lots of things are different if we are compiling for Windows using |
| 12902 | # the CYGWIN environment. So check for that special case and handle |
| 12903 | # things accordingly. |
| 12904 | # |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12905 | echo "$as_me:12905: checking if executables have the .exe suffix" >&5 |
| 12906 | echo $ECHO_N "checking if executables have the .exe suffix... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12907 | if test "$config_BUILD_EXEEXT" = ".exe"; then |
| 12908 | CYGWIN=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12909 | echo "$as_me:12909: result: yes" >&5 |
| 12910 | echo "${ECHO_T}yes" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12911 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12912 | echo "$as_me:12912: result: unknown" >&5 |
| 12913 | echo "${ECHO_T}unknown" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12914 | fi |
| 12915 | if test "$CYGWIN" != "yes"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12916 | case $host_os in |
| 12917 | *cygwin* ) CYGWIN=yes;; |
| 12918 | * ) CYGWIN=no;; |
| 12919 | esac |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12920 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12921 | fi |
| 12922 | if test "$CYGWIN" = "yes"; then |
| 12923 | BUILD_EXEEXT=.exe |
| 12924 | else |
| 12925 | BUILD_EXEEXT="" |
| 12926 | fi |
| 12927 | if test "$cross" = "0"; then |
| 12928 | TARGET_EXEEXT=$BUILD_EXEEXT |
| 12929 | else |
| 12930 | TARGET_EXEEXT=$config_TARGET_EXEEXT |
| 12931 | fi |
| 12932 | if test "$TARGET_EXEEXT" = ".exe"; then |
| 12933 | OS_UNIX=0 |
| 12934 | OS_WIN=1 |
| 12935 | tclsubdir=win |
| 12936 | else |
| 12937 | OS_UNIX=1 |
| 12938 | OS_WIN=0 |
| 12939 | tclsubdir=unix |
| 12940 | fi |
| 12941 | TARGET_CFLAGS="$TARGET_CFLAGS -DOS_UNIX=$OS_UNIX -DOS_WIN=$OS_WIN" |
| 12942 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12943 | ########## |
| 12944 | # Extract generic linker options from the environment. |
| 12945 | # |
| 12946 | if test "$config_TARGET_LIBS" != ""; then |
| 12947 | TARGET_LIBS=$config_TARGET_LIBS |
| 12948 | else |
| 12949 | TARGET_LIBS="" |
| 12950 | fi |
| 12951 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12952 | ########## |
| 12953 | # Figure out what C libraries are required to compile Tcl programs. |
| 12954 | # |
| 12955 | if test "$config_TARGET_TCL_LIBS" != ""; then |
| 12956 | TARGET_TCL_LIBS="$config_TARGET_TCL_LIBS" |
| 12957 | else |
| 12958 | if test "$with_tcl" != ""; then |
| 12959 | extra=`echo $with_tcl/$tclsubdir/libtcl8*.a` |
| 12960 | fi |
| 12961 | CC=$TARGET_CC |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12962 | echo "$as_me:12962: checking for sin" >&5 |
| 12963 | echo $ECHO_N "checking for sin... $ECHO_C" >&6 |
| 12964 | if test "${ac_cv_func_sin+set}" = set; then |
| 12965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12966 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12967 | cat >conftest.$ac_ext <<_ACEOF |
| 12968 | #line 12968 "configure" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12969 | #include "confdefs.h" |
| 12970 | /* System header to define __stub macros and hopefully few prototypes, |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12971 | which can conflict with char sin (); below. */ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12972 | #include <assert.h> |
| 12973 | /* Override any gcc2 internal prototype to avoid an error. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12974 | #ifdef __cplusplus |
| 12975 | extern "C" |
| 12976 | #endif |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12977 | /* We use char because int might match the return type of a gcc2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12978 | builtin and then its argument prototype would still apply. */ |
| 12979 | char sin (); |
| 12980 | char (*f) (); |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12981 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12982 | int |
| 12983 | main () |
| 12984 | { |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12985 | /* The GNU C library defines this for functions which it implements |
| 12986 | to always fail with ENOSYS. Some functions are actually named |
| 12987 | something starting with __ and the normal name is an alias. */ |
| 12988 | #if defined (__stub_sin) || defined (__stub___sin) |
| 12989 | choke me |
| 12990 | #else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12991 | f = sin; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12992 | #endif |
| 12993 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12994 | ; |
| 12995 | return 0; |
| 12996 | } |
| 12997 | _ACEOF |
| 12998 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12999 | if { (eval echo "$as_me:12999: \"$ac_link\"") >&5 |
| 13000 | (eval $ac_link) 2>&5 |
| 13001 | ac_status=$? |
| 13002 | echo "$as_me:13002: \$? = $ac_status" >&5 |
| 13003 | (exit $ac_status); } && |
| 13004 | { ac_try='test -s conftest$ac_exeext' |
| 13005 | { (eval echo "$as_me:13005: \"$ac_try\"") >&5 |
| 13006 | (eval $ac_try) 2>&5 |
| 13007 | ac_status=$? |
| 13008 | echo "$as_me:13008: \$? = $ac_status" >&5 |
| 13009 | (exit $ac_status); }; }; then |
| 13010 | ac_cv_func_sin=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13011 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13012 | echo "$as_me: failed program was:" >&5 |
| 13013 | cat conftest.$ac_ext >&5 |
| 13014 | ac_cv_func_sin=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13015 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13016 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13017 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13018 | echo "$as_me:13018: result: $ac_cv_func_sin" >&5 |
| 13019 | echo "${ECHO_T}$ac_cv_func_sin" >&6 |
| 13020 | if test $ac_cv_func_sin = yes; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13021 | LIBS="" |
| 13022 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13023 | LIBS="-lm" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13024 | fi |
| 13025 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13026 | echo "$as_me:13026: checking for dlopen in -ldl" >&5 |
| 13027 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 13028 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 13029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13030 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13031 | ac_check_lib_save_LIBS=$LIBS |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13032 | LIBS="-ldl $LIBS" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13033 | cat >conftest.$ac_ext <<_ACEOF |
| 13034 | #line 13034 "configure" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13035 | #include "confdefs.h" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13036 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13037 | /* Override any gcc2 internal prototype to avoid an error. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13038 | #ifdef __cplusplus |
| 13039 | extern "C" |
| 13040 | #endif |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13041 | /* We use char because int might match the return type of a gcc2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13042 | builtin and then its argument prototype would still apply. */ |
| 13043 | char dlopen (); |
| 13044 | int |
| 13045 | main () |
| 13046 | { |
| 13047 | dlopen (); |
| 13048 | ; |
| 13049 | return 0; |
| 13050 | } |
| 13051 | _ACEOF |
| 13052 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13053 | if { (eval echo "$as_me:13053: \"$ac_link\"") >&5 |
| 13054 | (eval $ac_link) 2>&5 |
| 13055 | ac_status=$? |
| 13056 | echo "$as_me:13056: \$? = $ac_status" >&5 |
| 13057 | (exit $ac_status); } && |
| 13058 | { ac_try='test -s conftest$ac_exeext' |
| 13059 | { (eval echo "$as_me:13059: \"$ac_try\"") >&5 |
| 13060 | (eval $ac_try) 2>&5 |
| 13061 | ac_status=$? |
| 13062 | echo "$as_me:13062: \$? = $ac_status" >&5 |
| 13063 | (exit $ac_status); }; }; then |
| 13064 | ac_cv_lib_dl_dlopen=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13065 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13066 | echo "$as_me: failed program was:" >&5 |
| 13067 | cat conftest.$ac_ext >&5 |
| 13068 | ac_cv_lib_dl_dlopen=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13069 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13070 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 13071 | LIBS=$ac_check_lib_save_LIBS |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13072 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13073 | echo "$as_me:13073: result: $ac_cv_lib_dl_dlopen" >&5 |
| 13074 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 13075 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 13076 | cat >>confdefs.h <<EOF |
| 13077 | #define HAVE_LIBDL 1 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13078 | EOF |
| 13079 | |
| 13080 | LIBS="-ldl $LIBS" |
| 13081 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13082 | fi |
| 13083 | |
| 13084 | otherlibs=$LIBS |
| 13085 | if test "$extra" != ""; then |
| 13086 | LIBS=$extra |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13087 | else |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13088 | LIBS="" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13089 | echo "$as_me:13089: checking for library containing Tcl_Init" >&5 |
| 13090 | echo $ECHO_N "checking for library containing Tcl_Init... $ECHO_C" >&6 |
| 13091 | if test "${ac_cv_search_Tcl_Init+set}" = set; then |
| 13092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13093 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13094 | ac_func_search_save_LIBS=$LIBS |
| 13095 | ac_cv_search_Tcl_Init=no |
| 13096 | cat >conftest.$ac_ext <<_ACEOF |
| 13097 | #line 13097 "configure" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13098 | #include "confdefs.h" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13099 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13100 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13101 | #ifdef __cplusplus |
| 13102 | extern "C" |
| 13103 | #endif |
| 13104 | /* We use char because int might match the return type of a gcc2 |
| 13105 | builtin and then its argument prototype would still apply. */ |
| 13106 | char Tcl_Init (); |
| 13107 | int |
| 13108 | main () |
| 13109 | { |
| 13110 | Tcl_Init (); |
| 13111 | ; |
| 13112 | return 0; |
| 13113 | } |
| 13114 | _ACEOF |
| 13115 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13116 | if { (eval echo "$as_me:13116: \"$ac_link\"") >&5 |
| 13117 | (eval $ac_link) 2>&5 |
| 13118 | ac_status=$? |
| 13119 | echo "$as_me:13119: \$? = $ac_status" >&5 |
| 13120 | (exit $ac_status); } && |
| 13121 | { ac_try='test -s conftest$ac_exeext' |
| 13122 | { (eval echo "$as_me:13122: \"$ac_try\"") >&5 |
| 13123 | (eval $ac_try) 2>&5 |
| 13124 | ac_status=$? |
| 13125 | echo "$as_me:13125: \$? = $ac_status" >&5 |
| 13126 | (exit $ac_status); }; }; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13127 | ac_cv_search_Tcl_Init="none required" |
| 13128 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13129 | echo "$as_me: failed program was:" >&5 |
| 13130 | cat conftest.$ac_ext >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13131 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13132 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 13133 | if test "$ac_cv_search_Tcl_Init" = no; then |
| 13134 | for ac_lib in tcl8.4 tcl8.3 tcl8.2 tcl8.1 tcl8.0 tcl80 tcl; do |
| 13135 | LIBS="-l$ac_lib $otherlibs $ac_func_search_save_LIBS" |
| 13136 | cat >conftest.$ac_ext <<_ACEOF |
| 13137 | #line 13137 "configure" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13138 | #include "confdefs.h" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13139 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13140 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13141 | #ifdef __cplusplus |
| 13142 | extern "C" |
| 13143 | #endif |
| 13144 | /* We use char because int might match the return type of a gcc2 |
| 13145 | builtin and then its argument prototype would still apply. */ |
| 13146 | char Tcl_Init (); |
| 13147 | int |
| 13148 | main () |
| 13149 | { |
| 13150 | Tcl_Init (); |
| 13151 | ; |
| 13152 | return 0; |
| 13153 | } |
| 13154 | _ACEOF |
| 13155 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13156 | if { (eval echo "$as_me:13156: \"$ac_link\"") >&5 |
| 13157 | (eval $ac_link) 2>&5 |
| 13158 | ac_status=$? |
| 13159 | echo "$as_me:13159: \$? = $ac_status" >&5 |
| 13160 | (exit $ac_status); } && |
| 13161 | { ac_try='test -s conftest$ac_exeext' |
| 13162 | { (eval echo "$as_me:13162: \"$ac_try\"") >&5 |
| 13163 | (eval $ac_try) 2>&5 |
| 13164 | ac_status=$? |
| 13165 | echo "$as_me:13165: \$? = $ac_status" >&5 |
| 13166 | (exit $ac_status); }; }; then |
| 13167 | ac_cv_search_Tcl_Init="-l$ac_lib" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13168 | break |
| 13169 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13170 | echo "$as_me: failed program was:" >&5 |
| 13171 | cat conftest.$ac_ext >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13172 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13173 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 13174 | done |
| 13175 | fi |
| 13176 | LIBS=$ac_func_search_save_LIBS |
| 13177 | fi |
| 13178 | echo "$as_me:13178: result: $ac_cv_search_Tcl_Init" >&5 |
| 13179 | echo "${ECHO_T}$ac_cv_search_Tcl_Init" >&6 |
| 13180 | if test "$ac_cv_search_Tcl_Init" != no; then |
| 13181 | test "$ac_cv_search_Tcl_Init" = "none required" || LIBS="$ac_cv_search_Tcl_Init $LIBS" |
| 13182 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13183 | fi |
| 13184 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13185 | fi |
| 13186 | TARGET_TCL_LIBS="$LIBS $otherlibs" |
| 13187 | fi |
| 13188 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13189 | ########## |
| 13190 | # Figure out where to get the TCL header files. |
| 13191 | # |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13192 | echo "$as_me:13192: checking TCL header files" >&5 |
| 13193 | echo $ECHO_N "checking TCL header files... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13194 | found=no |
| 13195 | if test "$config_TARGET_TCL_INC" != ""; then |
| 13196 | TARGET_TCL_INC=$config_TARGET_TCL_INC |
| 13197 | found=yes |
| 13198 | else |
| 13199 | if test "$with_tcl" != ""; then |
| 13200 | TARGET_TCL_INC="-I$with_tcl/generic -I$with_tcl/$tclsubdir" |
| 13201 | found=yes |
| 13202 | else |
| 13203 | TARGET_TCL_INC="" |
| 13204 | found=no |
| 13205 | fi |
| 13206 | fi |
| 13207 | if test "$found" = "yes"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13208 | echo "$as_me:13208: result: $TARGET_TCL_INC" >&5 |
| 13209 | echo "${ECHO_T}$TARGET_TCL_INC" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13210 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13211 | echo "$as_me:13211: result: not specified: still searching..." >&5 |
| 13212 | echo "${ECHO_T}not specified: still searching..." >&6 |
| 13213 | echo "$as_me:13213: checking for tcl.h" >&5 |
| 13214 | echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6 |
| 13215 | if test "${ac_cv_header_tcl_h+set}" = set; then |
| 13216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13217 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13218 | cat >conftest.$ac_ext <<_ACEOF |
| 13219 | #line 13219 "configure" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13220 | #include "confdefs.h" |
| 13221 | #include <tcl.h> |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13222 | _ACEOF |
| 13223 | if { (eval echo "$as_me:13223: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 13224 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 13225 | ac_status=$? |
| 13226 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 13227 | rm -f conftest.er1 |
| 13228 | cat conftest.err >&5 |
| 13229 | echo "$as_me:13229: \$? = $ac_status" >&5 |
| 13230 | (exit $ac_status); } >/dev/null; then |
| 13231 | if test -s conftest.err; then |
| 13232 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 13233 | else |
| 13234 | ac_cpp_err= |
| 13235 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13236 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13237 | ac_cpp_err=yes |
| 13238 | fi |
| 13239 | if test -z "$ac_cpp_err"; then |
| 13240 | ac_cv_header_tcl_h=yes |
| 13241 | else |
| 13242 | echo "$as_me: failed program was:" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13243 | cat conftest.$ac_ext >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13244 | ac_cv_header_tcl_h=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13245 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13246 | rm -f conftest.err conftest.$ac_ext |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13247 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13248 | echo "$as_me:13248: result: $ac_cv_header_tcl_h" >&5 |
| 13249 | echo "${ECHO_T}$ac_cv_header_tcl_h" >&6 |
| 13250 | if test $ac_cv_header_tcl_h = yes; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13251 | found=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13252 | fi |
| 13253 | |
| 13254 | fi |
| 13255 | if test "$found" = "no"; then |
drh | fdc99e9 | 2000-09-29 15:15:51 +0000 | [diff] [blame] | 13256 | for dir in /usr/local /usr/X11 /usr/X11R6 /usr/pkg /usr/contrib /usr; do |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13257 | as_ac_File=`echo "ac_cv_file_$dir/include/tcl.h" | $as_tr_sh` |
| 13258 | echo "$as_me:13258: checking for $dir/include/tcl.h" >&5 |
| 13259 | echo $ECHO_N "checking for $dir/include/tcl.h... $ECHO_C" >&6 |
| 13260 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
| 13261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13262 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13263 | test "$cross_compiling" = yes && |
| 13264 | { { echo "$as_me:13264: error: cannot check for file existence when cross compiling" >&5 |
| 13265 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
| 13266 | { (exit 1); exit 1; }; } |
| 13267 | if test -r "$dir/include/tcl.h"; then |
| 13268 | eval "$as_ac_File=yes" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13269 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13270 | eval "$as_ac_File=no" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13271 | fi |
| 13272 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13273 | echo "$as_me:13273: result: `eval echo '${'$as_ac_File'}'`" >&5 |
| 13274 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
| 13275 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13276 | found=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13277 | fi |
| 13278 | |
| 13279 | if test "$found" = "yes"; then |
| 13280 | TARGET_TCL_INC="-I$dir/include" |
| 13281 | break |
| 13282 | fi |
| 13283 | done |
| 13284 | fi |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 13285 | if test "$found" = "no"; then |
| 13286 | TARGET_TCL_INC="-DNO_TCL=1" |
| 13287 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13288 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13289 | ########## |
| 13290 | # Figure out what C libraries are required to compile programs |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13291 | # that use "readline()" library. |
| 13292 | # |
| 13293 | if test "$config_TARGET_READLINE_LIBS" != ""; then |
| 13294 | TARGET_READLINE_LIBS="$config_TARGET_READLINE_LIBS" |
| 13295 | else |
| 13296 | CC=$TARGET_CC |
| 13297 | LIBS="" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13298 | echo "$as_me:13298: checking for library containing readline" >&5 |
| 13299 | echo $ECHO_N "checking for library containing readline... $ECHO_C" >&6 |
| 13300 | if test "${ac_cv_search_readline+set}" = set; then |
| 13301 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13302 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13303 | ac_func_search_save_LIBS=$LIBS |
| 13304 | ac_cv_search_readline=no |
| 13305 | cat >conftest.$ac_ext <<_ACEOF |
| 13306 | #line 13306 "configure" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13307 | #include "confdefs.h" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13308 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13309 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13310 | #ifdef __cplusplus |
| 13311 | extern "C" |
| 13312 | #endif |
| 13313 | /* We use char because int might match the return type of a gcc2 |
| 13314 | builtin and then its argument prototype would still apply. */ |
| 13315 | char readline (); |
| 13316 | int |
| 13317 | main () |
| 13318 | { |
| 13319 | readline (); |
| 13320 | ; |
| 13321 | return 0; |
| 13322 | } |
| 13323 | _ACEOF |
| 13324 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13325 | if { (eval echo "$as_me:13325: \"$ac_link\"") >&5 |
| 13326 | (eval $ac_link) 2>&5 |
| 13327 | ac_status=$? |
| 13328 | echo "$as_me:13328: \$? = $ac_status" >&5 |
| 13329 | (exit $ac_status); } && |
| 13330 | { ac_try='test -s conftest$ac_exeext' |
| 13331 | { (eval echo "$as_me:13331: \"$ac_try\"") >&5 |
| 13332 | (eval $ac_try) 2>&5 |
| 13333 | ac_status=$? |
| 13334 | echo "$as_me:13334: \$? = $ac_status" >&5 |
| 13335 | (exit $ac_status); }; }; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13336 | ac_cv_search_readline="none required" |
| 13337 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13338 | echo "$as_me: failed program was:" >&5 |
| 13339 | cat conftest.$ac_ext >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13340 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13341 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 13342 | if test "$ac_cv_search_readline" = no; then |
| 13343 | for ac_lib in readline; do |
| 13344 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13345 | cat >conftest.$ac_ext <<_ACEOF |
| 13346 | #line 13346 "configure" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13347 | #include "confdefs.h" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13348 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13349 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13350 | #ifdef __cplusplus |
| 13351 | extern "C" |
| 13352 | #endif |
| 13353 | /* We use char because int might match the return type of a gcc2 |
| 13354 | builtin and then its argument prototype would still apply. */ |
| 13355 | char readline (); |
| 13356 | int |
| 13357 | main () |
| 13358 | { |
| 13359 | readline (); |
| 13360 | ; |
| 13361 | return 0; |
| 13362 | } |
| 13363 | _ACEOF |
| 13364 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13365 | if { (eval echo "$as_me:13365: \"$ac_link\"") >&5 |
| 13366 | (eval $ac_link) 2>&5 |
| 13367 | ac_status=$? |
| 13368 | echo "$as_me:13368: \$? = $ac_status" >&5 |
| 13369 | (exit $ac_status); } && |
| 13370 | { ac_try='test -s conftest$ac_exeext' |
| 13371 | { (eval echo "$as_me:13371: \"$ac_try\"") >&5 |
| 13372 | (eval $ac_try) 2>&5 |
| 13373 | ac_status=$? |
| 13374 | echo "$as_me:13374: \$? = $ac_status" >&5 |
| 13375 | (exit $ac_status); }; }; then |
| 13376 | ac_cv_search_readline="-l$ac_lib" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13377 | break |
| 13378 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13379 | echo "$as_me: failed program was:" >&5 |
| 13380 | cat conftest.$ac_ext >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13381 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13382 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 13383 | done |
| 13384 | fi |
| 13385 | LIBS=$ac_func_search_save_LIBS |
| 13386 | fi |
| 13387 | echo "$as_me:13387: result: $ac_cv_search_readline" >&5 |
| 13388 | echo "${ECHO_T}$ac_cv_search_readline" >&6 |
| 13389 | if test "$ac_cv_search_readline" != no; then |
| 13390 | test "$ac_cv_search_readline" = "none required" || LIBS="$ac_cv_search_readline $LIBS" |
| 13391 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13392 | fi |
| 13393 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13394 | TARGET_READLINE_LIBS="$LIBS" |
| 13395 | fi |
| 13396 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13397 | ########## |
| 13398 | # Figure out where to get the READLINE header files. |
| 13399 | # |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13400 | echo "$as_me:13400: checking readline header files" >&5 |
| 13401 | echo $ECHO_N "checking readline header files... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13402 | found=no |
| 13403 | if test "$config_TARGET_READLINE_INC" != ""; then |
| 13404 | TARGET_READLINE_INC=$config_TARGET_READLINE_INC |
| 13405 | found=yes |
| 13406 | fi |
| 13407 | if test "$found" = "yes"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13408 | echo "$as_me:13408: result: $TARGET_READLINE_INC" >&5 |
| 13409 | echo "${ECHO_T}$TARGET_READLINE_INC" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13410 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13411 | echo "$as_me:13411: result: not specified: still searching..." >&5 |
| 13412 | echo "${ECHO_T}not specified: still searching..." >&6 |
| 13413 | echo "$as_me:13413: checking for readline.h" >&5 |
| 13414 | echo $ECHO_N "checking for readline.h... $ECHO_C" >&6 |
| 13415 | if test "${ac_cv_header_readline_h+set}" = set; then |
| 13416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13417 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13418 | cat >conftest.$ac_ext <<_ACEOF |
| 13419 | #line 13419 "configure" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13420 | #include "confdefs.h" |
| 13421 | #include <readline.h> |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13422 | _ACEOF |
| 13423 | if { (eval echo "$as_me:13423: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 13424 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 13425 | ac_status=$? |
| 13426 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 13427 | rm -f conftest.er1 |
| 13428 | cat conftest.err >&5 |
| 13429 | echo "$as_me:13429: \$? = $ac_status" >&5 |
| 13430 | (exit $ac_status); } >/dev/null; then |
| 13431 | if test -s conftest.err; then |
| 13432 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 13433 | else |
| 13434 | ac_cpp_err= |
| 13435 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13436 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13437 | ac_cpp_err=yes |
| 13438 | fi |
| 13439 | if test -z "$ac_cpp_err"; then |
| 13440 | ac_cv_header_readline_h=yes |
| 13441 | else |
| 13442 | echo "$as_me: failed program was:" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13443 | cat conftest.$ac_ext >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13444 | ac_cv_header_readline_h=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13445 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13446 | rm -f conftest.err conftest.$ac_ext |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13447 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13448 | echo "$as_me:13448: result: $ac_cv_header_readline_h" >&5 |
| 13449 | echo "${ECHO_T}$ac_cv_header_readline_h" >&6 |
| 13450 | if test $ac_cv_header_readline_h = yes; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13451 | found=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13452 | fi |
| 13453 | |
| 13454 | fi |
| 13455 | if test "$found" = "no"; then |
| 13456 | for dir in /usr /usr/local /usr/local/readline /usr/contrib; do |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13457 | as_ac_File=`echo "ac_cv_file_$dir/include/readline.h" | $as_tr_sh` |
| 13458 | echo "$as_me:13458: checking for $dir/include/readline.h" >&5 |
| 13459 | echo $ECHO_N "checking for $dir/include/readline.h... $ECHO_C" >&6 |
| 13460 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
| 13461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13462 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13463 | test "$cross_compiling" = yes && |
| 13464 | { { echo "$as_me:13464: error: cannot check for file existence when cross compiling" >&5 |
| 13465 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
| 13466 | { (exit 1); exit 1; }; } |
| 13467 | if test -r "$dir/include/readline.h"; then |
| 13468 | eval "$as_ac_File=yes" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13469 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13470 | eval "$as_ac_File=no" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13471 | fi |
| 13472 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13473 | echo "$as_me:13473: result: `eval echo '${'$as_ac_File'}'`" >&5 |
| 13474 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
| 13475 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13476 | found=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13477 | fi |
| 13478 | |
| 13479 | if test "$found" = "yes"; then |
| 13480 | TARGET_READLINE_INC="-I$dir/include" |
| 13481 | break |
| 13482 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13483 | as_ac_File=`echo "ac_cv_file_$dir/include/readline/readline.h" | $as_tr_sh` |
| 13484 | echo "$as_me:13484: checking for $dir/include/readline/readline.h" >&5 |
| 13485 | echo $ECHO_N "checking for $dir/include/readline/readline.h... $ECHO_C" >&6 |
| 13486 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
| 13487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13488 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13489 | test "$cross_compiling" = yes && |
| 13490 | { { echo "$as_me:13490: error: cannot check for file existence when cross compiling" >&5 |
| 13491 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
| 13492 | { (exit 1); exit 1; }; } |
| 13493 | if test -r "$dir/include/readline/readline.h"; then |
| 13494 | eval "$as_ac_File=yes" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13495 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13496 | eval "$as_ac_File=no" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13497 | fi |
| 13498 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13499 | echo "$as_me:13499: result: `eval echo '${'$as_ac_File'}'`" >&5 |
| 13500 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
| 13501 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13502 | found=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13503 | fi |
| 13504 | |
| 13505 | if test "$found" = "yes"; then |
| 13506 | TARGET_READLINE_INC="-I$dir/include/readline" |
| 13507 | break |
| 13508 | fi |
| 13509 | done |
| 13510 | fi |
| 13511 | if test "$found" = "yes"; then |
drh | 82ad383 | 2000-07-31 13:38:24 +0000 | [diff] [blame] | 13512 | if test "$TARGET_READLINE_LIBS" = ""; then |
| 13513 | TARGET_HAVE_READLINE=0 |
| 13514 | else |
| 13515 | TARGET_HAVE_READLINE=1 |
| 13516 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13517 | else |
| 13518 | TARGET_HAVE_READLINE=0 |
| 13519 | fi |
| 13520 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13521 | ######### |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 13522 | # Figure out whether or not we have a "usleep()" function. |
| 13523 | # |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13524 | echo "$as_me:13524: checking for usleep" >&5 |
| 13525 | echo $ECHO_N "checking for usleep... $ECHO_C" >&6 |
| 13526 | if test "${ac_cv_func_usleep+set}" = set; then |
| 13527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 13528 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13529 | cat >conftest.$ac_ext <<_ACEOF |
| 13530 | #line 13530 "configure" |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 13531 | #include "confdefs.h" |
| 13532 | /* System header to define __stub macros and hopefully few prototypes, |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13533 | which can conflict with char usleep (); below. */ |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 13534 | #include <assert.h> |
| 13535 | /* Override any gcc2 internal prototype to avoid an error. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13536 | #ifdef __cplusplus |
| 13537 | extern "C" |
| 13538 | #endif |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 13539 | /* We use char because int might match the return type of a gcc2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13540 | builtin and then its argument prototype would still apply. */ |
| 13541 | char usleep (); |
| 13542 | char (*f) (); |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 13543 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13544 | int |
| 13545 | main () |
| 13546 | { |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 13547 | /* The GNU C library defines this for functions which it implements |
| 13548 | to always fail with ENOSYS. Some functions are actually named |
| 13549 | something starting with __ and the normal name is an alias. */ |
| 13550 | #if defined (__stub_usleep) || defined (__stub___usleep) |
| 13551 | choke me |
| 13552 | #else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13553 | f = usleep; |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 13554 | #endif |
| 13555 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13556 | ; |
| 13557 | return 0; |
| 13558 | } |
| 13559 | _ACEOF |
| 13560 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13561 | if { (eval echo "$as_me:13561: \"$ac_link\"") >&5 |
| 13562 | (eval $ac_link) 2>&5 |
| 13563 | ac_status=$? |
| 13564 | echo "$as_me:13564: \$? = $ac_status" >&5 |
| 13565 | (exit $ac_status); } && |
| 13566 | { ac_try='test -s conftest$ac_exeext' |
| 13567 | { (eval echo "$as_me:13567: \"$ac_try\"") >&5 |
| 13568 | (eval $ac_try) 2>&5 |
| 13569 | ac_status=$? |
| 13570 | echo "$as_me:13570: \$? = $ac_status" >&5 |
| 13571 | (exit $ac_status); }; }; then |
| 13572 | ac_cv_func_usleep=yes |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 13573 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13574 | echo "$as_me: failed program was:" >&5 |
| 13575 | cat conftest.$ac_ext >&5 |
| 13576 | ac_cv_func_usleep=no |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 13577 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13578 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 13579 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13580 | echo "$as_me:13580: result: $ac_cv_func_usleep" >&5 |
| 13581 | echo "${ECHO_T}$ac_cv_func_usleep" >&6 |
| 13582 | if test $ac_cv_func_usleep = yes; then |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 13583 | TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_USLEEP=1" |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 13584 | fi |
| 13585 | |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 13586 | ######### |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13587 | # Generate the output files. |
| 13588 | # |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13589 | ac_config_files="$ac_config_files Makefile" |
| 13590 | cat >confcache <<\_ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13591 | # This file is a shell script that caches the results of configure |
| 13592 | # tests run on this system so they can be shared between configure |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13593 | # scripts and configure runs, see configure's option --config-cache. |
| 13594 | # It is not useful on other systems. If it contains results you don't |
| 13595 | # want to keep, you may remove or edit it. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13596 | # |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13597 | # config.status only pays attention to the cache file if you give it |
| 13598 | # the --recheck option to rerun configure. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13599 | # |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13600 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
| 13601 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 13602 | # following values. |
| 13603 | |
| 13604 | _ACEOF |
| 13605 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13606 | # The following way of writing the cache mishandles newlines in values, |
| 13607 | # but we know of no workaround that is simple, portable, and efficient. |
| 13608 | # So, don't put newlines in cache variables' values. |
| 13609 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 13610 | # 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] | 13611 | { |
| 13612 | (set) 2>&1 | |
| 13613 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 13614 | *ac_space=\ *) |
| 13615 | # `set' does not quote correctly, so add quotes (double-quote |
| 13616 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 13617 | sed -n \ |
| 13618 | "s/'/'\\\\''/g; |
| 13619 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 13620 | ;; |
| 13621 | *) |
| 13622 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 13623 | sed -n \ |
| 13624 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 13625 | ;; |
| 13626 | esac; |
| 13627 | } | |
| 13628 | sed ' |
| 13629 | t clear |
| 13630 | : clear |
| 13631 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 13632 | t end |
| 13633 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 13634 | : end' >>confcache |
| 13635 | if cmp -s $cache_file confcache; then :; else |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13636 | if test -w $cache_file; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13637 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 13638 | cat confcache >$cache_file |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13639 | else |
| 13640 | echo "not updating unwritable cache $cache_file" |
| 13641 | fi |
| 13642 | fi |
| 13643 | rm -f confcache |
| 13644 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13645 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 13646 | # Let make expand exec_prefix. |
| 13647 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 13648 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13649 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 13650 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 13651 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 13652 | # (actually we leave an empty line to preserve line numbers). |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13653 | if test "x$srcdir" = x.; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13654 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 13655 | s/:*\$(srcdir):*/:/; |
| 13656 | s/:*\${srcdir}:*/:/; |
| 13657 | s/:*@srcdir@:*/:/; |
| 13658 | s/^\([^=]*=[ ]*\):*/\1/; |
| 13659 | s/:*$//; |
| 13660 | s/^[^=]*=[ ]*$//; |
| 13661 | }' |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13662 | fi |
| 13663 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13664 | # Transform confdefs.h into DEFS. |
| 13665 | # Protect against shell expansion while executing Makefile rules. |
| 13666 | # Protect against Makefile macro expansion. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13667 | # |
| 13668 | # If the first sed substitution is executed (which looks for macros that |
| 13669 | # take arguments), then we branch to the quote section. Otherwise, |
| 13670 | # look for a macro that doesn't take arguments. |
| 13671 | cat >confdef2opt.sed <<\EOF |
| 13672 | t clear |
| 13673 | : clear |
| 13674 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g |
| 13675 | t quote |
| 13676 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g |
| 13677 | t quote |
| 13678 | d |
| 13679 | : quote |
| 13680 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g |
| 13681 | s,\[,\\&,g |
| 13682 | s,\],\\&,g |
| 13683 | s,\$,$$,g |
| 13684 | p |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13685 | EOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13686 | # We use echo to avoid assuming a particular line-breaking character. |
| 13687 | # The extra dot is to prevent the shell from consuming trailing |
| 13688 | # line-breaks from the sub-command output. A line-break within |
| 13689 | # single-quotes doesn't work because, if this script is created in a |
| 13690 | # platform that uses two characters for line-breaks (e.g., DOS), tr |
| 13691 | # would break. |
| 13692 | ac_LF_and_DOT=`echo; echo .` |
| 13693 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` |
| 13694 | rm -f confdef2opt.sed |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13695 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13696 | : ${CONFIG_STATUS=./config.status} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13697 | ac_clean_files_save=$ac_clean_files |
| 13698 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 13699 | { echo "$as_me:13699: creating $CONFIG_STATUS" >&5 |
| 13700 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 13701 | cat >$CONFIG_STATUS <<_ACEOF |
| 13702 | #! $SHELL |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13703 | # Generated automatically by configure. |
| 13704 | # Run this file to recreate the current configuration. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13705 | # Compiler output produced by configure, useful for debugging |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13706 | # configure, is in config.log if it exists. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13707 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13708 | debug=false |
| 13709 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 13710 | ac_cs_invocation="\$0 \$@" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13711 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13712 | _ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13713 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13714 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 13715 | # Be Bourne compatible |
| 13716 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 13717 | emulate sh |
| 13718 | NULLCMD=: |
| 13719 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 13720 | set -o posix |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13721 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13722 | |
| 13723 | # Name of the executable. |
| 13724 | as_me=`echo "$0" |sed 's,.*[\\/],,'` |
| 13725 | |
| 13726 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 13727 | as_expr=expr |
| 13728 | else |
| 13729 | as_expr=false |
| 13730 | fi |
| 13731 | |
| 13732 | rm -f conf$$ conf$$.exe conf$$.file |
| 13733 | echo >conf$$.file |
| 13734 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 13735 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 13736 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 13737 | if test -f conf$$.exe; then |
| 13738 | # Don't use ln at all; we don't have any links |
| 13739 | as_ln_s='cp -p' |
| 13740 | else |
| 13741 | as_ln_s='ln -s' |
| 13742 | fi |
| 13743 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 13744 | as_ln_s=ln |
| 13745 | else |
| 13746 | as_ln_s='cp -p' |
| 13747 | fi |
| 13748 | rm -f conf$$ conf$$.exe conf$$.file |
| 13749 | |
| 13750 | as_executable_p="test -f" |
| 13751 | |
| 13752 | # Support unset when possible. |
| 13753 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 13754 | as_unset=unset |
| 13755 | else |
| 13756 | as_unset=false |
| 13757 | fi |
| 13758 | |
| 13759 | # NLS nuisances. |
| 13760 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } |
| 13761 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } |
| 13762 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } |
| 13763 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } |
| 13764 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } |
| 13765 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } |
| 13766 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } |
| 13767 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } |
| 13768 | |
| 13769 | # IFS |
| 13770 | # We need space, tab and new line, in precisely that order. |
| 13771 | as_nl=' |
| 13772 | ' |
| 13773 | IFS=" $as_nl" |
| 13774 | |
| 13775 | # CDPATH. |
| 13776 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } |
| 13777 | |
| 13778 | exec 6>&1 |
| 13779 | |
| 13780 | _ACEOF |
| 13781 | |
| 13782 | # Files that config.status was made for. |
| 13783 | if test -n "$ac_config_files"; then |
| 13784 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 13785 | fi |
| 13786 | |
| 13787 | if test -n "$ac_config_headers"; then |
| 13788 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 13789 | fi |
| 13790 | |
| 13791 | if test -n "$ac_config_links"; then |
| 13792 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 13793 | fi |
| 13794 | |
| 13795 | if test -n "$ac_config_commands"; then |
| 13796 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 13797 | fi |
| 13798 | |
| 13799 | cat >>$CONFIG_STATUS <<\EOF |
| 13800 | |
| 13801 | ac_cs_usage="\ |
| 13802 | \`$as_me' instantiates files from templates according to the |
| 13803 | current configuration. |
| 13804 | |
| 13805 | Usage: $0 [OPTIONS] [FILE]... |
| 13806 | |
| 13807 | -h, --help print this help, then exit |
| 13808 | -V, --version print version number, then exit |
| 13809 | -d, --debug don't remove temporary files |
| 13810 | --recheck update $as_me by reconfiguring in the same conditions |
| 13811 | --file=FILE[:TEMPLATE] |
| 13812 | instantiate the configuration file FILE |
| 13813 | |
| 13814 | Configuration files: |
| 13815 | $config_files |
| 13816 | |
| 13817 | Report bugs to <bug-autoconf@gnu.org>." |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13818 | EOF |
| 13819 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13820 | cat >>$CONFIG_STATUS <<EOF |
| 13821 | ac_cs_version="\\ |
| 13822 | config.status |
| 13823 | configured by $0, generated by GNU Autoconf 2.52, |
| 13824 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13825 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13826 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 13827 | Free Software Foundation, Inc. |
| 13828 | This config.status script is free software; the Free Software Foundation |
| 13829 | gives unlimited permission to copy, distribute and modify it." |
| 13830 | srcdir=$srcdir |
| 13831 | INSTALL="$INSTALL" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13832 | EOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13833 | |
| 13834 | cat >>$CONFIG_STATUS <<\EOF |
| 13835 | # If no file are specified by the user, then we need to provide default |
| 13836 | # value. By we need to know if files were specified by the user. |
| 13837 | ac_need_defaults=: |
| 13838 | while test $# != 0 |
| 13839 | do |
| 13840 | case $1 in |
| 13841 | --*=*) |
| 13842 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 13843 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 13844 | shift |
| 13845 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
| 13846 | shift |
| 13847 | ;; |
| 13848 | -*);; |
| 13849 | *) # This is not an option, so the user has probably given explicit |
| 13850 | # arguments. |
| 13851 | ac_need_defaults=false;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13852 | esac |
| 13853 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13854 | case $1 in |
| 13855 | # Handling of the options. |
| 13856 | EOF |
| 13857 | cat >>$CONFIG_STATUS <<EOF |
| 13858 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 13859 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 13860 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
| 13861 | EOF |
| 13862 | cat >>$CONFIG_STATUS <<\EOF |
| 13863 | --version | --vers* | -V ) |
| 13864 | echo "$ac_cs_version"; exit 0 ;; |
| 13865 | --he | --h) |
| 13866 | # Conflict between --help and --header |
| 13867 | { { echo "$as_me:13867: error: ambiguous option: $1 |
| 13868 | Try \`$0 --help' for more information." >&5 |
| 13869 | echo "$as_me: error: ambiguous option: $1 |
| 13870 | Try \`$0 --help' for more information." >&2;} |
| 13871 | { (exit 1); exit 1; }; };; |
| 13872 | --help | --hel | -h ) |
| 13873 | echo "$ac_cs_usage"; exit 0 ;; |
| 13874 | --debug | --d* | -d ) |
| 13875 | debug=: ;; |
| 13876 | --file | --fil | --fi | --f ) |
| 13877 | shift |
| 13878 | CONFIG_FILES="$CONFIG_FILES $1" |
| 13879 | ac_need_defaults=false;; |
| 13880 | --header | --heade | --head | --hea ) |
| 13881 | shift |
| 13882 | CONFIG_HEADERS="$CONFIG_HEADERS $1" |
| 13883 | ac_need_defaults=false;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13884 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13885 | # This is an error. |
| 13886 | -*) { { echo "$as_me:13886: error: unrecognized option: $1 |
| 13887 | Try \`$0 --help' for more information." >&5 |
| 13888 | echo "$as_me: error: unrecognized option: $1 |
| 13889 | Try \`$0 --help' for more information." >&2;} |
| 13890 | { (exit 1); exit 1; }; } ;; |
| 13891 | |
| 13892 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 13893 | |
| 13894 | esac |
| 13895 | shift |
| 13896 | done |
| 13897 | |
| 13898 | exec 5>>config.log |
| 13899 | cat >&5 << _ACEOF |
| 13900 | |
| 13901 | ## ----------------------- ## |
| 13902 | ## Running config.status. ## |
| 13903 | ## ----------------------- ## |
| 13904 | |
| 13905 | This file was extended by $as_me 2.52, executed with |
| 13906 | CONFIG_FILES = $CONFIG_FILES |
| 13907 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 13908 | CONFIG_LINKS = $CONFIG_LINKS |
| 13909 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 13910 | > $ac_cs_invocation |
| 13911 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 13912 | |
| 13913 | _ACEOF |
| 13914 | EOF |
| 13915 | |
| 13916 | cat >>$CONFIG_STATUS <<\EOF |
| 13917 | for ac_config_target in $ac_config_targets |
| 13918 | do |
| 13919 | case "$ac_config_target" in |
| 13920 | # Handling of arguments. |
| 13921 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 13922 | *) { { echo "$as_me:13922: error: invalid argument: $ac_config_target" >&5 |
| 13923 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 13924 | { (exit 1); exit 1; }; };; |
| 13925 | esac |
| 13926 | done |
| 13927 | |
| 13928 | # If the user did not use the arguments to specify the items to instantiate, |
| 13929 | # then the envvar interface is used. Set only those that are not. |
| 13930 | # We use the long form for the default assignment because of an extremely |
| 13931 | # bizarre bug on SunOS 4.1.3. |
| 13932 | if $ac_need_defaults; then |
| 13933 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 13934 | fi |
| 13935 | |
| 13936 | # Create a temporary directory, and hook for its removal unless debugging. |
| 13937 | $debug || |
| 13938 | { |
| 13939 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 13940 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 13941 | } |
| 13942 | |
| 13943 | # Create a (secure) tmp directory for tmp files. |
| 13944 | : ${TMPDIR=/tmp} |
| 13945 | { |
| 13946 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
| 13947 | test -n "$tmp" && test -d "$tmp" |
| 13948 | } || |
| 13949 | { |
| 13950 | tmp=$TMPDIR/cs$$-$RANDOM |
| 13951 | (umask 077 && mkdir $tmp) |
| 13952 | } || |
| 13953 | { |
| 13954 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 13955 | { (exit 1); exit 1; } |
| 13956 | } |
| 13957 | |
| 13958 | EOF |
| 13959 | |
| 13960 | cat >>$CONFIG_STATUS <<EOF |
| 13961 | |
| 13962 | # |
| 13963 | # CONFIG_FILES section. |
| 13964 | # |
| 13965 | |
| 13966 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 13967 | # This happens for instance when ./config.status config.h |
| 13968 | if test -n "\$CONFIG_FILES"; then |
| 13969 | # Protect against being on the right side of a sed subst in config.status. |
| 13970 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 13971 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 13972 | s,@SHELL@,$SHELL,;t t |
| 13973 | s,@exec_prefix@,$exec_prefix,;t t |
| 13974 | s,@prefix@,$prefix,;t t |
| 13975 | s,@program_transform_name@,$program_transform_name,;t t |
| 13976 | s,@bindir@,$bindir,;t t |
| 13977 | s,@sbindir@,$sbindir,;t t |
| 13978 | s,@libexecdir@,$libexecdir,;t t |
| 13979 | s,@datadir@,$datadir,;t t |
| 13980 | s,@sysconfdir@,$sysconfdir,;t t |
| 13981 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 13982 | s,@localstatedir@,$localstatedir,;t t |
| 13983 | s,@libdir@,$libdir,;t t |
| 13984 | s,@includedir@,$includedir,;t t |
| 13985 | s,@oldincludedir@,$oldincludedir,;t t |
| 13986 | s,@infodir@,$infodir,;t t |
| 13987 | s,@mandir@,$mandir,;t t |
| 13988 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 13989 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 13990 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 13991 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 13992 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 13993 | s,@build_alias@,$build_alias,;t t |
| 13994 | s,@host_alias@,$host_alias,;t t |
| 13995 | s,@target_alias@,$target_alias,;t t |
| 13996 | s,@ECHO_C@,$ECHO_C,;t t |
| 13997 | s,@ECHO_N@,$ECHO_N,;t t |
| 13998 | s,@ECHO_T@,$ECHO_T,;t t |
| 13999 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 14000 | s,@DEFS@,$DEFS,;t t |
| 14001 | s,@LIBS@,$LIBS,;t t |
| 14002 | s,@build@,$build,;t t |
| 14003 | s,@build_cpu@,$build_cpu,;t t |
| 14004 | s,@build_vendor@,$build_vendor,;t t |
| 14005 | s,@build_os@,$build_os,;t t |
| 14006 | s,@host@,$host,;t t |
| 14007 | s,@host_cpu@,$host_cpu,;t t |
| 14008 | s,@host_vendor@,$host_vendor,;t t |
| 14009 | s,@host_os@,$host_os,;t t |
| 14010 | s,@CC@,$CC,;t t |
| 14011 | s,@CFLAGS@,$CFLAGS,;t t |
| 14012 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 14013 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 14014 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 14015 | s,@EXEEXT@,$EXEEXT,;t t |
| 14016 | s,@OBJEXT@,$OBJEXT,;t t |
| 14017 | s,@LN_S@,$LN_S,;t t |
| 14018 | s,@ECHO@,$ECHO,;t t |
| 14019 | s,@RANLIB@,$RANLIB,;t t |
| 14020 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 14021 | s,@STRIP@,$STRIP,;t t |
| 14022 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 14023 | s,@CPP@,$CPP,;t t |
| 14024 | s,@CXX@,$CXX,;t t |
| 14025 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 14026 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
| 14027 | s,@CXXCPP@,$CXXCPP,;t t |
| 14028 | s,@LIBTOOL@,$LIBTOOL,;t t |
| 14029 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 14030 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 14031 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 14032 | s,@program_prefix@,$program_prefix,;t t |
| 14033 | s,@BUILD_CC@,$BUILD_CC,;t t |
| 14034 | s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t |
| 14035 | s,@BUILD_LIBS@,$BUILD_LIBS,;t t |
| 14036 | s,@TARGET_CC@,$TARGET_CC,;t t |
| 14037 | s,@TARGET_CFLAGS@,$TARGET_CFLAGS,;t t |
| 14038 | s,@TARGET_LINK@,$TARGET_LINK,;t t |
| 14039 | s,@TARGET_LFLAGS@,$TARGET_LFLAGS,;t t |
| 14040 | s,@TARGET_RANLIB@,$TARGET_RANLIB,;t t |
| 14041 | s,@TARGET_AR@,$TARGET_AR,;t t |
| 14042 | s,@ENCODING@,$ENCODING,;t t |
| 14043 | s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t |
| 14044 | s,@OS_UNIX@,$OS_UNIX,;t t |
| 14045 | s,@OS_WIN@,$OS_WIN,;t t |
| 14046 | s,@TARGET_EXEEXT@,$TARGET_EXEEXT,;t t |
| 14047 | s,@TARGET_LIBS@,$TARGET_LIBS,;t t |
| 14048 | s,@TARGET_TCL_LIBS@,$TARGET_TCL_LIBS,;t t |
| 14049 | s,@TARGET_TCL_INC@,$TARGET_TCL_INC,;t t |
| 14050 | s,@TARGET_READLINE_LIBS@,$TARGET_READLINE_LIBS,;t t |
| 14051 | s,@TARGET_READLINE_INC@,$TARGET_READLINE_INC,;t t |
| 14052 | s,@TARGET_HAVE_READLINE@,$TARGET_HAVE_READLINE,;t t |
| 14053 | CEOF |
| 14054 | |
| 14055 | EOF |
| 14056 | |
| 14057 | cat >>$CONFIG_STATUS <<\EOF |
| 14058 | # Split the substitutions into bite-sized pieces for seds with |
| 14059 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 14060 | ac_max_sed_lines=48 |
| 14061 | ac_sed_frag=1 # Number of current file. |
| 14062 | ac_beg=1 # First line for current file. |
| 14063 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 14064 | ac_more_lines=: |
| 14065 | ac_sed_cmds= |
| 14066 | while $ac_more_lines; do |
| 14067 | if test $ac_beg -gt 1; then |
| 14068 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 14069 | else |
| 14070 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 14071 | fi |
| 14072 | if test ! -s $tmp/subs.frag; then |
| 14073 | ac_more_lines=false |
| 14074 | else |
| 14075 | # The purpose of the label and of the branching condition is to |
| 14076 | # speed up the sed processing (if there are no `@' at all, there |
| 14077 | # is no need to browse any of the substitutions). |
| 14078 | # These are the two extra sed commands mentioned above. |
| 14079 | (echo ':t |
| 14080 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 14081 | if test -z "$ac_sed_cmds"; then |
| 14082 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 14083 | else |
| 14084 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 14085 | fi |
| 14086 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 14087 | ac_beg=$ac_end |
| 14088 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 14089 | fi |
| 14090 | done |
| 14091 | if test -z "$ac_sed_cmds"; then |
| 14092 | ac_sed_cmds=cat |
| 14093 | fi |
| 14094 | fi # test -n "$CONFIG_FILES" |
| 14095 | |
| 14096 | EOF |
| 14097 | cat >>$CONFIG_STATUS <<\EOF |
| 14098 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 14099 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 14100 | case $ac_file in |
| 14101 | - | *:- | *:-:* ) # input from stdin |
| 14102 | cat >$tmp/stdin |
| 14103 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 14104 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 14105 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 14106 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 14107 | * ) ac_file_in=$ac_file.in ;; |
| 14108 | esac |
| 14109 | |
| 14110 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 14111 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14112 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 14113 | X"$ac_file" : 'X\(//\)$' \| \ |
| 14114 | X"$ac_file" : 'X\(/\)' \| \ |
| 14115 | . : '\(.\)' 2>/dev/null || |
| 14116 | echo X"$ac_file" | |
| 14117 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 14118 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 14119 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 14120 | /^X\(\/\).*/{ s//\1/; q; } |
| 14121 | s/.*/./; q'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 14122 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14123 | { case "$ac_dir" in |
| 14124 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 14125 | *) as_incr_dir=.;; |
| 14126 | esac |
| 14127 | as_dummy="$ac_dir" |
| 14128 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 14129 | case $as_mkdir_dir in |
| 14130 | # Skip DOS drivespec |
| 14131 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 14132 | *) |
| 14133 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 14134 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" |
| 14135 | ;; |
| 14136 | esac |
| 14137 | done; } |
| 14138 | |
| 14139 | ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 14140 | # A "../" for each directory in $ac_dir_suffix. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14141 | ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 14142 | else |
| 14143 | ac_dir_suffix= ac_dots= |
| 14144 | fi |
| 14145 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14146 | case $srcdir in |
| 14147 | .) ac_srcdir=. |
| 14148 | if test -z "$ac_dots"; then |
| 14149 | ac_top_srcdir=. |
| 14150 | else |
| 14151 | ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` |
| 14152 | fi ;; |
| 14153 | [\\/]* | ?:[\\/]* ) |
| 14154 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 14155 | ac_top_srcdir=$srcdir ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 14156 | *) # Relative path. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14157 | ac_srcdir=$ac_dots$srcdir$ac_dir_suffix |
| 14158 | ac_top_srcdir=$ac_dots$srcdir ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 14159 | esac |
| 14160 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14161 | case $INSTALL in |
| 14162 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 14163 | *) ac_INSTALL=$ac_dots$INSTALL ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 14164 | esac |
| 14165 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14166 | if test x"$ac_file" != x-; then |
| 14167 | { echo "$as_me:14167: creating $ac_file" >&5 |
| 14168 | echo "$as_me: creating $ac_file" >&6;} |
| 14169 | rm -f "$ac_file" |
| 14170 | fi |
| 14171 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 14172 | # use $as_me), people would be surprised to read: |
| 14173 | # /* config.h. Generated automatically by config.status. */ |
| 14174 | configure_input="Generated automatically from `echo $ac_file_in | |
| 14175 | sed 's,.*/,,'` by configure." |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 14176 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14177 | # First look for the input files in the build tree, otherwise in the |
| 14178 | # src tree. |
| 14179 | ac_file_inputs=`IFS=: |
| 14180 | for f in $ac_file_in; do |
| 14181 | case $f in |
| 14182 | -) echo $tmp/stdin ;; |
| 14183 | [\\/$]*) |
| 14184 | # Absolute (can't be DOS-style, as IFS=:) |
| 14185 | test -f "$f" || { { echo "$as_me:14185: error: cannot find input file: $f" >&5 |
| 14186 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 14187 | { (exit 1); exit 1; }; } |
| 14188 | echo $f;; |
| 14189 | *) # Relative |
| 14190 | if test -f "$f"; then |
| 14191 | # Build tree |
| 14192 | echo $f |
| 14193 | elif test -f "$srcdir/$f"; then |
| 14194 | # Source tree |
| 14195 | echo $srcdir/$f |
| 14196 | else |
| 14197 | # /dev/null tree |
| 14198 | { { echo "$as_me:14198: error: cannot find input file: $f" >&5 |
| 14199 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 14200 | { (exit 1); exit 1; }; } |
| 14201 | fi;; |
| 14202 | esac |
| 14203 | done` || { (exit 1); exit 1; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 14204 | EOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14205 | cat >>$CONFIG_STATUS <<EOF |
| 14206 | sed "$ac_vpsub |
| 14207 | $extrasub |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 14208 | EOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14209 | cat >>$CONFIG_STATUS <<\EOF |
| 14210 | :t |
| 14211 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 14212 | s,@configure_input@,$configure_input,;t t |
| 14213 | s,@srcdir@,$ac_srcdir,;t t |
| 14214 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 14215 | s,@INSTALL@,$ac_INSTALL,;t t |
| 14216 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 14217 | rm -f $tmp/stdin |
| 14218 | if test x"$ac_file" != x-; then |
| 14219 | mv $tmp/out $ac_file |
| 14220 | else |
| 14221 | cat $tmp/out |
| 14222 | rm -f $tmp/out |
| 14223 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 14224 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14225 | done |
| 14226 | EOF |
| 14227 | |
| 14228 | cat >>$CONFIG_STATUS <<\EOF |
| 14229 | |
| 14230 | { (exit 0); exit 0; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 14231 | EOF |
| 14232 | chmod +x $CONFIG_STATUS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14233 | ac_clean_files=$ac_clean_files_save |
| 14234 | |
| 14235 | # configure is writing to config.log, and then calls config.status. |
| 14236 | # config.status does its own redirection, appending to config.log. |
| 14237 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 14238 | # by configure, so config.status won't be able to write to it; its |
| 14239 | # output is simply discarded. So we exec the FD to /dev/null, |
| 14240 | # effectively closing config.log, so it can be properly (re)opened and |
| 14241 | # appended to by config.status. When coming back to configure, we |
| 14242 | # need to make the FD available again. |
| 14243 | if test "$no_create" != yes; then |
| 14244 | ac_cs_success=: |
| 14245 | exec 5>/dev/null |
| 14246 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
| 14247 | exec 5>>config.log |
| 14248 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 14249 | # would make configure fail if this is the last instruction. |
| 14250 | $ac_cs_success || { (exit 1); exit 1; } |
| 14251 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 14252 | |