configure revision 1.1.1.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for xf86-video-cirrus 1.1.0.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45 do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99 fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
155 ;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS=" $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
263 :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
266 :
267 else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<EOF
276 $*
277 EOF
278 exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291 echo_test_string=`eval $cmd` &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
295 fi
296 done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
302 :
303 else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
307 #
308 # So, first we look for a working echo in the user's PATH.
309
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
312 IFS="$lt_save_ifs"
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
317 echo="$dir/echo"
318 break
319 fi
320 done
321 IFS="$lt_save_ifs"
322
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
329 echo='print -r'
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
336 export CONFIG_SHELL
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 else
339 # Try using printf.
340 echo='printf %s\n'
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # Cool, printf works
345 :
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 export CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
353 export SHELL
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 else
361 # maybe with a smaller string...
362 prev=:
363
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366 then
367 break
368 fi
369 prev="$cmd"
370 done
371
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 else
377 # Oops. We lost completely, so just stick with echo.
378 echo=echo
379 fi
380 fi
381 fi
382 fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='xf86-video-cirrus'
425 PACKAGE_TARNAME='xf86-video-cirrus'
426 PACKAGE_VERSION='1.1.0'
427 PACKAGE_STRING='xf86-video-cirrus 1.1.0'
428 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
429
430 ac_unique_file="Makefile.am"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 # include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 # include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 # include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG ac_pt_PKG_CONFIG XORG_CFLAGS XORG_LIBS moduledir DRIVER_NAME APP_MAN_SUFFIX LIB_MAN_SUFFIX FILE_MAN_SUFFIX MISC_MAN_SUFFIX DRIVER_MAN_SUFFIX ADMIN_MAN_SUFFIX APP_MAN_DIR LIB_MAN_DIR FILE_MAN_DIR MISC_MAN_DIR DRIVER_MAN_DIR ADMIN_MAN_DIR LIBOBJS LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
515 ac_prev=
516 continue
517 fi
518
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521 # Accept the important Cygnus configure options, so we can diagnose typos.
522
523 case $ac_option in
524
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir=$ac_optarg ;;
529
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
534
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
541
542 --config-cache | -C)
543 cache_file=config.cache ;;
544
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 ac_prev=datadir ;;
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 | --da=*)
549 datadir=$ac_optarg ;;
550
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
559
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 case $ac_option in
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 *) ac_optarg=yes ;;
570 esac
571 eval "enable_$ac_feature='$ac_optarg'" ;;
572
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
581
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
584 with_gas=yes ;;
585
586 -help | --help | --hel | --he | -h)
587 ac_init_help=long ;;
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
592
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
597
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
604
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 ac_prev=infodir ;;
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
609
610 -libdir | --libdir | --libdi | --libd)
611 ac_prev=libdir ;;
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 libdir=$ac_optarg ;;
614
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
621
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
630
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 ac_prev=mandir ;;
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 mandir=$ac_optarg ;;
635
636 -nfp | --nfp | --nf)
637 # Obsolete; use --without-fp.
638 with_fp=no ;;
639
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
642 no_create=yes ;;
643
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 no_recursion=yes ;;
647
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
656
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 ac_prev=prefix ;;
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 prefix=$ac_optarg ;;
661
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
668
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
675
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
692
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
695 silent=yes ;;
696
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 ac_prev=sbindir ;;
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 | --sbi=* | --sb=*)
701 sbindir=$ac_optarg ;;
702
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
706 | --sha | --sh)
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 | --sha=* | --sh=*)
712 sharedstatedir=$ac_optarg ;;
713
714 -site | --site | --sit)
715 ac_prev=site ;;
716 -site=* | --site=* | --sit=*)
717 site=$ac_optarg ;;
718
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 ac_prev=srcdir ;;
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 srcdir=$ac_optarg ;;
723
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
730
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
735
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 verbose=yes ;;
738
739 -version | --version | --versio | --versi | --vers | -V)
740 ac_init_version=: ;;
741
742 -with-* | --with-*)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 case $ac_option in
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 *) ac_optarg=yes ;;
752 esac
753 eval "with_$ac_package='$ac_optarg'" ;;
754
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
763
764 --x)
765 # Obsolete; use --with-x.
766 with_x=yes ;;
767
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
774
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
781
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
785 ;;
786
787 *=*)
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
795 export $ac_envvar ;;
796
797 *)
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803 ;;
804
805 esac
806 done
807
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817 eval ac_val=$`echo $ac_var`
818 case $ac_val in
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
822 esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
828 do
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
851 cross_compiling=yes
852 fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
876 s/.*/./; q'`
877 srcdir=$ac_confdir
878 if test ! -r $srcdir/$ac_unique_file; then
879 srcdir=..
880 fi
881 else
882 ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
888 else
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
891 fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
949 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
950 ac_env_PKG_CONFIG_value=$PKG_CONFIG
951 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
952 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
953 ac_env_XORG_CFLAGS_set=${XORG_CFLAGS+set}
954 ac_env_XORG_CFLAGS_value=$XORG_CFLAGS
955 ac_cv_env_XORG_CFLAGS_set=${XORG_CFLAGS+set}
956 ac_cv_env_XORG_CFLAGS_value=$XORG_CFLAGS
957 ac_env_XORG_LIBS_set=${XORG_LIBS+set}
958 ac_env_XORG_LIBS_value=$XORG_LIBS
959 ac_cv_env_XORG_LIBS_set=${XORG_LIBS+set}
960 ac_cv_env_XORG_LIBS_value=$XORG_LIBS
961
962 #
963 # Report the --help message.
964 #
965 if test "$ac_init_help" = "long"; then
966 # Omit some internal or obsolete options to make the list less imposing.
967 # This message is too long to be a string in the A/UX 3.1 sh.
968 cat <<_ACEOF
969 \`configure' configures xf86-video-cirrus 1.1.0 to adapt to many kinds of systems.
970
971 Usage: $0 [OPTION]... [VAR=VALUE]...
972
973 To assign environment variables (e.g., CC, CFLAGS...), specify them as
974 VAR=VALUE. See below for descriptions of some of the useful variables.
975
976 Defaults for the options are specified in brackets.
977
978 Configuration:
979 -h, --help display this help and exit
980 --help=short display options specific to this package
981 --help=recursive display the short help of all the included packages
982 -V, --version display version information and exit
983 -q, --quiet, --silent do not print \`checking...' messages
984 --cache-file=FILE cache test results in FILE [disabled]
985 -C, --config-cache alias for \`--cache-file=config.cache'
986 -n, --no-create do not create output files
987 --srcdir=DIR find the sources in DIR [configure dir or \`..']
988
989 _ACEOF
990
991 cat <<_ACEOF
992 Installation directories:
993 --prefix=PREFIX install architecture-independent files in PREFIX
994 [$ac_default_prefix]
995 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
996 [PREFIX]
997
998 By default, \`make install' will install all the files in
999 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1000 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1001 for instance \`--prefix=\$HOME'.
1002
1003 For better control, use the options below.
1004
1005 Fine tuning of the installation directories:
1006 --bindir=DIR user executables [EPREFIX/bin]
1007 --sbindir=DIR system admin executables [EPREFIX/sbin]
1008 --libexecdir=DIR program executables [EPREFIX/libexec]
1009 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1010 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1011 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1012 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1013 --libdir=DIR object code libraries [EPREFIX/lib]
1014 --includedir=DIR C header files [PREFIX/include]
1015 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1016 --infodir=DIR info documentation [PREFIX/info]
1017 --mandir=DIR man documentation [PREFIX/man]
1018 _ACEOF
1019
1020 cat <<\_ACEOF
1021
1022 Program names:
1023 --program-prefix=PREFIX prepend PREFIX to installed program names
1024 --program-suffix=SUFFIX append SUFFIX to installed program names
1025 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1026
1027 System types:
1028 --build=BUILD configure for building on BUILD [guessed]
1029 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1030 _ACEOF
1031 fi
1032
1033 if test -n "$ac_init_help"; then
1034 case $ac_init_help in
1035 short | recursive ) echo "Configuration of xf86-video-cirrus 1.1.0:";;
1036 esac
1037 cat <<\_ACEOF
1038
1039 Optional Features:
1040 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1041 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1042 --enable-maintainer-mode enable make rules and dependencies not useful
1043 (and sometimes confusing) to the casual installer
1044 --enable-static[=PKGS]
1045 build static libraries [default=no]
1046 --enable-shared[=PKGS]
1047 build shared libraries [default=yes]
1048 --enable-fast-install[=PKGS]
1049 optimize for fast installation [default=yes]
1050 --disable-dependency-tracking speeds up one-time build
1051 --enable-dependency-tracking do not reject slow dependency extractors
1052 --disable-libtool-lock avoid locking (might break parallel builds)
1053
1054 Optional Packages:
1055 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1056 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1057 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1058 --with-pic try to use only PIC/non-PIC objects [default=use
1059 both]
1060 --with-tags[=TAGS]
1061 include additional configurations [automatic]
1062 --with-xorg-module-dir=DIR
1063 Default xorg module directory
1064 [default=$libdir/xorg/modules]
1065 --with-release-version=STRING
1066 Use release version string in package name
1067
1068 Some influential environment variables:
1069 CC C compiler command
1070 CFLAGS C compiler flags
1071 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1072 nonstandard directory <lib dir>
1073 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1074 headers in a nonstandard directory <include dir>
1075 CPP C preprocessor
1076 CXX C++ compiler command
1077 CXXFLAGS C++ compiler flags
1078 CXXCPP C++ preprocessor
1079 F77 Fortran 77 compiler command
1080 FFLAGS Fortran 77 compiler flags
1081 PKG_CONFIG path to pkg-config utility
1082 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1083 XORG_LIBS linker flags for XORG, overriding pkg-config
1084
1085 Use these variables to override the choices made by `configure' or to help
1086 it to find libraries and programs with nonstandard names/locations.
1087
1088 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1089 _ACEOF
1090 fi
1091
1092 if test "$ac_init_help" = "recursive"; then
1093 # If there are subdirs, report their specific --help.
1094 ac_popdir=`pwd`
1095 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1096 test -d $ac_dir || continue
1097 ac_builddir=.
1098
1099 if test "$ac_dir" != .; then
1100 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1101 # A "../" for each directory in $ac_dir_suffix.
1102 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1103 else
1104 ac_dir_suffix= ac_top_builddir=
1105 fi
1106
1107 case $srcdir in
1108 .) # No --srcdir option. We are building in place.
1109 ac_srcdir=.
1110 if test -z "$ac_top_builddir"; then
1111 ac_top_srcdir=.
1112 else
1113 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1114 fi ;;
1115 [\\/]* | ?:[\\/]* ) # Absolute path.
1116 ac_srcdir=$srcdir$ac_dir_suffix;
1117 ac_top_srcdir=$srcdir ;;
1118 *) # Relative path.
1119 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1120 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1121 esac
1122
1123 # Do not use `cd foo && pwd` to compute absolute paths, because
1124 # the directories may not exist.
1125 case `pwd` in
1126 .) ac_abs_builddir="$ac_dir";;
1127 *)
1128 case "$ac_dir" in
1129 .) ac_abs_builddir=`pwd`;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1131 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1132 esac;;
1133 esac
1134 case $ac_abs_builddir in
1135 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1136 *)
1137 case ${ac_top_builddir}. in
1138 .) ac_abs_top_builddir=$ac_abs_builddir;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1140 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1141 esac;;
1142 esac
1143 case $ac_abs_builddir in
1144 .) ac_abs_srcdir=$ac_srcdir;;
1145 *)
1146 case $ac_srcdir in
1147 .) ac_abs_srcdir=$ac_abs_builddir;;
1148 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1149 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1150 esac;;
1151 esac
1152 case $ac_abs_builddir in
1153 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1154 *)
1155 case $ac_top_srcdir in
1156 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1157 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1158 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1159 esac;;
1160 esac
1161
1162 cd $ac_dir
1163 # Check for guested configure; otherwise get Cygnus style configure.
1164 if test -f $ac_srcdir/configure.gnu; then
1165 echo
1166 $SHELL $ac_srcdir/configure.gnu --help=recursive
1167 elif test -f $ac_srcdir/configure; then
1168 echo
1169 $SHELL $ac_srcdir/configure --help=recursive
1170 elif test -f $ac_srcdir/configure.ac ||
1171 test -f $ac_srcdir/configure.in; then
1172 echo
1173 $ac_configure --help
1174 else
1175 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1176 fi
1177 cd $ac_popdir
1178 done
1179 fi
1180
1181 test -n "$ac_init_help" && exit 0
1182 if $ac_init_version; then
1183 cat <<\_ACEOF
1184 xf86-video-cirrus configure 1.1.0
1185 generated by GNU Autoconf 2.59
1186
1187 Copyright (C) 2003 Free Software Foundation, Inc.
1188 This configure script is free software; the Free Software Foundation
1189 gives unlimited permission to copy, distribute and modify it.
1190 _ACEOF
1191 exit 0
1192 fi
1193 exec 5>config.log
1194 cat >&5 <<_ACEOF
1195 This file contains any messages produced by compilers while
1196 running configure, to aid debugging if configure makes a mistake.
1197
1198 It was created by xf86-video-cirrus $as_me 1.1.0, which was
1199 generated by GNU Autoconf 2.59. Invocation command line was
1200
1201 $ $0 $@
1202
1203 _ACEOF
1204 {
1205 cat <<_ASUNAME
1206 ## --------- ##
1207 ## Platform. ##
1208 ## --------- ##
1209
1210 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1211 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1212 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1213 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1214 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1215
1216 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1217 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1218
1219 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1220 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1221 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1222 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1223 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1224 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1225 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1226
1227 _ASUNAME
1228
1229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1230 for as_dir in $PATH
1231 do
1232 IFS=$as_save_IFS
1233 test -z "$as_dir" && as_dir=.
1234 echo "PATH: $as_dir"
1235 done
1236
1237 } >&5
1238
1239 cat >&5 <<_ACEOF
1240
1241
1242 ## ----------- ##
1243 ## Core tests. ##
1244 ## ----------- ##
1245
1246 _ACEOF
1247
1248
1249 # Keep a trace of the command line.
1250 # Strip out --no-create and --no-recursion so they do not pile up.
1251 # Strip out --silent because we don't want to record it for future runs.
1252 # Also quote any args containing shell meta-characters.
1253 # Make two passes to allow for proper duplicate-argument suppression.
1254 ac_configure_args=
1255 ac_configure_args0=
1256 ac_configure_args1=
1257 ac_sep=
1258 ac_must_keep_next=false
1259 for ac_pass in 1 2
1260 do
1261 for ac_arg
1262 do
1263 case $ac_arg in
1264 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1265 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1266 | -silent | --silent | --silen | --sile | --sil)
1267 continue ;;
1268 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1269 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1270 esac
1271 case $ac_pass in
1272 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1273 2)
1274 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1275 if test $ac_must_keep_next = true; then
1276 ac_must_keep_next=false # Got value, back to normal.
1277 else
1278 case $ac_arg in
1279 *=* | --config-cache | -C | -disable-* | --disable-* \
1280 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1281 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1282 | -with-* | --with-* | -without-* | --without-* | --x)
1283 case "$ac_configure_args0 " in
1284 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1285 esac
1286 ;;
1287 -* ) ac_must_keep_next=true ;;
1288 esac
1289 fi
1290 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1291 # Get rid of the leading space.
1292 ac_sep=" "
1293 ;;
1294 esac
1295 done
1296 done
1297 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1298 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1299
1300 # When interrupted or exit'd, cleanup temporary files, and complete
1301 # config.log. We remove comments because anyway the quotes in there
1302 # would cause problems or look ugly.
1303 # WARNING: Be sure not to use single quotes in there, as some shells,
1304 # such as our DU 5.0 friend, will then `close' the trap.
1305 trap 'exit_status=$?
1306 # Save into config.log some information that might help in debugging.
1307 {
1308 echo
1309
1310 cat <<\_ASBOX
1311 ## ---------------- ##
1312 ## Cache variables. ##
1313 ## ---------------- ##
1314 _ASBOX
1315 echo
1316 # The following way of writing the cache mishandles newlines in values,
1317 {
1318 (set) 2>&1 |
1319 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1320 *ac_space=\ *)
1321 sed -n \
1322 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1323 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1324 ;;
1325 *)
1326 sed -n \
1327 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1328 ;;
1329 esac;
1330 }
1331 echo
1332
1333 cat <<\_ASBOX
1334 ## ----------------- ##
1335 ## Output variables. ##
1336 ## ----------------- ##
1337 _ASBOX
1338 echo
1339 for ac_var in $ac_subst_vars
1340 do
1341 eval ac_val=$`echo $ac_var`
1342 echo "$ac_var='"'"'$ac_val'"'"'"
1343 done | sort
1344 echo
1345
1346 if test -n "$ac_subst_files"; then
1347 cat <<\_ASBOX
1348 ## ------------- ##
1349 ## Output files. ##
1350 ## ------------- ##
1351 _ASBOX
1352 echo
1353 for ac_var in $ac_subst_files
1354 do
1355 eval ac_val=$`echo $ac_var`
1356 echo "$ac_var='"'"'$ac_val'"'"'"
1357 done | sort
1358 echo
1359 fi
1360
1361 if test -s confdefs.h; then
1362 cat <<\_ASBOX
1363 ## ----------- ##
1364 ## confdefs.h. ##
1365 ## ----------- ##
1366 _ASBOX
1367 echo
1368 sed "/^$/d" confdefs.h | sort
1369 echo
1370 fi
1371 test "$ac_signal" != 0 &&
1372 echo "$as_me: caught signal $ac_signal"
1373 echo "$as_me: exit $exit_status"
1374 } >&5
1375 rm -f core *.core &&
1376 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1377 exit $exit_status
1378 ' 0
1379 for ac_signal in 1 2 13 15; do
1380 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1381 done
1382 ac_signal=0
1383
1384 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1385 rm -rf conftest* confdefs.h
1386 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1387 echo >confdefs.h
1388
1389 # Predefined preprocessor variables.
1390
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_NAME "$PACKAGE_NAME"
1393 _ACEOF
1394
1395
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1398 _ACEOF
1399
1400
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1403 _ACEOF
1404
1405
1406 cat >>confdefs.h <<_ACEOF
1407 #define PACKAGE_STRING "$PACKAGE_STRING"
1408 _ACEOF
1409
1410
1411 cat >>confdefs.h <<_ACEOF
1412 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1413 _ACEOF
1414
1415
1416 # Let the site file select an alternate cache file if it wants to.
1417 # Prefer explicitly selected file to automatically selected ones.
1418 if test -z "$CONFIG_SITE"; then
1419 if test "x$prefix" != xNONE; then
1420 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1421 else
1422 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1423 fi
1424 fi
1425 for ac_site_file in $CONFIG_SITE; do
1426 if test -r "$ac_site_file"; then
1427 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1428 echo "$as_me: loading site script $ac_site_file" >&6;}
1429 sed 's/^/| /' "$ac_site_file" >&5
1430 . "$ac_site_file"
1431 fi
1432 done
1433
1434 if test -r "$cache_file"; then
1435 # Some versions of bash will fail to source /dev/null (special
1436 # files actually), so we avoid doing that.
1437 if test -f "$cache_file"; then
1438 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1439 echo "$as_me: loading cache $cache_file" >&6;}
1440 case $cache_file in
1441 [\\/]* | ?:[\\/]* ) . $cache_file;;
1442 *) . ./$cache_file;;
1443 esac
1444 fi
1445 else
1446 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1447 echo "$as_me: creating cache $cache_file" >&6;}
1448 >$cache_file
1449 fi
1450
1451 # Check that the precious variables saved in the cache have kept the same
1452 # value.
1453 ac_cache_corrupted=false
1454 for ac_var in `(set) 2>&1 |
1455 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1456 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1457 eval ac_new_set=\$ac_env_${ac_var}_set
1458 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1459 eval ac_new_val="\$ac_env_${ac_var}_value"
1460 case $ac_old_set,$ac_new_set in
1461 set,)
1462 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1463 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1464 ac_cache_corrupted=: ;;
1465 ,set)
1466 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1467 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1468 ac_cache_corrupted=: ;;
1469 ,);;
1470 *)
1471 if test "x$ac_old_val" != "x$ac_new_val"; then
1472 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1473 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1474 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1475 echo "$as_me: former value: $ac_old_val" >&2;}
1476 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1477 echo "$as_me: current value: $ac_new_val" >&2;}
1478 ac_cache_corrupted=:
1479 fi;;
1480 esac
1481 # Pass precious variables to config.status.
1482 if test "$ac_new_set" = set; then
1483 case $ac_new_val in
1484 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1485 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1486 *) ac_arg=$ac_var=$ac_new_val ;;
1487 esac
1488 case " $ac_configure_args " in
1489 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1490 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1491 esac
1492 fi
1493 done
1494 if $ac_cache_corrupted; then
1495 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1496 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1497 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1498 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1499 { (exit 1); exit 1; }; }
1500 fi
1501
1502 ac_ext=c
1503 ac_cpp='$CPP $CPPFLAGS'
1504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536 ac_config_headers="$ac_config_headers config.h"
1537
1538 ac_aux_dir=
1539 for ac_dir in . $srcdir/.; do
1540 if test -f $ac_dir/install-sh; then
1541 ac_aux_dir=$ac_dir
1542 ac_install_sh="$ac_aux_dir/install-sh -c"
1543 break
1544 elif test -f $ac_dir/install.sh; then
1545 ac_aux_dir=$ac_dir
1546 ac_install_sh="$ac_aux_dir/install.sh -c"
1547 break
1548 elif test -f $ac_dir/shtool; then
1549 ac_aux_dir=$ac_dir
1550 ac_install_sh="$ac_aux_dir/shtool install -c"
1551 break
1552 fi
1553 done
1554 if test -z "$ac_aux_dir"; then
1555 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1556 echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1557 { (exit 1); exit 1; }; }
1558 fi
1559 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1560 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1561 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1562
1563
1564 am__api_version="1.9"
1565 # Find a good install program. We prefer a C program (faster),
1566 # so one script is as good as another. But avoid the broken or
1567 # incompatible versions:
1568 # SysV /etc/install, /usr/sbin/install
1569 # SunOS /usr/etc/install
1570 # IRIX /sbin/install
1571 # AIX /bin/install
1572 # AmigaOS /C/install, which installs bootblocks on floppy discs
1573 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1574 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1575 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1576 # OS/2's system install, which has a completely different semantic
1577 # ./install, which can be erroneously created by make from ./install.sh.
1578 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1579 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1580 if test -z "$INSTALL"; then
1581 if test "${ac_cv_path_install+set}" = set; then
1582 echo $ECHO_N "(cached) $ECHO_C" >&6
1583 else
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 for as_dir in $PATH
1586 do
1587 IFS=$as_save_IFS
1588 test -z "$as_dir" && as_dir=.
1589 # Account for people who put trailing slashes in PATH elements.
1590 case $as_dir/ in
1591 ./ | .// | /cC/* | \
1592 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1593 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1594 /usr/ucb/* ) ;;
1595 *)
1596 # OSF1 and SCO ODT 3.0 have their own names for install.
1597 # Don't use installbsd from OSF since it installs stuff as root
1598 # by default.
1599 for ac_prog in ginstall scoinst install; do
1600 for ac_exec_ext in '' $ac_executable_extensions; do
1601 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1602 if test $ac_prog = install &&
1603 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1604 # AIX install. It has an incompatible calling convention.
1605 :
1606 elif test $ac_prog = install &&
1607 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1608 # program-specific install script used by HP pwplus--don't use.
1609 :
1610 else
1611 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1612 break 3
1613 fi
1614 fi
1615 done
1616 done
1617 ;;
1618 esac
1619 done
1620
1621
1622 fi
1623 if test "${ac_cv_path_install+set}" = set; then
1624 INSTALL=$ac_cv_path_install
1625 else
1626 # As a last resort, use the slow shell script. We don't cache a
1627 # path for INSTALL within a source directory, because that will
1628 # break other packages using the cache if that directory is
1629 # removed, or if the path is relative.
1630 INSTALL=$ac_install_sh
1631 fi
1632 fi
1633 echo "$as_me:$LINENO: result: $INSTALL" >&5
1634 echo "${ECHO_T}$INSTALL" >&6
1635
1636 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1637 # It thinks the first close brace ends the variable substitution.
1638 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1639
1640 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1641
1642 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1643
1644 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1645 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1646 # Just in case
1647 sleep 1
1648 echo timestamp > conftest.file
1649 # Do `set' in a subshell so we don't clobber the current shell's
1650 # arguments. Must try -L first in case configure is actually a
1651 # symlink; some systems play weird games with the mod time of symlinks
1652 # (eg FreeBSD returns the mod time of the symlink's containing
1653 # directory).
1654 if (
1655 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1656 if test "$*" = "X"; then
1657 # -L didn't work.
1658 set X `ls -t $srcdir/configure conftest.file`
1659 fi
1660 rm -f conftest.file
1661 if test "$*" != "X $srcdir/configure conftest.file" \
1662 && test "$*" != "X conftest.file $srcdir/configure"; then
1663
1664 # If neither matched, then we have a broken ls. This can happen
1665 # if, for instance, CONFIG_SHELL is bash and it inherits a
1666 # broken ls alias from the environment. This has actually
1667 # happened. Such a system could not be considered "sane".
1668 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1669 alias in your environment" >&5
1670 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1671 alias in your environment" >&2;}
1672 { (exit 1); exit 1; }; }
1673 fi
1674
1675 test "$2" = conftest.file
1676 )
1677 then
1678 # Ok.
1679 :
1680 else
1681 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1682 Check your system clock" >&5
1683 echo "$as_me: error: newly created file is older than distributed files!
1684 Check your system clock" >&2;}
1685 { (exit 1); exit 1; }; }
1686 fi
1687 echo "$as_me:$LINENO: result: yes" >&5
1688 echo "${ECHO_T}yes" >&6
1689 test "$program_prefix" != NONE &&
1690 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1691 # Use a double $ so make ignores it.
1692 test "$program_suffix" != NONE &&
1693 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1694 # Double any \ or $. echo might interpret backslashes.
1695 # By default was `s,x,x', remove it if useless.
1696 cat <<\_ACEOF >conftest.sed
1697 s/[\\$]/&&/g;s/;s,x,x,$//
1698 _ACEOF
1699 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1700 rm conftest.sed
1701
1702 # expand $ac_aux_dir to an absolute path
1703 am_aux_dir=`cd $ac_aux_dir && pwd`
1704
1705 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1706 # Use eval to expand $SHELL
1707 if eval "$MISSING --run true"; then
1708 am_missing_run="$MISSING --run "
1709 else
1710 am_missing_run=
1711 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1712 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1713 fi
1714
1715 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1716 # We used to keeping the `.' as first argument, in order to
1717 # allow $(mkdir_p) to be used without argument. As in
1718 # $(mkdir_p) $(somedir)
1719 # where $(somedir) is conditionally defined. However this is wrong
1720 # for two reasons:
1721 # 1. if the package is installed by a user who cannot write `.'
1722 # make install will fail,
1723 # 2. the above comment should most certainly read
1724 # $(mkdir_p) $(DESTDIR)$(somedir)
1725 # so it does not work when $(somedir) is undefined and
1726 # $(DESTDIR) is not.
1727 # To support the latter case, we have to write
1728 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1729 # so the `.' trick is pointless.
1730 mkdir_p='mkdir -p --'
1731 else
1732 # On NextStep and OpenStep, the `mkdir' command does not
1733 # recognize any option. It will interpret all options as
1734 # directories to create, and then abort because `.' already
1735 # exists.
1736 for d in ./-p ./--version;
1737 do
1738 test -d $d && rmdir $d
1739 done
1740 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1741 if test -f "$ac_aux_dir/mkinstalldirs"; then
1742 mkdir_p='$(mkinstalldirs)'
1743 else
1744 mkdir_p='$(install_sh) -d'
1745 fi
1746 fi
1747
1748 for ac_prog in gawk mawk nawk awk
1749 do
1750 # Extract the first word of "$ac_prog", so it can be a program name with args.
1751 set dummy $ac_prog; ac_word=$2
1752 echo "$as_me:$LINENO: checking for $ac_word" >&5
1753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1754 if test "${ac_cv_prog_AWK+set}" = set; then
1755 echo $ECHO_N "(cached) $ECHO_C" >&6
1756 else
1757 if test -n "$AWK"; then
1758 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1759 else
1760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761 for as_dir in $PATH
1762 do
1763 IFS=$as_save_IFS
1764 test -z "$as_dir" && as_dir=.
1765 for ac_exec_ext in '' $ac_executable_extensions; do
1766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1767 ac_cv_prog_AWK="$ac_prog"
1768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1769 break 2
1770 fi
1771 done
1772 done
1773
1774 fi
1775 fi
1776 AWK=$ac_cv_prog_AWK
1777 if test -n "$AWK"; then
1778 echo "$as_me:$LINENO: result: $AWK" >&5
1779 echo "${ECHO_T}$AWK" >&6
1780 else
1781 echo "$as_me:$LINENO: result: no" >&5
1782 echo "${ECHO_T}no" >&6
1783 fi
1784
1785 test -n "$AWK" && break
1786 done
1787
1788 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1789 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1790 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1791 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1793 else
1794 cat >conftest.make <<\_ACEOF
1795 all:
1796 @echo 'ac_maketemp="$(MAKE)"'
1797 _ACEOF
1798 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1799 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1800 if test -n "$ac_maketemp"; then
1801 eval ac_cv_prog_make_${ac_make}_set=yes
1802 else
1803 eval ac_cv_prog_make_${ac_make}_set=no
1804 fi
1805 rm -f conftest.make
1806 fi
1807 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1808 echo "$as_me:$LINENO: result: yes" >&5
1809 echo "${ECHO_T}yes" >&6
1810 SET_MAKE=
1811 else
1812 echo "$as_me:$LINENO: result: no" >&5
1813 echo "${ECHO_T}no" >&6
1814 SET_MAKE="MAKE=${MAKE-make}"
1815 fi
1816
1817 rm -rf .tst 2>/dev/null
1818 mkdir .tst 2>/dev/null
1819 if test -d .tst; then
1820 am__leading_dot=.
1821 else
1822 am__leading_dot=_
1823 fi
1824 rmdir .tst 2>/dev/null
1825
1826 # test to see if srcdir already configured
1827 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1828 test -f $srcdir/config.status; then
1829 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1830 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1831 { (exit 1); exit 1; }; }
1832 fi
1833
1834 # test whether we have cygpath
1835 if test -z "$CYGPATH_W"; then
1836 if (cygpath --version) >/dev/null 2>/dev/null; then
1837 CYGPATH_W='cygpath -w'
1838 else
1839 CYGPATH_W=echo
1840 fi
1841 fi
1842
1843
1844 # Define the identity of the package.
1845 PACKAGE='xf86-video-cirrus'
1846 VERSION='1.1.0'
1847
1848
1849 cat >>confdefs.h <<_ACEOF
1850 #define PACKAGE "$PACKAGE"
1851 _ACEOF
1852
1853
1854 cat >>confdefs.h <<_ACEOF
1855 #define VERSION "$VERSION"
1856 _ACEOF
1857
1858 # Some tools Automake needs.
1859
1860 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1861
1862
1863 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1864
1865
1866 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1867
1868
1869 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1870
1871
1872 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1873
1874 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1875
1876 # Installed binaries are usually stripped using `strip' when the user
1877 # run `make install-strip'. However `strip' might not be the right
1878 # tool to use in cross-compilation environments, therefore Automake
1879 # will honor the `STRIP' environment variable to overrule this program.
1880 if test "$cross_compiling" != no; then
1881 if test -n "$ac_tool_prefix"; then
1882 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1883 set dummy ${ac_tool_prefix}strip; ac_word=$2
1884 echo "$as_me:$LINENO: checking for $ac_word" >&5
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886 if test "${ac_cv_prog_STRIP+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 else
1889 if test -n "$STRIP"; then
1890 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1891 else
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 for as_dir in $PATH
1894 do
1895 IFS=$as_save_IFS
1896 test -z "$as_dir" && as_dir=.
1897 for ac_exec_ext in '' $ac_executable_extensions; do
1898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901 break 2
1902 fi
1903 done
1904 done
1905
1906 fi
1907 fi
1908 STRIP=$ac_cv_prog_STRIP
1909 if test -n "$STRIP"; then
1910 echo "$as_me:$LINENO: result: $STRIP" >&5
1911 echo "${ECHO_T}$STRIP" >&6
1912 else
1913 echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1915 fi
1916
1917 fi
1918 if test -z "$ac_cv_prog_STRIP"; then
1919 ac_ct_STRIP=$STRIP
1920 # Extract the first word of "strip", so it can be a program name with args.
1921 set dummy strip; ac_word=$2
1922 echo "$as_me:$LINENO: checking for $ac_word" >&5
1923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1924 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1926 else
1927 if test -n "$ac_ct_STRIP"; then
1928 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1929 else
1930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931 for as_dir in $PATH
1932 do
1933 IFS=$as_save_IFS
1934 test -z "$as_dir" && as_dir=.
1935 for ac_exec_ext in '' $ac_executable_extensions; do
1936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1937 ac_cv_prog_ac_ct_STRIP="strip"
1938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939 break 2
1940 fi
1941 done
1942 done
1943
1944 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1945 fi
1946 fi
1947 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1948 if test -n "$ac_ct_STRIP"; then
1949 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1950 echo "${ECHO_T}$ac_ct_STRIP" >&6
1951 else
1952 echo "$as_me:$LINENO: result: no" >&5
1953 echo "${ECHO_T}no" >&6
1954 fi
1955
1956 STRIP=$ac_ct_STRIP
1957 else
1958 STRIP="$ac_cv_prog_STRIP"
1959 fi
1960
1961 fi
1962 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1963
1964 # We need awk for the "check" target. The system "awk" is bad on
1965 # some platforms.
1966 # Always define AMTAR for backward compatibility.
1967
1968 AMTAR=${AMTAR-"${am_missing_run}tar"}
1969
1970 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1971
1972
1973
1974
1975
1976
1977 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1978 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1979 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1980 if test "${enable_maintainer_mode+set}" = set; then
1981 enableval="$enable_maintainer_mode"
1982 USE_MAINTAINER_MODE=$enableval
1983 else
1984 USE_MAINTAINER_MODE=no
1985 fi;
1986 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1987 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1988
1989
1990 if test $USE_MAINTAINER_MODE = yes; then
1991 MAINTAINER_MODE_TRUE=
1992 MAINTAINER_MODE_FALSE='#'
1993 else
1994 MAINTAINER_MODE_TRUE='#'
1995 MAINTAINER_MODE_FALSE=
1996 fi
1997
1998 MAINT=$MAINTAINER_MODE_TRUE
1999
2000
2001
2002 # Checks for programs.
2003 # Check whether --enable-static or --disable-static was given.
2004 if test "${enable_static+set}" = set; then
2005 enableval="$enable_static"
2006 p=${PACKAGE-default}
2007 case $enableval in
2008 yes) enable_static=yes ;;
2009 no) enable_static=no ;;
2010 *)
2011 enable_static=no
2012 # Look at the argument we got. We use all the common list separators.
2013 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2014 for pkg in $enableval; do
2015 IFS="$lt_save_ifs"
2016 if test "X$pkg" = "X$p"; then
2017 enable_static=yes
2018 fi
2019 done
2020 IFS="$lt_save_ifs"
2021 ;;
2022 esac
2023 else
2024 enable_static=no
2025 fi;
2026
2027
2028 # Check whether --enable-shared or --disable-shared was given.
2029 if test "${enable_shared+set}" = set; then
2030 enableval="$enable_shared"
2031 p=${PACKAGE-default}
2032 case $enableval in
2033 yes) enable_shared=yes ;;
2034 no) enable_shared=no ;;
2035 *)
2036 enable_shared=no
2037 # Look at the argument we got. We use all the common list separators.
2038 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2039 for pkg in $enableval; do
2040 IFS="$lt_save_ifs"
2041 if test "X$pkg" = "X$p"; then
2042 enable_shared=yes
2043 fi
2044 done
2045 IFS="$lt_save_ifs"
2046 ;;
2047 esac
2048 else
2049 enable_shared=yes
2050 fi;
2051
2052 # Check whether --enable-fast-install or --disable-fast-install was given.
2053 if test "${enable_fast_install+set}" = set; then
2054 enableval="$enable_fast_install"
2055 p=${PACKAGE-default}
2056 case $enableval in
2057 yes) enable_fast_install=yes ;;
2058 no) enable_fast_install=no ;;
2059 *)
2060 enable_fast_install=no
2061 # Look at the argument we got. We use all the common list separators.
2062 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2063 for pkg in $enableval; do
2064 IFS="$lt_save_ifs"
2065 if test "X$pkg" = "X$p"; then
2066 enable_fast_install=yes
2067 fi
2068 done
2069 IFS="$lt_save_ifs"
2070 ;;
2071 esac
2072 else
2073 enable_fast_install=yes
2074 fi;
2075
2076 # Make sure we can run config.sub.
2077 $ac_config_sub sun4 >/dev/null 2>&1 ||
2078 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2079 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2080 { (exit 1); exit 1; }; }
2081
2082 echo "$as_me:$LINENO: checking build system type" >&5
2083 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2084 if test "${ac_cv_build+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 else
2087 ac_cv_build_alias=$build_alias
2088 test -z "$ac_cv_build_alias" &&
2089 ac_cv_build_alias=`$ac_config_guess`
2090 test -z "$ac_cv_build_alias" &&
2091 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2092 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2093 { (exit 1); exit 1; }; }
2094 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2095 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2096 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2097 { (exit 1); exit 1; }; }
2098
2099 fi
2100 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2101 echo "${ECHO_T}$ac_cv_build" >&6
2102 build=$ac_cv_build
2103 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2104 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2105 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2106
2107
2108 echo "$as_me:$LINENO: checking host system type" >&5
2109 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2110 if test "${ac_cv_host+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2112 else
2113 ac_cv_host_alias=$host_alias
2114 test -z "$ac_cv_host_alias" &&
2115 ac_cv_host_alias=$ac_cv_build_alias
2116 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2117 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2118 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2119 { (exit 1); exit 1; }; }
2120
2121 fi
2122 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2123 echo "${ECHO_T}$ac_cv_host" >&6
2124 host=$ac_cv_host
2125 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2126 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2127 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2128
2129
2130 DEPDIR="${am__leading_dot}deps"
2131
2132 ac_config_commands="$ac_config_commands depfiles"
2133
2134
2135 am_make=${MAKE-make}
2136 cat > confinc << 'END'
2137 am__doit:
2138 @echo done
2139 .PHONY: am__doit
2140 END
2141 # If we don't find an include directive, just comment out the code.
2142 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2143 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2144 am__include="#"
2145 am__quote=
2146 _am_result=none
2147 # First try GNU make style include.
2148 echo "include confinc" > confmf
2149 # We grep out `Entering directory' and `Leaving directory'
2150 # messages which can occur if `w' ends up in MAKEFLAGS.
2151 # In particular we don't look at `^make:' because GNU make might
2152 # be invoked under some other name (usually "gmake"), in which
2153 # case it prints its new name instead of `make'.
2154 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2155 am__include=include
2156 am__quote=
2157 _am_result=GNU
2158 fi
2159 # Now try BSD make style include.
2160 if test "$am__include" = "#"; then
2161 echo '.include "confinc"' > confmf
2162 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2163 am__include=.include
2164 am__quote="\""
2165 _am_result=BSD
2166 fi
2167 fi
2168
2169
2170 echo "$as_me:$LINENO: result: $_am_result" >&5
2171 echo "${ECHO_T}$_am_result" >&6
2172 rm -f confinc confmf
2173
2174 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2175 if test "${enable_dependency_tracking+set}" = set; then
2176 enableval="$enable_dependency_tracking"
2177
2178 fi;
2179 if test "x$enable_dependency_tracking" != xno; then
2180 am_depcomp="$ac_aux_dir/depcomp"
2181 AMDEPBACKSLASH='\'
2182 fi
2183
2184
2185 if test "x$enable_dependency_tracking" != xno; then
2186 AMDEP_TRUE=
2187 AMDEP_FALSE='#'
2188 else
2189 AMDEP_TRUE='#'
2190 AMDEP_FALSE=
2191 fi
2192
2193
2194
2195 ac_ext=c
2196 ac_cpp='$CPP $CPPFLAGS'
2197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2200 if test -n "$ac_tool_prefix"; then
2201 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2202 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2203 echo "$as_me:$LINENO: checking for $ac_word" >&5
2204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2205 if test "${ac_cv_prog_CC+set}" = set; then
2206 echo $ECHO_N "(cached) $ECHO_C" >&6
2207 else
2208 if test -n "$CC"; then
2209 ac_cv_prog_CC="$CC" # Let the user override the test.
2210 else
2211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2212 for as_dir in $PATH
2213 do
2214 IFS=$as_save_IFS
2215 test -z "$as_dir" && as_dir=.
2216 for ac_exec_ext in '' $ac_executable_extensions; do
2217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2218 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2220 break 2
2221 fi
2222 done
2223 done
2224
2225 fi
2226 fi
2227 CC=$ac_cv_prog_CC
2228 if test -n "$CC"; then
2229 echo "$as_me:$LINENO: result: $CC" >&5
2230 echo "${ECHO_T}$CC" >&6
2231 else
2232 echo "$as_me:$LINENO: result: no" >&5
2233 echo "${ECHO_T}no" >&6
2234 fi
2235
2236 fi
2237 if test -z "$ac_cv_prog_CC"; then
2238 ac_ct_CC=$CC
2239 # Extract the first word of "gcc", so it can be a program name with args.
2240 set dummy gcc; ac_word=$2
2241 echo "$as_me:$LINENO: checking for $ac_word" >&5
2242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2243 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
2245 else
2246 if test -n "$ac_ct_CC"; then
2247 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2248 else
2249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250 for as_dir in $PATH
2251 do
2252 IFS=$as_save_IFS
2253 test -z "$as_dir" && as_dir=.
2254 for ac_exec_ext in '' $ac_executable_extensions; do
2255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2256 ac_cv_prog_ac_ct_CC="gcc"
2257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2258 break 2
2259 fi
2260 done
2261 done
2262
2263 fi
2264 fi
2265 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2266 if test -n "$ac_ct_CC"; then
2267 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2268 echo "${ECHO_T}$ac_ct_CC" >&6
2269 else
2270 echo "$as_me:$LINENO: result: no" >&5
2271 echo "${ECHO_T}no" >&6
2272 fi
2273
2274 CC=$ac_ct_CC
2275 else
2276 CC="$ac_cv_prog_CC"
2277 fi
2278
2279 if test -z "$CC"; then
2280 if test -n "$ac_tool_prefix"; then
2281 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2282 set dummy ${ac_tool_prefix}cc; ac_word=$2
2283 echo "$as_me:$LINENO: checking for $ac_word" >&5
2284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2285 if test "${ac_cv_prog_CC+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2287 else
2288 if test -n "$CC"; then
2289 ac_cv_prog_CC="$CC" # Let the user override the test.
2290 else
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 for as_dir in $PATH
2293 do
2294 IFS=$as_save_IFS
2295 test -z "$as_dir" && as_dir=.
2296 for ac_exec_ext in '' $ac_executable_extensions; do
2297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2298 ac_cv_prog_CC="${ac_tool_prefix}cc"
2299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2300 break 2
2301 fi
2302 done
2303 done
2304
2305 fi
2306 fi
2307 CC=$ac_cv_prog_CC
2308 if test -n "$CC"; then
2309 echo "$as_me:$LINENO: result: $CC" >&5
2310 echo "${ECHO_T}$CC" >&6
2311 else
2312 echo "$as_me:$LINENO: result: no" >&5
2313 echo "${ECHO_T}no" >&6
2314 fi
2315
2316 fi
2317 if test -z "$ac_cv_prog_CC"; then
2318 ac_ct_CC=$CC
2319 # Extract the first word of "cc", so it can be a program name with args.
2320 set dummy cc; ac_word=$2
2321 echo "$as_me:$LINENO: checking for $ac_word" >&5
2322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2323 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2325 else
2326 if test -n "$ac_ct_CC"; then
2327 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2328 else
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 for as_dir in $PATH
2331 do
2332 IFS=$as_save_IFS
2333 test -z "$as_dir" && as_dir=.
2334 for ac_exec_ext in '' $ac_executable_extensions; do
2335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2336 ac_cv_prog_ac_ct_CC="cc"
2337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 break 2
2339 fi
2340 done
2341 done
2342
2343 fi
2344 fi
2345 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2346 if test -n "$ac_ct_CC"; then
2347 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2348 echo "${ECHO_T}$ac_ct_CC" >&6
2349 else
2350 echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6
2352 fi
2353
2354 CC=$ac_ct_CC
2355 else
2356 CC="$ac_cv_prog_CC"
2357 fi
2358
2359 fi
2360 if test -z "$CC"; then
2361 # Extract the first word of "cc", so it can be a program name with args.
2362 set dummy cc; ac_word=$2
2363 echo "$as_me:$LINENO: checking for $ac_word" >&5
2364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2365 if test "${ac_cv_prog_CC+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 else
2368 if test -n "$CC"; then
2369 ac_cv_prog_CC="$CC" # Let the user override the test.
2370 else
2371 ac_prog_rejected=no
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2374 do
2375 IFS=$as_save_IFS
2376 test -z "$as_dir" && as_dir=.
2377 for ac_exec_ext in '' $ac_executable_extensions; do
2378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2379 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2380 ac_prog_rejected=yes
2381 continue
2382 fi
2383 ac_cv_prog_CC="cc"
2384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2385 break 2
2386 fi
2387 done
2388 done
2389
2390 if test $ac_prog_rejected = yes; then
2391 # We found a bogon in the path, so make sure we never use it.
2392 set dummy $ac_cv_prog_CC
2393 shift
2394 if test $# != 0; then
2395 # We chose a different compiler from the bogus one.
2396 # However, it has the same basename, so the bogon will be chosen
2397 # first if we set CC to just the basename; use the full file name.
2398 shift
2399 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2400 fi
2401 fi
2402 fi
2403 fi
2404 CC=$ac_cv_prog_CC
2405 if test -n "$CC"; then
2406 echo "$as_me:$LINENO: result: $CC" >&5
2407 echo "${ECHO_T}$CC" >&6
2408 else
2409 echo "$as_me:$LINENO: result: no" >&5
2410 echo "${ECHO_T}no" >&6
2411 fi
2412
2413 fi
2414 if test -z "$CC"; then
2415 if test -n "$ac_tool_prefix"; then
2416 for ac_prog in cl
2417 do
2418 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2419 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2420 echo "$as_me:$LINENO: checking for $ac_word" >&5
2421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2422 if test "${ac_cv_prog_CC+set}" = set; then
2423 echo $ECHO_N "(cached) $ECHO_C" >&6
2424 else
2425 if test -n "$CC"; then
2426 ac_cv_prog_CC="$CC" # Let the user override the test.
2427 else
2428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429 for as_dir in $PATH
2430 do
2431 IFS=$as_save_IFS
2432 test -z "$as_dir" && as_dir=.
2433 for ac_exec_ext in '' $ac_executable_extensions; do
2434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2435 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2437 break 2
2438 fi
2439 done
2440 done
2441
2442 fi
2443 fi
2444 CC=$ac_cv_prog_CC
2445 if test -n "$CC"; then
2446 echo "$as_me:$LINENO: result: $CC" >&5
2447 echo "${ECHO_T}$CC" >&6
2448 else
2449 echo "$as_me:$LINENO: result: no" >&5
2450 echo "${ECHO_T}no" >&6
2451 fi
2452
2453 test -n "$CC" && break
2454 done
2455 fi
2456 if test -z "$CC"; then
2457 ac_ct_CC=$CC
2458 for ac_prog in cl
2459 do
2460 # Extract the first word of "$ac_prog", so it can be a program name with args.
2461 set dummy $ac_prog; ac_word=$2
2462 echo "$as_me:$LINENO: checking for $ac_word" >&5
2463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2464 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2465 echo $ECHO_N "(cached) $ECHO_C" >&6
2466 else
2467 if test -n "$ac_ct_CC"; then
2468 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2469 else
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2472 do
2473 IFS=$as_save_IFS
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2477 ac_cv_prog_ac_ct_CC="$ac_prog"
2478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2479 break 2
2480 fi
2481 done
2482 done
2483
2484 fi
2485 fi
2486 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2487 if test -n "$ac_ct_CC"; then
2488 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2489 echo "${ECHO_T}$ac_ct_CC" >&6
2490 else
2491 echo "$as_me:$LINENO: result: no" >&5
2492 echo "${ECHO_T}no" >&6
2493 fi
2494
2495 test -n "$ac_ct_CC" && break
2496 done
2497
2498 CC=$ac_ct_CC
2499 fi
2500
2501 fi
2502
2503
2504 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2505 See \`config.log' for more details." >&5
2506 echo "$as_me: error: no acceptable C compiler found in \$PATH
2507 See \`config.log' for more details." >&2;}
2508 { (exit 1); exit 1; }; }
2509
2510 # Provide some information about the compiler.
2511 echo "$as_me:$LINENO:" \
2512 "checking for C compiler version" >&5
2513 ac_compiler=`set X $ac_compile; echo $2`
2514 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2515 (eval $ac_compiler --version </dev/null >&5) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }
2519 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2520 (eval $ac_compiler -v </dev/null >&5) 2>&5
2521 ac_status=$?
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }
2524 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2525 (eval $ac_compiler -V </dev/null >&5) 2>&5
2526 ac_status=$?
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }
2529
2530 cat >conftest.$ac_ext <<_ACEOF
2531 /* confdefs.h. */
2532 _ACEOF
2533 cat confdefs.h >>conftest.$ac_ext
2534 cat >>conftest.$ac_ext <<_ACEOF
2535 /* end confdefs.h. */
2536
2537 int
2538 main ()
2539 {
2540
2541 ;
2542 return 0;
2543 }
2544 _ACEOF
2545 ac_clean_files_save=$ac_clean_files
2546 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2547 # Try to create an executable without -o first, disregard a.out.
2548 # It will help us diagnose broken compilers, and finding out an intuition
2549 # of exeext.
2550 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2551 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2552 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2553 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2554 (eval $ac_link_default) 2>&5
2555 ac_status=$?
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; then
2558 # Find the output, starting from the most likely. This scheme is
2559 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2560 # resort.
2561
2562 # Be careful to initialize this variable, since it used to be cached.
2563 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2564 ac_cv_exeext=
2565 # b.out is created by i960 compilers.
2566 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2567 do
2568 test -f "$ac_file" || continue
2569 case $ac_file in
2570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2571 ;;
2572 conftest.$ac_ext )
2573 # This is the source file.
2574 ;;
2575 [ab].out )
2576 # We found the default executable, but exeext='' is most
2577 # certainly right.
2578 break;;
2579 *.* )
2580 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2581 # FIXME: I believe we export ac_cv_exeext for Libtool,
2582 # but it would be cool to find out if it's true. Does anybody
2583 # maintain Libtool? --akim.
2584 export ac_cv_exeext
2585 break;;
2586 * )
2587 break;;
2588 esac
2589 done
2590 else
2591 echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2593
2594 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2595 See \`config.log' for more details." >&5
2596 echo "$as_me: error: C compiler cannot create executables
2597 See \`config.log' for more details." >&2;}
2598 { (exit 77); exit 77; }; }
2599 fi
2600
2601 ac_exeext=$ac_cv_exeext
2602 echo "$as_me:$LINENO: result: $ac_file" >&5
2603 echo "${ECHO_T}$ac_file" >&6
2604
2605 # Check the compiler produces executables we can run. If not, either
2606 # the compiler is broken, or we cross compile.
2607 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2608 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2609 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2610 # If not cross compiling, check that we can run a simple program.
2611 if test "$cross_compiling" != yes; then
2612 if { ac_try='./$ac_file'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 (eval $ac_try) 2>&5
2615 ac_status=$?
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; }; then
2618 cross_compiling=no
2619 else
2620 if test "$cross_compiling" = maybe; then
2621 cross_compiling=yes
2622 else
2623 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2624 If you meant to cross compile, use \`--host'.
2625 See \`config.log' for more details." >&5
2626 echo "$as_me: error: cannot run C compiled programs.
2627 If you meant to cross compile, use \`--host'.
2628 See \`config.log' for more details." >&2;}
2629 { (exit 1); exit 1; }; }
2630 fi
2631 fi
2632 fi
2633 echo "$as_me:$LINENO: result: yes" >&5
2634 echo "${ECHO_T}yes" >&6
2635
2636 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2637 ac_clean_files=$ac_clean_files_save
2638 # Check the compiler produces executables we can run. If not, either
2639 # the compiler is broken, or we cross compile.
2640 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2641 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2642 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2643 echo "${ECHO_T}$cross_compiling" >&6
2644
2645 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2646 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2648 (eval $ac_link) 2>&5
2649 ac_status=$?
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; then
2652 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2653 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2654 # work properly (i.e., refer to `conftest.exe'), while it won't with
2655 # `rm'.
2656 for ac_file in conftest.exe conftest conftest.*; do
2657 test -f "$ac_file" || continue
2658 case $ac_file in
2659 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2660 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2661 export ac_cv_exeext
2662 break;;
2663 * ) break;;
2664 esac
2665 done
2666 else
2667 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2668 See \`config.log' for more details." >&5
2669 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2670 See \`config.log' for more details." >&2;}
2671 { (exit 1); exit 1; }; }
2672 fi
2673
2674 rm -f conftest$ac_cv_exeext
2675 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2676 echo "${ECHO_T}$ac_cv_exeext" >&6
2677
2678 rm -f conftest.$ac_ext
2679 EXEEXT=$ac_cv_exeext
2680 ac_exeext=$EXEEXT
2681 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2682 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2683 if test "${ac_cv_objext+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 else
2686 cat >conftest.$ac_ext <<_ACEOF
2687 /* confdefs.h. */
2688 _ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h. */
2692
2693 int
2694 main ()
2695 {
2696
2697 ;
2698 return 0;
2699 }
2700 _ACEOF
2701 rm -f conftest.o conftest.obj
2702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2703 (eval $ac_compile) 2>&5
2704 ac_status=$?
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; then
2707 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2708 case $ac_file in
2709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2710 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2711 break;;
2712 esac
2713 done
2714 else
2715 echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2717
2718 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2719 See \`config.log' for more details." >&5
2720 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2721 See \`config.log' for more details." >&2;}
2722 { (exit 1); exit 1; }; }
2723 fi
2724
2725 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2726 fi
2727 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2728 echo "${ECHO_T}$ac_cv_objext" >&6
2729 OBJEXT=$ac_cv_objext
2730 ac_objext=$OBJEXT
2731 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2732 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2733 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 else
2736 cat >conftest.$ac_ext <<_ACEOF
2737 /* confdefs.h. */
2738 _ACEOF
2739 cat confdefs.h >>conftest.$ac_ext
2740 cat >>conftest.$ac_ext <<_ACEOF
2741 /* end confdefs.h. */
2742
2743 int
2744 main ()
2745 {
2746 #ifndef __GNUC__
2747 choke me
2748 #endif
2749
2750 ;
2751 return 0;
2752 }
2753 _ACEOF
2754 rm -f conftest.$ac_objext
2755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2756 (eval $ac_compile) 2>conftest.er1
2757 ac_status=$?
2758 grep -v '^ *+' conftest.er1 >conftest.err
2759 rm -f conftest.er1
2760 cat conftest.err >&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); } &&
2763 { ac_try='test -z "$ac_c_werror_flag"
2764 || test ! -s conftest.err'
2765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766 (eval $ac_try) 2>&5
2767 ac_status=$?
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }; } &&
2770 { ac_try='test -s conftest.$ac_objext'
2771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772 (eval $ac_try) 2>&5
2773 ac_status=$?
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }; }; then
2776 ac_compiler_gnu=yes
2777 else
2778 echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.$ac_ext >&5
2780
2781 ac_compiler_gnu=no
2782 fi
2783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2784 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2785
2786 fi
2787 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2788 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2789 GCC=`test $ac_compiler_gnu = yes && echo yes`
2790 ac_test_CFLAGS=${CFLAGS+set}
2791 ac_save_CFLAGS=$CFLAGS
2792 CFLAGS="-g"
2793 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2794 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2795 if test "${ac_cv_prog_cc_g+set}" = set; then
2796 echo $ECHO_N "(cached) $ECHO_C" >&6
2797 else
2798 cat >conftest.$ac_ext <<_ACEOF
2799 /* confdefs.h. */
2800 _ACEOF
2801 cat confdefs.h >>conftest.$ac_ext
2802 cat >>conftest.$ac_ext <<_ACEOF
2803 /* end confdefs.h. */
2804
2805 int
2806 main ()
2807 {
2808
2809 ;
2810 return 0;
2811 }
2812 _ACEOF
2813 rm -f conftest.$ac_objext
2814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2815 (eval $ac_compile) 2>conftest.er1
2816 ac_status=$?
2817 grep -v '^ *+' conftest.er1 >conftest.err
2818 rm -f conftest.er1
2819 cat conftest.err >&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); } &&
2822 { ac_try='test -z "$ac_c_werror_flag"
2823 || test ! -s conftest.err'
2824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825 (eval $ac_try) 2>&5
2826 ac_status=$?
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); }; } &&
2829 { ac_try='test -s conftest.$ac_objext'
2830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831 (eval $ac_try) 2>&5
2832 ac_status=$?
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }; }; then
2835 ac_cv_prog_cc_g=yes
2836 else
2837 echo "$as_me: failed program was:" >&5
2838 sed 's/^/| /' conftest.$ac_ext >&5
2839
2840 ac_cv_prog_cc_g=no
2841 fi
2842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2843 fi
2844 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2845 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2846 if test "$ac_test_CFLAGS" = set; then
2847 CFLAGS=$ac_save_CFLAGS
2848 elif test $ac_cv_prog_cc_g = yes; then
2849 if test "$GCC" = yes; then
2850 CFLAGS="-g -O2"
2851 else
2852 CFLAGS="-g"
2853 fi
2854 else
2855 if test "$GCC" = yes; then
2856 CFLAGS="-O2"
2857 else
2858 CFLAGS=
2859 fi
2860 fi
2861 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2862 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2863 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2864 echo $ECHO_N "(cached) $ECHO_C" >&6
2865 else
2866 ac_cv_prog_cc_stdc=no
2867 ac_save_CC=$CC
2868 cat >conftest.$ac_ext <<_ACEOF
2869 /* confdefs.h. */
2870 _ACEOF
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h. */
2874 #include <stdarg.h>
2875 #include <stdio.h>
2876 #include <sys/types.h>
2877 #include <sys/stat.h>
2878 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2879 struct buf { int x; };
2880 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2881 static char *e (p, i)
2882 char **p;
2883 int i;
2884 {
2885 return p[i];
2886 }
2887 static char *f (char * (*g) (char **, int), char **p, ...)
2888 {
2889 char *s;
2890 va_list v;
2891 va_start (v,p);
2892 s = g (p, va_arg (v,int));
2893 va_end (v);
2894 return s;
2895 }
2896
2897 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2898 function prototypes and stuff, but not '\xHH' hex character constants.
2899 These don't provoke an error unfortunately, instead are silently treated
2900 as 'x'. The following induces an error, until -std1 is added to get
2901 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2902 array size at least. It's necessary to write '\x00'==0 to get something
2903 that's true only with -std1. */
2904 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2905
2906 int test (int i, double x);
2907 struct s1 {int (*f) (int a);};
2908 struct s2 {int (*f) (double a);};
2909 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2910 int argc;
2911 char **argv;
2912 int
2913 main ()
2914 {
2915 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2916 ;
2917 return 0;
2918 }
2919 _ACEOF
2920 # Don't try gcc -ansi; that turns off useful extensions and
2921 # breaks some systems' header files.
2922 # AIX -qlanglvl=ansi
2923 # Ultrix and OSF/1 -std1
2924 # HP-UX 10.20 and later -Ae
2925 # HP-UX older versions -Aa -D_HPUX_SOURCE
2926 # SVR4 -Xc -D__EXTENSIONS__
2927 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2928 do
2929 CC="$ac_save_CC $ac_arg"
2930 rm -f conftest.$ac_objext
2931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2932 (eval $ac_compile) 2>conftest.er1
2933 ac_status=$?
2934 grep -v '^ *+' conftest.er1 >conftest.err
2935 rm -f conftest.er1
2936 cat conftest.err >&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); } &&
2939 { ac_try='test -z "$ac_c_werror_flag"
2940 || test ! -s conftest.err'
2941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942 (eval $ac_try) 2>&5
2943 ac_status=$?
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; } &&
2946 { ac_try='test -s conftest.$ac_objext'
2947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948 (eval $ac_try) 2>&5
2949 ac_status=$?
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; }; then
2952 ac_cv_prog_cc_stdc=$ac_arg
2953 break
2954 else
2955 echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2957
2958 fi
2959 rm -f conftest.err conftest.$ac_objext
2960 done
2961 rm -f conftest.$ac_ext conftest.$ac_objext
2962 CC=$ac_save_CC
2963
2964 fi
2965
2966 case "x$ac_cv_prog_cc_stdc" in
2967 x|xno)
2968 echo "$as_me:$LINENO: result: none needed" >&5
2969 echo "${ECHO_T}none needed" >&6 ;;
2970 *)
2971 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2972 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2973 CC="$CC $ac_cv_prog_cc_stdc" ;;
2974 esac
2975
2976 # Some people use a C++ compiler to compile C. Since we use `exit',
2977 # in C++ we need to declare it. In case someone uses the same compiler
2978 # for both compiling C and C++ we need to have the C++ compiler decide
2979 # the declaration of exit, since it's the most demanding environment.
2980 cat >conftest.$ac_ext <<_ACEOF
2981 #ifndef __cplusplus
2982 choke me
2983 #endif
2984 _ACEOF
2985 rm -f conftest.$ac_objext
2986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2987 (eval $ac_compile) 2>conftest.er1
2988 ac_status=$?
2989 grep -v '^ *+' conftest.er1 >conftest.err
2990 rm -f conftest.er1
2991 cat conftest.err >&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); } &&
2994 { ac_try='test -z "$ac_c_werror_flag"
2995 || test ! -s conftest.err'
2996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997 (eval $ac_try) 2>&5
2998 ac_status=$?
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }; } &&
3001 { ac_try='test -s conftest.$ac_objext'
3002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3003 (eval $ac_try) 2>&5
3004 ac_status=$?
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); }; }; then
3007 for ac_declaration in \
3008 '' \
3009 'extern "C" void std::exit (int) throw (); using std::exit;' \
3010 'extern "C" void std::exit (int); using std::exit;' \
3011 'extern "C" void exit (int) throw ();' \
3012 'extern "C" void exit (int);' \
3013 'void exit (int);'
3014 do
3015 cat >conftest.$ac_ext <<_ACEOF
3016 /* confdefs.h. */
3017 _ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h. */
3021 $ac_declaration
3022 #include <stdlib.h>
3023 int
3024 main ()
3025 {
3026 exit (42);
3027 ;
3028 return 0;
3029 }
3030 _ACEOF
3031 rm -f conftest.$ac_objext
3032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3033 (eval $ac_compile) 2>conftest.er1
3034 ac_status=$?
3035 grep -v '^ *+' conftest.er1 >conftest.err
3036 rm -f conftest.er1
3037 cat conftest.err >&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); } &&
3040 { ac_try='test -z "$ac_c_werror_flag"
3041 || test ! -s conftest.err'
3042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043 (eval $ac_try) 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; } &&
3047 { ac_try='test -s conftest.$ac_objext'
3048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049 (eval $ac_try) 2>&5
3050 ac_status=$?
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); }; }; then
3053 :
3054 else
3055 echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3057
3058 continue
3059 fi
3060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3061 cat >conftest.$ac_ext <<_ACEOF
3062 /* confdefs.h. */
3063 _ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h. */
3067 $ac_declaration
3068 int
3069 main ()
3070 {
3071 exit (42);
3072 ;
3073 return 0;
3074 }
3075 _ACEOF
3076 rm -f conftest.$ac_objext
3077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3078 (eval $ac_compile) 2>conftest.er1
3079 ac_status=$?
3080 grep -v '^ *+' conftest.er1 >conftest.err
3081 rm -f conftest.er1
3082 cat conftest.err >&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); } &&
3085 { ac_try='test -z "$ac_c_werror_flag"
3086 || test ! -s conftest.err'
3087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088 (eval $ac_try) 2>&5
3089 ac_status=$?
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; } &&
3092 { ac_try='test -s conftest.$ac_objext'
3093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094 (eval $ac_try) 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; }; then
3098 break
3099 else
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103 fi
3104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3105 done
3106 rm -f conftest*
3107 if test -n "$ac_declaration"; then
3108 echo '#ifdef __cplusplus' >>confdefs.h
3109 echo $ac_declaration >>confdefs.h
3110 echo '#endif' >>confdefs.h
3111 fi
3112
3113 else
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3116
3117 fi
3118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3119 ac_ext=c
3120 ac_cpp='$CPP $CPPFLAGS'
3121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3124
3125 depcc="$CC" am_compiler_list=
3126
3127 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3128 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3129 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3130 echo $ECHO_N "(cached) $ECHO_C" >&6
3131 else
3132 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3133 # We make a subdir and do the tests there. Otherwise we can end up
3134 # making bogus files that we don't know about and never remove. For
3135 # instance it was reported that on HP-UX the gcc test will end up
3136 # making a dummy file named `D' -- because `-MD' means `put the output
3137 # in D'.
3138 mkdir conftest.dir
3139 # Copy depcomp to subdir because otherwise we won't find it if we're
3140 # using a relative directory.
3141 cp "$am_depcomp" conftest.dir
3142 cd conftest.dir
3143 # We will build objects and dependencies in a subdirectory because
3144 # it helps to detect inapplicable dependency modes. For instance
3145 # both Tru64's cc and ICC support -MD to output dependencies as a
3146 # side effect of compilation, but ICC will put the dependencies in
3147 # the current directory while Tru64 will put them in the object
3148 # directory.
3149 mkdir sub
3150
3151 am_cv_CC_dependencies_compiler_type=none
3152 if test "$am_compiler_list" = ""; then
3153 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3154 fi
3155 for depmode in $am_compiler_list; do
3156 # Setup a source with many dependencies, because some compilers
3157 # like to wrap large dependency lists on column 80 (with \), and
3158 # we should not choose a depcomp mode which is confused by this.
3159 #
3160 # We need to recreate these files for each test, as the compiler may
3161 # overwrite some of them when testing with obscure command lines.
3162 # This happens at least with the AIX C compiler.
3163 : > sub/conftest.c
3164 for i in 1 2 3 4 5 6; do
3165 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3166 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3167 # Solaris 8's {/usr,}/bin/sh.
3168 touch sub/conftst$i.h
3169 done
3170 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3171
3172 case $depmode in
3173 nosideeffect)
3174 # after this tag, mechanisms are not by side-effect, so they'll
3175 # only be used when explicitly requested
3176 if test "x$enable_dependency_tracking" = xyes; then
3177 continue
3178 else
3179 break
3180 fi
3181 ;;
3182 none) break ;;
3183 esac
3184 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3185 # mode. It turns out that the SunPro C++ compiler does not properly
3186 # handle `-M -o', and we need to detect this.
3187 if depmode=$depmode \
3188 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3189 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3190 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3191 >/dev/null 2>conftest.err &&
3192 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3193 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3194 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3195 # icc doesn't choke on unknown options, it will just issue warnings
3196 # or remarks (even with -Werror). So we grep stderr for any message
3197 # that says an option was ignored or not supported.
3198 # When given -MP, icc 7.0 and 7.1 complain thusly:
3199 # icc: Command line warning: ignoring option '-M'; no argument required
3200 # The diagnosis changed in icc 8.0:
3201 # icc: Command line remark: option '-MP' not supported
3202 if (grep 'ignoring option' conftest.err ||
3203 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3204 am_cv_CC_dependencies_compiler_type=$depmode
3205 break
3206 fi
3207 fi
3208 done
3209
3210 cd ..
3211 rm -rf conftest.dir
3212 else
3213 am_cv_CC_dependencies_compiler_type=none
3214 fi
3215
3216 fi
3217 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3218 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3219 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3220
3221
3222
3223 if
3224 test "x$enable_dependency_tracking" != xno \
3225 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3226 am__fastdepCC_TRUE=
3227 am__fastdepCC_FALSE='#'
3228 else
3229 am__fastdepCC_TRUE='#'
3230 am__fastdepCC_FALSE=
3231 fi
3232
3233
3234 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3235 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3236 if test "${lt_cv_path_SED+set}" = set; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
3238 else
3239 # Loop through the user's path and test for sed and gsed.
3240 # Then use that list of sed's as ones to test for truncation.
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for as_dir in $PATH
3243 do
3244 IFS=$as_save_IFS
3245 test -z "$as_dir" && as_dir=.
3246 for lt_ac_prog in sed gsed; do
3247 for ac_exec_ext in '' $ac_executable_extensions; do
3248 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3249 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3250 fi
3251 done
3252 done
3253 done
3254 lt_ac_max=0
3255 lt_ac_count=0
3256 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3257 # along with /bin/sed that truncates output.
3258 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3259 test ! -f $lt_ac_sed && continue
3260 cat /dev/null > conftest.in
3261 lt_ac_count=0
3262 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3263 # Check for GNU sed and select it if it is found.
3264 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3265 lt_cv_path_SED=$lt_ac_sed
3266 break
3267 fi
3268 while true; do
3269 cat conftest.in conftest.in >conftest.tmp
3270 mv conftest.tmp conftest.in
3271 cp conftest.in conftest.nl
3272 echo >>conftest.nl
3273 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3274 cmp -s conftest.out conftest.nl || break
3275 # 10000 chars as input seems more than enough
3276 test $lt_ac_count -gt 10 && break
3277 lt_ac_count=`expr $lt_ac_count + 1`
3278 if test $lt_ac_count -gt $lt_ac_max; then
3279 lt_ac_max=$lt_ac_count
3280 lt_cv_path_SED=$lt_ac_sed
3281 fi
3282 done
3283 done
3284
3285 fi
3286
3287 SED=$lt_cv_path_SED
3288 echo "$as_me:$LINENO: result: $SED" >&5
3289 echo "${ECHO_T}$SED" >&6
3290
3291 echo "$as_me:$LINENO: checking for egrep" >&5
3292 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3293 if test "${ac_cv_prog_egrep+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 else
3296 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3297 then ac_cv_prog_egrep='grep -E'
3298 else ac_cv_prog_egrep='egrep'
3299 fi
3300 fi
3301 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3302 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3303 EGREP=$ac_cv_prog_egrep
3304
3305
3306
3307 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3308 if test "${with_gnu_ld+set}" = set; then
3309 withval="$with_gnu_ld"
3310 test "$withval" = no || with_gnu_ld=yes
3311 else
3312 with_gnu_ld=no
3313 fi;
3314 ac_prog=ld
3315 if test "$GCC" = yes; then
3316 # Check if gcc -print-prog-name=ld gives a path.
3317 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3318 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3319 case $host in
3320 *-*-mingw*)
3321 # gcc leaves a trailing carriage return which upsets mingw
3322 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3323 *)
3324 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3325 esac
3326 case $ac_prog in
3327 # Accept absolute paths.
3328 [\\/]* | ?:[\\/]*)
3329 re_direlt='/[^/][^/]*/\.\./'
3330 # Canonicalize the pathname of ld
3331 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3332 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3333 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3334 done
3335 test -z "$LD" && LD="$ac_prog"
3336 ;;
3337 "")
3338 # If it fails, then pretend we aren't using GCC.
3339 ac_prog=ld
3340 ;;
3341 *)
3342 # If it is relative, then search for the first ld in PATH.
3343 with_gnu_ld=unknown
3344 ;;
3345 esac
3346 elif test "$with_gnu_ld" = yes; then
3347 echo "$as_me:$LINENO: checking for GNU ld" >&5
3348 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3349 else
3350 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3351 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3352 fi
3353 if test "${lt_cv_path_LD+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 else
3356 if test -z "$LD"; then
3357 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3358 for ac_dir in $PATH; do
3359 IFS="$lt_save_ifs"
3360 test -z "$ac_dir" && ac_dir=.
3361 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3362 lt_cv_path_LD="$ac_dir/$ac_prog"
3363 # Check to see if the program is GNU ld. I'd rather use --version,
3364 # but apparently some variants of GNU ld only accept -v.
3365 # Break only if it was the GNU/non-GNU ld that we prefer.
3366 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3367 *GNU* | *'with BFD'*)
3368 test "$with_gnu_ld" != no && break
3369 ;;
3370 *)
3371 test "$with_gnu_ld" != yes && break
3372 ;;
3373 esac
3374 fi
3375 done
3376 IFS="$lt_save_ifs"
3377 else
3378 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3379 fi
3380 fi
3381
3382 LD="$lt_cv_path_LD"
3383 if test -n "$LD"; then
3384 echo "$as_me:$LINENO: result: $LD" >&5
3385 echo "${ECHO_T}$LD" >&6
3386 else
3387 echo "$as_me:$LINENO: result: no" >&5
3388 echo "${ECHO_T}no" >&6
3389 fi
3390 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3391 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3392 { (exit 1); exit 1; }; }
3393 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3394 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3395 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3396 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 else
3398 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3399 case `$LD -v 2>&1 </dev/null` in
3400 *GNU* | *'with BFD'*)
3401 lt_cv_prog_gnu_ld=yes
3402 ;;
3403 *)
3404 lt_cv_prog_gnu_ld=no
3405 ;;
3406 esac
3407 fi
3408 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3409 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3410 with_gnu_ld=$lt_cv_prog_gnu_ld
3411
3412
3413 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3414 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3415 if test "${lt_cv_ld_reload_flag+set}" = set; then
3416 echo $ECHO_N "(cached) $ECHO_C" >&6
3417 else
3418 lt_cv_ld_reload_flag='-r'
3419 fi
3420 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3421 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3422 reload_flag=$lt_cv_ld_reload_flag
3423 case $reload_flag in
3424 "" | " "*) ;;
3425 *) reload_flag=" $reload_flag" ;;
3426 esac
3427 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3428 case $host_os in
3429 darwin*)
3430 if test "$GCC" = yes; then
3431 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3432 else
3433 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3434 fi
3435 ;;
3436 esac
3437
3438 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3439 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3440 if test "${lt_cv_path_NM+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 else
3443 if test -n "$NM"; then
3444 # Let the user override the test.
3445 lt_cv_path_NM="$NM"
3446 else
3447 lt_nm_to_check="${ac_tool_prefix}nm"
3448 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3449 lt_nm_to_check="$lt_nm_to_check nm"
3450 fi
3451 for lt_tmp_nm in $lt_nm_to_check; do
3452 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3453 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3454 IFS="$lt_save_ifs"
3455 test -z "$ac_dir" && ac_dir=.
3456 tmp_nm="$ac_dir/$lt_tmp_nm"
3457 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3458 # Check to see if the nm accepts a BSD-compat flag.
3459 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3460 # nm: unknown option "B" ignored
3461 # Tru64's nm complains that /dev/null is an invalid object file
3462 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3463 */dev/null* | *'Invalid file or object type'*)
3464 lt_cv_path_NM="$tmp_nm -B"
3465 break
3466 ;;
3467 *)
3468 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3469 */dev/null*)
3470 lt_cv_path_NM="$tmp_nm -p"
3471 break
3472 ;;
3473 *)
3474 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3475 continue # so that we can try to find one that supports BSD flags
3476 ;;
3477 esac
3478 ;;
3479 esac
3480 fi
3481 done
3482 IFS="$lt_save_ifs"
3483 done
3484 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3485 fi
3486 fi
3487 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3488 echo "${ECHO_T}$lt_cv_path_NM" >&6
3489 NM="$lt_cv_path_NM"
3490
3491 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3492 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3493 LN_S=$as_ln_s
3494 if test "$LN_S" = "ln -s"; then
3495 echo "$as_me:$LINENO: result: yes" >&5
3496 echo "${ECHO_T}yes" >&6
3497 else
3498 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3499 echo "${ECHO_T}no, using $LN_S" >&6
3500 fi
3501
3502 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3503 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3504 if test "${lt_cv_deplibs_check_method+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 else
3507 lt_cv_file_magic_cmd='$MAGIC_CMD'
3508 lt_cv_file_magic_test_file=
3509 lt_cv_deplibs_check_method='unknown'
3510 # Need to set the preceding variable on all platforms that support
3511 # interlibrary dependencies.
3512 # 'none' -- dependencies not supported.
3513 # `unknown' -- same as none, but documents that we really don't know.
3514 # 'pass_all' -- all dependencies passed with no checks.
3515 # 'test_compile' -- check by making test program.
3516 # 'file_magic [[regex]]' -- check by looking for files in library path
3517 # which responds to the $file_magic_cmd with a given extended regex.
3518 # If you have `file' or equivalent on your system and you're not sure
3519 # whether `pass_all' will *always* work, you probably want this one.
3520
3521 case $host_os in
3522 aix4* | aix5*)
3523 lt_cv_deplibs_check_method=pass_all
3524 ;;
3525
3526 beos*)
3527 lt_cv_deplibs_check_method=pass_all
3528 ;;
3529
3530 bsdi[45]*)
3531 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3532 lt_cv_file_magic_cmd='/usr/bin/file -L'
3533 lt_cv_file_magic_test_file=/shlib/libc.so
3534 ;;
3535
3536 cygwin*)
3537 # func_win32_libid is a shell function defined in ltmain.sh
3538 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3539 lt_cv_file_magic_cmd='func_win32_libid'
3540 ;;
3541
3542 mingw* | pw32*)
3543 # Base MSYS/MinGW do not provide the 'file' command needed by
3544 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3545 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3546 lt_cv_file_magic_cmd='$OBJDUMP -f'
3547 ;;
3548
3549 darwin* | rhapsody*)
3550 lt_cv_deplibs_check_method=pass_all
3551 ;;
3552
3553 freebsd* | kfreebsd*-gnu | dragonfly*)
3554 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3555 case $host_cpu in
3556 i*86 )
3557 # Not sure whether the presence of OpenBSD here was a mistake.
3558 # Let's accept both of them until this is cleared up.
3559 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3560 lt_cv_file_magic_cmd=/usr/bin/file
3561 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3562 ;;
3563 esac
3564 else
3565 lt_cv_deplibs_check_method=pass_all
3566 fi
3567 ;;
3568
3569 gnu*)
3570 lt_cv_deplibs_check_method=pass_all
3571 ;;
3572
3573 hpux10.20* | hpux11*)
3574 lt_cv_file_magic_cmd=/usr/bin/file
3575 case $host_cpu in
3576 ia64*)
3577 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3578 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3579 ;;
3580 hppa*64*)
3581 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
3582 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3583 ;;
3584 *)
3585 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3586 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3587 ;;
3588 esac
3589 ;;
3590
3591 interix3*)
3592 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3593 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3594 ;;
3595
3596 irix5* | irix6* | nonstopux*)
3597 case $LD in
3598 *-32|*"-32 ") libmagic=32-bit;;
3599 *-n32|*"-n32 ") libmagic=N32;;
3600 *-64|*"-64 ") libmagic=64-bit;;
3601 *) libmagic=never-match;;
3602 esac
3603 lt_cv_deplibs_check_method=pass_all
3604 ;;
3605
3606 # This must be Linux ELF.
3607 linux*)
3608 lt_cv_deplibs_check_method=pass_all
3609 ;;
3610
3611 netbsd*)
3612 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3614 else
3615 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3616 fi
3617 ;;
3618
3619 newos6*)
3620 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3621 lt_cv_file_magic_cmd=/usr/bin/file
3622 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3623 ;;
3624
3625 nto-qnx*)
3626 lt_cv_deplibs_check_method=unknown
3627 ;;
3628
3629 openbsd*)
3630 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3631 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3632 else
3633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3634 fi
3635 ;;
3636
3637 osf3* | osf4* | osf5*)
3638 lt_cv_deplibs_check_method=pass_all
3639 ;;
3640
3641 solaris*)
3642 lt_cv_deplibs_check_method=pass_all
3643 ;;
3644
3645 sysv4 | sysv4.3*)
3646 case $host_vendor in
3647 motorola)
3648 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]'
3649 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3650 ;;
3651 ncr)
3652 lt_cv_deplibs_check_method=pass_all
3653 ;;
3654 sequent)
3655 lt_cv_file_magic_cmd='/bin/file'
3656 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3657 ;;
3658 sni)
3659 lt_cv_file_magic_cmd='/bin/file'
3660 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3661 lt_cv_file_magic_test_file=/lib/libc.so
3662 ;;
3663 siemens)
3664 lt_cv_deplibs_check_method=pass_all
3665 ;;
3666 pc)
3667 lt_cv_deplibs_check_method=pass_all
3668 ;;
3669 esac
3670 ;;
3671
3672 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3673 lt_cv_deplibs_check_method=pass_all
3674 ;;
3675 esac
3676
3677 fi
3678 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3679 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3680 file_magic_cmd=$lt_cv_file_magic_cmd
3681 deplibs_check_method=$lt_cv_deplibs_check_method
3682 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3683
3684
3685
3686
3687 # If no C compiler was specified, use CC.
3688 LTCC=${LTCC-"$CC"}
3689
3690 # If no C compiler flags were specified, use CFLAGS.
3691 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3692
3693 # Allow CC to be a program name with arguments.
3694 compiler=$CC
3695
3696
3697 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3698 if test "${enable_libtool_lock+set}" = set; then
3699 enableval="$enable_libtool_lock"
3700
3701 fi;
3702 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3703
3704 # Some flags need to be propagated to the compiler or linker for good
3705 # libtool support.
3706 case $host in
3707 ia64-*-hpux*)
3708 # Find out which ABI we are using.
3709 echo 'int i;' > conftest.$ac_ext
3710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3711 (eval $ac_compile) 2>&5
3712 ac_status=$?
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); }; then
3715 case `/usr/bin/file conftest.$ac_objext` in
3716 *ELF-32*)
3717 HPUX_IA64_MODE="32"
3718 ;;
3719 *ELF-64*)
3720 HPUX_IA64_MODE="64"
3721 ;;
3722 esac
3723 fi
3724 rm -rf conftest*
3725 ;;
3726 *-*-irix6*)
3727 # Find out which ABI we are using.
3728 echo '#line 3728 "configure"' > conftest.$ac_ext
3729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3730 (eval $ac_compile) 2>&5
3731 ac_status=$?
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); }; then
3734 if test "$lt_cv_prog_gnu_ld" = yes; then
3735 case `/usr/bin/file conftest.$ac_objext` in
3736 *32-bit*)
3737 LD="${LD-ld} -melf32bsmip"
3738 ;;
3739 *N32*)
3740 LD="${LD-ld} -melf32bmipn32"
3741 ;;
3742 *64-bit*)
3743 LD="${LD-ld} -melf64bmip"
3744 ;;
3745 esac
3746 else
3747 case `/usr/bin/file conftest.$ac_objext` in
3748 *32-bit*)
3749 LD="${LD-ld} -32"
3750 ;;
3751 *N32*)
3752 LD="${LD-ld} -n32"
3753 ;;
3754 *64-bit*)
3755 LD="${LD-ld} -64"
3756 ;;
3757 esac
3758 fi
3759 fi
3760 rm -rf conftest*
3761 ;;
3762
3763 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3764 # Find out which ABI we are using.
3765 echo 'int i;' > conftest.$ac_ext
3766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3767 (eval $ac_compile) 2>&5
3768 ac_status=$?
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); }; then
3771 case `/usr/bin/file conftest.o` in
3772 *32-bit*)
3773 case $host in
3774 x86_64-*linux*)
3775 LD="${LD-ld} -m elf_i386"
3776 ;;
3777 ppc64-*linux*|powerpc64-*linux*)
3778 LD="${LD-ld} -m elf32ppclinux"
3779 ;;
3780 s390x-*linux*)
3781 LD="${LD-ld} -m elf_s390"
3782 ;;
3783 sparc64-*linux*)
3784 LD="${LD-ld} -m elf32_sparc"
3785 ;;
3786 esac
3787 ;;
3788 *64-bit*)
3789 case $host in
3790 x86_64-*linux*)
3791 LD="${LD-ld} -m elf_x86_64"
3792 ;;
3793 ppc*-*linux*|powerpc*-*linux*)
3794 LD="${LD-ld} -m elf64ppc"
3795 ;;
3796 s390*-*linux*)
3797 LD="${LD-ld} -m elf64_s390"
3798 ;;
3799 sparc*-*linux*)
3800 LD="${LD-ld} -m elf64_sparc"
3801 ;;
3802 esac
3803 ;;
3804 esac
3805 fi
3806 rm -rf conftest*
3807 ;;
3808
3809 *-*-sco3.2v5*)
3810 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3811 SAVE_CFLAGS="$CFLAGS"
3812 CFLAGS="$CFLAGS -belf"
3813 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3814 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3815 if test "${lt_cv_cc_needs_belf+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3817 else
3818 ac_ext=c
3819 ac_cpp='$CPP $CPPFLAGS'
3820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3823
3824 cat >conftest.$ac_ext <<_ACEOF
3825 /* confdefs.h. */
3826 _ACEOF
3827 cat confdefs.h >>conftest.$ac_ext
3828 cat >>conftest.$ac_ext <<_ACEOF
3829 /* end confdefs.h. */
3830
3831 int
3832 main ()
3833 {
3834
3835 ;
3836 return 0;
3837 }
3838 _ACEOF
3839 rm -f conftest.$ac_objext conftest$ac_exeext
3840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3841 (eval $ac_link) 2>conftest.er1
3842 ac_status=$?
3843 grep -v '^ *+' conftest.er1 >conftest.err
3844 rm -f conftest.er1
3845 cat conftest.err >&5
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); } &&
3848 { ac_try='test -z "$ac_c_werror_flag"
3849 || test ! -s conftest.err'
3850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3851 (eval $ac_try) 2>&5
3852 ac_status=$?
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); }; } &&
3855 { ac_try='test -s conftest$ac_exeext'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 (eval $ac_try) 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; }; then
3861 lt_cv_cc_needs_belf=yes
3862 else
3863 echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.$ac_ext >&5
3865
3866 lt_cv_cc_needs_belf=no
3867 fi
3868 rm -f conftest.err conftest.$ac_objext \
3869 conftest$ac_exeext conftest.$ac_ext
3870 ac_ext=c
3871 ac_cpp='$CPP $CPPFLAGS'
3872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3875
3876 fi
3877 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3878 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3879 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3880 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3881 CFLAGS="$SAVE_CFLAGS"
3882 fi
3883 ;;
3884 sparc*-*solaris*)
3885 # Find out which ABI we are using.
3886 echo 'int i;' > conftest.$ac_ext
3887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3888 (eval $ac_compile) 2>&5
3889 ac_status=$?
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); }; then
3892 case `/usr/bin/file conftest.o` in
3893 *64-bit*)
3894 case $lt_cv_prog_gnu_ld in
3895 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3896 *) LD="${LD-ld} -64" ;;
3897 esac
3898 ;;
3899 esac
3900 fi
3901 rm -rf conftest*
3902 ;;
3903
3904
3905 esac
3906
3907 need_locks="$enable_libtool_lock"
3908
3909
3910 ac_ext=c
3911 ac_cpp='$CPP $CPPFLAGS'
3912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3915 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3916 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3917 # On Suns, sometimes $CPP names a directory.
3918 if test -n "$CPP" && test -d "$CPP"; then
3919 CPP=
3920 fi
3921 if test -z "$CPP"; then
3922 if test "${ac_cv_prog_CPP+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 else
3925 # Double quotes because CPP needs to be expanded
3926 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3927 do
3928 ac_preproc_ok=false
3929 for ac_c_preproc_warn_flag in '' yes
3930 do
3931 # Use a header file that comes with gcc, so configuring glibc
3932 # with a fresh cross-compiler works.
3933 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3934 # <limits.h> exists even on freestanding compilers.
3935 # On the NeXT, cc -E runs the code through the compiler's parser,
3936 # not just through cpp. "Syntax error" is here to catch this case.
3937 cat >conftest.$ac_ext <<_ACEOF
3938 /* confdefs.h. */
3939 _ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3943 #ifdef __STDC__
3944 # include <limits.h>
3945 #else
3946 # include <assert.h>
3947 #endif
3948 Syntax error
3949 _ACEOF
3950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3952 ac_status=$?
3953 grep -v '^ *+' conftest.er1 >conftest.err
3954 rm -f conftest.er1
3955 cat conftest.err >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } >/dev/null; then
3958 if test -s conftest.err; then
3959 ac_cpp_err=$ac_c_preproc_warn_flag
3960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3961 else
3962 ac_cpp_err=
3963 fi
3964 else
3965 ac_cpp_err=yes
3966 fi
3967 if test -z "$ac_cpp_err"; then
3968 :
3969 else
3970 echo "$as_me: failed program was:" >&5
3971 sed 's/^/| /' conftest.$ac_ext >&5
3972
3973 # Broken: fails on valid input.
3974 continue
3975 fi
3976 rm -f conftest.err conftest.$ac_ext
3977
3978 # OK, works on sane cases. Now check whether non-existent headers
3979 # can be detected and how.
3980 cat >conftest.$ac_ext <<_ACEOF
3981 /* confdefs.h. */
3982 _ACEOF
3983 cat confdefs.h >>conftest.$ac_ext
3984 cat >>conftest.$ac_ext <<_ACEOF
3985 /* end confdefs.h. */
3986 #include <ac_nonexistent.h>
3987 _ACEOF
3988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3990 ac_status=$?
3991 grep -v '^ *+' conftest.er1 >conftest.err
3992 rm -f conftest.er1
3993 cat conftest.err >&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); } >/dev/null; then
3996 if test -s conftest.err; then
3997 ac_cpp_err=$ac_c_preproc_warn_flag
3998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3999 else
4000 ac_cpp_err=
4001 fi
4002 else
4003 ac_cpp_err=yes
4004 fi
4005 if test -z "$ac_cpp_err"; then
4006 # Broken: success on invalid input.
4007 continue
4008 else
4009 echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4011
4012 # Passes both tests.
4013 ac_preproc_ok=:
4014 break
4015 fi
4016 rm -f conftest.err conftest.$ac_ext
4017
4018 done
4019 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4020 rm -f conftest.err conftest.$ac_ext
4021 if $ac_preproc_ok; then
4022 break
4023 fi
4024
4025 done
4026 ac_cv_prog_CPP=$CPP
4027
4028 fi
4029 CPP=$ac_cv_prog_CPP
4030 else
4031 ac_cv_prog_CPP=$CPP
4032 fi
4033 echo "$as_me:$LINENO: result: $CPP" >&5
4034 echo "${ECHO_T}$CPP" >&6
4035 ac_preproc_ok=false
4036 for ac_c_preproc_warn_flag in '' yes
4037 do
4038 # Use a header file that comes with gcc, so configuring glibc
4039 # with a fresh cross-compiler works.
4040 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4041 # <limits.h> exists even on freestanding compilers.
4042 # On the NeXT, cc -E runs the code through the compiler's parser,
4043 # not just through cpp. "Syntax error" is here to catch this case.
4044 cat >conftest.$ac_ext <<_ACEOF
4045 /* confdefs.h. */
4046 _ACEOF
4047 cat confdefs.h >>conftest.$ac_ext
4048 cat >>conftest.$ac_ext <<_ACEOF
4049 /* end confdefs.h. */
4050 #ifdef __STDC__
4051 # include <limits.h>
4052 #else
4053 # include <assert.h>
4054 #endif
4055 Syntax error
4056 _ACEOF
4057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4059 ac_status=$?
4060 grep -v '^ *+' conftest.er1 >conftest.err
4061 rm -f conftest.er1
4062 cat conftest.err >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } >/dev/null; then
4065 if test -s conftest.err; then
4066 ac_cpp_err=$ac_c_preproc_warn_flag
4067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4068 else
4069 ac_cpp_err=
4070 fi
4071 else
4072 ac_cpp_err=yes
4073 fi
4074 if test -z "$ac_cpp_err"; then
4075 :
4076 else
4077 echo "$as_me: failed program was:" >&5
4078 sed 's/^/| /' conftest.$ac_ext >&5
4079
4080 # Broken: fails on valid input.
4081 continue
4082 fi
4083 rm -f conftest.err conftest.$ac_ext
4084
4085 # OK, works on sane cases. Now check whether non-existent headers
4086 # can be detected and how.
4087 cat >conftest.$ac_ext <<_ACEOF
4088 /* confdefs.h. */
4089 _ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h. */
4093 #include <ac_nonexistent.h>
4094 _ACEOF
4095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4097 ac_status=$?
4098 grep -v '^ *+' conftest.er1 >conftest.err
4099 rm -f conftest.er1
4100 cat conftest.err >&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); } >/dev/null; then
4103 if test -s conftest.err; then
4104 ac_cpp_err=$ac_c_preproc_warn_flag
4105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4106 else
4107 ac_cpp_err=
4108 fi
4109 else
4110 ac_cpp_err=yes
4111 fi
4112 if test -z "$ac_cpp_err"; then
4113 # Broken: success on invalid input.
4114 continue
4115 else
4116 echo "$as_me: failed program was:" >&5
4117 sed 's/^/| /' conftest.$ac_ext >&5
4118
4119 # Passes both tests.
4120 ac_preproc_ok=:
4121 break
4122 fi
4123 rm -f conftest.err conftest.$ac_ext
4124
4125 done
4126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4127 rm -f conftest.err conftest.$ac_ext
4128 if $ac_preproc_ok; then
4129 :
4130 else
4131 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4132 See \`config.log' for more details." >&5
4133 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4134 See \`config.log' for more details." >&2;}
4135 { (exit 1); exit 1; }; }
4136 fi
4137
4138 ac_ext=c
4139 ac_cpp='$CPP $CPPFLAGS'
4140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4143
4144
4145 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4146 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4147 if test "${ac_cv_header_stdc+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 else
4150 cat >conftest.$ac_ext <<_ACEOF
4151 /* confdefs.h. */
4152 _ACEOF
4153 cat confdefs.h >>conftest.$ac_ext
4154 cat >>conftest.$ac_ext <<_ACEOF
4155 /* end confdefs.h. */
4156 #include <stdlib.h>
4157 #include <stdarg.h>
4158 #include <string.h>
4159 #include <float.h>
4160
4161 int
4162 main ()
4163 {
4164
4165 ;
4166 return 0;
4167 }
4168 _ACEOF
4169 rm -f conftest.$ac_objext
4170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4171 (eval $ac_compile) 2>conftest.er1
4172 ac_status=$?
4173 grep -v '^ *+' conftest.er1 >conftest.err
4174 rm -f conftest.er1
4175 cat conftest.err >&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); } &&
4178 { ac_try='test -z "$ac_c_werror_flag"
4179 || test ! -s conftest.err'
4180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181 (eval $ac_try) 2>&5
4182 ac_status=$?
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); }; } &&
4185 { ac_try='test -s conftest.$ac_objext'
4186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187 (eval $ac_try) 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; }; then
4191 ac_cv_header_stdc=yes
4192 else
4193 echo "$as_me: failed program was:" >&5
4194 sed 's/^/| /' conftest.$ac_ext >&5
4195
4196 ac_cv_header_stdc=no
4197 fi
4198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4199
4200 if test $ac_cv_header_stdc = yes; then
4201 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4202 cat >conftest.$ac_ext <<_ACEOF
4203 /* confdefs.h. */
4204 _ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4208 #include <string.h>
4209
4210 _ACEOF
4211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4212 $EGREP "memchr" >/dev/null 2>&1; then
4213 :
4214 else
4215 ac_cv_header_stdc=no
4216 fi
4217 rm -f conftest*
4218
4219 fi
4220
4221 if test $ac_cv_header_stdc = yes; then
4222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4223 cat >conftest.$ac_ext <<_ACEOF
4224 /* confdefs.h. */
4225 _ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h. */
4229 #include <stdlib.h>
4230
4231 _ACEOF
4232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4233 $EGREP "free" >/dev/null 2>&1; then
4234 :
4235 else
4236 ac_cv_header_stdc=no
4237 fi
4238 rm -f conftest*
4239
4240 fi
4241
4242 if test $ac_cv_header_stdc = yes; then
4243 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4244 if test "$cross_compiling" = yes; then
4245 :
4246 else
4247 cat >conftest.$ac_ext <<_ACEOF
4248 /* confdefs.h. */
4249 _ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4253 #include <ctype.h>
4254 #if ((' ' & 0x0FF) == 0x020)
4255 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4256 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4257 #else
4258 # define ISLOWER(c) \
4259 (('a' <= (c) && (c) <= 'i') \
4260 || ('j' <= (c) && (c) <= 'r') \
4261 || ('s' <= (c) && (c) <= 'z'))
4262 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4263 #endif
4264
4265 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4266 int
4267 main ()
4268 {
4269 int i;
4270 for (i = 0; i < 256; i++)
4271 if (XOR (islower (i), ISLOWER (i))
4272 || toupper (i) != TOUPPER (i))
4273 exit(2);
4274 exit (0);
4275 }
4276 _ACEOF
4277 rm -f conftest$ac_exeext
4278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4279 (eval $ac_link) 2>&5
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4284 (eval $ac_try) 2>&5
4285 ac_status=$?
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; }; then
4288 :
4289 else
4290 echo "$as_me: program exited with status $ac_status" >&5
4291 echo "$as_me: failed program was:" >&5
4292 sed 's/^/| /' conftest.$ac_ext >&5
4293
4294 ( exit $ac_status )
4295 ac_cv_header_stdc=no
4296 fi
4297 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4298 fi
4299 fi
4300 fi
4301 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4302 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4303 if test $ac_cv_header_stdc = yes; then
4304
4305 cat >>confdefs.h <<\_ACEOF
4306 #define STDC_HEADERS 1
4307 _ACEOF
4308
4309 fi
4310
4311 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4322 inttypes.h stdint.h unistd.h
4323 do
4324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4325 echo "$as_me:$LINENO: checking for $ac_header" >&5
4326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
4329 else
4330 cat >conftest.$ac_ext <<_ACEOF
4331 /* confdefs.h. */
4332 _ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h. */
4336 $ac_includes_default
4337
4338 #include <$ac_header>
4339 _ACEOF
4340 rm -f conftest.$ac_objext
4341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4342 (eval $ac_compile) 2>conftest.er1
4343 ac_status=$?
4344 grep -v '^ *+' conftest.er1 >conftest.err
4345 rm -f conftest.er1
4346 cat conftest.err >&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } &&
4349 { ac_try='test -z "$ac_c_werror_flag"
4350 || test ! -s conftest.err'
4351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352 (eval $ac_try) 2>&5
4353 ac_status=$?
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; } &&
4356 { ac_try='test -s conftest.$ac_objext'
4357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358 (eval $ac_try) 2>&5
4359 ac_status=$?
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; }; then
4362 eval "$as_ac_Header=yes"
4363 else
4364 echo "$as_me: failed program was:" >&5
4365 sed 's/^/| /' conftest.$ac_ext >&5
4366
4367 eval "$as_ac_Header=no"
4368 fi
4369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4370 fi
4371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4374 cat >>confdefs.h <<_ACEOF
4375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4376 _ACEOF
4377
4378 fi
4379
4380 done
4381
4382
4383
4384 for ac_header in dlfcn.h
4385 do
4386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4388 echo "$as_me:$LINENO: checking for $ac_header" >&5
4389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 fi
4393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4395 else
4396 # Is the header compilable?
4397 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4399 cat >conftest.$ac_ext <<_ACEOF
4400 /* confdefs.h. */
4401 _ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h. */
4405 $ac_includes_default
4406 #include <$ac_header>
4407 _ACEOF
4408 rm -f conftest.$ac_objext
4409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4410 (eval $ac_compile) 2>conftest.er1
4411 ac_status=$?
4412 grep -v '^ *+' conftest.er1 >conftest.err
4413 rm -f conftest.er1
4414 cat conftest.err >&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); } &&
4417 { ac_try='test -z "$ac_c_werror_flag"
4418 || test ! -s conftest.err'
4419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420 (eval $ac_try) 2>&5
4421 ac_status=$?
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }; } &&
4424 { ac_try='test -s conftest.$ac_objext'
4425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426 (eval $ac_try) 2>&5
4427 ac_status=$?
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); }; }; then
4430 ac_header_compiler=yes
4431 else
4432 echo "$as_me: failed program was:" >&5
4433 sed 's/^/| /' conftest.$ac_ext >&5
4434
4435 ac_header_compiler=no
4436 fi
4437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4438 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4439 echo "${ECHO_T}$ac_header_compiler" >&6
4440
4441 # Is the header present?
4442 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4443 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4444 cat >conftest.$ac_ext <<_ACEOF
4445 /* confdefs.h. */
4446 _ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h. */
4450 #include <$ac_header>
4451 _ACEOF
4452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4454 ac_status=$?
4455 grep -v '^ *+' conftest.er1 >conftest.err
4456 rm -f conftest.er1
4457 cat conftest.err >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); } >/dev/null; then
4460 if test -s conftest.err; then
4461 ac_cpp_err=$ac_c_preproc_warn_flag
4462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4463 else
4464 ac_cpp_err=
4465 fi
4466 else
4467 ac_cpp_err=yes
4468 fi
4469 if test -z "$ac_cpp_err"; then
4470 ac_header_preproc=yes
4471 else
4472 echo "$as_me: failed program was:" >&5
4473 sed 's/^/| /' conftest.$ac_ext >&5
4474
4475 ac_header_preproc=no
4476 fi
4477 rm -f conftest.err conftest.$ac_ext
4478 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4479 echo "${ECHO_T}$ac_header_preproc" >&6
4480
4481 # So? What about this header?
4482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4483 yes:no: )
4484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4485 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4487 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4488 ac_header_preproc=yes
4489 ;;
4490 no:yes:* )
4491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4492 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4494 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4495 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4496 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4497 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4498 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4501 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4502 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4503 (
4504 cat <<\_ASBOX
4505 ## ---------------------------------------------------------------------- ##
4506 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
4507 ## ---------------------------------------------------------------------- ##
4508 _ASBOX
4509 ) |
4510 sed "s/^/$as_me: WARNING: /" >&2
4511 ;;
4512 esac
4513 echo "$as_me:$LINENO: checking for $ac_header" >&5
4514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
4517 else
4518 eval "$as_ac_Header=\$ac_header_preproc"
4519 fi
4520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4521 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4522
4523 fi
4524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4525 cat >>confdefs.h <<_ACEOF
4526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4527 _ACEOF
4528
4529 fi
4530
4531 done
4532
4533 ac_ext=cc
4534 ac_cpp='$CXXCPP $CPPFLAGS'
4535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4538 if test -n "$ac_tool_prefix"; then
4539 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4540 do
4541 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4542 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4543 echo "$as_me:$LINENO: checking for $ac_word" >&5
4544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4545 if test "${ac_cv_prog_CXX+set}" = set; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 else
4548 if test -n "$CXX"; then
4549 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4550 else
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 for as_dir in $PATH
4553 do
4554 IFS=$as_save_IFS
4555 test -z "$as_dir" && as_dir=.
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4558 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4560 break 2
4561 fi
4562 done
4563 done
4564
4565 fi
4566 fi
4567 CXX=$ac_cv_prog_CXX
4568 if test -n "$CXX"; then
4569 echo "$as_me:$LINENO: result: $CXX" >&5
4570 echo "${ECHO_T}$CXX" >&6
4571 else
4572 echo "$as_me:$LINENO: result: no" >&5
4573 echo "${ECHO_T}no" >&6
4574 fi
4575
4576 test -n "$CXX" && break
4577 done
4578 fi
4579 if test -z "$CXX"; then
4580 ac_ct_CXX=$CXX
4581 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4582 do
4583 # Extract the first word of "$ac_prog", so it can be a program name with args.
4584 set dummy $ac_prog; ac_word=$2
4585 echo "$as_me:$LINENO: checking for $ac_word" >&5
4586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4587 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590 if test -n "$ac_ct_CXX"; then
4591 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4592 else
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH
4595 do
4596 IFS=$as_save_IFS
4597 test -z "$as_dir" && as_dir=.
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4600 ac_cv_prog_ac_ct_CXX="$ac_prog"
4601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4602 break 2
4603 fi
4604 done
4605 done
4606
4607 fi
4608 fi
4609 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4610 if test -n "$ac_ct_CXX"; then
4611 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4612 echo "${ECHO_T}$ac_ct_CXX" >&6
4613 else
4614 echo "$as_me:$LINENO: result: no" >&5
4615 echo "${ECHO_T}no" >&6
4616 fi
4617
4618 test -n "$ac_ct_CXX" && break
4619 done
4620 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4621
4622 CXX=$ac_ct_CXX
4623 fi
4624
4625
4626 # Provide some information about the compiler.
4627 echo "$as_me:$LINENO:" \
4628 "checking for C++ compiler version" >&5
4629 ac_compiler=`set X $ac_compile; echo $2`
4630 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4631 (eval $ac_compiler --version </dev/null >&5) 2>&5
4632 ac_status=$?
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); }
4635 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4636 (eval $ac_compiler -v </dev/null >&5) 2>&5
4637 ac_status=$?
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }
4640 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4641 (eval $ac_compiler -V </dev/null >&5) 2>&5
4642 ac_status=$?
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); }
4645
4646 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4647 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4648 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
4650 else
4651 cat >conftest.$ac_ext <<_ACEOF
4652 /* confdefs.h. */
4653 _ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h. */
4657
4658 int
4659 main ()
4660 {
4661 #ifndef __GNUC__
4662 choke me
4663 #endif
4664
4665 ;
4666 return 0;
4667 }
4668 _ACEOF
4669 rm -f conftest.$ac_objext
4670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4671 (eval $ac_compile) 2>conftest.er1
4672 ac_status=$?
4673 grep -v '^ *+' conftest.er1 >conftest.err
4674 rm -f conftest.er1
4675 cat conftest.err >&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); } &&
4678 { ac_try='test -z "$ac_cxx_werror_flag"
4679 || test ! -s conftest.err'
4680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681 (eval $ac_try) 2>&5
4682 ac_status=$?
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); }; } &&
4685 { ac_try='test -s conftest.$ac_objext'
4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687 (eval $ac_try) 2>&5
4688 ac_status=$?
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4691 ac_compiler_gnu=yes
4692 else
4693 echo "$as_me: failed program was:" >&5
4694 sed 's/^/| /' conftest.$ac_ext >&5
4695
4696 ac_compiler_gnu=no
4697 fi
4698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4699 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4700
4701 fi
4702 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4703 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4704 GXX=`test $ac_compiler_gnu = yes && echo yes`
4705 ac_test_CXXFLAGS=${CXXFLAGS+set}
4706 ac_save_CXXFLAGS=$CXXFLAGS
4707 CXXFLAGS="-g"
4708 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4709 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4710 if test "${ac_cv_prog_cxx_g+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4712 else
4713 cat >conftest.$ac_ext <<_ACEOF
4714 /* confdefs.h. */
4715 _ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h. */
4719
4720 int
4721 main ()
4722 {
4723
4724 ;
4725 return 0;
4726 }
4727 _ACEOF
4728 rm -f conftest.$ac_objext
4729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4730 (eval $ac_compile) 2>conftest.er1
4731 ac_status=$?
4732 grep -v '^ *+' conftest.er1 >conftest.err
4733 rm -f conftest.er1
4734 cat conftest.err >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } &&
4737 { ac_try='test -z "$ac_cxx_werror_flag"
4738 || test ! -s conftest.err'
4739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740 (eval $ac_try) 2>&5
4741 ac_status=$?
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }; } &&
4744 { ac_try='test -s conftest.$ac_objext'
4745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746 (eval $ac_try) 2>&5
4747 ac_status=$?
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); }; }; then
4750 ac_cv_prog_cxx_g=yes
4751 else
4752 echo "$as_me: failed program was:" >&5
4753 sed 's/^/| /' conftest.$ac_ext >&5
4754
4755 ac_cv_prog_cxx_g=no
4756 fi
4757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4758 fi
4759 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4760 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4761 if test "$ac_test_CXXFLAGS" = set; then
4762 CXXFLAGS=$ac_save_CXXFLAGS
4763 elif test $ac_cv_prog_cxx_g = yes; then
4764 if test "$GXX" = yes; then
4765 CXXFLAGS="-g -O2"
4766 else
4767 CXXFLAGS="-g"
4768 fi
4769 else
4770 if test "$GXX" = yes; then
4771 CXXFLAGS="-O2"
4772 else
4773 CXXFLAGS=
4774 fi
4775 fi
4776 for ac_declaration in \
4777 '' \
4778 'extern "C" void std::exit (int) throw (); using std::exit;' \
4779 'extern "C" void std::exit (int); using std::exit;' \
4780 'extern "C" void exit (int) throw ();' \
4781 'extern "C" void exit (int);' \
4782 'void exit (int);'
4783 do
4784 cat >conftest.$ac_ext <<_ACEOF
4785 /* confdefs.h. */
4786 _ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h. */
4790 $ac_declaration
4791 #include <stdlib.h>
4792 int
4793 main ()
4794 {
4795 exit (42);
4796 ;
4797 return 0;
4798 }
4799 _ACEOF
4800 rm -f conftest.$ac_objext
4801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4802 (eval $ac_compile) 2>conftest.er1
4803 ac_status=$?
4804 grep -v '^ *+' conftest.er1 >conftest.err
4805 rm -f conftest.er1
4806 cat conftest.err >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); } &&
4809 { ac_try='test -z "$ac_cxx_werror_flag"
4810 || test ! -s conftest.err'
4811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4812 (eval $ac_try) 2>&5
4813 ac_status=$?
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); }; } &&
4816 { ac_try='test -s conftest.$ac_objext'
4817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818 (eval $ac_try) 2>&5
4819 ac_status=$?
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); }; }; then
4822 :
4823 else
4824 echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.$ac_ext >&5
4826
4827 continue
4828 fi
4829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4830 cat >conftest.$ac_ext <<_ACEOF
4831 /* confdefs.h. */
4832 _ACEOF
4833 cat confdefs.h >>conftest.$ac_ext
4834 cat >>conftest.$ac_ext <<_ACEOF
4835 /* end confdefs.h. */
4836 $ac_declaration
4837 int
4838 main ()
4839 {
4840 exit (42);
4841 ;
4842 return 0;
4843 }
4844 _ACEOF
4845 rm -f conftest.$ac_objext
4846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4847 (eval $ac_compile) 2>conftest.er1
4848 ac_status=$?
4849 grep -v '^ *+' conftest.er1 >conftest.err
4850 rm -f conftest.er1
4851 cat conftest.err >&5
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); } &&
4854 { ac_try='test -z "$ac_cxx_werror_flag"
4855 || test ! -s conftest.err'
4856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857 (eval $ac_try) 2>&5
4858 ac_status=$?
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }; } &&
4861 { ac_try='test -s conftest.$ac_objext'
4862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4863 (eval $ac_try) 2>&5
4864 ac_status=$?
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); }; }; then
4867 break
4868 else
4869 echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4871
4872 fi
4873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4874 done
4875 rm -f conftest*
4876 if test -n "$ac_declaration"; then
4877 echo '#ifdef __cplusplus' >>confdefs.h
4878 echo $ac_declaration >>confdefs.h
4879 echo '#endif' >>confdefs.h
4880 fi
4881
4882 ac_ext=cc
4883 ac_cpp='$CXXCPP $CPPFLAGS'
4884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4887
4888 depcc="$CXX" am_compiler_list=
4889
4890 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4891 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4892 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4894 else
4895 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4896 # We make a subdir and do the tests there. Otherwise we can end up
4897 # making bogus files that we don't know about and never remove. For
4898 # instance it was reported that on HP-UX the gcc test will end up
4899 # making a dummy file named `D' -- because `-MD' means `put the output
4900 # in D'.
4901 mkdir conftest.dir
4902 # Copy depcomp to subdir because otherwise we won't find it if we're
4903 # using a relative directory.
4904 cp "$am_depcomp" conftest.dir
4905 cd conftest.dir
4906 # We will build objects and dependencies in a subdirectory because
4907 # it helps to detect inapplicable dependency modes. For instance
4908 # both Tru64's cc and ICC support -MD to output dependencies as a
4909 # side effect of compilation, but ICC will put the dependencies in
4910 # the current directory while Tru64 will put them in the object
4911 # directory.
4912 mkdir sub
4913
4914 am_cv_CXX_dependencies_compiler_type=none
4915 if test "$am_compiler_list" = ""; then
4916 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4917 fi
4918 for depmode in $am_compiler_list; do
4919 # Setup a source with many dependencies, because some compilers
4920 # like to wrap large dependency lists on column 80 (with \), and
4921 # we should not choose a depcomp mode which is confused by this.
4922 #
4923 # We need to recreate these files for each test, as the compiler may
4924 # overwrite some of them when testing with obscure command lines.
4925 # This happens at least with the AIX C compiler.
4926 : > sub/conftest.c
4927 for i in 1 2 3 4 5 6; do
4928 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4929 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4930 # Solaris 8's {/usr,}/bin/sh.
4931 touch sub/conftst$i.h
4932 done
4933 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4934
4935 case $depmode in
4936 nosideeffect)
4937 # after this tag, mechanisms are not by side-effect, so they'll
4938 # only be used when explicitly requested
4939 if test "x$enable_dependency_tracking" = xyes; then
4940 continue
4941 else
4942 break
4943 fi
4944 ;;
4945 none) break ;;
4946 esac
4947 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4948 # mode. It turns out that the SunPro C++ compiler does not properly
4949 # handle `-M -o', and we need to detect this.
4950 if depmode=$depmode \
4951 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4952 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4953 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4954 >/dev/null 2>conftest.err &&
4955 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4956 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4957 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4958 # icc doesn't choke on unknown options, it will just issue warnings
4959 # or remarks (even with -Werror). So we grep stderr for any message
4960 # that says an option was ignored or not supported.
4961 # When given -MP, icc 7.0 and 7.1 complain thusly:
4962 # icc: Command line warning: ignoring option '-M'; no argument required
4963 # The diagnosis changed in icc 8.0:
4964 # icc: Command line remark: option '-MP' not supported
4965 if (grep 'ignoring option' conftest.err ||
4966 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4967 am_cv_CXX_dependencies_compiler_type=$depmode
4968 break
4969 fi
4970 fi
4971 done
4972
4973 cd ..
4974 rm -rf conftest.dir
4975 else
4976 am_cv_CXX_dependencies_compiler_type=none
4977 fi
4978
4979 fi
4980 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4981 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4982 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4983
4984
4985
4986 if
4987 test "x$enable_dependency_tracking" != xno \
4988 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4989 am__fastdepCXX_TRUE=
4990 am__fastdepCXX_FALSE='#'
4991 else
4992 am__fastdepCXX_TRUE='#'
4993 am__fastdepCXX_FALSE=
4994 fi
4995
4996
4997
4998
4999 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5000 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5001 (test "X$CXX" != "Xg++"))) ; then
5002 ac_ext=cc
5003 ac_cpp='$CXXCPP $CPPFLAGS'
5004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5007 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5008 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5009 if test -z "$CXXCPP"; then
5010 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5012 else
5013 # Double quotes because CXXCPP needs to be expanded
5014 for CXXCPP in "$CXX -E" "/lib/cpp"
5015 do
5016 ac_preproc_ok=false
5017 for ac_cxx_preproc_warn_flag in '' yes
5018 do
5019 # Use a header file that comes with gcc, so configuring glibc
5020 # with a fresh cross-compiler works.
5021 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5022 # <limits.h> exists even on freestanding compilers.
5023 # On the NeXT, cc -E runs the code through the compiler's parser,
5024 # not just through cpp. "Syntax error" is here to catch this case.
5025 cat >conftest.$ac_ext <<_ACEOF
5026 /* confdefs.h. */
5027 _ACEOF
5028 cat confdefs.h >>conftest.$ac_ext
5029 cat >>conftest.$ac_ext <<_ACEOF
5030 /* end confdefs.h. */
5031 #ifdef __STDC__
5032 # include <limits.h>
5033 #else
5034 # include <assert.h>
5035 #endif
5036 Syntax error
5037 _ACEOF
5038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5040 ac_status=$?
5041 grep -v '^ *+' conftest.er1 >conftest.err
5042 rm -f conftest.er1
5043 cat conftest.err >&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); } >/dev/null; then
5046 if test -s conftest.err; then
5047 ac_cpp_err=$ac_cxx_preproc_warn_flag
5048 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5049 else
5050 ac_cpp_err=
5051 fi
5052 else
5053 ac_cpp_err=yes
5054 fi
5055 if test -z "$ac_cpp_err"; then
5056 :
5057 else
5058 echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5060
5061 # Broken: fails on valid input.
5062 continue
5063 fi
5064 rm -f conftest.err conftest.$ac_ext
5065
5066 # OK, works on sane cases. Now check whether non-existent headers
5067 # can be detected and how.
5068 cat >conftest.$ac_ext <<_ACEOF
5069 /* confdefs.h. */
5070 _ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h. */
5074 #include <ac_nonexistent.h>
5075 _ACEOF
5076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5078 ac_status=$?
5079 grep -v '^ *+' conftest.er1 >conftest.err
5080 rm -f conftest.er1
5081 cat conftest.err >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); } >/dev/null; then
5084 if test -s conftest.err; then
5085 ac_cpp_err=$ac_cxx_preproc_warn_flag
5086 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5087 else
5088 ac_cpp_err=
5089 fi
5090 else
5091 ac_cpp_err=yes
5092 fi
5093 if test -z "$ac_cpp_err"; then
5094 # Broken: success on invalid input.
5095 continue
5096 else
5097 echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.$ac_ext >&5
5099
5100 # Passes both tests.
5101 ac_preproc_ok=:
5102 break
5103 fi
5104 rm -f conftest.err conftest.$ac_ext
5105
5106 done
5107 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5108 rm -f conftest.err conftest.$ac_ext
5109 if $ac_preproc_ok; then
5110 break
5111 fi
5112
5113 done
5114 ac_cv_prog_CXXCPP=$CXXCPP
5115
5116 fi
5117 CXXCPP=$ac_cv_prog_CXXCPP
5118 else
5119 ac_cv_prog_CXXCPP=$CXXCPP
5120 fi
5121 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5122 echo "${ECHO_T}$CXXCPP" >&6
5123 ac_preproc_ok=false
5124 for ac_cxx_preproc_warn_flag in '' yes
5125 do
5126 # Use a header file that comes with gcc, so configuring glibc
5127 # with a fresh cross-compiler works.
5128 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5129 # <limits.h> exists even on freestanding compilers.
5130 # On the NeXT, cc -E runs the code through the compiler's parser,
5131 # not just through cpp. "Syntax error" is here to catch this case.
5132 cat >conftest.$ac_ext <<_ACEOF
5133 /* confdefs.h. */
5134 _ACEOF
5135 cat confdefs.h >>conftest.$ac_ext
5136 cat >>conftest.$ac_ext <<_ACEOF
5137 /* end confdefs.h. */
5138 #ifdef __STDC__
5139 # include <limits.h>
5140 #else
5141 # include <assert.h>
5142 #endif
5143 Syntax error
5144 _ACEOF
5145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5147 ac_status=$?
5148 grep -v '^ *+' conftest.er1 >conftest.err
5149 rm -f conftest.er1
5150 cat conftest.err >&5
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); } >/dev/null; then
5153 if test -s conftest.err; then
5154 ac_cpp_err=$ac_cxx_preproc_warn_flag
5155 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5156 else
5157 ac_cpp_err=
5158 fi
5159 else
5160 ac_cpp_err=yes
5161 fi
5162 if test -z "$ac_cpp_err"; then
5163 :
5164 else
5165 echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5167
5168 # Broken: fails on valid input.
5169 continue
5170 fi
5171 rm -f conftest.err conftest.$ac_ext
5172
5173 # OK, works on sane cases. Now check whether non-existent headers
5174 # can be detected and how.
5175 cat >conftest.$ac_ext <<_ACEOF
5176 /* confdefs.h. */
5177 _ACEOF
5178 cat confdefs.h >>conftest.$ac_ext
5179 cat >>conftest.$ac_ext <<_ACEOF
5180 /* end confdefs.h. */
5181 #include <ac_nonexistent.h>
5182 _ACEOF
5183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5185 ac_status=$?
5186 grep -v '^ *+' conftest.er1 >conftest.err
5187 rm -f conftest.er1
5188 cat conftest.err >&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); } >/dev/null; then
5191 if test -s conftest.err; then
5192 ac_cpp_err=$ac_cxx_preproc_warn_flag
5193 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5194 else
5195 ac_cpp_err=
5196 fi
5197 else
5198 ac_cpp_err=yes
5199 fi
5200 if test -z "$ac_cpp_err"; then
5201 # Broken: success on invalid input.
5202 continue
5203 else
5204 echo "$as_me: failed program was:" >&5
5205 sed 's/^/| /' conftest.$ac_ext >&5
5206
5207 # Passes both tests.
5208 ac_preproc_ok=:
5209 break
5210 fi
5211 rm -f conftest.err conftest.$ac_ext
5212
5213 done
5214 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5215 rm -f conftest.err conftest.$ac_ext
5216 if $ac_preproc_ok; then
5217 :
5218 else
5219 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5220 See \`config.log' for more details." >&5
5221 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5222 See \`config.log' for more details." >&2;}
5223 { (exit 1); exit 1; }; }
5224 fi
5225
5226 ac_ext=cc
5227 ac_cpp='$CXXCPP $CPPFLAGS'
5228 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5229 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5230 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5231
5232 fi
5233
5234
5235 ac_ext=f
5236 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5237 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5238 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5239 if test -n "$ac_tool_prefix"; then
5240 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5241 do
5242 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5243 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5244 echo "$as_me:$LINENO: checking for $ac_word" >&5
5245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5246 if test "${ac_cv_prog_F77+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249 if test -n "$F77"; then
5250 ac_cv_prog_F77="$F77" # Let the user override the test.
5251 else
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH
5254 do
5255 IFS=$as_save_IFS
5256 test -z "$as_dir" && as_dir=.
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 break 2
5262 fi
5263 done
5264 done
5265
5266 fi
5267 fi
5268 F77=$ac_cv_prog_F77
5269 if test -n "$F77"; then
5270 echo "$as_me:$LINENO: result: $F77" >&5
5271 echo "${ECHO_T}$F77" >&6
5272 else
5273 echo "$as_me:$LINENO: result: no" >&5
5274 echo "${ECHO_T}no" >&6
5275 fi
5276
5277 test -n "$F77" && break
5278 done
5279 fi
5280 if test -z "$F77"; then
5281 ac_ct_F77=$F77
5282 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5283 do
5284 # Extract the first word of "$ac_prog", so it can be a program name with args.
5285 set dummy $ac_prog; ac_word=$2
5286 echo "$as_me:$LINENO: checking for $ac_word" >&5
5287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5288 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5290 else
5291 if test -n "$ac_ct_F77"; then
5292 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5293 else
5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 for as_dir in $PATH
5296 do
5297 IFS=$as_save_IFS
5298 test -z "$as_dir" && as_dir=.
5299 for ac_exec_ext in '' $ac_executable_extensions; do
5300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5301 ac_cv_prog_ac_ct_F77="$ac_prog"
5302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5303 break 2
5304 fi
5305 done
5306 done
5307
5308 fi
5309 fi
5310 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5311 if test -n "$ac_ct_F77"; then
5312 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5313 echo "${ECHO_T}$ac_ct_F77" >&6
5314 else
5315 echo "$as_me:$LINENO: result: no" >&5
5316 echo "${ECHO_T}no" >&6
5317 fi
5318
5319 test -n "$ac_ct_F77" && break
5320 done
5321
5322 F77=$ac_ct_F77
5323 fi
5324
5325
5326 # Provide some information about the compiler.
5327 echo "$as_me:5327:" \
5328 "checking for Fortran 77 compiler version" >&5
5329 ac_compiler=`set X $ac_compile; echo $2`
5330 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5331 (eval $ac_compiler --version </dev/null >&5) 2>&5
5332 ac_status=$?
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); }
5335 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5336 (eval $ac_compiler -v </dev/null >&5) 2>&5
5337 ac_status=$?
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }
5340 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5341 (eval $ac_compiler -V </dev/null >&5) 2>&5
5342 ac_status=$?
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); }
5345 rm -f a.out
5346
5347 # If we don't use `.F' as extension, the preprocessor is not run on the
5348 # input file. (Note that this only needs to work for GNU compilers.)
5349 ac_save_ext=$ac_ext
5350 ac_ext=F
5351 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5352 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5353 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5355 else
5356 cat >conftest.$ac_ext <<_ACEOF
5357 program main
5358 #ifndef __GNUC__
5359 choke me
5360 #endif
5361
5362 end
5363 _ACEOF
5364 rm -f conftest.$ac_objext
5365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5366 (eval $ac_compile) 2>conftest.er1
5367 ac_status=$?
5368 grep -v '^ *+' conftest.er1 >conftest.err
5369 rm -f conftest.er1
5370 cat conftest.err >&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } &&
5373 { ac_try='test -z "$ac_f77_werror_flag"
5374 || test ! -s conftest.err'
5375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376 (eval $ac_try) 2>&5
5377 ac_status=$?
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }; } &&
5380 { ac_try='test -s conftest.$ac_objext'
5381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382 (eval $ac_try) 2>&5
5383 ac_status=$?
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); }; }; then
5386 ac_compiler_gnu=yes
5387 else
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5390
5391 ac_compiler_gnu=no
5392 fi
5393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5394 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5395
5396 fi
5397 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5398 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5399 ac_ext=$ac_save_ext
5400 ac_test_FFLAGS=${FFLAGS+set}
5401 ac_save_FFLAGS=$FFLAGS
5402 FFLAGS=
5403 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5404 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5405 if test "${ac_cv_prog_f77_g+set}" = set; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 else
5408 FFLAGS=-g
5409 cat >conftest.$ac_ext <<_ACEOF
5410 program main
5411
5412 end
5413 _ACEOF
5414 rm -f conftest.$ac_objext
5415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5416 (eval $ac_compile) 2>conftest.er1
5417 ac_status=$?
5418 grep -v '^ *+' conftest.er1 >conftest.err
5419 rm -f conftest.er1
5420 cat conftest.err >&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); } &&
5423 { ac_try='test -z "$ac_f77_werror_flag"
5424 || test ! -s conftest.err'
5425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5426 (eval $ac_try) 2>&5
5427 ac_status=$?
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); }; } &&
5430 { ac_try='test -s conftest.$ac_objext'
5431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432 (eval $ac_try) 2>&5
5433 ac_status=$?
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }; }; then
5436 ac_cv_prog_f77_g=yes
5437 else
5438 echo "$as_me: failed program was:" >&5
5439 sed 's/^/| /' conftest.$ac_ext >&5
5440
5441 ac_cv_prog_f77_g=no
5442 fi
5443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5444
5445 fi
5446 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5447 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5448 if test "$ac_test_FFLAGS" = set; then
5449 FFLAGS=$ac_save_FFLAGS
5450 elif test $ac_cv_prog_f77_g = yes; then
5451 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5452 FFLAGS="-g -O2"
5453 else
5454 FFLAGS="-g"
5455 fi
5456 else
5457 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5458 FFLAGS="-O2"
5459 else
5460 FFLAGS=
5461 fi
5462 fi
5463
5464 G77=`test $ac_compiler_gnu = yes && echo yes`
5465 ac_ext=c
5466 ac_cpp='$CPP $CPPFLAGS'
5467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5470
5471
5472
5473 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5474
5475 # find the maximum length of command line arguments
5476 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5477 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5478 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5479 echo $ECHO_N "(cached) $ECHO_C" >&6
5480 else
5481 i=0
5482 teststring="ABCD"
5483
5484 case $build_os in
5485 msdosdjgpp*)
5486 # On DJGPP, this test can blow up pretty badly due to problems in libc
5487 # (any single argument exceeding 2000 bytes causes a buffer overrun
5488 # during glob expansion). Even if it were fixed, the result of this
5489 # check would be larger than it should be.
5490 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5491 ;;
5492
5493 gnu*)
5494 # Under GNU Hurd, this test is not required because there is
5495 # no limit to the length of command line arguments.
5496 # Libtool will interpret -1 as no limit whatsoever
5497 lt_cv_sys_max_cmd_len=-1;
5498 ;;
5499
5500 cygwin* | mingw*)
5501 # On Win9x/ME, this test blows up -- it succeeds, but takes
5502 # about 5 minutes as the teststring grows exponentially.
5503 # Worse, since 9x/ME are not pre-emptively multitasking,
5504 # you end up with a "frozen" computer, even though with patience
5505 # the test eventually succeeds (with a max line length of 256k).
5506 # Instead, let's just punt: use the minimum linelength reported by
5507 # all of the supported platforms: 8192 (on NT/2K/XP).
5508 lt_cv_sys_max_cmd_len=8192;
5509 ;;
5510
5511 amigaos*)
5512 # On AmigaOS with pdksh, this test takes hours, literally.
5513 # So we just punt and use a minimum line length of 8192.
5514 lt_cv_sys_max_cmd_len=8192;
5515 ;;
5516
5517 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5518 # This has been around since 386BSD, at least. Likely further.
5519 if test -x /sbin/sysctl; then
5520 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5521 elif test -x /usr/sbin/sysctl; then
5522 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5523 else
5524 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5525 fi
5526 # And add a safety zone
5527 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5528 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5529 ;;
5530
5531 interix*)
5532 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5533 lt_cv_sys_max_cmd_len=196608
5534 ;;
5535
5536 osf*)
5537 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5538 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5539 # nice to cause kernel panics so lets avoid the loop below.
5540 # First set a reasonable default.
5541 lt_cv_sys_max_cmd_len=16384
5542 #
5543 if test -x /sbin/sysconfig; then
5544 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5545 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5546 esac
5547 fi
5548 ;;
5549 sco3.2v5*)
5550 lt_cv_sys_max_cmd_len=102400
5551 ;;
5552 sysv5* | sco5v6* | sysv4.2uw2*)
5553 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5554 if test -n "$kargmax"; then
5555 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5556 else
5557 lt_cv_sys_max_cmd_len=32768
5558 fi
5559 ;;
5560 *)
5561 # If test is not a shell built-in, we'll probably end up computing a
5562 # maximum length that is only half of the actual maximum length, but
5563 # we can't tell.
5564 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5565 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5566 = "XX$teststring") >/dev/null 2>&1 &&
5567 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5568 lt_cv_sys_max_cmd_len=$new_result &&
5569 test $i != 17 # 1/2 MB should be enough
5570 do
5571 i=`expr $i + 1`
5572 teststring=$teststring$teststring
5573 done
5574 teststring=
5575 # Add a significant safety factor because C++ compilers can tack on massive
5576 # amounts of additional arguments before passing them to the linker.
5577 # It appears as though 1/2 is a usable value.
5578 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5579 ;;
5580 esac
5581
5582 fi
5583
5584 if test -n $lt_cv_sys_max_cmd_len ; then
5585 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5586 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5587 else
5588 echo "$as_me:$LINENO: result: none" >&5
5589 echo "${ECHO_T}none" >&6
5590 fi
5591
5592
5593
5594
5595 # Check for command to grab the raw symbol name followed by C symbol from nm.
5596 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5597 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5598 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5599 echo $ECHO_N "(cached) $ECHO_C" >&6
5600 else
5601
5602 # These are sane defaults that work on at least a few old systems.
5603 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5604
5605 # Character class describing NM global symbol codes.
5606 symcode='[BCDEGRST]'
5607
5608 # Regexp to match symbols that can be accessed directly from C.
5609 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5610
5611 # Transform an extracted symbol line into a proper C declaration
5612 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5613
5614 # Transform an extracted symbol line into symbol name and symbol address
5615 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'"
5616
5617 # Define system-specific variables.
5618 case $host_os in
5619 aix*)
5620 symcode='[BCDT]'
5621 ;;
5622 cygwin* | mingw* | pw32*)
5623 symcode='[ABCDGISTW]'
5624 ;;
5625 hpux*) # Its linker distinguishes data from code symbols
5626 if test "$host_cpu" = ia64; then
5627 symcode='[ABCDEGRST]'
5628 fi
5629 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5630 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'"
5631 ;;
5632 linux*)
5633 if test "$host_cpu" = ia64; then
5634 symcode='[ABCDGIRSTW]'
5635 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5636 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'"
5637 fi
5638 ;;
5639 irix* | nonstopux*)
5640 symcode='[BCDEGRST]'
5641 ;;
5642 osf*)
5643 symcode='[BCDEGQRST]'
5644 ;;
5645 solaris*)
5646 symcode='[BDRT]'
5647 ;;
5648 sco3.2v5*)
5649 symcode='[DT]'
5650 ;;
5651 sysv4.2uw2*)
5652 symcode='[DT]'
5653 ;;
5654 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5655 symcode='[ABDT]'
5656 ;;
5657 sysv4)
5658 symcode='[DFNSTU]'
5659 ;;
5660 esac
5661
5662 # Handle CRLF in mingw tool chain
5663 opt_cr=
5664 case $build_os in
5665 mingw*)
5666 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5667 ;;
5668 esac
5669
5670 # If we're using GNU nm, then use its standard symbol codes.
5671 case `$NM -V 2>&1` in
5672 *GNU* | *'with BFD'*)
5673 symcode='[ABCDGIRSTW]' ;;
5674 esac
5675
5676 # Try without a prefix undercore, then with it.
5677 for ac_symprfx in "" "_"; do
5678
5679 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5680 symxfrm="\\1 $ac_symprfx\\2 \\2"
5681
5682 # Write the raw and C identifiers.
5683 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5684
5685 # Check to see that the pipe works correctly.
5686 pipe_works=no
5687
5688 rm -f conftest*
5689 cat > conftest.$ac_ext <<EOF
5690 #ifdef __cplusplus
5691 extern "C" {
5692 #endif
5693 char nm_test_var;
5694 void nm_test_func(){}
5695 #ifdef __cplusplus
5696 }
5697 #endif
5698 int main(){nm_test_var='a';nm_test_func();return(0);}
5699 EOF
5700
5701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5702 (eval $ac_compile) 2>&5
5703 ac_status=$?
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }; then
5706 # Now try to grab the symbols.
5707 nlist=conftest.nm
5708 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5709 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5710 ac_status=$?
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } && test -s "$nlist"; then
5713 # Try sorting and uniquifying the output.
5714 if sort "$nlist" | uniq > "$nlist"T; then
5715 mv -f "$nlist"T "$nlist"
5716 else
5717 rm -f "$nlist"T
5718 fi
5719
5720 # Make sure that we snagged all the symbols we need.
5721 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5722 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5723 cat <<EOF > conftest.$ac_ext
5724 #ifdef __cplusplus
5725 extern "C" {
5726 #endif
5727
5728 EOF
5729 # Now generate the symbol file.
5730 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5731
5732 cat <<EOF >> conftest.$ac_ext
5733 #if defined (__STDC__) && __STDC__
5734 # define lt_ptr_t void *
5735 #else
5736 # define lt_ptr_t char *
5737 # define const
5738 #endif
5739
5740 /* The mapping between symbol names and symbols. */
5741 const struct {
5742 const char *name;
5743 lt_ptr_t address;
5744 }
5745 lt_preloaded_symbols[] =
5746 {
5747 EOF
5748 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5749 cat <<\EOF >> conftest.$ac_ext
5750 {0, (lt_ptr_t) 0}
5751 };
5752
5753 #ifdef __cplusplus
5754 }
5755 #endif
5756 EOF
5757 # Now try linking the two files.
5758 mv conftest.$ac_objext conftstm.$ac_objext
5759 lt_save_LIBS="$LIBS"
5760 lt_save_CFLAGS="$CFLAGS"
5761 LIBS="conftstm.$ac_objext"
5762 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5764 (eval $ac_link) 2>&5
5765 ac_status=$?
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5768 pipe_works=yes
5769 fi
5770 LIBS="$lt_save_LIBS"
5771 CFLAGS="$lt_save_CFLAGS"
5772 else
5773 echo "cannot find nm_test_func in $nlist" >&5
5774 fi
5775 else
5776 echo "cannot find nm_test_var in $nlist" >&5
5777 fi
5778 else
5779 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5780 fi
5781 else
5782 echo "$progname: failed program was:" >&5
5783 cat conftest.$ac_ext >&5
5784 fi
5785 rm -f conftest* conftst*
5786
5787 # Do not use the global_symbol_pipe unless it works.
5788 if test "$pipe_works" = yes; then
5789 break
5790 else
5791 lt_cv_sys_global_symbol_pipe=
5792 fi
5793 done
5794
5795 fi
5796
5797 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5798 lt_cv_sys_global_symbol_to_cdecl=
5799 fi
5800 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5801 echo "$as_me:$LINENO: result: failed" >&5
5802 echo "${ECHO_T}failed" >&6
5803 else
5804 echo "$as_me:$LINENO: result: ok" >&5
5805 echo "${ECHO_T}ok" >&6
5806 fi
5807
5808 echo "$as_me:$LINENO: checking for objdir" >&5
5809 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5810 if test "${lt_cv_objdir+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5812 else
5813 rm -f .libs 2>/dev/null
5814 mkdir .libs 2>/dev/null
5815 if test -d .libs; then
5816 lt_cv_objdir=.libs
5817 else
5818 # MS-DOS does not allow filenames that begin with a dot.
5819 lt_cv_objdir=_libs
5820 fi
5821 rmdir .libs 2>/dev/null
5822 fi
5823 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5824 echo "${ECHO_T}$lt_cv_objdir" >&6
5825 objdir=$lt_cv_objdir
5826
5827
5828
5829
5830
5831 case $host_os in
5832 aix3*)
5833 # AIX sometimes has problems with the GCC collect2 program. For some
5834 # reason, if we set the COLLECT_NAMES environment variable, the problems
5835 # vanish in a puff of smoke.
5836 if test "X${COLLECT_NAMES+set}" != Xset; then
5837 COLLECT_NAMES=
5838 export COLLECT_NAMES
5839 fi
5840 ;;
5841 esac
5842
5843 # Sed substitution that helps us do robust quoting. It backslashifies
5844 # metacharacters that are still active within double-quoted strings.
5845 Xsed='sed -e 1s/^X//'
5846 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5847
5848 # Same as above, but do not quote variable references.
5849 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5850
5851 # Sed substitution to delay expansion of an escaped shell variable in a
5852 # double_quote_subst'ed string.
5853 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5854
5855 # Sed substitution to avoid accidental globbing in evaled expressions
5856 no_glob_subst='s/\*/\\\*/g'
5857
5858 # Constants:
5859 rm="rm -f"
5860
5861 # Global variables:
5862 default_ofile=libtool
5863 can_build_shared=yes
5864
5865 # All known linkers require a `.a' archive for static linking (except MSVC,
5866 # which needs '.lib').
5867 libext=a
5868 ltmain="$ac_aux_dir/ltmain.sh"
5869 ofile="$default_ofile"
5870 with_gnu_ld="$lt_cv_prog_gnu_ld"
5871
5872 if test -n "$ac_tool_prefix"; then
5873 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5874 set dummy ${ac_tool_prefix}ar; ac_word=$2
5875 echo "$as_me:$LINENO: checking for $ac_word" >&5
5876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5877 if test "${ac_cv_prog_AR+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880 if test -n "$AR"; then
5881 ac_cv_prog_AR="$AR" # Let the user override the test.
5882 else
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 for as_dir in $PATH
5885 do
5886 IFS=$as_save_IFS
5887 test -z "$as_dir" && as_dir=.
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5890 ac_cv_prog_AR="${ac_tool_prefix}ar"
5891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5892 break 2
5893 fi
5894 done
5895 done
5896
5897 fi
5898 fi
5899 AR=$ac_cv_prog_AR
5900 if test -n "$AR"; then
5901 echo "$as_me:$LINENO: result: $AR" >&5
5902 echo "${ECHO_T}$AR" >&6
5903 else
5904 echo "$as_me:$LINENO: result: no" >&5
5905 echo "${ECHO_T}no" >&6
5906 fi
5907
5908 fi
5909 if test -z "$ac_cv_prog_AR"; then
5910 ac_ct_AR=$AR
5911 # Extract the first word of "ar", so it can be a program name with args.
5912 set dummy ar; ac_word=$2
5913 echo "$as_me:$LINENO: checking for $ac_word" >&5
5914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5915 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 else
5918 if test -n "$ac_ct_AR"; then
5919 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5920 else
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 for as_dir in $PATH
5923 do
5924 IFS=$as_save_IFS
5925 test -z "$as_dir" && as_dir=.
5926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5928 ac_cv_prog_ac_ct_AR="ar"
5929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5930 break 2
5931 fi
5932 done
5933 done
5934
5935 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5936 fi
5937 fi
5938 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5939 if test -n "$ac_ct_AR"; then
5940 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5941 echo "${ECHO_T}$ac_ct_AR" >&6
5942 else
5943 echo "$as_me:$LINENO: result: no" >&5
5944 echo "${ECHO_T}no" >&6
5945 fi
5946
5947 AR=$ac_ct_AR
5948 else
5949 AR="$ac_cv_prog_AR"
5950 fi
5951
5952 if test -n "$ac_tool_prefix"; then
5953 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5954 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5955 echo "$as_me:$LINENO: checking for $ac_word" >&5
5956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5957 if test "${ac_cv_prog_RANLIB+set}" = set; then
5958 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 else
5960 if test -n "$RANLIB"; then
5961 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5962 else
5963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964 for as_dir in $PATH
5965 do
5966 IFS=$as_save_IFS
5967 test -z "$as_dir" && as_dir=.
5968 for ac_exec_ext in '' $ac_executable_extensions; do
5969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5970 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5972 break 2
5973 fi
5974 done
5975 done
5976
5977 fi
5978 fi
5979 RANLIB=$ac_cv_prog_RANLIB
5980 if test -n "$RANLIB"; then
5981 echo "$as_me:$LINENO: result: $RANLIB" >&5
5982 echo "${ECHO_T}$RANLIB" >&6
5983 else
5984 echo "$as_me:$LINENO: result: no" >&5
5985 echo "${ECHO_T}no" >&6
5986 fi
5987
5988 fi
5989 if test -z "$ac_cv_prog_RANLIB"; then
5990 ac_ct_RANLIB=$RANLIB
5991 # Extract the first word of "ranlib", so it can be a program name with args.
5992 set dummy ranlib; ac_word=$2
5993 echo "$as_me:$LINENO: checking for $ac_word" >&5
5994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5995 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
5997 else
5998 if test -n "$ac_ct_RANLIB"; then
5999 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6000 else
6001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002 for as_dir in $PATH
6003 do
6004 IFS=$as_save_IFS
6005 test -z "$as_dir" && as_dir=.
6006 for ac_exec_ext in '' $ac_executable_extensions; do
6007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6008 ac_cv_prog_ac_ct_RANLIB="ranlib"
6009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6010 break 2
6011 fi
6012 done
6013 done
6014
6015 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6016 fi
6017 fi
6018 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6019 if test -n "$ac_ct_RANLIB"; then
6020 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6021 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6022 else
6023 echo "$as_me:$LINENO: result: no" >&5
6024 echo "${ECHO_T}no" >&6
6025 fi
6026
6027 RANLIB=$ac_ct_RANLIB
6028 else
6029 RANLIB="$ac_cv_prog_RANLIB"
6030 fi
6031
6032 if test -n "$ac_tool_prefix"; then
6033 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6034 set dummy ${ac_tool_prefix}strip; ac_word=$2
6035 echo "$as_me:$LINENO: checking for $ac_word" >&5
6036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6037 if test "${ac_cv_prog_STRIP+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040 if test -n "$STRIP"; then
6041 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6042 else
6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044 for as_dir in $PATH
6045 do
6046 IFS=$as_save_IFS
6047 test -z "$as_dir" && as_dir=.
6048 for ac_exec_ext in '' $ac_executable_extensions; do
6049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6050 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6052 break 2
6053 fi
6054 done
6055 done
6056
6057 fi
6058 fi
6059 STRIP=$ac_cv_prog_STRIP
6060 if test -n "$STRIP"; then
6061 echo "$as_me:$LINENO: result: $STRIP" >&5
6062 echo "${ECHO_T}$STRIP" >&6
6063 else
6064 echo "$as_me:$LINENO: result: no" >&5
6065 echo "${ECHO_T}no" >&6
6066 fi
6067
6068 fi
6069 if test -z "$ac_cv_prog_STRIP"; then
6070 ac_ct_STRIP=$STRIP
6071 # Extract the first word of "strip", so it can be a program name with args.
6072 set dummy strip; ac_word=$2
6073 echo "$as_me:$LINENO: checking for $ac_word" >&5
6074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6075 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6076 echo $ECHO_N "(cached) $ECHO_C" >&6
6077 else
6078 if test -n "$ac_ct_STRIP"; then
6079 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6080 else
6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 for as_dir in $PATH
6083 do
6084 IFS=$as_save_IFS
6085 test -z "$as_dir" && as_dir=.
6086 for ac_exec_ext in '' $ac_executable_extensions; do
6087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6088 ac_cv_prog_ac_ct_STRIP="strip"
6089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6090 break 2
6091 fi
6092 done
6093 done
6094
6095 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6096 fi
6097 fi
6098 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6099 if test -n "$ac_ct_STRIP"; then
6100 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6101 echo "${ECHO_T}$ac_ct_STRIP" >&6
6102 else
6103 echo "$as_me:$LINENO: result: no" >&5
6104 echo "${ECHO_T}no" >&6
6105 fi
6106
6107 STRIP=$ac_ct_STRIP
6108 else
6109 STRIP="$ac_cv_prog_STRIP"
6110 fi
6111
6112
6113 old_CC="$CC"
6114 old_CFLAGS="$CFLAGS"
6115
6116 # Set sane defaults for various variables
6117 test -z "$AR" && AR=ar
6118 test -z "$AR_FLAGS" && AR_FLAGS=cru
6119 test -z "$AS" && AS=as
6120 test -z "$CC" && CC=cc
6121 test -z "$LTCC" && LTCC=$CC
6122 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6123 test -z "$DLLTOOL" && DLLTOOL=dlltool
6124 test -z "$LD" && LD=ld
6125 test -z "$LN_S" && LN_S="ln -s"
6126 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6127 test -z "$NM" && NM=nm
6128 test -z "$SED" && SED=sed
6129 test -z "$OBJDUMP" && OBJDUMP=objdump
6130 test -z "$RANLIB" && RANLIB=:
6131 test -z "$STRIP" && STRIP=:
6132 test -z "$ac_objext" && ac_objext=o
6133
6134 # Determine commands to create old-style static archives.
6135 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6136 old_postinstall_cmds='chmod 644 $oldlib'
6137 old_postuninstall_cmds=
6138
6139 if test -n "$RANLIB"; then
6140 case $host_os in
6141 openbsd*)
6142 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6143 ;;
6144 *)
6145 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6146 ;;
6147 esac
6148 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6149 fi
6150
6151 for cc_temp in $compiler""; do
6152 case $cc_temp in
6153 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6154 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6155 \-*) ;;
6156 *) break;;
6157 esac
6158 done
6159 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6160
6161
6162 # Only perform the check for file, if the check method requires it
6163 case $deplibs_check_method in
6164 file_magic*)
6165 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6166 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6167 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6168 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 else
6171 case $MAGIC_CMD in
6172 [\\/*] | ?:[\\/]*)
6173 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6174 ;;
6175 *)
6176 lt_save_MAGIC_CMD="$MAGIC_CMD"
6177 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6178 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6179 for ac_dir in $ac_dummy; do
6180 IFS="$lt_save_ifs"
6181 test -z "$ac_dir" && ac_dir=.
6182 if test -f $ac_dir/${ac_tool_prefix}file; then
6183 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6184 if test -n "$file_magic_test_file"; then
6185 case $deplibs_check_method in
6186 "file_magic "*)
6187 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6188 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6189 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6190 $EGREP "$file_magic_regex" > /dev/null; then
6191 :
6192 else
6193 cat <<EOF 1>&2
6194
6195 *** Warning: the command libtool uses to detect shared libraries,
6196 *** $file_magic_cmd, produces output that libtool cannot recognize.
6197 *** The result is that libtool may fail to recognize shared libraries
6198 *** as such. This will affect the creation of libtool libraries that
6199 *** depend on shared libraries, but programs linked with such libtool
6200 *** libraries will work regardless of this problem. Nevertheless, you
6201 *** may want to report the problem to your system manager and/or to
6202 *** bug-libtool@gnu.org
6203
6204 EOF
6205 fi ;;
6206 esac
6207 fi
6208 break
6209 fi
6210 done
6211 IFS="$lt_save_ifs"
6212 MAGIC_CMD="$lt_save_MAGIC_CMD"
6213 ;;
6214 esac
6215 fi
6216
6217 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6218 if test -n "$MAGIC_CMD"; then
6219 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6220 echo "${ECHO_T}$MAGIC_CMD" >&6
6221 else
6222 echo "$as_me:$LINENO: result: no" >&5
6223 echo "${ECHO_T}no" >&6
6224 fi
6225
6226 if test -z "$lt_cv_path_MAGIC_CMD"; then
6227 if test -n "$ac_tool_prefix"; then
6228 echo "$as_me:$LINENO: checking for file" >&5
6229 echo $ECHO_N "checking for file... $ECHO_C" >&6
6230 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6232 else
6233 case $MAGIC_CMD in
6234 [\\/*] | ?:[\\/]*)
6235 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6236 ;;
6237 *)
6238 lt_save_MAGIC_CMD="$MAGIC_CMD"
6239 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6240 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6241 for ac_dir in $ac_dummy; do
6242 IFS="$lt_save_ifs"
6243 test -z "$ac_dir" && ac_dir=.
6244 if test -f $ac_dir/file; then
6245 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6246 if test -n "$file_magic_test_file"; then
6247 case $deplibs_check_method in
6248 "file_magic "*)
6249 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6250 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6251 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6252 $EGREP "$file_magic_regex" > /dev/null; then
6253 :
6254 else
6255 cat <<EOF 1>&2
6256
6257 *** Warning: the command libtool uses to detect shared libraries,
6258 *** $file_magic_cmd, produces output that libtool cannot recognize.
6259 *** The result is that libtool may fail to recognize shared libraries
6260 *** as such. This will affect the creation of libtool libraries that
6261 *** depend on shared libraries, but programs linked with such libtool
6262 *** libraries will work regardless of this problem. Nevertheless, you
6263 *** may want to report the problem to your system manager and/or to
6264 *** bug-libtool@gnu.org
6265
6266 EOF
6267 fi ;;
6268 esac
6269 fi
6270 break
6271 fi
6272 done
6273 IFS="$lt_save_ifs"
6274 MAGIC_CMD="$lt_save_MAGIC_CMD"
6275 ;;
6276 esac
6277 fi
6278
6279 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6280 if test -n "$MAGIC_CMD"; then
6281 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6282 echo "${ECHO_T}$MAGIC_CMD" >&6
6283 else
6284 echo "$as_me:$LINENO: result: no" >&5
6285 echo "${ECHO_T}no" >&6
6286 fi
6287
6288 else
6289 MAGIC_CMD=:
6290 fi
6291 fi
6292
6293 fi
6294 ;;
6295 esac
6296
6297 enable_dlopen=no
6298 enable_win32_dll=no
6299
6300 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6301 if test "${enable_libtool_lock+set}" = set; then
6302 enableval="$enable_libtool_lock"
6303
6304 fi;
6305 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6306
6307
6308 # Check whether --with-pic or --without-pic was given.
6309 if test "${with_pic+set}" = set; then
6310 withval="$with_pic"
6311 pic_mode="$withval"
6312 else
6313 pic_mode=default
6314 fi;
6315 test -z "$pic_mode" && pic_mode=default
6316
6317 # Use C for the default configuration in the libtool script
6318 tagname=
6319 lt_save_CC="$CC"
6320 ac_ext=c
6321 ac_cpp='$CPP $CPPFLAGS'
6322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6325
6326
6327 # Source file extension for C test sources.
6328 ac_ext=c
6329
6330 # Object file extension for compiled C test sources.
6331 objext=o
6332 objext=$objext
6333
6334 # Code to be used in simple compile tests
6335 lt_simple_compile_test_code="int some_variable = 0;\n"
6336
6337 # Code to be used in simple link tests
6338 lt_simple_link_test_code='int main(){return(0);}\n'
6339
6340
6341 # If no C compiler was specified, use CC.
6342 LTCC=${LTCC-"$CC"}
6343
6344 # If no C compiler flags were specified, use CFLAGS.
6345 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6346
6347 # Allow CC to be a program name with arguments.
6348 compiler=$CC
6349
6350
6351 # save warnings/boilerplate of simple test code
6352 ac_outfile=conftest.$ac_objext
6353 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6354 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6355 _lt_compiler_boilerplate=`cat conftest.err`
6356 $rm conftest*
6357
6358 ac_outfile=conftest.$ac_objext
6359 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6360 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6361 _lt_linker_boilerplate=`cat conftest.err`
6362 $rm conftest*
6363
6364
6365
6366 lt_prog_compiler_no_builtin_flag=
6367
6368 if test "$GCC" = yes; then
6369 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6370
6371
6372 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6373 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6374 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6376 else
6377 lt_cv_prog_compiler_rtti_exceptions=no
6378 ac_outfile=conftest.$ac_objext
6379 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6380 lt_compiler_flag="-fno-rtti -fno-exceptions"
6381 # Insert the option either (1) after the last *FLAGS variable, or
6382 # (2) before a word containing "conftest.", or (3) at the end.
6383 # Note that $ac_compile itself does not contain backslashes and begins
6384 # with a dollar sign (not a hyphen), so the echo should work correctly.
6385 # The option is referenced via a variable to avoid confusing sed.
6386 lt_compile=`echo "$ac_compile" | $SED \
6387 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6388 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6389 -e 's:$: $lt_compiler_flag:'`
6390 (eval echo "\"\$as_me:6390: $lt_compile\"" >&5)
6391 (eval "$lt_compile" 2>conftest.err)
6392 ac_status=$?
6393 cat conftest.err >&5
6394 echo "$as_me:6394: \$? = $ac_status" >&5
6395 if (exit $ac_status) && test -s "$ac_outfile"; then
6396 # The compiler can only warn and ignore the option if not recognized
6397 # So say no if there are warnings other than the usual output.
6398 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6399 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6400 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6401 lt_cv_prog_compiler_rtti_exceptions=yes
6402 fi
6403 fi
6404 $rm conftest*
6405
6406 fi
6407 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6408 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6409
6410 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6411 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6412 else
6413 :
6414 fi
6415
6416 fi
6417
6418 lt_prog_compiler_wl=
6419 lt_prog_compiler_pic=
6420 lt_prog_compiler_static=
6421
6422 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6423 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6424
6425 if test "$GCC" = yes; then
6426 lt_prog_compiler_wl='-Wl,'
6427 lt_prog_compiler_static='-static'
6428
6429 case $host_os in
6430 aix*)
6431 # All AIX code is PIC.
6432 if test "$host_cpu" = ia64; then
6433 # AIX 5 now supports IA64 processor
6434 lt_prog_compiler_static='-Bstatic'
6435 fi
6436 ;;
6437
6438 amigaos*)
6439 # FIXME: we need at least 68020 code to build shared libraries, but
6440 # adding the `-m68020' flag to GCC prevents building anything better,
6441 # like `-m68040'.
6442 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6443 ;;
6444
6445 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6446 # PIC is the default for these OSes.
6447 ;;
6448
6449 mingw* | pw32* | os2*)
6450 # This hack is so that the source file can tell whether it is being
6451 # built for inclusion in a dll (and should export symbols for example).
6452 lt_prog_compiler_pic='-DDLL_EXPORT'
6453 ;;
6454
6455 darwin* | rhapsody*)
6456 # PIC is the default on this platform
6457 # Common symbols not allowed in MH_DYLIB files
6458 lt_prog_compiler_pic='-fno-common'
6459 ;;
6460
6461 interix3*)
6462 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6463 # Instead, we relocate shared libraries at runtime.
6464 ;;
6465
6466 msdosdjgpp*)
6467 # Just because we use GCC doesn't mean we suddenly get shared libraries
6468 # on systems that don't support them.
6469 lt_prog_compiler_can_build_shared=no
6470 enable_shared=no
6471 ;;
6472
6473 sysv4*MP*)
6474 if test -d /usr/nec; then
6475 lt_prog_compiler_pic=-Kconform_pic
6476 fi
6477 ;;
6478
6479 hpux*)
6480 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6481 # not for PA HP-UX.
6482 case $host_cpu in
6483 hppa*64*|ia64*)
6484 # +Z the default
6485 ;;
6486 *)
6487 lt_prog_compiler_pic='-fPIC'
6488 ;;
6489 esac
6490 ;;
6491
6492 *)
6493 lt_prog_compiler_pic='-fPIC'
6494 ;;
6495 esac
6496 else
6497 # PORTME Check for flag to pass linker flags through the system compiler.
6498 case $host_os in
6499 aix*)
6500 lt_prog_compiler_wl='-Wl,'
6501 if test "$host_cpu" = ia64; then
6502 # AIX 5 now supports IA64 processor
6503 lt_prog_compiler_static='-Bstatic'
6504 else
6505 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6506 fi
6507 ;;
6508 darwin*)
6509 # PIC is the default on this platform
6510 # Common symbols not allowed in MH_DYLIB files
6511 case $cc_basename in
6512 xlc*)
6513 lt_prog_compiler_pic='-qnocommon'
6514 lt_prog_compiler_wl='-Wl,'
6515 ;;
6516 esac
6517 ;;
6518
6519 mingw* | pw32* | os2*)
6520 # This hack is so that the source file can tell whether it is being
6521 # built for inclusion in a dll (and should export symbols for example).
6522 lt_prog_compiler_pic='-DDLL_EXPORT'
6523 ;;
6524
6525 hpux9* | hpux10* | hpux11*)
6526 lt_prog_compiler_wl='-Wl,'
6527 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6528 # not for PA HP-UX.
6529 case $host_cpu in
6530 hppa*64*|ia64*)
6531 # +Z the default
6532 ;;
6533 *)
6534 lt_prog_compiler_pic='+Z'
6535 ;;
6536 esac
6537 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6538 lt_prog_compiler_static='${wl}-a ${wl}archive'
6539 ;;
6540
6541 irix5* | irix6* | nonstopux*)
6542 lt_prog_compiler_wl='-Wl,'
6543 # PIC (with -KPIC) is the default.
6544 lt_prog_compiler_static='-non_shared'
6545 ;;
6546
6547 newsos6)
6548 lt_prog_compiler_pic='-KPIC'
6549 lt_prog_compiler_static='-Bstatic'
6550 ;;
6551
6552 linux*)
6553 case $cc_basename in
6554 icc* | ecc*)
6555 lt_prog_compiler_wl='-Wl,'
6556 lt_prog_compiler_pic='-KPIC'
6557 lt_prog_compiler_static='-static'
6558 ;;
6559 pgcc* | pgf77* | pgf90* | pgf95*)
6560 # Portland Group compilers (*not* the Pentium gcc compiler,
6561 # which looks to be a dead project)
6562 lt_prog_compiler_wl='-Wl,'
6563 lt_prog_compiler_pic='-fpic'
6564 lt_prog_compiler_static='-Bstatic'
6565 ;;
6566 ccc*)
6567 lt_prog_compiler_wl='-Wl,'
6568 # All Alpha code is PIC.
6569 lt_prog_compiler_static='-non_shared'
6570 ;;
6571 esac
6572 ;;
6573
6574 osf3* | osf4* | osf5*)
6575 lt_prog_compiler_wl='-Wl,'
6576 # All OSF/1 code is PIC.
6577 lt_prog_compiler_static='-non_shared'
6578 ;;
6579
6580 solaris*)
6581 lt_prog_compiler_pic='-KPIC'
6582 lt_prog_compiler_static='-Bstatic'
6583 case $cc_basename in
6584 f77* | f90* | f95*)
6585 lt_prog_compiler_wl='-Qoption ld ';;
6586 *)
6587 lt_prog_compiler_wl='-Wl,';;
6588 esac
6589 ;;
6590
6591 sunos4*)
6592 lt_prog_compiler_wl='-Qoption ld '
6593 lt_prog_compiler_pic='-PIC'
6594 lt_prog_compiler_static='-Bstatic'
6595 ;;
6596
6597 sysv4 | sysv4.2uw2* | sysv4.3*)
6598 lt_prog_compiler_wl='-Wl,'
6599 lt_prog_compiler_pic='-KPIC'
6600 lt_prog_compiler_static='-Bstatic'
6601 ;;
6602
6603 sysv4*MP*)
6604 if test -d /usr/nec ;then
6605 lt_prog_compiler_pic='-Kconform_pic'
6606 lt_prog_compiler_static='-Bstatic'
6607 fi
6608 ;;
6609
6610 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6611 lt_prog_compiler_wl='-Wl,'
6612 lt_prog_compiler_pic='-KPIC'
6613 lt_prog_compiler_static='-Bstatic'
6614 ;;
6615
6616 unicos*)
6617 lt_prog_compiler_wl='-Wl,'
6618 lt_prog_compiler_can_build_shared=no
6619 ;;
6620
6621 uts4*)
6622 lt_prog_compiler_pic='-pic'
6623 lt_prog_compiler_static='-Bstatic'
6624 ;;
6625
6626 *)
6627 lt_prog_compiler_can_build_shared=no
6628 ;;
6629 esac
6630 fi
6631
6632 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6633 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6634
6635 #
6636 # Check to make sure the PIC flag actually works.
6637 #
6638 if test -n "$lt_prog_compiler_pic"; then
6639
6640 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6641 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6642 if test "${lt_prog_compiler_pic_works+set}" = set; then
6643 echo $ECHO_N "(cached) $ECHO_C" >&6
6644 else
6645 lt_prog_compiler_pic_works=no
6646 ac_outfile=conftest.$ac_objext
6647 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6648 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6649 # Insert the option either (1) after the last *FLAGS variable, or
6650 # (2) before a word containing "conftest.", or (3) at the end.
6651 # Note that $ac_compile itself does not contain backslashes and begins
6652 # with a dollar sign (not a hyphen), so the echo should work correctly.
6653 # The option is referenced via a variable to avoid confusing sed.
6654 lt_compile=`echo "$ac_compile" | $SED \
6655 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6657 -e 's:$: $lt_compiler_flag:'`
6658 (eval echo "\"\$as_me:6658: $lt_compile\"" >&5)
6659 (eval "$lt_compile" 2>conftest.err)
6660 ac_status=$?
6661 cat conftest.err >&5
6662 echo "$as_me:6662: \$? = $ac_status" >&5
6663 if (exit $ac_status) && test -s "$ac_outfile"; then
6664 # The compiler can only warn and ignore the option if not recognized
6665 # So say no if there are warnings other than the usual output.
6666 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6668 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6669 lt_prog_compiler_pic_works=yes
6670 fi
6671 fi
6672 $rm conftest*
6673
6674 fi
6675 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6676 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6677
6678 if test x"$lt_prog_compiler_pic_works" = xyes; then
6679 case $lt_prog_compiler_pic in
6680 "" | " "*) ;;
6681 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6682 esac
6683 else
6684 lt_prog_compiler_pic=
6685 lt_prog_compiler_can_build_shared=no
6686 fi
6687
6688 fi
6689 case $host_os in
6690 # For platforms which do not support PIC, -DPIC is meaningless:
6691 *djgpp*)
6692 lt_prog_compiler_pic=
6693 ;;
6694 *)
6695 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6696 ;;
6697 esac
6698
6699 #
6700 # Check to make sure the static flag actually works.
6701 #
6702 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6703 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6704 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6705 if test "${lt_prog_compiler_static_works+set}" = set; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 else
6708 lt_prog_compiler_static_works=no
6709 save_LDFLAGS="$LDFLAGS"
6710 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6711 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6712 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6713 # The linker can only warn and ignore the option if not recognized
6714 # So say no if there are warnings
6715 if test -s conftest.err; then
6716 # Append any errors to the config.log.
6717 cat conftest.err 1>&5
6718 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6719 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6720 if diff conftest.exp conftest.er2 >/dev/null; then
6721 lt_prog_compiler_static_works=yes
6722 fi
6723 else
6724 lt_prog_compiler_static_works=yes
6725 fi
6726 fi
6727 $rm conftest*
6728 LDFLAGS="$save_LDFLAGS"
6729
6730 fi
6731 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6732 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6733
6734 if test x"$lt_prog_compiler_static_works" = xyes; then
6735 :
6736 else
6737 lt_prog_compiler_static=
6738 fi
6739
6740
6741 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6742 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6743 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6744 echo $ECHO_N "(cached) $ECHO_C" >&6
6745 else
6746 lt_cv_prog_compiler_c_o=no
6747 $rm -r conftest 2>/dev/null
6748 mkdir conftest
6749 cd conftest
6750 mkdir out
6751 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6752
6753 lt_compiler_flag="-o out/conftest2.$ac_objext"
6754 # Insert the option either (1) after the last *FLAGS variable, or
6755 # (2) before a word containing "conftest.", or (3) at the end.
6756 # Note that $ac_compile itself does not contain backslashes and begins
6757 # with a dollar sign (not a hyphen), so the echo should work correctly.
6758 lt_compile=`echo "$ac_compile" | $SED \
6759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6761 -e 's:$: $lt_compiler_flag:'`
6762 (eval echo "\"\$as_me:6762: $lt_compile\"" >&5)
6763 (eval "$lt_compile" 2>out/conftest.err)
6764 ac_status=$?
6765 cat out/conftest.err >&5
6766 echo "$as_me:6766: \$? = $ac_status" >&5
6767 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6768 then
6769 # The compiler can only warn and ignore the option if not recognized
6770 # So say no if there are warnings
6771 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6772 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6773 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6774 lt_cv_prog_compiler_c_o=yes
6775 fi
6776 fi
6777 chmod u+w . 2>&5
6778 $rm conftest*
6779 # SGI C++ compiler will create directory out/ii_files/ for
6780 # template instantiation
6781 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6782 $rm out/* && rmdir out
6783 cd ..
6784 rmdir conftest
6785 $rm conftest*
6786
6787 fi
6788 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6789 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6790
6791
6792 hard_links="nottested"
6793 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6794 # do not overwrite the value of need_locks provided by the user
6795 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6796 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6797 hard_links=yes
6798 $rm conftest*
6799 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6800 touch conftest.a
6801 ln conftest.a conftest.b 2>&5 || hard_links=no
6802 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6803 echo "$as_me:$LINENO: result: $hard_links" >&5
6804 echo "${ECHO_T}$hard_links" >&6
6805 if test "$hard_links" = no; then
6806 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6807 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6808 need_locks=warn
6809 fi
6810 else
6811 need_locks=no
6812 fi
6813
6814 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6815 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6816
6817 runpath_var=
6818 allow_undefined_flag=
6819 enable_shared_with_static_runtimes=no
6820 archive_cmds=
6821 archive_expsym_cmds=
6822 old_archive_From_new_cmds=
6823 old_archive_from_expsyms_cmds=
6824 export_dynamic_flag_spec=
6825 whole_archive_flag_spec=
6826 thread_safe_flag_spec=
6827 hardcode_libdir_flag_spec=
6828 hardcode_libdir_flag_spec_ld=
6829 hardcode_libdir_separator=
6830 hardcode_direct=no
6831 hardcode_minus_L=no
6832 hardcode_shlibpath_var=unsupported
6833 link_all_deplibs=unknown
6834 hardcode_automatic=no
6835 module_cmds=
6836 module_expsym_cmds=
6837 always_export_symbols=no
6838 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6839 # include_expsyms should be a list of space-separated symbols to be *always*
6840 # included in the symbol list
6841 include_expsyms=
6842 # exclude_expsyms can be an extended regexp of symbols to exclude
6843 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6844 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6845 # as well as any symbol that contains `d'.
6846 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6847 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6848 # platforms (ab)use it in PIC code, but their linkers get confused if
6849 # the symbol is explicitly referenced. Since portable code cannot
6850 # rely on this symbol name, it's probably fine to never include it in
6851 # preloaded symbol tables.
6852 extract_expsyms_cmds=
6853 # Just being paranoid about ensuring that cc_basename is set.
6854 for cc_temp in $compiler""; do
6855 case $cc_temp in
6856 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6857 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6858 \-*) ;;
6859 *) break;;
6860 esac
6861 done
6862 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6863
6864 case $host_os in
6865 cygwin* | mingw* | pw32*)
6866 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6867 # When not using gcc, we currently assume that we are using
6868 # Microsoft Visual C++.
6869 if test "$GCC" != yes; then
6870 with_gnu_ld=no
6871 fi
6872 ;;
6873 interix*)
6874 # we just hope/assume this is gcc and not c89 (= MSVC++)
6875 with_gnu_ld=yes
6876 ;;
6877 openbsd*)
6878 with_gnu_ld=no
6879 ;;
6880 esac
6881
6882 ld_shlibs=yes
6883 if test "$with_gnu_ld" = yes; then
6884 # If archive_cmds runs LD, not CC, wlarc should be empty
6885 wlarc='${wl}'
6886
6887 # Set some defaults for GNU ld with shared library support. These
6888 # are reset later if shared libraries are not supported. Putting them
6889 # here allows them to be overridden if necessary.
6890 runpath_var=LD_RUN_PATH
6891 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6892 export_dynamic_flag_spec='${wl}--export-dynamic'
6893 # ancient GNU ld didn't support --whole-archive et. al.
6894 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6895 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6896 else
6897 whole_archive_flag_spec=
6898 fi
6899 supports_anon_versioning=no
6900 case `$LD -v 2>/dev/null` in
6901 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6902 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6903 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6904 *\ 2.11.*) ;; # other 2.11 versions
6905 *) supports_anon_versioning=yes ;;
6906 esac
6907
6908 # See if GNU ld supports shared libraries.
6909 case $host_os in
6910 aix3* | aix4* | aix5*)
6911 # On AIX/PPC, the GNU linker is very broken
6912 if test "$host_cpu" != ia64; then
6913 ld_shlibs=no
6914 cat <<EOF 1>&2
6915
6916 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6917 *** to be unable to reliably create shared libraries on AIX.
6918 *** Therefore, libtool is disabling shared libraries support. If you
6919 *** really care for shared libraries, you may want to modify your PATH
6920 *** so that a non-GNU linker is found, and then restart.
6921
6922 EOF
6923 fi
6924 ;;
6925
6926 amigaos*)
6927 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)'
6928 hardcode_libdir_flag_spec='-L$libdir'
6929 hardcode_minus_L=yes
6930
6931 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
6932 # that the semantics of dynamic libraries on AmigaOS, at least up
6933 # to version 4, is to share data among multiple programs linked
6934 # with the same dynamic library. Since this doesn't match the
6935 # behavior of shared libraries on other platforms, we can't use
6936 # them.
6937 ld_shlibs=no
6938 ;;
6939
6940 beos*)
6941 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6942 allow_undefined_flag=unsupported
6943 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
6944 # support --undefined. This deserves some investigation. FIXME
6945 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6946 else
6947 ld_shlibs=no
6948 fi
6949 ;;
6950
6951 cygwin* | mingw* | pw32*)
6952 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6953 # as there is no search path for DLLs.
6954 hardcode_libdir_flag_spec='-L$libdir'
6955 allow_undefined_flag=unsupported
6956 always_export_symbols=no
6957 enable_shared_with_static_runtimes=yes
6958 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6959
6960 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6961 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6962 # If the export-symbols file already is a .def file (1st line
6963 # is EXPORTS), use it as is; otherwise, prepend...
6964 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6965 cp $export_symbols $output_objdir/$soname.def;
6966 else
6967 echo EXPORTS > $output_objdir/$soname.def;
6968 cat $export_symbols >> $output_objdir/$soname.def;
6969 fi~
6970 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6971 else
6972 ld_shlibs=no
6973 fi
6974 ;;
6975
6976 interix3*)
6977 hardcode_direct=no
6978 hardcode_shlibpath_var=no
6979 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6980 export_dynamic_flag_spec='${wl}-E'
6981 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6982 # Instead, shared libraries are loaded at an image base (0x10000000 by
6983 # default) and relocated if they conflict, which is a slow very memory
6984 # consuming and fragmenting process. To avoid this, we pick a random,
6985 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6986 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6987 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6988 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6989 ;;
6990
6991 linux*)
6992 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6993 tmp_addflag=
6994 case $cc_basename,$host_cpu in
6995 pgcc*) # Portland Group C compiler
6996 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6997 tmp_addflag=' $pic_flag'
6998 ;;
6999 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7000 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7001 tmp_addflag=' $pic_flag -Mnomain' ;;
7002 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7003 tmp_addflag=' -i_dynamic' ;;
7004 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7005 tmp_addflag=' -i_dynamic -nofor_main' ;;
7006 ifc* | ifort*) # Intel Fortran compiler
7007 tmp_addflag=' -nofor_main' ;;
7008 esac
7009 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7010
7011 if test $supports_anon_versioning = yes; then
7012 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7013 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7014 $echo "local: *; };" >> $output_objdir/$libname.ver~
7015 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7016 fi
7017 else
7018 ld_shlibs=no
7019 fi
7020 ;;
7021
7022 netbsd*)
7023 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7024 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7025 wlarc=
7026 else
7027 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7028 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7029 fi
7030 ;;
7031
7032 solaris*)
7033 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7034 ld_shlibs=no
7035 cat <<EOF 1>&2
7036
7037 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7038 *** create shared libraries on Solaris systems. Therefore, libtool
7039 *** is disabling shared libraries support. We urge you to upgrade GNU
7040 *** binutils to release 2.9.1 or newer. Another option is to modify
7041 *** your PATH or compiler configuration so that the native linker is
7042 *** used, and then restart.
7043
7044 EOF
7045 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7046 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7047 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7048 else
7049 ld_shlibs=no
7050 fi
7051 ;;
7052
7053 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7054 case `$LD -v 2>&1` in
7055 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7056 ld_shlibs=no
7057 cat <<_LT_EOF 1>&2
7058
7059 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7060 *** reliably create shared libraries on SCO systems. Therefore, libtool
7061 *** is disabling shared libraries support. We urge you to upgrade GNU
7062 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7063 *** your PATH or compiler configuration so that the native linker is
7064 *** used, and then restart.
7065
7066 _LT_EOF
7067 ;;
7068 *)
7069 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7070 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7071 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7072 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7073 else
7074 ld_shlibs=no
7075 fi
7076 ;;
7077 esac
7078 ;;
7079
7080 sunos4*)
7081 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7082 wlarc=
7083 hardcode_direct=yes
7084 hardcode_shlibpath_var=no
7085 ;;
7086
7087 *)
7088 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7089 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7090 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7091 else
7092 ld_shlibs=no
7093 fi
7094 ;;
7095 esac
7096
7097 if test "$ld_shlibs" = no; then
7098 runpath_var=
7099 hardcode_libdir_flag_spec=
7100 export_dynamic_flag_spec=
7101 whole_archive_flag_spec=
7102 fi
7103 else
7104 # PORTME fill in a description of your system's linker (not GNU ld)
7105 case $host_os in
7106 aix3*)
7107 allow_undefined_flag=unsupported
7108 always_export_symbols=yes
7109 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'
7110 # Note: this linker hardcodes the directories in LIBPATH if there
7111 # are no directories specified by -L.
7112 hardcode_minus_L=yes
7113 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7114 # Neither direct hardcoding nor static linking is supported with a
7115 # broken collect2.
7116 hardcode_direct=unsupported
7117 fi
7118 ;;
7119
7120 aix4* | aix5*)
7121 if test "$host_cpu" = ia64; then
7122 # On IA64, the linker does run time linking by default, so we don't
7123 # have to do anything special.
7124 aix_use_runtimelinking=no
7125 exp_sym_flag='-Bexport'
7126 no_entry_flag=""
7127 else
7128 # If we're using GNU nm, then we don't want the "-C" option.
7129 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7130 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7131 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7132 else
7133 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7134 fi
7135 aix_use_runtimelinking=no
7136
7137 # Test if we are trying to use run time linking or normal
7138 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7139 # need to do runtime linking.
7140 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7141 for ld_flag in $LDFLAGS; do
7142 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7143 aix_use_runtimelinking=yes
7144 break
7145 fi
7146 done
7147 ;;
7148 esac
7149
7150 exp_sym_flag='-bexport'
7151 no_entry_flag='-bnoentry'
7152 fi
7153
7154 # When large executables or shared objects are built, AIX ld can
7155 # have problems creating the table of contents. If linking a library
7156 # or program results in "error TOC overflow" add -mminimal-toc to
7157 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7158 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7159
7160 archive_cmds=''
7161 hardcode_direct=yes
7162 hardcode_libdir_separator=':'
7163 link_all_deplibs=yes
7164
7165 if test "$GCC" = yes; then
7166 case $host_os in aix4.[012]|aix4.[012].*)
7167 # We only want to do this on AIX 4.2 and lower, the check
7168 # below for broken collect2 doesn't work under 4.3+
7169 collect2name=`${CC} -print-prog-name=collect2`
7170 if test -f "$collect2name" && \
7171 strings "$collect2name" | grep resolve_lib_name >/dev/null
7172 then
7173 # We have reworked collect2
7174 hardcode_direct=yes
7175 else
7176 # We have old collect2
7177 hardcode_direct=unsupported
7178 # It fails to find uninstalled libraries when the uninstalled
7179 # path is not listed in the libpath. Setting hardcode_minus_L
7180 # to unsupported forces relinking
7181 hardcode_minus_L=yes
7182 hardcode_libdir_flag_spec='-L$libdir'
7183 hardcode_libdir_separator=
7184 fi
7185 ;;
7186 esac
7187 shared_flag='-shared'
7188 if test "$aix_use_runtimelinking" = yes; then
7189 shared_flag="$shared_flag "'${wl}-G'
7190 fi
7191 else
7192 # not using gcc
7193 if test "$host_cpu" = ia64; then
7194 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7195 # chokes on -Wl,-G. The following line is correct:
7196 shared_flag='-G'
7197 else
7198 if test "$aix_use_runtimelinking" = yes; then
7199 shared_flag='${wl}-G'
7200 else
7201 shared_flag='${wl}-bM:SRE'
7202 fi
7203 fi
7204 fi
7205
7206 # It seems that -bexpall does not export symbols beginning with
7207 # underscore (_), so it is better to generate a list of symbols to export.
7208 always_export_symbols=yes
7209 if test "$aix_use_runtimelinking" = yes; then
7210 # Warning - without using the other runtime loading flags (-brtl),
7211 # -berok will link without error, but may produce a broken library.
7212 allow_undefined_flag='-berok'
7213 # Determine the default libpath from the value encoded in an empty executable.
7214 cat >conftest.$ac_ext <<_ACEOF
7215 /* confdefs.h. */
7216 _ACEOF
7217 cat confdefs.h >>conftest.$ac_ext
7218 cat >>conftest.$ac_ext <<_ACEOF
7219 /* end confdefs.h. */
7220
7221 int
7222 main ()
7223 {
7224
7225 ;
7226 return 0;
7227 }
7228 _ACEOF
7229 rm -f conftest.$ac_objext conftest$ac_exeext
7230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7231 (eval $ac_link) 2>conftest.er1
7232 ac_status=$?
7233 grep -v '^ *+' conftest.er1 >conftest.err
7234 rm -f conftest.er1
7235 cat conftest.err >&5
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); } &&
7238 { ac_try='test -z "$ac_c_werror_flag"
7239 || test ! -s conftest.err'
7240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7241 (eval $ac_try) 2>&5
7242 ac_status=$?
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); }; } &&
7245 { ac_try='test -s conftest$ac_exeext'
7246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7247 (eval $ac_try) 2>&5
7248 ac_status=$?
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); }; }; then
7251
7252 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7253 }'`
7254 # Check for a 64-bit object if we didn't find anything.
7255 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7256 }'`; fi
7257 else
7258 echo "$as_me: failed program was:" >&5
7259 sed 's/^/| /' conftest.$ac_ext >&5
7260
7261 fi
7262 rm -f conftest.err conftest.$ac_objext \
7263 conftest$ac_exeext conftest.$ac_ext
7264 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7265
7266 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7267 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7268 else
7269 if test "$host_cpu" = ia64; then
7270 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7271 allow_undefined_flag="-z nodefs"
7272 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7273 else
7274 # Determine the default libpath from the value encoded in an empty executable.
7275 cat >conftest.$ac_ext <<_ACEOF
7276 /* confdefs.h. */
7277 _ACEOF
7278 cat confdefs.h >>conftest.$ac_ext
7279 cat >>conftest.$ac_ext <<_ACEOF
7280 /* end confdefs.h. */
7281
7282 int
7283 main ()
7284 {
7285
7286 ;
7287 return 0;
7288 }
7289 _ACEOF
7290 rm -f conftest.$ac_objext conftest$ac_exeext
7291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7292 (eval $ac_link) 2>conftest.er1
7293 ac_status=$?
7294 grep -v '^ *+' conftest.er1 >conftest.err
7295 rm -f conftest.er1
7296 cat conftest.err >&5
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } &&
7299 { ac_try='test -z "$ac_c_werror_flag"
7300 || test ! -s conftest.err'
7301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7302 (eval $ac_try) 2>&5
7303 ac_status=$?
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); }; } &&
7306 { ac_try='test -s conftest$ac_exeext'
7307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7308 (eval $ac_try) 2>&5
7309 ac_status=$?
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); }; }; then
7312
7313 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7314 }'`
7315 # Check for a 64-bit object if we didn't find anything.
7316 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7317 }'`; fi
7318 else
7319 echo "$as_me: failed program was:" >&5
7320 sed 's/^/| /' conftest.$ac_ext >&5
7321
7322 fi
7323 rm -f conftest.err conftest.$ac_objext \
7324 conftest$ac_exeext conftest.$ac_ext
7325 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7326
7327 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7328 # Warning - without using the other run time loading flags,
7329 # -berok will link without error, but may produce a broken library.
7330 no_undefined_flag=' ${wl}-bernotok'
7331 allow_undefined_flag=' ${wl}-berok'
7332 # Exported symbols can be pulled into shared objects from archives
7333 whole_archive_flag_spec='$convenience'
7334 archive_cmds_need_lc=yes
7335 # This is similar to how AIX traditionally builds its shared libraries.
7336 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7337 fi
7338 fi
7339 ;;
7340
7341 amigaos*)
7342 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)'
7343 hardcode_libdir_flag_spec='-L$libdir'
7344 hardcode_minus_L=yes
7345 # see comment about different semantics on the GNU ld section
7346 ld_shlibs=no
7347 ;;
7348
7349 bsdi[45]*)
7350 export_dynamic_flag_spec=-rdynamic
7351 ;;
7352
7353 cygwin* | mingw* | pw32*)
7354 # When not using gcc, we currently assume that we are using
7355 # Microsoft Visual C++.
7356 # hardcode_libdir_flag_spec is actually meaningless, as there is
7357 # no search path for DLLs.
7358 hardcode_libdir_flag_spec=' '
7359 allow_undefined_flag=unsupported
7360 # Tell ltmain to make .lib files, not .a files.
7361 libext=lib
7362 # Tell ltmain to make .dll files, not .so files.
7363 shrext_cmds=".dll"
7364 # FIXME: Setting linknames here is a bad hack.
7365 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7366 # The linker will automatically build a .lib file if we build a DLL.
7367 old_archive_From_new_cmds='true'
7368 # FIXME: Should let the user specify the lib program.
7369 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7370 fix_srcfile_path='`cygpath -w "$srcfile"`'
7371 enable_shared_with_static_runtimes=yes
7372 ;;
7373
7374 darwin* | rhapsody*)
7375 case $host_os in
7376 rhapsody* | darwin1.[012])
7377 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7378 ;;
7379 *) # Darwin 1.3 on
7380 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7381 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7382 else
7383 case ${MACOSX_DEPLOYMENT_TARGET} in
7384 10.[012])
7385 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7386 ;;
7387 10.*)
7388 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7389 ;;
7390 esac
7391 fi
7392 ;;
7393 esac
7394 archive_cmds_need_lc=no
7395 hardcode_direct=no
7396 hardcode_automatic=yes
7397 hardcode_shlibpath_var=unsupported
7398 whole_archive_flag_spec=''
7399 link_all_deplibs=yes
7400 if test "$GCC" = yes ; then
7401 output_verbose_link_cmd='echo'
7402 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7403 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7404 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7405 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7406 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7407 else
7408 case $cc_basename in
7409 xlc*)
7410 output_verbose_link_cmd='echo'
7411 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7412 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7413 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7414 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7415 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7416 ;;
7417 *)
7418 ld_shlibs=no
7419 ;;
7420 esac
7421 fi
7422 ;;
7423
7424 dgux*)
7425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7426 hardcode_libdir_flag_spec='-L$libdir'
7427 hardcode_shlibpath_var=no
7428 ;;
7429
7430 freebsd1*)
7431 ld_shlibs=no
7432 ;;
7433
7434 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7435 # support. Future versions do this automatically, but an explicit c++rt0.o
7436 # does not break anything, and helps significantly (at the cost of a little
7437 # extra space).
7438 freebsd2.2*)
7439 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7440 hardcode_libdir_flag_spec='-R$libdir'
7441 hardcode_direct=yes
7442 hardcode_shlibpath_var=no
7443 ;;
7444
7445 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7446 freebsd2*)
7447 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7448 hardcode_direct=yes
7449 hardcode_minus_L=yes
7450 hardcode_shlibpath_var=no
7451 ;;
7452
7453 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7454 freebsd* | kfreebsd*-gnu | dragonfly*)
7455 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7456 hardcode_libdir_flag_spec='-R$libdir'
7457 hardcode_direct=yes
7458 hardcode_shlibpath_var=no
7459 ;;
7460
7461 hpux9*)
7462 if test "$GCC" = yes; then
7463 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'
7464 else
7465 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'
7466 fi
7467 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7468 hardcode_libdir_separator=:
7469 hardcode_direct=yes
7470
7471 # hardcode_minus_L: Not really in the search PATH,
7472 # but as the default location of the library.
7473 hardcode_minus_L=yes
7474 export_dynamic_flag_spec='${wl}-E'
7475 ;;
7476
7477 hpux10*)
7478 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7479 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7480 else
7481 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7482 fi
7483 if test "$with_gnu_ld" = no; then
7484 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7485 hardcode_libdir_separator=:
7486
7487 hardcode_direct=yes
7488 export_dynamic_flag_spec='${wl}-E'
7489
7490 # hardcode_minus_L: Not really in the search PATH,
7491 # but as the default location of the library.
7492 hardcode_minus_L=yes
7493 fi
7494 ;;
7495
7496 hpux11*)
7497 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7498 case $host_cpu in
7499 hppa*64*)
7500 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7501 ;;
7502 ia64*)
7503 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7504 ;;
7505 *)
7506 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7507 ;;
7508 esac
7509 else
7510 case $host_cpu in
7511 hppa*64*)
7512 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7513 ;;
7514 ia64*)
7515 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7516 ;;
7517 *)
7518 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7519 ;;
7520 esac
7521 fi
7522 if test "$with_gnu_ld" = no; then
7523 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7524 hardcode_libdir_separator=:
7525
7526 case $host_cpu in
7527 hppa*64*|ia64*)
7528 hardcode_libdir_flag_spec_ld='+b $libdir'
7529 hardcode_direct=no
7530 hardcode_shlibpath_var=no
7531 ;;
7532 *)
7533 hardcode_direct=yes
7534 export_dynamic_flag_spec='${wl}-E'
7535
7536 # hardcode_minus_L: Not really in the search PATH,
7537 # but as the default location of the library.
7538 hardcode_minus_L=yes
7539 ;;
7540 esac
7541 fi
7542 ;;
7543
7544 irix5* | irix6* | nonstopux*)
7545 if test "$GCC" = yes; then
7546 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'
7547 else
7548 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'
7549 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7550 fi
7551 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7552 hardcode_libdir_separator=:
7553 link_all_deplibs=yes
7554 ;;
7555
7556 netbsd*)
7557 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7558 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7559 else
7560 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7561 fi
7562 hardcode_libdir_flag_spec='-R$libdir'
7563 hardcode_direct=yes
7564 hardcode_shlibpath_var=no
7565 ;;
7566
7567 newsos6)
7568 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7569 hardcode_direct=yes
7570 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7571 hardcode_libdir_separator=:
7572 hardcode_shlibpath_var=no
7573 ;;
7574
7575 openbsd*)
7576 hardcode_direct=yes
7577 hardcode_shlibpath_var=no
7578 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7579 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7580 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7581 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7582 export_dynamic_flag_spec='${wl}-E'
7583 else
7584 case $host_os in
7585 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7586 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7587 hardcode_libdir_flag_spec='-R$libdir'
7588 ;;
7589 *)
7590 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7591 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7592 ;;
7593 esac
7594 fi
7595 ;;
7596
7597 os2*)
7598 hardcode_libdir_flag_spec='-L$libdir'
7599 hardcode_minus_L=yes
7600 allow_undefined_flag=unsupported
7601 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'
7602 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7603 ;;
7604
7605 osf3*)
7606 if test "$GCC" = yes; then
7607 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7608 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'
7609 else
7610 allow_undefined_flag=' -expect_unresolved \*'
7611 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'
7612 fi
7613 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7614 hardcode_libdir_separator=:
7615 ;;
7616
7617 osf4* | osf5*) # as osf3* with the addition of -msym flag
7618 if test "$GCC" = yes; then
7619 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7620 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'
7621 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7622 else
7623 allow_undefined_flag=' -expect_unresolved \*'
7624 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'
7625 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7626 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7627
7628 # Both c and cxx compiler support -rpath directly
7629 hardcode_libdir_flag_spec='-rpath $libdir'
7630 fi
7631 hardcode_libdir_separator=:
7632 ;;
7633
7634 solaris*)
7635 no_undefined_flag=' -z text'
7636 if test "$GCC" = yes; then
7637 wlarc='${wl}'
7638 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7639 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7640 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7641 else
7642 wlarc=''
7643 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7644 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7645 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7646 fi
7647 hardcode_libdir_flag_spec='-R$libdir'
7648 hardcode_shlibpath_var=no
7649 case $host_os in
7650 solaris2.[0-5] | solaris2.[0-5].*) ;;
7651 *)
7652 # The compiler driver will combine linker options so we
7653 # cannot just pass the convience library names through
7654 # without $wl, iff we do not link with $LD.
7655 # Luckily, gcc supports the same syntax we need for Sun Studio.
7656 # Supported since Solaris 2.6 (maybe 2.5.1?)
7657 case $wlarc in
7658 '')
7659 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7660 *)
7661 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7662 esac ;;
7663 esac
7664 link_all_deplibs=yes
7665 ;;
7666
7667 sunos4*)
7668 if test "x$host_vendor" = xsequent; then
7669 # Use $CC to link under sequent, because it throws in some extra .o
7670 # files that make .init and .fini sections work.
7671 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7672 else
7673 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7674 fi
7675 hardcode_libdir_flag_spec='-L$libdir'
7676 hardcode_direct=yes
7677 hardcode_minus_L=yes
7678 hardcode_shlibpath_var=no
7679 ;;
7680
7681 sysv4)
7682 case $host_vendor in
7683 sni)
7684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7685 hardcode_direct=yes # is this really true???
7686 ;;
7687 siemens)
7688 ## LD is ld it makes a PLAMLIB
7689 ## CC just makes a GrossModule.
7690 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7691 reload_cmds='$CC -r -o $output$reload_objs'
7692 hardcode_direct=no
7693 ;;
7694 motorola)
7695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7696 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7697 ;;
7698 esac
7699 runpath_var='LD_RUN_PATH'
7700 hardcode_shlibpath_var=no
7701 ;;
7702
7703 sysv4.3*)
7704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7705 hardcode_shlibpath_var=no
7706 export_dynamic_flag_spec='-Bexport'
7707 ;;
7708
7709 sysv4*MP*)
7710 if test -d /usr/nec; then
7711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7712 hardcode_shlibpath_var=no
7713 runpath_var=LD_RUN_PATH
7714 hardcode_runpath_var=yes
7715 ld_shlibs=yes
7716 fi
7717 ;;
7718
7719 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7720 no_undefined_flag='${wl}-z,text'
7721 archive_cmds_need_lc=no
7722 hardcode_shlibpath_var=no
7723 runpath_var='LD_RUN_PATH'
7724
7725 if test "$GCC" = yes; then
7726 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7727 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7728 else
7729 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7730 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7731 fi
7732 ;;
7733
7734 sysv5* | sco3.2v5* | sco5v6*)
7735 # Note: We can NOT use -z defs as we might desire, because we do not
7736 # link with -lc, and that would cause any symbols used from libc to
7737 # always be unresolved, which means just about no library would
7738 # ever link correctly. If we're not using GNU ld we use -z text
7739 # though, which does catch some bad symbols but isn't as heavy-handed
7740 # as -z defs.
7741 no_undefined_flag='${wl}-z,text'
7742 allow_undefined_flag='${wl}-z,nodefs'
7743 archive_cmds_need_lc=no
7744 hardcode_shlibpath_var=no
7745 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7746 hardcode_libdir_separator=':'
7747 link_all_deplibs=yes
7748 export_dynamic_flag_spec='${wl}-Bexport'
7749 runpath_var='LD_RUN_PATH'
7750
7751 if test "$GCC" = yes; then
7752 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7753 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7754 else
7755 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7756 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7757 fi
7758 ;;
7759
7760 uts4*)
7761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7762 hardcode_libdir_flag_spec='-L$libdir'
7763 hardcode_shlibpath_var=no
7764 ;;
7765
7766 *)
7767 ld_shlibs=no
7768 ;;
7769 esac
7770 fi
7771
7772 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7773 echo "${ECHO_T}$ld_shlibs" >&6
7774 test "$ld_shlibs" = no && can_build_shared=no
7775
7776 #
7777 # Do we need to explicitly link libc?
7778 #
7779 case "x$archive_cmds_need_lc" in
7780 x|xyes)
7781 # Assume -lc should be added
7782 archive_cmds_need_lc=yes
7783
7784 if test "$enable_shared" = yes && test "$GCC" = yes; then
7785 case $archive_cmds in
7786 *'~'*)
7787 # FIXME: we may have to deal with multi-command sequences.
7788 ;;
7789 '$CC '*)
7790 # Test whether the compiler implicitly links with -lc since on some
7791 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7792 # to ld, don't add -lc before -lgcc.
7793 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7794 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7795 $rm conftest*
7796 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7797
7798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7799 (eval $ac_compile) 2>&5
7800 ac_status=$?
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); } 2>conftest.err; then
7803 soname=conftest
7804 lib=conftest
7805 libobjs=conftest.$ac_objext
7806 deplibs=
7807 wl=$lt_prog_compiler_wl
7808 pic_flag=$lt_prog_compiler_pic
7809 compiler_flags=-v
7810 linker_flags=-v
7811 verstring=
7812 output_objdir=.
7813 libname=conftest
7814 lt_save_allow_undefined_flag=$allow_undefined_flag
7815 allow_undefined_flag=
7816 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7817 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7818 ac_status=$?
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); }
7821 then
7822 archive_cmds_need_lc=no
7823 else
7824 archive_cmds_need_lc=yes
7825 fi
7826 allow_undefined_flag=$lt_save_allow_undefined_flag
7827 else
7828 cat conftest.err 1>&5
7829 fi
7830 $rm conftest*
7831 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7832 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7833 ;;
7834 esac
7835 fi
7836 ;;
7837 esac
7838
7839 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7840 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7841 library_names_spec=
7842 libname_spec='lib$name'
7843 soname_spec=
7844 shrext_cmds=".so"
7845 postinstall_cmds=
7846 postuninstall_cmds=
7847 finish_cmds=
7848 finish_eval=
7849 shlibpath_var=
7850 shlibpath_overrides_runpath=unknown
7851 version_type=none
7852 dynamic_linker="$host_os ld.so"
7853 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7854 if test "$GCC" = yes; then
7855 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7856 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7857 # if the path contains ";" then we assume it to be the separator
7858 # otherwise default to the standard path separator (i.e. ":") - it is
7859 # assumed that no part of a normal pathname contains ";" but that should
7860 # okay in the real world where ";" in dirpaths is itself problematic.
7861 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7862 else
7863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7864 fi
7865 else
7866 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7867 fi
7868 need_lib_prefix=unknown
7869 hardcode_into_libs=no
7870
7871 # when you set need_version to no, make sure it does not cause -set_version
7872 # flags to be left without arguments
7873 need_version=unknown
7874
7875 case $host_os in
7876 aix3*)
7877 version_type=linux
7878 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7879 shlibpath_var=LIBPATH
7880
7881 # AIX 3 has no versioning support, so we append a major version to the name.
7882 soname_spec='${libname}${release}${shared_ext}$major'
7883 ;;
7884
7885 aix4* | aix5*)
7886 version_type=linux
7887 need_lib_prefix=no
7888 need_version=no
7889 hardcode_into_libs=yes
7890 if test "$host_cpu" = ia64; then
7891 # AIX 5 supports IA64
7892 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7893 shlibpath_var=LD_LIBRARY_PATH
7894 else
7895 # With GCC up to 2.95.x, collect2 would create an import file
7896 # for dependence libraries. The import file would start with
7897 # the line `#! .'. This would cause the generated library to
7898 # depend on `.', always an invalid library. This was fixed in
7899 # development snapshots of GCC prior to 3.0.
7900 case $host_os in
7901 aix4 | aix4.[01] | aix4.[01].*)
7902 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7903 echo ' yes '
7904 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7905 :
7906 else
7907 can_build_shared=no
7908 fi
7909 ;;
7910 esac
7911 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7912 # soname into executable. Probably we can add versioning support to
7913 # collect2, so additional links can be useful in future.
7914 if test "$aix_use_runtimelinking" = yes; then
7915 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7916 # instead of lib<name>.a to let people know that these are not
7917 # typical AIX shared libraries.
7918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7919 else
7920 # We preserve .a as extension for shared libraries through AIX4.2
7921 # and later when we are not doing run time linking.
7922 library_names_spec='${libname}${release}.a $libname.a'
7923 soname_spec='${libname}${release}${shared_ext}$major'
7924 fi
7925 shlibpath_var=LIBPATH
7926 fi
7927 ;;
7928
7929 amigaos*)
7930 library_names_spec='$libname.ixlibrary $libname.a'
7931 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7932 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'
7933 ;;
7934
7935 beos*)
7936 library_names_spec='${libname}${shared_ext}'
7937 dynamic_linker="$host_os ld.so"
7938 shlibpath_var=LIBRARY_PATH
7939 ;;
7940
7941 bsdi[45]*)
7942 version_type=linux
7943 need_version=no
7944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7945 soname_spec='${libname}${release}${shared_ext}$major'
7946 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7947 shlibpath_var=LD_LIBRARY_PATH
7948 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7949 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7950 # the default ld.so.conf also contains /usr/contrib/lib and
7951 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7952 # libtool to hard-code these into programs
7953 ;;
7954
7955 cygwin* | mingw* | pw32*)
7956 version_type=windows
7957 shrext_cmds=".dll"
7958 need_version=no
7959 need_lib_prefix=no
7960
7961 case $GCC,$host_os in
7962 yes,cygwin* | yes,mingw* | yes,pw32*)
7963 library_names_spec='$libname.dll.a'
7964 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7965 postinstall_cmds='base_file=`basename \${file}`~
7966 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7967 dldir=$destdir/`dirname \$dlpath`~
7968 test -d \$dldir || mkdir -p \$dldir~
7969 $install_prog $dir/$dlname \$dldir/$dlname~
7970 chmod a+x \$dldir/$dlname'
7971 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7972 dlpath=$dir/\$dldll~
7973 $rm \$dlpath'
7974 shlibpath_overrides_runpath=yes
7975
7976 case $host_os in
7977 cygwin*)
7978 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7979 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7980 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7981 ;;
7982 mingw*)
7983 # MinGW DLLs use traditional 'lib' prefix
7984 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7985 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7986 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7987 # It is most probably a Windows format PATH printed by
7988 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7989 # path with ; separators, and with drive letters. We can handle the
7990 # drive letters (cygwin fileutils understands them), so leave them,
7991 # especially as we might pass files found there to a mingw objdump,
7992 # which wouldn't understand a cygwinified path. Ahh.
7993 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7994 else
7995 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7996 fi
7997 ;;
7998 pw32*)
7999 # pw32 DLLs use 'pw' prefix rather than 'lib'
8000 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8001 ;;
8002 esac
8003 ;;
8004
8005 *)
8006 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8007 ;;
8008 esac
8009 dynamic_linker='Win32 ld.exe'
8010 # FIXME: first we should search . and the directory the executable is in
8011 shlibpath_var=PATH
8012 ;;
8013
8014 darwin* | rhapsody*)
8015 dynamic_linker="$host_os dyld"
8016 version_type=darwin
8017 need_lib_prefix=no
8018 need_version=no
8019 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8020 soname_spec='${libname}${release}${major}$shared_ext'
8021 shlibpath_overrides_runpath=yes
8022 shlibpath_var=DYLD_LIBRARY_PATH
8023 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8024 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8025 if test "$GCC" = yes; then
8026 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8027 else
8028 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8029 fi
8030 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8031 ;;
8032
8033 dgux*)
8034 version_type=linux
8035 need_lib_prefix=no
8036 need_version=no
8037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8038 soname_spec='${libname}${release}${shared_ext}$major'
8039 shlibpath_var=LD_LIBRARY_PATH
8040 ;;
8041
8042 freebsd1*)
8043 dynamic_linker=no
8044 ;;
8045
8046 kfreebsd*-gnu)
8047 version_type=linux
8048 need_lib_prefix=no
8049 need_version=no
8050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8051 soname_spec='${libname}${release}${shared_ext}$major'
8052 shlibpath_var=LD_LIBRARY_PATH
8053 shlibpath_overrides_runpath=no
8054 hardcode_into_libs=yes
8055 dynamic_linker='GNU ld.so'
8056 ;;
8057
8058 freebsd* | dragonfly*)
8059 # DragonFly does not have aout. When/if they implement a new
8060 # versioning mechanism, adjust this.
8061 if test -x /usr/bin/objformat; then
8062 objformat=`/usr/bin/objformat`
8063 else
8064 case $host_os in
8065 freebsd[123]*) objformat=aout ;;
8066 *) objformat=elf ;;
8067 esac
8068 fi
8069 version_type=freebsd-$objformat
8070 case $version_type in
8071 freebsd-elf*)
8072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8073 need_version=no
8074 need_lib_prefix=no
8075 ;;
8076 freebsd-*)
8077 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8078 need_version=yes
8079 ;;
8080 esac
8081 shlibpath_var=LD_LIBRARY_PATH
8082 case $host_os in
8083 freebsd2*)
8084 shlibpath_overrides_runpath=yes
8085 ;;
8086 freebsd3.[01]* | freebsdelf3.[01]*)
8087 shlibpath_overrides_runpath=yes
8088 hardcode_into_libs=yes
8089 ;;
8090 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8091 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8092 shlibpath_overrides_runpath=no
8093 hardcode_into_libs=yes
8094 ;;
8095 freebsd*) # from 4.6 on
8096 shlibpath_overrides_runpath=yes
8097 hardcode_into_libs=yes
8098 ;;
8099 esac
8100 ;;
8101
8102 gnu*)
8103 version_type=linux
8104 need_lib_prefix=no
8105 need_version=no
8106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8107 soname_spec='${libname}${release}${shared_ext}$major'
8108 shlibpath_var=LD_LIBRARY_PATH
8109 hardcode_into_libs=yes
8110 ;;
8111
8112 hpux9* | hpux10* | hpux11*)
8113 # Give a soname corresponding to the major version so that dld.sl refuses to
8114 # link against other versions.
8115 version_type=sunos
8116 need_lib_prefix=no
8117 need_version=no
8118 case $host_cpu in
8119 ia64*)
8120 shrext_cmds='.so'
8121 hardcode_into_libs=yes
8122 dynamic_linker="$host_os dld.so"
8123 shlibpath_var=LD_LIBRARY_PATH
8124 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8126 soname_spec='${libname}${release}${shared_ext}$major'
8127 if test "X$HPUX_IA64_MODE" = X32; then
8128 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8129 else
8130 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8131 fi
8132 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8133 ;;
8134 hppa*64*)
8135 shrext_cmds='.sl'
8136 hardcode_into_libs=yes
8137 dynamic_linker="$host_os dld.sl"
8138 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8139 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8141 soname_spec='${libname}${release}${shared_ext}$major'
8142 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8143 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8144 ;;
8145 *)
8146 shrext_cmds='.sl'
8147 dynamic_linker="$host_os dld.sl"
8148 shlibpath_var=SHLIB_PATH
8149 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8151 soname_spec='${libname}${release}${shared_ext}$major'
8152 ;;
8153 esac
8154 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8155 postinstall_cmds='chmod 555 $lib'
8156 ;;
8157
8158 interix3*)
8159 version_type=linux
8160 need_lib_prefix=no
8161 need_version=no
8162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8163 soname_spec='${libname}${release}${shared_ext}$major'
8164 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8165 shlibpath_var=LD_LIBRARY_PATH
8166 shlibpath_overrides_runpath=no
8167 hardcode_into_libs=yes
8168 ;;
8169
8170 irix5* | irix6* | nonstopux*)
8171 case $host_os in
8172 nonstopux*) version_type=nonstopux ;;
8173 *)
8174 if test "$lt_cv_prog_gnu_ld" = yes; then
8175 version_type=linux
8176 else
8177 version_type=irix
8178 fi ;;
8179 esac
8180 need_lib_prefix=no
8181 need_version=no
8182 soname_spec='${libname}${release}${shared_ext}$major'
8183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8184 case $host_os in
8185 irix5* | nonstopux*)
8186 libsuff= shlibsuff=
8187 ;;
8188 *)
8189 case $LD in # libtool.m4 will add one of these switches to LD
8190 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8191 libsuff= shlibsuff= libmagic=32-bit;;
8192 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8193 libsuff=32 shlibsuff=N32 libmagic=N32;;
8194 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8195 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8196 *) libsuff= shlibsuff= libmagic=never-match;;
8197 esac
8198 ;;
8199 esac
8200 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8201 shlibpath_overrides_runpath=no
8202 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8203 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8204 hardcode_into_libs=yes
8205 ;;
8206
8207 # No shared lib support for Linux oldld, aout, or coff.
8208 linux*oldld* | linux*aout* | linux*coff*)
8209 dynamic_linker=no
8210 ;;
8211
8212 # This must be Linux ELF.
8213 linux*)
8214 version_type=linux
8215 need_lib_prefix=no
8216 need_version=no
8217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8218 soname_spec='${libname}${release}${shared_ext}$major'
8219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8220 shlibpath_var=LD_LIBRARY_PATH
8221 shlibpath_overrides_runpath=no
8222 # This implies no fast_install, which is unacceptable.
8223 # Some rework will be needed to allow for fast_install
8224 # before this can be enabled.
8225 hardcode_into_libs=yes
8226
8227 # find out which ABI we are using
8228 libsuff=
8229 case "$host_cpu" in
8230 x86_64*|s390x*|powerpc64*)
8231 echo '#line 8231 "configure"' > conftest.$ac_ext
8232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8233 (eval $ac_compile) 2>&5
8234 ac_status=$?
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; then
8237 case `/usr/bin/file conftest.$ac_objext` in
8238 *64-bit*)
8239 libsuff=64
8240 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8241 ;;
8242 esac
8243 fi
8244 rm -rf conftest*
8245 ;;
8246 esac
8247
8248 # Append ld.so.conf contents to the search path
8249 if test -f /etc/ld.so.conf; then
8250 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8251 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8252 fi
8253
8254 # We used to test for /lib/ld.so.1 and disable shared libraries on
8255 # powerpc, because MkLinux only supported shared libraries with the
8256 # GNU dynamic linker. Since this was broken with cross compilers,
8257 # most powerpc-linux boxes support dynamic linking these days and
8258 # people can always --disable-shared, the test was removed, and we
8259 # assume the GNU/Linux dynamic linker is in use.
8260 dynamic_linker='GNU/Linux ld.so'
8261 ;;
8262
8263 knetbsd*-gnu)
8264 version_type=linux
8265 need_lib_prefix=no
8266 need_version=no
8267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8268 soname_spec='${libname}${release}${shared_ext}$major'
8269 shlibpath_var=LD_LIBRARY_PATH
8270 shlibpath_overrides_runpath=no
8271 hardcode_into_libs=yes
8272 dynamic_linker='GNU ld.so'
8273 ;;
8274
8275 netbsd*)
8276 version_type=sunos
8277 need_lib_prefix=no
8278 need_version=no
8279 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8281 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8282 dynamic_linker='NetBSD (a.out) ld.so'
8283 else
8284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8285 soname_spec='${libname}${release}${shared_ext}$major'
8286 dynamic_linker='NetBSD ld.elf_so'
8287 fi
8288 shlibpath_var=LD_LIBRARY_PATH
8289 shlibpath_overrides_runpath=yes
8290 hardcode_into_libs=yes
8291 ;;
8292
8293 newsos6)
8294 version_type=linux
8295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8296 shlibpath_var=LD_LIBRARY_PATH
8297 shlibpath_overrides_runpath=yes
8298 ;;
8299
8300 nto-qnx*)
8301 version_type=linux
8302 need_lib_prefix=no
8303 need_version=no
8304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8305 soname_spec='${libname}${release}${shared_ext}$major'
8306 shlibpath_var=LD_LIBRARY_PATH
8307 shlibpath_overrides_runpath=yes
8308 ;;
8309
8310 openbsd*)
8311 version_type=sunos
8312 sys_lib_dlsearch_path_spec="/usr/lib"
8313 need_lib_prefix=no
8314 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8315 case $host_os in
8316 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8317 *) need_version=no ;;
8318 esac
8319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8320 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8321 shlibpath_var=LD_LIBRARY_PATH
8322 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8323 case $host_os in
8324 openbsd2.[89] | openbsd2.[89].*)
8325 shlibpath_overrides_runpath=no
8326 ;;
8327 *)
8328 shlibpath_overrides_runpath=yes
8329 ;;
8330 esac
8331 else
8332 shlibpath_overrides_runpath=yes
8333 fi
8334 ;;
8335
8336 os2*)
8337 libname_spec='$name'
8338 shrext_cmds=".dll"
8339 need_lib_prefix=no
8340 library_names_spec='$libname${shared_ext} $libname.a'
8341 dynamic_linker='OS/2 ld.exe'
8342 shlibpath_var=LIBPATH
8343 ;;
8344
8345 osf3* | osf4* | osf5*)
8346 version_type=osf
8347 need_lib_prefix=no
8348 need_version=no
8349 soname_spec='${libname}${release}${shared_ext}$major'
8350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8351 shlibpath_var=LD_LIBRARY_PATH
8352 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8353 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8354 ;;
8355
8356 solaris*)
8357 version_type=linux
8358 need_lib_prefix=no
8359 need_version=no
8360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8361 soname_spec='${libname}${release}${shared_ext}$major'
8362 shlibpath_var=LD_LIBRARY_PATH
8363 shlibpath_overrides_runpath=yes
8364 hardcode_into_libs=yes
8365 # ldd complains unless libraries are executable
8366 postinstall_cmds='chmod +x $lib'
8367 ;;
8368
8369 sunos4*)
8370 version_type=sunos
8371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8372 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8373 shlibpath_var=LD_LIBRARY_PATH
8374 shlibpath_overrides_runpath=yes
8375 if test "$with_gnu_ld" = yes; then
8376 need_lib_prefix=no
8377 fi
8378 need_version=yes
8379 ;;
8380
8381 sysv4 | sysv4.3*)
8382 version_type=linux
8383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8384 soname_spec='${libname}${release}${shared_ext}$major'
8385 shlibpath_var=LD_LIBRARY_PATH
8386 case $host_vendor in
8387 sni)
8388 shlibpath_overrides_runpath=no
8389 need_lib_prefix=no
8390 export_dynamic_flag_spec='${wl}-Blargedynsym'
8391 runpath_var=LD_RUN_PATH
8392 ;;
8393 siemens)
8394 need_lib_prefix=no
8395 ;;
8396 motorola)
8397 need_lib_prefix=no
8398 need_version=no
8399 shlibpath_overrides_runpath=no
8400 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8401 ;;
8402 esac
8403 ;;
8404
8405 sysv4*MP*)
8406 if test -d /usr/nec ;then
8407 version_type=linux
8408 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8409 soname_spec='$libname${shared_ext}.$major'
8410 shlibpath_var=LD_LIBRARY_PATH
8411 fi
8412 ;;
8413
8414 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8415 version_type=freebsd-elf
8416 need_lib_prefix=no
8417 need_version=no
8418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8419 soname_spec='${libname}${release}${shared_ext}$major'
8420 shlibpath_var=LD_LIBRARY_PATH
8421 hardcode_into_libs=yes
8422 if test "$with_gnu_ld" = yes; then
8423 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8424 shlibpath_overrides_runpath=no
8425 else
8426 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8427 shlibpath_overrides_runpath=yes
8428 case $host_os in
8429 sco3.2v5*)
8430 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8431 ;;
8432 esac
8433 fi
8434 sys_lib_dlsearch_path_spec='/usr/lib'
8435 ;;
8436
8437 uts4*)
8438 version_type=linux
8439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8440 soname_spec='${libname}${release}${shared_ext}$major'
8441 shlibpath_var=LD_LIBRARY_PATH
8442 ;;
8443
8444 *)
8445 dynamic_linker=no
8446 ;;
8447 esac
8448 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8449 echo "${ECHO_T}$dynamic_linker" >&6
8450 test "$dynamic_linker" = no && can_build_shared=no
8451
8452 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8453 if test "$GCC" = yes; then
8454 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8455 fi
8456
8457 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8458 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8459 hardcode_action=
8460 if test -n "$hardcode_libdir_flag_spec" || \
8461 test -n "$runpath_var" || \
8462 test "X$hardcode_automatic" = "Xyes" ; then
8463
8464 # We can hardcode non-existant directories.
8465 if test "$hardcode_direct" != no &&
8466 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8467 # have to relink, otherwise we might link with an installed library
8468 # when we should be linking with a yet-to-be-installed one
8469 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8470 test "$hardcode_minus_L" != no; then
8471 # Linking always hardcodes the temporary library directory.
8472 hardcode_action=relink
8473 else
8474 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8475 hardcode_action=immediate
8476 fi
8477 else
8478 # We cannot hardcode anything, or else we can only hardcode existing
8479 # directories.
8480 hardcode_action=unsupported
8481 fi
8482 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8483 echo "${ECHO_T}$hardcode_action" >&6
8484
8485 if test "$hardcode_action" = relink; then
8486 # Fast installation is not supported
8487 enable_fast_install=no
8488 elif test "$shlibpath_overrides_runpath" = yes ||
8489 test "$enable_shared" = no; then
8490 # Fast installation is not necessary
8491 enable_fast_install=needless
8492 fi
8493
8494 striplib=
8495 old_striplib=
8496 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8497 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8498 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8499 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8500 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8501 echo "$as_me:$LINENO: result: yes" >&5
8502 echo "${ECHO_T}yes" >&6
8503 else
8504 # FIXME - insert some real tests, host_os isn't really good enough
8505 case $host_os in
8506 darwin*)
8507 if test -n "$STRIP" ; then
8508 striplib="$STRIP -x"
8509 echo "$as_me:$LINENO: result: yes" >&5
8510 echo "${ECHO_T}yes" >&6
8511 else
8512 echo "$as_me:$LINENO: result: no" >&5
8513 echo "${ECHO_T}no" >&6
8514 fi
8515 ;;
8516 *)
8517 echo "$as_me:$LINENO: result: no" >&5
8518 echo "${ECHO_T}no" >&6
8519 ;;
8520 esac
8521 fi
8522
8523 if test "x$enable_dlopen" != xyes; then
8524 enable_dlopen=unknown
8525 enable_dlopen_self=unknown
8526 enable_dlopen_self_static=unknown
8527 else
8528 lt_cv_dlopen=no
8529 lt_cv_dlopen_libs=
8530
8531 case $host_os in
8532 beos*)
8533 lt_cv_dlopen="load_add_on"
8534 lt_cv_dlopen_libs=
8535 lt_cv_dlopen_self=yes
8536 ;;
8537
8538 mingw* | pw32*)
8539 lt_cv_dlopen="LoadLibrary"
8540 lt_cv_dlopen_libs=
8541 ;;
8542
8543 cygwin*)
8544 lt_cv_dlopen="dlopen"
8545 lt_cv_dlopen_libs=
8546 ;;
8547
8548 darwin*)
8549 # if libdl is installed we need to link against it
8550 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8551 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8552 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8553 echo $ECHO_N "(cached) $ECHO_C" >&6
8554 else
8555 ac_check_lib_save_LIBS=$LIBS
8556 LIBS="-ldl $LIBS"
8557 cat >conftest.$ac_ext <<_ACEOF
8558 /* confdefs.h. */
8559 _ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h. */
8563
8564 /* Override any gcc2 internal prototype to avoid an error. */
8565 #ifdef __cplusplus
8566 extern "C"
8567 #endif
8568 /* We use char because int might match the return type of a gcc2
8569 builtin and then its argument prototype would still apply. */
8570 char dlopen ();
8571 int
8572 main ()
8573 {
8574 dlopen ();
8575 ;
8576 return 0;
8577 }
8578 _ACEOF
8579 rm -f conftest.$ac_objext conftest$ac_exeext
8580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8581 (eval $ac_link) 2>conftest.er1
8582 ac_status=$?
8583 grep -v '^ *+' conftest.er1 >conftest.err
8584 rm -f conftest.er1
8585 cat conftest.err >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } &&
8588 { ac_try='test -z "$ac_c_werror_flag"
8589 || test ! -s conftest.err'
8590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591 (eval $ac_try) 2>&5
8592 ac_status=$?
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); }; } &&
8595 { ac_try='test -s conftest$ac_exeext'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 (eval $ac_try) 2>&5
8598 ac_status=$?
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; }; then
8601 ac_cv_lib_dl_dlopen=yes
8602 else
8603 echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8605
8606 ac_cv_lib_dl_dlopen=no
8607 fi
8608 rm -f conftest.err conftest.$ac_objext \
8609 conftest$ac_exeext conftest.$ac_ext
8610 LIBS=$ac_check_lib_save_LIBS
8611 fi
8612 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8613 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8614 if test $ac_cv_lib_dl_dlopen = yes; then
8615 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8616 else
8617
8618 lt_cv_dlopen="dyld"
8619 lt_cv_dlopen_libs=
8620 lt_cv_dlopen_self=yes
8621
8622 fi
8623
8624 ;;
8625
8626 *)
8627 echo "$as_me:$LINENO: checking for shl_load" >&5
8628 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8629 if test "${ac_cv_func_shl_load+set}" = set; then
8630 echo $ECHO_N "(cached) $ECHO_C" >&6
8631 else
8632 cat >conftest.$ac_ext <<_ACEOF
8633 /* confdefs.h. */
8634 _ACEOF
8635 cat confdefs.h >>conftest.$ac_ext
8636 cat >>conftest.$ac_ext <<_ACEOF
8637 /* end confdefs.h. */
8638 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8640 #define shl_load innocuous_shl_load
8641
8642 /* System header to define __stub macros and hopefully few prototypes,
8643 which can conflict with char shl_load (); below.
8644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8645 <limits.h> exists even on freestanding compilers. */
8646
8647 #ifdef __STDC__
8648 # include <limits.h>
8649 #else
8650 # include <assert.h>
8651 #endif
8652
8653 #undef shl_load
8654
8655 /* Override any gcc2 internal prototype to avoid an error. */
8656 #ifdef __cplusplus
8657 extern "C"
8658 {
8659 #endif
8660 /* We use char because int might match the return type of a gcc2
8661 builtin and then its argument prototype would still apply. */
8662 char shl_load ();
8663 /* The GNU C library defines this for functions which it implements
8664 to always fail with ENOSYS. Some functions are actually named
8665 something starting with __ and the normal name is an alias. */
8666 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8667 choke me
8668 #else
8669 char (*f) () = shl_load;
8670 #endif
8671 #ifdef __cplusplus
8672 }
8673 #endif
8674
8675 int
8676 main ()
8677 {
8678 return f != shl_load;
8679 ;
8680 return 0;
8681 }
8682 _ACEOF
8683 rm -f conftest.$ac_objext conftest$ac_exeext
8684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8685 (eval $ac_link) 2>conftest.er1
8686 ac_status=$?
8687 grep -v '^ *+' conftest.er1 >conftest.err
8688 rm -f conftest.er1
8689 cat conftest.err >&5
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); } &&
8692 { ac_try='test -z "$ac_c_werror_flag"
8693 || test ! -s conftest.err'
8694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8695 (eval $ac_try) 2>&5
8696 ac_status=$?
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); }; } &&
8699 { ac_try='test -s conftest$ac_exeext'
8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8701 (eval $ac_try) 2>&5
8702 ac_status=$?
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; }; then
8705 ac_cv_func_shl_load=yes
8706 else
8707 echo "$as_me: failed program was:" >&5
8708 sed 's/^/| /' conftest.$ac_ext >&5
8709
8710 ac_cv_func_shl_load=no
8711 fi
8712 rm -f conftest.err conftest.$ac_objext \
8713 conftest$ac_exeext conftest.$ac_ext
8714 fi
8715 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8716 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8717 if test $ac_cv_func_shl_load = yes; then
8718 lt_cv_dlopen="shl_load"
8719 else
8720 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8721 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8722 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8723 echo $ECHO_N "(cached) $ECHO_C" >&6
8724 else
8725 ac_check_lib_save_LIBS=$LIBS
8726 LIBS="-ldld $LIBS"
8727 cat >conftest.$ac_ext <<_ACEOF
8728 /* confdefs.h. */
8729 _ACEOF
8730 cat confdefs.h >>conftest.$ac_ext
8731 cat >>conftest.$ac_ext <<_ACEOF
8732 /* end confdefs.h. */
8733
8734 /* Override any gcc2 internal prototype to avoid an error. */
8735 #ifdef __cplusplus
8736 extern "C"
8737 #endif
8738 /* We use char because int might match the return type of a gcc2
8739 builtin and then its argument prototype would still apply. */
8740 char shl_load ();
8741 int
8742 main ()
8743 {
8744 shl_load ();
8745 ;
8746 return 0;
8747 }
8748 _ACEOF
8749 rm -f conftest.$ac_objext conftest$ac_exeext
8750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8751 (eval $ac_link) 2>conftest.er1
8752 ac_status=$?
8753 grep -v '^ *+' conftest.er1 >conftest.err
8754 rm -f conftest.er1
8755 cat conftest.err >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); } &&
8758 { ac_try='test -z "$ac_c_werror_flag"
8759 || test ! -s conftest.err'
8760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8761 (eval $ac_try) 2>&5
8762 ac_status=$?
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); }; } &&
8765 { ac_try='test -s conftest$ac_exeext'
8766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8767 (eval $ac_try) 2>&5
8768 ac_status=$?
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); }; }; then
8771 ac_cv_lib_dld_shl_load=yes
8772 else
8773 echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8775
8776 ac_cv_lib_dld_shl_load=no
8777 fi
8778 rm -f conftest.err conftest.$ac_objext \
8779 conftest$ac_exeext conftest.$ac_ext
8780 LIBS=$ac_check_lib_save_LIBS
8781 fi
8782 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8783 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8784 if test $ac_cv_lib_dld_shl_load = yes; then
8785 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8786 else
8787 echo "$as_me:$LINENO: checking for dlopen" >&5
8788 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8789 if test "${ac_cv_func_dlopen+set}" = set; then
8790 echo $ECHO_N "(cached) $ECHO_C" >&6
8791 else
8792 cat >conftest.$ac_ext <<_ACEOF
8793 /* confdefs.h. */
8794 _ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h. */
8798 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8800 #define dlopen innocuous_dlopen
8801
8802 /* System header to define __stub macros and hopefully few prototypes,
8803 which can conflict with char dlopen (); below.
8804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8805 <limits.h> exists even on freestanding compilers. */
8806
8807 #ifdef __STDC__
8808 # include <limits.h>
8809 #else
8810 # include <assert.h>
8811 #endif
8812
8813 #undef dlopen
8814
8815 /* Override any gcc2 internal prototype to avoid an error. */
8816 #ifdef __cplusplus
8817 extern "C"
8818 {
8819 #endif
8820 /* We use char because int might match the return type of a gcc2
8821 builtin and then its argument prototype would still apply. */
8822 char dlopen ();
8823 /* The GNU C library defines this for functions which it implements
8824 to always fail with ENOSYS. Some functions are actually named
8825 something starting with __ and the normal name is an alias. */
8826 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8827 choke me
8828 #else
8829 char (*f) () = dlopen;
8830 #endif
8831 #ifdef __cplusplus
8832 }
8833 #endif
8834
8835 int
8836 main ()
8837 {
8838 return f != dlopen;
8839 ;
8840 return 0;
8841 }
8842 _ACEOF
8843 rm -f conftest.$ac_objext conftest$ac_exeext
8844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8845 (eval $ac_link) 2>conftest.er1
8846 ac_status=$?
8847 grep -v '^ *+' conftest.er1 >conftest.err
8848 rm -f conftest.er1
8849 cat conftest.err >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); } &&
8852 { ac_try='test -z "$ac_c_werror_flag"
8853 || test ! -s conftest.err'
8854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855 (eval $ac_try) 2>&5
8856 ac_status=$?
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; } &&
8859 { ac_try='test -s conftest$ac_exeext'
8860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861 (eval $ac_try) 2>&5
8862 ac_status=$?
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); }; }; then
8865 ac_cv_func_dlopen=yes
8866 else
8867 echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.$ac_ext >&5
8869
8870 ac_cv_func_dlopen=no
8871 fi
8872 rm -f conftest.err conftest.$ac_objext \
8873 conftest$ac_exeext conftest.$ac_ext
8874 fi
8875 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8876 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8877 if test $ac_cv_func_dlopen = yes; then
8878 lt_cv_dlopen="dlopen"
8879 else
8880 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8881 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8882 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8883 echo $ECHO_N "(cached) $ECHO_C" >&6
8884 else
8885 ac_check_lib_save_LIBS=$LIBS
8886 LIBS="-ldl $LIBS"
8887 cat >conftest.$ac_ext <<_ACEOF
8888 /* confdefs.h. */
8889 _ACEOF
8890 cat confdefs.h >>conftest.$ac_ext
8891 cat >>conftest.$ac_ext <<_ACEOF
8892 /* end confdefs.h. */
8893
8894 /* Override any gcc2 internal prototype to avoid an error. */
8895 #ifdef __cplusplus
8896 extern "C"
8897 #endif
8898 /* We use char because int might match the return type of a gcc2
8899 builtin and then its argument prototype would still apply. */
8900 char dlopen ();
8901 int
8902 main ()
8903 {
8904 dlopen ();
8905 ;
8906 return 0;
8907 }
8908 _ACEOF
8909 rm -f conftest.$ac_objext conftest$ac_exeext
8910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8911 (eval $ac_link) 2>conftest.er1
8912 ac_status=$?
8913 grep -v '^ *+' conftest.er1 >conftest.err
8914 rm -f conftest.er1
8915 cat conftest.err >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); } &&
8918 { ac_try='test -z "$ac_c_werror_flag"
8919 || test ! -s conftest.err'
8920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8921 (eval $ac_try) 2>&5
8922 ac_status=$?
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); }; } &&
8925 { ac_try='test -s conftest$ac_exeext'
8926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8927 (eval $ac_try) 2>&5
8928 ac_status=$?
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); }; }; then
8931 ac_cv_lib_dl_dlopen=yes
8932 else
8933 echo "$as_me: failed program was:" >&5
8934 sed 's/^/| /' conftest.$ac_ext >&5
8935
8936 ac_cv_lib_dl_dlopen=no
8937 fi
8938 rm -f conftest.err conftest.$ac_objext \
8939 conftest$ac_exeext conftest.$ac_ext
8940 LIBS=$ac_check_lib_save_LIBS
8941 fi
8942 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8943 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8944 if test $ac_cv_lib_dl_dlopen = yes; then
8945 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8946 else
8947 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8948 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8949 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8950 echo $ECHO_N "(cached) $ECHO_C" >&6
8951 else
8952 ac_check_lib_save_LIBS=$LIBS
8953 LIBS="-lsvld $LIBS"
8954 cat >conftest.$ac_ext <<_ACEOF
8955 /* confdefs.h. */
8956 _ACEOF
8957 cat confdefs.h >>conftest.$ac_ext
8958 cat >>conftest.$ac_ext <<_ACEOF
8959 /* end confdefs.h. */
8960
8961 /* Override any gcc2 internal prototype to avoid an error. */
8962 #ifdef __cplusplus
8963 extern "C"
8964 #endif
8965 /* We use char because int might match the return type of a gcc2
8966 builtin and then its argument prototype would still apply. */
8967 char dlopen ();
8968 int
8969 main ()
8970 {
8971 dlopen ();
8972 ;
8973 return 0;
8974 }
8975 _ACEOF
8976 rm -f conftest.$ac_objext conftest$ac_exeext
8977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8978 (eval $ac_link) 2>conftest.er1
8979 ac_status=$?
8980 grep -v '^ *+' conftest.er1 >conftest.err
8981 rm -f conftest.er1
8982 cat conftest.err >&5
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); } &&
8985 { ac_try='test -z "$ac_c_werror_flag"
8986 || test ! -s conftest.err'
8987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988 (eval $ac_try) 2>&5
8989 ac_status=$?
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; } &&
8992 { ac_try='test -s conftest$ac_exeext'
8993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994 (eval $ac_try) 2>&5
8995 ac_status=$?
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); }; }; then
8998 ac_cv_lib_svld_dlopen=yes
8999 else
9000 echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.$ac_ext >&5
9002
9003 ac_cv_lib_svld_dlopen=no
9004 fi
9005 rm -f conftest.err conftest.$ac_objext \
9006 conftest$ac_exeext conftest.$ac_ext
9007 LIBS=$ac_check_lib_save_LIBS
9008 fi
9009 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9010 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9011 if test $ac_cv_lib_svld_dlopen = yes; then
9012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9013 else
9014 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9015 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9016 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9018 else
9019 ac_check_lib_save_LIBS=$LIBS
9020 LIBS="-ldld $LIBS"
9021 cat >conftest.$ac_ext <<_ACEOF
9022 /* confdefs.h. */
9023 _ACEOF
9024 cat confdefs.h >>conftest.$ac_ext
9025 cat >>conftest.$ac_ext <<_ACEOF
9026 /* end confdefs.h. */
9027
9028 /* Override any gcc2 internal prototype to avoid an error. */
9029 #ifdef __cplusplus
9030 extern "C"
9031 #endif
9032 /* We use char because int might match the return type of a gcc2
9033 builtin and then its argument prototype would still apply. */
9034 char dld_link ();
9035 int
9036 main ()
9037 {
9038 dld_link ();
9039 ;
9040 return 0;
9041 }
9042 _ACEOF
9043 rm -f conftest.$ac_objext conftest$ac_exeext
9044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9045 (eval $ac_link) 2>conftest.er1
9046 ac_status=$?
9047 grep -v '^ *+' conftest.er1 >conftest.err
9048 rm -f conftest.er1
9049 cat conftest.err >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } &&
9052 { ac_try='test -z "$ac_c_werror_flag"
9053 || test ! -s conftest.err'
9054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9055 (eval $ac_try) 2>&5
9056 ac_status=$?
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); }; } &&
9059 { ac_try='test -s conftest$ac_exeext'
9060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9061 (eval $ac_try) 2>&5
9062 ac_status=$?
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); }; }; then
9065 ac_cv_lib_dld_dld_link=yes
9066 else
9067 echo "$as_me: failed program was:" >&5
9068 sed 's/^/| /' conftest.$ac_ext >&5
9069
9070 ac_cv_lib_dld_dld_link=no
9071 fi
9072 rm -f conftest.err conftest.$ac_objext \
9073 conftest$ac_exeext conftest.$ac_ext
9074 LIBS=$ac_check_lib_save_LIBS
9075 fi
9076 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9077 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9078 if test $ac_cv_lib_dld_dld_link = yes; then
9079 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9080 fi
9081
9082
9083 fi
9084
9085
9086 fi
9087
9088
9089 fi
9090
9091
9092 fi
9093
9094
9095 fi
9096
9097 ;;
9098 esac
9099
9100 if test "x$lt_cv_dlopen" != xno; then
9101 enable_dlopen=yes
9102 else
9103 enable_dlopen=no
9104 fi
9105
9106 case $lt_cv_dlopen in
9107 dlopen)
9108 save_CPPFLAGS="$CPPFLAGS"
9109 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9110
9111 save_LDFLAGS="$LDFLAGS"
9112 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9113
9114 save_LIBS="$LIBS"
9115 LIBS="$lt_cv_dlopen_libs $LIBS"
9116
9117 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9118 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9119 if test "${lt_cv_dlopen_self+set}" = set; then
9120 echo $ECHO_N "(cached) $ECHO_C" >&6
9121 else
9122 if test "$cross_compiling" = yes; then :
9123 lt_cv_dlopen_self=cross
9124 else
9125 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9126 lt_status=$lt_dlunknown
9127 cat > conftest.$ac_ext <<EOF
9128 #line 9128 "configure"
9129 #include "confdefs.h"
9130
9131 #if HAVE_DLFCN_H
9132 #include <dlfcn.h>
9133 #endif
9134
9135 #include <stdio.h>
9136
9137 #ifdef RTLD_GLOBAL
9138 # define LT_DLGLOBAL RTLD_GLOBAL
9139 #else
9140 # ifdef DL_GLOBAL
9141 # define LT_DLGLOBAL DL_GLOBAL
9142 # else
9143 # define LT_DLGLOBAL 0
9144 # endif
9145 #endif
9146
9147 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9148 find out it does not work in some platform. */
9149 #ifndef LT_DLLAZY_OR_NOW
9150 # ifdef RTLD_LAZY
9151 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9152 # else
9153 # ifdef DL_LAZY
9154 # define LT_DLLAZY_OR_NOW DL_LAZY
9155 # else
9156 # ifdef RTLD_NOW
9157 # define LT_DLLAZY_OR_NOW RTLD_NOW
9158 # else
9159 # ifdef DL_NOW
9160 # define LT_DLLAZY_OR_NOW DL_NOW
9161 # else
9162 # define LT_DLLAZY_OR_NOW 0
9163 # endif
9164 # endif
9165 # endif
9166 # endif
9167 #endif
9168
9169 #ifdef __cplusplus
9170 extern "C" void exit (int);
9171 #endif
9172
9173 void fnord() { int i=42;}
9174 int main ()
9175 {
9176 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9177 int status = $lt_dlunknown;
9178
9179 if (self)
9180 {
9181 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9182 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9183 /* dlclose (self); */
9184 }
9185 else
9186 puts (dlerror ());
9187
9188 exit (status);
9189 }
9190 EOF
9191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9192 (eval $ac_link) 2>&5
9193 ac_status=$?
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9196 (./conftest; exit; ) >&5 2>/dev/null
9197 lt_status=$?
9198 case x$lt_status in
9199 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9200 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9201 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9202 esac
9203 else :
9204 # compilation failed
9205 lt_cv_dlopen_self=no
9206 fi
9207 fi
9208 rm -fr conftest*
9209
9210
9211 fi
9212 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9213 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9214
9215 if test "x$lt_cv_dlopen_self" = xyes; then
9216 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9217 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9218 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9219 if test "${lt_cv_dlopen_self_static+set}" = set; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9221 else
9222 if test "$cross_compiling" = yes; then :
9223 lt_cv_dlopen_self_static=cross
9224 else
9225 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9226 lt_status=$lt_dlunknown
9227 cat > conftest.$ac_ext <<EOF
9228 #line 9228 "configure"
9229 #include "confdefs.h"
9230
9231 #if HAVE_DLFCN_H
9232 #include <dlfcn.h>
9233 #endif
9234
9235 #include <stdio.h>
9236
9237 #ifdef RTLD_GLOBAL
9238 # define LT_DLGLOBAL RTLD_GLOBAL
9239 #else
9240 # ifdef DL_GLOBAL
9241 # define LT_DLGLOBAL DL_GLOBAL
9242 # else
9243 # define LT_DLGLOBAL 0
9244 # endif
9245 #endif
9246
9247 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9248 find out it does not work in some platform. */
9249 #ifndef LT_DLLAZY_OR_NOW
9250 # ifdef RTLD_LAZY
9251 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9252 # else
9253 # ifdef DL_LAZY
9254 # define LT_DLLAZY_OR_NOW DL_LAZY
9255 # else
9256 # ifdef RTLD_NOW
9257 # define LT_DLLAZY_OR_NOW RTLD_NOW
9258 # else
9259 # ifdef DL_NOW
9260 # define LT_DLLAZY_OR_NOW DL_NOW
9261 # else
9262 # define LT_DLLAZY_OR_NOW 0
9263 # endif
9264 # endif
9265 # endif
9266 # endif
9267 #endif
9268
9269 #ifdef __cplusplus
9270 extern "C" void exit (int);
9271 #endif
9272
9273 void fnord() { int i=42;}
9274 int main ()
9275 {
9276 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9277 int status = $lt_dlunknown;
9278
9279 if (self)
9280 {
9281 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9282 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9283 /* dlclose (self); */
9284 }
9285 else
9286 puts (dlerror ());
9287
9288 exit (status);
9289 }
9290 EOF
9291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9292 (eval $ac_link) 2>&5
9293 ac_status=$?
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9296 (./conftest; exit; ) >&5 2>/dev/null
9297 lt_status=$?
9298 case x$lt_status in
9299 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9300 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9301 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9302 esac
9303 else :
9304 # compilation failed
9305 lt_cv_dlopen_self_static=no
9306 fi
9307 fi
9308 rm -fr conftest*
9309
9310
9311 fi
9312 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9313 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9314 fi
9315
9316 CPPFLAGS="$save_CPPFLAGS"
9317 LDFLAGS="$save_LDFLAGS"
9318 LIBS="$save_LIBS"
9319 ;;
9320 esac
9321
9322 case $lt_cv_dlopen_self in
9323 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9324 *) enable_dlopen_self=unknown ;;
9325 esac
9326
9327 case $lt_cv_dlopen_self_static in
9328 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9329 *) enable_dlopen_self_static=unknown ;;
9330 esac
9331 fi
9332
9333
9334 # Report which library types will actually be built
9335 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9336 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9337 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9338 echo "${ECHO_T}$can_build_shared" >&6
9339
9340 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9341 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9342 test "$can_build_shared" = "no" && enable_shared=no
9343
9344 # On AIX, shared libraries and static libraries use the same namespace, and
9345 # are all built from PIC.
9346 case $host_os in
9347 aix3*)
9348 test "$enable_shared" = yes && enable_static=no
9349 if test -n "$RANLIB"; then
9350 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9351 postinstall_cmds='$RANLIB $lib'
9352 fi
9353 ;;
9354
9355 aix4* | aix5*)
9356 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9357 test "$enable_shared" = yes && enable_static=no
9358 fi
9359 ;;
9360 esac
9361 echo "$as_me:$LINENO: result: $enable_shared" >&5
9362 echo "${ECHO_T}$enable_shared" >&6
9363
9364 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9365 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9366 # Make sure either enable_shared or enable_static is yes.
9367 test "$enable_shared" = yes || enable_static=yes
9368 echo "$as_me:$LINENO: result: $enable_static" >&5
9369 echo "${ECHO_T}$enable_static" >&6
9370
9371 # The else clause should only fire when bootstrapping the
9372 # libtool distribution, otherwise you forgot to ship ltmain.sh
9373 # with your package, and you will get complaints that there are
9374 # no rules to generate ltmain.sh.
9375 if test -f "$ltmain"; then
9376 # See if we are running on zsh, and set the options which allow our commands through
9377 # without removal of \ escapes.
9378 if test -n "${ZSH_VERSION+set}" ; then
9379 setopt NO_GLOB_SUBST
9380 fi
9381 # Now quote all the things that may contain metacharacters while being
9382 # careful not to overquote the AC_SUBSTed values. We take copies of the
9383 # variables and quote the copies for generation of the libtool script.
9384 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9385 SED SHELL STRIP \
9386 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9387 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9388 deplibs_check_method reload_flag reload_cmds need_locks \
9389 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9390 lt_cv_sys_global_symbol_to_c_name_address \
9391 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9392 old_postinstall_cmds old_postuninstall_cmds \
9393 compiler \
9394 CC \
9395 LD \
9396 lt_prog_compiler_wl \
9397 lt_prog_compiler_pic \
9398 lt_prog_compiler_static \
9399 lt_prog_compiler_no_builtin_flag \
9400 export_dynamic_flag_spec \
9401 thread_safe_flag_spec \
9402 whole_archive_flag_spec \
9403 enable_shared_with_static_runtimes \
9404 old_archive_cmds \
9405 old_archive_from_new_cmds \
9406 predep_objects \
9407 postdep_objects \
9408 predeps \
9409 postdeps \
9410 compiler_lib_search_path \
9411 archive_cmds \
9412 archive_expsym_cmds \
9413 postinstall_cmds \
9414 postuninstall_cmds \
9415 old_archive_from_expsyms_cmds \
9416 allow_undefined_flag \
9417 no_undefined_flag \
9418 export_symbols_cmds \
9419 hardcode_libdir_flag_spec \
9420 hardcode_libdir_flag_spec_ld \
9421 hardcode_libdir_separator \
9422 hardcode_automatic \
9423 module_cmds \
9424 module_expsym_cmds \
9425 lt_cv_prog_compiler_c_o \
9426 exclude_expsyms \
9427 include_expsyms; do
9428
9429 case $var in
9430 old_archive_cmds | \
9431 old_archive_from_new_cmds | \
9432 archive_cmds | \
9433 archive_expsym_cmds | \
9434 module_cmds | \
9435 module_expsym_cmds | \
9436 old_archive_from_expsyms_cmds | \
9437 export_symbols_cmds | \
9438 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9439 postinstall_cmds | postuninstall_cmds | \
9440 old_postinstall_cmds | old_postuninstall_cmds | \
9441 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9442 # Double-quote double-evaled strings.
9443 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9444 ;;
9445 *)
9446 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9447 ;;
9448 esac
9449 done
9450
9451 case $lt_echo in
9452 *'\$0 --fallback-echo"')
9453 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9454 ;;
9455 esac
9456
9457 cfgfile="${ofile}T"
9458 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9459 $rm -f "$cfgfile"
9460 { echo "$as_me:$LINENO: creating $ofile" >&5
9461 echo "$as_me: creating $ofile" >&6;}
9462
9463 cat <<__EOF__ >> "$cfgfile"
9464 #! $SHELL
9465
9466 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9467 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9468 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9469 #
9470 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9471 # Free Software Foundation, Inc.
9472 #
9473 # This file is part of GNU Libtool:
9474 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
9475 #
9476 # This program is free software; you can redistribute it and/or modify
9477 # it under the terms of the GNU General Public License as published by
9478 # the Free Software Foundation; either version 2 of the License, or
9479 # (at your option) any later version.
9480 #
9481 # This program is distributed in the hope that it will be useful, but
9482 # WITHOUT ANY WARRANTY; without even the implied warranty of
9483 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9484 # General Public License for more details.
9485 #
9486 # You should have received a copy of the GNU General Public License
9487 # along with this program; if not, write to the Free Software
9488 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9489 #
9490 # As a special exception to the GNU General Public License, if you
9491 # distribute this file as part of a program that contains a
9492 # configuration script generated by Autoconf, you may include it under
9493 # the same distribution terms that you use for the rest of that program.
9494
9495 # A sed program that does not truncate output.
9496 SED=$lt_SED
9497
9498 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9499 Xsed="$SED -e 1s/^X//"
9500
9501 # The HP-UX ksh and POSIX shell print the target directory to stdout
9502 # if CDPATH is set.
9503 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9504
9505 # The names of the tagged configurations supported by this script.
9506 available_tags=
9507
9508 # ### BEGIN LIBTOOL CONFIG
9509
9510 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9511
9512 # Shell to use when invoking shell scripts.
9513 SHELL=$lt_SHELL
9514
9515 # Whether or not to build shared libraries.
9516 build_libtool_libs=$enable_shared
9517
9518 # Whether or not to build static libraries.
9519 build_old_libs=$enable_static
9520
9521 # Whether or not to add -lc for building shared libraries.
9522 build_libtool_need_lc=$archive_cmds_need_lc
9523
9524 # Whether or not to disallow shared libs when runtime libs are static
9525 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9526
9527 # Whether or not to optimize for fast installation.
9528 fast_install=$enable_fast_install
9529
9530 # The host system.
9531 host_alias=$host_alias
9532 host=$host
9533 host_os=$host_os
9534
9535 # The build system.
9536 build_alias=$build_alias
9537 build=$build
9538 build_os=$build_os
9539
9540 # An echo program that does not interpret backslashes.
9541 echo=$lt_echo
9542
9543 # The archiver.
9544 AR=$lt_AR
9545 AR_FLAGS=$lt_AR_FLAGS
9546
9547 # A C compiler.
9548 LTCC=$lt_LTCC
9549
9550 # LTCC compiler flags.
9551 LTCFLAGS=$lt_LTCFLAGS
9552
9553 # A language-specific compiler.
9554 CC=$lt_compiler
9555
9556 # Is the compiler the GNU C compiler?
9557 with_gcc=$GCC
9558
9559 # An ERE matcher.
9560 EGREP=$lt_EGREP
9561
9562 # The linker used to build libraries.
9563 LD=$lt_LD
9564
9565 # Whether we need hard or soft links.
9566 LN_S=$lt_LN_S
9567
9568 # A BSD-compatible nm program.
9569 NM=$lt_NM
9570
9571 # A symbol stripping program
9572 STRIP=$lt_STRIP
9573
9574 # Used to examine libraries when file_magic_cmd begins "file"
9575 MAGIC_CMD=$MAGIC_CMD
9576
9577 # Used on cygwin: DLL creation program.
9578 DLLTOOL="$DLLTOOL"
9579
9580 # Used on cygwin: object dumper.
9581 OBJDUMP="$OBJDUMP"
9582
9583 # Used on cygwin: assembler.
9584 AS="$AS"
9585
9586 # The name of the directory that contains temporary libtool files.
9587 objdir=$objdir
9588
9589 # How to create reloadable object files.
9590 reload_flag=$lt_reload_flag
9591 reload_cmds=$lt_reload_cmds
9592
9593 # How to pass a linker flag through the compiler.
9594 wl=$lt_lt_prog_compiler_wl
9595
9596 # Object file suffix (normally "o").
9597 objext="$ac_objext"
9598
9599 # Old archive suffix (normally "a").
9600 libext="$libext"
9601
9602 # Shared library suffix (normally ".so").
9603 shrext_cmds='$shrext_cmds'
9604
9605 # Executable file suffix (normally "").
9606 exeext="$exeext"
9607
9608 # Additional compiler flags for building library objects.
9609 pic_flag=$lt_lt_prog_compiler_pic
9610 pic_mode=$pic_mode
9611
9612 # What is the maximum length of a command?
9613 max_cmd_len=$lt_cv_sys_max_cmd_len
9614
9615 # Does compiler simultaneously support -c and -o options?
9616 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9617
9618 # Must we lock files when doing compilation?
9619 need_locks=$lt_need_locks
9620
9621 # Do we need the lib prefix for modules?
9622 need_lib_prefix=$need_lib_prefix
9623
9624 # Do we need a version for libraries?
9625 need_version=$need_version
9626
9627 # Whether dlopen is supported.
9628 dlopen_support=$enable_dlopen
9629
9630 # Whether dlopen of programs is supported.
9631 dlopen_self=$enable_dlopen_self
9632
9633 # Whether dlopen of statically linked programs is supported.
9634 dlopen_self_static=$enable_dlopen_self_static
9635
9636 # Compiler flag to prevent dynamic linking.
9637 link_static_flag=$lt_lt_prog_compiler_static
9638
9639 # Compiler flag to turn off builtin functions.
9640 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9641
9642 # Compiler flag to allow reflexive dlopens.
9643 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9644
9645 # Compiler flag to generate shared objects directly from archives.
9646 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9647
9648 # Compiler flag to generate thread-safe objects.
9649 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9650
9651 # Library versioning type.
9652 version_type=$version_type
9653
9654 # Format of library name prefix.
9655 libname_spec=$lt_libname_spec
9656
9657 # List of archive names. First name is the real one, the rest are links.
9658 # The last name is the one that the linker finds with -lNAME.
9659 library_names_spec=$lt_library_names_spec
9660
9661 # The coded name of the library, if different from the real name.
9662 soname_spec=$lt_soname_spec
9663
9664 # Commands used to build and install an old-style archive.
9665 RANLIB=$lt_RANLIB
9666 old_archive_cmds=$lt_old_archive_cmds
9667 old_postinstall_cmds=$lt_old_postinstall_cmds
9668 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9669
9670 # Create an old-style archive from a shared archive.
9671 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9672
9673 # Create a temporary old-style archive to link instead of a shared archive.
9674 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9675
9676 # Commands used to build and install a shared archive.
9677 archive_cmds=$lt_archive_cmds
9678 archive_expsym_cmds=$lt_archive_expsym_cmds
9679 postinstall_cmds=$lt_postinstall_cmds
9680 postuninstall_cmds=$lt_postuninstall_cmds
9681
9682 # Commands used to build a loadable module (assumed same as above if empty)
9683 module_cmds=$lt_module_cmds
9684 module_expsym_cmds=$lt_module_expsym_cmds
9685
9686 # Commands to strip libraries.
9687 old_striplib=$lt_old_striplib
9688 striplib=$lt_striplib
9689
9690 # Dependencies to place before the objects being linked to create a
9691 # shared library.
9692 predep_objects=$lt_predep_objects
9693
9694 # Dependencies to place after the objects being linked to create a
9695 # shared library.
9696 postdep_objects=$lt_postdep_objects
9697
9698 # Dependencies to place before the objects being linked to create a
9699 # shared library.
9700 predeps=$lt_predeps
9701
9702 # Dependencies to place after the objects being linked to create a
9703 # shared library.
9704 postdeps=$lt_postdeps
9705
9706 # The library search path used internally by the compiler when linking
9707 # a shared library.
9708 compiler_lib_search_path=$lt_compiler_lib_search_path
9709
9710 # Method to check whether dependent libraries are shared objects.
9711 deplibs_check_method=$lt_deplibs_check_method
9712
9713 # Command to use when deplibs_check_method == file_magic.
9714 file_magic_cmd=$lt_file_magic_cmd
9715
9716 # Flag that allows shared libraries with undefined symbols to be built.
9717 allow_undefined_flag=$lt_allow_undefined_flag
9718
9719 # Flag that forces no undefined symbols.
9720 no_undefined_flag=$lt_no_undefined_flag
9721
9722 # Commands used to finish a libtool library installation in a directory.
9723 finish_cmds=$lt_finish_cmds
9724
9725 # Same as above, but a single script fragment to be evaled but not shown.
9726 finish_eval=$lt_finish_eval
9727
9728 # Take the output of nm and produce a listing of raw symbols and C names.
9729 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9730
9731 # Transform the output of nm in a proper C declaration
9732 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9733
9734 # Transform the output of nm in a C name address pair
9735 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9736
9737 # This is the shared library runtime path variable.
9738 runpath_var=$runpath_var
9739
9740 # This is the shared library path variable.
9741 shlibpath_var=$shlibpath_var
9742
9743 # Is shlibpath searched before the hard-coded library search path?
9744 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9745
9746 # How to hardcode a shared library path into an executable.
9747 hardcode_action=$hardcode_action
9748
9749 # Whether we should hardcode library paths into libraries.
9750 hardcode_into_libs=$hardcode_into_libs
9751
9752 # Flag to hardcode \$libdir into a binary during linking.
9753 # This must work even if \$libdir does not exist.
9754 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9755
9756 # If ld is used when linking, flag to hardcode \$libdir into
9757 # a binary during linking. This must work even if \$libdir does
9758 # not exist.
9759 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9760
9761 # Whether we need a single -rpath flag with a separated argument.
9762 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9763
9764 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9765 # resulting binary.
9766 hardcode_direct=$hardcode_direct
9767
9768 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9769 # resulting binary.
9770 hardcode_minus_L=$hardcode_minus_L
9771
9772 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9773 # the resulting binary.
9774 hardcode_shlibpath_var=$hardcode_shlibpath_var
9775
9776 # Set to yes if building a shared library automatically hardcodes DIR into the library
9777 # and all subsequent libraries and executables linked against it.
9778 hardcode_automatic=$hardcode_automatic
9779
9780 # Variables whose values should be saved in libtool wrapper scripts and
9781 # restored at relink time.
9782 variables_saved_for_relink="$variables_saved_for_relink"
9783
9784 # Whether libtool must link a program against all its dependency libraries.
9785 link_all_deplibs=$link_all_deplibs
9786
9787 # Compile-time system search path for libraries
9788 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9789
9790 # Run-time system search path for libraries
9791 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9792
9793 # Fix the shell variable \$srcfile for the compiler.
9794 fix_srcfile_path="$fix_srcfile_path"
9795
9796 # Set to yes if exported symbols are required.
9797 always_export_symbols=$always_export_symbols
9798
9799 # The commands to list exported symbols.
9800 export_symbols_cmds=$lt_export_symbols_cmds
9801
9802 # The commands to extract the exported symbol list from a shared archive.
9803 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9804
9805 # Symbols that should not be listed in the preloaded symbols.
9806 exclude_expsyms=$lt_exclude_expsyms
9807
9808 # Symbols that must always be exported.
9809 include_expsyms=$lt_include_expsyms
9810
9811 # ### END LIBTOOL CONFIG
9812
9813 __EOF__
9814
9815
9816 case $host_os in
9817 aix3*)
9818 cat <<\EOF >> "$cfgfile"
9819
9820 # AIX sometimes has problems with the GCC collect2 program. For some
9821 # reason, if we set the COLLECT_NAMES environment variable, the problems
9822 # vanish in a puff of smoke.
9823 if test "X${COLLECT_NAMES+set}" != Xset; then
9824 COLLECT_NAMES=
9825 export COLLECT_NAMES
9826 fi
9827 EOF
9828 ;;
9829 esac
9830
9831 # We use sed instead of cat because bash on DJGPP gets confused if
9832 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9833 # text mode, it properly converts lines to CR/LF. This bash problem
9834 # is reportedly fixed, but why not run on old versions too?
9835 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9836
9837 mv -f "$cfgfile" "$ofile" || \
9838 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9839 chmod +x "$ofile"
9840
9841 else
9842 # If there is no Makefile yet, we rely on a make rule to execute
9843 # `config.status --recheck' to rerun these tests and create the
9844 # libtool script then.
9845 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9846 if test -f "$ltmain_in"; then
9847 test -f Makefile && make "$ltmain"
9848 fi
9849 fi
9850
9851
9852 ac_ext=c
9853 ac_cpp='$CPP $CPPFLAGS'
9854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9857
9858 CC="$lt_save_CC"
9859
9860
9861 # Check whether --with-tags or --without-tags was given.
9862 if test "${with_tags+set}" = set; then
9863 withval="$with_tags"
9864 tagnames="$withval"
9865 fi;
9866
9867 if test -f "$ltmain" && test -n "$tagnames"; then
9868 if test ! -f "${ofile}"; then
9869 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9870 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9871 fi
9872
9873 if test -z "$LTCC"; then
9874 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9875 if test -z "$LTCC"; then
9876 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9877 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9878 else
9879 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9880 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9881 fi
9882 fi
9883 if test -z "$LTCFLAGS"; then
9884 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9885 fi
9886
9887 # Extract list of available tagged configurations in $ofile.
9888 # Note that this assumes the entire list is on one line.
9889 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9890
9891 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9892 for tagname in $tagnames; do
9893 IFS="$lt_save_ifs"
9894 # Check whether tagname contains only valid characters
9895 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9896 "") ;;
9897 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9898 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9899 { (exit 1); exit 1; }; }
9900 ;;
9901 esac
9902
9903 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9904 then
9905 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9906 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9907 { (exit 1); exit 1; }; }
9908 fi
9909
9910 # Update the list of available tags.
9911 if test -n "$tagname"; then
9912 echo appending configuration tag \"$tagname\" to $ofile
9913
9914 case $tagname in
9915 CXX)
9916 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9917 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9918 (test "X$CXX" != "Xg++"))) ; then
9919 ac_ext=cc
9920 ac_cpp='$CXXCPP $CPPFLAGS'
9921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9924
9925
9926
9927
9928 archive_cmds_need_lc_CXX=no
9929 allow_undefined_flag_CXX=
9930 always_export_symbols_CXX=no
9931 archive_expsym_cmds_CXX=
9932 export_dynamic_flag_spec_CXX=
9933 hardcode_direct_CXX=no
9934 hardcode_libdir_flag_spec_CXX=
9935 hardcode_libdir_flag_spec_ld_CXX=
9936 hardcode_libdir_separator_CXX=
9937 hardcode_minus_L_CXX=no
9938 hardcode_shlibpath_var_CXX=unsupported
9939 hardcode_automatic_CXX=no
9940 module_cmds_CXX=
9941 module_expsym_cmds_CXX=
9942 link_all_deplibs_CXX=unknown
9943 old_archive_cmds_CXX=$old_archive_cmds
9944 no_undefined_flag_CXX=
9945 whole_archive_flag_spec_CXX=
9946 enable_shared_with_static_runtimes_CXX=no
9947
9948 # Dependencies to place before and after the object being linked:
9949 predep_objects_CXX=
9950 postdep_objects_CXX=
9951 predeps_CXX=
9952 postdeps_CXX=
9953 compiler_lib_search_path_CXX=
9954
9955 # Source file extension for C++ test sources.
9956 ac_ext=cpp
9957
9958 # Object file extension for compiled C++ test sources.
9959 objext=o
9960 objext_CXX=$objext
9961
9962 # Code to be used in simple compile tests
9963 lt_simple_compile_test_code="int some_variable = 0;\n"
9964
9965 # Code to be used in simple link tests
9966 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9967
9968 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9969
9970 # If no C compiler was specified, use CC.
9971 LTCC=${LTCC-"$CC"}
9972
9973 # If no C compiler flags were specified, use CFLAGS.
9974 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9975
9976 # Allow CC to be a program name with arguments.
9977 compiler=$CC
9978
9979
9980 # save warnings/boilerplate of simple test code
9981 ac_outfile=conftest.$ac_objext
9982 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9983 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9984 _lt_compiler_boilerplate=`cat conftest.err`
9985 $rm conftest*
9986
9987 ac_outfile=conftest.$ac_objext
9988 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9989 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9990 _lt_linker_boilerplate=`cat conftest.err`
9991 $rm conftest*
9992
9993
9994 # Allow CC to be a program name with arguments.
9995 lt_save_CC=$CC
9996 lt_save_LD=$LD
9997 lt_save_GCC=$GCC
9998 GCC=$GXX
9999 lt_save_with_gnu_ld=$with_gnu_ld
10000 lt_save_path_LD=$lt_cv_path_LD
10001 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10002 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10003 else
10004 $as_unset lt_cv_prog_gnu_ld
10005 fi
10006 if test -n "${lt_cv_path_LDCXX+set}"; then
10007 lt_cv_path_LD=$lt_cv_path_LDCXX
10008 else
10009 $as_unset lt_cv_path_LD
10010 fi
10011 test -z "${LDCXX+set}" || LD=$LDCXX
10012 CC=${CXX-"c++"}
10013 compiler=$CC
10014 compiler_CXX=$CC
10015 for cc_temp in $compiler""; do
10016 case $cc_temp in
10017 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10018 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10019 \-*) ;;
10020 *) break;;
10021 esac
10022 done
10023 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10024
10025
10026 # We don't want -fno-exception wen compiling C++ code, so set the
10027 # no_builtin_flag separately
10028 if test "$GXX" = yes; then
10029 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10030 else
10031 lt_prog_compiler_no_builtin_flag_CXX=
10032 fi
10033
10034 if test "$GXX" = yes; then
10035 # Set up default GNU C++ configuration
10036
10037
10038 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10039 if test "${with_gnu_ld+set}" = set; then
10040 withval="$with_gnu_ld"
10041 test "$withval" = no || with_gnu_ld=yes
10042 else
10043 with_gnu_ld=no
10044 fi;
10045 ac_prog=ld
10046 if test "$GCC" = yes; then
10047 # Check if gcc -print-prog-name=ld gives a path.
10048 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10049 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10050 case $host in
10051 *-*-mingw*)
10052 # gcc leaves a trailing carriage return which upsets mingw
10053 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10054 *)
10055 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10056 esac
10057 case $ac_prog in
10058 # Accept absolute paths.
10059 [\\/]* | ?:[\\/]*)
10060 re_direlt='/[^/][^/]*/\.\./'
10061 # Canonicalize the pathname of ld
10062 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10063 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10064 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10065 done
10066 test -z "$LD" && LD="$ac_prog"
10067 ;;
10068 "")
10069 # If it fails, then pretend we aren't using GCC.
10070 ac_prog=ld
10071 ;;
10072 *)
10073 # If it is relative, then search for the first ld in PATH.
10074 with_gnu_ld=unknown
10075 ;;
10076 esac
10077 elif test "$with_gnu_ld" = yes; then
10078 echo "$as_me:$LINENO: checking for GNU ld" >&5
10079 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10080 else
10081 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10082 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10083 fi
10084 if test "${lt_cv_path_LD+set}" = set; then
10085 echo $ECHO_N "(cached) $ECHO_C" >&6
10086 else
10087 if test -z "$LD"; then
10088 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10089 for ac_dir in $PATH; do
10090 IFS="$lt_save_ifs"
10091 test -z "$ac_dir" && ac_dir=.
10092 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10093 lt_cv_path_LD="$ac_dir/$ac_prog"
10094 # Check to see if the program is GNU ld. I'd rather use --version,
10095 # but apparently some variants of GNU ld only accept -v.
10096 # Break only if it was the GNU/non-GNU ld that we prefer.
10097 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10098 *GNU* | *'with BFD'*)
10099 test "$with_gnu_ld" != no && break
10100 ;;
10101 *)
10102 test "$with_gnu_ld" != yes && break
10103 ;;
10104 esac
10105 fi
10106 done
10107 IFS="$lt_save_ifs"
10108 else
10109 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10110 fi
10111 fi
10112
10113 LD="$lt_cv_path_LD"
10114 if test -n "$LD"; then
10115 echo "$as_me:$LINENO: result: $LD" >&5
10116 echo "${ECHO_T}$LD" >&6
10117 else
10118 echo "$as_me:$LINENO: result: no" >&5
10119 echo "${ECHO_T}no" >&6
10120 fi
10121 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10122 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10123 { (exit 1); exit 1; }; }
10124 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10125 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10126 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10127 echo $ECHO_N "(cached) $ECHO_C" >&6
10128 else
10129 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10130 case `$LD -v 2>&1 </dev/null` in
10131 *GNU* | *'with BFD'*)
10132 lt_cv_prog_gnu_ld=yes
10133 ;;
10134 *)
10135 lt_cv_prog_gnu_ld=no
10136 ;;
10137 esac
10138 fi
10139 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10140 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10141 with_gnu_ld=$lt_cv_prog_gnu_ld
10142
10143
10144
10145 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10146 # archiving commands below assume that GNU ld is being used.
10147 if test "$with_gnu_ld" = yes; then
10148 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10149 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'
10150
10151 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10152 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10153
10154 # If archive_cmds runs LD, not CC, wlarc should be empty
10155 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10156 # investigate it a little bit more. (MM)
10157 wlarc='${wl}'
10158
10159 # ancient GNU ld didn't support --whole-archive et. al.
10160 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10161 grep 'no-whole-archive' > /dev/null; then
10162 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10163 else
10164 whole_archive_flag_spec_CXX=
10165 fi
10166 else
10167 with_gnu_ld=no
10168 wlarc=
10169
10170 # A generic and very simple default shared library creation
10171 # command for GNU C++ for the case where it uses the native
10172 # linker, instead of GNU ld. If possible, this setting should
10173 # overridden to take advantage of the native linker features on
10174 # the platform it is being used on.
10175 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10176 fi
10177
10178 # Commands to make compiler produce verbose output that lists
10179 # what "hidden" libraries, object files and flags are used when
10180 # linking a shared library.
10181 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10182
10183 else
10184 GXX=no
10185 with_gnu_ld=no
10186 wlarc=
10187 fi
10188
10189 # PORTME: fill in a description of your system's C++ link characteristics
10190 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10191 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10192 ld_shlibs_CXX=yes
10193 case $host_os in
10194 aix3*)
10195 # FIXME: insert proper C++ library support
10196 ld_shlibs_CXX=no
10197 ;;
10198 aix4* | aix5*)
10199 if test "$host_cpu" = ia64; then
10200 # On IA64, the linker does run time linking by default, so we don't
10201 # have to do anything special.
10202 aix_use_runtimelinking=no
10203 exp_sym_flag='-Bexport'
10204 no_entry_flag=""
10205 else
10206 aix_use_runtimelinking=no
10207
10208 # Test if we are trying to use run time linking or normal
10209 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10210 # need to do runtime linking.
10211 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10212 for ld_flag in $LDFLAGS; do
10213 case $ld_flag in
10214 *-brtl*)
10215 aix_use_runtimelinking=yes
10216 break
10217 ;;
10218 esac
10219 done
10220 ;;
10221 esac
10222
10223 exp_sym_flag='-bexport'
10224 no_entry_flag='-bnoentry'
10225 fi
10226
10227 # When large executables or shared objects are built, AIX ld can
10228 # have problems creating the table of contents. If linking a library
10229 # or program results in "error TOC overflow" add -mminimal-toc to
10230 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10231 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10232
10233 archive_cmds_CXX=''
10234 hardcode_direct_CXX=yes
10235 hardcode_libdir_separator_CXX=':'
10236 link_all_deplibs_CXX=yes
10237
10238 if test "$GXX" = yes; then
10239 case $host_os in aix4.[012]|aix4.[012].*)
10240 # We only want to do this on AIX 4.2 and lower, the check
10241 # below for broken collect2 doesn't work under 4.3+
10242 collect2name=`${CC} -print-prog-name=collect2`
10243 if test -f "$collect2name" && \
10244 strings "$collect2name" | grep resolve_lib_name >/dev/null
10245 then
10246 # We have reworked collect2
10247 hardcode_direct_CXX=yes
10248 else
10249 # We have old collect2
10250 hardcode_direct_CXX=unsupported
10251 # It fails to find uninstalled libraries when the uninstalled
10252 # path is not listed in the libpath. Setting hardcode_minus_L
10253 # to unsupported forces relinking
10254 hardcode_minus_L_CXX=yes
10255 hardcode_libdir_flag_spec_CXX='-L$libdir'
10256 hardcode_libdir_separator_CXX=
10257 fi
10258 ;;
10259 esac
10260 shared_flag='-shared'
10261 if test "$aix_use_runtimelinking" = yes; then
10262 shared_flag="$shared_flag "'${wl}-G'
10263 fi
10264 else
10265 # not using gcc
10266 if test "$host_cpu" = ia64; then
10267 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10268 # chokes on -Wl,-G. The following line is correct:
10269 shared_flag='-G'
10270 else
10271 if test "$aix_use_runtimelinking" = yes; then
10272 shared_flag='${wl}-G'
10273 else
10274 shared_flag='${wl}-bM:SRE'
10275 fi
10276 fi
10277 fi
10278
10279 # It seems that -bexpall does not export symbols beginning with
10280 # underscore (_), so it is better to generate a list of symbols to export.
10281 always_export_symbols_CXX=yes
10282 if test "$aix_use_runtimelinking" = yes; then
10283 # Warning - without using the other runtime loading flags (-brtl),
10284 # -berok will link without error, but may produce a broken library.
10285 allow_undefined_flag_CXX='-berok'
10286 # Determine the default libpath from the value encoded in an empty executable.
10287 cat >conftest.$ac_ext <<_ACEOF
10288 /* confdefs.h. */
10289 _ACEOF
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h. */
10293
10294 int
10295 main ()
10296 {
10297
10298 ;
10299 return 0;
10300 }
10301 _ACEOF
10302 rm -f conftest.$ac_objext conftest$ac_exeext
10303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10304 (eval $ac_link) 2>conftest.er1
10305 ac_status=$?
10306 grep -v '^ *+' conftest.er1 >conftest.err
10307 rm -f conftest.er1
10308 cat conftest.err >&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); } &&
10311 { ac_try='test -z "$ac_cxx_werror_flag"
10312 || test ! -s conftest.err'
10313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10314 (eval $ac_try) 2>&5
10315 ac_status=$?
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; } &&
10318 { ac_try='test -s conftest$ac_exeext'
10319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10320 (eval $ac_try) 2>&5
10321 ac_status=$?
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); }; }; then
10324
10325 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10326 }'`
10327 # Check for a 64-bit object if we didn't find anything.
10328 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10329 }'`; fi
10330 else
10331 echo "$as_me: failed program was:" >&5
10332 sed 's/^/| /' conftest.$ac_ext >&5
10333
10334 fi
10335 rm -f conftest.err conftest.$ac_objext \
10336 conftest$ac_exeext conftest.$ac_ext
10337 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10338
10339 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10340
10341 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10342 else
10343 if test "$host_cpu" = ia64; then
10344 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10345 allow_undefined_flag_CXX="-z nodefs"
10346 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10347 else
10348 # Determine the default libpath from the value encoded in an empty executable.
10349 cat >conftest.$ac_ext <<_ACEOF
10350 /* confdefs.h. */
10351 _ACEOF
10352 cat confdefs.h >>conftest.$ac_ext
10353 cat >>conftest.$ac_ext <<_ACEOF
10354 /* end confdefs.h. */
10355
10356 int
10357 main ()
10358 {
10359
10360 ;
10361 return 0;
10362 }
10363 _ACEOF
10364 rm -f conftest.$ac_objext conftest$ac_exeext
10365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10366 (eval $ac_link) 2>conftest.er1
10367 ac_status=$?
10368 grep -v '^ *+' conftest.er1 >conftest.err
10369 rm -f conftest.er1
10370 cat conftest.err >&5
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); } &&
10373 { ac_try='test -z "$ac_cxx_werror_flag"
10374 || test ! -s conftest.err'
10375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10376 (eval $ac_try) 2>&5
10377 ac_status=$?
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); }; } &&
10380 { ac_try='test -s conftest$ac_exeext'
10381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10382 (eval $ac_try) 2>&5
10383 ac_status=$?
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); }; }; then
10386
10387 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10388 }'`
10389 # Check for a 64-bit object if we didn't find anything.
10390 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10391 }'`; fi
10392 else
10393 echo "$as_me: failed program was:" >&5
10394 sed 's/^/| /' conftest.$ac_ext >&5
10395
10396 fi
10397 rm -f conftest.err conftest.$ac_objext \
10398 conftest$ac_exeext conftest.$ac_ext
10399 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10400
10401 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10402 # Warning - without using the other run time loading flags,
10403 # -berok will link without error, but may produce a broken library.
10404 no_undefined_flag_CXX=' ${wl}-bernotok'
10405 allow_undefined_flag_CXX=' ${wl}-berok'
10406 # Exported symbols can be pulled into shared objects from archives
10407 whole_archive_flag_spec_CXX='$convenience'
10408 archive_cmds_need_lc_CXX=yes
10409 # This is similar to how AIX traditionally builds its shared libraries.
10410 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10411 fi
10412 fi
10413 ;;
10414
10415 beos*)
10416 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10417 allow_undefined_flag_CXX=unsupported
10418 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
10419 # support --undefined. This deserves some investigation. FIXME
10420 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10421 else
10422 ld_shlibs_CXX=no
10423 fi
10424 ;;
10425
10426 chorus*)
10427 case $cc_basename in
10428 *)
10429 # FIXME: insert proper C++ library support
10430 ld_shlibs_CXX=no
10431 ;;
10432 esac
10433 ;;
10434
10435 cygwin* | mingw* | pw32*)
10436 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10437 # as there is no search path for DLLs.
10438 hardcode_libdir_flag_spec_CXX='-L$libdir'
10439 allow_undefined_flag_CXX=unsupported
10440 always_export_symbols_CXX=no
10441 enable_shared_with_static_runtimes_CXX=yes
10442
10443 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10444 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10445 # If the export-symbols file already is a .def file (1st line
10446 # is EXPORTS), use it as is; otherwise, prepend...
10447 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10448 cp $export_symbols $output_objdir/$soname.def;
10449 else
10450 echo EXPORTS > $output_objdir/$soname.def;
10451 cat $export_symbols >> $output_objdir/$soname.def;
10452 fi~
10453 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10454 else
10455 ld_shlibs_CXX=no
10456 fi
10457 ;;
10458 darwin* | rhapsody*)
10459 case $host_os in
10460 rhapsody* | darwin1.[012])
10461 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10462 ;;
10463 *) # Darwin 1.3 on
10464 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10465 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10466 else
10467 case ${MACOSX_DEPLOYMENT_TARGET} in
10468 10.[012])
10469 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10470 ;;
10471 10.*)
10472 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10473 ;;
10474 esac
10475 fi
10476 ;;
10477 esac
10478 archive_cmds_need_lc_CXX=no
10479 hardcode_direct_CXX=no
10480 hardcode_automatic_CXX=yes
10481 hardcode_shlibpath_var_CXX=unsupported
10482 whole_archive_flag_spec_CXX=''
10483 link_all_deplibs_CXX=yes
10484
10485 if test "$GXX" = yes ; then
10486 lt_int_apple_cc_single_mod=no
10487 output_verbose_link_cmd='echo'
10488 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10489 lt_int_apple_cc_single_mod=yes
10490 fi
10491 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10492 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10493 else
10494 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10495 fi
10496 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10497 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10498 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10499 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10500 else
10501 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10502 fi
10503 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10504 else
10505 case $cc_basename in
10506 xlc*)
10507 output_verbose_link_cmd='echo'
10508 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10509 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10510 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10511 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10512 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10513 ;;
10514 *)
10515 ld_shlibs_CXX=no
10516 ;;
10517 esac
10518 fi
10519 ;;
10520
10521 dgux*)
10522 case $cc_basename in
10523 ec++*)
10524 # FIXME: insert proper C++ library support
10525 ld_shlibs_CXX=no
10526 ;;
10527 ghcx*)
10528 # Green Hills C++ Compiler
10529 # FIXME: insert proper C++ library support
10530 ld_shlibs_CXX=no
10531 ;;
10532 *)
10533 # FIXME: insert proper C++ library support
10534 ld_shlibs_CXX=no
10535 ;;
10536 esac
10537 ;;
10538 freebsd[12]*)
10539 # C++ shared libraries reported to be fairly broken before switch to ELF
10540 ld_shlibs_CXX=no
10541 ;;
10542 freebsd-elf*)
10543 archive_cmds_need_lc_CXX=no
10544 ;;
10545 freebsd* | kfreebsd*-gnu | dragonfly*)
10546 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10547 # conventions
10548 ld_shlibs_CXX=yes
10549 ;;
10550 gnu*)
10551 ;;
10552 hpux9*)
10553 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10554 hardcode_libdir_separator_CXX=:
10555 export_dynamic_flag_spec_CXX='${wl}-E'
10556 hardcode_direct_CXX=yes
10557 hardcode_minus_L_CXX=yes # Not in the search PATH,
10558 # but as the default
10559 # location of the library.
10560
10561 case $cc_basename in
10562 CC*)
10563 # FIXME: insert proper C++ library support
10564 ld_shlibs_CXX=no
10565 ;;
10566 aCC*)
10567 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'
10568 # Commands to make compiler produce verbose output that lists
10569 # what "hidden" libraries, object files and flags are used when
10570 # linking a shared library.
10571 #
10572 # There doesn't appear to be a way to prevent this compiler from
10573 # explicitly linking system object files so we need to strip them
10574 # from the output so that they don't get included in the library
10575 # dependencies.
10576 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10577 ;;
10578 *)
10579 if test "$GXX" = yes; then
10580 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'
10581 else
10582 # FIXME: insert proper C++ library support
10583 ld_shlibs_CXX=no
10584 fi
10585 ;;
10586 esac
10587 ;;
10588 hpux10*|hpux11*)
10589 if test $with_gnu_ld = no; then
10590 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10591 hardcode_libdir_separator_CXX=:
10592
10593 case $host_cpu in
10594 hppa*64*|ia64*)
10595 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10596 ;;
10597 *)
10598 export_dynamic_flag_spec_CXX='${wl}-E'
10599 ;;
10600 esac
10601 fi
10602 case $host_cpu in
10603 hppa*64*|ia64*)
10604 hardcode_direct_CXX=no
10605 hardcode_shlibpath_var_CXX=no
10606 ;;
10607 *)
10608 hardcode_direct_CXX=yes
10609 hardcode_minus_L_CXX=yes # Not in the search PATH,
10610 # but as the default
10611 # location of the library.
10612 ;;
10613 esac
10614
10615 case $cc_basename in
10616 CC*)
10617 # FIXME: insert proper C++ library support
10618 ld_shlibs_CXX=no
10619 ;;
10620 aCC*)
10621 case $host_cpu in
10622 hppa*64*)
10623 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10624 ;;
10625 ia64*)
10626 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10627 ;;
10628 *)
10629 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10630 ;;
10631 esac
10632 # Commands to make compiler produce verbose output that lists
10633 # what "hidden" libraries, object files and flags are used when
10634 # linking a shared library.
10635 #
10636 # There doesn't appear to be a way to prevent this compiler from
10637 # explicitly linking system object files so we need to strip them
10638 # from the output so that they don't get included in the library
10639 # dependencies.
10640 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10641 ;;
10642 *)
10643 if test "$GXX" = yes; then
10644 if test $with_gnu_ld = no; then
10645 case $host_cpu in
10646 hppa*64*)
10647 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10648 ;;
10649 ia64*)
10650 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10651 ;;
10652 *)
10653 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'
10654 ;;
10655 esac
10656 fi
10657 else
10658 # FIXME: insert proper C++ library support
10659 ld_shlibs_CXX=no
10660 fi
10661 ;;
10662 esac
10663 ;;
10664 interix3*)
10665 hardcode_direct_CXX=no
10666 hardcode_shlibpath_var_CXX=no
10667 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10668 export_dynamic_flag_spec_CXX='${wl}-E'
10669 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10670 # Instead, shared libraries are loaded at an image base (0x10000000 by
10671 # default) and relocated if they conflict, which is a slow very memory
10672 # consuming and fragmenting process. To avoid this, we pick a random,
10673 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10674 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10675 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10676 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10677 ;;
10678 irix5* | irix6*)
10679 case $cc_basename in
10680 CC*)
10681 # SGI C++
10682 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 ${output_objdir}/so_locations -o $lib'
10683
10684 # Archives containing C++ object files must be created using
10685 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10686 # necessary to make sure instantiated templates are included
10687 # in the archive.
10688 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10689 ;;
10690 *)
10691 if test "$GXX" = yes; then
10692 if test "$with_gnu_ld" = no; then
10693 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}${output_objdir}/so_locations -o $lib'
10694 else
10695 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10696 fi
10697 fi
10698 link_all_deplibs_CXX=yes
10699 ;;
10700 esac
10701 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10702 hardcode_libdir_separator_CXX=:
10703 ;;
10704 linux*)
10705 case $cc_basename in
10706 KCC*)
10707 # Kuck and Associates, Inc. (KAI) C++ Compiler
10708
10709 # KCC will only create a shared library if the output file
10710 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10711 # to its proper name (with version) after linking.
10712 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10713 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10714 # Commands to make compiler produce verbose output that lists
10715 # what "hidden" libraries, object files and flags are used when
10716 # linking a shared library.
10717 #
10718 # There doesn't appear to be a way to prevent this compiler from
10719 # explicitly linking system object files so we need to strip them
10720 # from the output so that they don't get included in the library
10721 # dependencies.
10722 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10723
10724 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10725 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10726
10727 # Archives containing C++ object files must be created using
10728 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10729 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10730 ;;
10731 icpc*)
10732 # Intel C++
10733 with_gnu_ld=yes
10734 # version 8.0 and above of icpc choke on multiply defined symbols
10735 # if we add $predep_objects and $postdep_objects, however 7.1 and
10736 # earlier do not add the objects themselves.
10737 case `$CC -V 2>&1` in
10738 *"Version 7."*)
10739 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10740 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10741 ;;
10742 *) # Version 8.0 or newer
10743 tmp_idyn=
10744 case $host_cpu in
10745 ia64*) tmp_idyn=' -i_dynamic';;
10746 esac
10747 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10748 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10749 ;;
10750 esac
10751 archive_cmds_need_lc_CXX=no
10752 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10753 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10754 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10755 ;;
10756 pgCC*)
10757 # Portland Group C++ compiler
10758 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10759 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10760
10761 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10762 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10763 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10764 ;;
10765 cxx*)
10766 # Compaq C++
10767 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10768 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'
10769
10770 runpath_var=LD_RUN_PATH
10771 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10772 hardcode_libdir_separator_CXX=:
10773
10774 # Commands to make compiler produce verbose output that lists
10775 # what "hidden" libraries, object files and flags are used when
10776 # linking a shared library.
10777 #
10778 # There doesn't appear to be a way to prevent this compiler from
10779 # explicitly linking system object files so we need to strip them
10780 # from the output so that they don't get included in the library
10781 # dependencies.
10782 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'
10783 ;;
10784 esac
10785 ;;
10786 lynxos*)
10787 # FIXME: insert proper C++ library support
10788 ld_shlibs_CXX=no
10789 ;;
10790 m88k*)
10791 # FIXME: insert proper C++ library support
10792 ld_shlibs_CXX=no
10793 ;;
10794 mvs*)
10795 case $cc_basename in
10796 cxx*)
10797 # FIXME: insert proper C++ library support
10798 ld_shlibs_CXX=no
10799 ;;
10800 *)
10801 # FIXME: insert proper C++ library support
10802 ld_shlibs_CXX=no
10803 ;;
10804 esac
10805 ;;
10806 netbsd*)
10807 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10808 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10809 wlarc=
10810 hardcode_libdir_flag_spec_CXX='-R$libdir'
10811 hardcode_direct_CXX=yes
10812 hardcode_shlibpath_var_CXX=no
10813 fi
10814 # Workaround some broken pre-1.5 toolchains
10815 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10816 ;;
10817 openbsd2*)
10818 # C++ shared libraries are fairly broken
10819 ld_shlibs_CXX=no
10820 ;;
10821 openbsd*)
10822 hardcode_direct_CXX=yes
10823 hardcode_shlibpath_var_CXX=no
10824 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10825 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10826 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10827 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10828 export_dynamic_flag_spec_CXX='${wl}-E'
10829 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10830 fi
10831 output_verbose_link_cmd='echo'
10832 ;;
10833 osf3*)
10834 case $cc_basename in
10835 KCC*)
10836 # Kuck and Associates, Inc. (KAI) C++ Compiler
10837
10838 # KCC will only create a shared library if the output file
10839 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10840 # to its proper name (with version) after linking.
10841 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10842
10843 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10844 hardcode_libdir_separator_CXX=:
10845
10846 # Archives containing C++ object files must be created using
10847 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10848 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10849
10850 ;;
10851 RCC*)
10852 # Rational C++ 2.4.1
10853 # FIXME: insert proper C++ library support
10854 ld_shlibs_CXX=no
10855 ;;
10856 cxx*)
10857 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10858 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 ${output_objdir}/so_locations -o $lib'
10859
10860 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10861 hardcode_libdir_separator_CXX=:
10862
10863 # Commands to make compiler produce verbose output that lists
10864 # what "hidden" libraries, object files and flags are used when
10865 # linking a shared library.
10866 #
10867 # There doesn't appear to be a way to prevent this compiler from
10868 # explicitly linking system object files so we need to strip them
10869 # from the output so that they don't get included in the library
10870 # dependencies.
10871 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'
10872 ;;
10873 *)
10874 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10875 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10876 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}${output_objdir}/so_locations -o $lib'
10877
10878 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10879 hardcode_libdir_separator_CXX=:
10880
10881 # Commands to make compiler produce verbose output that lists
10882 # what "hidden" libraries, object files and flags are used when
10883 # linking a shared library.
10884 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10885
10886 else
10887 # FIXME: insert proper C++ library support
10888 ld_shlibs_CXX=no
10889 fi
10890 ;;
10891 esac
10892 ;;
10893 osf4* | osf5*)
10894 case $cc_basename in
10895 KCC*)
10896 # Kuck and Associates, Inc. (KAI) C++ Compiler
10897
10898 # KCC will only create a shared library if the output file
10899 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10900 # to its proper name (with version) after linking.
10901 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10902
10903 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10904 hardcode_libdir_separator_CXX=:
10905
10906 # Archives containing C++ object files must be created using
10907 # the KAI C++ compiler.
10908 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10909 ;;
10910 RCC*)
10911 # Rational C++ 2.4.1
10912 # FIXME: insert proper C++ library support
10913 ld_shlibs_CXX=no
10914 ;;
10915 cxx*)
10916 allow_undefined_flag_CXX=' -expect_unresolved \*'
10917 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 ${output_objdir}/so_locations -o $lib'
10918 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10919 echo "-hidden">> $lib.exp~
10920 $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 ${output_objdir}/so_locations -o $lib~
10921 $rm $lib.exp'
10922
10923 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10924 hardcode_libdir_separator_CXX=:
10925
10926 # Commands to make compiler produce verbose output that lists
10927 # what "hidden" libraries, object files and flags are used when
10928 # linking a shared library.
10929 #
10930 # There doesn't appear to be a way to prevent this compiler from
10931 # explicitly linking system object files so we need to strip them
10932 # from the output so that they don't get included in the library
10933 # dependencies.
10934 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'
10935 ;;
10936 *)
10937 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10938 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10939 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}${output_objdir}/so_locations -o $lib'
10940
10941 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10942 hardcode_libdir_separator_CXX=:
10943
10944 # Commands to make compiler produce verbose output that lists
10945 # what "hidden" libraries, object files and flags are used when
10946 # linking a shared library.
10947 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10948
10949 else
10950 # FIXME: insert proper C++ library support
10951 ld_shlibs_CXX=no
10952 fi
10953 ;;
10954 esac
10955 ;;
10956 psos*)
10957 # FIXME: insert proper C++ library support
10958 ld_shlibs_CXX=no
10959 ;;
10960 sunos4*)
10961 case $cc_basename in
10962 CC*)
10963 # Sun C++ 4.x
10964 # FIXME: insert proper C++ library support
10965 ld_shlibs_CXX=no
10966 ;;
10967 lcc*)
10968 # Lucid
10969 # FIXME: insert proper C++ library support
10970 ld_shlibs_CXX=no
10971 ;;
10972 *)
10973 # FIXME: insert proper C++ library support
10974 ld_shlibs_CXX=no
10975 ;;
10976 esac
10977 ;;
10978 solaris*)
10979 case $cc_basename in
10980 CC*)
10981 # Sun C++ 4.2, 5.x and Centerline C++
10982 archive_cmds_need_lc_CXX=yes
10983 no_undefined_flag_CXX=' -zdefs'
10984 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10985 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10986 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10987
10988 hardcode_libdir_flag_spec_CXX='-R$libdir'
10989 hardcode_shlibpath_var_CXX=no
10990 case $host_os in
10991 solaris2.[0-5] | solaris2.[0-5].*) ;;
10992 *)
10993 # The C++ compiler is used as linker so we must use $wl
10994 # flag to pass the commands to the underlying system
10995 # linker. We must also pass each convience library through
10996 # to the system linker between allextract/defaultextract.
10997 # The C++ compiler will combine linker options so we
10998 # cannot just pass the convience library names through
10999 # without $wl.
11000 # Supported since Solaris 2.6 (maybe 2.5.1?)
11001 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11002 ;;
11003 esac
11004 link_all_deplibs_CXX=yes
11005
11006 output_verbose_link_cmd='echo'
11007
11008 # Archives containing C++ object files must be created using
11009 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11010 # necessary to make sure instantiated templates are included
11011 # in the archive.
11012 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11013 ;;
11014 gcx*)
11015 # Green Hills C++ Compiler
11016 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11017
11018 # The C++ compiler must be used to create the archive.
11019 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11020 ;;
11021 *)
11022 # GNU C++ compiler with Solaris linker
11023 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11024 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11025 if $CC --version | grep -v '^2\.7' > /dev/null; then
11026 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11027 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11028 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11029
11030 # Commands to make compiler produce verbose output that lists
11031 # what "hidden" libraries, object files and flags are used when
11032 # linking a shared library.
11033 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11034 else
11035 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11036 # platform.
11037 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11038 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11039 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11040
11041 # Commands to make compiler produce verbose output that lists
11042 # what "hidden" libraries, object files and flags are used when
11043 # linking a shared library.
11044 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11045 fi
11046
11047 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11048 fi
11049 ;;
11050 esac
11051 ;;
11052 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11053 no_undefined_flag_CXX='${wl}-z,text'
11054 archive_cmds_need_lc_CXX=no
11055 hardcode_shlibpath_var_CXX=no
11056 runpath_var='LD_RUN_PATH'
11057
11058 case $cc_basename in
11059 CC*)
11060 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11061 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11062 ;;
11063 *)
11064 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11065 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11066 ;;
11067 esac
11068 ;;
11069 sysv5* | sco3.2v5* | sco5v6*)
11070 # Note: We can NOT use -z defs as we might desire, because we do not
11071 # link with -lc, and that would cause any symbols used from libc to
11072 # always be unresolved, which means just about no library would
11073 # ever link correctly. If we're not using GNU ld we use -z text
11074 # though, which does catch some bad symbols but isn't as heavy-handed
11075 # as -z defs.
11076 # For security reasons, it is highly recommended that you always
11077 # use absolute paths for naming shared libraries, and exclude the
11078 # DT_RUNPATH tag from executables and libraries. But doing so
11079 # requires that you compile everything twice, which is a pain.
11080 # So that behaviour is only enabled if SCOABSPATH is set to a
11081 # non-empty value in the environment. Most likely only useful for
11082 # creating official distributions of packages.
11083 # This is a hack until libtool officially supports absolute path
11084 # names for shared libraries.
11085 no_undefined_flag_CXX='${wl}-z,text'
11086 allow_undefined_flag_CXX='${wl}-z,nodefs'
11087 archive_cmds_need_lc_CXX=no
11088 hardcode_shlibpath_var_CXX=no
11089 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11090 hardcode_libdir_separator_CXX=':'
11091 link_all_deplibs_CXX=yes
11092 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11093 runpath_var='LD_RUN_PATH'
11094
11095 case $cc_basename in
11096 CC*)
11097 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11098 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11099 ;;
11100 *)
11101 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11102 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11103 ;;
11104 esac
11105 ;;
11106 tandem*)
11107 case $cc_basename in
11108 NCC*)
11109 # NonStop-UX NCC 3.20
11110 # FIXME: insert proper C++ library support
11111 ld_shlibs_CXX=no
11112 ;;
11113 *)
11114 # FIXME: insert proper C++ library support
11115 ld_shlibs_CXX=no
11116 ;;
11117 esac
11118 ;;
11119 vxworks*)
11120 # FIXME: insert proper C++ library support
11121 ld_shlibs_CXX=no
11122 ;;
11123 *)
11124 # FIXME: insert proper C++ library support
11125 ld_shlibs_CXX=no
11126 ;;
11127 esac
11128 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11129 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11130 test "$ld_shlibs_CXX" = no && can_build_shared=no
11131
11132 GCC_CXX="$GXX"
11133 LD_CXX="$LD"
11134
11135
11136 cat > conftest.$ac_ext <<EOF
11137 class Foo
11138 {
11139 public:
11140 Foo (void) { a = 0; }
11141 private:
11142 int a;
11143 };
11144 EOF
11145
11146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11147 (eval $ac_compile) 2>&5
11148 ac_status=$?
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); }; then
11151 # Parse the compiler output and extract the necessary
11152 # objects, libraries and library flags.
11153
11154 # Sentinel used to keep track of whether or not we are before
11155 # the conftest object file.
11156 pre_test_object_deps_done=no
11157
11158 # The `*' in the case matches for architectures that use `case' in
11159 # $output_verbose_cmd can trigger glob expansion during the loop
11160 # eval without this substitution.
11161 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11162
11163 for p in `eval $output_verbose_link_cmd`; do
11164 case $p in
11165
11166 -L* | -R* | -l*)
11167 # Some compilers place space between "-{L,R}" and the path.
11168 # Remove the space.
11169 if test $p = "-L" \
11170 || test $p = "-R"; then
11171 prev=$p
11172 continue
11173 else
11174 prev=
11175 fi
11176
11177 if test "$pre_test_object_deps_done" = no; then
11178 case $p in
11179 -L* | -R*)
11180 # Internal compiler library paths should come after those
11181 # provided the user. The postdeps already come after the
11182 # user supplied libs so there is no need to process them.
11183 if test -z "$compiler_lib_search_path_CXX"; then
11184 compiler_lib_search_path_CXX="${prev}${p}"
11185 else
11186 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11187 fi
11188 ;;
11189 # The "-l" case would never come before the object being
11190 # linked, so don't bother handling this case.
11191 esac
11192 else
11193 if test -z "$postdeps_CXX"; then
11194 postdeps_CXX="${prev}${p}"
11195 else
11196 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11197 fi
11198 fi
11199 ;;
11200
11201 *.$objext)
11202 # This assumes that the test object file only shows up
11203 # once in the compiler output.
11204 if test "$p" = "conftest.$objext"; then
11205 pre_test_object_deps_done=yes
11206 continue
11207 fi
11208
11209 if test "$pre_test_object_deps_done" = no; then
11210 if test -z "$predep_objects_CXX"; then
11211 predep_objects_CXX="$p"
11212 else
11213 predep_objects_CXX="$predep_objects_CXX $p"
11214 fi
11215 else
11216 if test -z "$postdep_objects_CXX"; then
11217 postdep_objects_CXX="$p"
11218 else
11219 postdep_objects_CXX="$postdep_objects_CXX $p"
11220 fi
11221 fi
11222 ;;
11223
11224 *) ;; # Ignore the rest.
11225
11226 esac
11227 done
11228
11229 # Clean up.
11230 rm -f a.out a.exe
11231 else
11232 echo "libtool.m4: error: problem compiling CXX test program"
11233 fi
11234
11235 $rm -f confest.$objext
11236
11237 # PORTME: override above test on systems where it is broken
11238 case $host_os in
11239 interix3*)
11240 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11241 # hack all around it, let's just trust "g++" to DTRT.
11242 predep_objects_CXX=
11243 postdep_objects_CXX=
11244 postdeps_CXX=
11245 ;;
11246
11247 solaris*)
11248 case $cc_basename in
11249 CC*)
11250 # Adding this requires a known-good setup of shared libraries for
11251 # Sun compiler versions before 5.6, else PIC objects from an old
11252 # archive will be linked into the output, leading to subtle bugs.
11253 postdeps_CXX='-lCstd -lCrun'
11254 ;;
11255 esac
11256 ;;
11257 esac
11258
11259
11260 case " $postdeps_CXX " in
11261 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11262 esac
11263
11264 lt_prog_compiler_wl_CXX=
11265 lt_prog_compiler_pic_CXX=
11266 lt_prog_compiler_static_CXX=
11267
11268 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11269 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11270
11271 # C++ specific cases for pic, static, wl, etc.
11272 if test "$GXX" = yes; then
11273 lt_prog_compiler_wl_CXX='-Wl,'
11274 lt_prog_compiler_static_CXX='-static'
11275
11276 case $host_os in
11277 aix*)
11278 # All AIX code is PIC.
11279 if test "$host_cpu" = ia64; then
11280 # AIX 5 now supports IA64 processor
11281 lt_prog_compiler_static_CXX='-Bstatic'
11282 fi
11283 ;;
11284 amigaos*)
11285 # FIXME: we need at least 68020 code to build shared libraries, but
11286 # adding the `-m68020' flag to GCC prevents building anything better,
11287 # like `-m68040'.
11288 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11289 ;;
11290 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11291 # PIC is the default for these OSes.
11292 ;;
11293 mingw* | os2* | pw32*)
11294 # This hack is so that the source file can tell whether it is being
11295 # built for inclusion in a dll (and should export symbols for example).
11296 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11297 ;;
11298 darwin* | rhapsody*)
11299 # PIC is the default on this platform
11300 # Common symbols not allowed in MH_DYLIB files
11301 lt_prog_compiler_pic_CXX='-fno-common'
11302 ;;
11303 *djgpp*)
11304 # DJGPP does not support shared libraries at all
11305 lt_prog_compiler_pic_CXX=
11306 ;;
11307 interix3*)
11308 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11309 # Instead, we relocate shared libraries at runtime.
11310 ;;
11311 sysv4*MP*)
11312 if test -d /usr/nec; then
11313 lt_prog_compiler_pic_CXX=-Kconform_pic
11314 fi
11315 ;;
11316 hpux*)
11317 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11318 # not for PA HP-UX.
11319 case $host_cpu in
11320 hppa*64*|ia64*)
11321 ;;
11322 *)
11323 lt_prog_compiler_pic_CXX='-fPIC'
11324 ;;
11325 esac
11326 ;;
11327 *)
11328 lt_prog_compiler_pic_CXX='-fPIC'
11329 ;;
11330 esac
11331 else
11332 case $host_os in
11333 aix4* | aix5*)
11334 # All AIX code is PIC.
11335 if test "$host_cpu" = ia64; then
11336 # AIX 5 now supports IA64 processor
11337 lt_prog_compiler_static_CXX='-Bstatic'
11338 else
11339 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11340 fi
11341 ;;
11342 chorus*)
11343 case $cc_basename in
11344 cxch68*)
11345 # Green Hills C++ Compiler
11346 # _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"
11347 ;;
11348 esac
11349 ;;
11350 darwin*)
11351 # PIC is the default on this platform
11352 # Common symbols not allowed in MH_DYLIB files
11353 case $cc_basename in
11354 xlc*)
11355 lt_prog_compiler_pic_CXX='-qnocommon'
11356 lt_prog_compiler_wl_CXX='-Wl,'
11357 ;;
11358 esac
11359 ;;
11360 dgux*)
11361 case $cc_basename in
11362 ec++*)
11363 lt_prog_compiler_pic_CXX='-KPIC'
11364 ;;
11365 ghcx*)
11366 # Green Hills C++ Compiler
11367 lt_prog_compiler_pic_CXX='-pic'
11368 ;;
11369 *)
11370 ;;
11371 esac
11372 ;;
11373 freebsd* | kfreebsd*-gnu | dragonfly*)
11374 # FreeBSD uses GNU C++
11375 ;;
11376 hpux9* | hpux10* | hpux11*)
11377 case $cc_basename in
11378 CC*)
11379 lt_prog_compiler_wl_CXX='-Wl,'
11380 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11381 if test "$host_cpu" != ia64; then
11382 lt_prog_compiler_pic_CXX='+Z'
11383 fi
11384 ;;
11385 aCC*)
11386 lt_prog_compiler_wl_CXX='-Wl,'
11387 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11388 case $host_cpu in
11389 hppa*64*|ia64*)
11390 # +Z the default
11391 ;;
11392 *)
11393 lt_prog_compiler_pic_CXX='+Z'
11394 ;;
11395 esac
11396 ;;
11397 *)
11398 ;;
11399 esac
11400 ;;
11401 interix*)
11402 # This is c89, which is MS Visual C++ (no shared libs)
11403 # Anyone wants to do a port?
11404 ;;
11405 irix5* | irix6* | nonstopux*)
11406 case $cc_basename in
11407 CC*)
11408 lt_prog_compiler_wl_CXX='-Wl,'
11409 lt_prog_compiler_static_CXX='-non_shared'
11410 # CC pic flag -KPIC is the default.
11411 ;;
11412 *)
11413 ;;
11414 esac
11415 ;;
11416 linux*)
11417 case $cc_basename in
11418 KCC*)
11419 # KAI C++ Compiler
11420 lt_prog_compiler_wl_CXX='--backend -Wl,'
11421 lt_prog_compiler_pic_CXX='-fPIC'
11422 ;;
11423 icpc* | ecpc*)
11424 # Intel C++
11425 lt_prog_compiler_wl_CXX='-Wl,'
11426 lt_prog_compiler_pic_CXX='-KPIC'
11427 lt_prog_compiler_static_CXX='-static'
11428 ;;
11429 pgCC*)
11430 # Portland Group C++ compiler.
11431 lt_prog_compiler_wl_CXX='-Wl,'
11432 lt_prog_compiler_pic_CXX='-fpic'
11433 lt_prog_compiler_static_CXX='-Bstatic'
11434 ;;
11435 cxx*)
11436 # Compaq C++
11437 # Make sure the PIC flag is empty. It appears that all Alpha
11438 # Linux and Compaq Tru64 Unix objects are PIC.
11439 lt_prog_compiler_pic_CXX=
11440 lt_prog_compiler_static_CXX='-non_shared'
11441 ;;
11442 *)
11443 ;;
11444 esac
11445 ;;
11446 lynxos*)
11447 ;;
11448 m88k*)
11449 ;;
11450 mvs*)
11451 case $cc_basename in
11452 cxx*)
11453 lt_prog_compiler_pic_CXX='-W c,exportall'
11454 ;;
11455 *)
11456 ;;
11457 esac
11458 ;;
11459 netbsd*)
11460 ;;
11461 osf3* | osf4* | osf5*)
11462 case $cc_basename in
11463 KCC*)
11464 lt_prog_compiler_wl_CXX='--backend -Wl,'
11465 ;;
11466 RCC*)
11467 # Rational C++ 2.4.1
11468 lt_prog_compiler_pic_CXX='-pic'
11469 ;;
11470 cxx*)
11471 # Digital/Compaq C++
11472 lt_prog_compiler_wl_CXX='-Wl,'
11473 # Make sure the PIC flag is empty. It appears that all Alpha
11474 # Linux and Compaq Tru64 Unix objects are PIC.
11475 lt_prog_compiler_pic_CXX=
11476 lt_prog_compiler_static_CXX='-non_shared'
11477 ;;
11478 *)
11479 ;;
11480 esac
11481 ;;
11482 psos*)
11483 ;;
11484 solaris*)
11485 case $cc_basename in
11486 CC*)
11487 # Sun C++ 4.2, 5.x and Centerline C++
11488 lt_prog_compiler_pic_CXX='-KPIC'
11489 lt_prog_compiler_static_CXX='-Bstatic'
11490 lt_prog_compiler_wl_CXX='-Qoption ld '
11491 ;;
11492 gcx*)
11493 # Green Hills C++ Compiler
11494 lt_prog_compiler_pic_CXX='-PIC'
11495 ;;
11496 *)
11497 ;;
11498 esac
11499 ;;
11500 sunos4*)
11501 case $cc_basename in
11502 CC*)
11503 # Sun C++ 4.x
11504 lt_prog_compiler_pic_CXX='-pic'
11505 lt_prog_compiler_static_CXX='-Bstatic'
11506 ;;
11507 lcc*)
11508 # Lucid
11509 lt_prog_compiler_pic_CXX='-pic'
11510 ;;
11511 *)
11512 ;;
11513 esac
11514 ;;
11515 tandem*)
11516 case $cc_basename in
11517 NCC*)
11518 # NonStop-UX NCC 3.20
11519 lt_prog_compiler_pic_CXX='-KPIC'
11520 ;;
11521 *)
11522 ;;
11523 esac
11524 ;;
11525 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11526 case $cc_basename in
11527 CC*)
11528 lt_prog_compiler_wl_CXX='-Wl,'
11529 lt_prog_compiler_pic_CXX='-KPIC'
11530 lt_prog_compiler_static_CXX='-Bstatic'
11531 ;;
11532 esac
11533 ;;
11534 vxworks*)
11535 ;;
11536 *)
11537 lt_prog_compiler_can_build_shared_CXX=no
11538 ;;
11539 esac
11540 fi
11541
11542 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11543 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11544
11545 #
11546 # Check to make sure the PIC flag actually works.
11547 #
11548 if test -n "$lt_prog_compiler_pic_CXX"; then
11549
11550 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11551 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11552 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
11554 else
11555 lt_prog_compiler_pic_works_CXX=no
11556 ac_outfile=conftest.$ac_objext
11557 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11558 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11559 # Insert the option either (1) after the last *FLAGS variable, or
11560 # (2) before a word containing "conftest.", or (3) at the end.
11561 # Note that $ac_compile itself does not contain backslashes and begins
11562 # with a dollar sign (not a hyphen), so the echo should work correctly.
11563 # The option is referenced via a variable to avoid confusing sed.
11564 lt_compile=`echo "$ac_compile" | $SED \
11565 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11567 -e 's:$: $lt_compiler_flag:'`
11568 (eval echo "\"\$as_me:11568: $lt_compile\"" >&5)
11569 (eval "$lt_compile" 2>conftest.err)
11570 ac_status=$?
11571 cat conftest.err >&5
11572 echo "$as_me:11572: \$? = $ac_status" >&5
11573 if (exit $ac_status) && test -s "$ac_outfile"; then
11574 # The compiler can only warn and ignore the option if not recognized
11575 # So say no if there are warnings other than the usual output.
11576 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11577 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11578 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11579 lt_prog_compiler_pic_works_CXX=yes
11580 fi
11581 fi
11582 $rm conftest*
11583
11584 fi
11585 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11586 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11587
11588 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11589 case $lt_prog_compiler_pic_CXX in
11590 "" | " "*) ;;
11591 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11592 esac
11593 else
11594 lt_prog_compiler_pic_CXX=
11595 lt_prog_compiler_can_build_shared_CXX=no
11596 fi
11597
11598 fi
11599 case $host_os in
11600 # For platforms which do not support PIC, -DPIC is meaningless:
11601 *djgpp*)
11602 lt_prog_compiler_pic_CXX=
11603 ;;
11604 *)
11605 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11606 ;;
11607 esac
11608
11609 #
11610 # Check to make sure the static flag actually works.
11611 #
11612 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11613 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11614 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11615 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11616 echo $ECHO_N "(cached) $ECHO_C" >&6
11617 else
11618 lt_prog_compiler_static_works_CXX=no
11619 save_LDFLAGS="$LDFLAGS"
11620 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11621 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11622 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11623 # The linker can only warn and ignore the option if not recognized
11624 # So say no if there are warnings
11625 if test -s conftest.err; then
11626 # Append any errors to the config.log.
11627 cat conftest.err 1>&5
11628 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11629 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11630 if diff conftest.exp conftest.er2 >/dev/null; then
11631 lt_prog_compiler_static_works_CXX=yes
11632 fi
11633 else
11634 lt_prog_compiler_static_works_CXX=yes
11635 fi
11636 fi
11637 $rm conftest*
11638 LDFLAGS="$save_LDFLAGS"
11639
11640 fi
11641 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11642 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11643
11644 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11645 :
11646 else
11647 lt_prog_compiler_static_CXX=
11648 fi
11649
11650
11651 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11652 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11653 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11654 echo $ECHO_N "(cached) $ECHO_C" >&6
11655 else
11656 lt_cv_prog_compiler_c_o_CXX=no
11657 $rm -r conftest 2>/dev/null
11658 mkdir conftest
11659 cd conftest
11660 mkdir out
11661 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11662
11663 lt_compiler_flag="-o out/conftest2.$ac_objext"
11664 # Insert the option either (1) after the last *FLAGS variable, or
11665 # (2) before a word containing "conftest.", or (3) at the end.
11666 # Note that $ac_compile itself does not contain backslashes and begins
11667 # with a dollar sign (not a hyphen), so the echo should work correctly.
11668 lt_compile=`echo "$ac_compile" | $SED \
11669 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11671 -e 's:$: $lt_compiler_flag:'`
11672 (eval echo "\"\$as_me:11672: $lt_compile\"" >&5)
11673 (eval "$lt_compile" 2>out/conftest.err)
11674 ac_status=$?
11675 cat out/conftest.err >&5
11676 echo "$as_me:11676: \$? = $ac_status" >&5
11677 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11678 then
11679 # The compiler can only warn and ignore the option if not recognized
11680 # So say no if there are warnings
11681 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11682 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11683 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11684 lt_cv_prog_compiler_c_o_CXX=yes
11685 fi
11686 fi
11687 chmod u+w . 2>&5
11688 $rm conftest*
11689 # SGI C++ compiler will create directory out/ii_files/ for
11690 # template instantiation
11691 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11692 $rm out/* && rmdir out
11693 cd ..
11694 rmdir conftest
11695 $rm conftest*
11696
11697 fi
11698 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11699 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11700
11701
11702 hard_links="nottested"
11703 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11704 # do not overwrite the value of need_locks provided by the user
11705 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11706 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11707 hard_links=yes
11708 $rm conftest*
11709 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11710 touch conftest.a
11711 ln conftest.a conftest.b 2>&5 || hard_links=no
11712 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11713 echo "$as_me:$LINENO: result: $hard_links" >&5
11714 echo "${ECHO_T}$hard_links" >&6
11715 if test "$hard_links" = no; then
11716 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11717 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11718 need_locks=warn
11719 fi
11720 else
11721 need_locks=no
11722 fi
11723
11724 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11725 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11726
11727 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11728 case $host_os in
11729 aix4* | aix5*)
11730 # If we're using GNU nm, then we don't want the "-C" option.
11731 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11732 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11733 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11734 else
11735 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11736 fi
11737 ;;
11738 pw32*)
11739 export_symbols_cmds_CXX="$ltdll_cmds"
11740 ;;
11741 cygwin* | mingw*)
11742 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11743 ;;
11744 *)
11745 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11746 ;;
11747 esac
11748
11749 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11750 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11751 test "$ld_shlibs_CXX" = no && can_build_shared=no
11752
11753 #
11754 # Do we need to explicitly link libc?
11755 #
11756 case "x$archive_cmds_need_lc_CXX" in
11757 x|xyes)
11758 # Assume -lc should be added
11759 archive_cmds_need_lc_CXX=yes
11760
11761 if test "$enable_shared" = yes && test "$GCC" = yes; then
11762 case $archive_cmds_CXX in
11763 *'~'*)
11764 # FIXME: we may have to deal with multi-command sequences.
11765 ;;
11766 '$CC '*)
11767 # Test whether the compiler implicitly links with -lc since on some
11768 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11769 # to ld, don't add -lc before -lgcc.
11770 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11771 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11772 $rm conftest*
11773 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11774
11775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11776 (eval $ac_compile) 2>&5
11777 ac_status=$?
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } 2>conftest.err; then
11780 soname=conftest
11781 lib=conftest
11782 libobjs=conftest.$ac_objext
11783 deplibs=
11784 wl=$lt_prog_compiler_wl_CXX
11785 pic_flag=$lt_prog_compiler_pic_CXX
11786 compiler_flags=-v
11787 linker_flags=-v
11788 verstring=
11789 output_objdir=.
11790 libname=conftest
11791 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11792 allow_undefined_flag_CXX=
11793 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11794 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11795 ac_status=$?
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); }
11798 then
11799 archive_cmds_need_lc_CXX=no
11800 else
11801 archive_cmds_need_lc_CXX=yes
11802 fi
11803 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11804 else
11805 cat conftest.err 1>&5
11806 fi
11807 $rm conftest*
11808 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11809 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11810 ;;
11811 esac
11812 fi
11813 ;;
11814 esac
11815
11816 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11817 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11818 library_names_spec=
11819 libname_spec='lib$name'
11820 soname_spec=
11821 shrext_cmds=".so"
11822 postinstall_cmds=
11823 postuninstall_cmds=
11824 finish_cmds=
11825 finish_eval=
11826 shlibpath_var=
11827 shlibpath_overrides_runpath=unknown
11828 version_type=none
11829 dynamic_linker="$host_os ld.so"
11830 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11831 if test "$GCC" = yes; then
11832 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11833 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11834 # if the path contains ";" then we assume it to be the separator
11835 # otherwise default to the standard path separator (i.e. ":") - it is
11836 # assumed that no part of a normal pathname contains ";" but that should
11837 # okay in the real world where ";" in dirpaths is itself problematic.
11838 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11839 else
11840 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11841 fi
11842 else
11843 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11844 fi
11845 need_lib_prefix=unknown
11846 hardcode_into_libs=no
11847
11848 # when you set need_version to no, make sure it does not cause -set_version
11849 # flags to be left without arguments
11850 need_version=unknown
11851
11852 case $host_os in
11853 aix3*)
11854 version_type=linux
11855 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11856 shlibpath_var=LIBPATH
11857
11858 # AIX 3 has no versioning support, so we append a major version to the name.
11859 soname_spec='${libname}${release}${shared_ext}$major'
11860 ;;
11861
11862 aix4* | aix5*)
11863 version_type=linux
11864 need_lib_prefix=no
11865 need_version=no
11866 hardcode_into_libs=yes
11867 if test "$host_cpu" = ia64; then
11868 # AIX 5 supports IA64
11869 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11870 shlibpath_var=LD_LIBRARY_PATH
11871 else
11872 # With GCC up to 2.95.x, collect2 would create an import file
11873 # for dependence libraries. The import file would start with
11874 # the line `#! .'. This would cause the generated library to
11875 # depend on `.', always an invalid library. This was fixed in
11876 # development snapshots of GCC prior to 3.0.
11877 case $host_os in
11878 aix4 | aix4.[01] | aix4.[01].*)
11879 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11880 echo ' yes '
11881 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11882 :
11883 else
11884 can_build_shared=no
11885 fi
11886 ;;
11887 esac
11888 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11889 # soname into executable. Probably we can add versioning support to
11890 # collect2, so additional links can be useful in future.
11891 if test "$aix_use_runtimelinking" = yes; then
11892 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11893 # instead of lib<name>.a to let people know that these are not
11894 # typical AIX shared libraries.
11895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11896 else
11897 # We preserve .a as extension for shared libraries through AIX4.2
11898 # and later when we are not doing run time linking.
11899 library_names_spec='${libname}${release}.a $libname.a'
11900 soname_spec='${libname}${release}${shared_ext}$major'
11901 fi
11902 shlibpath_var=LIBPATH
11903 fi
11904 ;;
11905
11906 amigaos*)
11907 library_names_spec='$libname.ixlibrary $libname.a'
11908 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11909 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'
11910 ;;
11911
11912 beos*)
11913 library_names_spec='${libname}${shared_ext}'
11914 dynamic_linker="$host_os ld.so"
11915 shlibpath_var=LIBRARY_PATH
11916 ;;
11917
11918 bsdi[45]*)
11919 version_type=linux
11920 need_version=no
11921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11922 soname_spec='${libname}${release}${shared_ext}$major'
11923 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11924 shlibpath_var=LD_LIBRARY_PATH
11925 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11926 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11927 # the default ld.so.conf also contains /usr/contrib/lib and
11928 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11929 # libtool to hard-code these into programs
11930 ;;
11931
11932 cygwin* | mingw* | pw32*)
11933 version_type=windows
11934 shrext_cmds=".dll"
11935 need_version=no
11936 need_lib_prefix=no
11937
11938 case $GCC,$host_os in
11939 yes,cygwin* | yes,mingw* | yes,pw32*)
11940 library_names_spec='$libname.dll.a'
11941 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11942 postinstall_cmds='base_file=`basename \${file}`~
11943 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11944 dldir=$destdir/`dirname \$dlpath`~
11945 test -d \$dldir || mkdir -p \$dldir~
11946 $install_prog $dir/$dlname \$dldir/$dlname~
11947 chmod a+x \$dldir/$dlname'
11948 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11949 dlpath=$dir/\$dldll~
11950 $rm \$dlpath'
11951 shlibpath_overrides_runpath=yes
11952
11953 case $host_os in
11954 cygwin*)
11955 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11956 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11957 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11958 ;;
11959 mingw*)
11960 # MinGW DLLs use traditional 'lib' prefix
11961 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11962 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11963 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11964 # It is most probably a Windows format PATH printed by
11965 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11966 # path with ; separators, and with drive letters. We can handle the
11967 # drive letters (cygwin fileutils understands them), so leave them,
11968 # especially as we might pass files found there to a mingw objdump,
11969 # which wouldn't understand a cygwinified path. Ahh.
11970 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11971 else
11972 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11973 fi
11974 ;;
11975 pw32*)
11976 # pw32 DLLs use 'pw' prefix rather than 'lib'
11977 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11978 ;;
11979 esac
11980 ;;
11981
11982 *)
11983 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11984 ;;
11985 esac
11986 dynamic_linker='Win32 ld.exe'
11987 # FIXME: first we should search . and the directory the executable is in
11988 shlibpath_var=PATH
11989 ;;
11990
11991 darwin* | rhapsody*)
11992 dynamic_linker="$host_os dyld"
11993 version_type=darwin
11994 need_lib_prefix=no
11995 need_version=no
11996 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11997 soname_spec='${libname}${release}${major}$shared_ext'
11998 shlibpath_overrides_runpath=yes
11999 shlibpath_var=DYLD_LIBRARY_PATH
12000 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12001 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12002 if test "$GCC" = yes; then
12003 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12004 else
12005 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12006 fi
12007 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12008 ;;
12009
12010 dgux*)
12011 version_type=linux
12012 need_lib_prefix=no
12013 need_version=no
12014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12015 soname_spec='${libname}${release}${shared_ext}$major'
12016 shlibpath_var=LD_LIBRARY_PATH
12017 ;;
12018
12019 freebsd1*)
12020 dynamic_linker=no
12021 ;;
12022
12023 kfreebsd*-gnu)
12024 version_type=linux
12025 need_lib_prefix=no
12026 need_version=no
12027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12028 soname_spec='${libname}${release}${shared_ext}$major'
12029 shlibpath_var=LD_LIBRARY_PATH
12030 shlibpath_overrides_runpath=no
12031 hardcode_into_libs=yes
12032 dynamic_linker='GNU ld.so'
12033 ;;
12034
12035 freebsd* | dragonfly*)
12036 # DragonFly does not have aout. When/if they implement a new
12037 # versioning mechanism, adjust this.
12038 if test -x /usr/bin/objformat; then
12039 objformat=`/usr/bin/objformat`
12040 else
12041 case $host_os in
12042 freebsd[123]*) objformat=aout ;;
12043 *) objformat=elf ;;
12044 esac
12045 fi
12046 version_type=freebsd-$objformat
12047 case $version_type in
12048 freebsd-elf*)
12049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12050 need_version=no
12051 need_lib_prefix=no
12052 ;;
12053 freebsd-*)
12054 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12055 need_version=yes
12056 ;;
12057 esac
12058 shlibpath_var=LD_LIBRARY_PATH
12059 case $host_os in
12060 freebsd2*)
12061 shlibpath_overrides_runpath=yes
12062 ;;
12063 freebsd3.[01]* | freebsdelf3.[01]*)
12064 shlibpath_overrides_runpath=yes
12065 hardcode_into_libs=yes
12066 ;;
12067 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12068 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12069 shlibpath_overrides_runpath=no
12070 hardcode_into_libs=yes
12071 ;;
12072 freebsd*) # from 4.6 on
12073 shlibpath_overrides_runpath=yes
12074 hardcode_into_libs=yes
12075 ;;
12076 esac
12077 ;;
12078
12079 gnu*)
12080 version_type=linux
12081 need_lib_prefix=no
12082 need_version=no
12083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12084 soname_spec='${libname}${release}${shared_ext}$major'
12085 shlibpath_var=LD_LIBRARY_PATH
12086 hardcode_into_libs=yes
12087 ;;
12088
12089 hpux9* | hpux10* | hpux11*)
12090 # Give a soname corresponding to the major version so that dld.sl refuses to
12091 # link against other versions.
12092 version_type=sunos
12093 need_lib_prefix=no
12094 need_version=no
12095 case $host_cpu in
12096 ia64*)
12097 shrext_cmds='.so'
12098 hardcode_into_libs=yes
12099 dynamic_linker="$host_os dld.so"
12100 shlibpath_var=LD_LIBRARY_PATH
12101 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12103 soname_spec='${libname}${release}${shared_ext}$major'
12104 if test "X$HPUX_IA64_MODE" = X32; then
12105 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12106 else
12107 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12108 fi
12109 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12110 ;;
12111 hppa*64*)
12112 shrext_cmds='.sl'
12113 hardcode_into_libs=yes
12114 dynamic_linker="$host_os dld.sl"
12115 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12116 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12118 soname_spec='${libname}${release}${shared_ext}$major'
12119 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12120 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12121 ;;
12122 *)
12123 shrext_cmds='.sl'
12124 dynamic_linker="$host_os dld.sl"
12125 shlibpath_var=SHLIB_PATH
12126 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12128 soname_spec='${libname}${release}${shared_ext}$major'
12129 ;;
12130 esac
12131 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12132 postinstall_cmds='chmod 555 $lib'
12133 ;;
12134
12135 interix3*)
12136 version_type=linux
12137 need_lib_prefix=no
12138 need_version=no
12139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12140 soname_spec='${libname}${release}${shared_ext}$major'
12141 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12142 shlibpath_var=LD_LIBRARY_PATH
12143 shlibpath_overrides_runpath=no
12144 hardcode_into_libs=yes
12145 ;;
12146
12147 irix5* | irix6* | nonstopux*)
12148 case $host_os in
12149 nonstopux*) version_type=nonstopux ;;
12150 *)
12151 if test "$lt_cv_prog_gnu_ld" = yes; then
12152 version_type=linux
12153 else
12154 version_type=irix
12155 fi ;;
12156 esac
12157 need_lib_prefix=no
12158 need_version=no
12159 soname_spec='${libname}${release}${shared_ext}$major'
12160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12161 case $host_os in
12162 irix5* | nonstopux*)
12163 libsuff= shlibsuff=
12164 ;;
12165 *)
12166 case $LD in # libtool.m4 will add one of these switches to LD
12167 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12168 libsuff= shlibsuff= libmagic=32-bit;;
12169 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12170 libsuff=32 shlibsuff=N32 libmagic=N32;;
12171 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12172 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12173 *) libsuff= shlibsuff= libmagic=never-match;;
12174 esac
12175 ;;
12176 esac
12177 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12178 shlibpath_overrides_runpath=no
12179 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12180 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12181 hardcode_into_libs=yes
12182 ;;
12183
12184 # No shared lib support for Linux oldld, aout, or coff.
12185 linux*oldld* | linux*aout* | linux*coff*)
12186 dynamic_linker=no
12187 ;;
12188
12189 # This must be Linux ELF.
12190 linux*)
12191 version_type=linux
12192 need_lib_prefix=no
12193 need_version=no
12194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12195 soname_spec='${libname}${release}${shared_ext}$major'
12196 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12197 shlibpath_var=LD_LIBRARY_PATH
12198 shlibpath_overrides_runpath=no
12199 # This implies no fast_install, which is unacceptable.
12200 # Some rework will be needed to allow for fast_install
12201 # before this can be enabled.
12202 hardcode_into_libs=yes
12203
12204 # find out which ABI we are using
12205 libsuff=
12206 case "$host_cpu" in
12207 x86_64*|s390x*|powerpc64*)
12208 echo '#line 12208 "configure"' > conftest.$ac_ext
12209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12210 (eval $ac_compile) 2>&5
12211 ac_status=$?
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; then
12214 case `/usr/bin/file conftest.$ac_objext` in
12215 *64-bit*)
12216 libsuff=64
12217 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12218 ;;
12219 esac
12220 fi
12221 rm -rf conftest*
12222 ;;
12223 esac
12224
12225 # Append ld.so.conf contents to the search path
12226 if test -f /etc/ld.so.conf; then
12227 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12228 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12229 fi
12230
12231 # We used to test for /lib/ld.so.1 and disable shared libraries on
12232 # powerpc, because MkLinux only supported shared libraries with the
12233 # GNU dynamic linker. Since this was broken with cross compilers,
12234 # most powerpc-linux boxes support dynamic linking these days and
12235 # people can always --disable-shared, the test was removed, and we
12236 # assume the GNU/Linux dynamic linker is in use.
12237 dynamic_linker='GNU/Linux ld.so'
12238 ;;
12239
12240 knetbsd*-gnu)
12241 version_type=linux
12242 need_lib_prefix=no
12243 need_version=no
12244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12245 soname_spec='${libname}${release}${shared_ext}$major'
12246 shlibpath_var=LD_LIBRARY_PATH
12247 shlibpath_overrides_runpath=no
12248 hardcode_into_libs=yes
12249 dynamic_linker='GNU ld.so'
12250 ;;
12251
12252 netbsd*)
12253 version_type=sunos
12254 need_lib_prefix=no
12255 need_version=no
12256 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12258 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12259 dynamic_linker='NetBSD (a.out) ld.so'
12260 else
12261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12262 soname_spec='${libname}${release}${shared_ext}$major'
12263 dynamic_linker='NetBSD ld.elf_so'
12264 fi
12265 shlibpath_var=LD_LIBRARY_PATH
12266 shlibpath_overrides_runpath=yes
12267 hardcode_into_libs=yes
12268 ;;
12269
12270 newsos6)
12271 version_type=linux
12272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12273 shlibpath_var=LD_LIBRARY_PATH
12274 shlibpath_overrides_runpath=yes
12275 ;;
12276
12277 nto-qnx*)
12278 version_type=linux
12279 need_lib_prefix=no
12280 need_version=no
12281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12282 soname_spec='${libname}${release}${shared_ext}$major'
12283 shlibpath_var=LD_LIBRARY_PATH
12284 shlibpath_overrides_runpath=yes
12285 ;;
12286
12287 openbsd*)
12288 version_type=sunos
12289 sys_lib_dlsearch_path_spec="/usr/lib"
12290 need_lib_prefix=no
12291 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12292 case $host_os in
12293 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12294 *) need_version=no ;;
12295 esac
12296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12297 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12298 shlibpath_var=LD_LIBRARY_PATH
12299 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12300 case $host_os in
12301 openbsd2.[89] | openbsd2.[89].*)
12302 shlibpath_overrides_runpath=no
12303 ;;
12304 *)
12305 shlibpath_overrides_runpath=yes
12306 ;;
12307 esac
12308 else
12309 shlibpath_overrides_runpath=yes
12310 fi
12311 ;;
12312
12313 os2*)
12314 libname_spec='$name'
12315 shrext_cmds=".dll"
12316 need_lib_prefix=no
12317 library_names_spec='$libname${shared_ext} $libname.a'
12318 dynamic_linker='OS/2 ld.exe'
12319 shlibpath_var=LIBPATH
12320 ;;
12321
12322 osf3* | osf4* | osf5*)
12323 version_type=osf
12324 need_lib_prefix=no
12325 need_version=no
12326 soname_spec='${libname}${release}${shared_ext}$major'
12327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12328 shlibpath_var=LD_LIBRARY_PATH
12329 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12330 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12331 ;;
12332
12333 solaris*)
12334 version_type=linux
12335 need_lib_prefix=no
12336 need_version=no
12337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12338 soname_spec='${libname}${release}${shared_ext}$major'
12339 shlibpath_var=LD_LIBRARY_PATH
12340 shlibpath_overrides_runpath=yes
12341 hardcode_into_libs=yes
12342 # ldd complains unless libraries are executable
12343 postinstall_cmds='chmod +x $lib'
12344 ;;
12345
12346 sunos4*)
12347 version_type=sunos
12348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12349 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12350 shlibpath_var=LD_LIBRARY_PATH
12351 shlibpath_overrides_runpath=yes
12352 if test "$with_gnu_ld" = yes; then
12353 need_lib_prefix=no
12354 fi
12355 need_version=yes
12356 ;;
12357
12358 sysv4 | sysv4.3*)
12359 version_type=linux
12360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12361 soname_spec='${libname}${release}${shared_ext}$major'
12362 shlibpath_var=LD_LIBRARY_PATH
12363 case $host_vendor in
12364 sni)
12365 shlibpath_overrides_runpath=no
12366 need_lib_prefix=no
12367 export_dynamic_flag_spec='${wl}-Blargedynsym'
12368 runpath_var=LD_RUN_PATH
12369 ;;
12370 siemens)
12371 need_lib_prefix=no
12372 ;;
12373 motorola)
12374 need_lib_prefix=no
12375 need_version=no
12376 shlibpath_overrides_runpath=no
12377 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12378 ;;
12379 esac
12380 ;;
12381
12382 sysv4*MP*)
12383 if test -d /usr/nec ;then
12384 version_type=linux
12385 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12386 soname_spec='$libname${shared_ext}.$major'
12387 shlibpath_var=LD_LIBRARY_PATH
12388 fi
12389 ;;
12390
12391 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12392 version_type=freebsd-elf
12393 need_lib_prefix=no
12394 need_version=no
12395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12396 soname_spec='${libname}${release}${shared_ext}$major'
12397 shlibpath_var=LD_LIBRARY_PATH
12398 hardcode_into_libs=yes
12399 if test "$with_gnu_ld" = yes; then
12400 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12401 shlibpath_overrides_runpath=no
12402 else
12403 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12404 shlibpath_overrides_runpath=yes
12405 case $host_os in
12406 sco3.2v5*)
12407 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12408 ;;
12409 esac
12410 fi
12411 sys_lib_dlsearch_path_spec='/usr/lib'
12412 ;;
12413
12414 uts4*)
12415 version_type=linux
12416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12417 soname_spec='${libname}${release}${shared_ext}$major'
12418 shlibpath_var=LD_LIBRARY_PATH
12419 ;;
12420
12421 *)
12422 dynamic_linker=no
12423 ;;
12424 esac
12425 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12426 echo "${ECHO_T}$dynamic_linker" >&6
12427 test "$dynamic_linker" = no && can_build_shared=no
12428
12429 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12430 if test "$GCC" = yes; then
12431 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12432 fi
12433
12434 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12435 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12436 hardcode_action_CXX=
12437 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12438 test -n "$runpath_var_CXX" || \
12439 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12440
12441 # We can hardcode non-existant directories.
12442 if test "$hardcode_direct_CXX" != no &&
12443 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12444 # have to relink, otherwise we might link with an installed library
12445 # when we should be linking with a yet-to-be-installed one
12446 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12447 test "$hardcode_minus_L_CXX" != no; then
12448 # Linking always hardcodes the temporary library directory.
12449 hardcode_action_CXX=relink
12450 else
12451 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12452 hardcode_action_CXX=immediate
12453 fi
12454 else
12455 # We cannot hardcode anything, or else we can only hardcode existing
12456 # directories.
12457 hardcode_action_CXX=unsupported
12458 fi
12459 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12460 echo "${ECHO_T}$hardcode_action_CXX" >&6
12461
12462 if test "$hardcode_action_CXX" = relink; then
12463 # Fast installation is not supported
12464 enable_fast_install=no
12465 elif test "$shlibpath_overrides_runpath" = yes ||
12466 test "$enable_shared" = no; then
12467 # Fast installation is not necessary
12468 enable_fast_install=needless
12469 fi
12470
12471
12472 # The else clause should only fire when bootstrapping the
12473 # libtool distribution, otherwise you forgot to ship ltmain.sh
12474 # with your package, and you will get complaints that there are
12475 # no rules to generate ltmain.sh.
12476 if test -f "$ltmain"; then
12477 # See if we are running on zsh, and set the options which allow our commands through
12478 # without removal of \ escapes.
12479 if test -n "${ZSH_VERSION+set}" ; then
12480 setopt NO_GLOB_SUBST
12481 fi
12482 # Now quote all the things that may contain metacharacters while being
12483 # careful not to overquote the AC_SUBSTed values. We take copies of the
12484 # variables and quote the copies for generation of the libtool script.
12485 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12486 SED SHELL STRIP \
12487 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12488 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12489 deplibs_check_method reload_flag reload_cmds need_locks \
12490 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12491 lt_cv_sys_global_symbol_to_c_name_address \
12492 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12493 old_postinstall_cmds old_postuninstall_cmds \
12494 compiler_CXX \
12495 CC_CXX \
12496 LD_CXX \
12497 lt_prog_compiler_wl_CXX \
12498 lt_prog_compiler_pic_CXX \
12499 lt_prog_compiler_static_CXX \
12500 lt_prog_compiler_no_builtin_flag_CXX \
12501 export_dynamic_flag_spec_CXX \
12502 thread_safe_flag_spec_CXX \
12503 whole_archive_flag_spec_CXX \
12504 enable_shared_with_static_runtimes_CXX \
12505 old_archive_cmds_CXX \
12506 old_archive_from_new_cmds_CXX \
12507 predep_objects_CXX \
12508 postdep_objects_CXX \
12509 predeps_CXX \
12510 postdeps_CXX \
12511 compiler_lib_search_path_CXX \
12512 archive_cmds_CXX \
12513 archive_expsym_cmds_CXX \
12514 postinstall_cmds_CXX \
12515 postuninstall_cmds_CXX \
12516 old_archive_from_expsyms_cmds_CXX \
12517 allow_undefined_flag_CXX \
12518 no_undefined_flag_CXX \
12519 export_symbols_cmds_CXX \
12520 hardcode_libdir_flag_spec_CXX \
12521 hardcode_libdir_flag_spec_ld_CXX \
12522 hardcode_libdir_separator_CXX \
12523 hardcode_automatic_CXX \
12524 module_cmds_CXX \
12525 module_expsym_cmds_CXX \
12526 lt_cv_prog_compiler_c_o_CXX \
12527 exclude_expsyms_CXX \
12528 include_expsyms_CXX; do
12529
12530 case $var in
12531 old_archive_cmds_CXX | \
12532 old_archive_from_new_cmds_CXX | \
12533 archive_cmds_CXX | \
12534 archive_expsym_cmds_CXX | \
12535 module_cmds_CXX | \
12536 module_expsym_cmds_CXX | \
12537 old_archive_from_expsyms_cmds_CXX | \
12538 export_symbols_cmds_CXX | \
12539 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12540 postinstall_cmds | postuninstall_cmds | \
12541 old_postinstall_cmds | old_postuninstall_cmds | \
12542 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12543 # Double-quote double-evaled strings.
12544 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12545 ;;
12546 *)
12547 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12548 ;;
12549 esac
12550 done
12551
12552 case $lt_echo in
12553 *'\$0 --fallback-echo"')
12554 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12555 ;;
12556 esac
12557
12558 cfgfile="$ofile"
12559
12560 cat <<__EOF__ >> "$cfgfile"
12561 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12562
12563 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12564
12565 # Shell to use when invoking shell scripts.
12566 SHELL=$lt_SHELL
12567
12568 # Whether or not to build shared libraries.
12569 build_libtool_libs=$enable_shared
12570
12571 # Whether or not to build static libraries.
12572 build_old_libs=$enable_static
12573
12574 # Whether or not to add -lc for building shared libraries.
12575 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12576
12577 # Whether or not to disallow shared libs when runtime libs are static
12578 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12579
12580 # Whether or not to optimize for fast installation.
12581 fast_install=$enable_fast_install
12582
12583 # The host system.
12584 host_alias=$host_alias
12585 host=$host
12586 host_os=$host_os
12587
12588 # The build system.
12589 build_alias=$build_alias
12590 build=$build
12591 build_os=$build_os
12592
12593 # An echo program that does not interpret backslashes.
12594 echo=$lt_echo
12595
12596 # The archiver.
12597 AR=$lt_AR
12598 AR_FLAGS=$lt_AR_FLAGS
12599
12600 # A C compiler.
12601 LTCC=$lt_LTCC
12602
12603 # LTCC compiler flags.
12604 LTCFLAGS=$lt_LTCFLAGS
12605
12606 # A language-specific compiler.
12607 CC=$lt_compiler_CXX
12608
12609 # Is the compiler the GNU C compiler?
12610 with_gcc=$GCC_CXX
12611
12612 # An ERE matcher.
12613 EGREP=$lt_EGREP
12614
12615 # The linker used to build libraries.
12616 LD=$lt_LD_CXX
12617
12618 # Whether we need hard or soft links.
12619 LN_S=$lt_LN_S
12620
12621 # A BSD-compatible nm program.
12622 NM=$lt_NM
12623
12624 # A symbol stripping program
12625 STRIP=$lt_STRIP
12626
12627 # Used to examine libraries when file_magic_cmd begins "file"
12628 MAGIC_CMD=$MAGIC_CMD
12629
12630 # Used on cygwin: DLL creation program.
12631 DLLTOOL="$DLLTOOL"
12632
12633 # Used on cygwin: object dumper.
12634 OBJDUMP="$OBJDUMP"
12635
12636 # Used on cygwin: assembler.
12637 AS="$AS"
12638
12639 # The name of the directory that contains temporary libtool files.
12640 objdir=$objdir
12641
12642 # How to create reloadable object files.
12643 reload_flag=$lt_reload_flag
12644 reload_cmds=$lt_reload_cmds
12645
12646 # How to pass a linker flag through the compiler.
12647 wl=$lt_lt_prog_compiler_wl_CXX
12648
12649 # Object file suffix (normally "o").
12650 objext="$ac_objext"
12651
12652 # Old archive suffix (normally "a").
12653 libext="$libext"
12654
12655 # Shared library suffix (normally ".so").
12656 shrext_cmds='$shrext_cmds'
12657
12658 # Executable file suffix (normally "").
12659 exeext="$exeext"
12660
12661 # Additional compiler flags for building library objects.
12662 pic_flag=$lt_lt_prog_compiler_pic_CXX
12663 pic_mode=$pic_mode
12664
12665 # What is the maximum length of a command?
12666 max_cmd_len=$lt_cv_sys_max_cmd_len
12667
12668 # Does compiler simultaneously support -c and -o options?
12669 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12670
12671 # Must we lock files when doing compilation?
12672 need_locks=$lt_need_locks
12673
12674 # Do we need the lib prefix for modules?
12675 need_lib_prefix=$need_lib_prefix
12676
12677 # Do we need a version for libraries?
12678 need_version=$need_version
12679
12680 # Whether dlopen is supported.
12681 dlopen_support=$enable_dlopen
12682
12683 # Whether dlopen of programs is supported.
12684 dlopen_self=$enable_dlopen_self
12685
12686 # Whether dlopen of statically linked programs is supported.
12687 dlopen_self_static=$enable_dlopen_self_static
12688
12689 # Compiler flag to prevent dynamic linking.
12690 link_static_flag=$lt_lt_prog_compiler_static_CXX
12691
12692 # Compiler flag to turn off builtin functions.
12693 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12694
12695 # Compiler flag to allow reflexive dlopens.
12696 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12697
12698 # Compiler flag to generate shared objects directly from archives.
12699 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12700
12701 # Compiler flag to generate thread-safe objects.
12702 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12703
12704 # Library versioning type.
12705 version_type=$version_type
12706
12707 # Format of library name prefix.
12708 libname_spec=$lt_libname_spec
12709
12710 # List of archive names. First name is the real one, the rest are links.
12711 # The last name is the one that the linker finds with -lNAME.
12712 library_names_spec=$lt_library_names_spec
12713
12714 # The coded name of the library, if different from the real name.
12715 soname_spec=$lt_soname_spec
12716
12717 # Commands used to build and install an old-style archive.
12718 RANLIB=$lt_RANLIB
12719 old_archive_cmds=$lt_old_archive_cmds_CXX
12720 old_postinstall_cmds=$lt_old_postinstall_cmds
12721 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12722
12723 # Create an old-style archive from a shared archive.
12724 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12725
12726 # Create a temporary old-style archive to link instead of a shared archive.
12727 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12728
12729 # Commands used to build and install a shared archive.
12730 archive_cmds=$lt_archive_cmds_CXX
12731 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12732 postinstall_cmds=$lt_postinstall_cmds
12733 postuninstall_cmds=$lt_postuninstall_cmds
12734
12735 # Commands used to build a loadable module (assumed same as above if empty)
12736 module_cmds=$lt_module_cmds_CXX
12737 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12738
12739 # Commands to strip libraries.
12740 old_striplib=$lt_old_striplib
12741 striplib=$lt_striplib
12742
12743 # Dependencies to place before the objects being linked to create a
12744 # shared library.
12745 predep_objects=$lt_predep_objects_CXX
12746
12747 # Dependencies to place after the objects being linked to create a
12748 # shared library.
12749 postdep_objects=$lt_postdep_objects_CXX
12750
12751 # Dependencies to place before the objects being linked to create a
12752 # shared library.
12753 predeps=$lt_predeps_CXX
12754
12755 # Dependencies to place after the objects being linked to create a
12756 # shared library.
12757 postdeps=$lt_postdeps_CXX
12758
12759 # The library search path used internally by the compiler when linking
12760 # a shared library.
12761 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12762
12763 # Method to check whether dependent libraries are shared objects.
12764 deplibs_check_method=$lt_deplibs_check_method
12765
12766 # Command to use when deplibs_check_method == file_magic.
12767 file_magic_cmd=$lt_file_magic_cmd
12768
12769 # Flag that allows shared libraries with undefined symbols to be built.
12770 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12771
12772 # Flag that forces no undefined symbols.
12773 no_undefined_flag=$lt_no_undefined_flag_CXX
12774
12775 # Commands used to finish a libtool library installation in a directory.
12776 finish_cmds=$lt_finish_cmds
12777
12778 # Same as above, but a single script fragment to be evaled but not shown.
12779 finish_eval=$lt_finish_eval
12780
12781 # Take the output of nm and produce a listing of raw symbols and C names.
12782 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12783
12784 # Transform the output of nm in a proper C declaration
12785 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12786
12787 # Transform the output of nm in a C name address pair
12788 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12789
12790 # This is the shared library runtime path variable.
12791 runpath_var=$runpath_var
12792
12793 # This is the shared library path variable.
12794 shlibpath_var=$shlibpath_var
12795
12796 # Is shlibpath searched before the hard-coded library search path?
12797 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12798
12799 # How to hardcode a shared library path into an executable.
12800 hardcode_action=$hardcode_action_CXX
12801
12802 # Whether we should hardcode library paths into libraries.
12803 hardcode_into_libs=$hardcode_into_libs
12804
12805 # Flag to hardcode \$libdir into a binary during linking.
12806 # This must work even if \$libdir does not exist.
12807 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12808
12809 # If ld is used when linking, flag to hardcode \$libdir into
12810 # a binary during linking. This must work even if \$libdir does
12811 # not exist.
12812 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12813
12814 # Whether we need a single -rpath flag with a separated argument.
12815 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12816
12817 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12818 # resulting binary.
12819 hardcode_direct=$hardcode_direct_CXX
12820
12821 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12822 # resulting binary.
12823 hardcode_minus_L=$hardcode_minus_L_CXX
12824
12825 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12826 # the resulting binary.
12827 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12828
12829 # Set to yes if building a shared library automatically hardcodes DIR into the library
12830 # and all subsequent libraries and executables linked against it.
12831 hardcode_automatic=$hardcode_automatic_CXX
12832
12833 # Variables whose values should be saved in libtool wrapper scripts and
12834 # restored at relink time.
12835 variables_saved_for_relink="$variables_saved_for_relink"
12836
12837 # Whether libtool must link a program against all its dependency libraries.
12838 link_all_deplibs=$link_all_deplibs_CXX
12839
12840 # Compile-time system search path for libraries
12841 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12842
12843 # Run-time system search path for libraries
12844 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12845
12846 # Fix the shell variable \$srcfile for the compiler.
12847 fix_srcfile_path="$fix_srcfile_path_CXX"
12848
12849 # Set to yes if exported symbols are required.
12850 always_export_symbols=$always_export_symbols_CXX
12851
12852 # The commands to list exported symbols.
12853 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12854
12855 # The commands to extract the exported symbol list from a shared archive.
12856 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12857
12858 # Symbols that should not be listed in the preloaded symbols.
12859 exclude_expsyms=$lt_exclude_expsyms_CXX
12860
12861 # Symbols that must always be exported.
12862 include_expsyms=$lt_include_expsyms_CXX
12863
12864 # ### END LIBTOOL TAG CONFIG: $tagname
12865
12866 __EOF__
12867
12868
12869 else
12870 # If there is no Makefile yet, we rely on a make rule to execute
12871 # `config.status --recheck' to rerun these tests and create the
12872 # libtool script then.
12873 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12874 if test -f "$ltmain_in"; then
12875 test -f Makefile && make "$ltmain"
12876 fi
12877 fi
12878
12879
12880 ac_ext=c
12881 ac_cpp='$CPP $CPPFLAGS'
12882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12885
12886 CC=$lt_save_CC
12887 LDCXX=$LD
12888 LD=$lt_save_LD
12889 GCC=$lt_save_GCC
12890 with_gnu_ldcxx=$with_gnu_ld
12891 with_gnu_ld=$lt_save_with_gnu_ld
12892 lt_cv_path_LDCXX=$lt_cv_path_LD
12893 lt_cv_path_LD=$lt_save_path_LD
12894 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12895 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12896
12897 else
12898 tagname=""
12899 fi
12900 ;;
12901
12902 F77)
12903 if test -n "$F77" && test "X$F77" != "Xno"; then
12904
12905 ac_ext=f
12906 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12907 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12908 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12909
12910
12911 archive_cmds_need_lc_F77=no
12912 allow_undefined_flag_F77=
12913 always_export_symbols_F77=no
12914 archive_expsym_cmds_F77=
12915 export_dynamic_flag_spec_F77=
12916 hardcode_direct_F77=no
12917 hardcode_libdir_flag_spec_F77=
12918 hardcode_libdir_flag_spec_ld_F77=
12919 hardcode_libdir_separator_F77=
12920 hardcode_minus_L_F77=no
12921 hardcode_automatic_F77=no
12922 module_cmds_F77=
12923 module_expsym_cmds_F77=
12924 link_all_deplibs_F77=unknown
12925 old_archive_cmds_F77=$old_archive_cmds
12926 no_undefined_flag_F77=
12927 whole_archive_flag_spec_F77=
12928 enable_shared_with_static_runtimes_F77=no
12929
12930 # Source file extension for f77 test sources.
12931 ac_ext=f
12932
12933 # Object file extension for compiled f77 test sources.
12934 objext=o
12935 objext_F77=$objext
12936
12937 # Code to be used in simple compile tests
12938 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12939
12940 # Code to be used in simple link tests
12941 lt_simple_link_test_code=" program t\n end\n"
12942
12943 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12944
12945 # If no C compiler was specified, use CC.
12946 LTCC=${LTCC-"$CC"}
12947
12948 # If no C compiler flags were specified, use CFLAGS.
12949 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12950
12951 # Allow CC to be a program name with arguments.
12952 compiler=$CC
12953
12954
12955 # save warnings/boilerplate of simple test code
12956 ac_outfile=conftest.$ac_objext
12957 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12958 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12959 _lt_compiler_boilerplate=`cat conftest.err`
12960 $rm conftest*
12961
12962 ac_outfile=conftest.$ac_objext
12963 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12964 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12965 _lt_linker_boilerplate=`cat conftest.err`
12966 $rm conftest*
12967
12968
12969 # Allow CC to be a program name with arguments.
12970 lt_save_CC="$CC"
12971 CC=${F77-"f77"}
12972 compiler=$CC
12973 compiler_F77=$CC
12974 for cc_temp in $compiler""; do
12975 case $cc_temp in
12976 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12977 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12978 \-*) ;;
12979 *) break;;
12980 esac
12981 done
12982 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12983
12984
12985 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12986 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12987 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12988 echo "${ECHO_T}$can_build_shared" >&6
12989
12990 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12991 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12992 test "$can_build_shared" = "no" && enable_shared=no
12993
12994 # On AIX, shared libraries and static libraries use the same namespace, and
12995 # are all built from PIC.
12996 case $host_os in
12997 aix3*)
12998 test "$enable_shared" = yes && enable_static=no
12999 if test -n "$RANLIB"; then
13000 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13001 postinstall_cmds='$RANLIB $lib'
13002 fi
13003 ;;
13004 aix4* | aix5*)
13005 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13006 test "$enable_shared" = yes && enable_static=no
13007 fi
13008 ;;
13009 esac
13010 echo "$as_me:$LINENO: result: $enable_shared" >&5
13011 echo "${ECHO_T}$enable_shared" >&6
13012
13013 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13014 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13015 # Make sure either enable_shared or enable_static is yes.
13016 test "$enable_shared" = yes || enable_static=yes
13017 echo "$as_me:$LINENO: result: $enable_static" >&5
13018 echo "${ECHO_T}$enable_static" >&6
13019
13020 GCC_F77="$G77"
13021 LD_F77="$LD"
13022
13023 lt_prog_compiler_wl_F77=
13024 lt_prog_compiler_pic_F77=
13025 lt_prog_compiler_static_F77=
13026
13027 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13028 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13029
13030 if test "$GCC" = yes; then
13031 lt_prog_compiler_wl_F77='-Wl,'
13032 lt_prog_compiler_static_F77='-static'
13033
13034 case $host_os in
13035 aix*)
13036 # All AIX code is PIC.
13037 if test "$host_cpu" = ia64; then
13038 # AIX 5 now supports IA64 processor
13039 lt_prog_compiler_static_F77='-Bstatic'
13040 fi
13041 ;;
13042
13043 amigaos*)
13044 # FIXME: we need at least 68020 code to build shared libraries, but
13045 # adding the `-m68020' flag to GCC prevents building anything better,
13046 # like `-m68040'.
13047 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13048 ;;
13049
13050 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13051 # PIC is the default for these OSes.
13052 ;;
13053
13054 mingw* | pw32* | os2*)
13055 # This hack is so that the source file can tell whether it is being
13056 # built for inclusion in a dll (and should export symbols for example).
13057 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13058 ;;
13059
13060 darwin* | rhapsody*)
13061 # PIC is the default on this platform
13062 # Common symbols not allowed in MH_DYLIB files
13063 lt_prog_compiler_pic_F77='-fno-common'
13064 ;;
13065
13066 interix3*)
13067 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13068 # Instead, we relocate shared libraries at runtime.
13069 ;;
13070
13071 msdosdjgpp*)
13072 # Just because we use GCC doesn't mean we suddenly get shared libraries
13073 # on systems that don't support them.
13074 lt_prog_compiler_can_build_shared_F77=no
13075 enable_shared=no
13076 ;;
13077
13078 sysv4*MP*)
13079 if test -d /usr/nec; then
13080 lt_prog_compiler_pic_F77=-Kconform_pic
13081 fi
13082 ;;
13083
13084 hpux*)
13085 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13086 # not for PA HP-UX.
13087 case $host_cpu in
13088 hppa*64*|ia64*)
13089 # +Z the default
13090 ;;
13091 *)
13092 lt_prog_compiler_pic_F77='-fPIC'
13093 ;;
13094 esac
13095 ;;
13096
13097 *)
13098 lt_prog_compiler_pic_F77='-fPIC'
13099 ;;
13100 esac
13101 else
13102 # PORTME Check for flag to pass linker flags through the system compiler.
13103 case $host_os in
13104 aix*)
13105 lt_prog_compiler_wl_F77='-Wl,'
13106 if test "$host_cpu" = ia64; then
13107 # AIX 5 now supports IA64 processor
13108 lt_prog_compiler_static_F77='-Bstatic'
13109 else
13110 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13111 fi
13112 ;;
13113 darwin*)
13114 # PIC is the default on this platform
13115 # Common symbols not allowed in MH_DYLIB files
13116 case $cc_basename in
13117 xlc*)
13118 lt_prog_compiler_pic_F77='-qnocommon'
13119 lt_prog_compiler_wl_F77='-Wl,'
13120 ;;
13121 esac
13122 ;;
13123
13124 mingw* | pw32* | os2*)
13125 # This hack is so that the source file can tell whether it is being
13126 # built for inclusion in a dll (and should export symbols for example).
13127 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13128 ;;
13129
13130 hpux9* | hpux10* | hpux11*)
13131 lt_prog_compiler_wl_F77='-Wl,'
13132 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13133 # not for PA HP-UX.
13134 case $host_cpu in
13135 hppa*64*|ia64*)
13136 # +Z the default
13137 ;;
13138 *)
13139 lt_prog_compiler_pic_F77='+Z'
13140 ;;
13141 esac
13142 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13143 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13144 ;;
13145
13146 irix5* | irix6* | nonstopux*)
13147 lt_prog_compiler_wl_F77='-Wl,'
13148 # PIC (with -KPIC) is the default.
13149 lt_prog_compiler_static_F77='-non_shared'
13150 ;;
13151
13152 newsos6)
13153 lt_prog_compiler_pic_F77='-KPIC'
13154 lt_prog_compiler_static_F77='-Bstatic'
13155 ;;
13156
13157 linux*)
13158 case $cc_basename in
13159 icc* | ecc*)
13160 lt_prog_compiler_wl_F77='-Wl,'
13161 lt_prog_compiler_pic_F77='-KPIC'
13162 lt_prog_compiler_static_F77='-static'
13163 ;;
13164 pgcc* | pgf77* | pgf90* | pgf95*)
13165 # Portland Group compilers (*not* the Pentium gcc compiler,
13166 # which looks to be a dead project)
13167 lt_prog_compiler_wl_F77='-Wl,'
13168 lt_prog_compiler_pic_F77='-fpic'
13169 lt_prog_compiler_static_F77='-Bstatic'
13170 ;;
13171 ccc*)
13172 lt_prog_compiler_wl_F77='-Wl,'
13173 # All Alpha code is PIC.
13174 lt_prog_compiler_static_F77='-non_shared'
13175 ;;
13176 esac
13177 ;;
13178
13179 osf3* | osf4* | osf5*)
13180 lt_prog_compiler_wl_F77='-Wl,'
13181 # All OSF/1 code is PIC.
13182 lt_prog_compiler_static_F77='-non_shared'
13183 ;;
13184
13185 solaris*)
13186 lt_prog_compiler_pic_F77='-KPIC'
13187 lt_prog_compiler_static_F77='-Bstatic'
13188 case $cc_basename in
13189 f77* | f90* | f95*)
13190 lt_prog_compiler_wl_F77='-Qoption ld ';;
13191 *)
13192 lt_prog_compiler_wl_F77='-Wl,';;
13193 esac
13194 ;;
13195
13196 sunos4*)
13197 lt_prog_compiler_wl_F77='-Qoption ld '
13198 lt_prog_compiler_pic_F77='-PIC'
13199 lt_prog_compiler_static_F77='-Bstatic'
13200 ;;
13201
13202 sysv4 | sysv4.2uw2* | sysv4.3*)
13203 lt_prog_compiler_wl_F77='-Wl,'
13204 lt_prog_compiler_pic_F77='-KPIC'
13205 lt_prog_compiler_static_F77='-Bstatic'
13206 ;;
13207
13208 sysv4*MP*)
13209 if test -d /usr/nec ;then
13210 lt_prog_compiler_pic_F77='-Kconform_pic'
13211 lt_prog_compiler_static_F77='-Bstatic'
13212 fi
13213 ;;
13214
13215 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13216 lt_prog_compiler_wl_F77='-Wl,'
13217 lt_prog_compiler_pic_F77='-KPIC'
13218 lt_prog_compiler_static_F77='-Bstatic'
13219 ;;
13220
13221 unicos*)
13222 lt_prog_compiler_wl_F77='-Wl,'
13223 lt_prog_compiler_can_build_shared_F77=no
13224 ;;
13225
13226 uts4*)
13227 lt_prog_compiler_pic_F77='-pic'
13228 lt_prog_compiler_static_F77='-Bstatic'
13229 ;;
13230
13231 *)
13232 lt_prog_compiler_can_build_shared_F77=no
13233 ;;
13234 esac
13235 fi
13236
13237 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13238 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13239
13240 #
13241 # Check to make sure the PIC flag actually works.
13242 #
13243 if test -n "$lt_prog_compiler_pic_F77"; then
13244
13245 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13246 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13247 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13248 echo $ECHO_N "(cached) $ECHO_C" >&6
13249 else
13250 lt_prog_compiler_pic_works_F77=no
13251 ac_outfile=conftest.$ac_objext
13252 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13253 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13254 # Insert the option either (1) after the last *FLAGS variable, or
13255 # (2) before a word containing "conftest.", or (3) at the end.
13256 # Note that $ac_compile itself does not contain backslashes and begins
13257 # with a dollar sign (not a hyphen), so the echo should work correctly.
13258 # The option is referenced via a variable to avoid confusing sed.
13259 lt_compile=`echo "$ac_compile" | $SED \
13260 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13261 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13262 -e 's:$: $lt_compiler_flag:'`
13263 (eval echo "\"\$as_me:13263: $lt_compile\"" >&5)
13264 (eval "$lt_compile" 2>conftest.err)
13265 ac_status=$?
13266 cat conftest.err >&5
13267 echo "$as_me:13267: \$? = $ac_status" >&5
13268 if (exit $ac_status) && test -s "$ac_outfile"; then
13269 # The compiler can only warn and ignore the option if not recognized
13270 # So say no if there are warnings other than the usual output.
13271 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13272 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13273 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13274 lt_prog_compiler_pic_works_F77=yes
13275 fi
13276 fi
13277 $rm conftest*
13278
13279 fi
13280 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13281 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13282
13283 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13284 case $lt_prog_compiler_pic_F77 in
13285 "" | " "*) ;;
13286 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13287 esac
13288 else
13289 lt_prog_compiler_pic_F77=
13290 lt_prog_compiler_can_build_shared_F77=no
13291 fi
13292
13293 fi
13294 case $host_os in
13295 # For platforms which do not support PIC, -DPIC is meaningless:
13296 *djgpp*)
13297 lt_prog_compiler_pic_F77=
13298 ;;
13299 *)
13300 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13301 ;;
13302 esac
13303
13304 #
13305 # Check to make sure the static flag actually works.
13306 #
13307 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13308 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13309 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13310 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13311 echo $ECHO_N "(cached) $ECHO_C" >&6
13312 else
13313 lt_prog_compiler_static_works_F77=no
13314 save_LDFLAGS="$LDFLAGS"
13315 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13316 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13317 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13318 # The linker can only warn and ignore the option if not recognized
13319 # So say no if there are warnings
13320 if test -s conftest.err; then
13321 # Append any errors to the config.log.
13322 cat conftest.err 1>&5
13323 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13324 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13325 if diff conftest.exp conftest.er2 >/dev/null; then
13326 lt_prog_compiler_static_works_F77=yes
13327 fi
13328 else
13329 lt_prog_compiler_static_works_F77=yes
13330 fi
13331 fi
13332 $rm conftest*
13333 LDFLAGS="$save_LDFLAGS"
13334
13335 fi
13336 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13337 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13338
13339 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13340 :
13341 else
13342 lt_prog_compiler_static_F77=
13343 fi
13344
13345
13346 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13347 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13348 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13349 echo $ECHO_N "(cached) $ECHO_C" >&6
13350 else
13351 lt_cv_prog_compiler_c_o_F77=no
13352 $rm -r conftest 2>/dev/null
13353 mkdir conftest
13354 cd conftest
13355 mkdir out
13356 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13357
13358 lt_compiler_flag="-o out/conftest2.$ac_objext"
13359 # Insert the option either (1) after the last *FLAGS variable, or
13360 # (2) before a word containing "conftest.", or (3) at the end.
13361 # Note that $ac_compile itself does not contain backslashes and begins
13362 # with a dollar sign (not a hyphen), so the echo should work correctly.
13363 lt_compile=`echo "$ac_compile" | $SED \
13364 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13365 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13366 -e 's:$: $lt_compiler_flag:'`
13367 (eval echo "\"\$as_me:13367: $lt_compile\"" >&5)
13368 (eval "$lt_compile" 2>out/conftest.err)
13369 ac_status=$?
13370 cat out/conftest.err >&5
13371 echo "$as_me:13371: \$? = $ac_status" >&5
13372 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13373 then
13374 # The compiler can only warn and ignore the option if not recognized
13375 # So say no if there are warnings
13376 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13377 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13378 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13379 lt_cv_prog_compiler_c_o_F77=yes
13380 fi
13381 fi
13382 chmod u+w . 2>&5
13383 $rm conftest*
13384 # SGI C++ compiler will create directory out/ii_files/ for
13385 # template instantiation
13386 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13387 $rm out/* && rmdir out
13388 cd ..
13389 rmdir conftest
13390 $rm conftest*
13391
13392 fi
13393 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13394 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13395
13396
13397 hard_links="nottested"
13398 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13399 # do not overwrite the value of need_locks provided by the user
13400 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13401 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13402 hard_links=yes
13403 $rm conftest*
13404 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13405 touch conftest.a
13406 ln conftest.a conftest.b 2>&5 || hard_links=no
13407 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13408 echo "$as_me:$LINENO: result: $hard_links" >&5
13409 echo "${ECHO_T}$hard_links" >&6
13410 if test "$hard_links" = no; then
13411 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13412 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13413 need_locks=warn
13414 fi
13415 else
13416 need_locks=no
13417 fi
13418
13419 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13420 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13421
13422 runpath_var=
13423 allow_undefined_flag_F77=
13424 enable_shared_with_static_runtimes_F77=no
13425 archive_cmds_F77=
13426 archive_expsym_cmds_F77=
13427 old_archive_From_new_cmds_F77=
13428 old_archive_from_expsyms_cmds_F77=
13429 export_dynamic_flag_spec_F77=
13430 whole_archive_flag_spec_F77=
13431 thread_safe_flag_spec_F77=
13432 hardcode_libdir_flag_spec_F77=
13433 hardcode_libdir_flag_spec_ld_F77=
13434 hardcode_libdir_separator_F77=
13435 hardcode_direct_F77=no
13436 hardcode_minus_L_F77=no
13437 hardcode_shlibpath_var_F77=unsupported
13438 link_all_deplibs_F77=unknown
13439 hardcode_automatic_F77=no
13440 module_cmds_F77=
13441 module_expsym_cmds_F77=
13442 always_export_symbols_F77=no
13443 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13444 # include_expsyms should be a list of space-separated symbols to be *always*
13445 # included in the symbol list
13446 include_expsyms_F77=
13447 # exclude_expsyms can be an extended regexp of symbols to exclude
13448 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13449 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13450 # as well as any symbol that contains `d'.
13451 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13452 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13453 # platforms (ab)use it in PIC code, but their linkers get confused if
13454 # the symbol is explicitly referenced. Since portable code cannot
13455 # rely on this symbol name, it's probably fine to never include it in
13456 # preloaded symbol tables.
13457 extract_expsyms_cmds=
13458 # Just being paranoid about ensuring that cc_basename is set.
13459 for cc_temp in $compiler""; do
13460 case $cc_temp in
13461 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13462 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13463 \-*) ;;
13464 *) break;;
13465 esac
13466 done
13467 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13468
13469 case $host_os in
13470 cygwin* | mingw* | pw32*)
13471 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13472 # When not using gcc, we currently assume that we are using
13473 # Microsoft Visual C++.
13474 if test "$GCC" != yes; then
13475 with_gnu_ld=no
13476 fi
13477 ;;
13478 interix*)
13479 # we just hope/assume this is gcc and not c89 (= MSVC++)
13480 with_gnu_ld=yes
13481 ;;
13482 openbsd*)
13483 with_gnu_ld=no
13484 ;;
13485 esac
13486
13487 ld_shlibs_F77=yes
13488 if test "$with_gnu_ld" = yes; then
13489 # If archive_cmds runs LD, not CC, wlarc should be empty
13490 wlarc='${wl}'
13491
13492 # Set some defaults for GNU ld with shared library support. These
13493 # are reset later if shared libraries are not supported. Putting them
13494 # here allows them to be overridden if necessary.
13495 runpath_var=LD_RUN_PATH
13496 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13497 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13498 # ancient GNU ld didn't support --whole-archive et. al.
13499 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13500 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13501 else
13502 whole_archive_flag_spec_F77=
13503 fi
13504 supports_anon_versioning=no
13505 case `$LD -v 2>/dev/null` in
13506 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13507 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13508 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13509 *\ 2.11.*) ;; # other 2.11 versions
13510 *) supports_anon_versioning=yes ;;
13511 esac
13512
13513 # See if GNU ld supports shared libraries.
13514 case $host_os in
13515 aix3* | aix4* | aix5*)
13516 # On AIX/PPC, the GNU linker is very broken
13517 if test "$host_cpu" != ia64; then
13518 ld_shlibs_F77=no
13519 cat <<EOF 1>&2
13520
13521 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13522 *** to be unable to reliably create shared libraries on AIX.
13523 *** Therefore, libtool is disabling shared libraries support. If you
13524 *** really care for shared libraries, you may want to modify your PATH
13525 *** so that a non-GNU linker is found, and then restart.
13526
13527 EOF
13528 fi
13529 ;;
13530
13531 amigaos*)
13532 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13533 hardcode_libdir_flag_spec_F77='-L$libdir'
13534 hardcode_minus_L_F77=yes
13535
13536 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
13537 # that the semantics of dynamic libraries on AmigaOS, at least up
13538 # to version 4, is to share data among multiple programs linked
13539 # with the same dynamic library. Since this doesn't match the
13540 # behavior of shared libraries on other platforms, we can't use
13541 # them.
13542 ld_shlibs_F77=no
13543 ;;
13544
13545 beos*)
13546 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13547 allow_undefined_flag_F77=unsupported
13548 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
13549 # support --undefined. This deserves some investigation. FIXME
13550 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13551 else
13552 ld_shlibs_F77=no
13553 fi
13554 ;;
13555
13556 cygwin* | mingw* | pw32*)
13557 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13558 # as there is no search path for DLLs.
13559 hardcode_libdir_flag_spec_F77='-L$libdir'
13560 allow_undefined_flag_F77=unsupported
13561 always_export_symbols_F77=no
13562 enable_shared_with_static_runtimes_F77=yes
13563 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13564
13565 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13566 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13567 # If the export-symbols file already is a .def file (1st line
13568 # is EXPORTS), use it as is; otherwise, prepend...
13569 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13570 cp $export_symbols $output_objdir/$soname.def;
13571 else
13572 echo EXPORTS > $output_objdir/$soname.def;
13573 cat $export_symbols >> $output_objdir/$soname.def;
13574 fi~
13575 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13576 else
13577 ld_shlibs_F77=no
13578 fi
13579 ;;
13580
13581 interix3*)
13582 hardcode_direct_F77=no
13583 hardcode_shlibpath_var_F77=no
13584 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13585 export_dynamic_flag_spec_F77='${wl}-E'
13586 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13587 # Instead, shared libraries are loaded at an image base (0x10000000 by
13588 # default) and relocated if they conflict, which is a slow very memory
13589 # consuming and fragmenting process. To avoid this, we pick a random,
13590 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13591 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13592 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13593 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13594 ;;
13595
13596 linux*)
13597 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13598 tmp_addflag=
13599 case $cc_basename,$host_cpu in
13600 pgcc*) # Portland Group C compiler
13601 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13602 tmp_addflag=' $pic_flag'
13603 ;;
13604 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13605 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13606 tmp_addflag=' $pic_flag -Mnomain' ;;
13607 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13608 tmp_addflag=' -i_dynamic' ;;
13609 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13610 tmp_addflag=' -i_dynamic -nofor_main' ;;
13611 ifc* | ifort*) # Intel Fortran compiler
13612 tmp_addflag=' -nofor_main' ;;
13613 esac
13614 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13615
13616 if test $supports_anon_versioning = yes; then
13617 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13618 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13619 $echo "local: *; };" >> $output_objdir/$libname.ver~
13620 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13621 fi
13622 else
13623 ld_shlibs_F77=no
13624 fi
13625 ;;
13626
13627 netbsd*)
13628 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13629 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13630 wlarc=
13631 else
13632 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13633 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13634 fi
13635 ;;
13636
13637 solaris*)
13638 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13639 ld_shlibs_F77=no
13640 cat <<EOF 1>&2
13641
13642 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13643 *** create shared libraries on Solaris systems. Therefore, libtool
13644 *** is disabling shared libraries support. We urge you to upgrade GNU
13645 *** binutils to release 2.9.1 or newer. Another option is to modify
13646 *** your PATH or compiler configuration so that the native linker is
13647 *** used, and then restart.
13648
13649 EOF
13650 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13651 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13652 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13653 else
13654 ld_shlibs_F77=no
13655 fi
13656 ;;
13657
13658 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13659 case `$LD -v 2>&1` in
13660 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13661 ld_shlibs_F77=no
13662 cat <<_LT_EOF 1>&2
13663
13664 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13665 *** reliably create shared libraries on SCO systems. Therefore, libtool
13666 *** is disabling shared libraries support. We urge you to upgrade GNU
13667 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13668 *** your PATH or compiler configuration so that the native linker is
13669 *** used, and then restart.
13670
13671 _LT_EOF
13672 ;;
13673 *)
13674 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13675 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13676 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13677 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13678 else
13679 ld_shlibs_F77=no
13680 fi
13681 ;;
13682 esac
13683 ;;
13684
13685 sunos4*)
13686 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13687 wlarc=
13688 hardcode_direct_F77=yes
13689 hardcode_shlibpath_var_F77=no
13690 ;;
13691
13692 *)
13693 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13694 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13695 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13696 else
13697 ld_shlibs_F77=no
13698 fi
13699 ;;
13700 esac
13701
13702 if test "$ld_shlibs_F77" = no; then
13703 runpath_var=
13704 hardcode_libdir_flag_spec_F77=
13705 export_dynamic_flag_spec_F77=
13706 whole_archive_flag_spec_F77=
13707 fi
13708 else
13709 # PORTME fill in a description of your system's linker (not GNU ld)
13710 case $host_os in
13711 aix3*)
13712 allow_undefined_flag_F77=unsupported
13713 always_export_symbols_F77=yes
13714 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13715 # Note: this linker hardcodes the directories in LIBPATH if there
13716 # are no directories specified by -L.
13717 hardcode_minus_L_F77=yes
13718 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13719 # Neither direct hardcoding nor static linking is supported with a
13720 # broken collect2.
13721 hardcode_direct_F77=unsupported
13722 fi
13723 ;;
13724
13725 aix4* | aix5*)
13726 if test "$host_cpu" = ia64; then
13727 # On IA64, the linker does run time linking by default, so we don't
13728 # have to do anything special.
13729 aix_use_runtimelinking=no
13730 exp_sym_flag='-Bexport'
13731 no_entry_flag=""
13732 else
13733 # If we're using GNU nm, then we don't want the "-C" option.
13734 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13735 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13736 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13737 else
13738 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13739 fi
13740 aix_use_runtimelinking=no
13741
13742 # Test if we are trying to use run time linking or normal
13743 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13744 # need to do runtime linking.
13745 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13746 for ld_flag in $LDFLAGS; do
13747 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13748 aix_use_runtimelinking=yes
13749 break
13750 fi
13751 done
13752 ;;
13753 esac
13754
13755 exp_sym_flag='-bexport'
13756 no_entry_flag='-bnoentry'
13757 fi
13758
13759 # When large executables or shared objects are built, AIX ld can
13760 # have problems creating the table of contents. If linking a library
13761 # or program results in "error TOC overflow" add -mminimal-toc to
13762 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13763 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13764
13765 archive_cmds_F77=''
13766 hardcode_direct_F77=yes
13767 hardcode_libdir_separator_F77=':'
13768 link_all_deplibs_F77=yes
13769
13770 if test "$GCC" = yes; then
13771 case $host_os in aix4.[012]|aix4.[012].*)
13772 # We only want to do this on AIX 4.2 and lower, the check
13773 # below for broken collect2 doesn't work under 4.3+
13774 collect2name=`${CC} -print-prog-name=collect2`
13775 if test -f "$collect2name" && \
13776 strings "$collect2name" | grep resolve_lib_name >/dev/null
13777 then
13778 # We have reworked collect2
13779 hardcode_direct_F77=yes
13780 else
13781 # We have old collect2
13782 hardcode_direct_F77=unsupported
13783 # It fails to find uninstalled libraries when the uninstalled
13784 # path is not listed in the libpath. Setting hardcode_minus_L
13785 # to unsupported forces relinking
13786 hardcode_minus_L_F77=yes
13787 hardcode_libdir_flag_spec_F77='-L$libdir'
13788 hardcode_libdir_separator_F77=
13789 fi
13790 ;;
13791 esac
13792 shared_flag='-shared'
13793 if test "$aix_use_runtimelinking" = yes; then
13794 shared_flag="$shared_flag "'${wl}-G'
13795 fi
13796 else
13797 # not using gcc
13798 if test "$host_cpu" = ia64; then
13799 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13800 # chokes on -Wl,-G. The following line is correct:
13801 shared_flag='-G'
13802 else
13803 if test "$aix_use_runtimelinking" = yes; then
13804 shared_flag='${wl}-G'
13805 else
13806 shared_flag='${wl}-bM:SRE'
13807 fi
13808 fi
13809 fi
13810
13811 # It seems that -bexpall does not export symbols beginning with
13812 # underscore (_), so it is better to generate a list of symbols to export.
13813 always_export_symbols_F77=yes
13814 if test "$aix_use_runtimelinking" = yes; then
13815 # Warning - without using the other runtime loading flags (-brtl),
13816 # -berok will link without error, but may produce a broken library.
13817 allow_undefined_flag_F77='-berok'
13818 # Determine the default libpath from the value encoded in an empty executable.
13819 cat >conftest.$ac_ext <<_ACEOF
13820 program main
13821
13822 end
13823 _ACEOF
13824 rm -f conftest.$ac_objext conftest$ac_exeext
13825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13826 (eval $ac_link) 2>conftest.er1
13827 ac_status=$?
13828 grep -v '^ *+' conftest.er1 >conftest.err
13829 rm -f conftest.er1
13830 cat conftest.err >&5
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); } &&
13833 { ac_try='test -z "$ac_f77_werror_flag"
13834 || test ! -s conftest.err'
13835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13836 (eval $ac_try) 2>&5
13837 ac_status=$?
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); }; } &&
13840 { ac_try='test -s conftest$ac_exeext'
13841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13842 (eval $ac_try) 2>&5
13843 ac_status=$?
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); }; }; then
13846
13847 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13848 }'`
13849 # Check for a 64-bit object if we didn't find anything.
13850 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13851 }'`; fi
13852 else
13853 echo "$as_me: failed program was:" >&5
13854 sed 's/^/| /' conftest.$ac_ext >&5
13855
13856 fi
13857 rm -f conftest.err conftest.$ac_objext \
13858 conftest$ac_exeext conftest.$ac_ext
13859 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13860
13861 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13862 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13863 else
13864 if test "$host_cpu" = ia64; then
13865 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13866 allow_undefined_flag_F77="-z nodefs"
13867 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13868 else
13869 # Determine the default libpath from the value encoded in an empty executable.
13870 cat >conftest.$ac_ext <<_ACEOF
13871 program main
13872
13873 end
13874 _ACEOF
13875 rm -f conftest.$ac_objext conftest$ac_exeext
13876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13877 (eval $ac_link) 2>conftest.er1
13878 ac_status=$?
13879 grep -v '^ *+' conftest.er1 >conftest.err
13880 rm -f conftest.er1
13881 cat conftest.err >&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); } &&
13884 { ac_try='test -z "$ac_f77_werror_flag"
13885 || test ! -s conftest.err'
13886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13887 (eval $ac_try) 2>&5
13888 ac_status=$?
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); }; } &&
13891 { ac_try='test -s conftest$ac_exeext'
13892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893 (eval $ac_try) 2>&5
13894 ac_status=$?
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); }; }; then
13897
13898 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13899 }'`
13900 # Check for a 64-bit object if we didn't find anything.
13901 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13902 }'`; fi
13903 else
13904 echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13906
13907 fi
13908 rm -f conftest.err conftest.$ac_objext \
13909 conftest$ac_exeext conftest.$ac_ext
13910 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13911
13912 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13913 # Warning - without using the other run time loading flags,
13914 # -berok will link without error, but may produce a broken library.
13915 no_undefined_flag_F77=' ${wl}-bernotok'
13916 allow_undefined_flag_F77=' ${wl}-berok'
13917 # Exported symbols can be pulled into shared objects from archives
13918 whole_archive_flag_spec_F77='$convenience'
13919 archive_cmds_need_lc_F77=yes
13920 # This is similar to how AIX traditionally builds its shared libraries.
13921 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13922 fi
13923 fi
13924 ;;
13925
13926 amigaos*)
13927 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13928 hardcode_libdir_flag_spec_F77='-L$libdir'
13929 hardcode_minus_L_F77=yes
13930 # see comment about different semantics on the GNU ld section
13931 ld_shlibs_F77=no
13932 ;;
13933
13934 bsdi[45]*)
13935 export_dynamic_flag_spec_F77=-rdynamic
13936 ;;
13937
13938 cygwin* | mingw* | pw32*)
13939 # When not using gcc, we currently assume that we are using
13940 # Microsoft Visual C++.
13941 # hardcode_libdir_flag_spec is actually meaningless, as there is
13942 # no search path for DLLs.
13943 hardcode_libdir_flag_spec_F77=' '
13944 allow_undefined_flag_F77=unsupported
13945 # Tell ltmain to make .lib files, not .a files.
13946 libext=lib
13947 # Tell ltmain to make .dll files, not .so files.
13948 shrext_cmds=".dll"
13949 # FIXME: Setting linknames here is a bad hack.
13950 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13951 # The linker will automatically build a .lib file if we build a DLL.
13952 old_archive_From_new_cmds_F77='true'
13953 # FIXME: Should let the user specify the lib program.
13954 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13955 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13956 enable_shared_with_static_runtimes_F77=yes
13957 ;;
13958
13959 darwin* | rhapsody*)
13960 case $host_os in
13961 rhapsody* | darwin1.[012])
13962 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13963 ;;
13964 *) # Darwin 1.3 on
13965 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13966 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13967 else
13968 case ${MACOSX_DEPLOYMENT_TARGET} in
13969 10.[012])
13970 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13971 ;;
13972 10.*)
13973 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13974 ;;
13975 esac
13976 fi
13977 ;;
13978 esac
13979 archive_cmds_need_lc_F77=no
13980 hardcode_direct_F77=no
13981 hardcode_automatic_F77=yes
13982 hardcode_shlibpath_var_F77=unsupported
13983 whole_archive_flag_spec_F77=''
13984 link_all_deplibs_F77=yes
13985 if test "$GCC" = yes ; then
13986 output_verbose_link_cmd='echo'
13987 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13988 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13989 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13990 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13991 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13992 else
13993 case $cc_basename in
13994 xlc*)
13995 output_verbose_link_cmd='echo'
13996 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13997 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13998 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13999 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14000 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14001 ;;
14002 *)
14003 ld_shlibs_F77=no
14004 ;;
14005 esac
14006 fi
14007 ;;
14008
14009 dgux*)
14010 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14011 hardcode_libdir_flag_spec_F77='-L$libdir'
14012 hardcode_shlibpath_var_F77=no
14013 ;;
14014
14015 freebsd1*)
14016 ld_shlibs_F77=no
14017 ;;
14018
14019 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14020 # support. Future versions do this automatically, but an explicit c++rt0.o
14021 # does not break anything, and helps significantly (at the cost of a little
14022 # extra space).
14023 freebsd2.2*)
14024 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14025 hardcode_libdir_flag_spec_F77='-R$libdir'
14026 hardcode_direct_F77=yes
14027 hardcode_shlibpath_var_F77=no
14028 ;;
14029
14030 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14031 freebsd2*)
14032 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14033 hardcode_direct_F77=yes
14034 hardcode_minus_L_F77=yes
14035 hardcode_shlibpath_var_F77=no
14036 ;;
14037
14038 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14039 freebsd* | kfreebsd*-gnu | dragonfly*)
14040 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14041 hardcode_libdir_flag_spec_F77='-R$libdir'
14042 hardcode_direct_F77=yes
14043 hardcode_shlibpath_var_F77=no
14044 ;;
14045
14046 hpux9*)
14047 if test "$GCC" = yes; then
14048 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14049 else
14050 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14051 fi
14052 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14053 hardcode_libdir_separator_F77=:
14054 hardcode_direct_F77=yes
14055
14056 # hardcode_minus_L: Not really in the search PATH,
14057 # but as the default location of the library.
14058 hardcode_minus_L_F77=yes
14059 export_dynamic_flag_spec_F77='${wl}-E'
14060 ;;
14061
14062 hpux10*)
14063 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14064 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14065 else
14066 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14067 fi
14068 if test "$with_gnu_ld" = no; then
14069 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14070 hardcode_libdir_separator_F77=:
14071
14072 hardcode_direct_F77=yes
14073 export_dynamic_flag_spec_F77='${wl}-E'
14074
14075 # hardcode_minus_L: Not really in the search PATH,
14076 # but as the default location of the library.
14077 hardcode_minus_L_F77=yes
14078 fi
14079 ;;
14080
14081 hpux11*)
14082 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14083 case $host_cpu in
14084 hppa*64*)
14085 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14086 ;;
14087 ia64*)
14088 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14089 ;;
14090 *)
14091 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14092 ;;
14093 esac
14094 else
14095 case $host_cpu in
14096 hppa*64*)
14097 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14098 ;;
14099 ia64*)
14100 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14101 ;;
14102 *)
14103 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14104 ;;
14105 esac
14106 fi
14107 if test "$with_gnu_ld" = no; then
14108 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14109 hardcode_libdir_separator_F77=:
14110
14111 case $host_cpu in
14112 hppa*64*|ia64*)
14113 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14114 hardcode_direct_F77=no
14115 hardcode_shlibpath_var_F77=no
14116 ;;
14117 *)
14118 hardcode_direct_F77=yes
14119 export_dynamic_flag_spec_F77='${wl}-E'
14120
14121 # hardcode_minus_L: Not really in the search PATH,
14122 # but as the default location of the library.
14123 hardcode_minus_L_F77=yes
14124 ;;
14125 esac
14126 fi
14127 ;;
14128
14129 irix5* | irix6* | nonstopux*)
14130 if test "$GCC" = yes; then
14131 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14132 else
14133 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14134 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14135 fi
14136 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14137 hardcode_libdir_separator_F77=:
14138 link_all_deplibs_F77=yes
14139 ;;
14140
14141 netbsd*)
14142 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14143 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14144 else
14145 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14146 fi
14147 hardcode_libdir_flag_spec_F77='-R$libdir'
14148 hardcode_direct_F77=yes
14149 hardcode_shlibpath_var_F77=no
14150 ;;
14151
14152 newsos6)
14153 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14154 hardcode_direct_F77=yes
14155 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14156 hardcode_libdir_separator_F77=:
14157 hardcode_shlibpath_var_F77=no
14158 ;;
14159
14160 openbsd*)
14161 hardcode_direct_F77=yes
14162 hardcode_shlibpath_var_F77=no
14163 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14164 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14165 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14166 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14167 export_dynamic_flag_spec_F77='${wl}-E'
14168 else
14169 case $host_os in
14170 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14171 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14172 hardcode_libdir_flag_spec_F77='-R$libdir'
14173 ;;
14174 *)
14175 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14176 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14177 ;;
14178 esac
14179 fi
14180 ;;
14181
14182 os2*)
14183 hardcode_libdir_flag_spec_F77='-L$libdir'
14184 hardcode_minus_L_F77=yes
14185 allow_undefined_flag_F77=unsupported
14186 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14187 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14188 ;;
14189
14190 osf3*)
14191 if test "$GCC" = yes; then
14192 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14193 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14194 else
14195 allow_undefined_flag_F77=' -expect_unresolved \*'
14196 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14197 fi
14198 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14199 hardcode_libdir_separator_F77=:
14200 ;;
14201
14202 osf4* | osf5*) # as osf3* with the addition of -msym flag
14203 if test "$GCC" = yes; then
14204 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14205 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14206 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14207 else
14208 allow_undefined_flag_F77=' -expect_unresolved \*'
14209 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14210 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14211 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14212
14213 # Both c and cxx compiler support -rpath directly
14214 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14215 fi
14216 hardcode_libdir_separator_F77=:
14217 ;;
14218
14219 solaris*)
14220 no_undefined_flag_F77=' -z text'
14221 if test "$GCC" = yes; then
14222 wlarc='${wl}'
14223 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14224 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14225 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14226 else
14227 wlarc=''
14228 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14229 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14230 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14231 fi
14232 hardcode_libdir_flag_spec_F77='-R$libdir'
14233 hardcode_shlibpath_var_F77=no
14234 case $host_os in
14235 solaris2.[0-5] | solaris2.[0-5].*) ;;
14236 *)
14237 # The compiler driver will combine linker options so we
14238 # cannot just pass the convience library names through
14239 # without $wl, iff we do not link with $LD.
14240 # Luckily, gcc supports the same syntax we need for Sun Studio.
14241 # Supported since Solaris 2.6 (maybe 2.5.1?)
14242 case $wlarc in
14243 '')
14244 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14245 *)
14246 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14247 esac ;;
14248 esac
14249 link_all_deplibs_F77=yes
14250 ;;
14251
14252 sunos4*)
14253 if test "x$host_vendor" = xsequent; then
14254 # Use $CC to link under sequent, because it throws in some extra .o
14255 # files that make .init and .fini sections work.
14256 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14257 else
14258 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14259 fi
14260 hardcode_libdir_flag_spec_F77='-L$libdir'
14261 hardcode_direct_F77=yes
14262 hardcode_minus_L_F77=yes
14263 hardcode_shlibpath_var_F77=no
14264 ;;
14265
14266 sysv4)
14267 case $host_vendor in
14268 sni)
14269 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14270 hardcode_direct_F77=yes # is this really true???
14271 ;;
14272 siemens)
14273 ## LD is ld it makes a PLAMLIB
14274 ## CC just makes a GrossModule.
14275 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14276 reload_cmds_F77='$CC -r -o $output$reload_objs'
14277 hardcode_direct_F77=no
14278 ;;
14279 motorola)
14280 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14281 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14282 ;;
14283 esac
14284 runpath_var='LD_RUN_PATH'
14285 hardcode_shlibpath_var_F77=no
14286 ;;
14287
14288 sysv4.3*)
14289 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14290 hardcode_shlibpath_var_F77=no
14291 export_dynamic_flag_spec_F77='-Bexport'
14292 ;;
14293
14294 sysv4*MP*)
14295 if test -d /usr/nec; then
14296 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14297 hardcode_shlibpath_var_F77=no
14298 runpath_var=LD_RUN_PATH
14299 hardcode_runpath_var=yes
14300 ld_shlibs_F77=yes
14301 fi
14302 ;;
14303
14304 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14305 no_undefined_flag_F77='${wl}-z,text'
14306 archive_cmds_need_lc_F77=no
14307 hardcode_shlibpath_var_F77=no
14308 runpath_var='LD_RUN_PATH'
14309
14310 if test "$GCC" = yes; then
14311 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14312 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14313 else
14314 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14315 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14316 fi
14317 ;;
14318
14319 sysv5* | sco3.2v5* | sco5v6*)
14320 # Note: We can NOT use -z defs as we might desire, because we do not
14321 # link with -lc, and that would cause any symbols used from libc to
14322 # always be unresolved, which means just about no library would
14323 # ever link correctly. If we're not using GNU ld we use -z text
14324 # though, which does catch some bad symbols but isn't as heavy-handed
14325 # as -z defs.
14326 no_undefined_flag_F77='${wl}-z,text'
14327 allow_undefined_flag_F77='${wl}-z,nodefs'
14328 archive_cmds_need_lc_F77=no
14329 hardcode_shlibpath_var_F77=no
14330 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14331 hardcode_libdir_separator_F77=':'
14332 link_all_deplibs_F77=yes
14333 export_dynamic_flag_spec_F77='${wl}-Bexport'
14334 runpath_var='LD_RUN_PATH'
14335
14336 if test "$GCC" = yes; then
14337 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14338 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14339 else
14340 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14341 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14342 fi
14343 ;;
14344
14345 uts4*)
14346 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14347 hardcode_libdir_flag_spec_F77='-L$libdir'
14348 hardcode_shlibpath_var_F77=no
14349 ;;
14350
14351 *)
14352 ld_shlibs_F77=no
14353 ;;
14354 esac
14355 fi
14356
14357 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14358 echo "${ECHO_T}$ld_shlibs_F77" >&6
14359 test "$ld_shlibs_F77" = no && can_build_shared=no
14360
14361 #
14362 # Do we need to explicitly link libc?
14363 #
14364 case "x$archive_cmds_need_lc_F77" in
14365 x|xyes)
14366 # Assume -lc should be added
14367 archive_cmds_need_lc_F77=yes
14368
14369 if test "$enable_shared" = yes && test "$GCC" = yes; then
14370 case $archive_cmds_F77 in
14371 *'~'*)
14372 # FIXME: we may have to deal with multi-command sequences.
14373 ;;
14374 '$CC '*)
14375 # Test whether the compiler implicitly links with -lc since on some
14376 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14377 # to ld, don't add -lc before -lgcc.
14378 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14379 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14380 $rm conftest*
14381 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14382
14383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14384 (eval $ac_compile) 2>&5
14385 ac_status=$?
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); } 2>conftest.err; then
14388 soname=conftest
14389 lib=conftest
14390 libobjs=conftest.$ac_objext
14391 deplibs=
14392 wl=$lt_prog_compiler_wl_F77
14393 pic_flag=$lt_prog_compiler_pic_F77
14394 compiler_flags=-v
14395 linker_flags=-v
14396 verstring=
14397 output_objdir=.
14398 libname=conftest
14399 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14400 allow_undefined_flag_F77=
14401 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14402 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14403 ac_status=$?
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); }
14406 then
14407 archive_cmds_need_lc_F77=no
14408 else
14409 archive_cmds_need_lc_F77=yes
14410 fi
14411 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14412 else
14413 cat conftest.err 1>&5
14414 fi
14415 $rm conftest*
14416 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14417 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14418 ;;
14419 esac
14420 fi
14421 ;;
14422 esac
14423
14424 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14425 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14426 library_names_spec=
14427 libname_spec='lib$name'
14428 soname_spec=
14429 shrext_cmds=".so"
14430 postinstall_cmds=
14431 postuninstall_cmds=
14432 finish_cmds=
14433 finish_eval=
14434 shlibpath_var=
14435 shlibpath_overrides_runpath=unknown
14436 version_type=none
14437 dynamic_linker="$host_os ld.so"
14438 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14439 if test "$GCC" = yes; then
14440 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14441 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14442 # if the path contains ";" then we assume it to be the separator
14443 # otherwise default to the standard path separator (i.e. ":") - it is
14444 # assumed that no part of a normal pathname contains ";" but that should
14445 # okay in the real world where ";" in dirpaths is itself problematic.
14446 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14447 else
14448 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14449 fi
14450 else
14451 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14452 fi
14453 need_lib_prefix=unknown
14454 hardcode_into_libs=no
14455
14456 # when you set need_version to no, make sure it does not cause -set_version
14457 # flags to be left without arguments
14458 need_version=unknown
14459
14460 case $host_os in
14461 aix3*)
14462 version_type=linux
14463 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14464 shlibpath_var=LIBPATH
14465
14466 # AIX 3 has no versioning support, so we append a major version to the name.
14467 soname_spec='${libname}${release}${shared_ext}$major'
14468 ;;
14469
14470 aix4* | aix5*)
14471 version_type=linux
14472 need_lib_prefix=no
14473 need_version=no
14474 hardcode_into_libs=yes
14475 if test "$host_cpu" = ia64; then
14476 # AIX 5 supports IA64
14477 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14478 shlibpath_var=LD_LIBRARY_PATH
14479 else
14480 # With GCC up to 2.95.x, collect2 would create an import file
14481 # for dependence libraries. The import file would start with
14482 # the line `#! .'. This would cause the generated library to
14483 # depend on `.', always an invalid library. This was fixed in
14484 # development snapshots of GCC prior to 3.0.
14485 case $host_os in
14486 aix4 | aix4.[01] | aix4.[01].*)
14487 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14488 echo ' yes '
14489 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14490 :
14491 else
14492 can_build_shared=no
14493 fi
14494 ;;
14495 esac
14496 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14497 # soname into executable. Probably we can add versioning support to
14498 # collect2, so additional links can be useful in future.
14499 if test "$aix_use_runtimelinking" = yes; then
14500 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14501 # instead of lib<name>.a to let people know that these are not
14502 # typical AIX shared libraries.
14503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14504 else
14505 # We preserve .a as extension for shared libraries through AIX4.2
14506 # and later when we are not doing run time linking.
14507 library_names_spec='${libname}${release}.a $libname.a'
14508 soname_spec='${libname}${release}${shared_ext}$major'
14509 fi
14510 shlibpath_var=LIBPATH
14511 fi
14512 ;;
14513
14514 amigaos*)
14515 library_names_spec='$libname.ixlibrary $libname.a'
14516 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14517 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'
14518 ;;
14519
14520 beos*)
14521 library_names_spec='${libname}${shared_ext}'
14522 dynamic_linker="$host_os ld.so"
14523 shlibpath_var=LIBRARY_PATH
14524 ;;
14525
14526 bsdi[45]*)
14527 version_type=linux
14528 need_version=no
14529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14530 soname_spec='${libname}${release}${shared_ext}$major'
14531 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14532 shlibpath_var=LD_LIBRARY_PATH
14533 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14534 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14535 # the default ld.so.conf also contains /usr/contrib/lib and
14536 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14537 # libtool to hard-code these into programs
14538 ;;
14539
14540 cygwin* | mingw* | pw32*)
14541 version_type=windows
14542 shrext_cmds=".dll"
14543 need_version=no
14544 need_lib_prefix=no
14545
14546 case $GCC,$host_os in
14547 yes,cygwin* | yes,mingw* | yes,pw32*)
14548 library_names_spec='$libname.dll.a'
14549 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14550 postinstall_cmds='base_file=`basename \${file}`~
14551 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14552 dldir=$destdir/`dirname \$dlpath`~
14553 test -d \$dldir || mkdir -p \$dldir~
14554 $install_prog $dir/$dlname \$dldir/$dlname~
14555 chmod a+x \$dldir/$dlname'
14556 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14557 dlpath=$dir/\$dldll~
14558 $rm \$dlpath'
14559 shlibpath_overrides_runpath=yes
14560
14561 case $host_os in
14562 cygwin*)
14563 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14564 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14565 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14566 ;;
14567 mingw*)
14568 # MinGW DLLs use traditional 'lib' prefix
14569 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14570 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14571 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14572 # It is most probably a Windows format PATH printed by
14573 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14574 # path with ; separators, and with drive letters. We can handle the
14575 # drive letters (cygwin fileutils understands them), so leave them,
14576 # especially as we might pass files found there to a mingw objdump,
14577 # which wouldn't understand a cygwinified path. Ahh.
14578 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14579 else
14580 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14581 fi
14582 ;;
14583 pw32*)
14584 # pw32 DLLs use 'pw' prefix rather than 'lib'
14585 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14586 ;;
14587 esac
14588 ;;
14589
14590 *)
14591 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14592 ;;
14593 esac
14594 dynamic_linker='Win32 ld.exe'
14595 # FIXME: first we should search . and the directory the executable is in
14596 shlibpath_var=PATH
14597 ;;
14598
14599 darwin* | rhapsody*)
14600 dynamic_linker="$host_os dyld"
14601 version_type=darwin
14602 need_lib_prefix=no
14603 need_version=no
14604 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14605 soname_spec='${libname}${release}${major}$shared_ext'
14606 shlibpath_overrides_runpath=yes
14607 shlibpath_var=DYLD_LIBRARY_PATH
14608 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14609 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14610 if test "$GCC" = yes; then
14611 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14612 else
14613 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14614 fi
14615 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14616 ;;
14617
14618 dgux*)
14619 version_type=linux
14620 need_lib_prefix=no
14621 need_version=no
14622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14623 soname_spec='${libname}${release}${shared_ext}$major'
14624 shlibpath_var=LD_LIBRARY_PATH
14625 ;;
14626
14627 freebsd1*)
14628 dynamic_linker=no
14629 ;;
14630
14631 kfreebsd*-gnu)
14632 version_type=linux
14633 need_lib_prefix=no
14634 need_version=no
14635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14636 soname_spec='${libname}${release}${shared_ext}$major'
14637 shlibpath_var=LD_LIBRARY_PATH
14638 shlibpath_overrides_runpath=no
14639 hardcode_into_libs=yes
14640 dynamic_linker='GNU ld.so'
14641 ;;
14642
14643 freebsd* | dragonfly*)
14644 # DragonFly does not have aout. When/if they implement a new
14645 # versioning mechanism, adjust this.
14646 if test -x /usr/bin/objformat; then
14647 objformat=`/usr/bin/objformat`
14648 else
14649 case $host_os in
14650 freebsd[123]*) objformat=aout ;;
14651 *) objformat=elf ;;
14652 esac
14653 fi
14654 version_type=freebsd-$objformat
14655 case $version_type in
14656 freebsd-elf*)
14657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14658 need_version=no
14659 need_lib_prefix=no
14660 ;;
14661 freebsd-*)
14662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14663 need_version=yes
14664 ;;
14665 esac
14666 shlibpath_var=LD_LIBRARY_PATH
14667 case $host_os in
14668 freebsd2*)
14669 shlibpath_overrides_runpath=yes
14670 ;;
14671 freebsd3.[01]* | freebsdelf3.[01]*)
14672 shlibpath_overrides_runpath=yes
14673 hardcode_into_libs=yes
14674 ;;
14675 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14676 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14677 shlibpath_overrides_runpath=no
14678 hardcode_into_libs=yes
14679 ;;
14680 freebsd*) # from 4.6 on
14681 shlibpath_overrides_runpath=yes
14682 hardcode_into_libs=yes
14683 ;;
14684 esac
14685 ;;
14686
14687 gnu*)
14688 version_type=linux
14689 need_lib_prefix=no
14690 need_version=no
14691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14692 soname_spec='${libname}${release}${shared_ext}$major'
14693 shlibpath_var=LD_LIBRARY_PATH
14694 hardcode_into_libs=yes
14695 ;;
14696
14697 hpux9* | hpux10* | hpux11*)
14698 # Give a soname corresponding to the major version so that dld.sl refuses to
14699 # link against other versions.
14700 version_type=sunos
14701 need_lib_prefix=no
14702 need_version=no
14703 case $host_cpu in
14704 ia64*)
14705 shrext_cmds='.so'
14706 hardcode_into_libs=yes
14707 dynamic_linker="$host_os dld.so"
14708 shlibpath_var=LD_LIBRARY_PATH
14709 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14711 soname_spec='${libname}${release}${shared_ext}$major'
14712 if test "X$HPUX_IA64_MODE" = X32; then
14713 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14714 else
14715 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14716 fi
14717 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14718 ;;
14719 hppa*64*)
14720 shrext_cmds='.sl'
14721 hardcode_into_libs=yes
14722 dynamic_linker="$host_os dld.sl"
14723 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14724 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14726 soname_spec='${libname}${release}${shared_ext}$major'
14727 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14728 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14729 ;;
14730 *)
14731 shrext_cmds='.sl'
14732 dynamic_linker="$host_os dld.sl"
14733 shlibpath_var=SHLIB_PATH
14734 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14736 soname_spec='${libname}${release}${shared_ext}$major'
14737 ;;
14738 esac
14739 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14740 postinstall_cmds='chmod 555 $lib'
14741 ;;
14742
14743 interix3*)
14744 version_type=linux
14745 need_lib_prefix=no
14746 need_version=no
14747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14748 soname_spec='${libname}${release}${shared_ext}$major'
14749 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14750 shlibpath_var=LD_LIBRARY_PATH
14751 shlibpath_overrides_runpath=no
14752 hardcode_into_libs=yes
14753 ;;
14754
14755 irix5* | irix6* | nonstopux*)
14756 case $host_os in
14757 nonstopux*) version_type=nonstopux ;;
14758 *)
14759 if test "$lt_cv_prog_gnu_ld" = yes; then
14760 version_type=linux
14761 else
14762 version_type=irix
14763 fi ;;
14764 esac
14765 need_lib_prefix=no
14766 need_version=no
14767 soname_spec='${libname}${release}${shared_ext}$major'
14768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14769 case $host_os in
14770 irix5* | nonstopux*)
14771 libsuff= shlibsuff=
14772 ;;
14773 *)
14774 case $LD in # libtool.m4 will add one of these switches to LD
14775 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14776 libsuff= shlibsuff= libmagic=32-bit;;
14777 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14778 libsuff=32 shlibsuff=N32 libmagic=N32;;
14779 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14780 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14781 *) libsuff= shlibsuff= libmagic=never-match;;
14782 esac
14783 ;;
14784 esac
14785 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14786 shlibpath_overrides_runpath=no
14787 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14788 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14789 hardcode_into_libs=yes
14790 ;;
14791
14792 # No shared lib support for Linux oldld, aout, or coff.
14793 linux*oldld* | linux*aout* | linux*coff*)
14794 dynamic_linker=no
14795 ;;
14796
14797 # This must be Linux ELF.
14798 linux*)
14799 version_type=linux
14800 need_lib_prefix=no
14801 need_version=no
14802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14803 soname_spec='${libname}${release}${shared_ext}$major'
14804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14805 shlibpath_var=LD_LIBRARY_PATH
14806 shlibpath_overrides_runpath=no
14807 # This implies no fast_install, which is unacceptable.
14808 # Some rework will be needed to allow for fast_install
14809 # before this can be enabled.
14810 hardcode_into_libs=yes
14811
14812 # find out which ABI we are using
14813 libsuff=
14814 case "$host_cpu" in
14815 x86_64*|s390x*|powerpc64*)
14816 echo '#line 14816 "configure"' > conftest.$ac_ext
14817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14818 (eval $ac_compile) 2>&5
14819 ac_status=$?
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); }; then
14822 case `/usr/bin/file conftest.$ac_objext` in
14823 *64-bit*)
14824 libsuff=64
14825 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14826 ;;
14827 esac
14828 fi
14829 rm -rf conftest*
14830 ;;
14831 esac
14832
14833 # Append ld.so.conf contents to the search path
14834 if test -f /etc/ld.so.conf; then
14835 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14836 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14837 fi
14838
14839 # We used to test for /lib/ld.so.1 and disable shared libraries on
14840 # powerpc, because MkLinux only supported shared libraries with the
14841 # GNU dynamic linker. Since this was broken with cross compilers,
14842 # most powerpc-linux boxes support dynamic linking these days and
14843 # people can always --disable-shared, the test was removed, and we
14844 # assume the GNU/Linux dynamic linker is in use.
14845 dynamic_linker='GNU/Linux ld.so'
14846 ;;
14847
14848 knetbsd*-gnu)
14849 version_type=linux
14850 need_lib_prefix=no
14851 need_version=no
14852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14853 soname_spec='${libname}${release}${shared_ext}$major'
14854 shlibpath_var=LD_LIBRARY_PATH
14855 shlibpath_overrides_runpath=no
14856 hardcode_into_libs=yes
14857 dynamic_linker='GNU ld.so'
14858 ;;
14859
14860 netbsd*)
14861 version_type=sunos
14862 need_lib_prefix=no
14863 need_version=no
14864 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14867 dynamic_linker='NetBSD (a.out) ld.so'
14868 else
14869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14870 soname_spec='${libname}${release}${shared_ext}$major'
14871 dynamic_linker='NetBSD ld.elf_so'
14872 fi
14873 shlibpath_var=LD_LIBRARY_PATH
14874 shlibpath_overrides_runpath=yes
14875 hardcode_into_libs=yes
14876 ;;
14877
14878 newsos6)
14879 version_type=linux
14880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14881 shlibpath_var=LD_LIBRARY_PATH
14882 shlibpath_overrides_runpath=yes
14883 ;;
14884
14885 nto-qnx*)
14886 version_type=linux
14887 need_lib_prefix=no
14888 need_version=no
14889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14890 soname_spec='${libname}${release}${shared_ext}$major'
14891 shlibpath_var=LD_LIBRARY_PATH
14892 shlibpath_overrides_runpath=yes
14893 ;;
14894
14895 openbsd*)
14896 version_type=sunos
14897 sys_lib_dlsearch_path_spec="/usr/lib"
14898 need_lib_prefix=no
14899 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14900 case $host_os in
14901 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14902 *) need_version=no ;;
14903 esac
14904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14905 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14906 shlibpath_var=LD_LIBRARY_PATH
14907 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14908 case $host_os in
14909 openbsd2.[89] | openbsd2.[89].*)
14910 shlibpath_overrides_runpath=no
14911 ;;
14912 *)
14913 shlibpath_overrides_runpath=yes
14914 ;;
14915 esac
14916 else
14917 shlibpath_overrides_runpath=yes
14918 fi
14919 ;;
14920
14921 os2*)
14922 libname_spec='$name'
14923 shrext_cmds=".dll"
14924 need_lib_prefix=no
14925 library_names_spec='$libname${shared_ext} $libname.a'
14926 dynamic_linker='OS/2 ld.exe'
14927 shlibpath_var=LIBPATH
14928 ;;
14929
14930 osf3* | osf4* | osf5*)
14931 version_type=osf
14932 need_lib_prefix=no
14933 need_version=no
14934 soname_spec='${libname}${release}${shared_ext}$major'
14935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14936 shlibpath_var=LD_LIBRARY_PATH
14937 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14938 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14939 ;;
14940
14941 solaris*)
14942 version_type=linux
14943 need_lib_prefix=no
14944 need_version=no
14945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14946 soname_spec='${libname}${release}${shared_ext}$major'
14947 shlibpath_var=LD_LIBRARY_PATH
14948 shlibpath_overrides_runpath=yes
14949 hardcode_into_libs=yes
14950 # ldd complains unless libraries are executable
14951 postinstall_cmds='chmod +x $lib'
14952 ;;
14953
14954 sunos4*)
14955 version_type=sunos
14956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14957 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14958 shlibpath_var=LD_LIBRARY_PATH
14959 shlibpath_overrides_runpath=yes
14960 if test "$with_gnu_ld" = yes; then
14961 need_lib_prefix=no
14962 fi
14963 need_version=yes
14964 ;;
14965
14966 sysv4 | sysv4.3*)
14967 version_type=linux
14968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14969 soname_spec='${libname}${release}${shared_ext}$major'
14970 shlibpath_var=LD_LIBRARY_PATH
14971 case $host_vendor in
14972 sni)
14973 shlibpath_overrides_runpath=no
14974 need_lib_prefix=no
14975 export_dynamic_flag_spec='${wl}-Blargedynsym'
14976 runpath_var=LD_RUN_PATH
14977 ;;
14978 siemens)
14979 need_lib_prefix=no
14980 ;;
14981 motorola)
14982 need_lib_prefix=no
14983 need_version=no
14984 shlibpath_overrides_runpath=no
14985 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14986 ;;
14987 esac
14988 ;;
14989
14990 sysv4*MP*)
14991 if test -d /usr/nec ;then
14992 version_type=linux
14993 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14994 soname_spec='$libname${shared_ext}.$major'
14995 shlibpath_var=LD_LIBRARY_PATH
14996 fi
14997 ;;
14998
14999 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15000 version_type=freebsd-elf
15001 need_lib_prefix=no
15002 need_version=no
15003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15004 soname_spec='${libname}${release}${shared_ext}$major'
15005 shlibpath_var=LD_LIBRARY_PATH
15006 hardcode_into_libs=yes
15007 if test "$with_gnu_ld" = yes; then
15008 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15009 shlibpath_overrides_runpath=no
15010 else
15011 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15012 shlibpath_overrides_runpath=yes
15013 case $host_os in
15014 sco3.2v5*)
15015 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15016 ;;
15017 esac
15018 fi
15019 sys_lib_dlsearch_path_spec='/usr/lib'
15020 ;;
15021
15022 uts4*)
15023 version_type=linux
15024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15025 soname_spec='${libname}${release}${shared_ext}$major'
15026 shlibpath_var=LD_LIBRARY_PATH
15027 ;;
15028
15029 *)
15030 dynamic_linker=no
15031 ;;
15032 esac
15033 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15034 echo "${ECHO_T}$dynamic_linker" >&6
15035 test "$dynamic_linker" = no && can_build_shared=no
15036
15037 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15038 if test "$GCC" = yes; then
15039 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15040 fi
15041
15042 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15043 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15044 hardcode_action_F77=
15045 if test -n "$hardcode_libdir_flag_spec_F77" || \
15046 test -n "$runpath_var_F77" || \
15047 test "X$hardcode_automatic_F77" = "Xyes" ; then
15048
15049 # We can hardcode non-existant directories.
15050 if test "$hardcode_direct_F77" != no &&
15051 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15052 # have to relink, otherwise we might link with an installed library
15053 # when we should be linking with a yet-to-be-installed one
15054 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15055 test "$hardcode_minus_L_F77" != no; then
15056 # Linking always hardcodes the temporary library directory.
15057 hardcode_action_F77=relink
15058 else
15059 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15060 hardcode_action_F77=immediate
15061 fi
15062 else
15063 # We cannot hardcode anything, or else we can only hardcode existing
15064 # directories.
15065 hardcode_action_F77=unsupported
15066 fi
15067 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15068 echo "${ECHO_T}$hardcode_action_F77" >&6
15069
15070 if test "$hardcode_action_F77" = relink; then
15071 # Fast installation is not supported
15072 enable_fast_install=no
15073 elif test "$shlibpath_overrides_runpath" = yes ||
15074 test "$enable_shared" = no; then
15075 # Fast installation is not necessary
15076 enable_fast_install=needless
15077 fi
15078
15079
15080 # The else clause should only fire when bootstrapping the
15081 # libtool distribution, otherwise you forgot to ship ltmain.sh
15082 # with your package, and you will get complaints that there are
15083 # no rules to generate ltmain.sh.
15084 if test -f "$ltmain"; then
15085 # See if we are running on zsh, and set the options which allow our commands through
15086 # without removal of \ escapes.
15087 if test -n "${ZSH_VERSION+set}" ; then
15088 setopt NO_GLOB_SUBST
15089 fi
15090 # Now quote all the things that may contain metacharacters while being
15091 # careful not to overquote the AC_SUBSTed values. We take copies of the
15092 # variables and quote the copies for generation of the libtool script.
15093 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15094 SED SHELL STRIP \
15095 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15096 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15097 deplibs_check_method reload_flag reload_cmds need_locks \
15098 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15099 lt_cv_sys_global_symbol_to_c_name_address \
15100 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15101 old_postinstall_cmds old_postuninstall_cmds \
15102 compiler_F77 \
15103 CC_F77 \
15104 LD_F77 \
15105 lt_prog_compiler_wl_F77 \
15106 lt_prog_compiler_pic_F77 \
15107 lt_prog_compiler_static_F77 \
15108 lt_prog_compiler_no_builtin_flag_F77 \
15109 export_dynamic_flag_spec_F77 \
15110 thread_safe_flag_spec_F77 \
15111 whole_archive_flag_spec_F77 \
15112 enable_shared_with_static_runtimes_F77 \
15113 old_archive_cmds_F77 \
15114 old_archive_from_new_cmds_F77 \
15115 predep_objects_F77 \
15116 postdep_objects_F77 \
15117 predeps_F77 \
15118 postdeps_F77 \
15119 compiler_lib_search_path_F77 \
15120 archive_cmds_F77 \
15121 archive_expsym_cmds_F77 \
15122 postinstall_cmds_F77 \
15123 postuninstall_cmds_F77 \
15124 old_archive_from_expsyms_cmds_F77 \
15125 allow_undefined_flag_F77 \
15126 no_undefined_flag_F77 \
15127 export_symbols_cmds_F77 \
15128 hardcode_libdir_flag_spec_F77 \
15129 hardcode_libdir_flag_spec_ld_F77 \
15130 hardcode_libdir_separator_F77 \
15131 hardcode_automatic_F77 \
15132 module_cmds_F77 \
15133 module_expsym_cmds_F77 \
15134 lt_cv_prog_compiler_c_o_F77 \
15135 exclude_expsyms_F77 \
15136 include_expsyms_F77; do
15137
15138 case $var in
15139 old_archive_cmds_F77 | \
15140 old_archive_from_new_cmds_F77 | \
15141 archive_cmds_F77 | \
15142 archive_expsym_cmds_F77 | \
15143 module_cmds_F77 | \
15144 module_expsym_cmds_F77 | \
15145 old_archive_from_expsyms_cmds_F77 | \
15146 export_symbols_cmds_F77 | \
15147 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15148 postinstall_cmds | postuninstall_cmds | \
15149 old_postinstall_cmds | old_postuninstall_cmds | \
15150 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15151 # Double-quote double-evaled strings.
15152 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15153 ;;
15154 *)
15155 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15156 ;;
15157 esac
15158 done
15159
15160 case $lt_echo in
15161 *'\$0 --fallback-echo"')
15162 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15163 ;;
15164 esac
15165
15166 cfgfile="$ofile"
15167
15168 cat <<__EOF__ >> "$cfgfile"
15169 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15170
15171 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15172
15173 # Shell to use when invoking shell scripts.
15174 SHELL=$lt_SHELL
15175
15176 # Whether or not to build shared libraries.
15177 build_libtool_libs=$enable_shared
15178
15179 # Whether or not to build static libraries.
15180 build_old_libs=$enable_static
15181
15182 # Whether or not to add -lc for building shared libraries.
15183 build_libtool_need_lc=$archive_cmds_need_lc_F77
15184
15185 # Whether or not to disallow shared libs when runtime libs are static
15186 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15187
15188 # Whether or not to optimize for fast installation.
15189 fast_install=$enable_fast_install
15190
15191 # The host system.
15192 host_alias=$host_alias
15193 host=$host
15194 host_os=$host_os
15195
15196 # The build system.
15197 build_alias=$build_alias
15198 build=$build
15199 build_os=$build_os
15200
15201 # An echo program that does not interpret backslashes.
15202 echo=$lt_echo
15203
15204 # The archiver.
15205 AR=$lt_AR
15206 AR_FLAGS=$lt_AR_FLAGS
15207
15208 # A C compiler.
15209 LTCC=$lt_LTCC
15210
15211 # LTCC compiler flags.
15212 LTCFLAGS=$lt_LTCFLAGS
15213
15214 # A language-specific compiler.
15215 CC=$lt_compiler_F77
15216
15217 # Is the compiler the GNU C compiler?
15218 with_gcc=$GCC_F77
15219
15220 # An ERE matcher.
15221 EGREP=$lt_EGREP
15222
15223 # The linker used to build libraries.
15224 LD=$lt_LD_F77
15225
15226 # Whether we need hard or soft links.
15227 LN_S=$lt_LN_S
15228
15229 # A BSD-compatible nm program.
15230 NM=$lt_NM
15231
15232 # A symbol stripping program
15233 STRIP=$lt_STRIP
15234
15235 # Used to examine libraries when file_magic_cmd begins "file"
15236 MAGIC_CMD=$MAGIC_CMD
15237
15238 # Used on cygwin: DLL creation program.
15239 DLLTOOL="$DLLTOOL"
15240
15241 # Used on cygwin: object dumper.
15242 OBJDUMP="$OBJDUMP"
15243
15244 # Used on cygwin: assembler.
15245 AS="$AS"
15246
15247 # The name of the directory that contains temporary libtool files.
15248 objdir=$objdir
15249
15250 # How to create reloadable object files.
15251 reload_flag=$lt_reload_flag
15252 reload_cmds=$lt_reload_cmds
15253
15254 # How to pass a linker flag through the compiler.
15255 wl=$lt_lt_prog_compiler_wl_F77
15256
15257 # Object file suffix (normally "o").
15258 objext="$ac_objext"
15259
15260 # Old archive suffix (normally "a").
15261 libext="$libext"
15262
15263 # Shared library suffix (normally ".so").
15264 shrext_cmds='$shrext_cmds'
15265
15266 # Executable file suffix (normally "").
15267 exeext="$exeext"
15268
15269 # Additional compiler flags for building library objects.
15270 pic_flag=$lt_lt_prog_compiler_pic_F77
15271 pic_mode=$pic_mode
15272
15273 # What is the maximum length of a command?
15274 max_cmd_len=$lt_cv_sys_max_cmd_len
15275
15276 # Does compiler simultaneously support -c and -o options?
15277 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15278
15279 # Must we lock files when doing compilation?
15280 need_locks=$lt_need_locks
15281
15282 # Do we need the lib prefix for modules?
15283 need_lib_prefix=$need_lib_prefix
15284
15285 # Do we need a version for libraries?
15286 need_version=$need_version
15287
15288 # Whether dlopen is supported.
15289 dlopen_support=$enable_dlopen
15290
15291 # Whether dlopen of programs is supported.
15292 dlopen_self=$enable_dlopen_self
15293
15294 # Whether dlopen of statically linked programs is supported.
15295 dlopen_self_static=$enable_dlopen_self_static
15296
15297 # Compiler flag to prevent dynamic linking.
15298 link_static_flag=$lt_lt_prog_compiler_static_F77
15299
15300 # Compiler flag to turn off builtin functions.
15301 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15302
15303 # Compiler flag to allow reflexive dlopens.
15304 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15305
15306 # Compiler flag to generate shared objects directly from archives.
15307 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15308
15309 # Compiler flag to generate thread-safe objects.
15310 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15311
15312 # Library versioning type.
15313 version_type=$version_type
15314
15315 # Format of library name prefix.
15316 libname_spec=$lt_libname_spec
15317
15318 # List of archive names. First name is the real one, the rest are links.
15319 # The last name is the one that the linker finds with -lNAME.
15320 library_names_spec=$lt_library_names_spec
15321
15322 # The coded name of the library, if different from the real name.
15323 soname_spec=$lt_soname_spec
15324
15325 # Commands used to build and install an old-style archive.
15326 RANLIB=$lt_RANLIB
15327 old_archive_cmds=$lt_old_archive_cmds_F77
15328 old_postinstall_cmds=$lt_old_postinstall_cmds
15329 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15330
15331 # Create an old-style archive from a shared archive.
15332 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15333
15334 # Create a temporary old-style archive to link instead of a shared archive.
15335 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15336
15337 # Commands used to build and install a shared archive.
15338 archive_cmds=$lt_archive_cmds_F77
15339 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15340 postinstall_cmds=$lt_postinstall_cmds
15341 postuninstall_cmds=$lt_postuninstall_cmds
15342
15343 # Commands used to build a loadable module (assumed same as above if empty)
15344 module_cmds=$lt_module_cmds_F77
15345 module_expsym_cmds=$lt_module_expsym_cmds_F77
15346
15347 # Commands to strip libraries.
15348 old_striplib=$lt_old_striplib
15349 striplib=$lt_striplib
15350
15351 # Dependencies to place before the objects being linked to create a
15352 # shared library.
15353 predep_objects=$lt_predep_objects_F77
15354
15355 # Dependencies to place after the objects being linked to create a
15356 # shared library.
15357 postdep_objects=$lt_postdep_objects_F77
15358
15359 # Dependencies to place before the objects being linked to create a
15360 # shared library.
15361 predeps=$lt_predeps_F77
15362
15363 # Dependencies to place after the objects being linked to create a
15364 # shared library.
15365 postdeps=$lt_postdeps_F77
15366
15367 # The library search path used internally by the compiler when linking
15368 # a shared library.
15369 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15370
15371 # Method to check whether dependent libraries are shared objects.
15372 deplibs_check_method=$lt_deplibs_check_method
15373
15374 # Command to use when deplibs_check_method == file_magic.
15375 file_magic_cmd=$lt_file_magic_cmd
15376
15377 # Flag that allows shared libraries with undefined symbols to be built.
15378 allow_undefined_flag=$lt_allow_undefined_flag_F77
15379
15380 # Flag that forces no undefined symbols.
15381 no_undefined_flag=$lt_no_undefined_flag_F77
15382
15383 # Commands used to finish a libtool library installation in a directory.
15384 finish_cmds=$lt_finish_cmds
15385
15386 # Same as above, but a single script fragment to be evaled but not shown.
15387 finish_eval=$lt_finish_eval
15388
15389 # Take the output of nm and produce a listing of raw symbols and C names.
15390 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15391
15392 # Transform the output of nm in a proper C declaration
15393 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15394
15395 # Transform the output of nm in a C name address pair
15396 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15397
15398 # This is the shared library runtime path variable.
15399 runpath_var=$runpath_var
15400
15401 # This is the shared library path variable.
15402 shlibpath_var=$shlibpath_var
15403
15404 # Is shlibpath searched before the hard-coded library search path?
15405 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15406
15407 # How to hardcode a shared library path into an executable.
15408 hardcode_action=$hardcode_action_F77
15409
15410 # Whether we should hardcode library paths into libraries.
15411 hardcode_into_libs=$hardcode_into_libs
15412
15413 # Flag to hardcode \$libdir into a binary during linking.
15414 # This must work even if \$libdir does not exist.
15415 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15416
15417 # If ld is used when linking, flag to hardcode \$libdir into
15418 # a binary during linking. This must work even if \$libdir does
15419 # not exist.
15420 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15421
15422 # Whether we need a single -rpath flag with a separated argument.
15423 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15424
15425 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15426 # resulting binary.
15427 hardcode_direct=$hardcode_direct_F77
15428
15429 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15430 # resulting binary.
15431 hardcode_minus_L=$hardcode_minus_L_F77
15432
15433 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15434 # the resulting binary.
15435 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15436
15437 # Set to yes if building a shared library automatically hardcodes DIR into the library
15438 # and all subsequent libraries and executables linked against it.
15439 hardcode_automatic=$hardcode_automatic_F77
15440
15441 # Variables whose values should be saved in libtool wrapper scripts and
15442 # restored at relink time.
15443 variables_saved_for_relink="$variables_saved_for_relink"
15444
15445 # Whether libtool must link a program against all its dependency libraries.
15446 link_all_deplibs=$link_all_deplibs_F77
15447
15448 # Compile-time system search path for libraries
15449 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15450
15451 # Run-time system search path for libraries
15452 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15453
15454 # Fix the shell variable \$srcfile for the compiler.
15455 fix_srcfile_path="$fix_srcfile_path_F77"
15456
15457 # Set to yes if exported symbols are required.
15458 always_export_symbols=$always_export_symbols_F77
15459
15460 # The commands to list exported symbols.
15461 export_symbols_cmds=$lt_export_symbols_cmds_F77
15462
15463 # The commands to extract the exported symbol list from a shared archive.
15464 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15465
15466 # Symbols that should not be listed in the preloaded symbols.
15467 exclude_expsyms=$lt_exclude_expsyms_F77
15468
15469 # Symbols that must always be exported.
15470 include_expsyms=$lt_include_expsyms_F77
15471
15472 # ### END LIBTOOL TAG CONFIG: $tagname
15473
15474 __EOF__
15475
15476
15477 else
15478 # If there is no Makefile yet, we rely on a make rule to execute
15479 # `config.status --recheck' to rerun these tests and create the
15480 # libtool script then.
15481 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15482 if test -f "$ltmain_in"; then
15483 test -f Makefile && make "$ltmain"
15484 fi
15485 fi
15486
15487
15488 ac_ext=c
15489 ac_cpp='$CPP $CPPFLAGS'
15490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15493
15494 CC="$lt_save_CC"
15495
15496 else
15497 tagname=""
15498 fi
15499 ;;
15500
15501 GCJ)
15502 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15503
15504
15505
15506 # Source file extension for Java test sources.
15507 ac_ext=java
15508
15509 # Object file extension for compiled Java test sources.
15510 objext=o
15511 objext_GCJ=$objext
15512
15513 # Code to be used in simple compile tests
15514 lt_simple_compile_test_code="class foo {}\n"
15515
15516 # Code to be used in simple link tests
15517 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15518
15519 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15520
15521 # If no C compiler was specified, use CC.
15522 LTCC=${LTCC-"$CC"}
15523
15524 # If no C compiler flags were specified, use CFLAGS.
15525 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15526
15527 # Allow CC to be a program name with arguments.
15528 compiler=$CC
15529
15530
15531 # save warnings/boilerplate of simple test code
15532 ac_outfile=conftest.$ac_objext
15533 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15534 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15535 _lt_compiler_boilerplate=`cat conftest.err`
15536 $rm conftest*
15537
15538 ac_outfile=conftest.$ac_objext
15539 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15540 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15541 _lt_linker_boilerplate=`cat conftest.err`
15542 $rm conftest*
15543
15544
15545 # Allow CC to be a program name with arguments.
15546 lt_save_CC="$CC"
15547 CC=${GCJ-"gcj"}
15548 compiler=$CC
15549 compiler_GCJ=$CC
15550 for cc_temp in $compiler""; do
15551 case $cc_temp in
15552 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15553 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15554 \-*) ;;
15555 *) break;;
15556 esac
15557 done
15558 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15559
15560
15561 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15562 archive_cmds_need_lc_GCJ=no
15563
15564 old_archive_cmds_GCJ=$old_archive_cmds
15565
15566
15567 lt_prog_compiler_no_builtin_flag_GCJ=
15568
15569 if test "$GCC" = yes; then
15570 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15571
15572
15573 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15574 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15575 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15576 echo $ECHO_N "(cached) $ECHO_C" >&6
15577 else
15578 lt_cv_prog_compiler_rtti_exceptions=no
15579 ac_outfile=conftest.$ac_objext
15580 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15581 lt_compiler_flag="-fno-rtti -fno-exceptions"
15582 # Insert the option either (1) after the last *FLAGS variable, or
15583 # (2) before a word containing "conftest.", or (3) at the end.
15584 # Note that $ac_compile itself does not contain backslashes and begins
15585 # with a dollar sign (not a hyphen), so the echo should work correctly.
15586 # The option is referenced via a variable to avoid confusing sed.
15587 lt_compile=`echo "$ac_compile" | $SED \
15588 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15590 -e 's:$: $lt_compiler_flag:'`
15591 (eval echo "\"\$as_me:15591: $lt_compile\"" >&5)
15592 (eval "$lt_compile" 2>conftest.err)
15593 ac_status=$?
15594 cat conftest.err >&5
15595 echo "$as_me:15595: \$? = $ac_status" >&5
15596 if (exit $ac_status) && test -s "$ac_outfile"; then
15597 # The compiler can only warn and ignore the option if not recognized
15598 # So say no if there are warnings other than the usual output.
15599 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15600 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15601 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15602 lt_cv_prog_compiler_rtti_exceptions=yes
15603 fi
15604 fi
15605 $rm conftest*
15606
15607 fi
15608 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15609 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15610
15611 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15612 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15613 else
15614 :
15615 fi
15616
15617 fi
15618
15619 lt_prog_compiler_wl_GCJ=
15620 lt_prog_compiler_pic_GCJ=
15621 lt_prog_compiler_static_GCJ=
15622
15623 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15624 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15625
15626 if test "$GCC" = yes; then
15627 lt_prog_compiler_wl_GCJ='-Wl,'
15628 lt_prog_compiler_static_GCJ='-static'
15629
15630 case $host_os in
15631 aix*)
15632 # All AIX code is PIC.
15633 if test "$host_cpu" = ia64; then
15634 # AIX 5 now supports IA64 processor
15635 lt_prog_compiler_static_GCJ='-Bstatic'
15636 fi
15637 ;;
15638
15639 amigaos*)
15640 # FIXME: we need at least 68020 code to build shared libraries, but
15641 # adding the `-m68020' flag to GCC prevents building anything better,
15642 # like `-m68040'.
15643 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15644 ;;
15645
15646 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15647 # PIC is the default for these OSes.
15648 ;;
15649
15650 mingw* | pw32* | os2*)
15651 # This hack is so that the source file can tell whether it is being
15652 # built for inclusion in a dll (and should export symbols for example).
15653 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15654 ;;
15655
15656 darwin* | rhapsody*)
15657 # PIC is the default on this platform
15658 # Common symbols not allowed in MH_DYLIB files
15659 lt_prog_compiler_pic_GCJ='-fno-common'
15660 ;;
15661
15662 interix3*)
15663 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15664 # Instead, we relocate shared libraries at runtime.
15665 ;;
15666
15667 msdosdjgpp*)
15668 # Just because we use GCC doesn't mean we suddenly get shared libraries
15669 # on systems that don't support them.
15670 lt_prog_compiler_can_build_shared_GCJ=no
15671 enable_shared=no
15672 ;;
15673
15674 sysv4*MP*)
15675 if test -d /usr/nec; then
15676 lt_prog_compiler_pic_GCJ=-Kconform_pic
15677 fi
15678 ;;
15679
15680 hpux*)
15681 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15682 # not for PA HP-UX.
15683 case $host_cpu in
15684 hppa*64*|ia64*)
15685 # +Z the default
15686 ;;
15687 *)
15688 lt_prog_compiler_pic_GCJ='-fPIC'
15689 ;;
15690 esac
15691 ;;
15692
15693 *)
15694 lt_prog_compiler_pic_GCJ='-fPIC'
15695 ;;
15696 esac
15697 else
15698 # PORTME Check for flag to pass linker flags through the system compiler.
15699 case $host_os in
15700 aix*)
15701 lt_prog_compiler_wl_GCJ='-Wl,'
15702 if test "$host_cpu" = ia64; then
15703 # AIX 5 now supports IA64 processor
15704 lt_prog_compiler_static_GCJ='-Bstatic'
15705 else
15706 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15707 fi
15708 ;;
15709 darwin*)
15710 # PIC is the default on this platform
15711 # Common symbols not allowed in MH_DYLIB files
15712 case $cc_basename in
15713 xlc*)
15714 lt_prog_compiler_pic_GCJ='-qnocommon'
15715 lt_prog_compiler_wl_GCJ='-Wl,'
15716 ;;
15717 esac
15718 ;;
15719
15720 mingw* | pw32* | os2*)
15721 # This hack is so that the source file can tell whether it is being
15722 # built for inclusion in a dll (and should export symbols for example).
15723 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15724 ;;
15725
15726 hpux9* | hpux10* | hpux11*)
15727 lt_prog_compiler_wl_GCJ='-Wl,'
15728 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15729 # not for PA HP-UX.
15730 case $host_cpu in
15731 hppa*64*|ia64*)
15732 # +Z the default
15733 ;;
15734 *)
15735 lt_prog_compiler_pic_GCJ='+Z'
15736 ;;
15737 esac
15738 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15739 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15740 ;;
15741
15742 irix5* | irix6* | nonstopux*)
15743 lt_prog_compiler_wl_GCJ='-Wl,'
15744 # PIC (with -KPIC) is the default.
15745 lt_prog_compiler_static_GCJ='-non_shared'
15746 ;;
15747
15748 newsos6)
15749 lt_prog_compiler_pic_GCJ='-KPIC'
15750 lt_prog_compiler_static_GCJ='-Bstatic'
15751 ;;
15752
15753 linux*)
15754 case $cc_basename in
15755 icc* | ecc*)
15756 lt_prog_compiler_wl_GCJ='-Wl,'
15757 lt_prog_compiler_pic_GCJ='-KPIC'
15758 lt_prog_compiler_static_GCJ='-static'
15759 ;;
15760 pgcc* | pgf77* | pgf90* | pgf95*)
15761 # Portland Group compilers (*not* the Pentium gcc compiler,
15762 # which looks to be a dead project)
15763 lt_prog_compiler_wl_GCJ='-Wl,'
15764 lt_prog_compiler_pic_GCJ='-fpic'
15765 lt_prog_compiler_static_GCJ='-Bstatic'
15766 ;;
15767 ccc*)
15768 lt_prog_compiler_wl_GCJ='-Wl,'
15769 # All Alpha code is PIC.
15770 lt_prog_compiler_static_GCJ='-non_shared'
15771 ;;
15772 esac
15773 ;;
15774
15775 osf3* | osf4* | osf5*)
15776 lt_prog_compiler_wl_GCJ='-Wl,'
15777 # All OSF/1 code is PIC.
15778 lt_prog_compiler_static_GCJ='-non_shared'
15779 ;;
15780
15781 solaris*)
15782 lt_prog_compiler_pic_GCJ='-KPIC'
15783 lt_prog_compiler_static_GCJ='-Bstatic'
15784 case $cc_basename in
15785 f77* | f90* | f95*)
15786 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15787 *)
15788 lt_prog_compiler_wl_GCJ='-Wl,';;
15789 esac
15790 ;;
15791
15792 sunos4*)
15793 lt_prog_compiler_wl_GCJ='-Qoption ld '
15794 lt_prog_compiler_pic_GCJ='-PIC'
15795 lt_prog_compiler_static_GCJ='-Bstatic'
15796 ;;
15797
15798 sysv4 | sysv4.2uw2* | sysv4.3*)
15799 lt_prog_compiler_wl_GCJ='-Wl,'
15800 lt_prog_compiler_pic_GCJ='-KPIC'
15801 lt_prog_compiler_static_GCJ='-Bstatic'
15802 ;;
15803
15804 sysv4*MP*)
15805 if test -d /usr/nec ;then
15806 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15807 lt_prog_compiler_static_GCJ='-Bstatic'
15808 fi
15809 ;;
15810
15811 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15812 lt_prog_compiler_wl_GCJ='-Wl,'
15813 lt_prog_compiler_pic_GCJ='-KPIC'
15814 lt_prog_compiler_static_GCJ='-Bstatic'
15815 ;;
15816
15817 unicos*)
15818 lt_prog_compiler_wl_GCJ='-Wl,'
15819 lt_prog_compiler_can_build_shared_GCJ=no
15820 ;;
15821
15822 uts4*)
15823 lt_prog_compiler_pic_GCJ='-pic'
15824 lt_prog_compiler_static_GCJ='-Bstatic'
15825 ;;
15826
15827 *)
15828 lt_prog_compiler_can_build_shared_GCJ=no
15829 ;;
15830 esac
15831 fi
15832
15833 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15834 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15835
15836 #
15837 # Check to make sure the PIC flag actually works.
15838 #
15839 if test -n "$lt_prog_compiler_pic_GCJ"; then
15840
15841 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15842 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15843 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15844 echo $ECHO_N "(cached) $ECHO_C" >&6
15845 else
15846 lt_prog_compiler_pic_works_GCJ=no
15847 ac_outfile=conftest.$ac_objext
15848 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15849 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15850 # Insert the option either (1) after the last *FLAGS variable, or
15851 # (2) before a word containing "conftest.", or (3) at the end.
15852 # Note that $ac_compile itself does not contain backslashes and begins
15853 # with a dollar sign (not a hyphen), so the echo should work correctly.
15854 # The option is referenced via a variable to avoid confusing sed.
15855 lt_compile=`echo "$ac_compile" | $SED \
15856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15858 -e 's:$: $lt_compiler_flag:'`
15859 (eval echo "\"\$as_me:15859: $lt_compile\"" >&5)
15860 (eval "$lt_compile" 2>conftest.err)
15861 ac_status=$?
15862 cat conftest.err >&5
15863 echo "$as_me:15863: \$? = $ac_status" >&5
15864 if (exit $ac_status) && test -s "$ac_outfile"; then
15865 # The compiler can only warn and ignore the option if not recognized
15866 # So say no if there are warnings other than the usual output.
15867 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15869 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15870 lt_prog_compiler_pic_works_GCJ=yes
15871 fi
15872 fi
15873 $rm conftest*
15874
15875 fi
15876 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15877 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15878
15879 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15880 case $lt_prog_compiler_pic_GCJ in
15881 "" | " "*) ;;
15882 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15883 esac
15884 else
15885 lt_prog_compiler_pic_GCJ=
15886 lt_prog_compiler_can_build_shared_GCJ=no
15887 fi
15888
15889 fi
15890 case $host_os in
15891 # For platforms which do not support PIC, -DPIC is meaningless:
15892 *djgpp*)
15893 lt_prog_compiler_pic_GCJ=
15894 ;;
15895 *)
15896 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15897 ;;
15898 esac
15899
15900 #
15901 # Check to make sure the static flag actually works.
15902 #
15903 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15904 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15905 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15906 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15907 echo $ECHO_N "(cached) $ECHO_C" >&6
15908 else
15909 lt_prog_compiler_static_works_GCJ=no
15910 save_LDFLAGS="$LDFLAGS"
15911 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15912 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15913 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15914 # The linker can only warn and ignore the option if not recognized
15915 # So say no if there are warnings
15916 if test -s conftest.err; then
15917 # Append any errors to the config.log.
15918 cat conftest.err 1>&5
15919 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15920 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15921 if diff conftest.exp conftest.er2 >/dev/null; then
15922 lt_prog_compiler_static_works_GCJ=yes
15923 fi
15924 else
15925 lt_prog_compiler_static_works_GCJ=yes
15926 fi
15927 fi
15928 $rm conftest*
15929 LDFLAGS="$save_LDFLAGS"
15930
15931 fi
15932 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15933 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15934
15935 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15936 :
15937 else
15938 lt_prog_compiler_static_GCJ=
15939 fi
15940
15941
15942 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15943 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15944 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15945 echo $ECHO_N "(cached) $ECHO_C" >&6
15946 else
15947 lt_cv_prog_compiler_c_o_GCJ=no
15948 $rm -r conftest 2>/dev/null
15949 mkdir conftest
15950 cd conftest
15951 mkdir out
15952 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15953
15954 lt_compiler_flag="-o out/conftest2.$ac_objext"
15955 # Insert the option either (1) after the last *FLAGS variable, or
15956 # (2) before a word containing "conftest.", or (3) at the end.
15957 # Note that $ac_compile itself does not contain backslashes and begins
15958 # with a dollar sign (not a hyphen), so the echo should work correctly.
15959 lt_compile=`echo "$ac_compile" | $SED \
15960 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15961 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15962 -e 's:$: $lt_compiler_flag:'`
15963 (eval echo "\"\$as_me:15963: $lt_compile\"" >&5)
15964 (eval "$lt_compile" 2>out/conftest.err)
15965 ac_status=$?
15966 cat out/conftest.err >&5
15967 echo "$as_me:15967: \$? = $ac_status" >&5
15968 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15969 then
15970 # The compiler can only warn and ignore the option if not recognized
15971 # So say no if there are warnings
15972 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15973 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15974 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15975 lt_cv_prog_compiler_c_o_GCJ=yes
15976 fi
15977 fi
15978 chmod u+w . 2>&5
15979 $rm conftest*
15980 # SGI C++ compiler will create directory out/ii_files/ for
15981 # template instantiation
15982 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15983 $rm out/* && rmdir out
15984 cd ..
15985 rmdir conftest
15986 $rm conftest*
15987
15988 fi
15989 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15990 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15991
15992
15993 hard_links="nottested"
15994 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15995 # do not overwrite the value of need_locks provided by the user
15996 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15997 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15998 hard_links=yes
15999 $rm conftest*
16000 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16001 touch conftest.a
16002 ln conftest.a conftest.b 2>&5 || hard_links=no
16003 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16004 echo "$as_me:$LINENO: result: $hard_links" >&5
16005 echo "${ECHO_T}$hard_links" >&6
16006 if test "$hard_links" = no; then
16007 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16008 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16009 need_locks=warn
16010 fi
16011 else
16012 need_locks=no
16013 fi
16014
16015 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16016 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16017
16018 runpath_var=
16019 allow_undefined_flag_GCJ=
16020 enable_shared_with_static_runtimes_GCJ=no
16021 archive_cmds_GCJ=
16022 archive_expsym_cmds_GCJ=
16023 old_archive_From_new_cmds_GCJ=
16024 old_archive_from_expsyms_cmds_GCJ=
16025 export_dynamic_flag_spec_GCJ=
16026 whole_archive_flag_spec_GCJ=
16027 thread_safe_flag_spec_GCJ=
16028 hardcode_libdir_flag_spec_GCJ=
16029 hardcode_libdir_flag_spec_ld_GCJ=
16030 hardcode_libdir_separator_GCJ=
16031 hardcode_direct_GCJ=no
16032 hardcode_minus_L_GCJ=no
16033 hardcode_shlibpath_var_GCJ=unsupported
16034 link_all_deplibs_GCJ=unknown
16035 hardcode_automatic_GCJ=no
16036 module_cmds_GCJ=
16037 module_expsym_cmds_GCJ=
16038 always_export_symbols_GCJ=no
16039 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16040 # include_expsyms should be a list of space-separated symbols to be *always*
16041 # included in the symbol list
16042 include_expsyms_GCJ=
16043 # exclude_expsyms can be an extended regexp of symbols to exclude
16044 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16045 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16046 # as well as any symbol that contains `d'.
16047 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16048 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16049 # platforms (ab)use it in PIC code, but their linkers get confused if
16050 # the symbol is explicitly referenced. Since portable code cannot
16051 # rely on this symbol name, it's probably fine to never include it in
16052 # preloaded symbol tables.
16053 extract_expsyms_cmds=
16054 # Just being paranoid about ensuring that cc_basename is set.
16055 for cc_temp in $compiler""; do
16056 case $cc_temp in
16057 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16058 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16059 \-*) ;;
16060 *) break;;
16061 esac
16062 done
16063 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16064
16065 case $host_os in
16066 cygwin* | mingw* | pw32*)
16067 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16068 # When not using gcc, we currently assume that we are using
16069 # Microsoft Visual C++.
16070 if test "$GCC" != yes; then
16071 with_gnu_ld=no
16072 fi
16073 ;;
16074 interix*)
16075 # we just hope/assume this is gcc and not c89 (= MSVC++)
16076 with_gnu_ld=yes
16077 ;;
16078 openbsd*)
16079 with_gnu_ld=no
16080 ;;
16081 esac
16082
16083 ld_shlibs_GCJ=yes
16084 if test "$with_gnu_ld" = yes; then
16085 # If archive_cmds runs LD, not CC, wlarc should be empty
16086 wlarc='${wl}'
16087
16088 # Set some defaults for GNU ld with shared library support. These
16089 # are reset later if shared libraries are not supported. Putting them
16090 # here allows them to be overridden if necessary.
16091 runpath_var=LD_RUN_PATH
16092 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16093 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16094 # ancient GNU ld didn't support --whole-archive et. al.
16095 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16096 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16097 else
16098 whole_archive_flag_spec_GCJ=
16099 fi
16100 supports_anon_versioning=no
16101 case `$LD -v 2>/dev/null` in
16102 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16103 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16104 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16105 *\ 2.11.*) ;; # other 2.11 versions
16106 *) supports_anon_versioning=yes ;;
16107 esac
16108
16109 # See if GNU ld supports shared libraries.
16110 case $host_os in
16111 aix3* | aix4* | aix5*)
16112 # On AIX/PPC, the GNU linker is very broken
16113 if test "$host_cpu" != ia64; then
16114 ld_shlibs_GCJ=no
16115 cat <<EOF 1>&2
16116
16117 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16118 *** to be unable to reliably create shared libraries on AIX.
16119 *** Therefore, libtool is disabling shared libraries support. If you
16120 *** really care for shared libraries, you may want to modify your PATH
16121 *** so that a non-GNU linker is found, and then restart.
16122
16123 EOF
16124 fi
16125 ;;
16126
16127 amigaos*)
16128 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)'
16129 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16130 hardcode_minus_L_GCJ=yes
16131
16132 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
16133 # that the semantics of dynamic libraries on AmigaOS, at least up
16134 # to version 4, is to share data among multiple programs linked
16135 # with the same dynamic library. Since this doesn't match the
16136 # behavior of shared libraries on other platforms, we can't use
16137 # them.
16138 ld_shlibs_GCJ=no
16139 ;;
16140
16141 beos*)
16142 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16143 allow_undefined_flag_GCJ=unsupported
16144 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
16145 # support --undefined. This deserves some investigation. FIXME
16146 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16147 else
16148 ld_shlibs_GCJ=no
16149 fi
16150 ;;
16151
16152 cygwin* | mingw* | pw32*)
16153 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16154 # as there is no search path for DLLs.
16155 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16156 allow_undefined_flag_GCJ=unsupported
16157 always_export_symbols_GCJ=no
16158 enable_shared_with_static_runtimes_GCJ=yes
16159 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16160
16161 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16162 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16163 # If the export-symbols file already is a .def file (1st line
16164 # is EXPORTS), use it as is; otherwise, prepend...
16165 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16166 cp $export_symbols $output_objdir/$soname.def;
16167 else
16168 echo EXPORTS > $output_objdir/$soname.def;
16169 cat $export_symbols >> $output_objdir/$soname.def;
16170 fi~
16171 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16172 else
16173 ld_shlibs_GCJ=no
16174 fi
16175 ;;
16176
16177 interix3*)
16178 hardcode_direct_GCJ=no
16179 hardcode_shlibpath_var_GCJ=no
16180 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16181 export_dynamic_flag_spec_GCJ='${wl}-E'
16182 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16183 # Instead, shared libraries are loaded at an image base (0x10000000 by
16184 # default) and relocated if they conflict, which is a slow very memory
16185 # consuming and fragmenting process. To avoid this, we pick a random,
16186 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16187 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16188 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16189 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16190 ;;
16191
16192 linux*)
16193 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16194 tmp_addflag=
16195 case $cc_basename,$host_cpu in
16196 pgcc*) # Portland Group C compiler
16197 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16198 tmp_addflag=' $pic_flag'
16199 ;;
16200 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16201 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16202 tmp_addflag=' $pic_flag -Mnomain' ;;
16203 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16204 tmp_addflag=' -i_dynamic' ;;
16205 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16206 tmp_addflag=' -i_dynamic -nofor_main' ;;
16207 ifc* | ifort*) # Intel Fortran compiler
16208 tmp_addflag=' -nofor_main' ;;
16209 esac
16210 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16211
16212 if test $supports_anon_versioning = yes; then
16213 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16214 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16215 $echo "local: *; };" >> $output_objdir/$libname.ver~
16216 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16217 fi
16218 else
16219 ld_shlibs_GCJ=no
16220 fi
16221 ;;
16222
16223 netbsd*)
16224 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16225 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16226 wlarc=
16227 else
16228 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16229 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16230 fi
16231 ;;
16232
16233 solaris*)
16234 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16235 ld_shlibs_GCJ=no
16236 cat <<EOF 1>&2
16237
16238 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16239 *** create shared libraries on Solaris systems. Therefore, libtool
16240 *** is disabling shared libraries support. We urge you to upgrade GNU
16241 *** binutils to release 2.9.1 or newer. Another option is to modify
16242 *** your PATH or compiler configuration so that the native linker is
16243 *** used, and then restart.
16244
16245 EOF
16246 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16247 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16248 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16249 else
16250 ld_shlibs_GCJ=no
16251 fi
16252 ;;
16253
16254 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16255 case `$LD -v 2>&1` in
16256 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16257 ld_shlibs_GCJ=no
16258 cat <<_LT_EOF 1>&2
16259
16260 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16261 *** reliably create shared libraries on SCO systems. Therefore, libtool
16262 *** is disabling shared libraries support. We urge you to upgrade GNU
16263 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16264 *** your PATH or compiler configuration so that the native linker is
16265 *** used, and then restart.
16266
16267 _LT_EOF
16268 ;;
16269 *)
16270 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16271 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16272 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16273 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16274 else
16275 ld_shlibs_GCJ=no
16276 fi
16277 ;;
16278 esac
16279 ;;
16280
16281 sunos4*)
16282 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16283 wlarc=
16284 hardcode_direct_GCJ=yes
16285 hardcode_shlibpath_var_GCJ=no
16286 ;;
16287
16288 *)
16289 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16290 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16291 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16292 else
16293 ld_shlibs_GCJ=no
16294 fi
16295 ;;
16296 esac
16297
16298 if test "$ld_shlibs_GCJ" = no; then
16299 runpath_var=
16300 hardcode_libdir_flag_spec_GCJ=
16301 export_dynamic_flag_spec_GCJ=
16302 whole_archive_flag_spec_GCJ=
16303 fi
16304 else
16305 # PORTME fill in a description of your system's linker (not GNU ld)
16306 case $host_os in
16307 aix3*)
16308 allow_undefined_flag_GCJ=unsupported
16309 always_export_symbols_GCJ=yes
16310 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'
16311 # Note: this linker hardcodes the directories in LIBPATH if there
16312 # are no directories specified by -L.
16313 hardcode_minus_L_GCJ=yes
16314 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16315 # Neither direct hardcoding nor static linking is supported with a
16316 # broken collect2.
16317 hardcode_direct_GCJ=unsupported
16318 fi
16319 ;;
16320
16321 aix4* | aix5*)
16322 if test "$host_cpu" = ia64; then
16323 # On IA64, the linker does run time linking by default, so we don't
16324 # have to do anything special.
16325 aix_use_runtimelinking=no
16326 exp_sym_flag='-Bexport'
16327 no_entry_flag=""
16328 else
16329 # If we're using GNU nm, then we don't want the "-C" option.
16330 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16331 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16332 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16333 else
16334 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16335 fi
16336 aix_use_runtimelinking=no
16337
16338 # Test if we are trying to use run time linking or normal
16339 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16340 # need to do runtime linking.
16341 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16342 for ld_flag in $LDFLAGS; do
16343 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16344 aix_use_runtimelinking=yes
16345 break
16346 fi
16347 done
16348 ;;
16349 esac
16350
16351 exp_sym_flag='-bexport'
16352 no_entry_flag='-bnoentry'
16353 fi
16354
16355 # When large executables or shared objects are built, AIX ld can
16356 # have problems creating the table of contents. If linking a library
16357 # or program results in "error TOC overflow" add -mminimal-toc to
16358 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16359 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16360
16361 archive_cmds_GCJ=''
16362 hardcode_direct_GCJ=yes
16363 hardcode_libdir_separator_GCJ=':'
16364 link_all_deplibs_GCJ=yes
16365
16366 if test "$GCC" = yes; then
16367 case $host_os in aix4.[012]|aix4.[012].*)
16368 # We only want to do this on AIX 4.2 and lower, the check
16369 # below for broken collect2 doesn't work under 4.3+
16370 collect2name=`${CC} -print-prog-name=collect2`
16371 if test -f "$collect2name" && \
16372 strings "$collect2name" | grep resolve_lib_name >/dev/null
16373 then
16374 # We have reworked collect2
16375 hardcode_direct_GCJ=yes
16376 else
16377 # We have old collect2
16378 hardcode_direct_GCJ=unsupported
16379 # It fails to find uninstalled libraries when the uninstalled
16380 # path is not listed in the libpath. Setting hardcode_minus_L
16381 # to unsupported forces relinking
16382 hardcode_minus_L_GCJ=yes
16383 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16384 hardcode_libdir_separator_GCJ=
16385 fi
16386 ;;
16387 esac
16388 shared_flag='-shared'
16389 if test "$aix_use_runtimelinking" = yes; then
16390 shared_flag="$shared_flag "'${wl}-G'
16391 fi
16392 else
16393 # not using gcc
16394 if test "$host_cpu" = ia64; then
16395 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16396 # chokes on -Wl,-G. The following line is correct:
16397 shared_flag='-G'
16398 else
16399 if test "$aix_use_runtimelinking" = yes; then
16400 shared_flag='${wl}-G'
16401 else
16402 shared_flag='${wl}-bM:SRE'
16403 fi
16404 fi
16405 fi
16406
16407 # It seems that -bexpall does not export symbols beginning with
16408 # underscore (_), so it is better to generate a list of symbols to export.
16409 always_export_symbols_GCJ=yes
16410 if test "$aix_use_runtimelinking" = yes; then
16411 # Warning - without using the other runtime loading flags (-brtl),
16412 # -berok will link without error, but may produce a broken library.
16413 allow_undefined_flag_GCJ='-berok'
16414 # Determine the default libpath from the value encoded in an empty executable.
16415 cat >conftest.$ac_ext <<_ACEOF
16416 /* confdefs.h. */
16417 _ACEOF
16418 cat confdefs.h >>conftest.$ac_ext
16419 cat >>conftest.$ac_ext <<_ACEOF
16420 /* end confdefs.h. */
16421
16422 int
16423 main ()
16424 {
16425
16426 ;
16427 return 0;
16428 }
16429 _ACEOF
16430 rm -f conftest.$ac_objext conftest$ac_exeext
16431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16432 (eval $ac_link) 2>conftest.er1
16433 ac_status=$?
16434 grep -v '^ *+' conftest.er1 >conftest.err
16435 rm -f conftest.er1
16436 cat conftest.err >&5
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); } &&
16439 { ac_try='test -z "$ac_c_werror_flag"
16440 || test ! -s conftest.err'
16441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442 (eval $ac_try) 2>&5
16443 ac_status=$?
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; } &&
16446 { ac_try='test -s conftest$ac_exeext'
16447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448 (eval $ac_try) 2>&5
16449 ac_status=$?
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); }; }; then
16452
16453 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16454 }'`
16455 # Check for a 64-bit object if we didn't find anything.
16456 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16457 }'`; fi
16458 else
16459 echo "$as_me: failed program was:" >&5
16460 sed 's/^/| /' conftest.$ac_ext >&5
16461
16462 fi
16463 rm -f conftest.err conftest.$ac_objext \
16464 conftest$ac_exeext conftest.$ac_ext
16465 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16466
16467 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16468 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16469 else
16470 if test "$host_cpu" = ia64; then
16471 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16472 allow_undefined_flag_GCJ="-z nodefs"
16473 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16474 else
16475 # Determine the default libpath from the value encoded in an empty executable.
16476 cat >conftest.$ac_ext <<_ACEOF
16477 /* confdefs.h. */
16478 _ACEOF
16479 cat confdefs.h >>conftest.$ac_ext
16480 cat >>conftest.$ac_ext <<_ACEOF
16481 /* end confdefs.h. */
16482
16483 int
16484 main ()
16485 {
16486
16487 ;
16488 return 0;
16489 }
16490 _ACEOF
16491 rm -f conftest.$ac_objext conftest$ac_exeext
16492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16493 (eval $ac_link) 2>conftest.er1
16494 ac_status=$?
16495 grep -v '^ *+' conftest.er1 >conftest.err
16496 rm -f conftest.er1
16497 cat conftest.err >&5
16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); } &&
16500 { ac_try='test -z "$ac_c_werror_flag"
16501 || test ! -s conftest.err'
16502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16503 (eval $ac_try) 2>&5
16504 ac_status=$?
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); }; } &&
16507 { ac_try='test -s conftest$ac_exeext'
16508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16509 (eval $ac_try) 2>&5
16510 ac_status=$?
16511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512 (exit $ac_status); }; }; then
16513
16514 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16515 }'`
16516 # Check for a 64-bit object if we didn't find anything.
16517 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16518 }'`; fi
16519 else
16520 echo "$as_me: failed program was:" >&5
16521 sed 's/^/| /' conftest.$ac_ext >&5
16522
16523 fi
16524 rm -f conftest.err conftest.$ac_objext \
16525 conftest$ac_exeext conftest.$ac_ext
16526 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16527
16528 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16529 # Warning - without using the other run time loading flags,
16530 # -berok will link without error, but may produce a broken library.
16531 no_undefined_flag_GCJ=' ${wl}-bernotok'
16532 allow_undefined_flag_GCJ=' ${wl}-berok'
16533 # Exported symbols can be pulled into shared objects from archives
16534 whole_archive_flag_spec_GCJ='$convenience'
16535 archive_cmds_need_lc_GCJ=yes
16536 # This is similar to how AIX traditionally builds its shared libraries.
16537 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16538 fi
16539 fi
16540 ;;
16541
16542 amigaos*)
16543 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)'
16544 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16545 hardcode_minus_L_GCJ=yes
16546 # see comment about different semantics on the GNU ld section
16547 ld_shlibs_GCJ=no
16548 ;;
16549
16550 bsdi[45]*)
16551 export_dynamic_flag_spec_GCJ=-rdynamic
16552 ;;
16553
16554 cygwin* | mingw* | pw32*)
16555 # When not using gcc, we currently assume that we are using
16556 # Microsoft Visual C++.
16557 # hardcode_libdir_flag_spec is actually meaningless, as there is
16558 # no search path for DLLs.
16559 hardcode_libdir_flag_spec_GCJ=' '
16560 allow_undefined_flag_GCJ=unsupported
16561 # Tell ltmain to make .lib files, not .a files.
16562 libext=lib
16563 # Tell ltmain to make .dll files, not .so files.
16564 shrext_cmds=".dll"
16565 # FIXME: Setting linknames here is a bad hack.
16566 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16567 # The linker will automatically build a .lib file if we build a DLL.
16568 old_archive_From_new_cmds_GCJ='true'
16569 # FIXME: Should let the user specify the lib program.
16570 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16571 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16572 enable_shared_with_static_runtimes_GCJ=yes
16573 ;;
16574
16575 darwin* | rhapsody*)
16576 case $host_os in
16577 rhapsody* | darwin1.[012])
16578 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16579 ;;
16580 *) # Darwin 1.3 on
16581 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16582 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16583 else
16584 case ${MACOSX_DEPLOYMENT_TARGET} in
16585 10.[012])
16586 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16587 ;;
16588 10.*)
16589 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16590 ;;
16591 esac
16592 fi
16593 ;;
16594 esac
16595 archive_cmds_need_lc_GCJ=no
16596 hardcode_direct_GCJ=no
16597 hardcode_automatic_GCJ=yes
16598 hardcode_shlibpath_var_GCJ=unsupported
16599 whole_archive_flag_spec_GCJ=''
16600 link_all_deplibs_GCJ=yes
16601 if test "$GCC" = yes ; then
16602 output_verbose_link_cmd='echo'
16603 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16604 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16605 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16606 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16607 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16608 else
16609 case $cc_basename in
16610 xlc*)
16611 output_verbose_link_cmd='echo'
16612 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16613 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16614 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16615 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16616 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16617 ;;
16618 *)
16619 ld_shlibs_GCJ=no
16620 ;;
16621 esac
16622 fi
16623 ;;
16624
16625 dgux*)
16626 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16627 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16628 hardcode_shlibpath_var_GCJ=no
16629 ;;
16630
16631 freebsd1*)
16632 ld_shlibs_GCJ=no
16633 ;;
16634
16635 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16636 # support. Future versions do this automatically, but an explicit c++rt0.o
16637 # does not break anything, and helps significantly (at the cost of a little
16638 # extra space).
16639 freebsd2.2*)
16640 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16641 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16642 hardcode_direct_GCJ=yes
16643 hardcode_shlibpath_var_GCJ=no
16644 ;;
16645
16646 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16647 freebsd2*)
16648 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16649 hardcode_direct_GCJ=yes
16650 hardcode_minus_L_GCJ=yes
16651 hardcode_shlibpath_var_GCJ=no
16652 ;;
16653
16654 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16655 freebsd* | kfreebsd*-gnu | dragonfly*)
16656 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16657 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16658 hardcode_direct_GCJ=yes
16659 hardcode_shlibpath_var_GCJ=no
16660 ;;
16661
16662 hpux9*)
16663 if test "$GCC" = yes; then
16664 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'
16665 else
16666 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'
16667 fi
16668 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16669 hardcode_libdir_separator_GCJ=:
16670 hardcode_direct_GCJ=yes
16671
16672 # hardcode_minus_L: Not really in the search PATH,
16673 # but as the default location of the library.
16674 hardcode_minus_L_GCJ=yes
16675 export_dynamic_flag_spec_GCJ='${wl}-E'
16676 ;;
16677
16678 hpux10*)
16679 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16680 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16681 else
16682 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16683 fi
16684 if test "$with_gnu_ld" = no; then
16685 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16686 hardcode_libdir_separator_GCJ=:
16687
16688 hardcode_direct_GCJ=yes
16689 export_dynamic_flag_spec_GCJ='${wl}-E'
16690
16691 # hardcode_minus_L: Not really in the search PATH,
16692 # but as the default location of the library.
16693 hardcode_minus_L_GCJ=yes
16694 fi
16695 ;;
16696
16697 hpux11*)
16698 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16699 case $host_cpu in
16700 hppa*64*)
16701 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16702 ;;
16703 ia64*)
16704 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16705 ;;
16706 *)
16707 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16708 ;;
16709 esac
16710 else
16711 case $host_cpu in
16712 hppa*64*)
16713 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16714 ;;
16715 ia64*)
16716 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16717 ;;
16718 *)
16719 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16720 ;;
16721 esac
16722 fi
16723 if test "$with_gnu_ld" = no; then
16724 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16725 hardcode_libdir_separator_GCJ=:
16726
16727 case $host_cpu in
16728 hppa*64*|ia64*)
16729 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16730 hardcode_direct_GCJ=no
16731 hardcode_shlibpath_var_GCJ=no
16732 ;;
16733 *)
16734 hardcode_direct_GCJ=yes
16735 export_dynamic_flag_spec_GCJ='${wl}-E'
16736
16737 # hardcode_minus_L: Not really in the search PATH,
16738 # but as the default location of the library.
16739 hardcode_minus_L_GCJ=yes
16740 ;;
16741 esac
16742 fi
16743 ;;
16744
16745 irix5* | irix6* | nonstopux*)
16746 if test "$GCC" = yes; then
16747 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'
16748 else
16749 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'
16750 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16751 fi
16752 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16753 hardcode_libdir_separator_GCJ=:
16754 link_all_deplibs_GCJ=yes
16755 ;;
16756
16757 netbsd*)
16758 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16759 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16760 else
16761 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16762 fi
16763 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16764 hardcode_direct_GCJ=yes
16765 hardcode_shlibpath_var_GCJ=no
16766 ;;
16767
16768 newsos6)
16769 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16770 hardcode_direct_GCJ=yes
16771 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16772 hardcode_libdir_separator_GCJ=:
16773 hardcode_shlibpath_var_GCJ=no
16774 ;;
16775
16776 openbsd*)
16777 hardcode_direct_GCJ=yes
16778 hardcode_shlibpath_var_GCJ=no
16779 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16780 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16781 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16782 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16783 export_dynamic_flag_spec_GCJ='${wl}-E'
16784 else
16785 case $host_os in
16786 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16787 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16788 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16789 ;;
16790 *)
16791 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16792 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16793 ;;
16794 esac
16795 fi
16796 ;;
16797
16798 os2*)
16799 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16800 hardcode_minus_L_GCJ=yes
16801 allow_undefined_flag_GCJ=unsupported
16802 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'
16803 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16804 ;;
16805
16806 osf3*)
16807 if test "$GCC" = yes; then
16808 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16809 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'
16810 else
16811 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16812 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'
16813 fi
16814 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16815 hardcode_libdir_separator_GCJ=:
16816 ;;
16817
16818 osf4* | osf5*) # as osf3* with the addition of -msym flag
16819 if test "$GCC" = yes; then
16820 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16821 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'
16822 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16823 else
16824 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16825 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'
16826 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16827 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16828
16829 # Both c and cxx compiler support -rpath directly
16830 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16831 fi
16832 hardcode_libdir_separator_GCJ=:
16833 ;;
16834
16835 solaris*)
16836 no_undefined_flag_GCJ=' -z text'
16837 if test "$GCC" = yes; then
16838 wlarc='${wl}'
16839 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16840 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16841 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16842 else
16843 wlarc=''
16844 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16845 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16846 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16847 fi
16848 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16849 hardcode_shlibpath_var_GCJ=no
16850 case $host_os in
16851 solaris2.[0-5] | solaris2.[0-5].*) ;;
16852 *)
16853 # The compiler driver will combine linker options so we
16854 # cannot just pass the convience library names through
16855 # without $wl, iff we do not link with $LD.
16856 # Luckily, gcc supports the same syntax we need for Sun Studio.
16857 # Supported since Solaris 2.6 (maybe 2.5.1?)
16858 case $wlarc in
16859 '')
16860 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16861 *)
16862 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16863 esac ;;
16864 esac
16865 link_all_deplibs_GCJ=yes
16866 ;;
16867
16868 sunos4*)
16869 if test "x$host_vendor" = xsequent; then
16870 # Use $CC to link under sequent, because it throws in some extra .o
16871 # files that make .init and .fini sections work.
16872 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16873 else
16874 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16875 fi
16876 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16877 hardcode_direct_GCJ=yes
16878 hardcode_minus_L_GCJ=yes
16879 hardcode_shlibpath_var_GCJ=no
16880 ;;
16881
16882 sysv4)
16883 case $host_vendor in
16884 sni)
16885 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16886 hardcode_direct_GCJ=yes # is this really true???
16887 ;;
16888 siemens)
16889 ## LD is ld it makes a PLAMLIB
16890 ## CC just makes a GrossModule.
16891 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16892 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16893 hardcode_direct_GCJ=no
16894 ;;
16895 motorola)
16896 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16897 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16898 ;;
16899 esac
16900 runpath_var='LD_RUN_PATH'
16901 hardcode_shlibpath_var_GCJ=no
16902 ;;
16903
16904 sysv4.3*)
16905 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16906 hardcode_shlibpath_var_GCJ=no
16907 export_dynamic_flag_spec_GCJ='-Bexport'
16908 ;;
16909
16910 sysv4*MP*)
16911 if test -d /usr/nec; then
16912 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16913 hardcode_shlibpath_var_GCJ=no
16914 runpath_var=LD_RUN_PATH
16915 hardcode_runpath_var=yes
16916 ld_shlibs_GCJ=yes
16917 fi
16918 ;;
16919
16920 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16921 no_undefined_flag_GCJ='${wl}-z,text'
16922 archive_cmds_need_lc_GCJ=no
16923 hardcode_shlibpath_var_GCJ=no
16924 runpath_var='LD_RUN_PATH'
16925
16926 if test "$GCC" = yes; then
16927 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16928 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16929 else
16930 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16931 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16932 fi
16933 ;;
16934
16935 sysv5* | sco3.2v5* | sco5v6*)
16936 # Note: We can NOT use -z defs as we might desire, because we do not
16937 # link with -lc, and that would cause any symbols used from libc to
16938 # always be unresolved, which means just about no library would
16939 # ever link correctly. If we're not using GNU ld we use -z text
16940 # though, which does catch some bad symbols but isn't as heavy-handed
16941 # as -z defs.
16942 no_undefined_flag_GCJ='${wl}-z,text'
16943 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16944 archive_cmds_need_lc_GCJ=no
16945 hardcode_shlibpath_var_GCJ=no
16946 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16947 hardcode_libdir_separator_GCJ=':'
16948 link_all_deplibs_GCJ=yes
16949 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16950 runpath_var='LD_RUN_PATH'
16951
16952 if test "$GCC" = yes; then
16953 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16954 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16955 else
16956 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16957 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16958 fi
16959 ;;
16960
16961 uts4*)
16962 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16963 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16964 hardcode_shlibpath_var_GCJ=no
16965 ;;
16966
16967 *)
16968 ld_shlibs_GCJ=no
16969 ;;
16970 esac
16971 fi
16972
16973 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16974 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16975 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16976
16977 #
16978 # Do we need to explicitly link libc?
16979 #
16980 case "x$archive_cmds_need_lc_GCJ" in
16981 x|xyes)
16982 # Assume -lc should be added
16983 archive_cmds_need_lc_GCJ=yes
16984
16985 if test "$enable_shared" = yes && test "$GCC" = yes; then
16986 case $archive_cmds_GCJ in
16987 *'~'*)
16988 # FIXME: we may have to deal with multi-command sequences.
16989 ;;
16990 '$CC '*)
16991 # Test whether the compiler implicitly links with -lc since on some
16992 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16993 # to ld, don't add -lc before -lgcc.
16994 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16995 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16996 $rm conftest*
16997 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16998
16999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17000 (eval $ac_compile) 2>&5
17001 ac_status=$?
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); } 2>conftest.err; then
17004 soname=conftest
17005 lib=conftest
17006 libobjs=conftest.$ac_objext
17007 deplibs=
17008 wl=$lt_prog_compiler_wl_GCJ
17009 pic_flag=$lt_prog_compiler_pic_GCJ
17010 compiler_flags=-v
17011 linker_flags=-v
17012 verstring=
17013 output_objdir=.
17014 libname=conftest
17015 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17016 allow_undefined_flag_GCJ=
17017 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17018 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17019 ac_status=$?
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); }
17022 then
17023 archive_cmds_need_lc_GCJ=no
17024 else
17025 archive_cmds_need_lc_GCJ=yes
17026 fi
17027 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17028 else
17029 cat conftest.err 1>&5
17030 fi
17031 $rm conftest*
17032 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17033 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17034 ;;
17035 esac
17036 fi
17037 ;;
17038 esac
17039
17040 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17041 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17042 library_names_spec=
17043 libname_spec='lib$name'
17044 soname_spec=
17045 shrext_cmds=".so"
17046 postinstall_cmds=
17047 postuninstall_cmds=
17048 finish_cmds=
17049 finish_eval=
17050 shlibpath_var=
17051 shlibpath_overrides_runpath=unknown
17052 version_type=none
17053 dynamic_linker="$host_os ld.so"
17054 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17055 if test "$GCC" = yes; then
17056 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17057 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17058 # if the path contains ";" then we assume it to be the separator
17059 # otherwise default to the standard path separator (i.e. ":") - it is
17060 # assumed that no part of a normal pathname contains ";" but that should
17061 # okay in the real world where ";" in dirpaths is itself problematic.
17062 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17063 else
17064 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17065 fi
17066 else
17067 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17068 fi
17069 need_lib_prefix=unknown
17070 hardcode_into_libs=no
17071
17072 # when you set need_version to no, make sure it does not cause -set_version
17073 # flags to be left without arguments
17074 need_version=unknown
17075
17076 case $host_os in
17077 aix3*)
17078 version_type=linux
17079 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17080 shlibpath_var=LIBPATH
17081
17082 # AIX 3 has no versioning support, so we append a major version to the name.
17083 soname_spec='${libname}${release}${shared_ext}$major'
17084 ;;
17085
17086 aix4* | aix5*)
17087 version_type=linux
17088 need_lib_prefix=no
17089 need_version=no
17090 hardcode_into_libs=yes
17091 if test "$host_cpu" = ia64; then
17092 # AIX 5 supports IA64
17093 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17094 shlibpath_var=LD_LIBRARY_PATH
17095 else
17096 # With GCC up to 2.95.x, collect2 would create an import file
17097 # for dependence libraries. The import file would start with
17098 # the line `#! .'. This would cause the generated library to
17099 # depend on `.', always an invalid library. This was fixed in
17100 # development snapshots of GCC prior to 3.0.
17101 case $host_os in
17102 aix4 | aix4.[01] | aix4.[01].*)
17103 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17104 echo ' yes '
17105 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17106 :
17107 else
17108 can_build_shared=no
17109 fi
17110 ;;
17111 esac
17112 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17113 # soname into executable. Probably we can add versioning support to
17114 # collect2, so additional links can be useful in future.
17115 if test "$aix_use_runtimelinking" = yes; then
17116 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17117 # instead of lib<name>.a to let people know that these are not
17118 # typical AIX shared libraries.
17119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17120 else
17121 # We preserve .a as extension for shared libraries through AIX4.2
17122 # and later when we are not doing run time linking.
17123 library_names_spec='${libname}${release}.a $libname.a'
17124 soname_spec='${libname}${release}${shared_ext}$major'
17125 fi
17126 shlibpath_var=LIBPATH
17127 fi
17128 ;;
17129
17130 amigaos*)
17131 library_names_spec='$libname.ixlibrary $libname.a'
17132 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17133 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'
17134 ;;
17135
17136 beos*)
17137 library_names_spec='${libname}${shared_ext}'
17138 dynamic_linker="$host_os ld.so"
17139 shlibpath_var=LIBRARY_PATH
17140 ;;
17141
17142 bsdi[45]*)
17143 version_type=linux
17144 need_version=no
17145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17146 soname_spec='${libname}${release}${shared_ext}$major'
17147 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17148 shlibpath_var=LD_LIBRARY_PATH
17149 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17150 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17151 # the default ld.so.conf also contains /usr/contrib/lib and
17152 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17153 # libtool to hard-code these into programs
17154 ;;
17155
17156 cygwin* | mingw* | pw32*)
17157 version_type=windows
17158 shrext_cmds=".dll"
17159 need_version=no
17160 need_lib_prefix=no
17161
17162 case $GCC,$host_os in
17163 yes,cygwin* | yes,mingw* | yes,pw32*)
17164 library_names_spec='$libname.dll.a'
17165 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17166 postinstall_cmds='base_file=`basename \${file}`~
17167 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17168 dldir=$destdir/`dirname \$dlpath`~
17169 test -d \$dldir || mkdir -p \$dldir~
17170 $install_prog $dir/$dlname \$dldir/$dlname~
17171 chmod a+x \$dldir/$dlname'
17172 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17173 dlpath=$dir/\$dldll~
17174 $rm \$dlpath'
17175 shlibpath_overrides_runpath=yes
17176
17177 case $host_os in
17178 cygwin*)
17179 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17180 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17181 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17182 ;;
17183 mingw*)
17184 # MinGW DLLs use traditional 'lib' prefix
17185 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17186 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17187 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17188 # It is most probably a Windows format PATH printed by
17189 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17190 # path with ; separators, and with drive letters. We can handle the
17191 # drive letters (cygwin fileutils understands them), so leave them,
17192 # especially as we might pass files found there to a mingw objdump,
17193 # which wouldn't understand a cygwinified path. Ahh.
17194 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17195 else
17196 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17197 fi
17198 ;;
17199 pw32*)
17200 # pw32 DLLs use 'pw' prefix rather than 'lib'
17201 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17202 ;;
17203 esac
17204 ;;
17205
17206 *)
17207 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17208 ;;
17209 esac
17210 dynamic_linker='Win32 ld.exe'
17211 # FIXME: first we should search . and the directory the executable is in
17212 shlibpath_var=PATH
17213 ;;
17214
17215 darwin* | rhapsody*)
17216 dynamic_linker="$host_os dyld"
17217 version_type=darwin
17218 need_lib_prefix=no
17219 need_version=no
17220 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17221 soname_spec='${libname}${release}${major}$shared_ext'
17222 shlibpath_overrides_runpath=yes
17223 shlibpath_var=DYLD_LIBRARY_PATH
17224 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17225 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17226 if test "$GCC" = yes; then
17227 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17228 else
17229 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17230 fi
17231 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17232 ;;
17233
17234 dgux*)
17235 version_type=linux
17236 need_lib_prefix=no
17237 need_version=no
17238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17239 soname_spec='${libname}${release}${shared_ext}$major'
17240 shlibpath_var=LD_LIBRARY_PATH
17241 ;;
17242
17243 freebsd1*)
17244 dynamic_linker=no
17245 ;;
17246
17247 kfreebsd*-gnu)
17248 version_type=linux
17249 need_lib_prefix=no
17250 need_version=no
17251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17252 soname_spec='${libname}${release}${shared_ext}$major'
17253 shlibpath_var=LD_LIBRARY_PATH
17254 shlibpath_overrides_runpath=no
17255 hardcode_into_libs=yes
17256 dynamic_linker='GNU ld.so'
17257 ;;
17258
17259 freebsd* | dragonfly*)
17260 # DragonFly does not have aout. When/if they implement a new
17261 # versioning mechanism, adjust this.
17262 if test -x /usr/bin/objformat; then
17263 objformat=`/usr/bin/objformat`
17264 else
17265 case $host_os in
17266 freebsd[123]*) objformat=aout ;;
17267 *) objformat=elf ;;
17268 esac
17269 fi
17270 version_type=freebsd-$objformat
17271 case $version_type in
17272 freebsd-elf*)
17273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17274 need_version=no
17275 need_lib_prefix=no
17276 ;;
17277 freebsd-*)
17278 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17279 need_version=yes
17280 ;;
17281 esac
17282 shlibpath_var=LD_LIBRARY_PATH
17283 case $host_os in
17284 freebsd2*)
17285 shlibpath_overrides_runpath=yes
17286 ;;
17287 freebsd3.[01]* | freebsdelf3.[01]*)
17288 shlibpath_overrides_runpath=yes
17289 hardcode_into_libs=yes
17290 ;;
17291 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17292 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17293 shlibpath_overrides_runpath=no
17294 hardcode_into_libs=yes
17295 ;;
17296 freebsd*) # from 4.6 on
17297 shlibpath_overrides_runpath=yes
17298 hardcode_into_libs=yes
17299 ;;
17300 esac
17301 ;;
17302
17303 gnu*)
17304 version_type=linux
17305 need_lib_prefix=no
17306 need_version=no
17307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17308 soname_spec='${libname}${release}${shared_ext}$major'
17309 shlibpath_var=LD_LIBRARY_PATH
17310 hardcode_into_libs=yes
17311 ;;
17312
17313 hpux9* | hpux10* | hpux11*)
17314 # Give a soname corresponding to the major version so that dld.sl refuses to
17315 # link against other versions.
17316 version_type=sunos
17317 need_lib_prefix=no
17318 need_version=no
17319 case $host_cpu in
17320 ia64*)
17321 shrext_cmds='.so'
17322 hardcode_into_libs=yes
17323 dynamic_linker="$host_os dld.so"
17324 shlibpath_var=LD_LIBRARY_PATH
17325 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17327 soname_spec='${libname}${release}${shared_ext}$major'
17328 if test "X$HPUX_IA64_MODE" = X32; then
17329 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17330 else
17331 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17332 fi
17333 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17334 ;;
17335 hppa*64*)
17336 shrext_cmds='.sl'
17337 hardcode_into_libs=yes
17338 dynamic_linker="$host_os dld.sl"
17339 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17340 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17342 soname_spec='${libname}${release}${shared_ext}$major'
17343 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17344 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17345 ;;
17346 *)
17347 shrext_cmds='.sl'
17348 dynamic_linker="$host_os dld.sl"
17349 shlibpath_var=SHLIB_PATH
17350 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17352 soname_spec='${libname}${release}${shared_ext}$major'
17353 ;;
17354 esac
17355 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17356 postinstall_cmds='chmod 555 $lib'
17357 ;;
17358
17359 interix3*)
17360 version_type=linux
17361 need_lib_prefix=no
17362 need_version=no
17363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17364 soname_spec='${libname}${release}${shared_ext}$major'
17365 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17366 shlibpath_var=LD_LIBRARY_PATH
17367 shlibpath_overrides_runpath=no
17368 hardcode_into_libs=yes
17369 ;;
17370
17371 irix5* | irix6* | nonstopux*)
17372 case $host_os in
17373 nonstopux*) version_type=nonstopux ;;
17374 *)
17375 if test "$lt_cv_prog_gnu_ld" = yes; then
17376 version_type=linux
17377 else
17378 version_type=irix
17379 fi ;;
17380 esac
17381 need_lib_prefix=no
17382 need_version=no
17383 soname_spec='${libname}${release}${shared_ext}$major'
17384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17385 case $host_os in
17386 irix5* | nonstopux*)
17387 libsuff= shlibsuff=
17388 ;;
17389 *)
17390 case $LD in # libtool.m4 will add one of these switches to LD
17391 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17392 libsuff= shlibsuff= libmagic=32-bit;;
17393 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17394 libsuff=32 shlibsuff=N32 libmagic=N32;;
17395 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17396 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17397 *) libsuff= shlibsuff= libmagic=never-match;;
17398 esac
17399 ;;
17400 esac
17401 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17402 shlibpath_overrides_runpath=no
17403 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17404 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17405 hardcode_into_libs=yes
17406 ;;
17407
17408 # No shared lib support for Linux oldld, aout, or coff.
17409 linux*oldld* | linux*aout* | linux*coff*)
17410 dynamic_linker=no
17411 ;;
17412
17413 # This must be Linux ELF.
17414 linux*)
17415 version_type=linux
17416 need_lib_prefix=no
17417 need_version=no
17418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17419 soname_spec='${libname}${release}${shared_ext}$major'
17420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17421 shlibpath_var=LD_LIBRARY_PATH
17422 shlibpath_overrides_runpath=no
17423 # This implies no fast_install, which is unacceptable.
17424 # Some rework will be needed to allow for fast_install
17425 # before this can be enabled.
17426 hardcode_into_libs=yes
17427
17428 # find out which ABI we are using
17429 libsuff=
17430 case "$host_cpu" in
17431 x86_64*|s390x*|powerpc64*)
17432 echo '#line 17432 "configure"' > conftest.$ac_ext
17433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17434 (eval $ac_compile) 2>&5
17435 ac_status=$?
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); }; then
17438 case `/usr/bin/file conftest.$ac_objext` in
17439 *64-bit*)
17440 libsuff=64
17441 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17442 ;;
17443 esac
17444 fi
17445 rm -rf conftest*
17446 ;;
17447 esac
17448
17449 # Append ld.so.conf contents to the search path
17450 if test -f /etc/ld.so.conf; then
17451 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17452 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17453 fi
17454
17455 # We used to test for /lib/ld.so.1 and disable shared libraries on
17456 # powerpc, because MkLinux only supported shared libraries with the
17457 # GNU dynamic linker. Since this was broken with cross compilers,
17458 # most powerpc-linux boxes support dynamic linking these days and
17459 # people can always --disable-shared, the test was removed, and we
17460 # assume the GNU/Linux dynamic linker is in use.
17461 dynamic_linker='GNU/Linux ld.so'
17462 ;;
17463
17464 knetbsd*-gnu)
17465 version_type=linux
17466 need_lib_prefix=no
17467 need_version=no
17468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17469 soname_spec='${libname}${release}${shared_ext}$major'
17470 shlibpath_var=LD_LIBRARY_PATH
17471 shlibpath_overrides_runpath=no
17472 hardcode_into_libs=yes
17473 dynamic_linker='GNU ld.so'
17474 ;;
17475
17476 netbsd*)
17477 version_type=sunos
17478 need_lib_prefix=no
17479 need_version=no
17480 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17482 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17483 dynamic_linker='NetBSD (a.out) ld.so'
17484 else
17485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17486 soname_spec='${libname}${release}${shared_ext}$major'
17487 dynamic_linker='NetBSD ld.elf_so'
17488 fi
17489 shlibpath_var=LD_LIBRARY_PATH
17490 shlibpath_overrides_runpath=yes
17491 hardcode_into_libs=yes
17492 ;;
17493
17494 newsos6)
17495 version_type=linux
17496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17497 shlibpath_var=LD_LIBRARY_PATH
17498 shlibpath_overrides_runpath=yes
17499 ;;
17500
17501 nto-qnx*)
17502 version_type=linux
17503 need_lib_prefix=no
17504 need_version=no
17505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17506 soname_spec='${libname}${release}${shared_ext}$major'
17507 shlibpath_var=LD_LIBRARY_PATH
17508 shlibpath_overrides_runpath=yes
17509 ;;
17510
17511 openbsd*)
17512 version_type=sunos
17513 sys_lib_dlsearch_path_spec="/usr/lib"
17514 need_lib_prefix=no
17515 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17516 case $host_os in
17517 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17518 *) need_version=no ;;
17519 esac
17520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17521 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17522 shlibpath_var=LD_LIBRARY_PATH
17523 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17524 case $host_os in
17525 openbsd2.[89] | openbsd2.[89].*)
17526 shlibpath_overrides_runpath=no
17527 ;;
17528 *)
17529 shlibpath_overrides_runpath=yes
17530 ;;
17531 esac
17532 else
17533 shlibpath_overrides_runpath=yes
17534 fi
17535 ;;
17536
17537 os2*)
17538 libname_spec='$name'
17539 shrext_cmds=".dll"
17540 need_lib_prefix=no
17541 library_names_spec='$libname${shared_ext} $libname.a'
17542 dynamic_linker='OS/2 ld.exe'
17543 shlibpath_var=LIBPATH
17544 ;;
17545
17546 osf3* | osf4* | osf5*)
17547 version_type=osf
17548 need_lib_prefix=no
17549 need_version=no
17550 soname_spec='${libname}${release}${shared_ext}$major'
17551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17552 shlibpath_var=LD_LIBRARY_PATH
17553 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17554 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17555 ;;
17556
17557 solaris*)
17558 version_type=linux
17559 need_lib_prefix=no
17560 need_version=no
17561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17562 soname_spec='${libname}${release}${shared_ext}$major'
17563 shlibpath_var=LD_LIBRARY_PATH
17564 shlibpath_overrides_runpath=yes
17565 hardcode_into_libs=yes
17566 # ldd complains unless libraries are executable
17567 postinstall_cmds='chmod +x $lib'
17568 ;;
17569
17570 sunos4*)
17571 version_type=sunos
17572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17573 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17574 shlibpath_var=LD_LIBRARY_PATH
17575 shlibpath_overrides_runpath=yes
17576 if test "$with_gnu_ld" = yes; then
17577 need_lib_prefix=no
17578 fi
17579 need_version=yes
17580 ;;
17581
17582 sysv4 | sysv4.3*)
17583 version_type=linux
17584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17585 soname_spec='${libname}${release}${shared_ext}$major'
17586 shlibpath_var=LD_LIBRARY_PATH
17587 case $host_vendor in
17588 sni)
17589 shlibpath_overrides_runpath=no
17590 need_lib_prefix=no
17591 export_dynamic_flag_spec='${wl}-Blargedynsym'
17592 runpath_var=LD_RUN_PATH
17593 ;;
17594 siemens)
17595 need_lib_prefix=no
17596 ;;
17597 motorola)
17598 need_lib_prefix=no
17599 need_version=no
17600 shlibpath_overrides_runpath=no
17601 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17602 ;;
17603 esac
17604 ;;
17605
17606 sysv4*MP*)
17607 if test -d /usr/nec ;then
17608 version_type=linux
17609 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17610 soname_spec='$libname${shared_ext}.$major'
17611 shlibpath_var=LD_LIBRARY_PATH
17612 fi
17613 ;;
17614
17615 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17616 version_type=freebsd-elf
17617 need_lib_prefix=no
17618 need_version=no
17619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17620 soname_spec='${libname}${release}${shared_ext}$major'
17621 shlibpath_var=LD_LIBRARY_PATH
17622 hardcode_into_libs=yes
17623 if test "$with_gnu_ld" = yes; then
17624 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17625 shlibpath_overrides_runpath=no
17626 else
17627 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17628 shlibpath_overrides_runpath=yes
17629 case $host_os in
17630 sco3.2v5*)
17631 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17632 ;;
17633 esac
17634 fi
17635 sys_lib_dlsearch_path_spec='/usr/lib'
17636 ;;
17637
17638 uts4*)
17639 version_type=linux
17640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17641 soname_spec='${libname}${release}${shared_ext}$major'
17642 shlibpath_var=LD_LIBRARY_PATH
17643 ;;
17644
17645 *)
17646 dynamic_linker=no
17647 ;;
17648 esac
17649 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17650 echo "${ECHO_T}$dynamic_linker" >&6
17651 test "$dynamic_linker" = no && can_build_shared=no
17652
17653 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17654 if test "$GCC" = yes; then
17655 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17656 fi
17657
17658 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17659 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17660 hardcode_action_GCJ=
17661 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17662 test -n "$runpath_var_GCJ" || \
17663 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17664
17665 # We can hardcode non-existant directories.
17666 if test "$hardcode_direct_GCJ" != no &&
17667 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17668 # have to relink, otherwise we might link with an installed library
17669 # when we should be linking with a yet-to-be-installed one
17670 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17671 test "$hardcode_minus_L_GCJ" != no; then
17672 # Linking always hardcodes the temporary library directory.
17673 hardcode_action_GCJ=relink
17674 else
17675 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17676 hardcode_action_GCJ=immediate
17677 fi
17678 else
17679 # We cannot hardcode anything, or else we can only hardcode existing
17680 # directories.
17681 hardcode_action_GCJ=unsupported
17682 fi
17683 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17684 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17685
17686 if test "$hardcode_action_GCJ" = relink; then
17687 # Fast installation is not supported
17688 enable_fast_install=no
17689 elif test "$shlibpath_overrides_runpath" = yes ||
17690 test "$enable_shared" = no; then
17691 # Fast installation is not necessary
17692 enable_fast_install=needless
17693 fi
17694
17695
17696 # The else clause should only fire when bootstrapping the
17697 # libtool distribution, otherwise you forgot to ship ltmain.sh
17698 # with your package, and you will get complaints that there are
17699 # no rules to generate ltmain.sh.
17700 if test -f "$ltmain"; then
17701 # See if we are running on zsh, and set the options which allow our commands through
17702 # without removal of \ escapes.
17703 if test -n "${ZSH_VERSION+set}" ; then
17704 setopt NO_GLOB_SUBST
17705 fi
17706 # Now quote all the things that may contain metacharacters while being
17707 # careful not to overquote the AC_SUBSTed values. We take copies of the
17708 # variables and quote the copies for generation of the libtool script.
17709 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17710 SED SHELL STRIP \
17711 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17712 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17713 deplibs_check_method reload_flag reload_cmds need_locks \
17714 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17715 lt_cv_sys_global_symbol_to_c_name_address \
17716 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17717 old_postinstall_cmds old_postuninstall_cmds \
17718 compiler_GCJ \
17719 CC_GCJ \
17720 LD_GCJ \
17721 lt_prog_compiler_wl_GCJ \
17722 lt_prog_compiler_pic_GCJ \
17723 lt_prog_compiler_static_GCJ \
17724 lt_prog_compiler_no_builtin_flag_GCJ \
17725 export_dynamic_flag_spec_GCJ \
17726 thread_safe_flag_spec_GCJ \
17727 whole_archive_flag_spec_GCJ \
17728 enable_shared_with_static_runtimes_GCJ \
17729 old_archive_cmds_GCJ \
17730 old_archive_from_new_cmds_GCJ \
17731 predep_objects_GCJ \
17732 postdep_objects_GCJ \
17733 predeps_GCJ \
17734 postdeps_GCJ \
17735 compiler_lib_search_path_GCJ \
17736 archive_cmds_GCJ \
17737 archive_expsym_cmds_GCJ \
17738 postinstall_cmds_GCJ \
17739 postuninstall_cmds_GCJ \
17740 old_archive_from_expsyms_cmds_GCJ \
17741 allow_undefined_flag_GCJ \
17742 no_undefined_flag_GCJ \
17743 export_symbols_cmds_GCJ \
17744 hardcode_libdir_flag_spec_GCJ \
17745 hardcode_libdir_flag_spec_ld_GCJ \
17746 hardcode_libdir_separator_GCJ \
17747 hardcode_automatic_GCJ \
17748 module_cmds_GCJ \
17749 module_expsym_cmds_GCJ \
17750 lt_cv_prog_compiler_c_o_GCJ \
17751 exclude_expsyms_GCJ \
17752 include_expsyms_GCJ; do
17753
17754 case $var in
17755 old_archive_cmds_GCJ | \
17756 old_archive_from_new_cmds_GCJ | \
17757 archive_cmds_GCJ | \
17758 archive_expsym_cmds_GCJ | \
17759 module_cmds_GCJ | \
17760 module_expsym_cmds_GCJ | \
17761 old_archive_from_expsyms_cmds_GCJ | \
17762 export_symbols_cmds_GCJ | \
17763 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17764 postinstall_cmds | postuninstall_cmds | \
17765 old_postinstall_cmds | old_postuninstall_cmds | \
17766 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17767 # Double-quote double-evaled strings.
17768 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17769 ;;
17770 *)
17771 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17772 ;;
17773 esac
17774 done
17775
17776 case $lt_echo in
17777 *'\$0 --fallback-echo"')
17778 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17779 ;;
17780 esac
17781
17782 cfgfile="$ofile"
17783
17784 cat <<__EOF__ >> "$cfgfile"
17785 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17786
17787 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17788
17789 # Shell to use when invoking shell scripts.
17790 SHELL=$lt_SHELL
17791
17792 # Whether or not to build shared libraries.
17793 build_libtool_libs=$enable_shared
17794
17795 # Whether or not to build static libraries.
17796 build_old_libs=$enable_static
17797
17798 # Whether or not to add -lc for building shared libraries.
17799 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17800
17801 # Whether or not to disallow shared libs when runtime libs are static
17802 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17803
17804 # Whether or not to optimize for fast installation.
17805 fast_install=$enable_fast_install
17806
17807 # The host system.
17808 host_alias=$host_alias
17809 host=$host
17810 host_os=$host_os
17811
17812 # The build system.
17813 build_alias=$build_alias
17814 build=$build
17815 build_os=$build_os
17816
17817 # An echo program that does not interpret backslashes.
17818 echo=$lt_echo
17819
17820 # The archiver.
17821 AR=$lt_AR
17822 AR_FLAGS=$lt_AR_FLAGS
17823
17824 # A C compiler.
17825 LTCC=$lt_LTCC
17826
17827 # LTCC compiler flags.
17828 LTCFLAGS=$lt_LTCFLAGS
17829
17830 # A language-specific compiler.
17831 CC=$lt_compiler_GCJ
17832
17833 # Is the compiler the GNU C compiler?
17834 with_gcc=$GCC_GCJ
17835
17836 # An ERE matcher.
17837 EGREP=$lt_EGREP
17838
17839 # The linker used to build libraries.
17840 LD=$lt_LD_GCJ
17841
17842 # Whether we need hard or soft links.
17843 LN_S=$lt_LN_S
17844
17845 # A BSD-compatible nm program.
17846 NM=$lt_NM
17847
17848 # A symbol stripping program
17849 STRIP=$lt_STRIP
17850
17851 # Used to examine libraries when file_magic_cmd begins "file"
17852 MAGIC_CMD=$MAGIC_CMD
17853
17854 # Used on cygwin: DLL creation program.
17855 DLLTOOL="$DLLTOOL"
17856
17857 # Used on cygwin: object dumper.
17858 OBJDUMP="$OBJDUMP"
17859
17860 # Used on cygwin: assembler.
17861 AS="$AS"
17862
17863 # The name of the directory that contains temporary libtool files.
17864 objdir=$objdir
17865
17866 # How to create reloadable object files.
17867 reload_flag=$lt_reload_flag
17868 reload_cmds=$lt_reload_cmds
17869
17870 # How to pass a linker flag through the compiler.
17871 wl=$lt_lt_prog_compiler_wl_GCJ
17872
17873 # Object file suffix (normally "o").
17874 objext="$ac_objext"
17875
17876 # Old archive suffix (normally "a").
17877 libext="$libext"
17878
17879 # Shared library suffix (normally ".so").
17880 shrext_cmds='$shrext_cmds'
17881
17882 # Executable file suffix (normally "").
17883 exeext="$exeext"
17884
17885 # Additional compiler flags for building library objects.
17886 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17887 pic_mode=$pic_mode
17888
17889 # What is the maximum length of a command?
17890 max_cmd_len=$lt_cv_sys_max_cmd_len
17891
17892 # Does compiler simultaneously support -c and -o options?
17893 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17894
17895 # Must we lock files when doing compilation?
17896 need_locks=$lt_need_locks
17897
17898 # Do we need the lib prefix for modules?
17899 need_lib_prefix=$need_lib_prefix
17900
17901 # Do we need a version for libraries?
17902 need_version=$need_version
17903
17904 # Whether dlopen is supported.
17905 dlopen_support=$enable_dlopen
17906
17907 # Whether dlopen of programs is supported.
17908 dlopen_self=$enable_dlopen_self
17909
17910 # Whether dlopen of statically linked programs is supported.
17911 dlopen_self_static=$enable_dlopen_self_static
17912
17913 # Compiler flag to prevent dynamic linking.
17914 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17915
17916 # Compiler flag to turn off builtin functions.
17917 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17918
17919 # Compiler flag to allow reflexive dlopens.
17920 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17921
17922 # Compiler flag to generate shared objects directly from archives.
17923 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17924
17925 # Compiler flag to generate thread-safe objects.
17926 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17927
17928 # Library versioning type.
17929 version_type=$version_type
17930
17931 # Format of library name prefix.
17932 libname_spec=$lt_libname_spec
17933
17934 # List of archive names. First name is the real one, the rest are links.
17935 # The last name is the one that the linker finds with -lNAME.
17936 library_names_spec=$lt_library_names_spec
17937
17938 # The coded name of the library, if different from the real name.
17939 soname_spec=$lt_soname_spec
17940
17941 # Commands used to build and install an old-style archive.
17942 RANLIB=$lt_RANLIB
17943 old_archive_cmds=$lt_old_archive_cmds_GCJ
17944 old_postinstall_cmds=$lt_old_postinstall_cmds
17945 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17946
17947 # Create an old-style archive from a shared archive.
17948 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17949
17950 # Create a temporary old-style archive to link instead of a shared archive.
17951 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17952
17953 # Commands used to build and install a shared archive.
17954 archive_cmds=$lt_archive_cmds_GCJ
17955 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17956 postinstall_cmds=$lt_postinstall_cmds
17957 postuninstall_cmds=$lt_postuninstall_cmds
17958
17959 # Commands used to build a loadable module (assumed same as above if empty)
17960 module_cmds=$lt_module_cmds_GCJ
17961 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17962
17963 # Commands to strip libraries.
17964 old_striplib=$lt_old_striplib
17965 striplib=$lt_striplib
17966
17967 # Dependencies to place before the objects being linked to create a
17968 # shared library.
17969 predep_objects=$lt_predep_objects_GCJ
17970
17971 # Dependencies to place after the objects being linked to create a
17972 # shared library.
17973 postdep_objects=$lt_postdep_objects_GCJ
17974
17975 # Dependencies to place before the objects being linked to create a
17976 # shared library.
17977 predeps=$lt_predeps_GCJ
17978
17979 # Dependencies to place after the objects being linked to create a
17980 # shared library.
17981 postdeps=$lt_postdeps_GCJ
17982
17983 # The library search path used internally by the compiler when linking
17984 # a shared library.
17985 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17986
17987 # Method to check whether dependent libraries are shared objects.
17988 deplibs_check_method=$lt_deplibs_check_method
17989
17990 # Command to use when deplibs_check_method == file_magic.
17991 file_magic_cmd=$lt_file_magic_cmd
17992
17993 # Flag that allows shared libraries with undefined symbols to be built.
17994 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17995
17996 # Flag that forces no undefined symbols.
17997 no_undefined_flag=$lt_no_undefined_flag_GCJ
17998
17999 # Commands used to finish a libtool library installation in a directory.
18000 finish_cmds=$lt_finish_cmds
18001
18002 # Same as above, but a single script fragment to be evaled but not shown.
18003 finish_eval=$lt_finish_eval
18004
18005 # Take the output of nm and produce a listing of raw symbols and C names.
18006 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18007
18008 # Transform the output of nm in a proper C declaration
18009 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18010
18011 # Transform the output of nm in a C name address pair
18012 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18013
18014 # This is the shared library runtime path variable.
18015 runpath_var=$runpath_var
18016
18017 # This is the shared library path variable.
18018 shlibpath_var=$shlibpath_var
18019
18020 # Is shlibpath searched before the hard-coded library search path?
18021 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18022
18023 # How to hardcode a shared library path into an executable.
18024 hardcode_action=$hardcode_action_GCJ
18025
18026 # Whether we should hardcode library paths into libraries.
18027 hardcode_into_libs=$hardcode_into_libs
18028
18029 # Flag to hardcode \$libdir into a binary during linking.
18030 # This must work even if \$libdir does not exist.
18031 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18032
18033 # If ld is used when linking, flag to hardcode \$libdir into
18034 # a binary during linking. This must work even if \$libdir does
18035 # not exist.
18036 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18037
18038 # Whether we need a single -rpath flag with a separated argument.
18039 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18040
18041 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18042 # resulting binary.
18043 hardcode_direct=$hardcode_direct_GCJ
18044
18045 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18046 # resulting binary.
18047 hardcode_minus_L=$hardcode_minus_L_GCJ
18048
18049 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18050 # the resulting binary.
18051 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18052
18053 # Set to yes if building a shared library automatically hardcodes DIR into the library
18054 # and all subsequent libraries and executables linked against it.
18055 hardcode_automatic=$hardcode_automatic_GCJ
18056
18057 # Variables whose values should be saved in libtool wrapper scripts and
18058 # restored at relink time.
18059 variables_saved_for_relink="$variables_saved_for_relink"
18060
18061 # Whether libtool must link a program against all its dependency libraries.
18062 link_all_deplibs=$link_all_deplibs_GCJ
18063
18064 # Compile-time system search path for libraries
18065 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18066
18067 # Run-time system search path for libraries
18068 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18069
18070 # Fix the shell variable \$srcfile for the compiler.
18071 fix_srcfile_path="$fix_srcfile_path_GCJ"
18072
18073 # Set to yes if exported symbols are required.
18074 always_export_symbols=$always_export_symbols_GCJ
18075
18076 # The commands to list exported symbols.
18077 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18078
18079 # The commands to extract the exported symbol list from a shared archive.
18080 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18081
18082 # Symbols that should not be listed in the preloaded symbols.
18083 exclude_expsyms=$lt_exclude_expsyms_GCJ
18084
18085 # Symbols that must always be exported.
18086 include_expsyms=$lt_include_expsyms_GCJ
18087
18088 # ### END LIBTOOL TAG CONFIG: $tagname
18089
18090 __EOF__
18091
18092
18093 else
18094 # If there is no Makefile yet, we rely on a make rule to execute
18095 # `config.status --recheck' to rerun these tests and create the
18096 # libtool script then.
18097 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18098 if test -f "$ltmain_in"; then
18099 test -f Makefile && make "$ltmain"
18100 fi
18101 fi
18102
18103
18104 ac_ext=c
18105 ac_cpp='$CPP $CPPFLAGS'
18106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18109
18110 CC="$lt_save_CC"
18111
18112 else
18113 tagname=""
18114 fi
18115 ;;
18116
18117 RC)
18118
18119
18120
18121 # Source file extension for RC test sources.
18122 ac_ext=rc
18123
18124 # Object file extension for compiled RC test sources.
18125 objext=o
18126 objext_RC=$objext
18127
18128 # Code to be used in simple compile tests
18129 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18130
18131 # Code to be used in simple link tests
18132 lt_simple_link_test_code="$lt_simple_compile_test_code"
18133
18134 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18135
18136 # If no C compiler was specified, use CC.
18137 LTCC=${LTCC-"$CC"}
18138
18139 # If no C compiler flags were specified, use CFLAGS.
18140 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18141
18142 # Allow CC to be a program name with arguments.
18143 compiler=$CC
18144
18145
18146 # save warnings/boilerplate of simple test code
18147 ac_outfile=conftest.$ac_objext
18148 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18149 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18150 _lt_compiler_boilerplate=`cat conftest.err`
18151 $rm conftest*
18152
18153 ac_outfile=conftest.$ac_objext
18154 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18155 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18156 _lt_linker_boilerplate=`cat conftest.err`
18157 $rm conftest*
18158
18159
18160 # Allow CC to be a program name with arguments.
18161 lt_save_CC="$CC"
18162 CC=${RC-"windres"}
18163 compiler=$CC
18164 compiler_RC=$CC
18165 for cc_temp in $compiler""; do
18166 case $cc_temp in
18167 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18168 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18169 \-*) ;;
18170 *) break;;
18171 esac
18172 done
18173 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18174
18175 lt_cv_prog_compiler_c_o_RC=yes
18176
18177 # The else clause should only fire when bootstrapping the
18178 # libtool distribution, otherwise you forgot to ship ltmain.sh
18179 # with your package, and you will get complaints that there are
18180 # no rules to generate ltmain.sh.
18181 if test -f "$ltmain"; then
18182 # See if we are running on zsh, and set the options which allow our commands through
18183 # without removal of \ escapes.
18184 if test -n "${ZSH_VERSION+set}" ; then
18185 setopt NO_GLOB_SUBST
18186 fi
18187 # Now quote all the things that may contain metacharacters while being
18188 # careful not to overquote the AC_SUBSTed values. We take copies of the
18189 # variables and quote the copies for generation of the libtool script.
18190 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18191 SED SHELL STRIP \
18192 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18193 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18194 deplibs_check_method reload_flag reload_cmds need_locks \
18195 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18196 lt_cv_sys_global_symbol_to_c_name_address \
18197 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18198 old_postinstall_cmds old_postuninstall_cmds \
18199 compiler_RC \
18200 CC_RC \
18201 LD_RC \
18202 lt_prog_compiler_wl_RC \
18203 lt_prog_compiler_pic_RC \
18204 lt_prog_compiler_static_RC \
18205 lt_prog_compiler_no_builtin_flag_RC \
18206 export_dynamic_flag_spec_RC \
18207 thread_safe_flag_spec_RC \
18208 whole_archive_flag_spec_RC \
18209 enable_shared_with_static_runtimes_RC \
18210 old_archive_cmds_RC \
18211 old_archive_from_new_cmds_RC \
18212 predep_objects_RC \
18213 postdep_objects_RC \
18214 predeps_RC \
18215 postdeps_RC \
18216 compiler_lib_search_path_RC \
18217 archive_cmds_RC \
18218 archive_expsym_cmds_RC \
18219 postinstall_cmds_RC \
18220 postuninstall_cmds_RC \
18221 old_archive_from_expsyms_cmds_RC \
18222 allow_undefined_flag_RC \
18223 no_undefined_flag_RC \
18224 export_symbols_cmds_RC \
18225 hardcode_libdir_flag_spec_RC \
18226 hardcode_libdir_flag_spec_ld_RC \
18227 hardcode_libdir_separator_RC \
18228 hardcode_automatic_RC \
18229 module_cmds_RC \
18230 module_expsym_cmds_RC \
18231 lt_cv_prog_compiler_c_o_RC \
18232 exclude_expsyms_RC \
18233 include_expsyms_RC; do
18234
18235 case $var in
18236 old_archive_cmds_RC | \
18237 old_archive_from_new_cmds_RC | \
18238 archive_cmds_RC | \
18239 archive_expsym_cmds_RC | \
18240 module_cmds_RC | \
18241 module_expsym_cmds_RC | \
18242 old_archive_from_expsyms_cmds_RC | \
18243 export_symbols_cmds_RC | \
18244 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18245 postinstall_cmds | postuninstall_cmds | \
18246 old_postinstall_cmds | old_postuninstall_cmds | \
18247 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18248 # Double-quote double-evaled strings.
18249 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18250 ;;
18251 *)
18252 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18253 ;;
18254 esac
18255 done
18256
18257 case $lt_echo in
18258 *'\$0 --fallback-echo"')
18259 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18260 ;;
18261 esac
18262
18263 cfgfile="$ofile"
18264
18265 cat <<__EOF__ >> "$cfgfile"
18266 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18267
18268 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18269
18270 # Shell to use when invoking shell scripts.
18271 SHELL=$lt_SHELL
18272
18273 # Whether or not to build shared libraries.
18274 build_libtool_libs=$enable_shared
18275
18276 # Whether or not to build static libraries.
18277 build_old_libs=$enable_static
18278
18279 # Whether or not to add -lc for building shared libraries.
18280 build_libtool_need_lc=$archive_cmds_need_lc_RC
18281
18282 # Whether or not to disallow shared libs when runtime libs are static
18283 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18284
18285 # Whether or not to optimize for fast installation.
18286 fast_install=$enable_fast_install
18287
18288 # The host system.
18289 host_alias=$host_alias
18290 host=$host
18291 host_os=$host_os
18292
18293 # The build system.
18294 build_alias=$build_alias
18295 build=$build
18296 build_os=$build_os
18297
18298 # An echo program that does not interpret backslashes.
18299 echo=$lt_echo
18300
18301 # The archiver.
18302 AR=$lt_AR
18303 AR_FLAGS=$lt_AR_FLAGS
18304
18305 # A C compiler.
18306 LTCC=$lt_LTCC
18307
18308 # LTCC compiler flags.
18309 LTCFLAGS=$lt_LTCFLAGS
18310
18311 # A language-specific compiler.
18312 CC=$lt_compiler_RC
18313
18314 # Is the compiler the GNU C compiler?
18315 with_gcc=$GCC_RC
18316
18317 # An ERE matcher.
18318 EGREP=$lt_EGREP
18319
18320 # The linker used to build libraries.
18321 LD=$lt_LD_RC
18322
18323 # Whether we need hard or soft links.
18324 LN_S=$lt_LN_S
18325
18326 # A BSD-compatible nm program.
18327 NM=$lt_NM
18328
18329 # A symbol stripping program
18330 STRIP=$lt_STRIP
18331
18332 # Used to examine libraries when file_magic_cmd begins "file"
18333 MAGIC_CMD=$MAGIC_CMD
18334
18335 # Used on cygwin: DLL creation program.
18336 DLLTOOL="$DLLTOOL"
18337
18338 # Used on cygwin: object dumper.
18339 OBJDUMP="$OBJDUMP"
18340
18341 # Used on cygwin: assembler.
18342 AS="$AS"
18343
18344 # The name of the directory that contains temporary libtool files.
18345 objdir=$objdir
18346
18347 # How to create reloadable object files.
18348 reload_flag=$lt_reload_flag
18349 reload_cmds=$lt_reload_cmds
18350
18351 # How to pass a linker flag through the compiler.
18352 wl=$lt_lt_prog_compiler_wl_RC
18353
18354 # Object file suffix (normally "o").
18355 objext="$ac_objext"
18356
18357 # Old archive suffix (normally "a").
18358 libext="$libext"
18359
18360 # Shared library suffix (normally ".so").
18361 shrext_cmds='$shrext_cmds'
18362
18363 # Executable file suffix (normally "").
18364 exeext="$exeext"
18365
18366 # Additional compiler flags for building library objects.
18367 pic_flag=$lt_lt_prog_compiler_pic_RC
18368 pic_mode=$pic_mode
18369
18370 # What is the maximum length of a command?
18371 max_cmd_len=$lt_cv_sys_max_cmd_len
18372
18373 # Does compiler simultaneously support -c and -o options?
18374 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18375
18376 # Must we lock files when doing compilation?
18377 need_locks=$lt_need_locks
18378
18379 # Do we need the lib prefix for modules?
18380 need_lib_prefix=$need_lib_prefix
18381
18382 # Do we need a version for libraries?
18383 need_version=$need_version
18384
18385 # Whether dlopen is supported.
18386 dlopen_support=$enable_dlopen
18387
18388 # Whether dlopen of programs is supported.
18389 dlopen_self=$enable_dlopen_self
18390
18391 # Whether dlopen of statically linked programs is supported.
18392 dlopen_self_static=$enable_dlopen_self_static
18393
18394 # Compiler flag to prevent dynamic linking.
18395 link_static_flag=$lt_lt_prog_compiler_static_RC
18396
18397 # Compiler flag to turn off builtin functions.
18398 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18399
18400 # Compiler flag to allow reflexive dlopens.
18401 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18402
18403 # Compiler flag to generate shared objects directly from archives.
18404 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18405
18406 # Compiler flag to generate thread-safe objects.
18407 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18408
18409 # Library versioning type.
18410 version_type=$version_type
18411
18412 # Format of library name prefix.
18413 libname_spec=$lt_libname_spec
18414
18415 # List of archive names. First name is the real one, the rest are links.
18416 # The last name is the one that the linker finds with -lNAME.
18417 library_names_spec=$lt_library_names_spec
18418
18419 # The coded name of the library, if different from the real name.
18420 soname_spec=$lt_soname_spec
18421
18422 # Commands used to build and install an old-style archive.
18423 RANLIB=$lt_RANLIB
18424 old_archive_cmds=$lt_old_archive_cmds_RC
18425 old_postinstall_cmds=$lt_old_postinstall_cmds
18426 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18427
18428 # Create an old-style archive from a shared archive.
18429 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18430
18431 # Create a temporary old-style archive to link instead of a shared archive.
18432 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18433
18434 # Commands used to build and install a shared archive.
18435 archive_cmds=$lt_archive_cmds_RC
18436 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18437 postinstall_cmds=$lt_postinstall_cmds
18438 postuninstall_cmds=$lt_postuninstall_cmds
18439
18440 # Commands used to build a loadable module (assumed same as above if empty)
18441 module_cmds=$lt_module_cmds_RC
18442 module_expsym_cmds=$lt_module_expsym_cmds_RC
18443
18444 # Commands to strip libraries.
18445 old_striplib=$lt_old_striplib
18446 striplib=$lt_striplib
18447
18448 # Dependencies to place before the objects being linked to create a
18449 # shared library.
18450 predep_objects=$lt_predep_objects_RC
18451
18452 # Dependencies to place after the objects being linked to create a
18453 # shared library.
18454 postdep_objects=$lt_postdep_objects_RC
18455
18456 # Dependencies to place before the objects being linked to create a
18457 # shared library.
18458 predeps=$lt_predeps_RC
18459
18460 # Dependencies to place after the objects being linked to create a
18461 # shared library.
18462 postdeps=$lt_postdeps_RC
18463
18464 # The library search path used internally by the compiler when linking
18465 # a shared library.
18466 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18467
18468 # Method to check whether dependent libraries are shared objects.
18469 deplibs_check_method=$lt_deplibs_check_method
18470
18471 # Command to use when deplibs_check_method == file_magic.
18472 file_magic_cmd=$lt_file_magic_cmd
18473
18474 # Flag that allows shared libraries with undefined symbols to be built.
18475 allow_undefined_flag=$lt_allow_undefined_flag_RC
18476
18477 # Flag that forces no undefined symbols.
18478 no_undefined_flag=$lt_no_undefined_flag_RC
18479
18480 # Commands used to finish a libtool library installation in a directory.
18481 finish_cmds=$lt_finish_cmds
18482
18483 # Same as above, but a single script fragment to be evaled but not shown.
18484 finish_eval=$lt_finish_eval
18485
18486 # Take the output of nm and produce a listing of raw symbols and C names.
18487 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18488
18489 # Transform the output of nm in a proper C declaration
18490 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18491
18492 # Transform the output of nm in a C name address pair
18493 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18494
18495 # This is the shared library runtime path variable.
18496 runpath_var=$runpath_var
18497
18498 # This is the shared library path variable.
18499 shlibpath_var=$shlibpath_var
18500
18501 # Is shlibpath searched before the hard-coded library search path?
18502 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18503
18504 # How to hardcode a shared library path into an executable.
18505 hardcode_action=$hardcode_action_RC
18506
18507 # Whether we should hardcode library paths into libraries.
18508 hardcode_into_libs=$hardcode_into_libs
18509
18510 # Flag to hardcode \$libdir into a binary during linking.
18511 # This must work even if \$libdir does not exist.
18512 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18513
18514 # If ld is used when linking, flag to hardcode \$libdir into
18515 # a binary during linking. This must work even if \$libdir does
18516 # not exist.
18517 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18518
18519 # Whether we need a single -rpath flag with a separated argument.
18520 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18521
18522 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18523 # resulting binary.
18524 hardcode_direct=$hardcode_direct_RC
18525
18526 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18527 # resulting binary.
18528 hardcode_minus_L=$hardcode_minus_L_RC
18529
18530 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18531 # the resulting binary.
18532 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18533
18534 # Set to yes if building a shared library automatically hardcodes DIR into the library
18535 # and all subsequent libraries and executables linked against it.
18536 hardcode_automatic=$hardcode_automatic_RC
18537
18538 # Variables whose values should be saved in libtool wrapper scripts and
18539 # restored at relink time.
18540 variables_saved_for_relink="$variables_saved_for_relink"
18541
18542 # Whether libtool must link a program against all its dependency libraries.
18543 link_all_deplibs=$link_all_deplibs_RC
18544
18545 # Compile-time system search path for libraries
18546 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18547
18548 # Run-time system search path for libraries
18549 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18550
18551 # Fix the shell variable \$srcfile for the compiler.
18552 fix_srcfile_path="$fix_srcfile_path_RC"
18553
18554 # Set to yes if exported symbols are required.
18555 always_export_symbols=$always_export_symbols_RC
18556
18557 # The commands to list exported symbols.
18558 export_symbols_cmds=$lt_export_symbols_cmds_RC
18559
18560 # The commands to extract the exported symbol list from a shared archive.
18561 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18562
18563 # Symbols that should not be listed in the preloaded symbols.
18564 exclude_expsyms=$lt_exclude_expsyms_RC
18565
18566 # Symbols that must always be exported.
18567 include_expsyms=$lt_include_expsyms_RC
18568
18569 # ### END LIBTOOL TAG CONFIG: $tagname
18570
18571 __EOF__
18572
18573
18574 else
18575 # If there is no Makefile yet, we rely on a make rule to execute
18576 # `config.status --recheck' to rerun these tests and create the
18577 # libtool script then.
18578 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18579 if test -f "$ltmain_in"; then
18580 test -f Makefile && make "$ltmain"
18581 fi
18582 fi
18583
18584
18585 ac_ext=c
18586 ac_cpp='$CPP $CPPFLAGS'
18587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18590
18591 CC="$lt_save_CC"
18592
18593 ;;
18594
18595 *)
18596 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18597 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18598 { (exit 1); exit 1; }; }
18599 ;;
18600 esac
18601
18602 # Append the new tag name to the list of available tags.
18603 if test -n "$tagname" ; then
18604 available_tags="$available_tags $tagname"
18605 fi
18606 fi
18607 done
18608 IFS="$lt_save_ifs"
18609
18610 # Now substitute the updated list of available tags.
18611 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18612 mv "${ofile}T" "$ofile"
18613 chmod +x "$ofile"
18614 else
18615 rm -f "${ofile}T"
18616 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18617 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18618 { (exit 1); exit 1; }; }
18619 fi
18620 fi
18621
18622
18623
18624 # This can be used to rebuild libtool when needed
18625 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18626
18627 # Always use our own libtool.
18628 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18629
18630 # Prevent multiple expansion
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651 ac_ext=c
18652 ac_cpp='$CPP $CPPFLAGS'
18653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18656 if test -n "$ac_tool_prefix"; then
18657 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18658 set dummy ${ac_tool_prefix}gcc; ac_word=$2
18659 echo "$as_me:$LINENO: checking for $ac_word" >&5
18660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18661 if test "${ac_cv_prog_CC+set}" = set; then
18662 echo $ECHO_N "(cached) $ECHO_C" >&6
18663 else
18664 if test -n "$CC"; then
18665 ac_cv_prog_CC="$CC" # Let the user override the test.
18666 else
18667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18668 for as_dir in $PATH
18669 do
18670 IFS=$as_save_IFS
18671 test -z "$as_dir" && as_dir=.
18672 for ac_exec_ext in '' $ac_executable_extensions; do
18673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18674 ac_cv_prog_CC="${ac_tool_prefix}gcc"
18675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18676 break 2
18677 fi
18678 done
18679 done
18680
18681 fi
18682 fi
18683 CC=$ac_cv_prog_CC
18684 if test -n "$CC"; then
18685 echo "$as_me:$LINENO: result: $CC" >&5
18686 echo "${ECHO_T}$CC" >&6
18687 else
18688 echo "$as_me:$LINENO: result: no" >&5
18689 echo "${ECHO_T}no" >&6
18690 fi
18691
18692 fi
18693 if test -z "$ac_cv_prog_CC"; then
18694 ac_ct_CC=$CC
18695 # Extract the first word of "gcc", so it can be a program name with args.
18696 set dummy gcc; ac_word=$2
18697 echo "$as_me:$LINENO: checking for $ac_word" >&5
18698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18699 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18700 echo $ECHO_N "(cached) $ECHO_C" >&6
18701 else
18702 if test -n "$ac_ct_CC"; then
18703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18704 else
18705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18706 for as_dir in $PATH
18707 do
18708 IFS=$as_save_IFS
18709 test -z "$as_dir" && as_dir=.
18710 for ac_exec_ext in '' $ac_executable_extensions; do
18711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18712 ac_cv_prog_ac_ct_CC="gcc"
18713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18714 break 2
18715 fi
18716 done
18717 done
18718
18719 fi
18720 fi
18721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18722 if test -n "$ac_ct_CC"; then
18723 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18724 echo "${ECHO_T}$ac_ct_CC" >&6
18725 else
18726 echo "$as_me:$LINENO: result: no" >&5
18727 echo "${ECHO_T}no" >&6
18728 fi
18729
18730 CC=$ac_ct_CC
18731 else
18732 CC="$ac_cv_prog_CC"
18733 fi
18734
18735 if test -z "$CC"; then
18736 if test -n "$ac_tool_prefix"; then
18737 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18738 set dummy ${ac_tool_prefix}cc; ac_word=$2
18739 echo "$as_me:$LINENO: checking for $ac_word" >&5
18740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18741 if test "${ac_cv_prog_CC+set}" = set; then
18742 echo $ECHO_N "(cached) $ECHO_C" >&6
18743 else
18744 if test -n "$CC"; then
18745 ac_cv_prog_CC="$CC" # Let the user override the test.
18746 else
18747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18748 for as_dir in $PATH
18749 do
18750 IFS=$as_save_IFS
18751 test -z "$as_dir" && as_dir=.
18752 for ac_exec_ext in '' $ac_executable_extensions; do
18753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18754 ac_cv_prog_CC="${ac_tool_prefix}cc"
18755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18756 break 2
18757 fi
18758 done
18759 done
18760
18761 fi
18762 fi
18763 CC=$ac_cv_prog_CC
18764 if test -n "$CC"; then
18765 echo "$as_me:$LINENO: result: $CC" >&5
18766 echo "${ECHO_T}$CC" >&6
18767 else
18768 echo "$as_me:$LINENO: result: no" >&5
18769 echo "${ECHO_T}no" >&6
18770 fi
18771
18772 fi
18773 if test -z "$ac_cv_prog_CC"; then
18774 ac_ct_CC=$CC
18775 # Extract the first word of "cc", so it can be a program name with args.
18776 set dummy cc; ac_word=$2
18777 echo "$as_me:$LINENO: checking for $ac_word" >&5
18778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18779 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18780 echo $ECHO_N "(cached) $ECHO_C" >&6
18781 else
18782 if test -n "$ac_ct_CC"; then
18783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18784 else
18785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18786 for as_dir in $PATH
18787 do
18788 IFS=$as_save_IFS
18789 test -z "$as_dir" && as_dir=.
18790 for ac_exec_ext in '' $ac_executable_extensions; do
18791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18792 ac_cv_prog_ac_ct_CC="cc"
18793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18794 break 2
18795 fi
18796 done
18797 done
18798
18799 fi
18800 fi
18801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18802 if test -n "$ac_ct_CC"; then
18803 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18804 echo "${ECHO_T}$ac_ct_CC" >&6
18805 else
18806 echo "$as_me:$LINENO: result: no" >&5
18807 echo "${ECHO_T}no" >&6
18808 fi
18809
18810 CC=$ac_ct_CC
18811 else
18812 CC="$ac_cv_prog_CC"
18813 fi
18814
18815 fi
18816 if test -z "$CC"; then
18817 # Extract the first word of "cc", so it can be a program name with args.
18818 set dummy cc; ac_word=$2
18819 echo "$as_me:$LINENO: checking for $ac_word" >&5
18820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18821 if test "${ac_cv_prog_CC+set}" = set; then
18822 echo $ECHO_N "(cached) $ECHO_C" >&6
18823 else
18824 if test -n "$CC"; then
18825 ac_cv_prog_CC="$CC" # Let the user override the test.
18826 else
18827 ac_prog_rejected=no
18828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18829 for as_dir in $PATH
18830 do
18831 IFS=$as_save_IFS
18832 test -z "$as_dir" && as_dir=.
18833 for ac_exec_ext in '' $ac_executable_extensions; do
18834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18835 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18836 ac_prog_rejected=yes
18837 continue
18838 fi
18839 ac_cv_prog_CC="cc"
18840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18841 break 2
18842 fi
18843 done
18844 done
18845
18846 if test $ac_prog_rejected = yes; then
18847 # We found a bogon in the path, so make sure we never use it.
18848 set dummy $ac_cv_prog_CC
18849 shift
18850 if test $# != 0; then
18851 # We chose a different compiler from the bogus one.
18852 # However, it has the same basename, so the bogon will be chosen
18853 # first if we set CC to just the basename; use the full file name.
18854 shift
18855 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18856 fi
18857 fi
18858 fi
18859 fi
18860 CC=$ac_cv_prog_CC
18861 if test -n "$CC"; then
18862 echo "$as_me:$LINENO: result: $CC" >&5
18863 echo "${ECHO_T}$CC" >&6
18864 else
18865 echo "$as_me:$LINENO: result: no" >&5
18866 echo "${ECHO_T}no" >&6
18867 fi
18868
18869 fi
18870 if test -z "$CC"; then
18871 if test -n "$ac_tool_prefix"; then
18872 for ac_prog in cl
18873 do
18874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18875 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18876 echo "$as_me:$LINENO: checking for $ac_word" >&5
18877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18878 if test "${ac_cv_prog_CC+set}" = set; then
18879 echo $ECHO_N "(cached) $ECHO_C" >&6
18880 else
18881 if test -n "$CC"; then
18882 ac_cv_prog_CC="$CC" # Let the user override the test.
18883 else
18884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18885 for as_dir in $PATH
18886 do
18887 IFS=$as_save_IFS
18888 test -z "$as_dir" && as_dir=.
18889 for ac_exec_ext in '' $ac_executable_extensions; do
18890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18891 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18893 break 2
18894 fi
18895 done
18896 done
18897
18898 fi
18899 fi
18900 CC=$ac_cv_prog_CC
18901 if test -n "$CC"; then
18902 echo "$as_me:$LINENO: result: $CC" >&5
18903 echo "${ECHO_T}$CC" >&6
18904 else
18905 echo "$as_me:$LINENO: result: no" >&5
18906 echo "${ECHO_T}no" >&6
18907 fi
18908
18909 test -n "$CC" && break
18910 done
18911 fi
18912 if test -z "$CC"; then
18913 ac_ct_CC=$CC
18914 for ac_prog in cl
18915 do
18916 # Extract the first word of "$ac_prog", so it can be a program name with args.
18917 set dummy $ac_prog; ac_word=$2
18918 echo "$as_me:$LINENO: checking for $ac_word" >&5
18919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18920 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18921 echo $ECHO_N "(cached) $ECHO_C" >&6
18922 else
18923 if test -n "$ac_ct_CC"; then
18924 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18925 else
18926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18927 for as_dir in $PATH
18928 do
18929 IFS=$as_save_IFS
18930 test -z "$as_dir" && as_dir=.
18931 for ac_exec_ext in '' $ac_executable_extensions; do
18932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18933 ac_cv_prog_ac_ct_CC="$ac_prog"
18934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18935 break 2
18936 fi
18937 done
18938 done
18939
18940 fi
18941 fi
18942 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18943 if test -n "$ac_ct_CC"; then
18944 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18945 echo "${ECHO_T}$ac_ct_CC" >&6
18946 else
18947 echo "$as_me:$LINENO: result: no" >&5
18948 echo "${ECHO_T}no" >&6
18949 fi
18950
18951 test -n "$ac_ct_CC" && break
18952 done
18953
18954 CC=$ac_ct_CC
18955 fi
18956
18957 fi
18958
18959
18960 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
18961 See \`config.log' for more details." >&5
18962 echo "$as_me: error: no acceptable C compiler found in \$PATH
18963 See \`config.log' for more details." >&2;}
18964 { (exit 1); exit 1; }; }
18965
18966 # Provide some information about the compiler.
18967 echo "$as_me:$LINENO:" \
18968 "checking for C compiler version" >&5
18969 ac_compiler=`set X $ac_compile; echo $2`
18970 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
18971 (eval $ac_compiler --version </dev/null >&5) 2>&5
18972 ac_status=$?
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); }
18975 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
18976 (eval $ac_compiler -v </dev/null >&5) 2>&5
18977 ac_status=$?
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); }
18980 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
18981 (eval $ac_compiler -V </dev/null >&5) 2>&5
18982 ac_status=$?
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); }
18985
18986 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
18987 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
18988 if test "${ac_cv_c_compiler_gnu+set}" = set; then
18989 echo $ECHO_N "(cached) $ECHO_C" >&6
18990 else
18991 cat >conftest.$ac_ext <<_ACEOF
18992 /* confdefs.h. */
18993 _ACEOF
18994 cat confdefs.h >>conftest.$ac_ext
18995 cat >>conftest.$ac_ext <<_ACEOF
18996 /* end confdefs.h. */
18997
18998 int
18999 main ()
19000 {
19001 #ifndef __GNUC__
19002 choke me
19003 #endif
19004
19005 ;
19006 return 0;
19007 }
19008 _ACEOF
19009 rm -f conftest.$ac_objext
19010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19011 (eval $ac_compile) 2>conftest.er1
19012 ac_status=$?
19013 grep -v '^ *+' conftest.er1 >conftest.err
19014 rm -f conftest.er1
19015 cat conftest.err >&5
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); } &&
19018 { ac_try='test -z "$ac_c_werror_flag"
19019 || test ! -s conftest.err'
19020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19021 (eval $ac_try) 2>&5
19022 ac_status=$?
19023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024 (exit $ac_status); }; } &&
19025 { ac_try='test -s conftest.$ac_objext'
19026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19027 (eval $ac_try) 2>&5
19028 ac_status=$?
19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); }; }; then
19031 ac_compiler_gnu=yes
19032 else
19033 echo "$as_me: failed program was:" >&5
19034 sed 's/^/| /' conftest.$ac_ext >&5
19035
19036 ac_compiler_gnu=no
19037 fi
19038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19039 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19040
19041 fi
19042 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19043 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19044 GCC=`test $ac_compiler_gnu = yes && echo yes`
19045 ac_test_CFLAGS=${CFLAGS+set}
19046 ac_save_CFLAGS=$CFLAGS
19047 CFLAGS="-g"
19048 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19049 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19050 if test "${ac_cv_prog_cc_g+set}" = set; then
19051 echo $ECHO_N "(cached) $ECHO_C" >&6
19052 else
19053 cat >conftest.$ac_ext <<_ACEOF
19054 /* confdefs.h. */
19055 _ACEOF
19056 cat confdefs.h >>conftest.$ac_ext
19057 cat >>conftest.$ac_ext <<_ACEOF
19058 /* end confdefs.h. */
19059
19060 int
19061 main ()
19062 {
19063
19064 ;
19065 return 0;
19066 }
19067 _ACEOF
19068 rm -f conftest.$ac_objext
19069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19070 (eval $ac_compile) 2>conftest.er1
19071 ac_status=$?
19072 grep -v '^ *+' conftest.er1 >conftest.err
19073 rm -f conftest.er1
19074 cat conftest.err >&5
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); } &&
19077 { ac_try='test -z "$ac_c_werror_flag"
19078 || test ! -s conftest.err'
19079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19080 (eval $ac_try) 2>&5
19081 ac_status=$?
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); }; } &&
19084 { ac_try='test -s conftest.$ac_objext'
19085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19086 (eval $ac_try) 2>&5
19087 ac_status=$?
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); }; }; then
19090 ac_cv_prog_cc_g=yes
19091 else
19092 echo "$as_me: failed program was:" >&5
19093 sed 's/^/| /' conftest.$ac_ext >&5
19094
19095 ac_cv_prog_cc_g=no
19096 fi
19097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19098 fi
19099 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19100 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19101 if test "$ac_test_CFLAGS" = set; then
19102 CFLAGS=$ac_save_CFLAGS
19103 elif test $ac_cv_prog_cc_g = yes; then
19104 if test "$GCC" = yes; then
19105 CFLAGS="-g -O2"
19106 else
19107 CFLAGS="-g"
19108 fi
19109 else
19110 if test "$GCC" = yes; then
19111 CFLAGS="-O2"
19112 else
19113 CFLAGS=
19114 fi
19115 fi
19116 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19117 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19118 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19119 echo $ECHO_N "(cached) $ECHO_C" >&6
19120 else
19121 ac_cv_prog_cc_stdc=no
19122 ac_save_CC=$CC
19123 cat >conftest.$ac_ext <<_ACEOF
19124 /* confdefs.h. */
19125 _ACEOF
19126 cat confdefs.h >>conftest.$ac_ext
19127 cat >>conftest.$ac_ext <<_ACEOF
19128 /* end confdefs.h. */
19129 #include <stdarg.h>
19130 #include <stdio.h>
19131 #include <sys/types.h>
19132 #include <sys/stat.h>
19133 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19134 struct buf { int x; };
19135 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19136 static char *e (p, i)
19137 char **p;
19138 int i;
19139 {
19140 return p[i];
19141 }
19142 static char *f (char * (*g) (char **, int), char **p, ...)
19143 {
19144 char *s;
19145 va_list v;
19146 va_start (v,p);
19147 s = g (p, va_arg (v,int));
19148 va_end (v);
19149 return s;
19150 }
19151
19152 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19153 function prototypes and stuff, but not '\xHH' hex character constants.
19154 These don't provoke an error unfortunately, instead are silently treated
19155 as 'x'. The following induces an error, until -std1 is added to get
19156 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19157 array size at least. It's necessary to write '\x00'==0 to get something
19158 that's true only with -std1. */
19159 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19160
19161 int test (int i, double x);
19162 struct s1 {int (*f) (int a);};
19163 struct s2 {int (*f) (double a);};
19164 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19165 int argc;
19166 char **argv;
19167 int
19168 main ()
19169 {
19170 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19171 ;
19172 return 0;
19173 }
19174 _ACEOF
19175 # Don't try gcc -ansi; that turns off useful extensions and
19176 # breaks some systems' header files.
19177 # AIX -qlanglvl=ansi
19178 # Ultrix and OSF/1 -std1
19179 # HP-UX 10.20 and later -Ae
19180 # HP-UX older versions -Aa -D_HPUX_SOURCE
19181 # SVR4 -Xc -D__EXTENSIONS__
19182 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19183 do
19184 CC="$ac_save_CC $ac_arg"
19185 rm -f conftest.$ac_objext
19186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19187 (eval $ac_compile) 2>conftest.er1
19188 ac_status=$?
19189 grep -v '^ *+' conftest.er1 >conftest.err
19190 rm -f conftest.er1
19191 cat conftest.err >&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); } &&
19194 { ac_try='test -z "$ac_c_werror_flag"
19195 || test ! -s conftest.err'
19196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19197 (eval $ac_try) 2>&5
19198 ac_status=$?
19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); }; } &&
19201 { ac_try='test -s conftest.$ac_objext'
19202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19203 (eval $ac_try) 2>&5
19204 ac_status=$?
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); }; }; then
19207 ac_cv_prog_cc_stdc=$ac_arg
19208 break
19209 else
19210 echo "$as_me: failed program was:" >&5
19211 sed 's/^/| /' conftest.$ac_ext >&5
19212
19213 fi
19214 rm -f conftest.err conftest.$ac_objext
19215 done
19216 rm -f conftest.$ac_ext conftest.$ac_objext
19217 CC=$ac_save_CC
19218
19219 fi
19220
19221 case "x$ac_cv_prog_cc_stdc" in
19222 x|xno)
19223 echo "$as_me:$LINENO: result: none needed" >&5
19224 echo "${ECHO_T}none needed" >&6 ;;
19225 *)
19226 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19227 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19228 CC="$CC $ac_cv_prog_cc_stdc" ;;
19229 esac
19230
19231 # Some people use a C++ compiler to compile C. Since we use `exit',
19232 # in C++ we need to declare it. In case someone uses the same compiler
19233 # for both compiling C and C++ we need to have the C++ compiler decide
19234 # the declaration of exit, since it's the most demanding environment.
19235 cat >conftest.$ac_ext <<_ACEOF
19236 #ifndef __cplusplus
19237 choke me
19238 #endif
19239 _ACEOF
19240 rm -f conftest.$ac_objext
19241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19242 (eval $ac_compile) 2>conftest.er1
19243 ac_status=$?
19244 grep -v '^ *+' conftest.er1 >conftest.err
19245 rm -f conftest.er1
19246 cat conftest.err >&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); } &&
19249 { ac_try='test -z "$ac_c_werror_flag"
19250 || test ! -s conftest.err'
19251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19252 (eval $ac_try) 2>&5
19253 ac_status=$?
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); }; } &&
19256 { ac_try='test -s conftest.$ac_objext'
19257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19258 (eval $ac_try) 2>&5
19259 ac_status=$?
19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); }; }; then
19262 for ac_declaration in \
19263 '' \
19264 'extern "C" void std::exit (int) throw (); using std::exit;' \
19265 'extern "C" void std::exit (int); using std::exit;' \
19266 'extern "C" void exit (int) throw ();' \
19267 'extern "C" void exit (int);' \
19268 'void exit (int);'
19269 do
19270 cat >conftest.$ac_ext <<_ACEOF
19271 /* confdefs.h. */
19272 _ACEOF
19273 cat confdefs.h >>conftest.$ac_ext
19274 cat >>conftest.$ac_ext <<_ACEOF
19275 /* end confdefs.h. */
19276 $ac_declaration
19277 #include <stdlib.h>
19278 int
19279 main ()
19280 {
19281 exit (42);
19282 ;
19283 return 0;
19284 }
19285 _ACEOF
19286 rm -f conftest.$ac_objext
19287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19288 (eval $ac_compile) 2>conftest.er1
19289 ac_status=$?
19290 grep -v '^ *+' conftest.er1 >conftest.err
19291 rm -f conftest.er1
19292 cat conftest.err >&5
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); } &&
19295 { ac_try='test -z "$ac_c_werror_flag"
19296 || test ! -s conftest.err'
19297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19298 (eval $ac_try) 2>&5
19299 ac_status=$?
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); }; } &&
19302 { ac_try='test -s conftest.$ac_objext'
19303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19304 (eval $ac_try) 2>&5
19305 ac_status=$?
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); }; }; then
19308 :
19309 else
19310 echo "$as_me: failed program was:" >&5
19311 sed 's/^/| /' conftest.$ac_ext >&5
19312
19313 continue
19314 fi
19315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19316 cat >conftest.$ac_ext <<_ACEOF
19317 /* confdefs.h. */
19318 _ACEOF
19319 cat confdefs.h >>conftest.$ac_ext
19320 cat >>conftest.$ac_ext <<_ACEOF
19321 /* end confdefs.h. */
19322 $ac_declaration
19323 int
19324 main ()
19325 {
19326 exit (42);
19327 ;
19328 return 0;
19329 }
19330 _ACEOF
19331 rm -f conftest.$ac_objext
19332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19333 (eval $ac_compile) 2>conftest.er1
19334 ac_status=$?
19335 grep -v '^ *+' conftest.er1 >conftest.err
19336 rm -f conftest.er1
19337 cat conftest.err >&5
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); } &&
19340 { ac_try='test -z "$ac_c_werror_flag"
19341 || test ! -s conftest.err'
19342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19343 (eval $ac_try) 2>&5
19344 ac_status=$?
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); }; } &&
19347 { ac_try='test -s conftest.$ac_objext'
19348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19349 (eval $ac_try) 2>&5
19350 ac_status=$?
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); }; }; then
19353 break
19354 else
19355 echo "$as_me: failed program was:" >&5
19356 sed 's/^/| /' conftest.$ac_ext >&5
19357
19358 fi
19359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19360 done
19361 rm -f conftest*
19362 if test -n "$ac_declaration"; then
19363 echo '#ifdef __cplusplus' >>confdefs.h
19364 echo $ac_declaration >>confdefs.h
19365 echo '#endif' >>confdefs.h
19366 fi
19367
19368 else
19369 echo "$as_me: failed program was:" >&5
19370 sed 's/^/| /' conftest.$ac_ext >&5
19371
19372 fi
19373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19374 ac_ext=c
19375 ac_cpp='$CPP $CPPFLAGS'
19376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19379
19380 depcc="$CC" am_compiler_list=
19381
19382 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19383 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19384 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19385 echo $ECHO_N "(cached) $ECHO_C" >&6
19386 else
19387 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19388 # We make a subdir and do the tests there. Otherwise we can end up
19389 # making bogus files that we don't know about and never remove. For
19390 # instance it was reported that on HP-UX the gcc test will end up
19391 # making a dummy file named `D' -- because `-MD' means `put the output
19392 # in D'.
19393 mkdir conftest.dir
19394 # Copy depcomp to subdir because otherwise we won't find it if we're
19395 # using a relative directory.
19396 cp "$am_depcomp" conftest.dir
19397 cd conftest.dir
19398 # We will build objects and dependencies in a subdirectory because
19399 # it helps to detect inapplicable dependency modes. For instance
19400 # both Tru64's cc and ICC support -MD to output dependencies as a
19401 # side effect of compilation, but ICC will put the dependencies in
19402 # the current directory while Tru64 will put them in the object
19403 # directory.
19404 mkdir sub
19405
19406 am_cv_CC_dependencies_compiler_type=none
19407 if test "$am_compiler_list" = ""; then
19408 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19409 fi
19410 for depmode in $am_compiler_list; do
19411 # Setup a source with many dependencies, because some compilers
19412 # like to wrap large dependency lists on column 80 (with \), and
19413 # we should not choose a depcomp mode which is confused by this.
19414 #
19415 # We need to recreate these files for each test, as the compiler may
19416 # overwrite some of them when testing with obscure command lines.
19417 # This happens at least with the AIX C compiler.
19418 : > sub/conftest.c
19419 for i in 1 2 3 4 5 6; do
19420 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19421 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19422 # Solaris 8's {/usr,}/bin/sh.
19423 touch sub/conftst$i.h
19424 done
19425 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19426
19427 case $depmode in
19428 nosideeffect)
19429 # after this tag, mechanisms are not by side-effect, so they'll
19430 # only be used when explicitly requested
19431 if test "x$enable_dependency_tracking" = xyes; then
19432 continue
19433 else
19434 break
19435 fi
19436 ;;
19437 none) break ;;
19438 esac
19439 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19440 # mode. It turns out that the SunPro C++ compiler does not properly
19441 # handle `-M -o', and we need to detect this.
19442 if depmode=$depmode \
19443 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19444 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19445 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19446 >/dev/null 2>conftest.err &&
19447 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19448 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19449 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19450 # icc doesn't choke on unknown options, it will just issue warnings
19451 # or remarks (even with -Werror). So we grep stderr for any message
19452 # that says an option was ignored or not supported.
19453 # When given -MP, icc 7.0 and 7.1 complain thusly:
19454 # icc: Command line warning: ignoring option '-M'; no argument required
19455 # The diagnosis changed in icc 8.0:
19456 # icc: Command line remark: option '-MP' not supported
19457 if (grep 'ignoring option' conftest.err ||
19458 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19459 am_cv_CC_dependencies_compiler_type=$depmode
19460 break
19461 fi
19462 fi
19463 done
19464
19465 cd ..
19466 rm -rf conftest.dir
19467 else
19468 am_cv_CC_dependencies_compiler_type=none
19469 fi
19470
19471 fi
19472 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19473 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19474 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19475
19476
19477
19478 if
19479 test "x$enable_dependency_tracking" != xno \
19480 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19481 am__fastdepCC_TRUE=
19482 am__fastdepCC_FALSE='#'
19483 else
19484 am__fastdepCC_TRUE='#'
19485 am__fastdepCC_FALSE=
19486 fi
19487
19488
19489
19490
19491
19492
19493
19494 # Check whether --with-xorg-module-dir or --without-xorg-module-dir was given.
19495 if test "${with_xorg_module_dir+set}" = set; then
19496 withval="$with_xorg_module_dir"
19497 moduledir="$withval"
19498 else
19499 moduledir="$libdir/xorg/modules"
19500 fi;
19501
19502 # Checks for extensions
19503
19504 SAVE_CFLAGS="$CFLAGS"
19505 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
19506 cat >conftest.$ac_ext <<_ACEOF
19507 /* confdefs.h. */
19508 _ACEOF
19509 cat confdefs.h >>conftest.$ac_ext
19510 cat >>conftest.$ac_ext <<_ACEOF
19511 /* end confdefs.h. */
19512
19513 #include "xorg-server.h"
19514 #if !defined RANDR
19515 #error RANDR not defined
19516 #endif
19517
19518 int
19519 main ()
19520 {
19521
19522 ;
19523 return 0;
19524 }
19525 _ACEOF
19526 rm -f conftest.$ac_objext
19527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19528 (eval $ac_compile) 2>conftest.er1
19529 ac_status=$?
19530 grep -v '^ *+' conftest.er1 >conftest.err
19531 rm -f conftest.er1
19532 cat conftest.err >&5
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); } &&
19535 { ac_try='test -z "$ac_c_werror_flag"
19536 || test ! -s conftest.err'
19537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19538 (eval $ac_try) 2>&5
19539 ac_status=$?
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); }; } &&
19542 { ac_try='test -s conftest.$ac_objext'
19543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544 (eval $ac_try) 2>&5
19545 ac_status=$?
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); }; }; then
19548 _EXT_CHECK=yes
19549 else
19550 echo "$as_me: failed program was:" >&5
19551 sed 's/^/| /' conftest.$ac_ext >&5
19552
19553 _EXT_CHECK=no
19554 fi
19555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19556 CFLAGS="$SAVE_CFLAGS"
19557 echo "$as_me:$LINENO: checking if RANDR is defined" >&5
19558 echo $ECHO_N "checking if RANDR is defined... $ECHO_C" >&6
19559 echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
19560 echo "${ECHO_T}$_EXT_CHECK" >&6
19561 if test "$_EXT_CHECK" != no; then
19562 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19563 fi
19564
19565
19566 SAVE_CFLAGS="$CFLAGS"
19567 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
19568 cat >conftest.$ac_ext <<_ACEOF
19569 /* confdefs.h. */
19570 _ACEOF
19571 cat confdefs.h >>conftest.$ac_ext
19572 cat >>conftest.$ac_ext <<_ACEOF
19573 /* end confdefs.h. */
19574
19575 #include "xorg-server.h"
19576 #if !defined RENDER
19577 #error RENDER not defined
19578 #endif
19579
19580 int
19581 main ()
19582 {
19583
19584 ;
19585 return 0;
19586 }
19587 _ACEOF
19588 rm -f conftest.$ac_objext
19589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19590 (eval $ac_compile) 2>conftest.er1
19591 ac_status=$?
19592 grep -v '^ *+' conftest.er1 >conftest.err
19593 rm -f conftest.er1
19594 cat conftest.err >&5
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); } &&
19597 { ac_try='test -z "$ac_c_werror_flag"
19598 || test ! -s conftest.err'
19599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19600 (eval $ac_try) 2>&5
19601 ac_status=$?
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); }; } &&
19604 { ac_try='test -s conftest.$ac_objext'
19605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19606 (eval $ac_try) 2>&5
19607 ac_status=$?
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); }; }; then
19610 _EXT_CHECK=yes
19611 else
19612 echo "$as_me: failed program was:" >&5
19613 sed 's/^/| /' conftest.$ac_ext >&5
19614
19615 _EXT_CHECK=no
19616 fi
19617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19618 CFLAGS="$SAVE_CFLAGS"
19619 echo "$as_me:$LINENO: checking if RENDER is defined" >&5
19620 echo $ECHO_N "checking if RENDER is defined... $ECHO_C" >&6
19621 echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
19622 echo "${ECHO_T}$_EXT_CHECK" >&6
19623 if test "$_EXT_CHECK" != no; then
19624 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
19625 fi
19626
19627
19628 SAVE_CFLAGS="$CFLAGS"
19629 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
19630 cat >conftest.$ac_ext <<_ACEOF
19631 /* confdefs.h. */
19632 _ACEOF
19633 cat confdefs.h >>conftest.$ac_ext
19634 cat >>conftest.$ac_ext <<_ACEOF
19635 /* end confdefs.h. */
19636
19637 #include "xorg-server.h"
19638 #if !defined XV
19639 #error XV not defined
19640 #endif
19641
19642 int
19643 main ()
19644 {
19645
19646 ;
19647 return 0;
19648 }
19649 _ACEOF
19650 rm -f conftest.$ac_objext
19651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19652 (eval $ac_compile) 2>conftest.er1
19653 ac_status=$?
19654 grep -v '^ *+' conftest.er1 >conftest.err
19655 rm -f conftest.er1
19656 cat conftest.err >&5
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); } &&
19659 { ac_try='test -z "$ac_c_werror_flag"
19660 || test ! -s conftest.err'
19661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19662 (eval $ac_try) 2>&5
19663 ac_status=$?
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); }; } &&
19666 { ac_try='test -s conftest.$ac_objext'
19667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19668 (eval $ac_try) 2>&5
19669 ac_status=$?
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); }; }; then
19672 _EXT_CHECK=yes
19673 else
19674 echo "$as_me: failed program was:" >&5
19675 sed 's/^/| /' conftest.$ac_ext >&5
19676
19677 _EXT_CHECK=no
19678 fi
19679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19680 CFLAGS="$SAVE_CFLAGS"
19681 echo "$as_me:$LINENO: checking if XV is defined" >&5
19682 echo $ECHO_N "checking if XV is defined... $ECHO_C" >&6
19683 echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
19684 echo "${ECHO_T}$_EXT_CHECK" >&6
19685 if test "$_EXT_CHECK" != no; then
19686 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
19687 fi
19688
19689
19690 SAVE_CFLAGS="$CFLAGS"
19691 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
19692 cat >conftest.$ac_ext <<_ACEOF
19693 /* confdefs.h. */
19694 _ACEOF
19695 cat confdefs.h >>conftest.$ac_ext
19696 cat >>conftest.$ac_ext <<_ACEOF
19697 /* end confdefs.h. */
19698
19699 #include "xorg-server.h"
19700 #if !defined DPMSExtension
19701 #error DPMSExtension not defined
19702 #endif
19703
19704 int
19705 main ()
19706 {
19707
19708 ;
19709 return 0;
19710 }
19711 _ACEOF
19712 rm -f conftest.$ac_objext
19713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19714 (eval $ac_compile) 2>conftest.er1
19715 ac_status=$?
19716 grep -v '^ *+' conftest.er1 >conftest.err
19717 rm -f conftest.er1
19718 cat conftest.err >&5
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); } &&
19721 { ac_try='test -z "$ac_c_werror_flag"
19722 || test ! -s conftest.err'
19723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19724 (eval $ac_try) 2>&5
19725 ac_status=$?
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); }; } &&
19728 { ac_try='test -s conftest.$ac_objext'
19729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19730 (eval $ac_try) 2>&5
19731 ac_status=$?
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); }; }; then
19734 _EXT_CHECK=yes
19735 else
19736 echo "$as_me: failed program was:" >&5
19737 sed 's/^/| /' conftest.$ac_ext >&5
19738
19739 _EXT_CHECK=no
19740 fi
19741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19742 CFLAGS="$SAVE_CFLAGS"
19743 echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
19744 echo $ECHO_N "checking if DPMSExtension is defined... $ECHO_C" >&6
19745 echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
19746 echo "${ECHO_T}$_EXT_CHECK" >&6
19747 if test "$_EXT_CHECK" != no; then
19748 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
19749 fi
19750
19751
19752 # Checks for pkg-config packages
19753
19754
19755 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19756 if test -n "$ac_tool_prefix"; then
19757 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19758 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19759 echo "$as_me:$LINENO: checking for $ac_word" >&5
19760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19761 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19762 echo $ECHO_N "(cached) $ECHO_C" >&6
19763 else
19764 case $PKG_CONFIG in
19765 [\\/]* | ?:[\\/]*)
19766 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19767 ;;
19768 *)
19769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19770 for as_dir in $PATH
19771 do
19772 IFS=$as_save_IFS
19773 test -z "$as_dir" && as_dir=.
19774 for ac_exec_ext in '' $ac_executable_extensions; do
19775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19776 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19778 break 2
19779 fi
19780 done
19781 done
19782
19783 ;;
19784 esac
19785 fi
19786 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19787
19788 if test -n "$PKG_CONFIG"; then
19789 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19790 echo "${ECHO_T}$PKG_CONFIG" >&6
19791 else
19792 echo "$as_me:$LINENO: result: no" >&5
19793 echo "${ECHO_T}no" >&6
19794 fi
19795
19796 fi
19797 if test -z "$ac_cv_path_PKG_CONFIG"; then
19798 ac_pt_PKG_CONFIG=$PKG_CONFIG
19799 # Extract the first word of "pkg-config", so it can be a program name with args.
19800 set dummy pkg-config; ac_word=$2
19801 echo "$as_me:$LINENO: checking for $ac_word" >&5
19802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19803 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19804 echo $ECHO_N "(cached) $ECHO_C" >&6
19805 else
19806 case $ac_pt_PKG_CONFIG in
19807 [\\/]* | ?:[\\/]*)
19808 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19809 ;;
19810 *)
19811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19812 for as_dir in $PATH
19813 do
19814 IFS=$as_save_IFS
19815 test -z "$as_dir" && as_dir=.
19816 for ac_exec_ext in '' $ac_executable_extensions; do
19817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19818 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19820 break 2
19821 fi
19822 done
19823 done
19824
19825 ;;
19826 esac
19827 fi
19828 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19829
19830 if test -n "$ac_pt_PKG_CONFIG"; then
19831 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19832 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
19833 else
19834 echo "$as_me:$LINENO: result: no" >&5
19835 echo "${ECHO_T}no" >&6
19836 fi
19837
19838 PKG_CONFIG=$ac_pt_PKG_CONFIG
19839 else
19840 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19841 fi
19842
19843 fi
19844 if test -n "$PKG_CONFIG"; then
19845 _pkg_min_version=0.9.0
19846 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19847 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
19848 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19849 echo "$as_me:$LINENO: result: yes" >&5
19850 echo "${ECHO_T}yes" >&6
19851 else
19852 echo "$as_me:$LINENO: result: no" >&5
19853 echo "${ECHO_T}no" >&6
19854 PKG_CONFIG=""
19855 fi
19856
19857 fi
19858
19859 pkg_failed=no
19860 echo "$as_me:$LINENO: checking for XORG" >&5
19861 echo $ECHO_N "checking for XORG... $ECHO_C" >&6
19862
19863 if test -n "$PKG_CONFIG"; then
19864 if test -n "$XORG_CFLAGS"; then
19865 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19866 else
19867 if test -n "$PKG_CONFIG" && \
19868 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
19869 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
19870 ac_status=$?
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); }; then
19873 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19874 else
19875 pkg_failed=yes
19876 fi
19877 fi
19878 else
19879 pkg_failed=untried
19880 fi
19881 if test -n "$PKG_CONFIG"; then
19882 if test -n "$XORG_LIBS"; then
19883 pkg_cv_XORG_LIBS="$XORG_LIBS"
19884 else
19885 if test -n "$PKG_CONFIG" && \
19886 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
19887 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
19888 ac_status=$?
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); }; then
19891 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19892 else
19893 pkg_failed=yes
19894 fi
19895 fi
19896 else
19897 pkg_failed=untried
19898 fi
19899
19900
19901
19902 if test $pkg_failed = yes; then
19903
19904 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19905 _pkg_short_errors_supported=yes
19906 else
19907 _pkg_short_errors_supported=no
19908 fi
19909 if test $_pkg_short_errors_supported = yes; then
19910 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES"`
19911 else
19912 XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES"`
19913 fi
19914 # Put the nasty error message in config.log where it belongs
19915 echo "$XORG_PKG_ERRORS" >&5
19916
19917 { { echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
19918
19919 $XORG_PKG_ERRORS
19920
19921 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19922 installed software in a non-standard prefix.
19923
19924 Alternatively, you may set the environment variables XORG_CFLAGS
19925 and XORG_LIBS to avoid the need to call pkg-config.
19926 See the pkg-config man page for more details.
19927 " >&5
19928 echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
19929
19930 $XORG_PKG_ERRORS
19931
19932 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19933 installed software in a non-standard prefix.
19934
19935 Alternatively, you may set the environment variables XORG_CFLAGS
19936 and XORG_LIBS to avoid the need to call pkg-config.
19937 See the pkg-config man page for more details.
19938 " >&2;}
19939 { (exit 1); exit 1; }; }
19940 elif test $pkg_failed = untried; then
19941 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
19942 is in your PATH or set the PKG_CONFIG environment variable to the full
19943 path to pkg-config.
19944
19945 Alternatively, you may set the environment variables XORG_CFLAGS
19946 and XORG_LIBS to avoid the need to call pkg-config.
19947 See the pkg-config man page for more details.
19948
19949 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19950 See \`config.log' for more details." >&5
19951 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
19952 is in your PATH or set the PKG_CONFIG environment variable to the full
19953 path to pkg-config.
19954
19955 Alternatively, you may set the environment variables XORG_CFLAGS
19956 and XORG_LIBS to avoid the need to call pkg-config.
19957 See the pkg-config man page for more details.
19958
19959 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19960 See \`config.log' for more details." >&2;}
19961 { (exit 1); exit 1; }; }
19962 else
19963 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19964 XORG_LIBS=$pkg_cv_XORG_LIBS
19965 echo "$as_me:$LINENO: result: yes" >&5
19966 echo "${ECHO_T}yes" >&6
19967 :
19968 fi
19969 sdkdir=$(pkg-config --variable=sdkdir xorg-server)
19970
19971 # Checks for libraries.
19972
19973 # Checks for header files.
19974 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19975 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19976 if test "${ac_cv_header_stdc+set}" = set; then
19977 echo $ECHO_N "(cached) $ECHO_C" >&6
19978 else
19979 cat >conftest.$ac_ext <<_ACEOF
19980 /* confdefs.h. */
19981 _ACEOF
19982 cat confdefs.h >>conftest.$ac_ext
19983 cat >>conftest.$ac_ext <<_ACEOF
19984 /* end confdefs.h. */
19985 #include <stdlib.h>
19986 #include <stdarg.h>
19987 #include <string.h>
19988 #include <float.h>
19989
19990 int
19991 main ()
19992 {
19993
19994 ;
19995 return 0;
19996 }
19997 _ACEOF
19998 rm -f conftest.$ac_objext
19999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20000 (eval $ac_compile) 2>conftest.er1
20001 ac_status=$?
20002 grep -v '^ *+' conftest.er1 >conftest.err
20003 rm -f conftest.er1
20004 cat conftest.err >&5
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); } &&
20007 { ac_try='test -z "$ac_c_werror_flag"
20008 || test ! -s conftest.err'
20009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20010 (eval $ac_try) 2>&5
20011 ac_status=$?
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); }; } &&
20014 { ac_try='test -s conftest.$ac_objext'
20015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20016 (eval $ac_try) 2>&5
20017 ac_status=$?
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); }; }; then
20020 ac_cv_header_stdc=yes
20021 else
20022 echo "$as_me: failed program was:" >&5
20023 sed 's/^/| /' conftest.$ac_ext >&5
20024
20025 ac_cv_header_stdc=no
20026 fi
20027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20028
20029 if test $ac_cv_header_stdc = yes; then
20030 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20031 cat >conftest.$ac_ext <<_ACEOF
20032 /* confdefs.h. */
20033 _ACEOF
20034 cat confdefs.h >>conftest.$ac_ext
20035 cat >>conftest.$ac_ext <<_ACEOF
20036 /* end confdefs.h. */
20037 #include <string.h>
20038
20039 _ACEOF
20040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20041 $EGREP "memchr" >/dev/null 2>&1; then
20042 :
20043 else
20044 ac_cv_header_stdc=no
20045 fi
20046 rm -f conftest*
20047
20048 fi
20049
20050 if test $ac_cv_header_stdc = yes; then
20051 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20052 cat >conftest.$ac_ext <<_ACEOF
20053 /* confdefs.h. */
20054 _ACEOF
20055 cat confdefs.h >>conftest.$ac_ext
20056 cat >>conftest.$ac_ext <<_ACEOF
20057 /* end confdefs.h. */
20058 #include <stdlib.h>
20059
20060 _ACEOF
20061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20062 $EGREP "free" >/dev/null 2>&1; then
20063 :
20064 else
20065 ac_cv_header_stdc=no
20066 fi
20067 rm -f conftest*
20068
20069 fi
20070
20071 if test $ac_cv_header_stdc = yes; then
20072 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20073 if test "$cross_compiling" = yes; then
20074 :
20075 else
20076 cat >conftest.$ac_ext <<_ACEOF
20077 /* confdefs.h. */
20078 _ACEOF
20079 cat confdefs.h >>conftest.$ac_ext
20080 cat >>conftest.$ac_ext <<_ACEOF
20081 /* end confdefs.h. */
20082 #include <ctype.h>
20083 #if ((' ' & 0x0FF) == 0x020)
20084 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20085 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20086 #else
20087 # define ISLOWER(c) \
20088 (('a' <= (c) && (c) <= 'i') \
20089 || ('j' <= (c) && (c) <= 'r') \
20090 || ('s' <= (c) && (c) <= 'z'))
20091 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20092 #endif
20093
20094 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20095 int
20096 main ()
20097 {
20098 int i;
20099 for (i = 0; i < 256; i++)
20100 if (XOR (islower (i), ISLOWER (i))
20101 || toupper (i) != TOUPPER (i))
20102 exit(2);
20103 exit (0);
20104 }
20105 _ACEOF
20106 rm -f conftest$ac_exeext
20107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20108 (eval $ac_link) 2>&5
20109 ac_status=$?
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20113 (eval $ac_try) 2>&5
20114 ac_status=$?
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); }; }; then
20117 :
20118 else
20119 echo "$as_me: program exited with status $ac_status" >&5
20120 echo "$as_me: failed program was:" >&5
20121 sed 's/^/| /' conftest.$ac_ext >&5
20122
20123 ( exit $ac_status )
20124 ac_cv_header_stdc=no
20125 fi
20126 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20127 fi
20128 fi
20129 fi
20130 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20131 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20132 if test $ac_cv_header_stdc = yes; then
20133
20134 cat >>confdefs.h <<\_ACEOF
20135 #define STDC_HEADERS 1
20136 _ACEOF
20137
20138 fi
20139
20140
20141
20142
20143
20144 DRIVER_NAME=cirrus
20145
20146
20147
20148
20149
20150 if test x$APP_MAN_SUFFIX = x ; then
20151 case $host_os in
20152 linux*) APP_MAN_SUFFIX=1x ;;
20153 *) APP_MAN_SUFFIX=1 ;;
20154 esac
20155 fi
20156 if test x$APP_MAN_DIR = x ; then
20157 case $host_os in
20158 linux*) APP_MAN_DIR='$(mandir)/man1' ;;
20159 *) APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' ;;
20160 esac
20161 fi
20162
20163 if test x$LIB_MAN_SUFFIX = x ; then
20164 case $host_os in
20165 linux*) LIB_MAN_SUFFIX=3x ;;
20166 *) LIB_MAN_SUFFIX=3 ;;
20167 esac
20168 fi
20169 if test x$LIB_MAN_DIR = x ; then
20170 case $host_os in
20171 linux*) LIB_MAN_DIR='$(mandir)/man3' ;;
20172 *) LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' ;;
20173 esac
20174 fi
20175
20176 if test x$FILE_MAN_SUFFIX = x ; then
20177 case $host_os in
20178 linux*) FILE_MAN_SUFFIX=5x ;;
20179 solaris*) FILE_MAN_SUFFIX=4 ;;
20180 *) FILE_MAN_SUFFIX=5 ;;
20181 esac
20182 fi
20183 if test x$FILE_MAN_DIR = x ; then
20184 case $host_os in
20185 linux*) FILE_MAN_DIR='$(mandir)/man5' ;;
20186 *) FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' ;;
20187 esac
20188 fi
20189
20190 # In Imake's linux.cf, the misc man suffix & dir was only changed for
20191 # LinuxDebian, not other Linuxes, so we leave it unchanged here
20192 if test x$MISC_MAN_SUFFIX = x ; then
20193 case $host_os in
20194 # linux*) MISC_MAN_SUFFIX=7x ;;
20195 solaris*) MISC_MAN_SUFFIX=5 ;;
20196 *) MISC_MAN_SUFFIX=7 ;;
20197 esac
20198 fi
20199 if test x$MISC_MAN_DIR = x ; then
20200 case $host_os in
20201 # linux*) MISC_MAN_DIR='$(mandir)/man7' ;;
20202 *) MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' ;;
20203 esac
20204 fi
20205
20206 # In Imake's linux.cf, the driver man suffix & dir was only changed for
20207 # LinuxDebian, not other Linuxes, so we leave it unchanged here
20208 if test x$DRIVER_MAN_SUFFIX = x ; then
20209 case $host_os in
20210 # linux*) DRIVER_MAN_SUFFIX=4x ;;
20211 solaris*) DRIVER_MAN_SUFFIX=7 ;;
20212 *) DRIVER_MAN_SUFFIX=4 ;;
20213 esac
20214 fi
20215 if test x$DRIVER_MAN_DIR = x ; then
20216 case $host_os in
20217 # linux*) DRIVER_MAN_DIR='$(mandir)/man4' ;;
20218 *) DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' ;;
20219 esac
20220 fi
20221
20222 if test x$ADMIN_MAN_SUFFIX = x ; then
20223 case $host_os in
20224 solaris*) ADMIN_MAN_SUFFIX=1m ;;
20225 *) ADMIN_MAN_SUFFIX=8 ;;
20226 esac
20227 fi
20228 if test x$ADMIN_MAN_DIR = x ; then
20229 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20230 fi
20231
20232
20233
20234
20235
20236
20237
20238
20239
20240
20241
20242
20243
20244
20245
20246
20247
20248 # Check whether --with-release-version or --without-release-version was given.
20249 if test "${with_release_version+set}" = set; then
20250 withval="$with_release_version"
20251 RELEASE_VERSION="$withval"
20252 else
20253 RELEASE_VERSION=""
20254 fi;
20255 if test "x$RELEASE_VERSION" != "x"; then
20256 PACKAGE="$PACKAGE-$RELEASE_VERSION"
20257 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
20258 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
20259 echo "$as_me: Building with package name set to $PACKAGE" >&6;}
20260 fi
20261
20262
20263 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
20264 cat >confcache <<\_ACEOF
20265 # This file is a shell script that caches the results of configure
20266 # tests run on this system so they can be shared between configure
20267 # scripts and configure runs, see configure's option --config-cache.
20268 # It is not useful on other systems. If it contains results you don't
20269 # want to keep, you may remove or edit it.
20270 #
20271 # config.status only pays attention to the cache file if you give it
20272 # the --recheck option to rerun configure.
20273 #
20274 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20275 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20276 # following values.
20277
20278 _ACEOF
20279
20280 # The following way of writing the cache mishandles newlines in values,
20281 # but we know of no workaround that is simple, portable, and efficient.
20282 # So, don't put newlines in cache variables' values.
20283 # Ultrix sh set writes to stderr and can't be redirected directly,
20284 # and sets the high bit in the cache file unless we assign to the vars.
20285 {
20286 (set) 2>&1 |
20287 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20288 *ac_space=\ *)
20289 # `set' does not quote correctly, so add quotes (double-quote
20290 # substitution turns \\\\ into \\, and sed turns \\ into \).
20291 sed -n \
20292 "s/'/'\\\\''/g;
20293 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20294 ;;
20295 *)
20296 # `set' quotes correctly as required by POSIX, so do not add quotes.
20297 sed -n \
20298 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20299 ;;
20300 esac;
20301 } |
20302 sed '
20303 t clear
20304 : clear
20305 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20306 t end
20307 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20308 : end' >>confcache
20309 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20310 if test -w $cache_file; then
20311 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20312 cat confcache >$cache_file
20313 else
20314 echo "not updating unwritable cache $cache_file"
20315 fi
20316 fi
20317 rm -f confcache
20318
20319 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20320 # Let make expand exec_prefix.
20321 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20322
20323 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20324 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20325 # trailing colons and then remove the whole line if VPATH becomes empty
20326 # (actually we leave an empty line to preserve line numbers).
20327 if test "x$srcdir" = x.; then
20328 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20329 s/:*\$(srcdir):*/:/;
20330 s/:*\${srcdir}:*/:/;
20331 s/:*@srcdir@:*/:/;
20332 s/^\([^=]*=[ ]*\):*/\1/;
20333 s/:*$//;
20334 s/^[^=]*=[ ]*$//;
20335 }'
20336 fi
20337
20338 DEFS=-DHAVE_CONFIG_H
20339
20340 ac_libobjs=
20341 ac_ltlibobjs=
20342 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20343 # 1. Remove the extension, and $U if already installed.
20344 ac_i=`echo "$ac_i" |
20345 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20346 # 2. Add them.
20347 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20348 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20349 done
20350 LIBOBJS=$ac_libobjs
20351
20352 LTLIBOBJS=$ac_ltlibobjs
20353
20354
20355 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20356 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20357 Usually this means the macro was only invoked conditionally." >&5
20358 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20359 Usually this means the macro was only invoked conditionally." >&2;}
20360 { (exit 1); exit 1; }; }
20361 fi
20362 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20363 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20364 Usually this means the macro was only invoked conditionally." >&5
20365 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20366 Usually this means the macro was only invoked conditionally." >&2;}
20367 { (exit 1); exit 1; }; }
20368 fi
20369 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20370 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20371 Usually this means the macro was only invoked conditionally." >&5
20372 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20373 Usually this means the macro was only invoked conditionally." >&2;}
20374 { (exit 1); exit 1; }; }
20375 fi
20376 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20377 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20378 Usually this means the macro was only invoked conditionally." >&5
20379 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20380 Usually this means the macro was only invoked conditionally." >&2;}
20381 { (exit 1); exit 1; }; }
20382 fi
20383 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20384 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20385 Usually this means the macro was only invoked conditionally." >&5
20386 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20387 Usually this means the macro was only invoked conditionally." >&2;}
20388 { (exit 1); exit 1; }; }
20389 fi
20390
20391 : ${CONFIG_STATUS=./config.status}
20392 ac_clean_files_save=$ac_clean_files
20393 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20394 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20395 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20396 cat >$CONFIG_STATUS <<_ACEOF
20397 #! $SHELL
20398 # Generated by $as_me.
20399 # Run this file to recreate the current configuration.
20400 # Compiler output produced by configure, useful for debugging
20401 # configure, is in config.log if it exists.
20402
20403 debug=false
20404 ac_cs_recheck=false
20405 ac_cs_silent=false
20406 SHELL=\${CONFIG_SHELL-$SHELL}
20407 _ACEOF
20408
20409 cat >>$CONFIG_STATUS <<\_ACEOF
20410 ## --------------------- ##
20411 ## M4sh Initialization. ##
20412 ## --------------------- ##
20413
20414 # Be Bourne compatible
20415 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20416 emulate sh
20417 NULLCMD=:
20418 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20419 # is contrary to our usage. Disable this feature.
20420 alias -g '${1+"$@"}'='"$@"'
20421 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20422 set -o posix
20423 fi
20424 DUALCASE=1; export DUALCASE # for MKS sh
20425
20426 # Support unset when possible.
20427 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20428 as_unset=unset
20429 else
20430 as_unset=false
20431 fi
20432
20433
20434 # Work around bugs in pre-3.0 UWIN ksh.
20435 $as_unset ENV MAIL MAILPATH
20436 PS1='$ '
20437 PS2='> '
20438 PS4='+ '
20439
20440 # NLS nuisances.
20441 for as_var in \
20442 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20443 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20444 LC_TELEPHONE LC_TIME
20445 do
20446 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20447 eval $as_var=C; export $as_var
20448 else
20449 $as_unset $as_var
20450 fi
20451 done
20452
20453 # Required to use basename.
20454 if expr a : '\(a\)' >/dev/null 2>&1; then
20455 as_expr=expr
20456 else
20457 as_expr=false
20458 fi
20459
20460 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20461 as_basename=basename
20462 else
20463 as_basename=false
20464 fi
20465
20466
20467 # Name of the executable.
20468 as_me=`$as_basename "$0" ||
20469 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20470 X"$0" : 'X\(//\)$' \| \
20471 X"$0" : 'X\(/\)$' \| \
20472 . : '\(.\)' 2>/dev/null ||
20473 echo X/"$0" |
20474 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20475 /^X\/\(\/\/\)$/{ s//\1/; q; }
20476 /^X\/\(\/\).*/{ s//\1/; q; }
20477 s/.*/./; q'`
20478
20479
20480 # PATH needs CR, and LINENO needs CR and PATH.
20481 # Avoid depending upon Character Ranges.
20482 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20483 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20484 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20485 as_cr_digits='0123456789'
20486 as_cr_alnum=$as_cr_Letters$as_cr_digits
20487
20488 # The user is always right.
20489 if test "${PATH_SEPARATOR+set}" != set; then
20490 echo "#! /bin/sh" >conf$$.sh
20491 echo "exit 0" >>conf$$.sh
20492 chmod +x conf$$.sh
20493 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20494 PATH_SEPARATOR=';'
20495 else
20496 PATH_SEPARATOR=:
20497 fi
20498 rm -f conf$$.sh
20499 fi
20500
20501
20502 as_lineno_1=$LINENO
20503 as_lineno_2=$LINENO
20504 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20505 test "x$as_lineno_1" != "x$as_lineno_2" &&
20506 test "x$as_lineno_3" = "x$as_lineno_2" || {
20507 # Find who we are. Look in the path if we contain no path at all
20508 # relative or not.
20509 case $0 in
20510 *[\\/]* ) as_myself=$0 ;;
20511 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20512 for as_dir in $PATH
20513 do
20514 IFS=$as_save_IFS
20515 test -z "$as_dir" && as_dir=.
20516 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20517 done
20518
20519 ;;
20520 esac
20521 # We did not find ourselves, most probably we were run as `sh COMMAND'
20522 # in which case we are not to be found in the path.
20523 if test "x$as_myself" = x; then
20524 as_myself=$0
20525 fi
20526 if test ! -f "$as_myself"; then
20527 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20528 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20529 { (exit 1); exit 1; }; }
20530 fi
20531 case $CONFIG_SHELL in
20532 '')
20533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20534 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20535 do
20536 IFS=$as_save_IFS
20537 test -z "$as_dir" && as_dir=.
20538 for as_base in sh bash ksh sh5; do
20539 case $as_dir in
20540 /*)
20541 if ("$as_dir/$as_base" -c '
20542 as_lineno_1=$LINENO
20543 as_lineno_2=$LINENO
20544 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20545 test "x$as_lineno_1" != "x$as_lineno_2" &&
20546 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20547 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20548 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20549 CONFIG_SHELL=$as_dir/$as_base
20550 export CONFIG_SHELL
20551 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20552 fi;;
20553 esac
20554 done
20555 done
20556 ;;
20557 esac
20558
20559 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20560 # uniformly replaced by the line number. The first 'sed' inserts a
20561 # line-number line before each line; the second 'sed' does the real
20562 # work. The second script uses 'N' to pair each line-number line
20563 # with the numbered line, and appends trailing '-' during
20564 # substitution so that $LINENO is not a special case at line end.
20565 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20566 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20567 sed '=' <$as_myself |
20568 sed '
20569 N
20570 s,$,-,
20571 : loop
20572 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20573 t loop
20574 s,-$,,
20575 s,^['$as_cr_digits']*\n,,
20576 ' >$as_me.lineno &&
20577 chmod +x $as_me.lineno ||
20578 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20579 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20580 { (exit 1); exit 1; }; }
20581
20582 # Don't try to exec as it changes $[0], causing all sort of problems
20583 # (the dirname of $[0] is not the place where we might find the
20584 # original and so on. Autoconf is especially sensible to this).
20585 . ./$as_me.lineno
20586 # Exit status is that of the last command.
20587 exit
20588 }
20589
20590
20591 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20592 *c*,-n*) ECHO_N= ECHO_C='
20593 ' ECHO_T=' ' ;;
20594 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20595 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20596 esac
20597
20598 if expr a : '\(a\)' >/dev/null 2>&1; then
20599 as_expr=expr
20600 else
20601 as_expr=false
20602 fi
20603
20604 rm -f conf$$ conf$$.exe conf$$.file
20605 echo >conf$$.file
20606 if ln -s conf$$.file conf$$ 2>/dev/null; then
20607 # We could just check for DJGPP; but this test a) works b) is more generic
20608 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20609 if test -f conf$$.exe; then
20610 # Don't use ln at all; we don't have any links
20611 as_ln_s='cp -p'
20612 else
20613 as_ln_s='ln -s'
20614 fi
20615 elif ln conf$$.file conf$$ 2>/dev/null; then
20616 as_ln_s=ln
20617 else
20618 as_ln_s='cp -p'
20619 fi
20620 rm -f conf$$ conf$$.exe conf$$.file
20621
20622 if mkdir -p . 2>/dev/null; then
20623 as_mkdir_p=:
20624 else
20625 test -d ./-p && rmdir ./-p
20626 as_mkdir_p=false
20627 fi
20628
20629 as_executable_p="test -f"
20630
20631 # Sed expression to map a string onto a valid CPP name.
20632 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20633
20634 # Sed expression to map a string onto a valid variable name.
20635 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20636
20637
20638 # IFS
20639 # We need space, tab and new line, in precisely that order.
20640 as_nl='
20641 '
20642 IFS=" $as_nl"
20643
20644 # CDPATH.
20645 $as_unset CDPATH
20646
20647 exec 6>&1
20648
20649 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20650 # report actual input values of CONFIG_FILES etc. instead of their
20651 # values after options handling. Logging --version etc. is OK.
20652 exec 5>>config.log
20653 {
20654 echo
20655 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20656 ## Running $as_me. ##
20657 _ASBOX
20658 } >&5
20659 cat >&5 <<_CSEOF
20660
20661 This file was extended by xf86-video-cirrus $as_me 1.1.0, which was
20662 generated by GNU Autoconf 2.59. Invocation command line was
20663
20664 CONFIG_FILES = $CONFIG_FILES
20665 CONFIG_HEADERS = $CONFIG_HEADERS
20666 CONFIG_LINKS = $CONFIG_LINKS
20667 CONFIG_COMMANDS = $CONFIG_COMMANDS
20668 $ $0 $@
20669
20670 _CSEOF
20671 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20672 echo >&5
20673 _ACEOF
20674
20675 # Files that config.status was made for.
20676 if test -n "$ac_config_files"; then
20677 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20678 fi
20679
20680 if test -n "$ac_config_headers"; then
20681 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20682 fi
20683
20684 if test -n "$ac_config_links"; then
20685 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20686 fi
20687
20688 if test -n "$ac_config_commands"; then
20689 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20690 fi
20691
20692 cat >>$CONFIG_STATUS <<\_ACEOF
20693
20694 ac_cs_usage="\
20695 \`$as_me' instantiates files from templates according to the
20696 current configuration.
20697
20698 Usage: $0 [OPTIONS] [FILE]...
20699
20700 -h, --help print this help, then exit
20701 -V, --version print version number, then exit
20702 -q, --quiet do not print progress messages
20703 -d, --debug don't remove temporary files
20704 --recheck update $as_me by reconfiguring in the same conditions
20705 --file=FILE[:TEMPLATE]
20706 instantiate the configuration file FILE
20707 --header=FILE[:TEMPLATE]
20708 instantiate the configuration header FILE
20709
20710 Configuration files:
20711 $config_files
20712
20713 Configuration headers:
20714 $config_headers
20715
20716 Configuration commands:
20717 $config_commands
20718
20719 Report bugs to <bug-autoconf@gnu.org>."
20720 _ACEOF
20721
20722 cat >>$CONFIG_STATUS <<_ACEOF
20723 ac_cs_version="\\
20724 xf86-video-cirrus config.status 1.1.0
20725 configured by $0, generated by GNU Autoconf 2.59,
20726 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20727
20728 Copyright (C) 2003 Free Software Foundation, Inc.
20729 This config.status script is free software; the Free Software Foundation
20730 gives unlimited permission to copy, distribute and modify it."
20731 srcdir=$srcdir
20732 INSTALL="$INSTALL"
20733 _ACEOF
20734
20735 cat >>$CONFIG_STATUS <<\_ACEOF
20736 # If no file are specified by the user, then we need to provide default
20737 # value. By we need to know if files were specified by the user.
20738 ac_need_defaults=:
20739 while test $# != 0
20740 do
20741 case $1 in
20742 --*=*)
20743 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20744 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20745 ac_shift=:
20746 ;;
20747 -*)
20748 ac_option=$1
20749 ac_optarg=$2
20750 ac_shift=shift
20751 ;;
20752 *) # This is not an option, so the user has probably given explicit
20753 # arguments.
20754 ac_option=$1
20755 ac_need_defaults=false;;
20756 esac
20757
20758 case $ac_option in
20759 # Handling of the options.
20760 _ACEOF
20761 cat >>$CONFIG_STATUS <<\_ACEOF
20762 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20763 ac_cs_recheck=: ;;
20764 --version | --vers* | -V )
20765 echo "$ac_cs_version"; exit 0 ;;
20766 --he | --h)
20767 # Conflict between --help and --header
20768 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20769 Try \`$0 --help' for more information." >&5
20770 echo "$as_me: error: ambiguous option: $1
20771 Try \`$0 --help' for more information." >&2;}
20772 { (exit 1); exit 1; }; };;
20773 --help | --hel | -h )
20774 echo "$ac_cs_usage"; exit 0 ;;
20775 --debug | --d* | -d )
20776 debug=: ;;
20777 --file | --fil | --fi | --f )
20778 $ac_shift
20779 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20780 ac_need_defaults=false;;
20781 --header | --heade | --head | --hea )
20782 $ac_shift
20783 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20784 ac_need_defaults=false;;
20785 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20786 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20787 ac_cs_silent=: ;;
20788
20789 # This is an error.
20790 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20791 Try \`$0 --help' for more information." >&5
20792 echo "$as_me: error: unrecognized option: $1
20793 Try \`$0 --help' for more information." >&2;}
20794 { (exit 1); exit 1; }; } ;;
20795
20796 *) ac_config_targets="$ac_config_targets $1" ;;
20797
20798 esac
20799 shift
20800 done
20801
20802 ac_configure_extra_args=
20803
20804 if $ac_cs_silent; then
20805 exec 6>/dev/null
20806 ac_configure_extra_args="$ac_configure_extra_args --silent"
20807 fi
20808
20809 _ACEOF
20810 cat >>$CONFIG_STATUS <<_ACEOF
20811 if \$ac_cs_recheck; then
20812 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20813 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20814 fi
20815
20816 _ACEOF
20817
20818 cat >>$CONFIG_STATUS <<_ACEOF
20819 #
20820 # INIT-COMMANDS section.
20821 #
20822
20823 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20824
20825 _ACEOF
20826
20827
20828
20829 cat >>$CONFIG_STATUS <<\_ACEOF
20830 for ac_config_target in $ac_config_targets
20831 do
20832 case "$ac_config_target" in
20833 # Handling of arguments.
20834 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20835 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20836 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20837 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20838 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20839 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20840 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20841 { (exit 1); exit 1; }; };;
20842 esac
20843 done
20844
20845 # If the user did not use the arguments to specify the items to instantiate,
20846 # then the envvar interface is used. Set only those that are not.
20847 # We use the long form for the default assignment because of an extremely
20848 # bizarre bug on SunOS 4.1.3.
20849 if $ac_need_defaults; then
20850 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20851 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20852 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20853 fi
20854
20855 # Have a temporary directory for convenience. Make it in the build tree
20856 # simply because there is no reason to put it here, and in addition,
20857 # creating and moving files from /tmp can sometimes cause problems.
20858 # Create a temporary directory, and hook for its removal unless debugging.
20859 $debug ||
20860 {
20861 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20862 trap '{ (exit 1); exit 1; }' 1 2 13 15
20863 }
20864
20865 # Create a (secure) tmp directory for tmp files.
20866
20867 {
20868 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20869 test -n "$tmp" && test -d "$tmp"
20870 } ||
20871 {
20872 tmp=./confstat$$-$RANDOM
20873 (umask 077 && mkdir $tmp)
20874 } ||
20875 {
20876 echo "$me: cannot create a temporary directory in ." >&2
20877 { (exit 1); exit 1; }
20878 }
20879
20880 _ACEOF
20881
20882 cat >>$CONFIG_STATUS <<_ACEOF
20883
20884 #
20885 # CONFIG_FILES section.
20886 #
20887
20888 # No need to generate the scripts if there are no CONFIG_FILES.
20889 # This happens for instance when ./config.status config.h
20890 if test -n "\$CONFIG_FILES"; then
20891 # Protect against being on the right side of a sed subst in config.status.
20892 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20893 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20894 s,@SHELL@,$SHELL,;t t
20895 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20896 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20897 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20898 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20899 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20900 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20901 s,@exec_prefix@,$exec_prefix,;t t
20902 s,@prefix@,$prefix,;t t
20903 s,@program_transform_name@,$program_transform_name,;t t
20904 s,@bindir@,$bindir,;t t
20905 s,@sbindir@,$sbindir,;t t
20906 s,@libexecdir@,$libexecdir,;t t
20907 s,@datadir@,$datadir,;t t
20908 s,@sysconfdir@,$sysconfdir,;t t
20909 s,@sharedstatedir@,$sharedstatedir,;t t
20910 s,@localstatedir@,$localstatedir,;t t
20911 s,@libdir@,$libdir,;t t
20912 s,@includedir@,$includedir,;t t
20913 s,@oldincludedir@,$oldincludedir,;t t
20914 s,@infodir@,$infodir,;t t
20915 s,@mandir@,$mandir,;t t
20916 s,@build_alias@,$build_alias,;t t
20917 s,@host_alias@,$host_alias,;t t
20918 s,@target_alias@,$target_alias,;t t
20919 s,@DEFS@,$DEFS,;t t
20920 s,@ECHO_C@,$ECHO_C,;t t
20921 s,@ECHO_N@,$ECHO_N,;t t
20922 s,@ECHO_T@,$ECHO_T,;t t
20923 s,@LIBS@,$LIBS,;t t
20924 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20925 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20926 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20927 s,@CYGPATH_W@,$CYGPATH_W,;t t
20928 s,@PACKAGE@,$PACKAGE,;t t
20929 s,@VERSION@,$VERSION,;t t
20930 s,@ACLOCAL@,$ACLOCAL,;t t
20931 s,@AUTOCONF@,$AUTOCONF,;t t
20932 s,@AUTOMAKE@,$AUTOMAKE,;t t
20933 s,@AUTOHEADER@,$AUTOHEADER,;t t
20934 s,@MAKEINFO@,$MAKEINFO,;t t
20935 s,@install_sh@,$install_sh,;t t
20936 s,@STRIP@,$STRIP,;t t
20937 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20938 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20939 s,@mkdir_p@,$mkdir_p,;t t
20940 s,@AWK@,$AWK,;t t
20941 s,@SET_MAKE@,$SET_MAKE,;t t
20942 s,@am__leading_dot@,$am__leading_dot,;t t
20943 s,@AMTAR@,$AMTAR,;t t
20944 s,@am__tar@,$am__tar,;t t
20945 s,@am__untar@,$am__untar,;t t
20946 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20947 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20948 s,@MAINT@,$MAINT,;t t
20949 s,@build@,$build,;t t
20950 s,@build_cpu@,$build_cpu,;t t
20951 s,@build_vendor@,$build_vendor,;t t
20952 s,@build_os@,$build_os,;t t
20953 s,@host@,$host,;t t
20954 s,@host_cpu@,$host_cpu,;t t
20955 s,@host_vendor@,$host_vendor,;t t
20956 s,@host_os@,$host_os,;t t
20957 s,@CC@,$CC,;t t
20958 s,@CFLAGS@,$CFLAGS,;t t
20959 s,@LDFLAGS@,$LDFLAGS,;t t
20960 s,@CPPFLAGS@,$CPPFLAGS,;t t
20961 s,@ac_ct_CC@,$ac_ct_CC,;t t
20962 s,@EXEEXT@,$EXEEXT,;t t
20963 s,@OBJEXT@,$OBJEXT,;t t
20964 s,@DEPDIR@,$DEPDIR,;t t
20965 s,@am__include@,$am__include,;t t
20966 s,@am__quote@,$am__quote,;t t
20967 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20968 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20969 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20970 s,@CCDEPMODE@,$CCDEPMODE,;t t
20971 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20972 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20973 s,@EGREP@,$EGREP,;t t
20974 s,@LN_S@,$LN_S,;t t
20975 s,@ECHO@,$ECHO,;t t
20976 s,@AR@,$AR,;t t
20977 s,@ac_ct_AR@,$ac_ct_AR,;t t
20978 s,@RANLIB@,$RANLIB,;t t
20979 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20980 s,@CPP@,$CPP,;t t
20981 s,@CXX@,$CXX,;t t
20982 s,@CXXFLAGS@,$CXXFLAGS,;t t
20983 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20984 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20985 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20986 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20987 s,@CXXCPP@,$CXXCPP,;t t
20988 s,@F77@,$F77,;t t
20989 s,@FFLAGS@,$FFLAGS,;t t
20990 s,@ac_ct_F77@,$ac_ct_F77,;t t
20991 s,@LIBTOOL@,$LIBTOOL,;t t
20992 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20993 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20994 s,@XORG_CFLAGS@,$XORG_CFLAGS,;t t
20995 s,@XORG_LIBS@,$XORG_LIBS,;t t
20996 s,@moduledir@,$moduledir,;t t
20997 s,@DRIVER_NAME@,$DRIVER_NAME,;t t
20998 s,@APP_MAN_SUFFIX@,$APP_MAN_SUFFIX,;t t
20999 s,@LIB_MAN_SUFFIX@,$LIB_MAN_SUFFIX,;t t
21000 s,@FILE_MAN_SUFFIX@,$FILE_MAN_SUFFIX,;t t
21001 s,@MISC_MAN_SUFFIX@,$MISC_MAN_SUFFIX,;t t
21002 s,@DRIVER_MAN_SUFFIX@,$DRIVER_MAN_SUFFIX,;t t
21003 s,@ADMIN_MAN_SUFFIX@,$ADMIN_MAN_SUFFIX,;t t
21004 s,@APP_MAN_DIR@,$APP_MAN_DIR,;t t
21005 s,@LIB_MAN_DIR@,$LIB_MAN_DIR,;t t
21006 s,@FILE_MAN_DIR@,$FILE_MAN_DIR,;t t
21007 s,@MISC_MAN_DIR@,$MISC_MAN_DIR,;t t
21008 s,@DRIVER_MAN_DIR@,$DRIVER_MAN_DIR,;t t
21009 s,@ADMIN_MAN_DIR@,$ADMIN_MAN_DIR,;t t
21010 s,@LIBOBJS@,$LIBOBJS,;t t
21011 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21012 CEOF
21013
21014 _ACEOF
21015
21016 cat >>$CONFIG_STATUS <<\_ACEOF
21017 # Split the substitutions into bite-sized pieces for seds with
21018 # small command number limits, like on Digital OSF/1 and HP-UX.
21019 ac_max_sed_lines=48
21020 ac_sed_frag=1 # Number of current file.
21021 ac_beg=1 # First line for current file.
21022 ac_end=$ac_max_sed_lines # Line after last line for current file.
21023 ac_more_lines=:
21024 ac_sed_cmds=
21025 while $ac_more_lines; do
21026 if test $ac_beg -gt 1; then
21027 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21028 else
21029 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21030 fi
21031 if test ! -s $tmp/subs.frag; then
21032 ac_more_lines=false
21033 else
21034 # The purpose of the label and of the branching condition is to
21035 # speed up the sed processing (if there are no `@' at all, there
21036 # is no need to browse any of the substitutions).
21037 # These are the two extra sed commands mentioned above.
21038 (echo ':t
21039 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21040 if test -z "$ac_sed_cmds"; then
21041 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21042 else
21043 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21044 fi
21045 ac_sed_frag=`expr $ac_sed_frag + 1`
21046 ac_beg=$ac_end
21047 ac_end=`expr $ac_end + $ac_max_sed_lines`
21048 fi
21049 done
21050 if test -z "$ac_sed_cmds"; then
21051 ac_sed_cmds=cat
21052 fi
21053 fi # test -n "$CONFIG_FILES"
21054
21055 _ACEOF
21056 cat >>$CONFIG_STATUS <<\_ACEOF
21057 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21058 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21059 case $ac_file in
21060 - | *:- | *:-:* ) # input from stdin
21061 cat >$tmp/stdin
21062 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21063 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21064 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21065 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21066 * ) ac_file_in=$ac_file.in ;;
21067 esac
21068
21069 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21070 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21071 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21072 X"$ac_file" : 'X\(//\)[^/]' \| \
21073 X"$ac_file" : 'X\(//\)$' \| \
21074 X"$ac_file" : 'X\(/\)' \| \
21075 . : '\(.\)' 2>/dev/null ||
21076 echo X"$ac_file" |
21077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21078 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21079 /^X\(\/\/\)$/{ s//\1/; q; }
21080 /^X\(\/\).*/{ s//\1/; q; }
21081 s/.*/./; q'`
21082 { if $as_mkdir_p; then
21083 mkdir -p "$ac_dir"
21084 else
21085 as_dir="$ac_dir"
21086 as_dirs=
21087 while test ! -d "$as_dir"; do
21088 as_dirs="$as_dir $as_dirs"
21089 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21090 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21091 X"$as_dir" : 'X\(//\)[^/]' \| \
21092 X"$as_dir" : 'X\(//\)$' \| \
21093 X"$as_dir" : 'X\(/\)' \| \
21094 . : '\(.\)' 2>/dev/null ||
21095 echo X"$as_dir" |
21096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21097 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21098 /^X\(\/\/\)$/{ s//\1/; q; }
21099 /^X\(\/\).*/{ s//\1/; q; }
21100 s/.*/./; q'`
21101 done
21102 test ! -n "$as_dirs" || mkdir $as_dirs
21103 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21104 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21105 { (exit 1); exit 1; }; }; }
21106
21107 ac_builddir=.
21108
21109 if test "$ac_dir" != .; then
21110 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21111 # A "../" for each directory in $ac_dir_suffix.
21112 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21113 else
21114 ac_dir_suffix= ac_top_builddir=
21115 fi
21116
21117 case $srcdir in
21118 .) # No --srcdir option. We are building in place.
21119 ac_srcdir=.
21120 if test -z "$ac_top_builddir"; then
21121 ac_top_srcdir=.
21122 else
21123 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21124 fi ;;
21125 [\\/]* | ?:[\\/]* ) # Absolute path.
21126 ac_srcdir=$srcdir$ac_dir_suffix;
21127 ac_top_srcdir=$srcdir ;;
21128 *) # Relative path.
21129 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21130 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21131 esac
21132
21133 # Do not use `cd foo && pwd` to compute absolute paths, because
21134 # the directories may not exist.
21135 case `pwd` in
21136 .) ac_abs_builddir="$ac_dir";;
21137 *)
21138 case "$ac_dir" in
21139 .) ac_abs_builddir=`pwd`;;
21140 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21141 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21142 esac;;
21143 esac
21144 case $ac_abs_builddir in
21145 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21146 *)
21147 case ${ac_top_builddir}. in
21148 .) ac_abs_top_builddir=$ac_abs_builddir;;
21149 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21150 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21151 esac;;
21152 esac
21153 case $ac_abs_builddir in
21154 .) ac_abs_srcdir=$ac_srcdir;;
21155 *)
21156 case $ac_srcdir in
21157 .) ac_abs_srcdir=$ac_abs_builddir;;
21158 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21159 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21160 esac;;
21161 esac
21162 case $ac_abs_builddir in
21163 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21164 *)
21165 case $ac_top_srcdir in
21166 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21167 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21168 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21169 esac;;
21170 esac
21171
21172
21173 case $INSTALL in
21174 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21175 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21176 esac
21177
21178 if test x"$ac_file" != x-; then
21179 { echo "$as_me:$LINENO: creating $ac_file" >&5
21180 echo "$as_me: creating $ac_file" >&6;}
21181 rm -f "$ac_file"
21182 fi
21183 # Let's still pretend it is `configure' which instantiates (i.e., don't
21184 # use $as_me), people would be surprised to read:
21185 # /* config.h. Generated by config.status. */
21186 if test x"$ac_file" = x-; then
21187 configure_input=
21188 else
21189 configure_input="$ac_file. "
21190 fi
21191 configure_input=$configure_input"Generated from `echo $ac_file_in |
21192 sed 's,.*/,,'` by configure."
21193
21194 # First look for the input files in the build tree, otherwise in the
21195 # src tree.
21196 ac_file_inputs=`IFS=:
21197 for f in $ac_file_in; do
21198 case $f in
21199 -) echo $tmp/stdin ;;
21200 [\\/$]*)
21201 # Absolute (can't be DOS-style, as IFS=:)
21202 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21203 echo "$as_me: error: cannot find input file: $f" >&2;}
21204 { (exit 1); exit 1; }; }
21205 echo "$f";;
21206 *) # Relative
21207 if test -f "$f"; then
21208 # Build tree
21209 echo "$f"
21210 elif test -f "$srcdir/$f"; then
21211 # Source tree
21212 echo "$srcdir/$f"
21213 else
21214 # /dev/null tree
21215 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21216 echo "$as_me: error: cannot find input file: $f" >&2;}
21217 { (exit 1); exit 1; }; }
21218 fi;;
21219 esac
21220 done` || { (exit 1); exit 1; }
21221 _ACEOF
21222 cat >>$CONFIG_STATUS <<_ACEOF
21223 sed "$ac_vpsub
21224 $extrasub
21225 _ACEOF
21226 cat >>$CONFIG_STATUS <<\_ACEOF
21227 :t
21228 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21229 s,@configure_input@,$configure_input,;t t
21230 s,@srcdir@,$ac_srcdir,;t t
21231 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21232 s,@top_srcdir@,$ac_top_srcdir,;t t
21233 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21234 s,@builddir@,$ac_builddir,;t t
21235 s,@abs_builddir@,$ac_abs_builddir,;t t
21236 s,@top_builddir@,$ac_top_builddir,;t t
21237 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21238 s,@INSTALL@,$ac_INSTALL,;t t
21239 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21240 rm -f $tmp/stdin
21241 if test x"$ac_file" != x-; then
21242 mv $tmp/out $ac_file
21243 else
21244 cat $tmp/out
21245 rm -f $tmp/out
21246 fi
21247
21248 done
21249 _ACEOF
21250 cat >>$CONFIG_STATUS <<\_ACEOF
21251
21252 #
21253 # CONFIG_HEADER section.
21254 #
21255
21256 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21257 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21258 #
21259 # ac_d sets the value in "#define NAME VALUE" lines.
21260 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21261 ac_dB='[ ].*$,\1#\2'
21262 ac_dC=' '
21263 ac_dD=',;t'
21264 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21265 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21266 ac_uB='$,\1#\2define\3'
21267 ac_uC=' '
21268 ac_uD=',;t'
21269
21270 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21271 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21272 case $ac_file in
21273 - | *:- | *:-:* ) # input from stdin
21274 cat >$tmp/stdin
21275 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21276 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21277 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21278 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21279 * ) ac_file_in=$ac_file.in ;;
21280 esac
21281
21282 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21283 echo "$as_me: creating $ac_file" >&6;}
21284
21285 # First look for the input files in the build tree, otherwise in the
21286 # src tree.
21287 ac_file_inputs=`IFS=:
21288 for f in $ac_file_in; do
21289 case $f in
21290 -) echo $tmp/stdin ;;
21291 [\\/$]*)
21292 # Absolute (can't be DOS-style, as IFS=:)
21293 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21294 echo "$as_me: error: cannot find input file: $f" >&2;}
21295 { (exit 1); exit 1; }; }
21296 # Do quote $f, to prevent DOS paths from being IFS'd.
21297 echo "$f";;
21298 *) # Relative
21299 if test -f "$f"; then
21300 # Build tree
21301 echo "$f"
21302 elif test -f "$srcdir/$f"; then
21303 # Source tree
21304 echo "$srcdir/$f"
21305 else
21306 # /dev/null tree
21307 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21308 echo "$as_me: error: cannot find input file: $f" >&2;}
21309 { (exit 1); exit 1; }; }
21310 fi;;
21311 esac
21312 done` || { (exit 1); exit 1; }
21313 # Remove the trailing spaces.
21314 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21315
21316 _ACEOF
21317
21318 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21319 # `conftest.undefs', that substitutes the proper values into
21320 # config.h.in to produce config.h. The first handles `#define'
21321 # templates, and the second `#undef' templates.
21322 # And first: Protect against being on the right side of a sed subst in
21323 # config.status. Protect against being in an unquoted here document
21324 # in config.status.
21325 rm -f conftest.defines conftest.undefs
21326 # Using a here document instead of a string reduces the quoting nightmare.
21327 # Putting comments in sed scripts is not portable.
21328 #
21329 # `end' is used to avoid that the second main sed command (meant for
21330 # 0-ary CPP macros) applies to n-ary macro definitions.
21331 # See the Autoconf documentation for `clear'.
21332 cat >confdef2sed.sed <<\_ACEOF
21333 s/[\\&,]/\\&/g
21334 s,[\\$`],\\&,g
21335 t clear
21336 : clear
21337 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21338 t end
21339 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21340 : end
21341 _ACEOF
21342 # If some macros were called several times there might be several times
21343 # the same #defines, which is useless. Nevertheless, we may not want to
21344 # sort them, since we want the *last* AC-DEFINE to be honored.
21345 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21346 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21347 rm -f confdef2sed.sed
21348
21349 # This sed command replaces #undef with comments. This is necessary, for
21350 # example, in the case of _POSIX_SOURCE, which is predefined and required
21351 # on some systems where configure will not decide to define it.
21352 cat >>conftest.undefs <<\_ACEOF
21353 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21354 _ACEOF
21355
21356 # Break up conftest.defines because some shells have a limit on the size
21357 # of here documents, and old seds have small limits too (100 cmds).
21358 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21359 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21360 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21361 echo ' :' >>$CONFIG_STATUS
21362 rm -f conftest.tail
21363 while grep . conftest.defines >/dev/null
21364 do
21365 # Write a limited-size here document to $tmp/defines.sed.
21366 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21367 # Speed up: don't consider the non `#define' lines.
21368 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21369 # Work around the forget-to-reset-the-flag bug.
21370 echo 't clr' >>$CONFIG_STATUS
21371 echo ': clr' >>$CONFIG_STATUS
21372 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21373 echo 'CEOF
21374 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21375 rm -f $tmp/in
21376 mv $tmp/out $tmp/in
21377 ' >>$CONFIG_STATUS
21378 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21379 rm -f conftest.defines
21380 mv conftest.tail conftest.defines
21381 done
21382 rm -f conftest.defines
21383 echo ' fi # grep' >>$CONFIG_STATUS
21384 echo >>$CONFIG_STATUS
21385
21386 # Break up conftest.undefs because some shells have a limit on the size
21387 # of here documents, and old seds have small limits too (100 cmds).
21388 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21389 rm -f conftest.tail
21390 while grep . conftest.undefs >/dev/null
21391 do
21392 # Write a limited-size here document to $tmp/undefs.sed.
21393 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21394 # Speed up: don't consider the non `#undef'
21395 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21396 # Work around the forget-to-reset-the-flag bug.
21397 echo 't clr' >>$CONFIG_STATUS
21398 echo ': clr' >>$CONFIG_STATUS
21399 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21400 echo 'CEOF
21401 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21402 rm -f $tmp/in
21403 mv $tmp/out $tmp/in
21404 ' >>$CONFIG_STATUS
21405 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21406 rm -f conftest.undefs
21407 mv conftest.tail conftest.undefs
21408 done
21409 rm -f conftest.undefs
21410
21411 cat >>$CONFIG_STATUS <<\_ACEOF
21412 # Let's still pretend it is `configure' which instantiates (i.e., don't
21413 # use $as_me), people would be surprised to read:
21414 # /* config.h. Generated by config.status. */
21415 if test x"$ac_file" = x-; then
21416 echo "/* Generated by configure. */" >$tmp/config.h
21417 else
21418 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21419 fi
21420 cat $tmp/in >>$tmp/config.h
21421 rm -f $tmp/in
21422 if test x"$ac_file" != x-; then
21423 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21424 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21425 echo "$as_me: $ac_file is unchanged" >&6;}
21426 else
21427 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21428 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21429 X"$ac_file" : 'X\(//\)[^/]' \| \
21430 X"$ac_file" : 'X\(//\)$' \| \
21431 X"$ac_file" : 'X\(/\)' \| \
21432 . : '\(.\)' 2>/dev/null ||
21433 echo X"$ac_file" |
21434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21435 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21436 /^X\(\/\/\)$/{ s//\1/; q; }
21437 /^X\(\/\).*/{ s//\1/; q; }
21438 s/.*/./; q'`
21439 { if $as_mkdir_p; then
21440 mkdir -p "$ac_dir"
21441 else
21442 as_dir="$ac_dir"
21443 as_dirs=
21444 while test ! -d "$as_dir"; do
21445 as_dirs="$as_dir $as_dirs"
21446 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21447 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21448 X"$as_dir" : 'X\(//\)[^/]' \| \
21449 X"$as_dir" : 'X\(//\)$' \| \
21450 X"$as_dir" : 'X\(/\)' \| \
21451 . : '\(.\)' 2>/dev/null ||
21452 echo X"$as_dir" |
21453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21454 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21455 /^X\(\/\/\)$/{ s//\1/; q; }
21456 /^X\(\/\).*/{ s//\1/; q; }
21457 s/.*/./; q'`
21458 done
21459 test ! -n "$as_dirs" || mkdir $as_dirs
21460 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21461 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21462 { (exit 1); exit 1; }; }; }
21463
21464 rm -f $ac_file
21465 mv $tmp/config.h $ac_file
21466 fi
21467 else
21468 cat $tmp/config.h
21469 rm -f $tmp/config.h
21470 fi
21471 # Compute $ac_file's index in $config_headers.
21472 _am_stamp_count=1
21473 for _am_header in $config_headers :; do
21474 case $_am_header in
21475 $ac_file | $ac_file:* )
21476 break ;;
21477 * )
21478 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21479 esac
21480 done
21481 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21482 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21483 X$ac_file : 'X\(//\)[^/]' \| \
21484 X$ac_file : 'X\(//\)$' \| \
21485 X$ac_file : 'X\(/\)' \| \
21486 . : '\(.\)' 2>/dev/null ||
21487 echo X$ac_file |
21488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21489 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21490 /^X\(\/\/\)$/{ s//\1/; q; }
21491 /^X\(\/\).*/{ s//\1/; q; }
21492 s/.*/./; q'`/stamp-h$_am_stamp_count
21493 done
21494 _ACEOF
21495 cat >>$CONFIG_STATUS <<\_ACEOF
21496
21497 #
21498 # CONFIG_COMMANDS section.
21499 #
21500 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21501 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21502 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21503 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21504 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21505 X"$ac_dest" : 'X\(//\)[^/]' \| \
21506 X"$ac_dest" : 'X\(//\)$' \| \
21507 X"$ac_dest" : 'X\(/\)' \| \
21508 . : '\(.\)' 2>/dev/null ||
21509 echo X"$ac_dest" |
21510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21511 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21512 /^X\(\/\/\)$/{ s//\1/; q; }
21513 /^X\(\/\).*/{ s//\1/; q; }
21514 s/.*/./; q'`
21515 { if $as_mkdir_p; then
21516 mkdir -p "$ac_dir"
21517 else
21518 as_dir="$ac_dir"
21519 as_dirs=
21520 while test ! -d "$as_dir"; do
21521 as_dirs="$as_dir $as_dirs"
21522 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21523 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21524 X"$as_dir" : 'X\(//\)[^/]' \| \
21525 X"$as_dir" : 'X\(//\)$' \| \
21526 X"$as_dir" : 'X\(/\)' \| \
21527 . : '\(.\)' 2>/dev/null ||
21528 echo X"$as_dir" |
21529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21530 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21531 /^X\(\/\/\)$/{ s//\1/; q; }
21532 /^X\(\/\).*/{ s//\1/; q; }
21533 s/.*/./; q'`
21534 done
21535 test ! -n "$as_dirs" || mkdir $as_dirs
21536 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21537 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21538 { (exit 1); exit 1; }; }; }
21539
21540 ac_builddir=.
21541
21542 if test "$ac_dir" != .; then
21543 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21544 # A "../" for each directory in $ac_dir_suffix.
21545 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21546 else
21547 ac_dir_suffix= ac_top_builddir=
21548 fi
21549
21550 case $srcdir in
21551 .) # No --srcdir option. We are building in place.
21552 ac_srcdir=.
21553 if test -z "$ac_top_builddir"; then
21554 ac_top_srcdir=.
21555 else
21556 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21557 fi ;;
21558 [\\/]* | ?:[\\/]* ) # Absolute path.
21559 ac_srcdir=$srcdir$ac_dir_suffix;
21560 ac_top_srcdir=$srcdir ;;
21561 *) # Relative path.
21562 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21563 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21564 esac
21565
21566 # Do not use `cd foo && pwd` to compute absolute paths, because
21567 # the directories may not exist.
21568 case `pwd` in
21569 .) ac_abs_builddir="$ac_dir";;
21570 *)
21571 case "$ac_dir" in
21572 .) ac_abs_builddir=`pwd`;;
21573 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21574 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21575 esac;;
21576 esac
21577 case $ac_abs_builddir in
21578 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21579 *)
21580 case ${ac_top_builddir}. in
21581 .) ac_abs_top_builddir=$ac_abs_builddir;;
21582 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21583 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21584 esac;;
21585 esac
21586 case $ac_abs_builddir in
21587 .) ac_abs_srcdir=$ac_srcdir;;
21588 *)
21589 case $ac_srcdir in
21590 .) ac_abs_srcdir=$ac_abs_builddir;;
21591 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21592 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21593 esac;;
21594 esac
21595 case $ac_abs_builddir in
21596 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21597 *)
21598 case $ac_top_srcdir in
21599 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21600 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21601 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21602 esac;;
21603 esac
21604
21605
21606 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21607 echo "$as_me: executing $ac_dest commands" >&6;}
21608 case $ac_dest in
21609 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21610 # Strip MF so we end up with the name of the file.
21611 mf=`echo "$mf" | sed -e 's/:.*$//'`
21612 # Check whether this is an Automake generated Makefile or not.
21613 # We used to match only the files named `Makefile.in', but
21614 # some people rename them; so instead we look at the file content.
21615 # Grep'ing the first line is not enough: some people post-process
21616 # each Makefile.in and add a new line on top of each file to say so.
21617 # So let's grep whole file.
21618 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21619 dirpart=`(dirname "$mf") 2>/dev/null ||
21620 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21621 X"$mf" : 'X\(//\)[^/]' \| \
21622 X"$mf" : 'X\(//\)$' \| \
21623 X"$mf" : 'X\(/\)' \| \
21624 . : '\(.\)' 2>/dev/null ||
21625 echo X"$mf" |
21626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21627 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21628 /^X\(\/\/\)$/{ s//\1/; q; }
21629 /^X\(\/\).*/{ s//\1/; q; }
21630 s/.*/./; q'`
21631 else
21632 continue
21633 fi
21634 # Extract the definition of DEPDIR, am__include, and am__quote
21635 # from the Makefile without running `make'.
21636 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21637 test -z "$DEPDIR" && continue
21638 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21639 test -z "am__include" && continue
21640 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21641 # When using ansi2knr, U may be empty or an underscore; expand it
21642 U=`sed -n 's/^U = //p' < "$mf"`
21643 # Find all dependency output files, they are included files with
21644 # $(DEPDIR) in their names. We invoke sed twice because it is the
21645 # simplest approach to changing $(DEPDIR) to its actual value in the
21646 # expansion.
21647 for file in `sed -n "
21648 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21649 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21650 # Make sure the directory exists.
21651 test -f "$dirpart/$file" && continue
21652 fdir=`(dirname "$file") 2>/dev/null ||
21653 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21654 X"$file" : 'X\(//\)[^/]' \| \
21655 X"$file" : 'X\(//\)$' \| \
21656 X"$file" : 'X\(/\)' \| \
21657 . : '\(.\)' 2>/dev/null ||
21658 echo X"$file" |
21659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21660 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21661 /^X\(\/\/\)$/{ s//\1/; q; }
21662 /^X\(\/\).*/{ s//\1/; q; }
21663 s/.*/./; q'`
21664 { if $as_mkdir_p; then
21665 mkdir -p $dirpart/$fdir
21666 else
21667 as_dir=$dirpart/$fdir
21668 as_dirs=
21669 while test ! -d "$as_dir"; do
21670 as_dirs="$as_dir $as_dirs"
21671 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21672 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21673 X"$as_dir" : 'X\(//\)[^/]' \| \
21674 X"$as_dir" : 'X\(//\)$' \| \
21675 X"$as_dir" : 'X\(/\)' \| \
21676 . : '\(.\)' 2>/dev/null ||
21677 echo X"$as_dir" |
21678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21679 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21680 /^X\(\/\/\)$/{ s//\1/; q; }
21681 /^X\(\/\).*/{ s//\1/; q; }
21682 s/.*/./; q'`
21683 done
21684 test ! -n "$as_dirs" || mkdir $as_dirs
21685 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21686 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21687 { (exit 1); exit 1; }; }; }
21688
21689 # echo "creating $dirpart/$file"
21690 echo '# dummy' > "$dirpart/$file"
21691 done
21692 done
21693 ;;
21694 esac
21695 done
21696 _ACEOF
21697
21698 cat >>$CONFIG_STATUS <<\_ACEOF
21699
21700 { (exit 0); exit 0; }
21701 _ACEOF
21702 chmod +x $CONFIG_STATUS
21703 ac_clean_files=$ac_clean_files_save
21704
21705
21706 # configure is writing to config.log, and then calls config.status.
21707 # config.status does its own redirection, appending to config.log.
21708 # Unfortunately, on DOS this fails, as config.log is still kept open
21709 # by configure, so config.status won't be able to write to it; its
21710 # output is simply discarded. So we exec the FD to /dev/null,
21711 # effectively closing config.log, so it can be properly (re)opened and
21712 # appended to by config.status. When coming back to configure, we
21713 # need to make the FD available again.
21714 if test "$no_create" != yes; then
21715 ac_cs_success=:
21716 ac_config_status_args=
21717 test "$silent" = yes &&
21718 ac_config_status_args="$ac_config_status_args --quiet"
21719 exec 5>/dev/null
21720 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21721 exec 5>>config.log
21722 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21723 # would make configure fail if this is the last instruction.
21724 $ac_cs_success || { (exit 1); exit 1; }
21725 fi
21726
21727