configure revision 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-glint 1.1.1.
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-glint'
425 PACKAGE_TARNAME='xf86-video-glint'
426 PACKAGE_VERSION='1.1.1'
427 PACKAGE_STRING='xf86-video-glint 1.1.1'
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 DRI_TRUE DRI_FALSE DRI_CFLAGS DRI_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 ac_env_DRI_CFLAGS_set=${DRI_CFLAGS+set}
962 ac_env_DRI_CFLAGS_value=$DRI_CFLAGS
963 ac_cv_env_DRI_CFLAGS_set=${DRI_CFLAGS+set}
964 ac_cv_env_DRI_CFLAGS_value=$DRI_CFLAGS
965 ac_env_DRI_LIBS_set=${DRI_LIBS+set}
966 ac_env_DRI_LIBS_value=$DRI_LIBS
967 ac_cv_env_DRI_LIBS_set=${DRI_LIBS+set}
968 ac_cv_env_DRI_LIBS_value=$DRI_LIBS
969
970 #
971 # Report the --help message.
972 #
973 if test "$ac_init_help" = "long"; then
974 # Omit some internal or obsolete options to make the list less imposing.
975 # This message is too long to be a string in the A/UX 3.1 sh.
976 cat <<_ACEOF
977 \`configure' configures xf86-video-glint 1.1.1 to adapt to many kinds of systems.
978
979 Usage: $0 [OPTION]... [VAR=VALUE]...
980
981 To assign environment variables (e.g., CC, CFLAGS...), specify them as
982 VAR=VALUE. See below for descriptions of some of the useful variables.
983
984 Defaults for the options are specified in brackets.
985
986 Configuration:
987 -h, --help display this help and exit
988 --help=short display options specific to this package
989 --help=recursive display the short help of all the included packages
990 -V, --version display version information and exit
991 -q, --quiet, --silent do not print \`checking...' messages
992 --cache-file=FILE cache test results in FILE [disabled]
993 -C, --config-cache alias for \`--cache-file=config.cache'
994 -n, --no-create do not create output files
995 --srcdir=DIR find the sources in DIR [configure dir or \`..']
996
997 _ACEOF
998
999 cat <<_ACEOF
1000 Installation directories:
1001 --prefix=PREFIX install architecture-independent files in PREFIX
1002 [$ac_default_prefix]
1003 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1004 [PREFIX]
1005
1006 By default, \`make install' will install all the files in
1007 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1008 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1009 for instance \`--prefix=\$HOME'.
1010
1011 For better control, use the options below.
1012
1013 Fine tuning of the installation directories:
1014 --bindir=DIR user executables [EPREFIX/bin]
1015 --sbindir=DIR system admin executables [EPREFIX/sbin]
1016 --libexecdir=DIR program executables [EPREFIX/libexec]
1017 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1018 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1019 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1020 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1021 --libdir=DIR object code libraries [EPREFIX/lib]
1022 --includedir=DIR C header files [PREFIX/include]
1023 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1024 --infodir=DIR info documentation [PREFIX/info]
1025 --mandir=DIR man documentation [PREFIX/man]
1026 _ACEOF
1027
1028 cat <<\_ACEOF
1029
1030 Program names:
1031 --program-prefix=PREFIX prepend PREFIX to installed program names
1032 --program-suffix=SUFFIX append SUFFIX to installed program names
1033 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1034
1035 System types:
1036 --build=BUILD configure for building on BUILD [guessed]
1037 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1038 _ACEOF
1039 fi
1040
1041 if test -n "$ac_init_help"; then
1042 case $ac_init_help in
1043 short | recursive ) echo "Configuration of xf86-video-glint 1.1.1:";;
1044 esac
1045 cat <<\_ACEOF
1046
1047 Optional Features:
1048 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1049 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1050 --enable-maintainer-mode enable make rules and dependencies not useful
1051 (and sometimes confusing) to the casual installer
1052 --enable-static[=PKGS]
1053 build static libraries [default=no]
1054 --enable-shared[=PKGS]
1055 build shared libraries [default=yes]
1056 --enable-fast-install[=PKGS]
1057 optimize for fast installation [default=yes]
1058 --disable-dependency-tracking speeds up one-time build
1059 --enable-dependency-tracking do not reject slow dependency extractors
1060 --disable-libtool-lock avoid locking (might break parallel builds)
1061 --disable-dri Disable DRI support [default=auto]
1062
1063 Optional Packages:
1064 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1065 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1066 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1067 --with-pic try to use only PIC/non-PIC objects [default=use
1068 both]
1069 --with-tags[=TAGS]
1070 include additional configurations [automatic]
1071 --with-xorg-module-dir=DIR
1072 Default xorg module directory
1073 [default=$libdir/xorg/modules]
1074 --with-release-version=STRING
1075 Use release version string in package name
1076
1077 Some influential environment variables:
1078 CC C compiler command
1079 CFLAGS C compiler flags
1080 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1081 nonstandard directory <lib dir>
1082 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1083 headers in a nonstandard directory <include dir>
1084 CPP C preprocessor
1085 CXX C++ compiler command
1086 CXXFLAGS C++ compiler flags
1087 CXXCPP C++ preprocessor
1088 F77 Fortran 77 compiler command
1089 FFLAGS Fortran 77 compiler flags
1090 PKG_CONFIG path to pkg-config utility
1091 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1092 XORG_LIBS linker flags for XORG, overriding pkg-config
1093 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config
1094 DRI_LIBS linker flags for DRI, overriding pkg-config
1095
1096 Use these variables to override the choices made by `configure' or to help
1097 it to find libraries and programs with nonstandard names/locations.
1098
1099 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1100 _ACEOF
1101 fi
1102
1103 if test "$ac_init_help" = "recursive"; then
1104 # If there are subdirs, report their specific --help.
1105 ac_popdir=`pwd`
1106 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1107 test -d $ac_dir || continue
1108 ac_builddir=.
1109
1110 if test "$ac_dir" != .; then
1111 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1112 # A "../" for each directory in $ac_dir_suffix.
1113 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1114 else
1115 ac_dir_suffix= ac_top_builddir=
1116 fi
1117
1118 case $srcdir in
1119 .) # No --srcdir option. We are building in place.
1120 ac_srcdir=.
1121 if test -z "$ac_top_builddir"; then
1122 ac_top_srcdir=.
1123 else
1124 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1125 fi ;;
1126 [\\/]* | ?:[\\/]* ) # Absolute path.
1127 ac_srcdir=$srcdir$ac_dir_suffix;
1128 ac_top_srcdir=$srcdir ;;
1129 *) # Relative path.
1130 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1131 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1132 esac
1133
1134 # Do not use `cd foo && pwd` to compute absolute paths, because
1135 # the directories may not exist.
1136 case `pwd` in
1137 .) ac_abs_builddir="$ac_dir";;
1138 *)
1139 case "$ac_dir" in
1140 .) ac_abs_builddir=`pwd`;;
1141 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1142 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1143 esac;;
1144 esac
1145 case $ac_abs_builddir in
1146 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1147 *)
1148 case ${ac_top_builddir}. in
1149 .) ac_abs_top_builddir=$ac_abs_builddir;;
1150 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1151 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1152 esac;;
1153 esac
1154 case $ac_abs_builddir in
1155 .) ac_abs_srcdir=$ac_srcdir;;
1156 *)
1157 case $ac_srcdir in
1158 .) ac_abs_srcdir=$ac_abs_builddir;;
1159 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1160 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1161 esac;;
1162 esac
1163 case $ac_abs_builddir in
1164 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1165 *)
1166 case $ac_top_srcdir in
1167 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1168 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1169 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1170 esac;;
1171 esac
1172
1173 cd $ac_dir
1174 # Check for guested configure; otherwise get Cygnus style configure.
1175 if test -f $ac_srcdir/configure.gnu; then
1176 echo
1177 $SHELL $ac_srcdir/configure.gnu --help=recursive
1178 elif test -f $ac_srcdir/configure; then
1179 echo
1180 $SHELL $ac_srcdir/configure --help=recursive
1181 elif test -f $ac_srcdir/configure.ac ||
1182 test -f $ac_srcdir/configure.in; then
1183 echo
1184 $ac_configure --help
1185 else
1186 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1187 fi
1188 cd $ac_popdir
1189 done
1190 fi
1191
1192 test -n "$ac_init_help" && exit 0
1193 if $ac_init_version; then
1194 cat <<\_ACEOF
1195 xf86-video-glint configure 1.1.1
1196 generated by GNU Autoconf 2.59
1197
1198 Copyright (C) 2003 Free Software Foundation, Inc.
1199 This configure script is free software; the Free Software Foundation
1200 gives unlimited permission to copy, distribute and modify it.
1201 _ACEOF
1202 exit 0
1203 fi
1204 exec 5>config.log
1205 cat >&5 <<_ACEOF
1206 This file contains any messages produced by compilers while
1207 running configure, to aid debugging if configure makes a mistake.
1208
1209 It was created by xf86-video-glint $as_me 1.1.1, which was
1210 generated by GNU Autoconf 2.59. Invocation command line was
1211
1212 $ $0 $@
1213
1214 _ACEOF
1215 {
1216 cat <<_ASUNAME
1217 ## --------- ##
1218 ## Platform. ##
1219 ## --------- ##
1220
1221 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1222 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1223 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1224 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1225 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1226
1227 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1228 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1229
1230 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1231 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1232 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1233 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1234 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1235 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1236 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1237
1238 _ASUNAME
1239
1240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1241 for as_dir in $PATH
1242 do
1243 IFS=$as_save_IFS
1244 test -z "$as_dir" && as_dir=.
1245 echo "PATH: $as_dir"
1246 done
1247
1248 } >&5
1249
1250 cat >&5 <<_ACEOF
1251
1252
1253 ## ----------- ##
1254 ## Core tests. ##
1255 ## ----------- ##
1256
1257 _ACEOF
1258
1259
1260 # Keep a trace of the command line.
1261 # Strip out --no-create and --no-recursion so they do not pile up.
1262 # Strip out --silent because we don't want to record it for future runs.
1263 # Also quote any args containing shell meta-characters.
1264 # Make two passes to allow for proper duplicate-argument suppression.
1265 ac_configure_args=
1266 ac_configure_args0=
1267 ac_configure_args1=
1268 ac_sep=
1269 ac_must_keep_next=false
1270 for ac_pass in 1 2
1271 do
1272 for ac_arg
1273 do
1274 case $ac_arg in
1275 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1276 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1277 | -silent | --silent | --silen | --sile | --sil)
1278 continue ;;
1279 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1280 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1281 esac
1282 case $ac_pass in
1283 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1284 2)
1285 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1286 if test $ac_must_keep_next = true; then
1287 ac_must_keep_next=false # Got value, back to normal.
1288 else
1289 case $ac_arg in
1290 *=* | --config-cache | -C | -disable-* | --disable-* \
1291 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1292 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1293 | -with-* | --with-* | -without-* | --without-* | --x)
1294 case "$ac_configure_args0 " in
1295 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1296 esac
1297 ;;
1298 -* ) ac_must_keep_next=true ;;
1299 esac
1300 fi
1301 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1302 # Get rid of the leading space.
1303 ac_sep=" "
1304 ;;
1305 esac
1306 done
1307 done
1308 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1309 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1310
1311 # When interrupted or exit'd, cleanup temporary files, and complete
1312 # config.log. We remove comments because anyway the quotes in there
1313 # would cause problems or look ugly.
1314 # WARNING: Be sure not to use single quotes in there, as some shells,
1315 # such as our DU 5.0 friend, will then `close' the trap.
1316 trap 'exit_status=$?
1317 # Save into config.log some information that might help in debugging.
1318 {
1319 echo
1320
1321 cat <<\_ASBOX
1322 ## ---------------- ##
1323 ## Cache variables. ##
1324 ## ---------------- ##
1325 _ASBOX
1326 echo
1327 # The following way of writing the cache mishandles newlines in values,
1328 {
1329 (set) 2>&1 |
1330 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1331 *ac_space=\ *)
1332 sed -n \
1333 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1334 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1335 ;;
1336 *)
1337 sed -n \
1338 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1339 ;;
1340 esac;
1341 }
1342 echo
1343
1344 cat <<\_ASBOX
1345 ## ----------------- ##
1346 ## Output variables. ##
1347 ## ----------------- ##
1348 _ASBOX
1349 echo
1350 for ac_var in $ac_subst_vars
1351 do
1352 eval ac_val=$`echo $ac_var`
1353 echo "$ac_var='"'"'$ac_val'"'"'"
1354 done | sort
1355 echo
1356
1357 if test -n "$ac_subst_files"; then
1358 cat <<\_ASBOX
1359 ## ------------- ##
1360 ## Output files. ##
1361 ## ------------- ##
1362 _ASBOX
1363 echo
1364 for ac_var in $ac_subst_files
1365 do
1366 eval ac_val=$`echo $ac_var`
1367 echo "$ac_var='"'"'$ac_val'"'"'"
1368 done | sort
1369 echo
1370 fi
1371
1372 if test -s confdefs.h; then
1373 cat <<\_ASBOX
1374 ## ----------- ##
1375 ## confdefs.h. ##
1376 ## ----------- ##
1377 _ASBOX
1378 echo
1379 sed "/^$/d" confdefs.h | sort
1380 echo
1381 fi
1382 test "$ac_signal" != 0 &&
1383 echo "$as_me: caught signal $ac_signal"
1384 echo "$as_me: exit $exit_status"
1385 } >&5
1386 rm -f core *.core &&
1387 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1388 exit $exit_status
1389 ' 0
1390 for ac_signal in 1 2 13 15; do
1391 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1392 done
1393 ac_signal=0
1394
1395 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1396 rm -rf conftest* confdefs.h
1397 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1398 echo >confdefs.h
1399
1400 # Predefined preprocessor variables.
1401
1402 cat >>confdefs.h <<_ACEOF
1403 #define PACKAGE_NAME "$PACKAGE_NAME"
1404 _ACEOF
1405
1406
1407 cat >>confdefs.h <<_ACEOF
1408 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1409 _ACEOF
1410
1411
1412 cat >>confdefs.h <<_ACEOF
1413 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1414 _ACEOF
1415
1416
1417 cat >>confdefs.h <<_ACEOF
1418 #define PACKAGE_STRING "$PACKAGE_STRING"
1419 _ACEOF
1420
1421
1422 cat >>confdefs.h <<_ACEOF
1423 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1424 _ACEOF
1425
1426
1427 # Let the site file select an alternate cache file if it wants to.
1428 # Prefer explicitly selected file to automatically selected ones.
1429 if test -z "$CONFIG_SITE"; then
1430 if test "x$prefix" != xNONE; then
1431 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1432 else
1433 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1434 fi
1435 fi
1436 for ac_site_file in $CONFIG_SITE; do
1437 if test -r "$ac_site_file"; then
1438 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1439 echo "$as_me: loading site script $ac_site_file" >&6;}
1440 sed 's/^/| /' "$ac_site_file" >&5
1441 . "$ac_site_file"
1442 fi
1443 done
1444
1445 if test -r "$cache_file"; then
1446 # Some versions of bash will fail to source /dev/null (special
1447 # files actually), so we avoid doing that.
1448 if test -f "$cache_file"; then
1449 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1450 echo "$as_me: loading cache $cache_file" >&6;}
1451 case $cache_file in
1452 [\\/]* | ?:[\\/]* ) . $cache_file;;
1453 *) . ./$cache_file;;
1454 esac
1455 fi
1456 else
1457 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1458 echo "$as_me: creating cache $cache_file" >&6;}
1459 >$cache_file
1460 fi
1461
1462 # Check that the precious variables saved in the cache have kept the same
1463 # value.
1464 ac_cache_corrupted=false
1465 for ac_var in `(set) 2>&1 |
1466 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1467 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1468 eval ac_new_set=\$ac_env_${ac_var}_set
1469 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1470 eval ac_new_val="\$ac_env_${ac_var}_value"
1471 case $ac_old_set,$ac_new_set in
1472 set,)
1473 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1474 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1475 ac_cache_corrupted=: ;;
1476 ,set)
1477 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1478 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1479 ac_cache_corrupted=: ;;
1480 ,);;
1481 *)
1482 if test "x$ac_old_val" != "x$ac_new_val"; then
1483 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1484 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1485 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1486 echo "$as_me: former value: $ac_old_val" >&2;}
1487 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1488 echo "$as_me: current value: $ac_new_val" >&2;}
1489 ac_cache_corrupted=:
1490 fi;;
1491 esac
1492 # Pass precious variables to config.status.
1493 if test "$ac_new_set" = set; then
1494 case $ac_new_val in
1495 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1496 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1497 *) ac_arg=$ac_var=$ac_new_val ;;
1498 esac
1499 case " $ac_configure_args " in
1500 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1501 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1502 esac
1503 fi
1504 done
1505 if $ac_cache_corrupted; then
1506 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1507 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1508 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1509 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1510 { (exit 1); exit 1; }; }
1511 fi
1512
1513 ac_ext=c
1514 ac_cpp='$CPP $CPPFLAGS'
1515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547 ac_config_headers="$ac_config_headers config.h"
1548
1549 ac_aux_dir=
1550 for ac_dir in . $srcdir/.; do
1551 if test -f $ac_dir/install-sh; then
1552 ac_aux_dir=$ac_dir
1553 ac_install_sh="$ac_aux_dir/install-sh -c"
1554 break
1555 elif test -f $ac_dir/install.sh; then
1556 ac_aux_dir=$ac_dir
1557 ac_install_sh="$ac_aux_dir/install.sh -c"
1558 break
1559 elif test -f $ac_dir/shtool; then
1560 ac_aux_dir=$ac_dir
1561 ac_install_sh="$ac_aux_dir/shtool install -c"
1562 break
1563 fi
1564 done
1565 if test -z "$ac_aux_dir"; then
1566 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1567 echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1568 { (exit 1); exit 1; }; }
1569 fi
1570 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1571 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1572 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1573
1574
1575 am__api_version="1.9"
1576 # Find a good install program. We prefer a C program (faster),
1577 # so one script is as good as another. But avoid the broken or
1578 # incompatible versions:
1579 # SysV /etc/install, /usr/sbin/install
1580 # SunOS /usr/etc/install
1581 # IRIX /sbin/install
1582 # AIX /bin/install
1583 # AmigaOS /C/install, which installs bootblocks on floppy discs
1584 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1585 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1586 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1587 # OS/2's system install, which has a completely different semantic
1588 # ./install, which can be erroneously created by make from ./install.sh.
1589 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1590 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1591 if test -z "$INSTALL"; then
1592 if test "${ac_cv_path_install+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1594 else
1595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1596 for as_dir in $PATH
1597 do
1598 IFS=$as_save_IFS
1599 test -z "$as_dir" && as_dir=.
1600 # Account for people who put trailing slashes in PATH elements.
1601 case $as_dir/ in
1602 ./ | .// | /cC/* | \
1603 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1604 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1605 /usr/ucb/* ) ;;
1606 *)
1607 # OSF1 and SCO ODT 3.0 have their own names for install.
1608 # Don't use installbsd from OSF since it installs stuff as root
1609 # by default.
1610 for ac_prog in ginstall scoinst install; do
1611 for ac_exec_ext in '' $ac_executable_extensions; do
1612 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1613 if test $ac_prog = install &&
1614 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1615 # AIX install. It has an incompatible calling convention.
1616 :
1617 elif test $ac_prog = install &&
1618 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1619 # program-specific install script used by HP pwplus--don't use.
1620 :
1621 else
1622 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1623 break 3
1624 fi
1625 fi
1626 done
1627 done
1628 ;;
1629 esac
1630 done
1631
1632
1633 fi
1634 if test "${ac_cv_path_install+set}" = set; then
1635 INSTALL=$ac_cv_path_install
1636 else
1637 # As a last resort, use the slow shell script. We don't cache a
1638 # path for INSTALL within a source directory, because that will
1639 # break other packages using the cache if that directory is
1640 # removed, or if the path is relative.
1641 INSTALL=$ac_install_sh
1642 fi
1643 fi
1644 echo "$as_me:$LINENO: result: $INSTALL" >&5
1645 echo "${ECHO_T}$INSTALL" >&6
1646
1647 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1648 # It thinks the first close brace ends the variable substitution.
1649 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1650
1651 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1652
1653 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1654
1655 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1656 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1657 # Just in case
1658 sleep 1
1659 echo timestamp > conftest.file
1660 # Do `set' in a subshell so we don't clobber the current shell's
1661 # arguments. Must try -L first in case configure is actually a
1662 # symlink; some systems play weird games with the mod time of symlinks
1663 # (eg FreeBSD returns the mod time of the symlink's containing
1664 # directory).
1665 if (
1666 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1667 if test "$*" = "X"; then
1668 # -L didn't work.
1669 set X `ls -t $srcdir/configure conftest.file`
1670 fi
1671 rm -f conftest.file
1672 if test "$*" != "X $srcdir/configure conftest.file" \
1673 && test "$*" != "X conftest.file $srcdir/configure"; then
1674
1675 # If neither matched, then we have a broken ls. This can happen
1676 # if, for instance, CONFIG_SHELL is bash and it inherits a
1677 # broken ls alias from the environment. This has actually
1678 # happened. Such a system could not be considered "sane".
1679 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1680 alias in your environment" >&5
1681 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1682 alias in your environment" >&2;}
1683 { (exit 1); exit 1; }; }
1684 fi
1685
1686 test "$2" = conftest.file
1687 )
1688 then
1689 # Ok.
1690 :
1691 else
1692 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1693 Check your system clock" >&5
1694 echo "$as_me: error: newly created file is older than distributed files!
1695 Check your system clock" >&2;}
1696 { (exit 1); exit 1; }; }
1697 fi
1698 echo "$as_me:$LINENO: result: yes" >&5
1699 echo "${ECHO_T}yes" >&6
1700 test "$program_prefix" != NONE &&
1701 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1702 # Use a double $ so make ignores it.
1703 test "$program_suffix" != NONE &&
1704 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1705 # Double any \ or $. echo might interpret backslashes.
1706 # By default was `s,x,x', remove it if useless.
1707 cat <<\_ACEOF >conftest.sed
1708 s/[\\$]/&&/g;s/;s,x,x,$//
1709 _ACEOF
1710 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1711 rm conftest.sed
1712
1713 # expand $ac_aux_dir to an absolute path
1714 am_aux_dir=`cd $ac_aux_dir && pwd`
1715
1716 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1717 # Use eval to expand $SHELL
1718 if eval "$MISSING --run true"; then
1719 am_missing_run="$MISSING --run "
1720 else
1721 am_missing_run=
1722 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1723 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1724 fi
1725
1726 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1727 # We used to keeping the `.' as first argument, in order to
1728 # allow $(mkdir_p) to be used without argument. As in
1729 # $(mkdir_p) $(somedir)
1730 # where $(somedir) is conditionally defined. However this is wrong
1731 # for two reasons:
1732 # 1. if the package is installed by a user who cannot write `.'
1733 # make install will fail,
1734 # 2. the above comment should most certainly read
1735 # $(mkdir_p) $(DESTDIR)$(somedir)
1736 # so it does not work when $(somedir) is undefined and
1737 # $(DESTDIR) is not.
1738 # To support the latter case, we have to write
1739 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1740 # so the `.' trick is pointless.
1741 mkdir_p='mkdir -p --'
1742 else
1743 # On NextStep and OpenStep, the `mkdir' command does not
1744 # recognize any option. It will interpret all options as
1745 # directories to create, and then abort because `.' already
1746 # exists.
1747 for d in ./-p ./--version;
1748 do
1749 test -d $d && rmdir $d
1750 done
1751 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1752 if test -f "$ac_aux_dir/mkinstalldirs"; then
1753 mkdir_p='$(mkinstalldirs)'
1754 else
1755 mkdir_p='$(install_sh) -d'
1756 fi
1757 fi
1758
1759 for ac_prog in gawk mawk nawk awk
1760 do
1761 # Extract the first word of "$ac_prog", so it can be a program name with args.
1762 set dummy $ac_prog; ac_word=$2
1763 echo "$as_me:$LINENO: checking for $ac_word" >&5
1764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1765 if test "${ac_cv_prog_AWK+set}" = set; then
1766 echo $ECHO_N "(cached) $ECHO_C" >&6
1767 else
1768 if test -n "$AWK"; then
1769 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1770 else
1771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1772 for as_dir in $PATH
1773 do
1774 IFS=$as_save_IFS
1775 test -z "$as_dir" && as_dir=.
1776 for ac_exec_ext in '' $ac_executable_extensions; do
1777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1778 ac_cv_prog_AWK="$ac_prog"
1779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1780 break 2
1781 fi
1782 done
1783 done
1784
1785 fi
1786 fi
1787 AWK=$ac_cv_prog_AWK
1788 if test -n "$AWK"; then
1789 echo "$as_me:$LINENO: result: $AWK" >&5
1790 echo "${ECHO_T}$AWK" >&6
1791 else
1792 echo "$as_me:$LINENO: result: no" >&5
1793 echo "${ECHO_T}no" >&6
1794 fi
1795
1796 test -n "$AWK" && break
1797 done
1798
1799 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1800 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1801 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1802 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1803 echo $ECHO_N "(cached) $ECHO_C" >&6
1804 else
1805 cat >conftest.make <<\_ACEOF
1806 all:
1807 @echo 'ac_maketemp="$(MAKE)"'
1808 _ACEOF
1809 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1810 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1811 if test -n "$ac_maketemp"; then
1812 eval ac_cv_prog_make_${ac_make}_set=yes
1813 else
1814 eval ac_cv_prog_make_${ac_make}_set=no
1815 fi
1816 rm -f conftest.make
1817 fi
1818 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1819 echo "$as_me:$LINENO: result: yes" >&5
1820 echo "${ECHO_T}yes" >&6
1821 SET_MAKE=
1822 else
1823 echo "$as_me:$LINENO: result: no" >&5
1824 echo "${ECHO_T}no" >&6
1825 SET_MAKE="MAKE=${MAKE-make}"
1826 fi
1827
1828 rm -rf .tst 2>/dev/null
1829 mkdir .tst 2>/dev/null
1830 if test -d .tst; then
1831 am__leading_dot=.
1832 else
1833 am__leading_dot=_
1834 fi
1835 rmdir .tst 2>/dev/null
1836
1837 # test to see if srcdir already configured
1838 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1839 test -f $srcdir/config.status; then
1840 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1841 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1842 { (exit 1); exit 1; }; }
1843 fi
1844
1845 # test whether we have cygpath
1846 if test -z "$CYGPATH_W"; then
1847 if (cygpath --version) >/dev/null 2>/dev/null; then
1848 CYGPATH_W='cygpath -w'
1849 else
1850 CYGPATH_W=echo
1851 fi
1852 fi
1853
1854
1855 # Define the identity of the package.
1856 PACKAGE='xf86-video-glint'
1857 VERSION='1.1.1'
1858
1859
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE "$PACKAGE"
1862 _ACEOF
1863
1864
1865 cat >>confdefs.h <<_ACEOF
1866 #define VERSION "$VERSION"
1867 _ACEOF
1868
1869 # Some tools Automake needs.
1870
1871 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1872
1873
1874 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1875
1876
1877 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1878
1879
1880 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1881
1882
1883 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1884
1885 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1886
1887 # Installed binaries are usually stripped using `strip' when the user
1888 # run `make install-strip'. However `strip' might not be the right
1889 # tool to use in cross-compilation environments, therefore Automake
1890 # will honor the `STRIP' environment variable to overrule this program.
1891 if test "$cross_compiling" != no; then
1892 if test -n "$ac_tool_prefix"; then
1893 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1894 set dummy ${ac_tool_prefix}strip; ac_word=$2
1895 echo "$as_me:$LINENO: checking for $ac_word" >&5
1896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1897 if test "${ac_cv_prog_STRIP+set}" = set; then
1898 echo $ECHO_N "(cached) $ECHO_C" >&6
1899 else
1900 if test -n "$STRIP"; then
1901 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1902 else
1903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904 for as_dir in $PATH
1905 do
1906 IFS=$as_save_IFS
1907 test -z "$as_dir" && as_dir=.
1908 for ac_exec_ext in '' $ac_executable_extensions; do
1909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1910 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1912 break 2
1913 fi
1914 done
1915 done
1916
1917 fi
1918 fi
1919 STRIP=$ac_cv_prog_STRIP
1920 if test -n "$STRIP"; then
1921 echo "$as_me:$LINENO: result: $STRIP" >&5
1922 echo "${ECHO_T}$STRIP" >&6
1923 else
1924 echo "$as_me:$LINENO: result: no" >&5
1925 echo "${ECHO_T}no" >&6
1926 fi
1927
1928 fi
1929 if test -z "$ac_cv_prog_STRIP"; then
1930 ac_ct_STRIP=$STRIP
1931 # Extract the first word of "strip", so it can be a program name with args.
1932 set dummy strip; ac_word=$2
1933 echo "$as_me:$LINENO: checking for $ac_word" >&5
1934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1935 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1936 echo $ECHO_N "(cached) $ECHO_C" >&6
1937 else
1938 if test -n "$ac_ct_STRIP"; then
1939 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1940 else
1941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1942 for as_dir in $PATH
1943 do
1944 IFS=$as_save_IFS
1945 test -z "$as_dir" && as_dir=.
1946 for ac_exec_ext in '' $ac_executable_extensions; do
1947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1948 ac_cv_prog_ac_ct_STRIP="strip"
1949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1950 break 2
1951 fi
1952 done
1953 done
1954
1955 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1956 fi
1957 fi
1958 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1959 if test -n "$ac_ct_STRIP"; then
1960 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1961 echo "${ECHO_T}$ac_ct_STRIP" >&6
1962 else
1963 echo "$as_me:$LINENO: result: no" >&5
1964 echo "${ECHO_T}no" >&6
1965 fi
1966
1967 STRIP=$ac_ct_STRIP
1968 else
1969 STRIP="$ac_cv_prog_STRIP"
1970 fi
1971
1972 fi
1973 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1974
1975 # We need awk for the "check" target. The system "awk" is bad on
1976 # some platforms.
1977 # Always define AMTAR for backward compatibility.
1978
1979 AMTAR=${AMTAR-"${am_missing_run}tar"}
1980
1981 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1982
1983
1984
1985
1986
1987
1988 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1989 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1990 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1991 if test "${enable_maintainer_mode+set}" = set; then
1992 enableval="$enable_maintainer_mode"
1993 USE_MAINTAINER_MODE=$enableval
1994 else
1995 USE_MAINTAINER_MODE=no
1996 fi;
1997 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1998 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1999
2000
2001 if test $USE_MAINTAINER_MODE = yes; then
2002 MAINTAINER_MODE_TRUE=
2003 MAINTAINER_MODE_FALSE='#'
2004 else
2005 MAINTAINER_MODE_TRUE='#'
2006 MAINTAINER_MODE_FALSE=
2007 fi
2008
2009 MAINT=$MAINTAINER_MODE_TRUE
2010
2011
2012
2013 # Checks for programs.
2014 # Check whether --enable-static or --disable-static was given.
2015 if test "${enable_static+set}" = set; then
2016 enableval="$enable_static"
2017 p=${PACKAGE-default}
2018 case $enableval in
2019 yes) enable_static=yes ;;
2020 no) enable_static=no ;;
2021 *)
2022 enable_static=no
2023 # Look at the argument we got. We use all the common list separators.
2024 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2025 for pkg in $enableval; do
2026 IFS="$lt_save_ifs"
2027 if test "X$pkg" = "X$p"; then
2028 enable_static=yes
2029 fi
2030 done
2031 IFS="$lt_save_ifs"
2032 ;;
2033 esac
2034 else
2035 enable_static=no
2036 fi;
2037
2038
2039 # Check whether --enable-shared or --disable-shared was given.
2040 if test "${enable_shared+set}" = set; then
2041 enableval="$enable_shared"
2042 p=${PACKAGE-default}
2043 case $enableval in
2044 yes) enable_shared=yes ;;
2045 no) enable_shared=no ;;
2046 *)
2047 enable_shared=no
2048 # Look at the argument we got. We use all the common list separators.
2049 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2050 for pkg in $enableval; do
2051 IFS="$lt_save_ifs"
2052 if test "X$pkg" = "X$p"; then
2053 enable_shared=yes
2054 fi
2055 done
2056 IFS="$lt_save_ifs"
2057 ;;
2058 esac
2059 else
2060 enable_shared=yes
2061 fi;
2062
2063 # Check whether --enable-fast-install or --disable-fast-install was given.
2064 if test "${enable_fast_install+set}" = set; then
2065 enableval="$enable_fast_install"
2066 p=${PACKAGE-default}
2067 case $enableval in
2068 yes) enable_fast_install=yes ;;
2069 no) enable_fast_install=no ;;
2070 *)
2071 enable_fast_install=no
2072 # Look at the argument we got. We use all the common list separators.
2073 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2074 for pkg in $enableval; do
2075 IFS="$lt_save_ifs"
2076 if test "X$pkg" = "X$p"; then
2077 enable_fast_install=yes
2078 fi
2079 done
2080 IFS="$lt_save_ifs"
2081 ;;
2082 esac
2083 else
2084 enable_fast_install=yes
2085 fi;
2086
2087 # Make sure we can run config.sub.
2088 $ac_config_sub sun4 >/dev/null 2>&1 ||
2089 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2090 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2091 { (exit 1); exit 1; }; }
2092
2093 echo "$as_me:$LINENO: checking build system type" >&5
2094 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2095 if test "${ac_cv_build+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2097 else
2098 ac_cv_build_alias=$build_alias
2099 test -z "$ac_cv_build_alias" &&
2100 ac_cv_build_alias=`$ac_config_guess`
2101 test -z "$ac_cv_build_alias" &&
2102 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2103 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2104 { (exit 1); exit 1; }; }
2105 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2106 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2107 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2108 { (exit 1); exit 1; }; }
2109
2110 fi
2111 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2112 echo "${ECHO_T}$ac_cv_build" >&6
2113 build=$ac_cv_build
2114 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2115 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2116 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2117
2118
2119 echo "$as_me:$LINENO: checking host system type" >&5
2120 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2121 if test "${ac_cv_host+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 else
2124 ac_cv_host_alias=$host_alias
2125 test -z "$ac_cv_host_alias" &&
2126 ac_cv_host_alias=$ac_cv_build_alias
2127 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2128 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2129 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2130 { (exit 1); exit 1; }; }
2131
2132 fi
2133 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2134 echo "${ECHO_T}$ac_cv_host" >&6
2135 host=$ac_cv_host
2136 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2137 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2138 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2139
2140
2141 DEPDIR="${am__leading_dot}deps"
2142
2143 ac_config_commands="$ac_config_commands depfiles"
2144
2145
2146 am_make=${MAKE-make}
2147 cat > confinc << 'END'
2148 am__doit:
2149 @echo done
2150 .PHONY: am__doit
2151 END
2152 # If we don't find an include directive, just comment out the code.
2153 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2154 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2155 am__include="#"
2156 am__quote=
2157 _am_result=none
2158 # First try GNU make style include.
2159 echo "include confinc" > confmf
2160 # We grep out `Entering directory' and `Leaving directory'
2161 # messages which can occur if `w' ends up in MAKEFLAGS.
2162 # In particular we don't look at `^make:' because GNU make might
2163 # be invoked under some other name (usually "gmake"), in which
2164 # case it prints its new name instead of `make'.
2165 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2166 am__include=include
2167 am__quote=
2168 _am_result=GNU
2169 fi
2170 # Now try BSD make style include.
2171 if test "$am__include" = "#"; then
2172 echo '.include "confinc"' > confmf
2173 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2174 am__include=.include
2175 am__quote="\""
2176 _am_result=BSD
2177 fi
2178 fi
2179
2180
2181 echo "$as_me:$LINENO: result: $_am_result" >&5
2182 echo "${ECHO_T}$_am_result" >&6
2183 rm -f confinc confmf
2184
2185 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2186 if test "${enable_dependency_tracking+set}" = set; then
2187 enableval="$enable_dependency_tracking"
2188
2189 fi;
2190 if test "x$enable_dependency_tracking" != xno; then
2191 am_depcomp="$ac_aux_dir/depcomp"
2192 AMDEPBACKSLASH='\'
2193 fi
2194
2195
2196 if test "x$enable_dependency_tracking" != xno; then
2197 AMDEP_TRUE=
2198 AMDEP_FALSE='#'
2199 else
2200 AMDEP_TRUE='#'
2201 AMDEP_FALSE=
2202 fi
2203
2204
2205
2206 ac_ext=c
2207 ac_cpp='$CPP $CPPFLAGS'
2208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2211 if test -n "$ac_tool_prefix"; then
2212 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2213 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2214 echo "$as_me:$LINENO: checking for $ac_word" >&5
2215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2216 if test "${ac_cv_prog_CC+set}" = set; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2218 else
2219 if test -n "$CC"; then
2220 ac_cv_prog_CC="$CC" # Let the user override the test.
2221 else
2222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223 for as_dir in $PATH
2224 do
2225 IFS=$as_save_IFS
2226 test -z "$as_dir" && as_dir=.
2227 for ac_exec_ext in '' $ac_executable_extensions; do
2228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2229 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2231 break 2
2232 fi
2233 done
2234 done
2235
2236 fi
2237 fi
2238 CC=$ac_cv_prog_CC
2239 if test -n "$CC"; then
2240 echo "$as_me:$LINENO: result: $CC" >&5
2241 echo "${ECHO_T}$CC" >&6
2242 else
2243 echo "$as_me:$LINENO: result: no" >&5
2244 echo "${ECHO_T}no" >&6
2245 fi
2246
2247 fi
2248 if test -z "$ac_cv_prog_CC"; then
2249 ac_ct_CC=$CC
2250 # Extract the first word of "gcc", so it can be a program name with args.
2251 set dummy gcc; ac_word=$2
2252 echo "$as_me:$LINENO: checking for $ac_word" >&5
2253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2254 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 else
2257 if test -n "$ac_ct_CC"; then
2258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2259 else
2260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261 for as_dir in $PATH
2262 do
2263 IFS=$as_save_IFS
2264 test -z "$as_dir" && as_dir=.
2265 for ac_exec_ext in '' $ac_executable_extensions; do
2266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2267 ac_cv_prog_ac_ct_CC="gcc"
2268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2269 break 2
2270 fi
2271 done
2272 done
2273
2274 fi
2275 fi
2276 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2277 if test -n "$ac_ct_CC"; then
2278 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2279 echo "${ECHO_T}$ac_ct_CC" >&6
2280 else
2281 echo "$as_me:$LINENO: result: no" >&5
2282 echo "${ECHO_T}no" >&6
2283 fi
2284
2285 CC=$ac_ct_CC
2286 else
2287 CC="$ac_cv_prog_CC"
2288 fi
2289
2290 if test -z "$CC"; then
2291 if test -n "$ac_tool_prefix"; then
2292 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2293 set dummy ${ac_tool_prefix}cc; ac_word=$2
2294 echo "$as_me:$LINENO: checking for $ac_word" >&5
2295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2296 if test "${ac_cv_prog_CC+set}" = set; then
2297 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 else
2299 if test -n "$CC"; then
2300 ac_cv_prog_CC="$CC" # Let the user override the test.
2301 else
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 for as_dir in $PATH
2304 do
2305 IFS=$as_save_IFS
2306 test -z "$as_dir" && as_dir=.
2307 for ac_exec_ext in '' $ac_executable_extensions; do
2308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2309 ac_cv_prog_CC="${ac_tool_prefix}cc"
2310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2311 break 2
2312 fi
2313 done
2314 done
2315
2316 fi
2317 fi
2318 CC=$ac_cv_prog_CC
2319 if test -n "$CC"; then
2320 echo "$as_me:$LINENO: result: $CC" >&5
2321 echo "${ECHO_T}$CC" >&6
2322 else
2323 echo "$as_me:$LINENO: result: no" >&5
2324 echo "${ECHO_T}no" >&6
2325 fi
2326
2327 fi
2328 if test -z "$ac_cv_prog_CC"; then
2329 ac_ct_CC=$CC
2330 # Extract the first word of "cc", so it can be a program name with args.
2331 set dummy cc; ac_word=$2
2332 echo "$as_me:$LINENO: checking for $ac_word" >&5
2333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2334 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 else
2337 if test -n "$ac_ct_CC"; then
2338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2339 else
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 for as_dir in $PATH
2342 do
2343 IFS=$as_save_IFS
2344 test -z "$as_dir" && as_dir=.
2345 for ac_exec_ext in '' $ac_executable_extensions; do
2346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2347 ac_cv_prog_ac_ct_CC="cc"
2348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349 break 2
2350 fi
2351 done
2352 done
2353
2354 fi
2355 fi
2356 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2357 if test -n "$ac_ct_CC"; then
2358 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2359 echo "${ECHO_T}$ac_ct_CC" >&6
2360 else
2361 echo "$as_me:$LINENO: result: no" >&5
2362 echo "${ECHO_T}no" >&6
2363 fi
2364
2365 CC=$ac_ct_CC
2366 else
2367 CC="$ac_cv_prog_CC"
2368 fi
2369
2370 fi
2371 if test -z "$CC"; then
2372 # Extract the first word of "cc", so it can be a program name with args.
2373 set dummy cc; ac_word=$2
2374 echo "$as_me:$LINENO: checking for $ac_word" >&5
2375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2376 if test "${ac_cv_prog_CC+set}" = set; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 else
2379 if test -n "$CC"; then
2380 ac_cv_prog_CC="$CC" # Let the user override the test.
2381 else
2382 ac_prog_rejected=no
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 for as_dir in $PATH
2385 do
2386 IFS=$as_save_IFS
2387 test -z "$as_dir" && as_dir=.
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2390 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2391 ac_prog_rejected=yes
2392 continue
2393 fi
2394 ac_cv_prog_CC="cc"
2395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2396 break 2
2397 fi
2398 done
2399 done
2400
2401 if test $ac_prog_rejected = yes; then
2402 # We found a bogon in the path, so make sure we never use it.
2403 set dummy $ac_cv_prog_CC
2404 shift
2405 if test $# != 0; then
2406 # We chose a different compiler from the bogus one.
2407 # However, it has the same basename, so the bogon will be chosen
2408 # first if we set CC to just the basename; use the full file name.
2409 shift
2410 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2411 fi
2412 fi
2413 fi
2414 fi
2415 CC=$ac_cv_prog_CC
2416 if test -n "$CC"; then
2417 echo "$as_me:$LINENO: result: $CC" >&5
2418 echo "${ECHO_T}$CC" >&6
2419 else
2420 echo "$as_me:$LINENO: result: no" >&5
2421 echo "${ECHO_T}no" >&6
2422 fi
2423
2424 fi
2425 if test -z "$CC"; then
2426 if test -n "$ac_tool_prefix"; then
2427 for ac_prog in cl
2428 do
2429 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2430 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2431 echo "$as_me:$LINENO: checking for $ac_word" >&5
2432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2433 if test "${ac_cv_prog_CC+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2435 else
2436 if test -n "$CC"; then
2437 ac_cv_prog_CC="$CC" # Let the user override the test.
2438 else
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 for as_dir in $PATH
2441 do
2442 IFS=$as_save_IFS
2443 test -z "$as_dir" && as_dir=.
2444 for ac_exec_ext in '' $ac_executable_extensions; do
2445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2446 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 break 2
2449 fi
2450 done
2451 done
2452
2453 fi
2454 fi
2455 CC=$ac_cv_prog_CC
2456 if test -n "$CC"; then
2457 echo "$as_me:$LINENO: result: $CC" >&5
2458 echo "${ECHO_T}$CC" >&6
2459 else
2460 echo "$as_me:$LINENO: result: no" >&5
2461 echo "${ECHO_T}no" >&6
2462 fi
2463
2464 test -n "$CC" && break
2465 done
2466 fi
2467 if test -z "$CC"; then
2468 ac_ct_CC=$CC
2469 for ac_prog in cl
2470 do
2471 # Extract the first word of "$ac_prog", so it can be a program name with args.
2472 set dummy $ac_prog; ac_word=$2
2473 echo "$as_me:$LINENO: checking for $ac_word" >&5
2474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2475 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 else
2478 if test -n "$ac_ct_CC"; then
2479 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2480 else
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 for as_dir in $PATH
2483 do
2484 IFS=$as_save_IFS
2485 test -z "$as_dir" && as_dir=.
2486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2488 ac_cv_prog_ac_ct_CC="$ac_prog"
2489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 break 2
2491 fi
2492 done
2493 done
2494
2495 fi
2496 fi
2497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2498 if test -n "$ac_ct_CC"; then
2499 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2500 echo "${ECHO_T}$ac_ct_CC" >&6
2501 else
2502 echo "$as_me:$LINENO: result: no" >&5
2503 echo "${ECHO_T}no" >&6
2504 fi
2505
2506 test -n "$ac_ct_CC" && break
2507 done
2508
2509 CC=$ac_ct_CC
2510 fi
2511
2512 fi
2513
2514
2515 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2516 See \`config.log' for more details." >&5
2517 echo "$as_me: error: no acceptable C compiler found in \$PATH
2518 See \`config.log' for more details." >&2;}
2519 { (exit 1); exit 1; }; }
2520
2521 # Provide some information about the compiler.
2522 echo "$as_me:$LINENO:" \
2523 "checking for C compiler version" >&5
2524 ac_compiler=`set X $ac_compile; echo $2`
2525 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2526 (eval $ac_compiler --version </dev/null >&5) 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }
2530 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2531 (eval $ac_compiler -v </dev/null >&5) 2>&5
2532 ac_status=$?
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }
2535 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2536 (eval $ac_compiler -V </dev/null >&5) 2>&5
2537 ac_status=$?
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }
2540
2541 cat >conftest.$ac_ext <<_ACEOF
2542 /* confdefs.h. */
2543 _ACEOF
2544 cat confdefs.h >>conftest.$ac_ext
2545 cat >>conftest.$ac_ext <<_ACEOF
2546 /* end confdefs.h. */
2547
2548 int
2549 main ()
2550 {
2551
2552 ;
2553 return 0;
2554 }
2555 _ACEOF
2556 ac_clean_files_save=$ac_clean_files
2557 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2558 # Try to create an executable without -o first, disregard a.out.
2559 # It will help us diagnose broken compilers, and finding out an intuition
2560 # of exeext.
2561 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2562 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2563 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2564 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2565 (eval $ac_link_default) 2>&5
2566 ac_status=$?
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; then
2569 # Find the output, starting from the most likely. This scheme is
2570 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2571 # resort.
2572
2573 # Be careful to initialize this variable, since it used to be cached.
2574 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2575 ac_cv_exeext=
2576 # b.out is created by i960 compilers.
2577 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2578 do
2579 test -f "$ac_file" || continue
2580 case $ac_file in
2581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2582 ;;
2583 conftest.$ac_ext )
2584 # This is the source file.
2585 ;;
2586 [ab].out )
2587 # We found the default executable, but exeext='' is most
2588 # certainly right.
2589 break;;
2590 *.* )
2591 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2592 # FIXME: I believe we export ac_cv_exeext for Libtool,
2593 # but it would be cool to find out if it's true. Does anybody
2594 # maintain Libtool? --akim.
2595 export ac_cv_exeext
2596 break;;
2597 * )
2598 break;;
2599 esac
2600 done
2601 else
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2604
2605 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2606 See \`config.log' for more details." >&5
2607 echo "$as_me: error: C compiler cannot create executables
2608 See \`config.log' for more details." >&2;}
2609 { (exit 77); exit 77; }; }
2610 fi
2611
2612 ac_exeext=$ac_cv_exeext
2613 echo "$as_me:$LINENO: result: $ac_file" >&5
2614 echo "${ECHO_T}$ac_file" >&6
2615
2616 # Check the compiler produces executables we can run. If not, either
2617 # the compiler is broken, or we cross compile.
2618 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2619 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2620 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2621 # If not cross compiling, check that we can run a simple program.
2622 if test "$cross_compiling" != yes; then
2623 if { ac_try='./$ac_file'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 (eval $ac_try) 2>&5
2626 ac_status=$?
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2629 cross_compiling=no
2630 else
2631 if test "$cross_compiling" = maybe; then
2632 cross_compiling=yes
2633 else
2634 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2635 If you meant to cross compile, use \`--host'.
2636 See \`config.log' for more details." >&5
2637 echo "$as_me: error: cannot run C compiled programs.
2638 If you meant to cross compile, use \`--host'.
2639 See \`config.log' for more details." >&2;}
2640 { (exit 1); exit 1; }; }
2641 fi
2642 fi
2643 fi
2644 echo "$as_me:$LINENO: result: yes" >&5
2645 echo "${ECHO_T}yes" >&6
2646
2647 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2648 ac_clean_files=$ac_clean_files_save
2649 # Check the compiler produces executables we can run. If not, either
2650 # the compiler is broken, or we cross compile.
2651 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2652 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2653 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2654 echo "${ECHO_T}$cross_compiling" >&6
2655
2656 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2657 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2659 (eval $ac_link) 2>&5
2660 ac_status=$?
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; then
2663 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2664 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2665 # work properly (i.e., refer to `conftest.exe'), while it won't with
2666 # `rm'.
2667 for ac_file in conftest.exe conftest conftest.*; do
2668 test -f "$ac_file" || continue
2669 case $ac_file in
2670 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2671 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2672 export ac_cv_exeext
2673 break;;
2674 * ) break;;
2675 esac
2676 done
2677 else
2678 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2679 See \`config.log' for more details." >&5
2680 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2681 See \`config.log' for more details." >&2;}
2682 { (exit 1); exit 1; }; }
2683 fi
2684
2685 rm -f conftest$ac_cv_exeext
2686 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2687 echo "${ECHO_T}$ac_cv_exeext" >&6
2688
2689 rm -f conftest.$ac_ext
2690 EXEEXT=$ac_cv_exeext
2691 ac_exeext=$EXEEXT
2692 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2693 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2694 if test "${ac_cv_objext+set}" = set; then
2695 echo $ECHO_N "(cached) $ECHO_C" >&6
2696 else
2697 cat >conftest.$ac_ext <<_ACEOF
2698 /* confdefs.h. */
2699 _ACEOF
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h. */
2703
2704 int
2705 main ()
2706 {
2707
2708 ;
2709 return 0;
2710 }
2711 _ACEOF
2712 rm -f conftest.o conftest.obj
2713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714 (eval $ac_compile) 2>&5
2715 ac_status=$?
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; then
2718 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2719 case $ac_file in
2720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2721 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2722 break;;
2723 esac
2724 done
2725 else
2726 echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2728
2729 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2730 See \`config.log' for more details." >&5
2731 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2732 See \`config.log' for more details." >&2;}
2733 { (exit 1); exit 1; }; }
2734 fi
2735
2736 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2737 fi
2738 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2739 echo "${ECHO_T}$ac_cv_objext" >&6
2740 OBJEXT=$ac_cv_objext
2741 ac_objext=$OBJEXT
2742 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2743 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2744 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2746 else
2747 cat >conftest.$ac_ext <<_ACEOF
2748 /* confdefs.h. */
2749 _ACEOF
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h. */
2753
2754 int
2755 main ()
2756 {
2757 #ifndef __GNUC__
2758 choke me
2759 #endif
2760
2761 ;
2762 return 0;
2763 }
2764 _ACEOF
2765 rm -f conftest.$ac_objext
2766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767 (eval $ac_compile) 2>conftest.er1
2768 ac_status=$?
2769 grep -v '^ *+' conftest.er1 >conftest.err
2770 rm -f conftest.er1
2771 cat conftest.err >&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); } &&
2774 { ac_try='test -z "$ac_c_werror_flag"
2775 || test ! -s conftest.err'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 (eval $ac_try) 2>&5
2778 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; } &&
2781 { ac_try='test -s conftest.$ac_objext'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 (eval $ac_try) 2>&5
2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; }; then
2787 ac_compiler_gnu=yes
2788 else
2789 echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2791
2792 ac_compiler_gnu=no
2793 fi
2794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2795 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2796
2797 fi
2798 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2799 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2800 GCC=`test $ac_compiler_gnu = yes && echo yes`
2801 ac_test_CFLAGS=${CFLAGS+set}
2802 ac_save_CFLAGS=$CFLAGS
2803 CFLAGS="-g"
2804 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2805 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2806 if test "${ac_cv_prog_cc_g+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 else
2809 cat >conftest.$ac_ext <<_ACEOF
2810 /* confdefs.h. */
2811 _ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2815
2816 int
2817 main ()
2818 {
2819
2820 ;
2821 return 0;
2822 }
2823 _ACEOF
2824 rm -f conftest.$ac_objext
2825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2826 (eval $ac_compile) 2>conftest.er1
2827 ac_status=$?
2828 grep -v '^ *+' conftest.er1 >conftest.err
2829 rm -f conftest.er1
2830 cat conftest.err >&5
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); } &&
2833 { ac_try='test -z "$ac_c_werror_flag"
2834 || test ! -s conftest.err'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 (eval $ac_try) 2>&5
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; } &&
2840 { ac_try='test -s conftest.$ac_objext'
2841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 (eval $ac_try) 2>&5
2843 ac_status=$?
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }; }; then
2846 ac_cv_prog_cc_g=yes
2847 else
2848 echo "$as_me: failed program was:" >&5
2849 sed 's/^/| /' conftest.$ac_ext >&5
2850
2851 ac_cv_prog_cc_g=no
2852 fi
2853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2854 fi
2855 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2856 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2857 if test "$ac_test_CFLAGS" = set; then
2858 CFLAGS=$ac_save_CFLAGS
2859 elif test $ac_cv_prog_cc_g = yes; then
2860 if test "$GCC" = yes; then
2861 CFLAGS="-g -O2"
2862 else
2863 CFLAGS="-g"
2864 fi
2865 else
2866 if test "$GCC" = yes; then
2867 CFLAGS="-O2"
2868 else
2869 CFLAGS=
2870 fi
2871 fi
2872 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2873 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2874 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 else
2877 ac_cv_prog_cc_stdc=no
2878 ac_save_CC=$CC
2879 cat >conftest.$ac_ext <<_ACEOF
2880 /* confdefs.h. */
2881 _ACEOF
2882 cat confdefs.h >>conftest.$ac_ext
2883 cat >>conftest.$ac_ext <<_ACEOF
2884 /* end confdefs.h. */
2885 #include <stdarg.h>
2886 #include <stdio.h>
2887 #include <sys/types.h>
2888 #include <sys/stat.h>
2889 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2890 struct buf { int x; };
2891 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2892 static char *e (p, i)
2893 char **p;
2894 int i;
2895 {
2896 return p[i];
2897 }
2898 static char *f (char * (*g) (char **, int), char **p, ...)
2899 {
2900 char *s;
2901 va_list v;
2902 va_start (v,p);
2903 s = g (p, va_arg (v,int));
2904 va_end (v);
2905 return s;
2906 }
2907
2908 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2909 function prototypes and stuff, but not '\xHH' hex character constants.
2910 These don't provoke an error unfortunately, instead are silently treated
2911 as 'x'. The following induces an error, until -std1 is added to get
2912 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2913 array size at least. It's necessary to write '\x00'==0 to get something
2914 that's true only with -std1. */
2915 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2916
2917 int test (int i, double x);
2918 struct s1 {int (*f) (int a);};
2919 struct s2 {int (*f) (double a);};
2920 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2921 int argc;
2922 char **argv;
2923 int
2924 main ()
2925 {
2926 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2927 ;
2928 return 0;
2929 }
2930 _ACEOF
2931 # Don't try gcc -ansi; that turns off useful extensions and
2932 # breaks some systems' header files.
2933 # AIX -qlanglvl=ansi
2934 # Ultrix and OSF/1 -std1
2935 # HP-UX 10.20 and later -Ae
2936 # HP-UX older versions -Aa -D_HPUX_SOURCE
2937 # SVR4 -Xc -D__EXTENSIONS__
2938 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2939 do
2940 CC="$ac_save_CC $ac_arg"
2941 rm -f conftest.$ac_objext
2942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2943 (eval $ac_compile) 2>conftest.er1
2944 ac_status=$?
2945 grep -v '^ *+' conftest.er1 >conftest.err
2946 rm -f conftest.er1
2947 cat conftest.err >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } &&
2950 { ac_try='test -z "$ac_c_werror_flag"
2951 || test ! -s conftest.err'
2952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953 (eval $ac_try) 2>&5
2954 ac_status=$?
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; } &&
2957 { ac_try='test -s conftest.$ac_objext'
2958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959 (eval $ac_try) 2>&5
2960 ac_status=$?
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; }; then
2963 ac_cv_prog_cc_stdc=$ac_arg
2964 break
2965 else
2966 echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2968
2969 fi
2970 rm -f conftest.err conftest.$ac_objext
2971 done
2972 rm -f conftest.$ac_ext conftest.$ac_objext
2973 CC=$ac_save_CC
2974
2975 fi
2976
2977 case "x$ac_cv_prog_cc_stdc" in
2978 x|xno)
2979 echo "$as_me:$LINENO: result: none needed" >&5
2980 echo "${ECHO_T}none needed" >&6 ;;
2981 *)
2982 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2983 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2984 CC="$CC $ac_cv_prog_cc_stdc" ;;
2985 esac
2986
2987 # Some people use a C++ compiler to compile C. Since we use `exit',
2988 # in C++ we need to declare it. In case someone uses the same compiler
2989 # for both compiling C and C++ we need to have the C++ compiler decide
2990 # the declaration of exit, since it's the most demanding environment.
2991 cat >conftest.$ac_ext <<_ACEOF
2992 #ifndef __cplusplus
2993 choke me
2994 #endif
2995 _ACEOF
2996 rm -f conftest.$ac_objext
2997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2998 (eval $ac_compile) 2>conftest.er1
2999 ac_status=$?
3000 grep -v '^ *+' conftest.er1 >conftest.err
3001 rm -f conftest.er1
3002 cat conftest.err >&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); } &&
3005 { ac_try='test -z "$ac_c_werror_flag"
3006 || test ! -s conftest.err'
3007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008 (eval $ac_try) 2>&5
3009 ac_status=$?
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; } &&
3012 { ac_try='test -s conftest.$ac_objext'
3013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3014 (eval $ac_try) 2>&5
3015 ac_status=$?
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; }; then
3018 for ac_declaration in \
3019 '' \
3020 'extern "C" void std::exit (int) throw (); using std::exit;' \
3021 'extern "C" void std::exit (int); using std::exit;' \
3022 'extern "C" void exit (int) throw ();' \
3023 'extern "C" void exit (int);' \
3024 'void exit (int);'
3025 do
3026 cat >conftest.$ac_ext <<_ACEOF
3027 /* confdefs.h. */
3028 _ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3032 $ac_declaration
3033 #include <stdlib.h>
3034 int
3035 main ()
3036 {
3037 exit (42);
3038 ;
3039 return 0;
3040 }
3041 _ACEOF
3042 rm -f conftest.$ac_objext
3043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3044 (eval $ac_compile) 2>conftest.er1
3045 ac_status=$?
3046 grep -v '^ *+' conftest.er1 >conftest.err
3047 rm -f conftest.er1
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } &&
3051 { ac_try='test -z "$ac_c_werror_flag"
3052 || test ! -s conftest.err'
3053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3054 (eval $ac_try) 2>&5
3055 ac_status=$?
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; } &&
3058 { ac_try='test -s conftest.$ac_objext'
3059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060 (eval $ac_try) 2>&5
3061 ac_status=$?
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; }; then
3064 :
3065 else
3066 echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3068
3069 continue
3070 fi
3071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3072 cat >conftest.$ac_ext <<_ACEOF
3073 /* confdefs.h. */
3074 _ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h. */
3078 $ac_declaration
3079 int
3080 main ()
3081 {
3082 exit (42);
3083 ;
3084 return 0;
3085 }
3086 _ACEOF
3087 rm -f conftest.$ac_objext
3088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3089 (eval $ac_compile) 2>conftest.er1
3090 ac_status=$?
3091 grep -v '^ *+' conftest.er1 >conftest.err
3092 rm -f conftest.er1
3093 cat conftest.err >&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } &&
3096 { ac_try='test -z "$ac_c_werror_flag"
3097 || test ! -s conftest.err'
3098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3099 (eval $ac_try) 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; } &&
3103 { ac_try='test -s conftest.$ac_objext'
3104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105 (eval $ac_try) 2>&5
3106 ac_status=$?
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; }; then
3109 break
3110 else
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3113
3114 fi
3115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3116 done
3117 rm -f conftest*
3118 if test -n "$ac_declaration"; then
3119 echo '#ifdef __cplusplus' >>confdefs.h
3120 echo $ac_declaration >>confdefs.h
3121 echo '#endif' >>confdefs.h
3122 fi
3123
3124 else
3125 echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3127
3128 fi
3129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3130 ac_ext=c
3131 ac_cpp='$CPP $CPPFLAGS'
3132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3135
3136 depcc="$CC" am_compiler_list=
3137
3138 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3139 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3140 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
3142 else
3143 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3144 # We make a subdir and do the tests there. Otherwise we can end up
3145 # making bogus files that we don't know about and never remove. For
3146 # instance it was reported that on HP-UX the gcc test will end up
3147 # making a dummy file named `D' -- because `-MD' means `put the output
3148 # in D'.
3149 mkdir conftest.dir
3150 # Copy depcomp to subdir because otherwise we won't find it if we're
3151 # using a relative directory.
3152 cp "$am_depcomp" conftest.dir
3153 cd conftest.dir
3154 # We will build objects and dependencies in a subdirectory because
3155 # it helps to detect inapplicable dependency modes. For instance
3156 # both Tru64's cc and ICC support -MD to output dependencies as a
3157 # side effect of compilation, but ICC will put the dependencies in
3158 # the current directory while Tru64 will put them in the object
3159 # directory.
3160 mkdir sub
3161
3162 am_cv_CC_dependencies_compiler_type=none
3163 if test "$am_compiler_list" = ""; then
3164 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3165 fi
3166 for depmode in $am_compiler_list; do
3167 # Setup a source with many dependencies, because some compilers
3168 # like to wrap large dependency lists on column 80 (with \), and
3169 # we should not choose a depcomp mode which is confused by this.
3170 #
3171 # We need to recreate these files for each test, as the compiler may
3172 # overwrite some of them when testing with obscure command lines.
3173 # This happens at least with the AIX C compiler.
3174 : > sub/conftest.c
3175 for i in 1 2 3 4 5 6; do
3176 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3177 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3178 # Solaris 8's {/usr,}/bin/sh.
3179 touch sub/conftst$i.h
3180 done
3181 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3182
3183 case $depmode in
3184 nosideeffect)
3185 # after this tag, mechanisms are not by side-effect, so they'll
3186 # only be used when explicitly requested
3187 if test "x$enable_dependency_tracking" = xyes; then
3188 continue
3189 else
3190 break
3191 fi
3192 ;;
3193 none) break ;;
3194 esac
3195 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3196 # mode. It turns out that the SunPro C++ compiler does not properly
3197 # handle `-M -o', and we need to detect this.
3198 if depmode=$depmode \
3199 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3200 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3201 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3202 >/dev/null 2>conftest.err &&
3203 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3204 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3205 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3206 # icc doesn't choke on unknown options, it will just issue warnings
3207 # or remarks (even with -Werror). So we grep stderr for any message
3208 # that says an option was ignored or not supported.
3209 # When given -MP, icc 7.0 and 7.1 complain thusly:
3210 # icc: Command line warning: ignoring option '-M'; no argument required
3211 # The diagnosis changed in icc 8.0:
3212 # icc: Command line remark: option '-MP' not supported
3213 if (grep 'ignoring option' conftest.err ||
3214 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3215 am_cv_CC_dependencies_compiler_type=$depmode
3216 break
3217 fi
3218 fi
3219 done
3220
3221 cd ..
3222 rm -rf conftest.dir
3223 else
3224 am_cv_CC_dependencies_compiler_type=none
3225 fi
3226
3227 fi
3228 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3229 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3230 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3231
3232
3233
3234 if
3235 test "x$enable_dependency_tracking" != xno \
3236 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3237 am__fastdepCC_TRUE=
3238 am__fastdepCC_FALSE='#'
3239 else
3240 am__fastdepCC_TRUE='#'
3241 am__fastdepCC_FALSE=
3242 fi
3243
3244
3245 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3246 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3247 if test "${lt_cv_path_SED+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 else
3250 # Loop through the user's path and test for sed and gsed.
3251 # Then use that list of sed's as ones to test for truncation.
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH
3254 do
3255 IFS=$as_save_IFS
3256 test -z "$as_dir" && as_dir=.
3257 for lt_ac_prog in sed gsed; do
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3260 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3261 fi
3262 done
3263 done
3264 done
3265 lt_ac_max=0
3266 lt_ac_count=0
3267 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3268 # along with /bin/sed that truncates output.
3269 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3270 test ! -f $lt_ac_sed && continue
3271 cat /dev/null > conftest.in
3272 lt_ac_count=0
3273 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3274 # Check for GNU sed and select it if it is found.
3275 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3276 lt_cv_path_SED=$lt_ac_sed
3277 break
3278 fi
3279 while true; do
3280 cat conftest.in conftest.in >conftest.tmp
3281 mv conftest.tmp conftest.in
3282 cp conftest.in conftest.nl
3283 echo >>conftest.nl
3284 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3285 cmp -s conftest.out conftest.nl || break
3286 # 10000 chars as input seems more than enough
3287 test $lt_ac_count -gt 10 && break
3288 lt_ac_count=`expr $lt_ac_count + 1`
3289 if test $lt_ac_count -gt $lt_ac_max; then
3290 lt_ac_max=$lt_ac_count
3291 lt_cv_path_SED=$lt_ac_sed
3292 fi
3293 done
3294 done
3295
3296 fi
3297
3298 SED=$lt_cv_path_SED
3299 echo "$as_me:$LINENO: result: $SED" >&5
3300 echo "${ECHO_T}$SED" >&6
3301
3302 echo "$as_me:$LINENO: checking for egrep" >&5
3303 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3304 if test "${ac_cv_prog_egrep+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 else
3307 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3308 then ac_cv_prog_egrep='grep -E'
3309 else ac_cv_prog_egrep='egrep'
3310 fi
3311 fi
3312 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3313 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3314 EGREP=$ac_cv_prog_egrep
3315
3316
3317
3318 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3319 if test "${with_gnu_ld+set}" = set; then
3320 withval="$with_gnu_ld"
3321 test "$withval" = no || with_gnu_ld=yes
3322 else
3323 with_gnu_ld=no
3324 fi;
3325 ac_prog=ld
3326 if test "$GCC" = yes; then
3327 # Check if gcc -print-prog-name=ld gives a path.
3328 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3329 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3330 case $host in
3331 *-*-mingw*)
3332 # gcc leaves a trailing carriage return which upsets mingw
3333 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3334 *)
3335 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3336 esac
3337 case $ac_prog in
3338 # Accept absolute paths.
3339 [\\/]* | ?:[\\/]*)
3340 re_direlt='/[^/][^/]*/\.\./'
3341 # Canonicalize the pathname of ld
3342 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3343 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3344 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3345 done
3346 test -z "$LD" && LD="$ac_prog"
3347 ;;
3348 "")
3349 # If it fails, then pretend we aren't using GCC.
3350 ac_prog=ld
3351 ;;
3352 *)
3353 # If it is relative, then search for the first ld in PATH.
3354 with_gnu_ld=unknown
3355 ;;
3356 esac
3357 elif test "$with_gnu_ld" = yes; then
3358 echo "$as_me:$LINENO: checking for GNU ld" >&5
3359 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3360 else
3361 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3362 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3363 fi
3364 if test "${lt_cv_path_LD+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3366 else
3367 if test -z "$LD"; then
3368 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3369 for ac_dir in $PATH; do
3370 IFS="$lt_save_ifs"
3371 test -z "$ac_dir" && ac_dir=.
3372 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3373 lt_cv_path_LD="$ac_dir/$ac_prog"
3374 # Check to see if the program is GNU ld. I'd rather use --version,
3375 # but apparently some variants of GNU ld only accept -v.
3376 # Break only if it was the GNU/non-GNU ld that we prefer.
3377 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3378 *GNU* | *'with BFD'*)
3379 test "$with_gnu_ld" != no && break
3380 ;;
3381 *)
3382 test "$with_gnu_ld" != yes && break
3383 ;;
3384 esac
3385 fi
3386 done
3387 IFS="$lt_save_ifs"
3388 else
3389 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3390 fi
3391 fi
3392
3393 LD="$lt_cv_path_LD"
3394 if test -n "$LD"; then
3395 echo "$as_me:$LINENO: result: $LD" >&5
3396 echo "${ECHO_T}$LD" >&6
3397 else
3398 echo "$as_me:$LINENO: result: no" >&5
3399 echo "${ECHO_T}no" >&6
3400 fi
3401 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3402 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3403 { (exit 1); exit 1; }; }
3404 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3405 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3406 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3408 else
3409 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3410 case `$LD -v 2>&1 </dev/null` in
3411 *GNU* | *'with BFD'*)
3412 lt_cv_prog_gnu_ld=yes
3413 ;;
3414 *)
3415 lt_cv_prog_gnu_ld=no
3416 ;;
3417 esac
3418 fi
3419 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3420 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3421 with_gnu_ld=$lt_cv_prog_gnu_ld
3422
3423
3424 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3425 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3426 if test "${lt_cv_ld_reload_flag+set}" = set; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3428 else
3429 lt_cv_ld_reload_flag='-r'
3430 fi
3431 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3432 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3433 reload_flag=$lt_cv_ld_reload_flag
3434 case $reload_flag in
3435 "" | " "*) ;;
3436 *) reload_flag=" $reload_flag" ;;
3437 esac
3438 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3439 case $host_os in
3440 darwin*)
3441 if test "$GCC" = yes; then
3442 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3443 else
3444 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3445 fi
3446 ;;
3447 esac
3448
3449 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3450 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3451 if test "${lt_cv_path_NM+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3453 else
3454 if test -n "$NM"; then
3455 # Let the user override the test.
3456 lt_cv_path_NM="$NM"
3457 else
3458 lt_nm_to_check="${ac_tool_prefix}nm"
3459 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3460 lt_nm_to_check="$lt_nm_to_check nm"
3461 fi
3462 for lt_tmp_nm in $lt_nm_to_check; do
3463 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3464 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3465 IFS="$lt_save_ifs"
3466 test -z "$ac_dir" && ac_dir=.
3467 tmp_nm="$ac_dir/$lt_tmp_nm"
3468 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3469 # Check to see if the nm accepts a BSD-compat flag.
3470 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3471 # nm: unknown option "B" ignored
3472 # Tru64's nm complains that /dev/null is an invalid object file
3473 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3474 */dev/null* | *'Invalid file or object type'*)
3475 lt_cv_path_NM="$tmp_nm -B"
3476 break
3477 ;;
3478 *)
3479 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3480 */dev/null*)
3481 lt_cv_path_NM="$tmp_nm -p"
3482 break
3483 ;;
3484 *)
3485 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3486 continue # so that we can try to find one that supports BSD flags
3487 ;;
3488 esac
3489 ;;
3490 esac
3491 fi
3492 done
3493 IFS="$lt_save_ifs"
3494 done
3495 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3496 fi
3497 fi
3498 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3499 echo "${ECHO_T}$lt_cv_path_NM" >&6
3500 NM="$lt_cv_path_NM"
3501
3502 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3503 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3504 LN_S=$as_ln_s
3505 if test "$LN_S" = "ln -s"; then
3506 echo "$as_me:$LINENO: result: yes" >&5
3507 echo "${ECHO_T}yes" >&6
3508 else
3509 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3510 echo "${ECHO_T}no, using $LN_S" >&6
3511 fi
3512
3513 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3514 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3515 if test "${lt_cv_deplibs_check_method+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3517 else
3518 lt_cv_file_magic_cmd='$MAGIC_CMD'
3519 lt_cv_file_magic_test_file=
3520 lt_cv_deplibs_check_method='unknown'
3521 # Need to set the preceding variable on all platforms that support
3522 # interlibrary dependencies.
3523 # 'none' -- dependencies not supported.
3524 # `unknown' -- same as none, but documents that we really don't know.
3525 # 'pass_all' -- all dependencies passed with no checks.
3526 # 'test_compile' -- check by making test program.
3527 # 'file_magic [[regex]]' -- check by looking for files in library path
3528 # which responds to the $file_magic_cmd with a given extended regex.
3529 # If you have `file' or equivalent on your system and you're not sure
3530 # whether `pass_all' will *always* work, you probably want this one.
3531
3532 case $host_os in
3533 aix4* | aix5*)
3534 lt_cv_deplibs_check_method=pass_all
3535 ;;
3536
3537 beos*)
3538 lt_cv_deplibs_check_method=pass_all
3539 ;;
3540
3541 bsdi[45]*)
3542 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3543 lt_cv_file_magic_cmd='/usr/bin/file -L'
3544 lt_cv_file_magic_test_file=/shlib/libc.so
3545 ;;
3546
3547 cygwin*)
3548 # func_win32_libid is a shell function defined in ltmain.sh
3549 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3550 lt_cv_file_magic_cmd='func_win32_libid'
3551 ;;
3552
3553 mingw* | pw32*)
3554 # Base MSYS/MinGW do not provide the 'file' command needed by
3555 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3556 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3557 lt_cv_file_magic_cmd='$OBJDUMP -f'
3558 ;;
3559
3560 darwin* | rhapsody*)
3561 lt_cv_deplibs_check_method=pass_all
3562 ;;
3563
3564 freebsd* | kfreebsd*-gnu | dragonfly*)
3565 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3566 case $host_cpu in
3567 i*86 )
3568 # Not sure whether the presence of OpenBSD here was a mistake.
3569 # Let's accept both of them until this is cleared up.
3570 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3571 lt_cv_file_magic_cmd=/usr/bin/file
3572 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3573 ;;
3574 esac
3575 else
3576 lt_cv_deplibs_check_method=pass_all
3577 fi
3578 ;;
3579
3580 gnu*)
3581 lt_cv_deplibs_check_method=pass_all
3582 ;;
3583
3584 hpux10.20* | hpux11*)
3585 lt_cv_file_magic_cmd=/usr/bin/file
3586 case $host_cpu in
3587 ia64*)
3588 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3589 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3590 ;;
3591 hppa*64*)
3592 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]'
3593 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3594 ;;
3595 *)
3596 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3597 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3598 ;;
3599 esac
3600 ;;
3601
3602 interix3*)
3603 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3604 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3605 ;;
3606
3607 irix5* | irix6* | nonstopux*)
3608 case $LD in
3609 *-32|*"-32 ") libmagic=32-bit;;
3610 *-n32|*"-n32 ") libmagic=N32;;
3611 *-64|*"-64 ") libmagic=64-bit;;
3612 *) libmagic=never-match;;
3613 esac
3614 lt_cv_deplibs_check_method=pass_all
3615 ;;
3616
3617 # This must be Linux ELF.
3618 linux*)
3619 lt_cv_deplibs_check_method=pass_all
3620 ;;
3621
3622 netbsd*)
3623 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3625 else
3626 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3627 fi
3628 ;;
3629
3630 newos6*)
3631 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3632 lt_cv_file_magic_cmd=/usr/bin/file
3633 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3634 ;;
3635
3636 nto-qnx*)
3637 lt_cv_deplibs_check_method=unknown
3638 ;;
3639
3640 openbsd*)
3641 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3642 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3643 else
3644 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3645 fi
3646 ;;
3647
3648 osf3* | osf4* | osf5*)
3649 lt_cv_deplibs_check_method=pass_all
3650 ;;
3651
3652 solaris*)
3653 lt_cv_deplibs_check_method=pass_all
3654 ;;
3655
3656 sysv4 | sysv4.3*)
3657 case $host_vendor in
3658 motorola)
3659 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]'
3660 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3661 ;;
3662 ncr)
3663 lt_cv_deplibs_check_method=pass_all
3664 ;;
3665 sequent)
3666 lt_cv_file_magic_cmd='/bin/file'
3667 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3668 ;;
3669 sni)
3670 lt_cv_file_magic_cmd='/bin/file'
3671 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3672 lt_cv_file_magic_test_file=/lib/libc.so
3673 ;;
3674 siemens)
3675 lt_cv_deplibs_check_method=pass_all
3676 ;;
3677 pc)
3678 lt_cv_deplibs_check_method=pass_all
3679 ;;
3680 esac
3681 ;;
3682
3683 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3684 lt_cv_deplibs_check_method=pass_all
3685 ;;
3686 esac
3687
3688 fi
3689 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3690 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3691 file_magic_cmd=$lt_cv_file_magic_cmd
3692 deplibs_check_method=$lt_cv_deplibs_check_method
3693 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3694
3695
3696
3697
3698 # If no C compiler was specified, use CC.
3699 LTCC=${LTCC-"$CC"}
3700
3701 # If no C compiler flags were specified, use CFLAGS.
3702 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3703
3704 # Allow CC to be a program name with arguments.
3705 compiler=$CC
3706
3707
3708 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3709 if test "${enable_libtool_lock+set}" = set; then
3710 enableval="$enable_libtool_lock"
3711
3712 fi;
3713 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3714
3715 # Some flags need to be propagated to the compiler or linker for good
3716 # libtool support.
3717 case $host in
3718 ia64-*-hpux*)
3719 # Find out which ABI we are using.
3720 echo 'int i;' > conftest.$ac_ext
3721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3722 (eval $ac_compile) 2>&5
3723 ac_status=$?
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; then
3726 case `/usr/bin/file conftest.$ac_objext` in
3727 *ELF-32*)
3728 HPUX_IA64_MODE="32"
3729 ;;
3730 *ELF-64*)
3731 HPUX_IA64_MODE="64"
3732 ;;
3733 esac
3734 fi
3735 rm -rf conftest*
3736 ;;
3737 *-*-irix6*)
3738 # Find out which ABI we are using.
3739 echo '#line 3739 "configure"' > conftest.$ac_ext
3740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3741 (eval $ac_compile) 2>&5
3742 ac_status=$?
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); }; then
3745 if test "$lt_cv_prog_gnu_ld" = yes; then
3746 case `/usr/bin/file conftest.$ac_objext` in
3747 *32-bit*)
3748 LD="${LD-ld} -melf32bsmip"
3749 ;;
3750 *N32*)
3751 LD="${LD-ld} -melf32bmipn32"
3752 ;;
3753 *64-bit*)
3754 LD="${LD-ld} -melf64bmip"
3755 ;;
3756 esac
3757 else
3758 case `/usr/bin/file conftest.$ac_objext` in
3759 *32-bit*)
3760 LD="${LD-ld} -32"
3761 ;;
3762 *N32*)
3763 LD="${LD-ld} -n32"
3764 ;;
3765 *64-bit*)
3766 LD="${LD-ld} -64"
3767 ;;
3768 esac
3769 fi
3770 fi
3771 rm -rf conftest*
3772 ;;
3773
3774 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3775 # Find out which ABI we are using.
3776 echo 'int i;' > conftest.$ac_ext
3777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3778 (eval $ac_compile) 2>&5
3779 ac_status=$?
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); }; then
3782 case `/usr/bin/file conftest.o` in
3783 *32-bit*)
3784 case $host in
3785 x86_64-*linux*)
3786 LD="${LD-ld} -m elf_i386"
3787 ;;
3788 ppc64-*linux*|powerpc64-*linux*)
3789 LD="${LD-ld} -m elf32ppclinux"
3790 ;;
3791 s390x-*linux*)
3792 LD="${LD-ld} -m elf_s390"
3793 ;;
3794 sparc64-*linux*)
3795 LD="${LD-ld} -m elf32_sparc"
3796 ;;
3797 esac
3798 ;;
3799 *64-bit*)
3800 case $host in
3801 x86_64-*linux*)
3802 LD="${LD-ld} -m elf_x86_64"
3803 ;;
3804 ppc*-*linux*|powerpc*-*linux*)
3805 LD="${LD-ld} -m elf64ppc"
3806 ;;
3807 s390*-*linux*)
3808 LD="${LD-ld} -m elf64_s390"
3809 ;;
3810 sparc*-*linux*)
3811 LD="${LD-ld} -m elf64_sparc"
3812 ;;
3813 esac
3814 ;;
3815 esac
3816 fi
3817 rm -rf conftest*
3818 ;;
3819
3820 *-*-sco3.2v5*)
3821 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3822 SAVE_CFLAGS="$CFLAGS"
3823 CFLAGS="$CFLAGS -belf"
3824 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3825 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3826 if test "${lt_cv_cc_needs_belf+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829 ac_ext=c
3830 ac_cpp='$CPP $CPPFLAGS'
3831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3834
3835 cat >conftest.$ac_ext <<_ACEOF
3836 /* confdefs.h. */
3837 _ACEOF
3838 cat confdefs.h >>conftest.$ac_ext
3839 cat >>conftest.$ac_ext <<_ACEOF
3840 /* end confdefs.h. */
3841
3842 int
3843 main ()
3844 {
3845
3846 ;
3847 return 0;
3848 }
3849 _ACEOF
3850 rm -f conftest.$ac_objext conftest$ac_exeext
3851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3852 (eval $ac_link) 2>conftest.er1
3853 ac_status=$?
3854 grep -v '^ *+' conftest.er1 >conftest.err
3855 rm -f conftest.er1
3856 cat conftest.err >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } &&
3859 { ac_try='test -z "$ac_c_werror_flag"
3860 || test ! -s conftest.err'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862 (eval $ac_try) 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; } &&
3866 { ac_try='test -s conftest$ac_exeext'
3867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3868 (eval $ac_try) 2>&5
3869 ac_status=$?
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; }; then
3872 lt_cv_cc_needs_belf=yes
3873 else
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3876
3877 lt_cv_cc_needs_belf=no
3878 fi
3879 rm -f conftest.err conftest.$ac_objext \
3880 conftest$ac_exeext conftest.$ac_ext
3881 ac_ext=c
3882 ac_cpp='$CPP $CPPFLAGS'
3883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3886
3887 fi
3888 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3889 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3890 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3891 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3892 CFLAGS="$SAVE_CFLAGS"
3893 fi
3894 ;;
3895 sparc*-*solaris*)
3896 # Find out which ABI we are using.
3897 echo 'int i;' > conftest.$ac_ext
3898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3899 (eval $ac_compile) 2>&5
3900 ac_status=$?
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); }; then
3903 case `/usr/bin/file conftest.o` in
3904 *64-bit*)
3905 case $lt_cv_prog_gnu_ld in
3906 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3907 *) LD="${LD-ld} -64" ;;
3908 esac
3909 ;;
3910 esac
3911 fi
3912 rm -rf conftest*
3913 ;;
3914
3915
3916 esac
3917
3918 need_locks="$enable_libtool_lock"
3919
3920
3921 ac_ext=c
3922 ac_cpp='$CPP $CPPFLAGS'
3923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3926 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3927 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3928 # On Suns, sometimes $CPP names a directory.
3929 if test -n "$CPP" && test -d "$CPP"; then
3930 CPP=
3931 fi
3932 if test -z "$CPP"; then
3933 if test "${ac_cv_prog_CPP+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936 # Double quotes because CPP needs to be expanded
3937 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3938 do
3939 ac_preproc_ok=false
3940 for ac_c_preproc_warn_flag in '' yes
3941 do
3942 # Use a header file that comes with gcc, so configuring glibc
3943 # with a fresh cross-compiler works.
3944 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3945 # <limits.h> exists even on freestanding compilers.
3946 # On the NeXT, cc -E runs the code through the compiler's parser,
3947 # not just through cpp. "Syntax error" is here to catch this case.
3948 cat >conftest.$ac_ext <<_ACEOF
3949 /* confdefs.h. */
3950 _ACEOF
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h. */
3954 #ifdef __STDC__
3955 # include <limits.h>
3956 #else
3957 # include <assert.h>
3958 #endif
3959 Syntax error
3960 _ACEOF
3961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3963 ac_status=$?
3964 grep -v '^ *+' conftest.er1 >conftest.err
3965 rm -f conftest.er1
3966 cat conftest.err >&5
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); } >/dev/null; then
3969 if test -s conftest.err; then
3970 ac_cpp_err=$ac_c_preproc_warn_flag
3971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3972 else
3973 ac_cpp_err=
3974 fi
3975 else
3976 ac_cpp_err=yes
3977 fi
3978 if test -z "$ac_cpp_err"; then
3979 :
3980 else
3981 echo "$as_me: failed program was:" >&5
3982 sed 's/^/| /' conftest.$ac_ext >&5
3983
3984 # Broken: fails on valid input.
3985 continue
3986 fi
3987 rm -f conftest.err conftest.$ac_ext
3988
3989 # OK, works on sane cases. Now check whether non-existent headers
3990 # can be detected and how.
3991 cat >conftest.$ac_ext <<_ACEOF
3992 /* confdefs.h. */
3993 _ACEOF
3994 cat confdefs.h >>conftest.$ac_ext
3995 cat >>conftest.$ac_ext <<_ACEOF
3996 /* end confdefs.h. */
3997 #include <ac_nonexistent.h>
3998 _ACEOF
3999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4001 ac_status=$?
4002 grep -v '^ *+' conftest.er1 >conftest.err
4003 rm -f conftest.er1
4004 cat conftest.err >&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); } >/dev/null; then
4007 if test -s conftest.err; then
4008 ac_cpp_err=$ac_c_preproc_warn_flag
4009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4010 else
4011 ac_cpp_err=
4012 fi
4013 else
4014 ac_cpp_err=yes
4015 fi
4016 if test -z "$ac_cpp_err"; then
4017 # Broken: success on invalid input.
4018 continue
4019 else
4020 echo "$as_me: failed program was:" >&5
4021 sed 's/^/| /' conftest.$ac_ext >&5
4022
4023 # Passes both tests.
4024 ac_preproc_ok=:
4025 break
4026 fi
4027 rm -f conftest.err conftest.$ac_ext
4028
4029 done
4030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4031 rm -f conftest.err conftest.$ac_ext
4032 if $ac_preproc_ok; then
4033 break
4034 fi
4035
4036 done
4037 ac_cv_prog_CPP=$CPP
4038
4039 fi
4040 CPP=$ac_cv_prog_CPP
4041 else
4042 ac_cv_prog_CPP=$CPP
4043 fi
4044 echo "$as_me:$LINENO: result: $CPP" >&5
4045 echo "${ECHO_T}$CPP" >&6
4046 ac_preproc_ok=false
4047 for ac_c_preproc_warn_flag in '' yes
4048 do
4049 # Use a header file that comes with gcc, so configuring glibc
4050 # with a fresh cross-compiler works.
4051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4052 # <limits.h> exists even on freestanding compilers.
4053 # On the NeXT, cc -E runs the code through the compiler's parser,
4054 # not just through cpp. "Syntax error" is here to catch this case.
4055 cat >conftest.$ac_ext <<_ACEOF
4056 /* confdefs.h. */
4057 _ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4061 #ifdef __STDC__
4062 # include <limits.h>
4063 #else
4064 # include <assert.h>
4065 #endif
4066 Syntax error
4067 _ACEOF
4068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4070 ac_status=$?
4071 grep -v '^ *+' conftest.er1 >conftest.err
4072 rm -f conftest.er1
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } >/dev/null; then
4076 if test -s conftest.err; then
4077 ac_cpp_err=$ac_c_preproc_warn_flag
4078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4079 else
4080 ac_cpp_err=
4081 fi
4082 else
4083 ac_cpp_err=yes
4084 fi
4085 if test -z "$ac_cpp_err"; then
4086 :
4087 else
4088 echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4090
4091 # Broken: fails on valid input.
4092 continue
4093 fi
4094 rm -f conftest.err conftest.$ac_ext
4095
4096 # OK, works on sane cases. Now check whether non-existent headers
4097 # can be detected and how.
4098 cat >conftest.$ac_ext <<_ACEOF
4099 /* confdefs.h. */
4100 _ACEOF
4101 cat confdefs.h >>conftest.$ac_ext
4102 cat >>conftest.$ac_ext <<_ACEOF
4103 /* end confdefs.h. */
4104 #include <ac_nonexistent.h>
4105 _ACEOF
4106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4108 ac_status=$?
4109 grep -v '^ *+' conftest.er1 >conftest.err
4110 rm -f conftest.er1
4111 cat conftest.err >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); } >/dev/null; then
4114 if test -s conftest.err; then
4115 ac_cpp_err=$ac_c_preproc_warn_flag
4116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4117 else
4118 ac_cpp_err=
4119 fi
4120 else
4121 ac_cpp_err=yes
4122 fi
4123 if test -z "$ac_cpp_err"; then
4124 # Broken: success on invalid input.
4125 continue
4126 else
4127 echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4129
4130 # Passes both tests.
4131 ac_preproc_ok=:
4132 break
4133 fi
4134 rm -f conftest.err conftest.$ac_ext
4135
4136 done
4137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4138 rm -f conftest.err conftest.$ac_ext
4139 if $ac_preproc_ok; then
4140 :
4141 else
4142 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4143 See \`config.log' for more details." >&5
4144 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4145 See \`config.log' for more details." >&2;}
4146 { (exit 1); exit 1; }; }
4147 fi
4148
4149 ac_ext=c
4150 ac_cpp='$CPP $CPPFLAGS'
4151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4154
4155
4156 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4157 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4158 if test "${ac_cv_header_stdc+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161 cat >conftest.$ac_ext <<_ACEOF
4162 /* confdefs.h. */
4163 _ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h. */
4167 #include <stdlib.h>
4168 #include <stdarg.h>
4169 #include <string.h>
4170 #include <float.h>
4171
4172 int
4173 main ()
4174 {
4175
4176 ;
4177 return 0;
4178 }
4179 _ACEOF
4180 rm -f conftest.$ac_objext
4181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4182 (eval $ac_compile) 2>conftest.er1
4183 ac_status=$?
4184 grep -v '^ *+' conftest.er1 >conftest.err
4185 rm -f conftest.er1
4186 cat conftest.err >&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); } &&
4189 { ac_try='test -z "$ac_c_werror_flag"
4190 || test ! -s conftest.err'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192 (eval $ac_try) 2>&5
4193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; } &&
4196 { ac_try='test -s conftest.$ac_objext'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198 (eval $ac_try) 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; }; then
4202 ac_cv_header_stdc=yes
4203 else
4204 echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4206
4207 ac_cv_header_stdc=no
4208 fi
4209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4210
4211 if test $ac_cv_header_stdc = yes; then
4212 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4213 cat >conftest.$ac_ext <<_ACEOF
4214 /* confdefs.h. */
4215 _ACEOF
4216 cat confdefs.h >>conftest.$ac_ext
4217 cat >>conftest.$ac_ext <<_ACEOF
4218 /* end confdefs.h. */
4219 #include <string.h>
4220
4221 _ACEOF
4222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4223 $EGREP "memchr" >/dev/null 2>&1; then
4224 :
4225 else
4226 ac_cv_header_stdc=no
4227 fi
4228 rm -f conftest*
4229
4230 fi
4231
4232 if test $ac_cv_header_stdc = yes; then
4233 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4234 cat >conftest.$ac_ext <<_ACEOF
4235 /* confdefs.h. */
4236 _ACEOF
4237 cat confdefs.h >>conftest.$ac_ext
4238 cat >>conftest.$ac_ext <<_ACEOF
4239 /* end confdefs.h. */
4240 #include <stdlib.h>
4241
4242 _ACEOF
4243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4244 $EGREP "free" >/dev/null 2>&1; then
4245 :
4246 else
4247 ac_cv_header_stdc=no
4248 fi
4249 rm -f conftest*
4250
4251 fi
4252
4253 if test $ac_cv_header_stdc = yes; then
4254 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4255 if test "$cross_compiling" = yes; then
4256 :
4257 else
4258 cat >conftest.$ac_ext <<_ACEOF
4259 /* confdefs.h. */
4260 _ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h. */
4264 #include <ctype.h>
4265 #if ((' ' & 0x0FF) == 0x020)
4266 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4267 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4268 #else
4269 # define ISLOWER(c) \
4270 (('a' <= (c) && (c) <= 'i') \
4271 || ('j' <= (c) && (c) <= 'r') \
4272 || ('s' <= (c) && (c) <= 'z'))
4273 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4274 #endif
4275
4276 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4277 int
4278 main ()
4279 {
4280 int i;
4281 for (i = 0; i < 256; i++)
4282 if (XOR (islower (i), ISLOWER (i))
4283 || toupper (i) != TOUPPER (i))
4284 exit(2);
4285 exit (0);
4286 }
4287 _ACEOF
4288 rm -f conftest$ac_exeext
4289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4290 (eval $ac_link) 2>&5
4291 ac_status=$?
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295 (eval $ac_try) 2>&5
4296 ac_status=$?
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; }; then
4299 :
4300 else
4301 echo "$as_me: program exited with status $ac_status" >&5
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4304
4305 ( exit $ac_status )
4306 ac_cv_header_stdc=no
4307 fi
4308 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4309 fi
4310 fi
4311 fi
4312 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4313 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4314 if test $ac_cv_header_stdc = yes; then
4315
4316 cat >>confdefs.h <<\_ACEOF
4317 #define STDC_HEADERS 1
4318 _ACEOF
4319
4320 fi
4321
4322 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4333 inttypes.h stdint.h unistd.h
4334 do
4335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4336 echo "$as_me:$LINENO: checking for $ac_header" >&5
4337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4340 else
4341 cat >conftest.$ac_ext <<_ACEOF
4342 /* confdefs.h. */
4343 _ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h. */
4347 $ac_includes_default
4348
4349 #include <$ac_header>
4350 _ACEOF
4351 rm -f conftest.$ac_objext
4352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4353 (eval $ac_compile) 2>conftest.er1
4354 ac_status=$?
4355 grep -v '^ *+' conftest.er1 >conftest.err
4356 rm -f conftest.er1
4357 cat conftest.err >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } &&
4360 { ac_try='test -z "$ac_c_werror_flag"
4361 || test ! -s conftest.err'
4362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363 (eval $ac_try) 2>&5
4364 ac_status=$?
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; } &&
4367 { ac_try='test -s conftest.$ac_objext'
4368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4369 (eval $ac_try) 2>&5
4370 ac_status=$?
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; }; then
4373 eval "$as_ac_Header=yes"
4374 else
4375 echo "$as_me: failed program was:" >&5
4376 sed 's/^/| /' conftest.$ac_ext >&5
4377
4378 eval "$as_ac_Header=no"
4379 fi
4380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4381 fi
4382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4385 cat >>confdefs.h <<_ACEOF
4386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4387 _ACEOF
4388
4389 fi
4390
4391 done
4392
4393
4394
4395 for ac_header in dlfcn.h
4396 do
4397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4399 echo "$as_me:$LINENO: checking for $ac_header" >&5
4400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 fi
4404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4406 else
4407 # Is the header compilable?
4408 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4410 cat >conftest.$ac_ext <<_ACEOF
4411 /* confdefs.h. */
4412 _ACEOF
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h. */
4416 $ac_includes_default
4417 #include <$ac_header>
4418 _ACEOF
4419 rm -f conftest.$ac_objext
4420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4421 (eval $ac_compile) 2>conftest.er1
4422 ac_status=$?
4423 grep -v '^ *+' conftest.er1 >conftest.err
4424 rm -f conftest.er1
4425 cat conftest.err >&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); } &&
4428 { ac_try='test -z "$ac_c_werror_flag"
4429 || test ! -s conftest.err'
4430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431 (eval $ac_try) 2>&5
4432 ac_status=$?
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); }; } &&
4435 { ac_try='test -s conftest.$ac_objext'
4436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4437 (eval $ac_try) 2>&5
4438 ac_status=$?
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }; }; then
4441 ac_header_compiler=yes
4442 else
4443 echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4445
4446 ac_header_compiler=no
4447 fi
4448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4449 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4450 echo "${ECHO_T}$ac_header_compiler" >&6
4451
4452 # Is the header present?
4453 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4455 cat >conftest.$ac_ext <<_ACEOF
4456 /* confdefs.h. */
4457 _ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4461 #include <$ac_header>
4462 _ACEOF
4463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4465 ac_status=$?
4466 grep -v '^ *+' conftest.er1 >conftest.err
4467 rm -f conftest.er1
4468 cat conftest.err >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } >/dev/null; then
4471 if test -s conftest.err; then
4472 ac_cpp_err=$ac_c_preproc_warn_flag
4473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4474 else
4475 ac_cpp_err=
4476 fi
4477 else
4478 ac_cpp_err=yes
4479 fi
4480 if test -z "$ac_cpp_err"; then
4481 ac_header_preproc=yes
4482 else
4483 echo "$as_me: failed program was:" >&5
4484 sed 's/^/| /' conftest.$ac_ext >&5
4485
4486 ac_header_preproc=no
4487 fi
4488 rm -f conftest.err conftest.$ac_ext
4489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4490 echo "${ECHO_T}$ac_header_preproc" >&6
4491
4492 # So? What about this header?
4493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4494 yes:no: )
4495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4499 ac_header_preproc=yes
4500 ;;
4501 no:yes:* )
4502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4509 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4514 (
4515 cat <<\_ASBOX
4516 ## ---------------------------------------------------------------------- ##
4517 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
4518 ## ---------------------------------------------------------------------- ##
4519 _ASBOX
4520 ) |
4521 sed "s/^/$as_me: WARNING: /" >&2
4522 ;;
4523 esac
4524 echo "$as_me:$LINENO: checking for $ac_header" >&5
4525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 else
4529 eval "$as_ac_Header=\$ac_header_preproc"
4530 fi
4531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4533
4534 fi
4535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4536 cat >>confdefs.h <<_ACEOF
4537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4538 _ACEOF
4539
4540 fi
4541
4542 done
4543
4544 ac_ext=cc
4545 ac_cpp='$CXXCPP $CPPFLAGS'
4546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4549 if test -n "$ac_tool_prefix"; then
4550 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4551 do
4552 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4553 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4554 echo "$as_me:$LINENO: checking for $ac_word" >&5
4555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4556 if test "${ac_cv_prog_CXX+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559 if test -n "$CXX"; then
4560 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4561 else
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH
4564 do
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4569 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4571 break 2
4572 fi
4573 done
4574 done
4575
4576 fi
4577 fi
4578 CXX=$ac_cv_prog_CXX
4579 if test -n "$CXX"; then
4580 echo "$as_me:$LINENO: result: $CXX" >&5
4581 echo "${ECHO_T}$CXX" >&6
4582 else
4583 echo "$as_me:$LINENO: result: no" >&5
4584 echo "${ECHO_T}no" >&6
4585 fi
4586
4587 test -n "$CXX" && break
4588 done
4589 fi
4590 if test -z "$CXX"; then
4591 ac_ct_CXX=$CXX
4592 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4593 do
4594 # Extract the first word of "$ac_prog", so it can be a program name with args.
4595 set dummy $ac_prog; ac_word=$2
4596 echo "$as_me:$LINENO: checking for $ac_word" >&5
4597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4598 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4600 else
4601 if test -n "$ac_ct_CXX"; then
4602 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4603 else
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4606 do
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4611 ac_cv_prog_ac_ct_CXX="$ac_prog"
4612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 break 2
4614 fi
4615 done
4616 done
4617
4618 fi
4619 fi
4620 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4621 if test -n "$ac_ct_CXX"; then
4622 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4623 echo "${ECHO_T}$ac_ct_CXX" >&6
4624 else
4625 echo "$as_me:$LINENO: result: no" >&5
4626 echo "${ECHO_T}no" >&6
4627 fi
4628
4629 test -n "$ac_ct_CXX" && break
4630 done
4631 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4632
4633 CXX=$ac_ct_CXX
4634 fi
4635
4636
4637 # Provide some information about the compiler.
4638 echo "$as_me:$LINENO:" \
4639 "checking for C++ compiler version" >&5
4640 ac_compiler=`set X $ac_compile; echo $2`
4641 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4642 (eval $ac_compiler --version </dev/null >&5) 2>&5
4643 ac_status=$?
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); }
4646 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4647 (eval $ac_compiler -v </dev/null >&5) 2>&5
4648 ac_status=$?
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }
4651 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4652 (eval $ac_compiler -V </dev/null >&5) 2>&5
4653 ac_status=$?
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }
4656
4657 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4658 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4659 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662 cat >conftest.$ac_ext <<_ACEOF
4663 /* confdefs.h. */
4664 _ACEOF
4665 cat confdefs.h >>conftest.$ac_ext
4666 cat >>conftest.$ac_ext <<_ACEOF
4667 /* end confdefs.h. */
4668
4669 int
4670 main ()
4671 {
4672 #ifndef __GNUC__
4673 choke me
4674 #endif
4675
4676 ;
4677 return 0;
4678 }
4679 _ACEOF
4680 rm -f conftest.$ac_objext
4681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4682 (eval $ac_compile) 2>conftest.er1
4683 ac_status=$?
4684 grep -v '^ *+' conftest.er1 >conftest.err
4685 rm -f conftest.er1
4686 cat conftest.err >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } &&
4689 { ac_try='test -z "$ac_cxx_werror_flag"
4690 || test ! -s conftest.err'
4691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692 (eval $ac_try) 2>&5
4693 ac_status=$?
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; } &&
4696 { ac_try='test -s conftest.$ac_objext'
4697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698 (eval $ac_try) 2>&5
4699 ac_status=$?
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }; }; then
4702 ac_compiler_gnu=yes
4703 else
4704 echo "$as_me: failed program was:" >&5
4705 sed 's/^/| /' conftest.$ac_ext >&5
4706
4707 ac_compiler_gnu=no
4708 fi
4709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4710 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4711
4712 fi
4713 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4714 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4715 GXX=`test $ac_compiler_gnu = yes && echo yes`
4716 ac_test_CXXFLAGS=${CXXFLAGS+set}
4717 ac_save_CXXFLAGS=$CXXFLAGS
4718 CXXFLAGS="-g"
4719 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4720 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4721 if test "${ac_cv_prog_cxx_g+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4723 else
4724 cat >conftest.$ac_ext <<_ACEOF
4725 /* confdefs.h. */
4726 _ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h. */
4730
4731 int
4732 main ()
4733 {
4734
4735 ;
4736 return 0;
4737 }
4738 _ACEOF
4739 rm -f conftest.$ac_objext
4740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4741 (eval $ac_compile) 2>conftest.er1
4742 ac_status=$?
4743 grep -v '^ *+' conftest.er1 >conftest.err
4744 rm -f conftest.er1
4745 cat conftest.err >&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); } &&
4748 { ac_try='test -z "$ac_cxx_werror_flag"
4749 || test ! -s conftest.err'
4750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751 (eval $ac_try) 2>&5
4752 ac_status=$?
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }; } &&
4755 { ac_try='test -s conftest.$ac_objext'
4756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757 (eval $ac_try) 2>&5
4758 ac_status=$?
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); }; }; then
4761 ac_cv_prog_cxx_g=yes
4762 else
4763 echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4765
4766 ac_cv_prog_cxx_g=no
4767 fi
4768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4769 fi
4770 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4771 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4772 if test "$ac_test_CXXFLAGS" = set; then
4773 CXXFLAGS=$ac_save_CXXFLAGS
4774 elif test $ac_cv_prog_cxx_g = yes; then
4775 if test "$GXX" = yes; then
4776 CXXFLAGS="-g -O2"
4777 else
4778 CXXFLAGS="-g"
4779 fi
4780 else
4781 if test "$GXX" = yes; then
4782 CXXFLAGS="-O2"
4783 else
4784 CXXFLAGS=
4785 fi
4786 fi
4787 for ac_declaration in \
4788 '' \
4789 'extern "C" void std::exit (int) throw (); using std::exit;' \
4790 'extern "C" void std::exit (int); using std::exit;' \
4791 'extern "C" void exit (int) throw ();' \
4792 'extern "C" void exit (int);' \
4793 'void exit (int);'
4794 do
4795 cat >conftest.$ac_ext <<_ACEOF
4796 /* confdefs.h. */
4797 _ACEOF
4798 cat confdefs.h >>conftest.$ac_ext
4799 cat >>conftest.$ac_ext <<_ACEOF
4800 /* end confdefs.h. */
4801 $ac_declaration
4802 #include <stdlib.h>
4803 int
4804 main ()
4805 {
4806 exit (42);
4807 ;
4808 return 0;
4809 }
4810 _ACEOF
4811 rm -f conftest.$ac_objext
4812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4813 (eval $ac_compile) 2>conftest.er1
4814 ac_status=$?
4815 grep -v '^ *+' conftest.er1 >conftest.err
4816 rm -f conftest.er1
4817 cat conftest.err >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } &&
4820 { ac_try='test -z "$ac_cxx_werror_flag"
4821 || test ! -s conftest.err'
4822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823 (eval $ac_try) 2>&5
4824 ac_status=$?
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; } &&
4827 { ac_try='test -s conftest.$ac_objext'
4828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4829 (eval $ac_try) 2>&5
4830 ac_status=$?
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); }; }; then
4833 :
4834 else
4835 echo "$as_me: failed program was:" >&5
4836 sed 's/^/| /' conftest.$ac_ext >&5
4837
4838 continue
4839 fi
4840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4841 cat >conftest.$ac_ext <<_ACEOF
4842 /* confdefs.h. */
4843 _ACEOF
4844 cat confdefs.h >>conftest.$ac_ext
4845 cat >>conftest.$ac_ext <<_ACEOF
4846 /* end confdefs.h. */
4847 $ac_declaration
4848 int
4849 main ()
4850 {
4851 exit (42);
4852 ;
4853 return 0;
4854 }
4855 _ACEOF
4856 rm -f conftest.$ac_objext
4857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858 (eval $ac_compile) 2>conftest.er1
4859 ac_status=$?
4860 grep -v '^ *+' conftest.er1 >conftest.err
4861 rm -f conftest.er1
4862 cat conftest.err >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } &&
4865 { ac_try='test -z "$ac_cxx_werror_flag"
4866 || test ! -s conftest.err'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 (eval $ac_try) 2>&5
4869 ac_status=$?
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; } &&
4872 { ac_try='test -s conftest.$ac_objext'
4873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874 (eval $ac_try) 2>&5
4875 ac_status=$?
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }; }; then
4878 break
4879 else
4880 echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4882
4883 fi
4884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4885 done
4886 rm -f conftest*
4887 if test -n "$ac_declaration"; then
4888 echo '#ifdef __cplusplus' >>confdefs.h
4889 echo $ac_declaration >>confdefs.h
4890 echo '#endif' >>confdefs.h
4891 fi
4892
4893 ac_ext=cc
4894 ac_cpp='$CXXCPP $CPPFLAGS'
4895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4898
4899 depcc="$CXX" am_compiler_list=
4900
4901 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4902 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4903 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 else
4906 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4907 # We make a subdir and do the tests there. Otherwise we can end up
4908 # making bogus files that we don't know about and never remove. For
4909 # instance it was reported that on HP-UX the gcc test will end up
4910 # making a dummy file named `D' -- because `-MD' means `put the output
4911 # in D'.
4912 mkdir conftest.dir
4913 # Copy depcomp to subdir because otherwise we won't find it if we're
4914 # using a relative directory.
4915 cp "$am_depcomp" conftest.dir
4916 cd conftest.dir
4917 # We will build objects and dependencies in a subdirectory because
4918 # it helps to detect inapplicable dependency modes. For instance
4919 # both Tru64's cc and ICC support -MD to output dependencies as a
4920 # side effect of compilation, but ICC will put the dependencies in
4921 # the current directory while Tru64 will put them in the object
4922 # directory.
4923 mkdir sub
4924
4925 am_cv_CXX_dependencies_compiler_type=none
4926 if test "$am_compiler_list" = ""; then
4927 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4928 fi
4929 for depmode in $am_compiler_list; do
4930 # Setup a source with many dependencies, because some compilers
4931 # like to wrap large dependency lists on column 80 (with \), and
4932 # we should not choose a depcomp mode which is confused by this.
4933 #
4934 # We need to recreate these files for each test, as the compiler may
4935 # overwrite some of them when testing with obscure command lines.
4936 # This happens at least with the AIX C compiler.
4937 : > sub/conftest.c
4938 for i in 1 2 3 4 5 6; do
4939 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4940 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4941 # Solaris 8's {/usr,}/bin/sh.
4942 touch sub/conftst$i.h
4943 done
4944 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4945
4946 case $depmode in
4947 nosideeffect)
4948 # after this tag, mechanisms are not by side-effect, so they'll
4949 # only be used when explicitly requested
4950 if test "x$enable_dependency_tracking" = xyes; then
4951 continue
4952 else
4953 break
4954 fi
4955 ;;
4956 none) break ;;
4957 esac
4958 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4959 # mode. It turns out that the SunPro C++ compiler does not properly
4960 # handle `-M -o', and we need to detect this.
4961 if depmode=$depmode \
4962 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4963 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4964 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4965 >/dev/null 2>conftest.err &&
4966 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4967 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4968 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4969 # icc doesn't choke on unknown options, it will just issue warnings
4970 # or remarks (even with -Werror). So we grep stderr for any message
4971 # that says an option was ignored or not supported.
4972 # When given -MP, icc 7.0 and 7.1 complain thusly:
4973 # icc: Command line warning: ignoring option '-M'; no argument required
4974 # The diagnosis changed in icc 8.0:
4975 # icc: Command line remark: option '-MP' not supported
4976 if (grep 'ignoring option' conftest.err ||
4977 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4978 am_cv_CXX_dependencies_compiler_type=$depmode
4979 break
4980 fi
4981 fi
4982 done
4983
4984 cd ..
4985 rm -rf conftest.dir
4986 else
4987 am_cv_CXX_dependencies_compiler_type=none
4988 fi
4989
4990 fi
4991 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4992 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4993 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4994
4995
4996
4997 if
4998 test "x$enable_dependency_tracking" != xno \
4999 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5000 am__fastdepCXX_TRUE=
5001 am__fastdepCXX_FALSE='#'
5002 else
5003 am__fastdepCXX_TRUE='#'
5004 am__fastdepCXX_FALSE=
5005 fi
5006
5007
5008
5009
5010 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5011 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5012 (test "X$CXX" != "Xg++"))) ; then
5013 ac_ext=cc
5014 ac_cpp='$CXXCPP $CPPFLAGS'
5015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5018 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5019 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5020 if test -z "$CXXCPP"; then
5021 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024 # Double quotes because CXXCPP needs to be expanded
5025 for CXXCPP in "$CXX -E" "/lib/cpp"
5026 do
5027 ac_preproc_ok=false
5028 for ac_cxx_preproc_warn_flag in '' yes
5029 do
5030 # Use a header file that comes with gcc, so configuring glibc
5031 # with a fresh cross-compiler works.
5032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5033 # <limits.h> exists even on freestanding compilers.
5034 # On the NeXT, cc -E runs the code through the compiler's parser,
5035 # not just through cpp. "Syntax error" is here to catch this case.
5036 cat >conftest.$ac_ext <<_ACEOF
5037 /* confdefs.h. */
5038 _ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h. */
5042 #ifdef __STDC__
5043 # include <limits.h>
5044 #else
5045 # include <assert.h>
5046 #endif
5047 Syntax error
5048 _ACEOF
5049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5051 ac_status=$?
5052 grep -v '^ *+' conftest.er1 >conftest.err
5053 rm -f conftest.er1
5054 cat conftest.err >&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); } >/dev/null; then
5057 if test -s conftest.err; then
5058 ac_cpp_err=$ac_cxx_preproc_warn_flag
5059 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5060 else
5061 ac_cpp_err=
5062 fi
5063 else
5064 ac_cpp_err=yes
5065 fi
5066 if test -z "$ac_cpp_err"; then
5067 :
5068 else
5069 echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5071
5072 # Broken: fails on valid input.
5073 continue
5074 fi
5075 rm -f conftest.err conftest.$ac_ext
5076
5077 # OK, works on sane cases. Now check whether non-existent headers
5078 # can be detected and how.
5079 cat >conftest.$ac_ext <<_ACEOF
5080 /* confdefs.h. */
5081 _ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h. */
5085 #include <ac_nonexistent.h>
5086 _ACEOF
5087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5089 ac_status=$?
5090 grep -v '^ *+' conftest.er1 >conftest.err
5091 rm -f conftest.er1
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } >/dev/null; then
5095 if test -s conftest.err; then
5096 ac_cpp_err=$ac_cxx_preproc_warn_flag
5097 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5098 else
5099 ac_cpp_err=
5100 fi
5101 else
5102 ac_cpp_err=yes
5103 fi
5104 if test -z "$ac_cpp_err"; then
5105 # Broken: success on invalid input.
5106 continue
5107 else
5108 echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5110
5111 # Passes both tests.
5112 ac_preproc_ok=:
5113 break
5114 fi
5115 rm -f conftest.err conftest.$ac_ext
5116
5117 done
5118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5119 rm -f conftest.err conftest.$ac_ext
5120 if $ac_preproc_ok; then
5121 break
5122 fi
5123
5124 done
5125 ac_cv_prog_CXXCPP=$CXXCPP
5126
5127 fi
5128 CXXCPP=$ac_cv_prog_CXXCPP
5129 else
5130 ac_cv_prog_CXXCPP=$CXXCPP
5131 fi
5132 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5133 echo "${ECHO_T}$CXXCPP" >&6
5134 ac_preproc_ok=false
5135 for ac_cxx_preproc_warn_flag in '' yes
5136 do
5137 # Use a header file that comes with gcc, so configuring glibc
5138 # with a fresh cross-compiler works.
5139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5140 # <limits.h> exists even on freestanding compilers.
5141 # On the NeXT, cc -E runs the code through the compiler's parser,
5142 # not just through cpp. "Syntax error" is here to catch this case.
5143 cat >conftest.$ac_ext <<_ACEOF
5144 /* confdefs.h. */
5145 _ACEOF
5146 cat confdefs.h >>conftest.$ac_ext
5147 cat >>conftest.$ac_ext <<_ACEOF
5148 /* end confdefs.h. */
5149 #ifdef __STDC__
5150 # include <limits.h>
5151 #else
5152 # include <assert.h>
5153 #endif
5154 Syntax error
5155 _ACEOF
5156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5158 ac_status=$?
5159 grep -v '^ *+' conftest.er1 >conftest.err
5160 rm -f conftest.er1
5161 cat conftest.err >&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); } >/dev/null; then
5164 if test -s conftest.err; then
5165 ac_cpp_err=$ac_cxx_preproc_warn_flag
5166 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5167 else
5168 ac_cpp_err=
5169 fi
5170 else
5171 ac_cpp_err=yes
5172 fi
5173 if test -z "$ac_cpp_err"; then
5174 :
5175 else
5176 echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5178
5179 # Broken: fails on valid input.
5180 continue
5181 fi
5182 rm -f conftest.err conftest.$ac_ext
5183
5184 # OK, works on sane cases. Now check whether non-existent headers
5185 # can be detected and how.
5186 cat >conftest.$ac_ext <<_ACEOF
5187 /* confdefs.h. */
5188 _ACEOF
5189 cat confdefs.h >>conftest.$ac_ext
5190 cat >>conftest.$ac_ext <<_ACEOF
5191 /* end confdefs.h. */
5192 #include <ac_nonexistent.h>
5193 _ACEOF
5194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5196 ac_status=$?
5197 grep -v '^ *+' conftest.er1 >conftest.err
5198 rm -f conftest.er1
5199 cat conftest.err >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } >/dev/null; then
5202 if test -s conftest.err; then
5203 ac_cpp_err=$ac_cxx_preproc_warn_flag
5204 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5205 else
5206 ac_cpp_err=
5207 fi
5208 else
5209 ac_cpp_err=yes
5210 fi
5211 if test -z "$ac_cpp_err"; then
5212 # Broken: success on invalid input.
5213 continue
5214 else
5215 echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.$ac_ext >&5
5217
5218 # Passes both tests.
5219 ac_preproc_ok=:
5220 break
5221 fi
5222 rm -f conftest.err conftest.$ac_ext
5223
5224 done
5225 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5226 rm -f conftest.err conftest.$ac_ext
5227 if $ac_preproc_ok; then
5228 :
5229 else
5230 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5231 See \`config.log' for more details." >&5
5232 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5233 See \`config.log' for more details." >&2;}
5234 { (exit 1); exit 1; }; }
5235 fi
5236
5237 ac_ext=cc
5238 ac_cpp='$CXXCPP $CPPFLAGS'
5239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5242
5243 fi
5244
5245
5246 ac_ext=f
5247 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5248 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5249 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5250 if test -n "$ac_tool_prefix"; then
5251 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5252 do
5253 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5254 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5255 echo "$as_me:$LINENO: checking for $ac_word" >&5
5256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5257 if test "${ac_cv_prog_F77+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 else
5260 if test -n "$F77"; then
5261 ac_cv_prog_F77="$F77" # Let the user override the test.
5262 else
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 for as_dir in $PATH
5265 do
5266 IFS=$as_save_IFS
5267 test -z "$as_dir" && as_dir=.
5268 for ac_exec_ext in '' $ac_executable_extensions; do
5269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5270 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5272 break 2
5273 fi
5274 done
5275 done
5276
5277 fi
5278 fi
5279 F77=$ac_cv_prog_F77
5280 if test -n "$F77"; then
5281 echo "$as_me:$LINENO: result: $F77" >&5
5282 echo "${ECHO_T}$F77" >&6
5283 else
5284 echo "$as_me:$LINENO: result: no" >&5
5285 echo "${ECHO_T}no" >&6
5286 fi
5287
5288 test -n "$F77" && break
5289 done
5290 fi
5291 if test -z "$F77"; then
5292 ac_ct_F77=$F77
5293 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5294 do
5295 # Extract the first word of "$ac_prog", so it can be a program name with args.
5296 set dummy $ac_prog; ac_word=$2
5297 echo "$as_me:$LINENO: checking for $ac_word" >&5
5298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5299 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 else
5302 if test -n "$ac_ct_F77"; then
5303 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5304 else
5305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306 for as_dir in $PATH
5307 do
5308 IFS=$as_save_IFS
5309 test -z "$as_dir" && as_dir=.
5310 for ac_exec_ext in '' $ac_executable_extensions; do
5311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5312 ac_cv_prog_ac_ct_F77="$ac_prog"
5313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 break 2
5315 fi
5316 done
5317 done
5318
5319 fi
5320 fi
5321 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5322 if test -n "$ac_ct_F77"; then
5323 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5324 echo "${ECHO_T}$ac_ct_F77" >&6
5325 else
5326 echo "$as_me:$LINENO: result: no" >&5
5327 echo "${ECHO_T}no" >&6
5328 fi
5329
5330 test -n "$ac_ct_F77" && break
5331 done
5332
5333 F77=$ac_ct_F77
5334 fi
5335
5336
5337 # Provide some information about the compiler.
5338 echo "$as_me:5338:" \
5339 "checking for Fortran 77 compiler version" >&5
5340 ac_compiler=`set X $ac_compile; echo $2`
5341 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5342 (eval $ac_compiler --version </dev/null >&5) 2>&5
5343 ac_status=$?
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); }
5346 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5347 (eval $ac_compiler -v </dev/null >&5) 2>&5
5348 ac_status=$?
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); }
5351 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5352 (eval $ac_compiler -V </dev/null >&5) 2>&5
5353 ac_status=$?
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }
5356 rm -f a.out
5357
5358 # If we don't use `.F' as extension, the preprocessor is not run on the
5359 # input file. (Note that this only needs to work for GNU compilers.)
5360 ac_save_ext=$ac_ext
5361 ac_ext=F
5362 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5363 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5364 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5366 else
5367 cat >conftest.$ac_ext <<_ACEOF
5368 program main
5369 #ifndef __GNUC__
5370 choke me
5371 #endif
5372
5373 end
5374 _ACEOF
5375 rm -f conftest.$ac_objext
5376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5377 (eval $ac_compile) 2>conftest.er1
5378 ac_status=$?
5379 grep -v '^ *+' conftest.er1 >conftest.err
5380 rm -f conftest.er1
5381 cat conftest.err >&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); } &&
5384 { ac_try='test -z "$ac_f77_werror_flag"
5385 || test ! -s conftest.err'
5386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387 (eval $ac_try) 2>&5
5388 ac_status=$?
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }; } &&
5391 { ac_try='test -s conftest.$ac_objext'
5392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393 (eval $ac_try) 2>&5
5394 ac_status=$?
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }; }; then
5397 ac_compiler_gnu=yes
5398 else
5399 echo "$as_me: failed program was:" >&5
5400 sed 's/^/| /' conftest.$ac_ext >&5
5401
5402 ac_compiler_gnu=no
5403 fi
5404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5405 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5406
5407 fi
5408 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5409 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5410 ac_ext=$ac_save_ext
5411 ac_test_FFLAGS=${FFLAGS+set}
5412 ac_save_FFLAGS=$FFLAGS
5413 FFLAGS=
5414 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5415 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5416 if test "${ac_cv_prog_f77_g+set}" = set; then
5417 echo $ECHO_N "(cached) $ECHO_C" >&6
5418 else
5419 FFLAGS=-g
5420 cat >conftest.$ac_ext <<_ACEOF
5421 program main
5422
5423 end
5424 _ACEOF
5425 rm -f conftest.$ac_objext
5426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5427 (eval $ac_compile) 2>conftest.er1
5428 ac_status=$?
5429 grep -v '^ *+' conftest.er1 >conftest.err
5430 rm -f conftest.er1
5431 cat conftest.err >&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); } &&
5434 { ac_try='test -z "$ac_f77_werror_flag"
5435 || test ! -s conftest.err'
5436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437 (eval $ac_try) 2>&5
5438 ac_status=$?
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); }; } &&
5441 { ac_try='test -s conftest.$ac_objext'
5442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443 (eval $ac_try) 2>&5
5444 ac_status=$?
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }; }; then
5447 ac_cv_prog_f77_g=yes
5448 else
5449 echo "$as_me: failed program was:" >&5
5450 sed 's/^/| /' conftest.$ac_ext >&5
5451
5452 ac_cv_prog_f77_g=no
5453 fi
5454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5455
5456 fi
5457 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5458 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5459 if test "$ac_test_FFLAGS" = set; then
5460 FFLAGS=$ac_save_FFLAGS
5461 elif test $ac_cv_prog_f77_g = yes; then
5462 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5463 FFLAGS="-g -O2"
5464 else
5465 FFLAGS="-g"
5466 fi
5467 else
5468 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5469 FFLAGS="-O2"
5470 else
5471 FFLAGS=
5472 fi
5473 fi
5474
5475 G77=`test $ac_compiler_gnu = yes && echo yes`
5476 ac_ext=c
5477 ac_cpp='$CPP $CPPFLAGS'
5478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5481
5482
5483
5484 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5485
5486 # find the maximum length of command line arguments
5487 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5488 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5489 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5490 echo $ECHO_N "(cached) $ECHO_C" >&6
5491 else
5492 i=0
5493 teststring="ABCD"
5494
5495 case $build_os in
5496 msdosdjgpp*)
5497 # On DJGPP, this test can blow up pretty badly due to problems in libc
5498 # (any single argument exceeding 2000 bytes causes a buffer overrun
5499 # during glob expansion). Even if it were fixed, the result of this
5500 # check would be larger than it should be.
5501 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5502 ;;
5503
5504 gnu*)
5505 # Under GNU Hurd, this test is not required because there is
5506 # no limit to the length of command line arguments.
5507 # Libtool will interpret -1 as no limit whatsoever
5508 lt_cv_sys_max_cmd_len=-1;
5509 ;;
5510
5511 cygwin* | mingw*)
5512 # On Win9x/ME, this test blows up -- it succeeds, but takes
5513 # about 5 minutes as the teststring grows exponentially.
5514 # Worse, since 9x/ME are not pre-emptively multitasking,
5515 # you end up with a "frozen" computer, even though with patience
5516 # the test eventually succeeds (with a max line length of 256k).
5517 # Instead, let's just punt: use the minimum linelength reported by
5518 # all of the supported platforms: 8192 (on NT/2K/XP).
5519 lt_cv_sys_max_cmd_len=8192;
5520 ;;
5521
5522 amigaos*)
5523 # On AmigaOS with pdksh, this test takes hours, literally.
5524 # So we just punt and use a minimum line length of 8192.
5525 lt_cv_sys_max_cmd_len=8192;
5526 ;;
5527
5528 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5529 # This has been around since 386BSD, at least. Likely further.
5530 if test -x /sbin/sysctl; then
5531 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5532 elif test -x /usr/sbin/sysctl; then
5533 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5534 else
5535 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5536 fi
5537 # And add a safety zone
5538 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5539 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5540 ;;
5541
5542 interix*)
5543 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5544 lt_cv_sys_max_cmd_len=196608
5545 ;;
5546
5547 osf*)
5548 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5549 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5550 # nice to cause kernel panics so lets avoid the loop below.
5551 # First set a reasonable default.
5552 lt_cv_sys_max_cmd_len=16384
5553 #
5554 if test -x /sbin/sysconfig; then
5555 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5556 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5557 esac
5558 fi
5559 ;;
5560 sco3.2v5*)
5561 lt_cv_sys_max_cmd_len=102400
5562 ;;
5563 sysv5* | sco5v6* | sysv4.2uw2*)
5564 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5565 if test -n "$kargmax"; then
5566 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5567 else
5568 lt_cv_sys_max_cmd_len=32768
5569 fi
5570 ;;
5571 *)
5572 # If test is not a shell built-in, we'll probably end up computing a
5573 # maximum length that is only half of the actual maximum length, but
5574 # we can't tell.
5575 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5576 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5577 = "XX$teststring") >/dev/null 2>&1 &&
5578 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5579 lt_cv_sys_max_cmd_len=$new_result &&
5580 test $i != 17 # 1/2 MB should be enough
5581 do
5582 i=`expr $i + 1`
5583 teststring=$teststring$teststring
5584 done
5585 teststring=
5586 # Add a significant safety factor because C++ compilers can tack on massive
5587 # amounts of additional arguments before passing them to the linker.
5588 # It appears as though 1/2 is a usable value.
5589 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5590 ;;
5591 esac
5592
5593 fi
5594
5595 if test -n $lt_cv_sys_max_cmd_len ; then
5596 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5597 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5598 else
5599 echo "$as_me:$LINENO: result: none" >&5
5600 echo "${ECHO_T}none" >&6
5601 fi
5602
5603
5604
5605
5606 # Check for command to grab the raw symbol name followed by C symbol from nm.
5607 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5608 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5609 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5611 else
5612
5613 # These are sane defaults that work on at least a few old systems.
5614 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5615
5616 # Character class describing NM global symbol codes.
5617 symcode='[BCDEGRST]'
5618
5619 # Regexp to match symbols that can be accessed directly from C.
5620 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5621
5622 # Transform an extracted symbol line into a proper C declaration
5623 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5624
5625 # Transform an extracted symbol line into symbol name and symbol address
5626 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'"
5627
5628 # Define system-specific variables.
5629 case $host_os in
5630 aix*)
5631 symcode='[BCDT]'
5632 ;;
5633 cygwin* | mingw* | pw32*)
5634 symcode='[ABCDGISTW]'
5635 ;;
5636 hpux*) # Its linker distinguishes data from code symbols
5637 if test "$host_cpu" = ia64; then
5638 symcode='[ABCDEGRST]'
5639 fi
5640 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5641 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'"
5642 ;;
5643 linux*)
5644 if test "$host_cpu" = ia64; then
5645 symcode='[ABCDGIRSTW]'
5646 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5647 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'"
5648 fi
5649 ;;
5650 irix* | nonstopux*)
5651 symcode='[BCDEGRST]'
5652 ;;
5653 osf*)
5654 symcode='[BCDEGQRST]'
5655 ;;
5656 solaris*)
5657 symcode='[BDRT]'
5658 ;;
5659 sco3.2v5*)
5660 symcode='[DT]'
5661 ;;
5662 sysv4.2uw2*)
5663 symcode='[DT]'
5664 ;;
5665 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5666 symcode='[ABDT]'
5667 ;;
5668 sysv4)
5669 symcode='[DFNSTU]'
5670 ;;
5671 esac
5672
5673 # Handle CRLF in mingw tool chain
5674 opt_cr=
5675 case $build_os in
5676 mingw*)
5677 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5678 ;;
5679 esac
5680
5681 # If we're using GNU nm, then use its standard symbol codes.
5682 case `$NM -V 2>&1` in
5683 *GNU* | *'with BFD'*)
5684 symcode='[ABCDGIRSTW]' ;;
5685 esac
5686
5687 # Try without a prefix undercore, then with it.
5688 for ac_symprfx in "" "_"; do
5689
5690 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5691 symxfrm="\\1 $ac_symprfx\\2 \\2"
5692
5693 # Write the raw and C identifiers.
5694 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5695
5696 # Check to see that the pipe works correctly.
5697 pipe_works=no
5698
5699 rm -f conftest*
5700 cat > conftest.$ac_ext <<EOF
5701 #ifdef __cplusplus
5702 extern "C" {
5703 #endif
5704 char nm_test_var;
5705 void nm_test_func(){}
5706 #ifdef __cplusplus
5707 }
5708 #endif
5709 int main(){nm_test_var='a';nm_test_func();return(0);}
5710 EOF
5711
5712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713 (eval $ac_compile) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; then
5717 # Now try to grab the symbols.
5718 nlist=conftest.nm
5719 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5720 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5721 ac_status=$?
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } && test -s "$nlist"; then
5724 # Try sorting and uniquifying the output.
5725 if sort "$nlist" | uniq > "$nlist"T; then
5726 mv -f "$nlist"T "$nlist"
5727 else
5728 rm -f "$nlist"T
5729 fi
5730
5731 # Make sure that we snagged all the symbols we need.
5732 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5733 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5734 cat <<EOF > conftest.$ac_ext
5735 #ifdef __cplusplus
5736 extern "C" {
5737 #endif
5738
5739 EOF
5740 # Now generate the symbol file.
5741 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5742
5743 cat <<EOF >> conftest.$ac_ext
5744 #if defined (__STDC__) && __STDC__
5745 # define lt_ptr_t void *
5746 #else
5747 # define lt_ptr_t char *
5748 # define const
5749 #endif
5750
5751 /* The mapping between symbol names and symbols. */
5752 const struct {
5753 const char *name;
5754 lt_ptr_t address;
5755 }
5756 lt_preloaded_symbols[] =
5757 {
5758 EOF
5759 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5760 cat <<\EOF >> conftest.$ac_ext
5761 {0, (lt_ptr_t) 0}
5762 };
5763
5764 #ifdef __cplusplus
5765 }
5766 #endif
5767 EOF
5768 # Now try linking the two files.
5769 mv conftest.$ac_objext conftstm.$ac_objext
5770 lt_save_LIBS="$LIBS"
5771 lt_save_CFLAGS="$CFLAGS"
5772 LIBS="conftstm.$ac_objext"
5773 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5775 (eval $ac_link) 2>&5
5776 ac_status=$?
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5779 pipe_works=yes
5780 fi
5781 LIBS="$lt_save_LIBS"
5782 CFLAGS="$lt_save_CFLAGS"
5783 else
5784 echo "cannot find nm_test_func in $nlist" >&5
5785 fi
5786 else
5787 echo "cannot find nm_test_var in $nlist" >&5
5788 fi
5789 else
5790 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5791 fi
5792 else
5793 echo "$progname: failed program was:" >&5
5794 cat conftest.$ac_ext >&5
5795 fi
5796 rm -f conftest* conftst*
5797
5798 # Do not use the global_symbol_pipe unless it works.
5799 if test "$pipe_works" = yes; then
5800 break
5801 else
5802 lt_cv_sys_global_symbol_pipe=
5803 fi
5804 done
5805
5806 fi
5807
5808 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5809 lt_cv_sys_global_symbol_to_cdecl=
5810 fi
5811 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5812 echo "$as_me:$LINENO: result: failed" >&5
5813 echo "${ECHO_T}failed" >&6
5814 else
5815 echo "$as_me:$LINENO: result: ok" >&5
5816 echo "${ECHO_T}ok" >&6
5817 fi
5818
5819 echo "$as_me:$LINENO: checking for objdir" >&5
5820 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5821 if test "${lt_cv_objdir+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 else
5824 rm -f .libs 2>/dev/null
5825 mkdir .libs 2>/dev/null
5826 if test -d .libs; then
5827 lt_cv_objdir=.libs
5828 else
5829 # MS-DOS does not allow filenames that begin with a dot.
5830 lt_cv_objdir=_libs
5831 fi
5832 rmdir .libs 2>/dev/null
5833 fi
5834 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5835 echo "${ECHO_T}$lt_cv_objdir" >&6
5836 objdir=$lt_cv_objdir
5837
5838
5839
5840
5841
5842 case $host_os in
5843 aix3*)
5844 # AIX sometimes has problems with the GCC collect2 program. For some
5845 # reason, if we set the COLLECT_NAMES environment variable, the problems
5846 # vanish in a puff of smoke.
5847 if test "X${COLLECT_NAMES+set}" != Xset; then
5848 COLLECT_NAMES=
5849 export COLLECT_NAMES
5850 fi
5851 ;;
5852 esac
5853
5854 # Sed substitution that helps us do robust quoting. It backslashifies
5855 # metacharacters that are still active within double-quoted strings.
5856 Xsed='sed -e 1s/^X//'
5857 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5858
5859 # Same as above, but do not quote variable references.
5860 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5861
5862 # Sed substitution to delay expansion of an escaped shell variable in a
5863 # double_quote_subst'ed string.
5864 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5865
5866 # Sed substitution to avoid accidental globbing in evaled expressions
5867 no_glob_subst='s/\*/\\\*/g'
5868
5869 # Constants:
5870 rm="rm -f"
5871
5872 # Global variables:
5873 default_ofile=libtool
5874 can_build_shared=yes
5875
5876 # All known linkers require a `.a' archive for static linking (except MSVC,
5877 # which needs '.lib').
5878 libext=a
5879 ltmain="$ac_aux_dir/ltmain.sh"
5880 ofile="$default_ofile"
5881 with_gnu_ld="$lt_cv_prog_gnu_ld"
5882
5883 if test -n "$ac_tool_prefix"; then
5884 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5885 set dummy ${ac_tool_prefix}ar; ac_word=$2
5886 echo "$as_me:$LINENO: checking for $ac_word" >&5
5887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5888 if test "${ac_cv_prog_AR+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5890 else
5891 if test -n "$AR"; then
5892 ac_cv_prog_AR="$AR" # Let the user override the test.
5893 else
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 for as_dir in $PATH
5896 do
5897 IFS=$as_save_IFS
5898 test -z "$as_dir" && as_dir=.
5899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5901 ac_cv_prog_AR="${ac_tool_prefix}ar"
5902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5903 break 2
5904 fi
5905 done
5906 done
5907
5908 fi
5909 fi
5910 AR=$ac_cv_prog_AR
5911 if test -n "$AR"; then
5912 echo "$as_me:$LINENO: result: $AR" >&5
5913 echo "${ECHO_T}$AR" >&6
5914 else
5915 echo "$as_me:$LINENO: result: no" >&5
5916 echo "${ECHO_T}no" >&6
5917 fi
5918
5919 fi
5920 if test -z "$ac_cv_prog_AR"; then
5921 ac_ct_AR=$AR
5922 # Extract the first word of "ar", so it can be a program name with args.
5923 set dummy ar; ac_word=$2
5924 echo "$as_me:$LINENO: checking for $ac_word" >&5
5925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5926 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 else
5929 if test -n "$ac_ct_AR"; then
5930 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5931 else
5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933 for as_dir in $PATH
5934 do
5935 IFS=$as_save_IFS
5936 test -z "$as_dir" && as_dir=.
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5939 ac_cv_prog_ac_ct_AR="ar"
5940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5941 break 2
5942 fi
5943 done
5944 done
5945
5946 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5947 fi
5948 fi
5949 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5950 if test -n "$ac_ct_AR"; then
5951 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5952 echo "${ECHO_T}$ac_ct_AR" >&6
5953 else
5954 echo "$as_me:$LINENO: result: no" >&5
5955 echo "${ECHO_T}no" >&6
5956 fi
5957
5958 AR=$ac_ct_AR
5959 else
5960 AR="$ac_cv_prog_AR"
5961 fi
5962
5963 if test -n "$ac_tool_prefix"; then
5964 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5965 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5966 echo "$as_me:$LINENO: checking for $ac_word" >&5
5967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5968 if test "${ac_cv_prog_RANLIB+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5970 else
5971 if test -n "$RANLIB"; then
5972 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5973 else
5974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975 for as_dir in $PATH
5976 do
5977 IFS=$as_save_IFS
5978 test -z "$as_dir" && as_dir=.
5979 for ac_exec_ext in '' $ac_executable_extensions; do
5980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5981 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5983 break 2
5984 fi
5985 done
5986 done
5987
5988 fi
5989 fi
5990 RANLIB=$ac_cv_prog_RANLIB
5991 if test -n "$RANLIB"; then
5992 echo "$as_me:$LINENO: result: $RANLIB" >&5
5993 echo "${ECHO_T}$RANLIB" >&6
5994 else
5995 echo "$as_me:$LINENO: result: no" >&5
5996 echo "${ECHO_T}no" >&6
5997 fi
5998
5999 fi
6000 if test -z "$ac_cv_prog_RANLIB"; then
6001 ac_ct_RANLIB=$RANLIB
6002 # Extract the first word of "ranlib", so it can be a program name with args.
6003 set dummy ranlib; ac_word=$2
6004 echo "$as_me:$LINENO: checking for $ac_word" >&5
6005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6006 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6007 echo $ECHO_N "(cached) $ECHO_C" >&6
6008 else
6009 if test -n "$ac_ct_RANLIB"; then
6010 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6011 else
6012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013 for as_dir in $PATH
6014 do
6015 IFS=$as_save_IFS
6016 test -z "$as_dir" && as_dir=.
6017 for ac_exec_ext in '' $ac_executable_extensions; do
6018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6019 ac_cv_prog_ac_ct_RANLIB="ranlib"
6020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6021 break 2
6022 fi
6023 done
6024 done
6025
6026 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6027 fi
6028 fi
6029 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6030 if test -n "$ac_ct_RANLIB"; then
6031 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6032 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6033 else
6034 echo "$as_me:$LINENO: result: no" >&5
6035 echo "${ECHO_T}no" >&6
6036 fi
6037
6038 RANLIB=$ac_ct_RANLIB
6039 else
6040 RANLIB="$ac_cv_prog_RANLIB"
6041 fi
6042
6043 if test -n "$ac_tool_prefix"; then
6044 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6045 set dummy ${ac_tool_prefix}strip; ac_word=$2
6046 echo "$as_me:$LINENO: checking for $ac_word" >&5
6047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6048 if test "${ac_cv_prog_STRIP+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 else
6051 if test -n "$STRIP"; then
6052 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6053 else
6054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055 for as_dir in $PATH
6056 do
6057 IFS=$as_save_IFS
6058 test -z "$as_dir" && as_dir=.
6059 for ac_exec_ext in '' $ac_executable_extensions; do
6060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6061 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6063 break 2
6064 fi
6065 done
6066 done
6067
6068 fi
6069 fi
6070 STRIP=$ac_cv_prog_STRIP
6071 if test -n "$STRIP"; then
6072 echo "$as_me:$LINENO: result: $STRIP" >&5
6073 echo "${ECHO_T}$STRIP" >&6
6074 else
6075 echo "$as_me:$LINENO: result: no" >&5
6076 echo "${ECHO_T}no" >&6
6077 fi
6078
6079 fi
6080 if test -z "$ac_cv_prog_STRIP"; then
6081 ac_ct_STRIP=$STRIP
6082 # Extract the first word of "strip", so it can be a program name with args.
6083 set dummy strip; ac_word=$2
6084 echo "$as_me:$LINENO: checking for $ac_word" >&5
6085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6086 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 else
6089 if test -n "$ac_ct_STRIP"; then
6090 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6091 else
6092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093 for as_dir in $PATH
6094 do
6095 IFS=$as_save_IFS
6096 test -z "$as_dir" && as_dir=.
6097 for ac_exec_ext in '' $ac_executable_extensions; do
6098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6099 ac_cv_prog_ac_ct_STRIP="strip"
6100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6101 break 2
6102 fi
6103 done
6104 done
6105
6106 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6107 fi
6108 fi
6109 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6110 if test -n "$ac_ct_STRIP"; then
6111 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6112 echo "${ECHO_T}$ac_ct_STRIP" >&6
6113 else
6114 echo "$as_me:$LINENO: result: no" >&5
6115 echo "${ECHO_T}no" >&6
6116 fi
6117
6118 STRIP=$ac_ct_STRIP
6119 else
6120 STRIP="$ac_cv_prog_STRIP"
6121 fi
6122
6123
6124 old_CC="$CC"
6125 old_CFLAGS="$CFLAGS"
6126
6127 # Set sane defaults for various variables
6128 test -z "$AR" && AR=ar
6129 test -z "$AR_FLAGS" && AR_FLAGS=cru
6130 test -z "$AS" && AS=as
6131 test -z "$CC" && CC=cc
6132 test -z "$LTCC" && LTCC=$CC
6133 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6134 test -z "$DLLTOOL" && DLLTOOL=dlltool
6135 test -z "$LD" && LD=ld
6136 test -z "$LN_S" && LN_S="ln -s"
6137 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6138 test -z "$NM" && NM=nm
6139 test -z "$SED" && SED=sed
6140 test -z "$OBJDUMP" && OBJDUMP=objdump
6141 test -z "$RANLIB" && RANLIB=:
6142 test -z "$STRIP" && STRIP=:
6143 test -z "$ac_objext" && ac_objext=o
6144
6145 # Determine commands to create old-style static archives.
6146 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6147 old_postinstall_cmds='chmod 644 $oldlib'
6148 old_postuninstall_cmds=
6149
6150 if test -n "$RANLIB"; then
6151 case $host_os in
6152 openbsd*)
6153 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6154 ;;
6155 *)
6156 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6157 ;;
6158 esac
6159 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6160 fi
6161
6162 for cc_temp in $compiler""; do
6163 case $cc_temp in
6164 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6165 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6166 \-*) ;;
6167 *) break;;
6168 esac
6169 done
6170 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6171
6172
6173 # Only perform the check for file, if the check method requires it
6174 case $deplibs_check_method in
6175 file_magic*)
6176 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6177 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6178 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6179 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
6181 else
6182 case $MAGIC_CMD in
6183 [\\/*] | ?:[\\/]*)
6184 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6185 ;;
6186 *)
6187 lt_save_MAGIC_CMD="$MAGIC_CMD"
6188 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6189 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6190 for ac_dir in $ac_dummy; do
6191 IFS="$lt_save_ifs"
6192 test -z "$ac_dir" && ac_dir=.
6193 if test -f $ac_dir/${ac_tool_prefix}file; then
6194 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6195 if test -n "$file_magic_test_file"; then
6196 case $deplibs_check_method in
6197 "file_magic "*)
6198 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6199 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6200 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6201 $EGREP "$file_magic_regex" > /dev/null; then
6202 :
6203 else
6204 cat <<EOF 1>&2
6205
6206 *** Warning: the command libtool uses to detect shared libraries,
6207 *** $file_magic_cmd, produces output that libtool cannot recognize.
6208 *** The result is that libtool may fail to recognize shared libraries
6209 *** as such. This will affect the creation of libtool libraries that
6210 *** depend on shared libraries, but programs linked with such libtool
6211 *** libraries will work regardless of this problem. Nevertheless, you
6212 *** may want to report the problem to your system manager and/or to
6213 *** bug-libtool@gnu.org
6214
6215 EOF
6216 fi ;;
6217 esac
6218 fi
6219 break
6220 fi
6221 done
6222 IFS="$lt_save_ifs"
6223 MAGIC_CMD="$lt_save_MAGIC_CMD"
6224 ;;
6225 esac
6226 fi
6227
6228 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6229 if test -n "$MAGIC_CMD"; then
6230 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6231 echo "${ECHO_T}$MAGIC_CMD" >&6
6232 else
6233 echo "$as_me:$LINENO: result: no" >&5
6234 echo "${ECHO_T}no" >&6
6235 fi
6236
6237 if test -z "$lt_cv_path_MAGIC_CMD"; then
6238 if test -n "$ac_tool_prefix"; then
6239 echo "$as_me:$LINENO: checking for file" >&5
6240 echo $ECHO_N "checking for file... $ECHO_C" >&6
6241 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6243 else
6244 case $MAGIC_CMD in
6245 [\\/*] | ?:[\\/]*)
6246 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6247 ;;
6248 *)
6249 lt_save_MAGIC_CMD="$MAGIC_CMD"
6250 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6251 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6252 for ac_dir in $ac_dummy; do
6253 IFS="$lt_save_ifs"
6254 test -z "$ac_dir" && ac_dir=.
6255 if test -f $ac_dir/file; then
6256 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6257 if test -n "$file_magic_test_file"; then
6258 case $deplibs_check_method in
6259 "file_magic "*)
6260 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6261 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6262 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6263 $EGREP "$file_magic_regex" > /dev/null; then
6264 :
6265 else
6266 cat <<EOF 1>&2
6267
6268 *** Warning: the command libtool uses to detect shared libraries,
6269 *** $file_magic_cmd, produces output that libtool cannot recognize.
6270 *** The result is that libtool may fail to recognize shared libraries
6271 *** as such. This will affect the creation of libtool libraries that
6272 *** depend on shared libraries, but programs linked with such libtool
6273 *** libraries will work regardless of this problem. Nevertheless, you
6274 *** may want to report the problem to your system manager and/or to
6275 *** bug-libtool@gnu.org
6276
6277 EOF
6278 fi ;;
6279 esac
6280 fi
6281 break
6282 fi
6283 done
6284 IFS="$lt_save_ifs"
6285 MAGIC_CMD="$lt_save_MAGIC_CMD"
6286 ;;
6287 esac
6288 fi
6289
6290 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6291 if test -n "$MAGIC_CMD"; then
6292 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6293 echo "${ECHO_T}$MAGIC_CMD" >&6
6294 else
6295 echo "$as_me:$LINENO: result: no" >&5
6296 echo "${ECHO_T}no" >&6
6297 fi
6298
6299 else
6300 MAGIC_CMD=:
6301 fi
6302 fi
6303
6304 fi
6305 ;;
6306 esac
6307
6308 enable_dlopen=no
6309 enable_win32_dll=no
6310
6311 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6312 if test "${enable_libtool_lock+set}" = set; then
6313 enableval="$enable_libtool_lock"
6314
6315 fi;
6316 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6317
6318
6319 # Check whether --with-pic or --without-pic was given.
6320 if test "${with_pic+set}" = set; then
6321 withval="$with_pic"
6322 pic_mode="$withval"
6323 else
6324 pic_mode=default
6325 fi;
6326 test -z "$pic_mode" && pic_mode=default
6327
6328 # Use C for the default configuration in the libtool script
6329 tagname=
6330 lt_save_CC="$CC"
6331 ac_ext=c
6332 ac_cpp='$CPP $CPPFLAGS'
6333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6336
6337
6338 # Source file extension for C test sources.
6339 ac_ext=c
6340
6341 # Object file extension for compiled C test sources.
6342 objext=o
6343 objext=$objext
6344
6345 # Code to be used in simple compile tests
6346 lt_simple_compile_test_code="int some_variable = 0;\n"
6347
6348 # Code to be used in simple link tests
6349 lt_simple_link_test_code='int main(){return(0);}\n'
6350
6351
6352 # If no C compiler was specified, use CC.
6353 LTCC=${LTCC-"$CC"}
6354
6355 # If no C compiler flags were specified, use CFLAGS.
6356 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6357
6358 # Allow CC to be a program name with arguments.
6359 compiler=$CC
6360
6361
6362 # save warnings/boilerplate of simple test code
6363 ac_outfile=conftest.$ac_objext
6364 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6365 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6366 _lt_compiler_boilerplate=`cat conftest.err`
6367 $rm conftest*
6368
6369 ac_outfile=conftest.$ac_objext
6370 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6371 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6372 _lt_linker_boilerplate=`cat conftest.err`
6373 $rm conftest*
6374
6375
6376
6377 lt_prog_compiler_no_builtin_flag=
6378
6379 if test "$GCC" = yes; then
6380 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6381
6382
6383 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6384 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6385 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
6387 else
6388 lt_cv_prog_compiler_rtti_exceptions=no
6389 ac_outfile=conftest.$ac_objext
6390 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6391 lt_compiler_flag="-fno-rtti -fno-exceptions"
6392 # Insert the option either (1) after the last *FLAGS variable, or
6393 # (2) before a word containing "conftest.", or (3) at the end.
6394 # Note that $ac_compile itself does not contain backslashes and begins
6395 # with a dollar sign (not a hyphen), so the echo should work correctly.
6396 # The option is referenced via a variable to avoid confusing sed.
6397 lt_compile=`echo "$ac_compile" | $SED \
6398 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6399 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6400 -e 's:$: $lt_compiler_flag:'`
6401 (eval echo "\"\$as_me:6401: $lt_compile\"" >&5)
6402 (eval "$lt_compile" 2>conftest.err)
6403 ac_status=$?
6404 cat conftest.err >&5
6405 echo "$as_me:6405: \$? = $ac_status" >&5
6406 if (exit $ac_status) && test -s "$ac_outfile"; then
6407 # The compiler can only warn and ignore the option if not recognized
6408 # So say no if there are warnings other than the usual output.
6409 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6410 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6411 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6412 lt_cv_prog_compiler_rtti_exceptions=yes
6413 fi
6414 fi
6415 $rm conftest*
6416
6417 fi
6418 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6419 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6420
6421 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6422 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6423 else
6424 :
6425 fi
6426
6427 fi
6428
6429 lt_prog_compiler_wl=
6430 lt_prog_compiler_pic=
6431 lt_prog_compiler_static=
6432
6433 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6434 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6435
6436 if test "$GCC" = yes; then
6437 lt_prog_compiler_wl='-Wl,'
6438 lt_prog_compiler_static='-static'
6439
6440 case $host_os in
6441 aix*)
6442 # All AIX code is PIC.
6443 if test "$host_cpu" = ia64; then
6444 # AIX 5 now supports IA64 processor
6445 lt_prog_compiler_static='-Bstatic'
6446 fi
6447 ;;
6448
6449 amigaos*)
6450 # FIXME: we need at least 68020 code to build shared libraries, but
6451 # adding the `-m68020' flag to GCC prevents building anything better,
6452 # like `-m68040'.
6453 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6454 ;;
6455
6456 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6457 # PIC is the default for these OSes.
6458 ;;
6459
6460 mingw* | pw32* | os2*)
6461 # This hack is so that the source file can tell whether it is being
6462 # built for inclusion in a dll (and should export symbols for example).
6463 lt_prog_compiler_pic='-DDLL_EXPORT'
6464 ;;
6465
6466 darwin* | rhapsody*)
6467 # PIC is the default on this platform
6468 # Common symbols not allowed in MH_DYLIB files
6469 lt_prog_compiler_pic='-fno-common'
6470 ;;
6471
6472 interix3*)
6473 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6474 # Instead, we relocate shared libraries at runtime.
6475 ;;
6476
6477 msdosdjgpp*)
6478 # Just because we use GCC doesn't mean we suddenly get shared libraries
6479 # on systems that don't support them.
6480 lt_prog_compiler_can_build_shared=no
6481 enable_shared=no
6482 ;;
6483
6484 sysv4*MP*)
6485 if test -d /usr/nec; then
6486 lt_prog_compiler_pic=-Kconform_pic
6487 fi
6488 ;;
6489
6490 hpux*)
6491 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6492 # not for PA HP-UX.
6493 case $host_cpu in
6494 hppa*64*|ia64*)
6495 # +Z the default
6496 ;;
6497 *)
6498 lt_prog_compiler_pic='-fPIC'
6499 ;;
6500 esac
6501 ;;
6502
6503 *)
6504 lt_prog_compiler_pic='-fPIC'
6505 ;;
6506 esac
6507 else
6508 # PORTME Check for flag to pass linker flags through the system compiler.
6509 case $host_os in
6510 aix*)
6511 lt_prog_compiler_wl='-Wl,'
6512 if test "$host_cpu" = ia64; then
6513 # AIX 5 now supports IA64 processor
6514 lt_prog_compiler_static='-Bstatic'
6515 else
6516 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6517 fi
6518 ;;
6519 darwin*)
6520 # PIC is the default on this platform
6521 # Common symbols not allowed in MH_DYLIB files
6522 case $cc_basename in
6523 xlc*)
6524 lt_prog_compiler_pic='-qnocommon'
6525 lt_prog_compiler_wl='-Wl,'
6526 ;;
6527 esac
6528 ;;
6529
6530 mingw* | pw32* | os2*)
6531 # This hack is so that the source file can tell whether it is being
6532 # built for inclusion in a dll (and should export symbols for example).
6533 lt_prog_compiler_pic='-DDLL_EXPORT'
6534 ;;
6535
6536 hpux9* | hpux10* | hpux11*)
6537 lt_prog_compiler_wl='-Wl,'
6538 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6539 # not for PA HP-UX.
6540 case $host_cpu in
6541 hppa*64*|ia64*)
6542 # +Z the default
6543 ;;
6544 *)
6545 lt_prog_compiler_pic='+Z'
6546 ;;
6547 esac
6548 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6549 lt_prog_compiler_static='${wl}-a ${wl}archive'
6550 ;;
6551
6552 irix5* | irix6* | nonstopux*)
6553 lt_prog_compiler_wl='-Wl,'
6554 # PIC (with -KPIC) is the default.
6555 lt_prog_compiler_static='-non_shared'
6556 ;;
6557
6558 newsos6)
6559 lt_prog_compiler_pic='-KPIC'
6560 lt_prog_compiler_static='-Bstatic'
6561 ;;
6562
6563 linux*)
6564 case $cc_basename in
6565 icc* | ecc*)
6566 lt_prog_compiler_wl='-Wl,'
6567 lt_prog_compiler_pic='-KPIC'
6568 lt_prog_compiler_static='-static'
6569 ;;
6570 pgcc* | pgf77* | pgf90* | pgf95*)
6571 # Portland Group compilers (*not* the Pentium gcc compiler,
6572 # which looks to be a dead project)
6573 lt_prog_compiler_wl='-Wl,'
6574 lt_prog_compiler_pic='-fpic'
6575 lt_prog_compiler_static='-Bstatic'
6576 ;;
6577 ccc*)
6578 lt_prog_compiler_wl='-Wl,'
6579 # All Alpha code is PIC.
6580 lt_prog_compiler_static='-non_shared'
6581 ;;
6582 esac
6583 ;;
6584
6585 osf3* | osf4* | osf5*)
6586 lt_prog_compiler_wl='-Wl,'
6587 # All OSF/1 code is PIC.
6588 lt_prog_compiler_static='-non_shared'
6589 ;;
6590
6591 solaris*)
6592 lt_prog_compiler_pic='-KPIC'
6593 lt_prog_compiler_static='-Bstatic'
6594 case $cc_basename in
6595 f77* | f90* | f95*)
6596 lt_prog_compiler_wl='-Qoption ld ';;
6597 *)
6598 lt_prog_compiler_wl='-Wl,';;
6599 esac
6600 ;;
6601
6602 sunos4*)
6603 lt_prog_compiler_wl='-Qoption ld '
6604 lt_prog_compiler_pic='-PIC'
6605 lt_prog_compiler_static='-Bstatic'
6606 ;;
6607
6608 sysv4 | sysv4.2uw2* | sysv4.3*)
6609 lt_prog_compiler_wl='-Wl,'
6610 lt_prog_compiler_pic='-KPIC'
6611 lt_prog_compiler_static='-Bstatic'
6612 ;;
6613
6614 sysv4*MP*)
6615 if test -d /usr/nec ;then
6616 lt_prog_compiler_pic='-Kconform_pic'
6617 lt_prog_compiler_static='-Bstatic'
6618 fi
6619 ;;
6620
6621 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6622 lt_prog_compiler_wl='-Wl,'
6623 lt_prog_compiler_pic='-KPIC'
6624 lt_prog_compiler_static='-Bstatic'
6625 ;;
6626
6627 unicos*)
6628 lt_prog_compiler_wl='-Wl,'
6629 lt_prog_compiler_can_build_shared=no
6630 ;;
6631
6632 uts4*)
6633 lt_prog_compiler_pic='-pic'
6634 lt_prog_compiler_static='-Bstatic'
6635 ;;
6636
6637 *)
6638 lt_prog_compiler_can_build_shared=no
6639 ;;
6640 esac
6641 fi
6642
6643 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6644 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6645
6646 #
6647 # Check to make sure the PIC flag actually works.
6648 #
6649 if test -n "$lt_prog_compiler_pic"; then
6650
6651 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6652 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6653 if test "${lt_prog_compiler_pic_works+set}" = set; then
6654 echo $ECHO_N "(cached) $ECHO_C" >&6
6655 else
6656 lt_prog_compiler_pic_works=no
6657 ac_outfile=conftest.$ac_objext
6658 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6659 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6660 # Insert the option either (1) after the last *FLAGS variable, or
6661 # (2) before a word containing "conftest.", or (3) at the end.
6662 # Note that $ac_compile itself does not contain backslashes and begins
6663 # with a dollar sign (not a hyphen), so the echo should work correctly.
6664 # The option is referenced via a variable to avoid confusing sed.
6665 lt_compile=`echo "$ac_compile" | $SED \
6666 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6668 -e 's:$: $lt_compiler_flag:'`
6669 (eval echo "\"\$as_me:6669: $lt_compile\"" >&5)
6670 (eval "$lt_compile" 2>conftest.err)
6671 ac_status=$?
6672 cat conftest.err >&5
6673 echo "$as_me:6673: \$? = $ac_status" >&5
6674 if (exit $ac_status) && test -s "$ac_outfile"; then
6675 # The compiler can only warn and ignore the option if not recognized
6676 # So say no if there are warnings other than the usual output.
6677 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6678 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6679 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6680 lt_prog_compiler_pic_works=yes
6681 fi
6682 fi
6683 $rm conftest*
6684
6685 fi
6686 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6687 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6688
6689 if test x"$lt_prog_compiler_pic_works" = xyes; then
6690 case $lt_prog_compiler_pic in
6691 "" | " "*) ;;
6692 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6693 esac
6694 else
6695 lt_prog_compiler_pic=
6696 lt_prog_compiler_can_build_shared=no
6697 fi
6698
6699 fi
6700 case $host_os in
6701 # For platforms which do not support PIC, -DPIC is meaningless:
6702 *djgpp*)
6703 lt_prog_compiler_pic=
6704 ;;
6705 *)
6706 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6707 ;;
6708 esac
6709
6710 #
6711 # Check to make sure the static flag actually works.
6712 #
6713 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6714 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6715 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6716 if test "${lt_prog_compiler_static_works+set}" = set; then
6717 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 else
6719 lt_prog_compiler_static_works=no
6720 save_LDFLAGS="$LDFLAGS"
6721 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6722 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6723 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6724 # The linker can only warn and ignore the option if not recognized
6725 # So say no if there are warnings
6726 if test -s conftest.err; then
6727 # Append any errors to the config.log.
6728 cat conftest.err 1>&5
6729 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6730 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6731 if diff conftest.exp conftest.er2 >/dev/null; then
6732 lt_prog_compiler_static_works=yes
6733 fi
6734 else
6735 lt_prog_compiler_static_works=yes
6736 fi
6737 fi
6738 $rm conftest*
6739 LDFLAGS="$save_LDFLAGS"
6740
6741 fi
6742 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6743 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6744
6745 if test x"$lt_prog_compiler_static_works" = xyes; then
6746 :
6747 else
6748 lt_prog_compiler_static=
6749 fi
6750
6751
6752 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6753 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6754 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6755 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 else
6757 lt_cv_prog_compiler_c_o=no
6758 $rm -r conftest 2>/dev/null
6759 mkdir conftest
6760 cd conftest
6761 mkdir out
6762 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6763
6764 lt_compiler_flag="-o out/conftest2.$ac_objext"
6765 # Insert the option either (1) after the last *FLAGS variable, or
6766 # (2) before a word containing "conftest.", or (3) at the end.
6767 # Note that $ac_compile itself does not contain backslashes and begins
6768 # with a dollar sign (not a hyphen), so the echo should work correctly.
6769 lt_compile=`echo "$ac_compile" | $SED \
6770 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6771 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6772 -e 's:$: $lt_compiler_flag:'`
6773 (eval echo "\"\$as_me:6773: $lt_compile\"" >&5)
6774 (eval "$lt_compile" 2>out/conftest.err)
6775 ac_status=$?
6776 cat out/conftest.err >&5
6777 echo "$as_me:6777: \$? = $ac_status" >&5
6778 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6779 then
6780 # The compiler can only warn and ignore the option if not recognized
6781 # So say no if there are warnings
6782 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6783 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6784 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6785 lt_cv_prog_compiler_c_o=yes
6786 fi
6787 fi
6788 chmod u+w . 2>&5
6789 $rm conftest*
6790 # SGI C++ compiler will create directory out/ii_files/ for
6791 # template instantiation
6792 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6793 $rm out/* && rmdir out
6794 cd ..
6795 rmdir conftest
6796 $rm conftest*
6797
6798 fi
6799 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6800 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6801
6802
6803 hard_links="nottested"
6804 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6805 # do not overwrite the value of need_locks provided by the user
6806 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6807 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6808 hard_links=yes
6809 $rm conftest*
6810 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6811 touch conftest.a
6812 ln conftest.a conftest.b 2>&5 || hard_links=no
6813 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6814 echo "$as_me:$LINENO: result: $hard_links" >&5
6815 echo "${ECHO_T}$hard_links" >&6
6816 if test "$hard_links" = no; then
6817 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6818 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6819 need_locks=warn
6820 fi
6821 else
6822 need_locks=no
6823 fi
6824
6825 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6826 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6827
6828 runpath_var=
6829 allow_undefined_flag=
6830 enable_shared_with_static_runtimes=no
6831 archive_cmds=
6832 archive_expsym_cmds=
6833 old_archive_From_new_cmds=
6834 old_archive_from_expsyms_cmds=
6835 export_dynamic_flag_spec=
6836 whole_archive_flag_spec=
6837 thread_safe_flag_spec=
6838 hardcode_libdir_flag_spec=
6839 hardcode_libdir_flag_spec_ld=
6840 hardcode_libdir_separator=
6841 hardcode_direct=no
6842 hardcode_minus_L=no
6843 hardcode_shlibpath_var=unsupported
6844 link_all_deplibs=unknown
6845 hardcode_automatic=no
6846 module_cmds=
6847 module_expsym_cmds=
6848 always_export_symbols=no
6849 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6850 # include_expsyms should be a list of space-separated symbols to be *always*
6851 # included in the symbol list
6852 include_expsyms=
6853 # exclude_expsyms can be an extended regexp of symbols to exclude
6854 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6855 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6856 # as well as any symbol that contains `d'.
6857 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6858 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6859 # platforms (ab)use it in PIC code, but their linkers get confused if
6860 # the symbol is explicitly referenced. Since portable code cannot
6861 # rely on this symbol name, it's probably fine to never include it in
6862 # preloaded symbol tables.
6863 extract_expsyms_cmds=
6864 # Just being paranoid about ensuring that cc_basename is set.
6865 for cc_temp in $compiler""; do
6866 case $cc_temp in
6867 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6868 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6869 \-*) ;;
6870 *) break;;
6871 esac
6872 done
6873 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6874
6875 case $host_os in
6876 cygwin* | mingw* | pw32*)
6877 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6878 # When not using gcc, we currently assume that we are using
6879 # Microsoft Visual C++.
6880 if test "$GCC" != yes; then
6881 with_gnu_ld=no
6882 fi
6883 ;;
6884 interix*)
6885 # we just hope/assume this is gcc and not c89 (= MSVC++)
6886 with_gnu_ld=yes
6887 ;;
6888 openbsd*)
6889 with_gnu_ld=no
6890 ;;
6891 esac
6892
6893 ld_shlibs=yes
6894 if test "$with_gnu_ld" = yes; then
6895 # If archive_cmds runs LD, not CC, wlarc should be empty
6896 wlarc='${wl}'
6897
6898 # Set some defaults for GNU ld with shared library support. These
6899 # are reset later if shared libraries are not supported. Putting them
6900 # here allows them to be overridden if necessary.
6901 runpath_var=LD_RUN_PATH
6902 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6903 export_dynamic_flag_spec='${wl}--export-dynamic'
6904 # ancient GNU ld didn't support --whole-archive et. al.
6905 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6906 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6907 else
6908 whole_archive_flag_spec=
6909 fi
6910 supports_anon_versioning=no
6911 case `$LD -v 2>/dev/null` in
6912 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6913 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6914 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6915 *\ 2.11.*) ;; # other 2.11 versions
6916 *) supports_anon_versioning=yes ;;
6917 esac
6918
6919 # See if GNU ld supports shared libraries.
6920 case $host_os in
6921 aix3* | aix4* | aix5*)
6922 # On AIX/PPC, the GNU linker is very broken
6923 if test "$host_cpu" != ia64; then
6924 ld_shlibs=no
6925 cat <<EOF 1>&2
6926
6927 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6928 *** to be unable to reliably create shared libraries on AIX.
6929 *** Therefore, libtool is disabling shared libraries support. If you
6930 *** really care for shared libraries, you may want to modify your PATH
6931 *** so that a non-GNU linker is found, and then restart.
6932
6933 EOF
6934 fi
6935 ;;
6936
6937 amigaos*)
6938 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)'
6939 hardcode_libdir_flag_spec='-L$libdir'
6940 hardcode_minus_L=yes
6941
6942 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
6943 # that the semantics of dynamic libraries on AmigaOS, at least up
6944 # to version 4, is to share data among multiple programs linked
6945 # with the same dynamic library. Since this doesn't match the
6946 # behavior of shared libraries on other platforms, we can't use
6947 # them.
6948 ld_shlibs=no
6949 ;;
6950
6951 beos*)
6952 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6953 allow_undefined_flag=unsupported
6954 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
6955 # support --undefined. This deserves some investigation. FIXME
6956 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6957 else
6958 ld_shlibs=no
6959 fi
6960 ;;
6961
6962 cygwin* | mingw* | pw32*)
6963 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6964 # as there is no search path for DLLs.
6965 hardcode_libdir_flag_spec='-L$libdir'
6966 allow_undefined_flag=unsupported
6967 always_export_symbols=no
6968 enable_shared_with_static_runtimes=yes
6969 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6970
6971 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6972 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6973 # If the export-symbols file already is a .def file (1st line
6974 # is EXPORTS), use it as is; otherwise, prepend...
6975 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6976 cp $export_symbols $output_objdir/$soname.def;
6977 else
6978 echo EXPORTS > $output_objdir/$soname.def;
6979 cat $export_symbols >> $output_objdir/$soname.def;
6980 fi~
6981 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6982 else
6983 ld_shlibs=no
6984 fi
6985 ;;
6986
6987 interix3*)
6988 hardcode_direct=no
6989 hardcode_shlibpath_var=no
6990 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6991 export_dynamic_flag_spec='${wl}-E'
6992 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6993 # Instead, shared libraries are loaded at an image base (0x10000000 by
6994 # default) and relocated if they conflict, which is a slow very memory
6995 # consuming and fragmenting process. To avoid this, we pick a random,
6996 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6997 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6998 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6999 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'
7000 ;;
7001
7002 linux*)
7003 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7004 tmp_addflag=
7005 case $cc_basename,$host_cpu in
7006 pgcc*) # Portland Group C compiler
7007 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'
7008 tmp_addflag=' $pic_flag'
7009 ;;
7010 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7011 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'
7012 tmp_addflag=' $pic_flag -Mnomain' ;;
7013 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7014 tmp_addflag=' -i_dynamic' ;;
7015 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7016 tmp_addflag=' -i_dynamic -nofor_main' ;;
7017 ifc* | ifort*) # Intel Fortran compiler
7018 tmp_addflag=' -nofor_main' ;;
7019 esac
7020 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7021
7022 if test $supports_anon_versioning = yes; then
7023 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7024 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7025 $echo "local: *; };" >> $output_objdir/$libname.ver~
7026 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7027 fi
7028 else
7029 ld_shlibs=no
7030 fi
7031 ;;
7032
7033 netbsd*)
7034 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7035 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7036 wlarc=
7037 else
7038 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7039 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7040 fi
7041 ;;
7042
7043 solaris*)
7044 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7045 ld_shlibs=no
7046 cat <<EOF 1>&2
7047
7048 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7049 *** create shared libraries on Solaris systems. Therefore, libtool
7050 *** is disabling shared libraries support. We urge you to upgrade GNU
7051 *** binutils to release 2.9.1 or newer. Another option is to modify
7052 *** your PATH or compiler configuration so that the native linker is
7053 *** used, and then restart.
7054
7055 EOF
7056 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7058 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7059 else
7060 ld_shlibs=no
7061 fi
7062 ;;
7063
7064 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7065 case `$LD -v 2>&1` in
7066 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7067 ld_shlibs=no
7068 cat <<_LT_EOF 1>&2
7069
7070 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7071 *** reliably create shared libraries on SCO systems. Therefore, libtool
7072 *** is disabling shared libraries support. We urge you to upgrade GNU
7073 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7074 *** your PATH or compiler configuration so that the native linker is
7075 *** used, and then restart.
7076
7077 _LT_EOF
7078 ;;
7079 *)
7080 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7081 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7082 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7083 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7084 else
7085 ld_shlibs=no
7086 fi
7087 ;;
7088 esac
7089 ;;
7090
7091 sunos4*)
7092 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7093 wlarc=
7094 hardcode_direct=yes
7095 hardcode_shlibpath_var=no
7096 ;;
7097
7098 *)
7099 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7100 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7101 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7102 else
7103 ld_shlibs=no
7104 fi
7105 ;;
7106 esac
7107
7108 if test "$ld_shlibs" = no; then
7109 runpath_var=
7110 hardcode_libdir_flag_spec=
7111 export_dynamic_flag_spec=
7112 whole_archive_flag_spec=
7113 fi
7114 else
7115 # PORTME fill in a description of your system's linker (not GNU ld)
7116 case $host_os in
7117 aix3*)
7118 allow_undefined_flag=unsupported
7119 always_export_symbols=yes
7120 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'
7121 # Note: this linker hardcodes the directories in LIBPATH if there
7122 # are no directories specified by -L.
7123 hardcode_minus_L=yes
7124 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7125 # Neither direct hardcoding nor static linking is supported with a
7126 # broken collect2.
7127 hardcode_direct=unsupported
7128 fi
7129 ;;
7130
7131 aix4* | aix5*)
7132 if test "$host_cpu" = ia64; then
7133 # On IA64, the linker does run time linking by default, so we don't
7134 # have to do anything special.
7135 aix_use_runtimelinking=no
7136 exp_sym_flag='-Bexport'
7137 no_entry_flag=""
7138 else
7139 # If we're using GNU nm, then we don't want the "-C" option.
7140 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7141 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7142 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'
7143 else
7144 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'
7145 fi
7146 aix_use_runtimelinking=no
7147
7148 # Test if we are trying to use run time linking or normal
7149 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7150 # need to do runtime linking.
7151 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7152 for ld_flag in $LDFLAGS; do
7153 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7154 aix_use_runtimelinking=yes
7155 break
7156 fi
7157 done
7158 ;;
7159 esac
7160
7161 exp_sym_flag='-bexport'
7162 no_entry_flag='-bnoentry'
7163 fi
7164
7165 # When large executables or shared objects are built, AIX ld can
7166 # have problems creating the table of contents. If linking a library
7167 # or program results in "error TOC overflow" add -mminimal-toc to
7168 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7169 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7170
7171 archive_cmds=''
7172 hardcode_direct=yes
7173 hardcode_libdir_separator=':'
7174 link_all_deplibs=yes
7175
7176 if test "$GCC" = yes; then
7177 case $host_os in aix4.[012]|aix4.[012].*)
7178 # We only want to do this on AIX 4.2 and lower, the check
7179 # below for broken collect2 doesn't work under 4.3+
7180 collect2name=`${CC} -print-prog-name=collect2`
7181 if test -f "$collect2name" && \
7182 strings "$collect2name" | grep resolve_lib_name >/dev/null
7183 then
7184 # We have reworked collect2
7185 hardcode_direct=yes
7186 else
7187 # We have old collect2
7188 hardcode_direct=unsupported
7189 # It fails to find uninstalled libraries when the uninstalled
7190 # path is not listed in the libpath. Setting hardcode_minus_L
7191 # to unsupported forces relinking
7192 hardcode_minus_L=yes
7193 hardcode_libdir_flag_spec='-L$libdir'
7194 hardcode_libdir_separator=
7195 fi
7196 ;;
7197 esac
7198 shared_flag='-shared'
7199 if test "$aix_use_runtimelinking" = yes; then
7200 shared_flag="$shared_flag "'${wl}-G'
7201 fi
7202 else
7203 # not using gcc
7204 if test "$host_cpu" = ia64; then
7205 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7206 # chokes on -Wl,-G. The following line is correct:
7207 shared_flag='-G'
7208 else
7209 if test "$aix_use_runtimelinking" = yes; then
7210 shared_flag='${wl}-G'
7211 else
7212 shared_flag='${wl}-bM:SRE'
7213 fi
7214 fi
7215 fi
7216
7217 # It seems that -bexpall does not export symbols beginning with
7218 # underscore (_), so it is better to generate a list of symbols to export.
7219 always_export_symbols=yes
7220 if test "$aix_use_runtimelinking" = yes; then
7221 # Warning - without using the other runtime loading flags (-brtl),
7222 # -berok will link without error, but may produce a broken library.
7223 allow_undefined_flag='-berok'
7224 # Determine the default libpath from the value encoded in an empty executable.
7225 cat >conftest.$ac_ext <<_ACEOF
7226 /* confdefs.h. */
7227 _ACEOF
7228 cat confdefs.h >>conftest.$ac_ext
7229 cat >>conftest.$ac_ext <<_ACEOF
7230 /* end confdefs.h. */
7231
7232 int
7233 main ()
7234 {
7235
7236 ;
7237 return 0;
7238 }
7239 _ACEOF
7240 rm -f conftest.$ac_objext conftest$ac_exeext
7241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7242 (eval $ac_link) 2>conftest.er1
7243 ac_status=$?
7244 grep -v '^ *+' conftest.er1 >conftest.err
7245 rm -f conftest.er1
7246 cat conftest.err >&5
7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); } &&
7249 { ac_try='test -z "$ac_c_werror_flag"
7250 || test ! -s conftest.err'
7251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252 (eval $ac_try) 2>&5
7253 ac_status=$?
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); }; } &&
7256 { ac_try='test -s conftest$ac_exeext'
7257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7258 (eval $ac_try) 2>&5
7259 ac_status=$?
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); }; }; then
7262
7263 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7264 }'`
7265 # Check for a 64-bit object if we didn't find anything.
7266 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; }
7267 }'`; fi
7268 else
7269 echo "$as_me: failed program was:" >&5
7270 sed 's/^/| /' conftest.$ac_ext >&5
7271
7272 fi
7273 rm -f conftest.err conftest.$ac_objext \
7274 conftest$ac_exeext conftest.$ac_ext
7275 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7276
7277 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7278 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"
7279 else
7280 if test "$host_cpu" = ia64; then
7281 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7282 allow_undefined_flag="-z nodefs"
7283 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"
7284 else
7285 # Determine the default libpath from the value encoded in an empty executable.
7286 cat >conftest.$ac_ext <<_ACEOF
7287 /* confdefs.h. */
7288 _ACEOF
7289 cat confdefs.h >>conftest.$ac_ext
7290 cat >>conftest.$ac_ext <<_ACEOF
7291 /* end confdefs.h. */
7292
7293 int
7294 main ()
7295 {
7296
7297 ;
7298 return 0;
7299 }
7300 _ACEOF
7301 rm -f conftest.$ac_objext conftest$ac_exeext
7302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7303 (eval $ac_link) 2>conftest.er1
7304 ac_status=$?
7305 grep -v '^ *+' conftest.er1 >conftest.err
7306 rm -f conftest.er1
7307 cat conftest.err >&5
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); } &&
7310 { ac_try='test -z "$ac_c_werror_flag"
7311 || test ! -s conftest.err'
7312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7313 (eval $ac_try) 2>&5
7314 ac_status=$?
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); }; } &&
7317 { ac_try='test -s conftest$ac_exeext'
7318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7319 (eval $ac_try) 2>&5
7320 ac_status=$?
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); }; }; then
7323
7324 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7325 }'`
7326 # Check for a 64-bit object if we didn't find anything.
7327 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; }
7328 }'`; fi
7329 else
7330 echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7332
7333 fi
7334 rm -f conftest.err conftest.$ac_objext \
7335 conftest$ac_exeext conftest.$ac_ext
7336 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7337
7338 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7339 # Warning - without using the other run time loading flags,
7340 # -berok will link without error, but may produce a broken library.
7341 no_undefined_flag=' ${wl}-bernotok'
7342 allow_undefined_flag=' ${wl}-berok'
7343 # Exported symbols can be pulled into shared objects from archives
7344 whole_archive_flag_spec='$convenience'
7345 archive_cmds_need_lc=yes
7346 # This is similar to how AIX traditionally builds its shared libraries.
7347 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'
7348 fi
7349 fi
7350 ;;
7351
7352 amigaos*)
7353 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)'
7354 hardcode_libdir_flag_spec='-L$libdir'
7355 hardcode_minus_L=yes
7356 # see comment about different semantics on the GNU ld section
7357 ld_shlibs=no
7358 ;;
7359
7360 bsdi[45]*)
7361 export_dynamic_flag_spec=-rdynamic
7362 ;;
7363
7364 cygwin* | mingw* | pw32*)
7365 # When not using gcc, we currently assume that we are using
7366 # Microsoft Visual C++.
7367 # hardcode_libdir_flag_spec is actually meaningless, as there is
7368 # no search path for DLLs.
7369 hardcode_libdir_flag_spec=' '
7370 allow_undefined_flag=unsupported
7371 # Tell ltmain to make .lib files, not .a files.
7372 libext=lib
7373 # Tell ltmain to make .dll files, not .so files.
7374 shrext_cmds=".dll"
7375 # FIXME: Setting linknames here is a bad hack.
7376 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7377 # The linker will automatically build a .lib file if we build a DLL.
7378 old_archive_From_new_cmds='true'
7379 # FIXME: Should let the user specify the lib program.
7380 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7381 fix_srcfile_path='`cygpath -w "$srcfile"`'
7382 enable_shared_with_static_runtimes=yes
7383 ;;
7384
7385 darwin* | rhapsody*)
7386 case $host_os in
7387 rhapsody* | darwin1.[012])
7388 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7389 ;;
7390 *) # Darwin 1.3 on
7391 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7392 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7393 else
7394 case ${MACOSX_DEPLOYMENT_TARGET} in
7395 10.[012])
7396 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7397 ;;
7398 10.*)
7399 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7400 ;;
7401 esac
7402 fi
7403 ;;
7404 esac
7405 archive_cmds_need_lc=no
7406 hardcode_direct=no
7407 hardcode_automatic=yes
7408 hardcode_shlibpath_var=unsupported
7409 whole_archive_flag_spec=''
7410 link_all_deplibs=yes
7411 if test "$GCC" = yes ; then
7412 output_verbose_link_cmd='echo'
7413 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7414 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7415 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7416 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}'
7417 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}'
7418 else
7419 case $cc_basename in
7420 xlc*)
7421 output_verbose_link_cmd='echo'
7422 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7423 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7424 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7425 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}'
7426 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}'
7427 ;;
7428 *)
7429 ld_shlibs=no
7430 ;;
7431 esac
7432 fi
7433 ;;
7434
7435 dgux*)
7436 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7437 hardcode_libdir_flag_spec='-L$libdir'
7438 hardcode_shlibpath_var=no
7439 ;;
7440
7441 freebsd1*)
7442 ld_shlibs=no
7443 ;;
7444
7445 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7446 # support. Future versions do this automatically, but an explicit c++rt0.o
7447 # does not break anything, and helps significantly (at the cost of a little
7448 # extra space).
7449 freebsd2.2*)
7450 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7451 hardcode_libdir_flag_spec='-R$libdir'
7452 hardcode_direct=yes
7453 hardcode_shlibpath_var=no
7454 ;;
7455
7456 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7457 freebsd2*)
7458 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7459 hardcode_direct=yes
7460 hardcode_minus_L=yes
7461 hardcode_shlibpath_var=no
7462 ;;
7463
7464 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7465 freebsd* | kfreebsd*-gnu | dragonfly*)
7466 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7467 hardcode_libdir_flag_spec='-R$libdir'
7468 hardcode_direct=yes
7469 hardcode_shlibpath_var=no
7470 ;;
7471
7472 hpux9*)
7473 if test "$GCC" = yes; then
7474 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'
7475 else
7476 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'
7477 fi
7478 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7479 hardcode_libdir_separator=:
7480 hardcode_direct=yes
7481
7482 # hardcode_minus_L: Not really in the search PATH,
7483 # but as the default location of the library.
7484 hardcode_minus_L=yes
7485 export_dynamic_flag_spec='${wl}-E'
7486 ;;
7487
7488 hpux10*)
7489 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7490 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7491 else
7492 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7493 fi
7494 if test "$with_gnu_ld" = no; then
7495 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7496 hardcode_libdir_separator=:
7497
7498 hardcode_direct=yes
7499 export_dynamic_flag_spec='${wl}-E'
7500
7501 # hardcode_minus_L: Not really in the search PATH,
7502 # but as the default location of the library.
7503 hardcode_minus_L=yes
7504 fi
7505 ;;
7506
7507 hpux11*)
7508 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7509 case $host_cpu in
7510 hppa*64*)
7511 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7512 ;;
7513 ia64*)
7514 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7515 ;;
7516 *)
7517 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7518 ;;
7519 esac
7520 else
7521 case $host_cpu in
7522 hppa*64*)
7523 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7524 ;;
7525 ia64*)
7526 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7527 ;;
7528 *)
7529 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7530 ;;
7531 esac
7532 fi
7533 if test "$with_gnu_ld" = no; then
7534 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7535 hardcode_libdir_separator=:
7536
7537 case $host_cpu in
7538 hppa*64*|ia64*)
7539 hardcode_libdir_flag_spec_ld='+b $libdir'
7540 hardcode_direct=no
7541 hardcode_shlibpath_var=no
7542 ;;
7543 *)
7544 hardcode_direct=yes
7545 export_dynamic_flag_spec='${wl}-E'
7546
7547 # hardcode_minus_L: Not really in the search PATH,
7548 # but as the default location of the library.
7549 hardcode_minus_L=yes
7550 ;;
7551 esac
7552 fi
7553 ;;
7554
7555 irix5* | irix6* | nonstopux*)
7556 if test "$GCC" = yes; then
7557 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'
7558 else
7559 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'
7560 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7561 fi
7562 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7563 hardcode_libdir_separator=:
7564 link_all_deplibs=yes
7565 ;;
7566
7567 netbsd*)
7568 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7569 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7570 else
7571 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7572 fi
7573 hardcode_libdir_flag_spec='-R$libdir'
7574 hardcode_direct=yes
7575 hardcode_shlibpath_var=no
7576 ;;
7577
7578 newsos6)
7579 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7580 hardcode_direct=yes
7581 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7582 hardcode_libdir_separator=:
7583 hardcode_shlibpath_var=no
7584 ;;
7585
7586 openbsd*)
7587 hardcode_direct=yes
7588 hardcode_shlibpath_var=no
7589 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7590 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7591 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7592 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7593 export_dynamic_flag_spec='${wl}-E'
7594 else
7595 case $host_os in
7596 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7597 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7598 hardcode_libdir_flag_spec='-R$libdir'
7599 ;;
7600 *)
7601 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7602 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7603 ;;
7604 esac
7605 fi
7606 ;;
7607
7608 os2*)
7609 hardcode_libdir_flag_spec='-L$libdir'
7610 hardcode_minus_L=yes
7611 allow_undefined_flag=unsupported
7612 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'
7613 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7614 ;;
7615
7616 osf3*)
7617 if test "$GCC" = yes; then
7618 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7619 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'
7620 else
7621 allow_undefined_flag=' -expect_unresolved \*'
7622 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'
7623 fi
7624 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7625 hardcode_libdir_separator=:
7626 ;;
7627
7628 osf4* | osf5*) # as osf3* with the addition of -msym flag
7629 if test "$GCC" = yes; then
7630 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7631 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'
7632 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7633 else
7634 allow_undefined_flag=' -expect_unresolved \*'
7635 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'
7636 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7637 $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'
7638
7639 # Both c and cxx compiler support -rpath directly
7640 hardcode_libdir_flag_spec='-rpath $libdir'
7641 fi
7642 hardcode_libdir_separator=:
7643 ;;
7644
7645 solaris*)
7646 no_undefined_flag=' -z text'
7647 if test "$GCC" = yes; then
7648 wlarc='${wl}'
7649 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7650 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7651 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7652 else
7653 wlarc=''
7654 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7655 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7656 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7657 fi
7658 hardcode_libdir_flag_spec='-R$libdir'
7659 hardcode_shlibpath_var=no
7660 case $host_os in
7661 solaris2.[0-5] | solaris2.[0-5].*) ;;
7662 *)
7663 # The compiler driver will combine linker options so we
7664 # cannot just pass the convience library names through
7665 # without $wl, iff we do not link with $LD.
7666 # Luckily, gcc supports the same syntax we need for Sun Studio.
7667 # Supported since Solaris 2.6 (maybe 2.5.1?)
7668 case $wlarc in
7669 '')
7670 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7671 *)
7672 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' ;;
7673 esac ;;
7674 esac
7675 link_all_deplibs=yes
7676 ;;
7677
7678 sunos4*)
7679 if test "x$host_vendor" = xsequent; then
7680 # Use $CC to link under sequent, because it throws in some extra .o
7681 # files that make .init and .fini sections work.
7682 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7683 else
7684 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7685 fi
7686 hardcode_libdir_flag_spec='-L$libdir'
7687 hardcode_direct=yes
7688 hardcode_minus_L=yes
7689 hardcode_shlibpath_var=no
7690 ;;
7691
7692 sysv4)
7693 case $host_vendor in
7694 sni)
7695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7696 hardcode_direct=yes # is this really true???
7697 ;;
7698 siemens)
7699 ## LD is ld it makes a PLAMLIB
7700 ## CC just makes a GrossModule.
7701 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7702 reload_cmds='$CC -r -o $output$reload_objs'
7703 hardcode_direct=no
7704 ;;
7705 motorola)
7706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7707 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7708 ;;
7709 esac
7710 runpath_var='LD_RUN_PATH'
7711 hardcode_shlibpath_var=no
7712 ;;
7713
7714 sysv4.3*)
7715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7716 hardcode_shlibpath_var=no
7717 export_dynamic_flag_spec='-Bexport'
7718 ;;
7719
7720 sysv4*MP*)
7721 if test -d /usr/nec; then
7722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7723 hardcode_shlibpath_var=no
7724 runpath_var=LD_RUN_PATH
7725 hardcode_runpath_var=yes
7726 ld_shlibs=yes
7727 fi
7728 ;;
7729
7730 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7731 no_undefined_flag='${wl}-z,text'
7732 archive_cmds_need_lc=no
7733 hardcode_shlibpath_var=no
7734 runpath_var='LD_RUN_PATH'
7735
7736 if test "$GCC" = yes; then
7737 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7738 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7739 else
7740 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7741 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7742 fi
7743 ;;
7744
7745 sysv5* | sco3.2v5* | sco5v6*)
7746 # Note: We can NOT use -z defs as we might desire, because we do not
7747 # link with -lc, and that would cause any symbols used from libc to
7748 # always be unresolved, which means just about no library would
7749 # ever link correctly. If we're not using GNU ld we use -z text
7750 # though, which does catch some bad symbols but isn't as heavy-handed
7751 # as -z defs.
7752 no_undefined_flag='${wl}-z,text'
7753 allow_undefined_flag='${wl}-z,nodefs'
7754 archive_cmds_need_lc=no
7755 hardcode_shlibpath_var=no
7756 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7757 hardcode_libdir_separator=':'
7758 link_all_deplibs=yes
7759 export_dynamic_flag_spec='${wl}-Bexport'
7760 runpath_var='LD_RUN_PATH'
7761
7762 if test "$GCC" = yes; then
7763 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7764 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7765 else
7766 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7767 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7768 fi
7769 ;;
7770
7771 uts4*)
7772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7773 hardcode_libdir_flag_spec='-L$libdir'
7774 hardcode_shlibpath_var=no
7775 ;;
7776
7777 *)
7778 ld_shlibs=no
7779 ;;
7780 esac
7781 fi
7782
7783 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7784 echo "${ECHO_T}$ld_shlibs" >&6
7785 test "$ld_shlibs" = no && can_build_shared=no
7786
7787 #
7788 # Do we need to explicitly link libc?
7789 #
7790 case "x$archive_cmds_need_lc" in
7791 x|xyes)
7792 # Assume -lc should be added
7793 archive_cmds_need_lc=yes
7794
7795 if test "$enable_shared" = yes && test "$GCC" = yes; then
7796 case $archive_cmds in
7797 *'~'*)
7798 # FIXME: we may have to deal with multi-command sequences.
7799 ;;
7800 '$CC '*)
7801 # Test whether the compiler implicitly links with -lc since on some
7802 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7803 # to ld, don't add -lc before -lgcc.
7804 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7805 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7806 $rm conftest*
7807 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7808
7809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7810 (eval $ac_compile) 2>&5
7811 ac_status=$?
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); } 2>conftest.err; then
7814 soname=conftest
7815 lib=conftest
7816 libobjs=conftest.$ac_objext
7817 deplibs=
7818 wl=$lt_prog_compiler_wl
7819 pic_flag=$lt_prog_compiler_pic
7820 compiler_flags=-v
7821 linker_flags=-v
7822 verstring=
7823 output_objdir=.
7824 libname=conftest
7825 lt_save_allow_undefined_flag=$allow_undefined_flag
7826 allow_undefined_flag=
7827 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7828 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7829 ac_status=$?
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }
7832 then
7833 archive_cmds_need_lc=no
7834 else
7835 archive_cmds_need_lc=yes
7836 fi
7837 allow_undefined_flag=$lt_save_allow_undefined_flag
7838 else
7839 cat conftest.err 1>&5
7840 fi
7841 $rm conftest*
7842 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7843 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7844 ;;
7845 esac
7846 fi
7847 ;;
7848 esac
7849
7850 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7851 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7852 library_names_spec=
7853 libname_spec='lib$name'
7854 soname_spec=
7855 shrext_cmds=".so"
7856 postinstall_cmds=
7857 postuninstall_cmds=
7858 finish_cmds=
7859 finish_eval=
7860 shlibpath_var=
7861 shlibpath_overrides_runpath=unknown
7862 version_type=none
7863 dynamic_linker="$host_os ld.so"
7864 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7865 if test "$GCC" = yes; then
7866 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7867 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7868 # if the path contains ";" then we assume it to be the separator
7869 # otherwise default to the standard path separator (i.e. ":") - it is
7870 # assumed that no part of a normal pathname contains ";" but that should
7871 # okay in the real world where ";" in dirpaths is itself problematic.
7872 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7873 else
7874 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7875 fi
7876 else
7877 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7878 fi
7879 need_lib_prefix=unknown
7880 hardcode_into_libs=no
7881
7882 # when you set need_version to no, make sure it does not cause -set_version
7883 # flags to be left without arguments
7884 need_version=unknown
7885
7886 case $host_os in
7887 aix3*)
7888 version_type=linux
7889 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7890 shlibpath_var=LIBPATH
7891
7892 # AIX 3 has no versioning support, so we append a major version to the name.
7893 soname_spec='${libname}${release}${shared_ext}$major'
7894 ;;
7895
7896 aix4* | aix5*)
7897 version_type=linux
7898 need_lib_prefix=no
7899 need_version=no
7900 hardcode_into_libs=yes
7901 if test "$host_cpu" = ia64; then
7902 # AIX 5 supports IA64
7903 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7904 shlibpath_var=LD_LIBRARY_PATH
7905 else
7906 # With GCC up to 2.95.x, collect2 would create an import file
7907 # for dependence libraries. The import file would start with
7908 # the line `#! .'. This would cause the generated library to
7909 # depend on `.', always an invalid library. This was fixed in
7910 # development snapshots of GCC prior to 3.0.
7911 case $host_os in
7912 aix4 | aix4.[01] | aix4.[01].*)
7913 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7914 echo ' yes '
7915 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7916 :
7917 else
7918 can_build_shared=no
7919 fi
7920 ;;
7921 esac
7922 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7923 # soname into executable. Probably we can add versioning support to
7924 # collect2, so additional links can be useful in future.
7925 if test "$aix_use_runtimelinking" = yes; then
7926 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7927 # instead of lib<name>.a to let people know that these are not
7928 # typical AIX shared libraries.
7929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7930 else
7931 # We preserve .a as extension for shared libraries through AIX4.2
7932 # and later when we are not doing run time linking.
7933 library_names_spec='${libname}${release}.a $libname.a'
7934 soname_spec='${libname}${release}${shared_ext}$major'
7935 fi
7936 shlibpath_var=LIBPATH
7937 fi
7938 ;;
7939
7940 amigaos*)
7941 library_names_spec='$libname.ixlibrary $libname.a'
7942 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7943 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'
7944 ;;
7945
7946 beos*)
7947 library_names_spec='${libname}${shared_ext}'
7948 dynamic_linker="$host_os ld.so"
7949 shlibpath_var=LIBRARY_PATH
7950 ;;
7951
7952 bsdi[45]*)
7953 version_type=linux
7954 need_version=no
7955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7956 soname_spec='${libname}${release}${shared_ext}$major'
7957 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7958 shlibpath_var=LD_LIBRARY_PATH
7959 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7960 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7961 # the default ld.so.conf also contains /usr/contrib/lib and
7962 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7963 # libtool to hard-code these into programs
7964 ;;
7965
7966 cygwin* | mingw* | pw32*)
7967 version_type=windows
7968 shrext_cmds=".dll"
7969 need_version=no
7970 need_lib_prefix=no
7971
7972 case $GCC,$host_os in
7973 yes,cygwin* | yes,mingw* | yes,pw32*)
7974 library_names_spec='$libname.dll.a'
7975 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7976 postinstall_cmds='base_file=`basename \${file}`~
7977 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7978 dldir=$destdir/`dirname \$dlpath`~
7979 test -d \$dldir || mkdir -p \$dldir~
7980 $install_prog $dir/$dlname \$dldir/$dlname~
7981 chmod a+x \$dldir/$dlname'
7982 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7983 dlpath=$dir/\$dldll~
7984 $rm \$dlpath'
7985 shlibpath_overrides_runpath=yes
7986
7987 case $host_os in
7988 cygwin*)
7989 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7990 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7991 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7992 ;;
7993 mingw*)
7994 # MinGW DLLs use traditional 'lib' prefix
7995 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7996 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7997 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7998 # It is most probably a Windows format PATH printed by
7999 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8000 # path with ; separators, and with drive letters. We can handle the
8001 # drive letters (cygwin fileutils understands them), so leave them,
8002 # especially as we might pass files found there to a mingw objdump,
8003 # which wouldn't understand a cygwinified path. Ahh.
8004 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8005 else
8006 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8007 fi
8008 ;;
8009 pw32*)
8010 # pw32 DLLs use 'pw' prefix rather than 'lib'
8011 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8012 ;;
8013 esac
8014 ;;
8015
8016 *)
8017 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8018 ;;
8019 esac
8020 dynamic_linker='Win32 ld.exe'
8021 # FIXME: first we should search . and the directory the executable is in
8022 shlibpath_var=PATH
8023 ;;
8024
8025 darwin* | rhapsody*)
8026 dynamic_linker="$host_os dyld"
8027 version_type=darwin
8028 need_lib_prefix=no
8029 need_version=no
8030 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8031 soname_spec='${libname}${release}${major}$shared_ext'
8032 shlibpath_overrides_runpath=yes
8033 shlibpath_var=DYLD_LIBRARY_PATH
8034 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8035 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8036 if test "$GCC" = yes; then
8037 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"`
8038 else
8039 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8040 fi
8041 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8042 ;;
8043
8044 dgux*)
8045 version_type=linux
8046 need_lib_prefix=no
8047 need_version=no
8048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8049 soname_spec='${libname}${release}${shared_ext}$major'
8050 shlibpath_var=LD_LIBRARY_PATH
8051 ;;
8052
8053 freebsd1*)
8054 dynamic_linker=no
8055 ;;
8056
8057 kfreebsd*-gnu)
8058 version_type=linux
8059 need_lib_prefix=no
8060 need_version=no
8061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8062 soname_spec='${libname}${release}${shared_ext}$major'
8063 shlibpath_var=LD_LIBRARY_PATH
8064 shlibpath_overrides_runpath=no
8065 hardcode_into_libs=yes
8066 dynamic_linker='GNU ld.so'
8067 ;;
8068
8069 freebsd* | dragonfly*)
8070 # DragonFly does not have aout. When/if they implement a new
8071 # versioning mechanism, adjust this.
8072 if test -x /usr/bin/objformat; then
8073 objformat=`/usr/bin/objformat`
8074 else
8075 case $host_os in
8076 freebsd[123]*) objformat=aout ;;
8077 *) objformat=elf ;;
8078 esac
8079 fi
8080 version_type=freebsd-$objformat
8081 case $version_type in
8082 freebsd-elf*)
8083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8084 need_version=no
8085 need_lib_prefix=no
8086 ;;
8087 freebsd-*)
8088 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8089 need_version=yes
8090 ;;
8091 esac
8092 shlibpath_var=LD_LIBRARY_PATH
8093 case $host_os in
8094 freebsd2*)
8095 shlibpath_overrides_runpath=yes
8096 ;;
8097 freebsd3.[01]* | freebsdelf3.[01]*)
8098 shlibpath_overrides_runpath=yes
8099 hardcode_into_libs=yes
8100 ;;
8101 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8102 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8103 shlibpath_overrides_runpath=no
8104 hardcode_into_libs=yes
8105 ;;
8106 freebsd*) # from 4.6 on
8107 shlibpath_overrides_runpath=yes
8108 hardcode_into_libs=yes
8109 ;;
8110 esac
8111 ;;
8112
8113 gnu*)
8114 version_type=linux
8115 need_lib_prefix=no
8116 need_version=no
8117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8118 soname_spec='${libname}${release}${shared_ext}$major'
8119 shlibpath_var=LD_LIBRARY_PATH
8120 hardcode_into_libs=yes
8121 ;;
8122
8123 hpux9* | hpux10* | hpux11*)
8124 # Give a soname corresponding to the major version so that dld.sl refuses to
8125 # link against other versions.
8126 version_type=sunos
8127 need_lib_prefix=no
8128 need_version=no
8129 case $host_cpu in
8130 ia64*)
8131 shrext_cmds='.so'
8132 hardcode_into_libs=yes
8133 dynamic_linker="$host_os dld.so"
8134 shlibpath_var=LD_LIBRARY_PATH
8135 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8137 soname_spec='${libname}${release}${shared_ext}$major'
8138 if test "X$HPUX_IA64_MODE" = X32; then
8139 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8140 else
8141 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8142 fi
8143 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8144 ;;
8145 hppa*64*)
8146 shrext_cmds='.sl'
8147 hardcode_into_libs=yes
8148 dynamic_linker="$host_os dld.sl"
8149 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8150 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8152 soname_spec='${libname}${release}${shared_ext}$major'
8153 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8154 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8155 ;;
8156 *)
8157 shrext_cmds='.sl'
8158 dynamic_linker="$host_os dld.sl"
8159 shlibpath_var=SHLIB_PATH
8160 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8162 soname_spec='${libname}${release}${shared_ext}$major'
8163 ;;
8164 esac
8165 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8166 postinstall_cmds='chmod 555 $lib'
8167 ;;
8168
8169 interix3*)
8170 version_type=linux
8171 need_lib_prefix=no
8172 need_version=no
8173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8174 soname_spec='${libname}${release}${shared_ext}$major'
8175 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8176 shlibpath_var=LD_LIBRARY_PATH
8177 shlibpath_overrides_runpath=no
8178 hardcode_into_libs=yes
8179 ;;
8180
8181 irix5* | irix6* | nonstopux*)
8182 case $host_os in
8183 nonstopux*) version_type=nonstopux ;;
8184 *)
8185 if test "$lt_cv_prog_gnu_ld" = yes; then
8186 version_type=linux
8187 else
8188 version_type=irix
8189 fi ;;
8190 esac
8191 need_lib_prefix=no
8192 need_version=no
8193 soname_spec='${libname}${release}${shared_ext}$major'
8194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8195 case $host_os in
8196 irix5* | nonstopux*)
8197 libsuff= shlibsuff=
8198 ;;
8199 *)
8200 case $LD in # libtool.m4 will add one of these switches to LD
8201 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8202 libsuff= shlibsuff= libmagic=32-bit;;
8203 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8204 libsuff=32 shlibsuff=N32 libmagic=N32;;
8205 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8206 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8207 *) libsuff= shlibsuff= libmagic=never-match;;
8208 esac
8209 ;;
8210 esac
8211 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8212 shlibpath_overrides_runpath=no
8213 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8214 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8215 hardcode_into_libs=yes
8216 ;;
8217
8218 # No shared lib support for Linux oldld, aout, or coff.
8219 linux*oldld* | linux*aout* | linux*coff*)
8220 dynamic_linker=no
8221 ;;
8222
8223 # This must be Linux ELF.
8224 linux*)
8225 version_type=linux
8226 need_lib_prefix=no
8227 need_version=no
8228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8229 soname_spec='${libname}${release}${shared_ext}$major'
8230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8231 shlibpath_var=LD_LIBRARY_PATH
8232 shlibpath_overrides_runpath=no
8233 # This implies no fast_install, which is unacceptable.
8234 # Some rework will be needed to allow for fast_install
8235 # before this can be enabled.
8236 hardcode_into_libs=yes
8237
8238 # find out which ABI we are using
8239 libsuff=
8240 case "$host_cpu" in
8241 x86_64*|s390x*|powerpc64*)
8242 echo '#line 8242 "configure"' > conftest.$ac_ext
8243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8244 (eval $ac_compile) 2>&5
8245 ac_status=$?
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }; then
8248 case `/usr/bin/file conftest.$ac_objext` in
8249 *64-bit*)
8250 libsuff=64
8251 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8252 ;;
8253 esac
8254 fi
8255 rm -rf conftest*
8256 ;;
8257 esac
8258
8259 # Append ld.so.conf contents to the search path
8260 if test -f /etc/ld.so.conf; then
8261 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' ' '`
8262 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8263 fi
8264
8265 # We used to test for /lib/ld.so.1 and disable shared libraries on
8266 # powerpc, because MkLinux only supported shared libraries with the
8267 # GNU dynamic linker. Since this was broken with cross compilers,
8268 # most powerpc-linux boxes support dynamic linking these days and
8269 # people can always --disable-shared, the test was removed, and we
8270 # assume the GNU/Linux dynamic linker is in use.
8271 dynamic_linker='GNU/Linux ld.so'
8272 ;;
8273
8274 knetbsd*-gnu)
8275 version_type=linux
8276 need_lib_prefix=no
8277 need_version=no
8278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8279 soname_spec='${libname}${release}${shared_ext}$major'
8280 shlibpath_var=LD_LIBRARY_PATH
8281 shlibpath_overrides_runpath=no
8282 hardcode_into_libs=yes
8283 dynamic_linker='GNU ld.so'
8284 ;;
8285
8286 netbsd*)
8287 version_type=sunos
8288 need_lib_prefix=no
8289 need_version=no
8290 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8293 dynamic_linker='NetBSD (a.out) ld.so'
8294 else
8295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8296 soname_spec='${libname}${release}${shared_ext}$major'
8297 dynamic_linker='NetBSD ld.elf_so'
8298 fi
8299 shlibpath_var=LD_LIBRARY_PATH
8300 shlibpath_overrides_runpath=yes
8301 hardcode_into_libs=yes
8302 ;;
8303
8304 newsos6)
8305 version_type=linux
8306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8307 shlibpath_var=LD_LIBRARY_PATH
8308 shlibpath_overrides_runpath=yes
8309 ;;
8310
8311 nto-qnx*)
8312 version_type=linux
8313 need_lib_prefix=no
8314 need_version=no
8315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8316 soname_spec='${libname}${release}${shared_ext}$major'
8317 shlibpath_var=LD_LIBRARY_PATH
8318 shlibpath_overrides_runpath=yes
8319 ;;
8320
8321 openbsd*)
8322 version_type=sunos
8323 sys_lib_dlsearch_path_spec="/usr/lib"
8324 need_lib_prefix=no
8325 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8326 case $host_os in
8327 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8328 *) need_version=no ;;
8329 esac
8330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8331 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8332 shlibpath_var=LD_LIBRARY_PATH
8333 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8334 case $host_os in
8335 openbsd2.[89] | openbsd2.[89].*)
8336 shlibpath_overrides_runpath=no
8337 ;;
8338 *)
8339 shlibpath_overrides_runpath=yes
8340 ;;
8341 esac
8342 else
8343 shlibpath_overrides_runpath=yes
8344 fi
8345 ;;
8346
8347 os2*)
8348 libname_spec='$name'
8349 shrext_cmds=".dll"
8350 need_lib_prefix=no
8351 library_names_spec='$libname${shared_ext} $libname.a'
8352 dynamic_linker='OS/2 ld.exe'
8353 shlibpath_var=LIBPATH
8354 ;;
8355
8356 osf3* | osf4* | osf5*)
8357 version_type=osf
8358 need_lib_prefix=no
8359 need_version=no
8360 soname_spec='${libname}${release}${shared_ext}$major'
8361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8362 shlibpath_var=LD_LIBRARY_PATH
8363 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8364 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8365 ;;
8366
8367 solaris*)
8368 version_type=linux
8369 need_lib_prefix=no
8370 need_version=no
8371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8372 soname_spec='${libname}${release}${shared_ext}$major'
8373 shlibpath_var=LD_LIBRARY_PATH
8374 shlibpath_overrides_runpath=yes
8375 hardcode_into_libs=yes
8376 # ldd complains unless libraries are executable
8377 postinstall_cmds='chmod +x $lib'
8378 ;;
8379
8380 sunos4*)
8381 version_type=sunos
8382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8383 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8384 shlibpath_var=LD_LIBRARY_PATH
8385 shlibpath_overrides_runpath=yes
8386 if test "$with_gnu_ld" = yes; then
8387 need_lib_prefix=no
8388 fi
8389 need_version=yes
8390 ;;
8391
8392 sysv4 | sysv4.3*)
8393 version_type=linux
8394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8395 soname_spec='${libname}${release}${shared_ext}$major'
8396 shlibpath_var=LD_LIBRARY_PATH
8397 case $host_vendor in
8398 sni)
8399 shlibpath_overrides_runpath=no
8400 need_lib_prefix=no
8401 export_dynamic_flag_spec='${wl}-Blargedynsym'
8402 runpath_var=LD_RUN_PATH
8403 ;;
8404 siemens)
8405 need_lib_prefix=no
8406 ;;
8407 motorola)
8408 need_lib_prefix=no
8409 need_version=no
8410 shlibpath_overrides_runpath=no
8411 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8412 ;;
8413 esac
8414 ;;
8415
8416 sysv4*MP*)
8417 if test -d /usr/nec ;then
8418 version_type=linux
8419 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8420 soname_spec='$libname${shared_ext}.$major'
8421 shlibpath_var=LD_LIBRARY_PATH
8422 fi
8423 ;;
8424
8425 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8426 version_type=freebsd-elf
8427 need_lib_prefix=no
8428 need_version=no
8429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8430 soname_spec='${libname}${release}${shared_ext}$major'
8431 shlibpath_var=LD_LIBRARY_PATH
8432 hardcode_into_libs=yes
8433 if test "$with_gnu_ld" = yes; then
8434 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8435 shlibpath_overrides_runpath=no
8436 else
8437 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8438 shlibpath_overrides_runpath=yes
8439 case $host_os in
8440 sco3.2v5*)
8441 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8442 ;;
8443 esac
8444 fi
8445 sys_lib_dlsearch_path_spec='/usr/lib'
8446 ;;
8447
8448 uts4*)
8449 version_type=linux
8450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8451 soname_spec='${libname}${release}${shared_ext}$major'
8452 shlibpath_var=LD_LIBRARY_PATH
8453 ;;
8454
8455 *)
8456 dynamic_linker=no
8457 ;;
8458 esac
8459 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8460 echo "${ECHO_T}$dynamic_linker" >&6
8461 test "$dynamic_linker" = no && can_build_shared=no
8462
8463 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8464 if test "$GCC" = yes; then
8465 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8466 fi
8467
8468 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8469 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8470 hardcode_action=
8471 if test -n "$hardcode_libdir_flag_spec" || \
8472 test -n "$runpath_var" || \
8473 test "X$hardcode_automatic" = "Xyes" ; then
8474
8475 # We can hardcode non-existant directories.
8476 if test "$hardcode_direct" != no &&
8477 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8478 # have to relink, otherwise we might link with an installed library
8479 # when we should be linking with a yet-to-be-installed one
8480 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8481 test "$hardcode_minus_L" != no; then
8482 # Linking always hardcodes the temporary library directory.
8483 hardcode_action=relink
8484 else
8485 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8486 hardcode_action=immediate
8487 fi
8488 else
8489 # We cannot hardcode anything, or else we can only hardcode existing
8490 # directories.
8491 hardcode_action=unsupported
8492 fi
8493 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8494 echo "${ECHO_T}$hardcode_action" >&6
8495
8496 if test "$hardcode_action" = relink; then
8497 # Fast installation is not supported
8498 enable_fast_install=no
8499 elif test "$shlibpath_overrides_runpath" = yes ||
8500 test "$enable_shared" = no; then
8501 # Fast installation is not necessary
8502 enable_fast_install=needless
8503 fi
8504
8505 striplib=
8506 old_striplib=
8507 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8508 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8509 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8510 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8511 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8512 echo "$as_me:$LINENO: result: yes" >&5
8513 echo "${ECHO_T}yes" >&6
8514 else
8515 # FIXME - insert some real tests, host_os isn't really good enough
8516 case $host_os in
8517 darwin*)
8518 if test -n "$STRIP" ; then
8519 striplib="$STRIP -x"
8520 echo "$as_me:$LINENO: result: yes" >&5
8521 echo "${ECHO_T}yes" >&6
8522 else
8523 echo "$as_me:$LINENO: result: no" >&5
8524 echo "${ECHO_T}no" >&6
8525 fi
8526 ;;
8527 *)
8528 echo "$as_me:$LINENO: result: no" >&5
8529 echo "${ECHO_T}no" >&6
8530 ;;
8531 esac
8532 fi
8533
8534 if test "x$enable_dlopen" != xyes; then
8535 enable_dlopen=unknown
8536 enable_dlopen_self=unknown
8537 enable_dlopen_self_static=unknown
8538 else
8539 lt_cv_dlopen=no
8540 lt_cv_dlopen_libs=
8541
8542 case $host_os in
8543 beos*)
8544 lt_cv_dlopen="load_add_on"
8545 lt_cv_dlopen_libs=
8546 lt_cv_dlopen_self=yes
8547 ;;
8548
8549 mingw* | pw32*)
8550 lt_cv_dlopen="LoadLibrary"
8551 lt_cv_dlopen_libs=
8552 ;;
8553
8554 cygwin*)
8555 lt_cv_dlopen="dlopen"
8556 lt_cv_dlopen_libs=
8557 ;;
8558
8559 darwin*)
8560 # if libdl is installed we need to link against it
8561 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8562 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8563 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8564 echo $ECHO_N "(cached) $ECHO_C" >&6
8565 else
8566 ac_check_lib_save_LIBS=$LIBS
8567 LIBS="-ldl $LIBS"
8568 cat >conftest.$ac_ext <<_ACEOF
8569 /* confdefs.h. */
8570 _ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h. */
8574
8575 /* Override any gcc2 internal prototype to avoid an error. */
8576 #ifdef __cplusplus
8577 extern "C"
8578 #endif
8579 /* We use char because int might match the return type of a gcc2
8580 builtin and then its argument prototype would still apply. */
8581 char dlopen ();
8582 int
8583 main ()
8584 {
8585 dlopen ();
8586 ;
8587 return 0;
8588 }
8589 _ACEOF
8590 rm -f conftest.$ac_objext conftest$ac_exeext
8591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8592 (eval $ac_link) 2>conftest.er1
8593 ac_status=$?
8594 grep -v '^ *+' conftest.er1 >conftest.err
8595 rm -f conftest.er1
8596 cat conftest.err >&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); } &&
8599 { ac_try='test -z "$ac_c_werror_flag"
8600 || test ! -s conftest.err'
8601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602 (eval $ac_try) 2>&5
8603 ac_status=$?
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); }; } &&
8606 { ac_try='test -s conftest$ac_exeext'
8607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8608 (eval $ac_try) 2>&5
8609 ac_status=$?
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); }; }; then
8612 ac_cv_lib_dl_dlopen=yes
8613 else
8614 echo "$as_me: failed program was:" >&5
8615 sed 's/^/| /' conftest.$ac_ext >&5
8616
8617 ac_cv_lib_dl_dlopen=no
8618 fi
8619 rm -f conftest.err conftest.$ac_objext \
8620 conftest$ac_exeext conftest.$ac_ext
8621 LIBS=$ac_check_lib_save_LIBS
8622 fi
8623 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8624 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8625 if test $ac_cv_lib_dl_dlopen = yes; then
8626 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8627 else
8628
8629 lt_cv_dlopen="dyld"
8630 lt_cv_dlopen_libs=
8631 lt_cv_dlopen_self=yes
8632
8633 fi
8634
8635 ;;
8636
8637 *)
8638 echo "$as_me:$LINENO: checking for shl_load" >&5
8639 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8640 if test "${ac_cv_func_shl_load+set}" = set; then
8641 echo $ECHO_N "(cached) $ECHO_C" >&6
8642 else
8643 cat >conftest.$ac_ext <<_ACEOF
8644 /* confdefs.h. */
8645 _ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h. */
8649 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8651 #define shl_load innocuous_shl_load
8652
8653 /* System header to define __stub macros and hopefully few prototypes,
8654 which can conflict with char shl_load (); below.
8655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8656 <limits.h> exists even on freestanding compilers. */
8657
8658 #ifdef __STDC__
8659 # include <limits.h>
8660 #else
8661 # include <assert.h>
8662 #endif
8663
8664 #undef shl_load
8665
8666 /* Override any gcc2 internal prototype to avoid an error. */
8667 #ifdef __cplusplus
8668 extern "C"
8669 {
8670 #endif
8671 /* We use char because int might match the return type of a gcc2
8672 builtin and then its argument prototype would still apply. */
8673 char shl_load ();
8674 /* The GNU C library defines this for functions which it implements
8675 to always fail with ENOSYS. Some functions are actually named
8676 something starting with __ and the normal name is an alias. */
8677 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8678 choke me
8679 #else
8680 char (*f) () = shl_load;
8681 #endif
8682 #ifdef __cplusplus
8683 }
8684 #endif
8685
8686 int
8687 main ()
8688 {
8689 return f != shl_load;
8690 ;
8691 return 0;
8692 }
8693 _ACEOF
8694 rm -f conftest.$ac_objext conftest$ac_exeext
8695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8696 (eval $ac_link) 2>conftest.er1
8697 ac_status=$?
8698 grep -v '^ *+' conftest.er1 >conftest.err
8699 rm -f conftest.er1
8700 cat conftest.err >&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); } &&
8703 { ac_try='test -z "$ac_c_werror_flag"
8704 || test ! -s conftest.err'
8705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8706 (eval $ac_try) 2>&5
8707 ac_status=$?
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); }; } &&
8710 { ac_try='test -s conftest$ac_exeext'
8711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8712 (eval $ac_try) 2>&5
8713 ac_status=$?
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); }; }; then
8716 ac_cv_func_shl_load=yes
8717 else
8718 echo "$as_me: failed program was:" >&5
8719 sed 's/^/| /' conftest.$ac_ext >&5
8720
8721 ac_cv_func_shl_load=no
8722 fi
8723 rm -f conftest.err conftest.$ac_objext \
8724 conftest$ac_exeext conftest.$ac_ext
8725 fi
8726 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8727 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8728 if test $ac_cv_func_shl_load = yes; then
8729 lt_cv_dlopen="shl_load"
8730 else
8731 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8732 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8733 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8734 echo $ECHO_N "(cached) $ECHO_C" >&6
8735 else
8736 ac_check_lib_save_LIBS=$LIBS
8737 LIBS="-ldld $LIBS"
8738 cat >conftest.$ac_ext <<_ACEOF
8739 /* confdefs.h. */
8740 _ACEOF
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8744
8745 /* Override any gcc2 internal prototype to avoid an error. */
8746 #ifdef __cplusplus
8747 extern "C"
8748 #endif
8749 /* We use char because int might match the return type of a gcc2
8750 builtin and then its argument prototype would still apply. */
8751 char shl_load ();
8752 int
8753 main ()
8754 {
8755 shl_load ();
8756 ;
8757 return 0;
8758 }
8759 _ACEOF
8760 rm -f conftest.$ac_objext conftest$ac_exeext
8761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8762 (eval $ac_link) 2>conftest.er1
8763 ac_status=$?
8764 grep -v '^ *+' conftest.er1 >conftest.err
8765 rm -f conftest.er1
8766 cat conftest.err >&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); } &&
8769 { ac_try='test -z "$ac_c_werror_flag"
8770 || test ! -s conftest.err'
8771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772 (eval $ac_try) 2>&5
8773 ac_status=$?
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); }; } &&
8776 { ac_try='test -s conftest$ac_exeext'
8777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778 (eval $ac_try) 2>&5
8779 ac_status=$?
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); }; }; then
8782 ac_cv_lib_dld_shl_load=yes
8783 else
8784 echo "$as_me: failed program was:" >&5
8785 sed 's/^/| /' conftest.$ac_ext >&5
8786
8787 ac_cv_lib_dld_shl_load=no
8788 fi
8789 rm -f conftest.err conftest.$ac_objext \
8790 conftest$ac_exeext conftest.$ac_ext
8791 LIBS=$ac_check_lib_save_LIBS
8792 fi
8793 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8794 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8795 if test $ac_cv_lib_dld_shl_load = yes; then
8796 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8797 else
8798 echo "$as_me:$LINENO: checking for dlopen" >&5
8799 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8800 if test "${ac_cv_func_dlopen+set}" = set; then
8801 echo $ECHO_N "(cached) $ECHO_C" >&6
8802 else
8803 cat >conftest.$ac_ext <<_ACEOF
8804 /* confdefs.h. */
8805 _ACEOF
8806 cat confdefs.h >>conftest.$ac_ext
8807 cat >>conftest.$ac_ext <<_ACEOF
8808 /* end confdefs.h. */
8809 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8811 #define dlopen innocuous_dlopen
8812
8813 /* System header to define __stub macros and hopefully few prototypes,
8814 which can conflict with char dlopen (); below.
8815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8816 <limits.h> exists even on freestanding compilers. */
8817
8818 #ifdef __STDC__
8819 # include <limits.h>
8820 #else
8821 # include <assert.h>
8822 #endif
8823
8824 #undef dlopen
8825
8826 /* Override any gcc2 internal prototype to avoid an error. */
8827 #ifdef __cplusplus
8828 extern "C"
8829 {
8830 #endif
8831 /* We use char because int might match the return type of a gcc2
8832 builtin and then its argument prototype would still apply. */
8833 char dlopen ();
8834 /* The GNU C library defines this for functions which it implements
8835 to always fail with ENOSYS. Some functions are actually named
8836 something starting with __ and the normal name is an alias. */
8837 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8838 choke me
8839 #else
8840 char (*f) () = dlopen;
8841 #endif
8842 #ifdef __cplusplus
8843 }
8844 #endif
8845
8846 int
8847 main ()
8848 {
8849 return f != dlopen;
8850 ;
8851 return 0;
8852 }
8853 _ACEOF
8854 rm -f conftest.$ac_objext conftest$ac_exeext
8855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8856 (eval $ac_link) 2>conftest.er1
8857 ac_status=$?
8858 grep -v '^ *+' conftest.er1 >conftest.err
8859 rm -f conftest.er1
8860 cat conftest.err >&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); } &&
8863 { ac_try='test -z "$ac_c_werror_flag"
8864 || test ! -s conftest.err'
8865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8866 (eval $ac_try) 2>&5
8867 ac_status=$?
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); }; } &&
8870 { ac_try='test -s conftest$ac_exeext'
8871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8872 (eval $ac_try) 2>&5
8873 ac_status=$?
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); }; }; then
8876 ac_cv_func_dlopen=yes
8877 else
8878 echo "$as_me: failed program was:" >&5
8879 sed 's/^/| /' conftest.$ac_ext >&5
8880
8881 ac_cv_func_dlopen=no
8882 fi
8883 rm -f conftest.err conftest.$ac_objext \
8884 conftest$ac_exeext conftest.$ac_ext
8885 fi
8886 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8887 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8888 if test $ac_cv_func_dlopen = yes; then
8889 lt_cv_dlopen="dlopen"
8890 else
8891 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8892 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8893 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8894 echo $ECHO_N "(cached) $ECHO_C" >&6
8895 else
8896 ac_check_lib_save_LIBS=$LIBS
8897 LIBS="-ldl $LIBS"
8898 cat >conftest.$ac_ext <<_ACEOF
8899 /* confdefs.h. */
8900 _ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h. */
8904
8905 /* Override any gcc2 internal prototype to avoid an error. */
8906 #ifdef __cplusplus
8907 extern "C"
8908 #endif
8909 /* We use char because int might match the return type of a gcc2
8910 builtin and then its argument prototype would still apply. */
8911 char dlopen ();
8912 int
8913 main ()
8914 {
8915 dlopen ();
8916 ;
8917 return 0;
8918 }
8919 _ACEOF
8920 rm -f conftest.$ac_objext conftest$ac_exeext
8921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8922 (eval $ac_link) 2>conftest.er1
8923 ac_status=$?
8924 grep -v '^ *+' conftest.er1 >conftest.err
8925 rm -f conftest.er1
8926 cat conftest.err >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } &&
8929 { ac_try='test -z "$ac_c_werror_flag"
8930 || test ! -s conftest.err'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 (eval $ac_try) 2>&5
8933 ac_status=$?
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; } &&
8936 { ac_try='test -s conftest$ac_exeext'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938 (eval $ac_try) 2>&5
8939 ac_status=$?
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; }; then
8942 ac_cv_lib_dl_dlopen=yes
8943 else
8944 echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.$ac_ext >&5
8946
8947 ac_cv_lib_dl_dlopen=no
8948 fi
8949 rm -f conftest.err conftest.$ac_objext \
8950 conftest$ac_exeext conftest.$ac_ext
8951 LIBS=$ac_check_lib_save_LIBS
8952 fi
8953 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8954 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8955 if test $ac_cv_lib_dl_dlopen = yes; then
8956 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8957 else
8958 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8959 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8960 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8961 echo $ECHO_N "(cached) $ECHO_C" >&6
8962 else
8963 ac_check_lib_save_LIBS=$LIBS
8964 LIBS="-lsvld $LIBS"
8965 cat >conftest.$ac_ext <<_ACEOF
8966 /* confdefs.h. */
8967 _ACEOF
8968 cat confdefs.h >>conftest.$ac_ext
8969 cat >>conftest.$ac_ext <<_ACEOF
8970 /* end confdefs.h. */
8971
8972 /* Override any gcc2 internal prototype to avoid an error. */
8973 #ifdef __cplusplus
8974 extern "C"
8975 #endif
8976 /* We use char because int might match the return type of a gcc2
8977 builtin and then its argument prototype would still apply. */
8978 char dlopen ();
8979 int
8980 main ()
8981 {
8982 dlopen ();
8983 ;
8984 return 0;
8985 }
8986 _ACEOF
8987 rm -f conftest.$ac_objext conftest$ac_exeext
8988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8989 (eval $ac_link) 2>conftest.er1
8990 ac_status=$?
8991 grep -v '^ *+' conftest.er1 >conftest.err
8992 rm -f conftest.er1
8993 cat conftest.err >&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); } &&
8996 { ac_try='test -z "$ac_c_werror_flag"
8997 || test ! -s conftest.err'
8998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8999 (eval $ac_try) 2>&5
9000 ac_status=$?
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); }; } &&
9003 { ac_try='test -s conftest$ac_exeext'
9004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005 (eval $ac_try) 2>&5
9006 ac_status=$?
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); }; }; then
9009 ac_cv_lib_svld_dlopen=yes
9010 else
9011 echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.$ac_ext >&5
9013
9014 ac_cv_lib_svld_dlopen=no
9015 fi
9016 rm -f conftest.err conftest.$ac_objext \
9017 conftest$ac_exeext conftest.$ac_ext
9018 LIBS=$ac_check_lib_save_LIBS
9019 fi
9020 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9021 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9022 if test $ac_cv_lib_svld_dlopen = yes; then
9023 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9024 else
9025 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9026 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9027 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9028 echo $ECHO_N "(cached) $ECHO_C" >&6
9029 else
9030 ac_check_lib_save_LIBS=$LIBS
9031 LIBS="-ldld $LIBS"
9032 cat >conftest.$ac_ext <<_ACEOF
9033 /* confdefs.h. */
9034 _ACEOF
9035 cat confdefs.h >>conftest.$ac_ext
9036 cat >>conftest.$ac_ext <<_ACEOF
9037 /* end confdefs.h. */
9038
9039 /* Override any gcc2 internal prototype to avoid an error. */
9040 #ifdef __cplusplus
9041 extern "C"
9042 #endif
9043 /* We use char because int might match the return type of a gcc2
9044 builtin and then its argument prototype would still apply. */
9045 char dld_link ();
9046 int
9047 main ()
9048 {
9049 dld_link ();
9050 ;
9051 return 0;
9052 }
9053 _ACEOF
9054 rm -f conftest.$ac_objext conftest$ac_exeext
9055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9056 (eval $ac_link) 2>conftest.er1
9057 ac_status=$?
9058 grep -v '^ *+' conftest.er1 >conftest.err
9059 rm -f conftest.er1
9060 cat conftest.err >&5
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); } &&
9063 { ac_try='test -z "$ac_c_werror_flag"
9064 || test ! -s conftest.err'
9065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066 (eval $ac_try) 2>&5
9067 ac_status=$?
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; } &&
9070 { ac_try='test -s conftest$ac_exeext'
9071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9072 (eval $ac_try) 2>&5
9073 ac_status=$?
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); }; }; then
9076 ac_cv_lib_dld_dld_link=yes
9077 else
9078 echo "$as_me: failed program was:" >&5
9079 sed 's/^/| /' conftest.$ac_ext >&5
9080
9081 ac_cv_lib_dld_dld_link=no
9082 fi
9083 rm -f conftest.err conftest.$ac_objext \
9084 conftest$ac_exeext conftest.$ac_ext
9085 LIBS=$ac_check_lib_save_LIBS
9086 fi
9087 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9088 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9089 if test $ac_cv_lib_dld_dld_link = yes; then
9090 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9091 fi
9092
9093
9094 fi
9095
9096
9097 fi
9098
9099
9100 fi
9101
9102
9103 fi
9104
9105
9106 fi
9107
9108 ;;
9109 esac
9110
9111 if test "x$lt_cv_dlopen" != xno; then
9112 enable_dlopen=yes
9113 else
9114 enable_dlopen=no
9115 fi
9116
9117 case $lt_cv_dlopen in
9118 dlopen)
9119 save_CPPFLAGS="$CPPFLAGS"
9120 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9121
9122 save_LDFLAGS="$LDFLAGS"
9123 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9124
9125 save_LIBS="$LIBS"
9126 LIBS="$lt_cv_dlopen_libs $LIBS"
9127
9128 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9129 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9130 if test "${lt_cv_dlopen_self+set}" = set; then
9131 echo $ECHO_N "(cached) $ECHO_C" >&6
9132 else
9133 if test "$cross_compiling" = yes; then :
9134 lt_cv_dlopen_self=cross
9135 else
9136 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9137 lt_status=$lt_dlunknown
9138 cat > conftest.$ac_ext <<EOF
9139 #line 9139 "configure"
9140 #include "confdefs.h"
9141
9142 #if HAVE_DLFCN_H
9143 #include <dlfcn.h>
9144 #endif
9145
9146 #include <stdio.h>
9147
9148 #ifdef RTLD_GLOBAL
9149 # define LT_DLGLOBAL RTLD_GLOBAL
9150 #else
9151 # ifdef DL_GLOBAL
9152 # define LT_DLGLOBAL DL_GLOBAL
9153 # else
9154 # define LT_DLGLOBAL 0
9155 # endif
9156 #endif
9157
9158 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9159 find out it does not work in some platform. */
9160 #ifndef LT_DLLAZY_OR_NOW
9161 # ifdef RTLD_LAZY
9162 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9163 # else
9164 # ifdef DL_LAZY
9165 # define LT_DLLAZY_OR_NOW DL_LAZY
9166 # else
9167 # ifdef RTLD_NOW
9168 # define LT_DLLAZY_OR_NOW RTLD_NOW
9169 # else
9170 # ifdef DL_NOW
9171 # define LT_DLLAZY_OR_NOW DL_NOW
9172 # else
9173 # define LT_DLLAZY_OR_NOW 0
9174 # endif
9175 # endif
9176 # endif
9177 # endif
9178 #endif
9179
9180 #ifdef __cplusplus
9181 extern "C" void exit (int);
9182 #endif
9183
9184 void fnord() { int i=42;}
9185 int main ()
9186 {
9187 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9188 int status = $lt_dlunknown;
9189
9190 if (self)
9191 {
9192 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9193 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9194 /* dlclose (self); */
9195 }
9196 else
9197 puts (dlerror ());
9198
9199 exit (status);
9200 }
9201 EOF
9202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9203 (eval $ac_link) 2>&5
9204 ac_status=$?
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9207 (./conftest; exit; ) >&5 2>/dev/null
9208 lt_status=$?
9209 case x$lt_status in
9210 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9211 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9212 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9213 esac
9214 else :
9215 # compilation failed
9216 lt_cv_dlopen_self=no
9217 fi
9218 fi
9219 rm -fr conftest*
9220
9221
9222 fi
9223 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9224 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9225
9226 if test "x$lt_cv_dlopen_self" = xyes; then
9227 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9228 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9229 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9230 if test "${lt_cv_dlopen_self_static+set}" = set; then
9231 echo $ECHO_N "(cached) $ECHO_C" >&6
9232 else
9233 if test "$cross_compiling" = yes; then :
9234 lt_cv_dlopen_self_static=cross
9235 else
9236 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9237 lt_status=$lt_dlunknown
9238 cat > conftest.$ac_ext <<EOF
9239 #line 9239 "configure"
9240 #include "confdefs.h"
9241
9242 #if HAVE_DLFCN_H
9243 #include <dlfcn.h>
9244 #endif
9245
9246 #include <stdio.h>
9247
9248 #ifdef RTLD_GLOBAL
9249 # define LT_DLGLOBAL RTLD_GLOBAL
9250 #else
9251 # ifdef DL_GLOBAL
9252 # define LT_DLGLOBAL DL_GLOBAL
9253 # else
9254 # define LT_DLGLOBAL 0
9255 # endif
9256 #endif
9257
9258 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9259 find out it does not work in some platform. */
9260 #ifndef LT_DLLAZY_OR_NOW
9261 # ifdef RTLD_LAZY
9262 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9263 # else
9264 # ifdef DL_LAZY
9265 # define LT_DLLAZY_OR_NOW DL_LAZY
9266 # else
9267 # ifdef RTLD_NOW
9268 # define LT_DLLAZY_OR_NOW RTLD_NOW
9269 # else
9270 # ifdef DL_NOW
9271 # define LT_DLLAZY_OR_NOW DL_NOW
9272 # else
9273 # define LT_DLLAZY_OR_NOW 0
9274 # endif
9275 # endif
9276 # endif
9277 # endif
9278 #endif
9279
9280 #ifdef __cplusplus
9281 extern "C" void exit (int);
9282 #endif
9283
9284 void fnord() { int i=42;}
9285 int main ()
9286 {
9287 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9288 int status = $lt_dlunknown;
9289
9290 if (self)
9291 {
9292 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9293 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9294 /* dlclose (self); */
9295 }
9296 else
9297 puts (dlerror ());
9298
9299 exit (status);
9300 }
9301 EOF
9302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9303 (eval $ac_link) 2>&5
9304 ac_status=$?
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9307 (./conftest; exit; ) >&5 2>/dev/null
9308 lt_status=$?
9309 case x$lt_status in
9310 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9311 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9312 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9313 esac
9314 else :
9315 # compilation failed
9316 lt_cv_dlopen_self_static=no
9317 fi
9318 fi
9319 rm -fr conftest*
9320
9321
9322 fi
9323 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9324 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9325 fi
9326
9327 CPPFLAGS="$save_CPPFLAGS"
9328 LDFLAGS="$save_LDFLAGS"
9329 LIBS="$save_LIBS"
9330 ;;
9331 esac
9332
9333 case $lt_cv_dlopen_self in
9334 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9335 *) enable_dlopen_self=unknown ;;
9336 esac
9337
9338 case $lt_cv_dlopen_self_static in
9339 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9340 *) enable_dlopen_self_static=unknown ;;
9341 esac
9342 fi
9343
9344
9345 # Report which library types will actually be built
9346 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9347 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9348 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9349 echo "${ECHO_T}$can_build_shared" >&6
9350
9351 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9352 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9353 test "$can_build_shared" = "no" && enable_shared=no
9354
9355 # On AIX, shared libraries and static libraries use the same namespace, and
9356 # are all built from PIC.
9357 case $host_os in
9358 aix3*)
9359 test "$enable_shared" = yes && enable_static=no
9360 if test -n "$RANLIB"; then
9361 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9362 postinstall_cmds='$RANLIB $lib'
9363 fi
9364 ;;
9365
9366 aix4* | aix5*)
9367 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9368 test "$enable_shared" = yes && enable_static=no
9369 fi
9370 ;;
9371 esac
9372 echo "$as_me:$LINENO: result: $enable_shared" >&5
9373 echo "${ECHO_T}$enable_shared" >&6
9374
9375 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9376 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9377 # Make sure either enable_shared or enable_static is yes.
9378 test "$enable_shared" = yes || enable_static=yes
9379 echo "$as_me:$LINENO: result: $enable_static" >&5
9380 echo "${ECHO_T}$enable_static" >&6
9381
9382 # The else clause should only fire when bootstrapping the
9383 # libtool distribution, otherwise you forgot to ship ltmain.sh
9384 # with your package, and you will get complaints that there are
9385 # no rules to generate ltmain.sh.
9386 if test -f "$ltmain"; then
9387 # See if we are running on zsh, and set the options which allow our commands through
9388 # without removal of \ escapes.
9389 if test -n "${ZSH_VERSION+set}" ; then
9390 setopt NO_GLOB_SUBST
9391 fi
9392 # Now quote all the things that may contain metacharacters while being
9393 # careful not to overquote the AC_SUBSTed values. We take copies of the
9394 # variables and quote the copies for generation of the libtool script.
9395 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9396 SED SHELL STRIP \
9397 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9398 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9399 deplibs_check_method reload_flag reload_cmds need_locks \
9400 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9401 lt_cv_sys_global_symbol_to_c_name_address \
9402 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9403 old_postinstall_cmds old_postuninstall_cmds \
9404 compiler \
9405 CC \
9406 LD \
9407 lt_prog_compiler_wl \
9408 lt_prog_compiler_pic \
9409 lt_prog_compiler_static \
9410 lt_prog_compiler_no_builtin_flag \
9411 export_dynamic_flag_spec \
9412 thread_safe_flag_spec \
9413 whole_archive_flag_spec \
9414 enable_shared_with_static_runtimes \
9415 old_archive_cmds \
9416 old_archive_from_new_cmds \
9417 predep_objects \
9418 postdep_objects \
9419 predeps \
9420 postdeps \
9421 compiler_lib_search_path \
9422 archive_cmds \
9423 archive_expsym_cmds \
9424 postinstall_cmds \
9425 postuninstall_cmds \
9426 old_archive_from_expsyms_cmds \
9427 allow_undefined_flag \
9428 no_undefined_flag \
9429 export_symbols_cmds \
9430 hardcode_libdir_flag_spec \
9431 hardcode_libdir_flag_spec_ld \
9432 hardcode_libdir_separator \
9433 hardcode_automatic \
9434 module_cmds \
9435 module_expsym_cmds \
9436 lt_cv_prog_compiler_c_o \
9437 exclude_expsyms \
9438 include_expsyms; do
9439
9440 case $var in
9441 old_archive_cmds | \
9442 old_archive_from_new_cmds | \
9443 archive_cmds | \
9444 archive_expsym_cmds | \
9445 module_cmds | \
9446 module_expsym_cmds | \
9447 old_archive_from_expsyms_cmds | \
9448 export_symbols_cmds | \
9449 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9450 postinstall_cmds | postuninstall_cmds | \
9451 old_postinstall_cmds | old_postuninstall_cmds | \
9452 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9453 # Double-quote double-evaled strings.
9454 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9455 ;;
9456 *)
9457 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9458 ;;
9459 esac
9460 done
9461
9462 case $lt_echo in
9463 *'\$0 --fallback-echo"')
9464 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9465 ;;
9466 esac
9467
9468 cfgfile="${ofile}T"
9469 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9470 $rm -f "$cfgfile"
9471 { echo "$as_me:$LINENO: creating $ofile" >&5
9472 echo "$as_me: creating $ofile" >&6;}
9473
9474 cat <<__EOF__ >> "$cfgfile"
9475 #! $SHELL
9476
9477 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9478 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9479 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9480 #
9481 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9482 # Free Software Foundation, Inc.
9483 #
9484 # This file is part of GNU Libtool:
9485 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
9486 #
9487 # This program is free software; you can redistribute it and/or modify
9488 # it under the terms of the GNU General Public License as published by
9489 # the Free Software Foundation; either version 2 of the License, or
9490 # (at your option) any later version.
9491 #
9492 # This program is distributed in the hope that it will be useful, but
9493 # WITHOUT ANY WARRANTY; without even the implied warranty of
9494 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9495 # General Public License for more details.
9496 #
9497 # You should have received a copy of the GNU General Public License
9498 # along with this program; if not, write to the Free Software
9499 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9500 #
9501 # As a special exception to the GNU General Public License, if you
9502 # distribute this file as part of a program that contains a
9503 # configuration script generated by Autoconf, you may include it under
9504 # the same distribution terms that you use for the rest of that program.
9505
9506 # A sed program that does not truncate output.
9507 SED=$lt_SED
9508
9509 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9510 Xsed="$SED -e 1s/^X//"
9511
9512 # The HP-UX ksh and POSIX shell print the target directory to stdout
9513 # if CDPATH is set.
9514 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9515
9516 # The names of the tagged configurations supported by this script.
9517 available_tags=
9518
9519 # ### BEGIN LIBTOOL CONFIG
9520
9521 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9522
9523 # Shell to use when invoking shell scripts.
9524 SHELL=$lt_SHELL
9525
9526 # Whether or not to build shared libraries.
9527 build_libtool_libs=$enable_shared
9528
9529 # Whether or not to build static libraries.
9530 build_old_libs=$enable_static
9531
9532 # Whether or not to add -lc for building shared libraries.
9533 build_libtool_need_lc=$archive_cmds_need_lc
9534
9535 # Whether or not to disallow shared libs when runtime libs are static
9536 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9537
9538 # Whether or not to optimize for fast installation.
9539 fast_install=$enable_fast_install
9540
9541 # The host system.
9542 host_alias=$host_alias
9543 host=$host
9544 host_os=$host_os
9545
9546 # The build system.
9547 build_alias=$build_alias
9548 build=$build
9549 build_os=$build_os
9550
9551 # An echo program that does not interpret backslashes.
9552 echo=$lt_echo
9553
9554 # The archiver.
9555 AR=$lt_AR
9556 AR_FLAGS=$lt_AR_FLAGS
9557
9558 # A C compiler.
9559 LTCC=$lt_LTCC
9560
9561 # LTCC compiler flags.
9562 LTCFLAGS=$lt_LTCFLAGS
9563
9564 # A language-specific compiler.
9565 CC=$lt_compiler
9566
9567 # Is the compiler the GNU C compiler?
9568 with_gcc=$GCC
9569
9570 # An ERE matcher.
9571 EGREP=$lt_EGREP
9572
9573 # The linker used to build libraries.
9574 LD=$lt_LD
9575
9576 # Whether we need hard or soft links.
9577 LN_S=$lt_LN_S
9578
9579 # A BSD-compatible nm program.
9580 NM=$lt_NM
9581
9582 # A symbol stripping program
9583 STRIP=$lt_STRIP
9584
9585 # Used to examine libraries when file_magic_cmd begins "file"
9586 MAGIC_CMD=$MAGIC_CMD
9587
9588 # Used on cygwin: DLL creation program.
9589 DLLTOOL="$DLLTOOL"
9590
9591 # Used on cygwin: object dumper.
9592 OBJDUMP="$OBJDUMP"
9593
9594 # Used on cygwin: assembler.
9595 AS="$AS"
9596
9597 # The name of the directory that contains temporary libtool files.
9598 objdir=$objdir
9599
9600 # How to create reloadable object files.
9601 reload_flag=$lt_reload_flag
9602 reload_cmds=$lt_reload_cmds
9603
9604 # How to pass a linker flag through the compiler.
9605 wl=$lt_lt_prog_compiler_wl
9606
9607 # Object file suffix (normally "o").
9608 objext="$ac_objext"
9609
9610 # Old archive suffix (normally "a").
9611 libext="$libext"
9612
9613 # Shared library suffix (normally ".so").
9614 shrext_cmds='$shrext_cmds'
9615
9616 # Executable file suffix (normally "").
9617 exeext="$exeext"
9618
9619 # Additional compiler flags for building library objects.
9620 pic_flag=$lt_lt_prog_compiler_pic
9621 pic_mode=$pic_mode
9622
9623 # What is the maximum length of a command?
9624 max_cmd_len=$lt_cv_sys_max_cmd_len
9625
9626 # Does compiler simultaneously support -c and -o options?
9627 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9628
9629 # Must we lock files when doing compilation?
9630 need_locks=$lt_need_locks
9631
9632 # Do we need the lib prefix for modules?
9633 need_lib_prefix=$need_lib_prefix
9634
9635 # Do we need a version for libraries?
9636 need_version=$need_version
9637
9638 # Whether dlopen is supported.
9639 dlopen_support=$enable_dlopen
9640
9641 # Whether dlopen of programs is supported.
9642 dlopen_self=$enable_dlopen_self
9643
9644 # Whether dlopen of statically linked programs is supported.
9645 dlopen_self_static=$enable_dlopen_self_static
9646
9647 # Compiler flag to prevent dynamic linking.
9648 link_static_flag=$lt_lt_prog_compiler_static
9649
9650 # Compiler flag to turn off builtin functions.
9651 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9652
9653 # Compiler flag to allow reflexive dlopens.
9654 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9655
9656 # Compiler flag to generate shared objects directly from archives.
9657 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9658
9659 # Compiler flag to generate thread-safe objects.
9660 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9661
9662 # Library versioning type.
9663 version_type=$version_type
9664
9665 # Format of library name prefix.
9666 libname_spec=$lt_libname_spec
9667
9668 # List of archive names. First name is the real one, the rest are links.
9669 # The last name is the one that the linker finds with -lNAME.
9670 library_names_spec=$lt_library_names_spec
9671
9672 # The coded name of the library, if different from the real name.
9673 soname_spec=$lt_soname_spec
9674
9675 # Commands used to build and install an old-style archive.
9676 RANLIB=$lt_RANLIB
9677 old_archive_cmds=$lt_old_archive_cmds
9678 old_postinstall_cmds=$lt_old_postinstall_cmds
9679 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9680
9681 # Create an old-style archive from a shared archive.
9682 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9683
9684 # Create a temporary old-style archive to link instead of a shared archive.
9685 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9686
9687 # Commands used to build and install a shared archive.
9688 archive_cmds=$lt_archive_cmds
9689 archive_expsym_cmds=$lt_archive_expsym_cmds
9690 postinstall_cmds=$lt_postinstall_cmds
9691 postuninstall_cmds=$lt_postuninstall_cmds
9692
9693 # Commands used to build a loadable module (assumed same as above if empty)
9694 module_cmds=$lt_module_cmds
9695 module_expsym_cmds=$lt_module_expsym_cmds
9696
9697 # Commands to strip libraries.
9698 old_striplib=$lt_old_striplib
9699 striplib=$lt_striplib
9700
9701 # Dependencies to place before the objects being linked to create a
9702 # shared library.
9703 predep_objects=$lt_predep_objects
9704
9705 # Dependencies to place after the objects being linked to create a
9706 # shared library.
9707 postdep_objects=$lt_postdep_objects
9708
9709 # Dependencies to place before the objects being linked to create a
9710 # shared library.
9711 predeps=$lt_predeps
9712
9713 # Dependencies to place after the objects being linked to create a
9714 # shared library.
9715 postdeps=$lt_postdeps
9716
9717 # The library search path used internally by the compiler when linking
9718 # a shared library.
9719 compiler_lib_search_path=$lt_compiler_lib_search_path
9720
9721 # Method to check whether dependent libraries are shared objects.
9722 deplibs_check_method=$lt_deplibs_check_method
9723
9724 # Command to use when deplibs_check_method == file_magic.
9725 file_magic_cmd=$lt_file_magic_cmd
9726
9727 # Flag that allows shared libraries with undefined symbols to be built.
9728 allow_undefined_flag=$lt_allow_undefined_flag
9729
9730 # Flag that forces no undefined symbols.
9731 no_undefined_flag=$lt_no_undefined_flag
9732
9733 # Commands used to finish a libtool library installation in a directory.
9734 finish_cmds=$lt_finish_cmds
9735
9736 # Same as above, but a single script fragment to be evaled but not shown.
9737 finish_eval=$lt_finish_eval
9738
9739 # Take the output of nm and produce a listing of raw symbols and C names.
9740 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9741
9742 # Transform the output of nm in a proper C declaration
9743 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9744
9745 # Transform the output of nm in a C name address pair
9746 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9747
9748 # This is the shared library runtime path variable.
9749 runpath_var=$runpath_var
9750
9751 # This is the shared library path variable.
9752 shlibpath_var=$shlibpath_var
9753
9754 # Is shlibpath searched before the hard-coded library search path?
9755 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9756
9757 # How to hardcode a shared library path into an executable.
9758 hardcode_action=$hardcode_action
9759
9760 # Whether we should hardcode library paths into libraries.
9761 hardcode_into_libs=$hardcode_into_libs
9762
9763 # Flag to hardcode \$libdir into a binary during linking.
9764 # This must work even if \$libdir does not exist.
9765 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9766
9767 # If ld is used when linking, flag to hardcode \$libdir into
9768 # a binary during linking. This must work even if \$libdir does
9769 # not exist.
9770 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9771
9772 # Whether we need a single -rpath flag with a separated argument.
9773 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9774
9775 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9776 # resulting binary.
9777 hardcode_direct=$hardcode_direct
9778
9779 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9780 # resulting binary.
9781 hardcode_minus_L=$hardcode_minus_L
9782
9783 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9784 # the resulting binary.
9785 hardcode_shlibpath_var=$hardcode_shlibpath_var
9786
9787 # Set to yes if building a shared library automatically hardcodes DIR into the library
9788 # and all subsequent libraries and executables linked against it.
9789 hardcode_automatic=$hardcode_automatic
9790
9791 # Variables whose values should be saved in libtool wrapper scripts and
9792 # restored at relink time.
9793 variables_saved_for_relink="$variables_saved_for_relink"
9794
9795 # Whether libtool must link a program against all its dependency libraries.
9796 link_all_deplibs=$link_all_deplibs
9797
9798 # Compile-time system search path for libraries
9799 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9800
9801 # Run-time system search path for libraries
9802 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9803
9804 # Fix the shell variable \$srcfile for the compiler.
9805 fix_srcfile_path="$fix_srcfile_path"
9806
9807 # Set to yes if exported symbols are required.
9808 always_export_symbols=$always_export_symbols
9809
9810 # The commands to list exported symbols.
9811 export_symbols_cmds=$lt_export_symbols_cmds
9812
9813 # The commands to extract the exported symbol list from a shared archive.
9814 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9815
9816 # Symbols that should not be listed in the preloaded symbols.
9817 exclude_expsyms=$lt_exclude_expsyms
9818
9819 # Symbols that must always be exported.
9820 include_expsyms=$lt_include_expsyms
9821
9822 # ### END LIBTOOL CONFIG
9823
9824 __EOF__
9825
9826
9827 case $host_os in
9828 aix3*)
9829 cat <<\EOF >> "$cfgfile"
9830
9831 # AIX sometimes has problems with the GCC collect2 program. For some
9832 # reason, if we set the COLLECT_NAMES environment variable, the problems
9833 # vanish in a puff of smoke.
9834 if test "X${COLLECT_NAMES+set}" != Xset; then
9835 COLLECT_NAMES=
9836 export COLLECT_NAMES
9837 fi
9838 EOF
9839 ;;
9840 esac
9841
9842 # We use sed instead of cat because bash on DJGPP gets confused if
9843 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9844 # text mode, it properly converts lines to CR/LF. This bash problem
9845 # is reportedly fixed, but why not run on old versions too?
9846 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9847
9848 mv -f "$cfgfile" "$ofile" || \
9849 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9850 chmod +x "$ofile"
9851
9852 else
9853 # If there is no Makefile yet, we rely on a make rule to execute
9854 # `config.status --recheck' to rerun these tests and create the
9855 # libtool script then.
9856 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9857 if test -f "$ltmain_in"; then
9858 test -f Makefile && make "$ltmain"
9859 fi
9860 fi
9861
9862
9863 ac_ext=c
9864 ac_cpp='$CPP $CPPFLAGS'
9865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9868
9869 CC="$lt_save_CC"
9870
9871
9872 # Check whether --with-tags or --without-tags was given.
9873 if test "${with_tags+set}" = set; then
9874 withval="$with_tags"
9875 tagnames="$withval"
9876 fi;
9877
9878 if test -f "$ltmain" && test -n "$tagnames"; then
9879 if test ! -f "${ofile}"; then
9880 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9881 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9882 fi
9883
9884 if test -z "$LTCC"; then
9885 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9886 if test -z "$LTCC"; then
9887 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9888 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9889 else
9890 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9891 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9892 fi
9893 fi
9894 if test -z "$LTCFLAGS"; then
9895 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9896 fi
9897
9898 # Extract list of available tagged configurations in $ofile.
9899 # Note that this assumes the entire list is on one line.
9900 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9901
9902 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9903 for tagname in $tagnames; do
9904 IFS="$lt_save_ifs"
9905 # Check whether tagname contains only valid characters
9906 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9907 "") ;;
9908 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9909 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9910 { (exit 1); exit 1; }; }
9911 ;;
9912 esac
9913
9914 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9915 then
9916 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9917 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9918 { (exit 1); exit 1; }; }
9919 fi
9920
9921 # Update the list of available tags.
9922 if test -n "$tagname"; then
9923 echo appending configuration tag \"$tagname\" to $ofile
9924
9925 case $tagname in
9926 CXX)
9927 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9928 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9929 (test "X$CXX" != "Xg++"))) ; then
9930 ac_ext=cc
9931 ac_cpp='$CXXCPP $CPPFLAGS'
9932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9935
9936
9937
9938
9939 archive_cmds_need_lc_CXX=no
9940 allow_undefined_flag_CXX=
9941 always_export_symbols_CXX=no
9942 archive_expsym_cmds_CXX=
9943 export_dynamic_flag_spec_CXX=
9944 hardcode_direct_CXX=no
9945 hardcode_libdir_flag_spec_CXX=
9946 hardcode_libdir_flag_spec_ld_CXX=
9947 hardcode_libdir_separator_CXX=
9948 hardcode_minus_L_CXX=no
9949 hardcode_shlibpath_var_CXX=unsupported
9950 hardcode_automatic_CXX=no
9951 module_cmds_CXX=
9952 module_expsym_cmds_CXX=
9953 link_all_deplibs_CXX=unknown
9954 old_archive_cmds_CXX=$old_archive_cmds
9955 no_undefined_flag_CXX=
9956 whole_archive_flag_spec_CXX=
9957 enable_shared_with_static_runtimes_CXX=no
9958
9959 # Dependencies to place before and after the object being linked:
9960 predep_objects_CXX=
9961 postdep_objects_CXX=
9962 predeps_CXX=
9963 postdeps_CXX=
9964 compiler_lib_search_path_CXX=
9965
9966 # Source file extension for C++ test sources.
9967 ac_ext=cpp
9968
9969 # Object file extension for compiled C++ test sources.
9970 objext=o
9971 objext_CXX=$objext
9972
9973 # Code to be used in simple compile tests
9974 lt_simple_compile_test_code="int some_variable = 0;\n"
9975
9976 # Code to be used in simple link tests
9977 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9978
9979 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9980
9981 # If no C compiler was specified, use CC.
9982 LTCC=${LTCC-"$CC"}
9983
9984 # If no C compiler flags were specified, use CFLAGS.
9985 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9986
9987 # Allow CC to be a program name with arguments.
9988 compiler=$CC
9989
9990
9991 # save warnings/boilerplate of simple test code
9992 ac_outfile=conftest.$ac_objext
9993 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9994 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9995 _lt_compiler_boilerplate=`cat conftest.err`
9996 $rm conftest*
9997
9998 ac_outfile=conftest.$ac_objext
9999 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10000 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10001 _lt_linker_boilerplate=`cat conftest.err`
10002 $rm conftest*
10003
10004
10005 # Allow CC to be a program name with arguments.
10006 lt_save_CC=$CC
10007 lt_save_LD=$LD
10008 lt_save_GCC=$GCC
10009 GCC=$GXX
10010 lt_save_with_gnu_ld=$with_gnu_ld
10011 lt_save_path_LD=$lt_cv_path_LD
10012 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10013 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10014 else
10015 $as_unset lt_cv_prog_gnu_ld
10016 fi
10017 if test -n "${lt_cv_path_LDCXX+set}"; then
10018 lt_cv_path_LD=$lt_cv_path_LDCXX
10019 else
10020 $as_unset lt_cv_path_LD
10021 fi
10022 test -z "${LDCXX+set}" || LD=$LDCXX
10023 CC=${CXX-"c++"}
10024 compiler=$CC
10025 compiler_CXX=$CC
10026 for cc_temp in $compiler""; do
10027 case $cc_temp in
10028 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10029 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10030 \-*) ;;
10031 *) break;;
10032 esac
10033 done
10034 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10035
10036
10037 # We don't want -fno-exception wen compiling C++ code, so set the
10038 # no_builtin_flag separately
10039 if test "$GXX" = yes; then
10040 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10041 else
10042 lt_prog_compiler_no_builtin_flag_CXX=
10043 fi
10044
10045 if test "$GXX" = yes; then
10046 # Set up default GNU C++ configuration
10047
10048
10049 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10050 if test "${with_gnu_ld+set}" = set; then
10051 withval="$with_gnu_ld"
10052 test "$withval" = no || with_gnu_ld=yes
10053 else
10054 with_gnu_ld=no
10055 fi;
10056 ac_prog=ld
10057 if test "$GCC" = yes; then
10058 # Check if gcc -print-prog-name=ld gives a path.
10059 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10060 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10061 case $host in
10062 *-*-mingw*)
10063 # gcc leaves a trailing carriage return which upsets mingw
10064 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10065 *)
10066 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10067 esac
10068 case $ac_prog in
10069 # Accept absolute paths.
10070 [\\/]* | ?:[\\/]*)
10071 re_direlt='/[^/][^/]*/\.\./'
10072 # Canonicalize the pathname of ld
10073 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10074 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10075 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10076 done
10077 test -z "$LD" && LD="$ac_prog"
10078 ;;
10079 "")
10080 # If it fails, then pretend we aren't using GCC.
10081 ac_prog=ld
10082 ;;
10083 *)
10084 # If it is relative, then search for the first ld in PATH.
10085 with_gnu_ld=unknown
10086 ;;
10087 esac
10088 elif test "$with_gnu_ld" = yes; then
10089 echo "$as_me:$LINENO: checking for GNU ld" >&5
10090 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10091 else
10092 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10093 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10094 fi
10095 if test "${lt_cv_path_LD+set}" = set; then
10096 echo $ECHO_N "(cached) $ECHO_C" >&6
10097 else
10098 if test -z "$LD"; then
10099 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10100 for ac_dir in $PATH; do
10101 IFS="$lt_save_ifs"
10102 test -z "$ac_dir" && ac_dir=.
10103 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10104 lt_cv_path_LD="$ac_dir/$ac_prog"
10105 # Check to see if the program is GNU ld. I'd rather use --version,
10106 # but apparently some variants of GNU ld only accept -v.
10107 # Break only if it was the GNU/non-GNU ld that we prefer.
10108 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10109 *GNU* | *'with BFD'*)
10110 test "$with_gnu_ld" != no && break
10111 ;;
10112 *)
10113 test "$with_gnu_ld" != yes && break
10114 ;;
10115 esac
10116 fi
10117 done
10118 IFS="$lt_save_ifs"
10119 else
10120 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10121 fi
10122 fi
10123
10124 LD="$lt_cv_path_LD"
10125 if test -n "$LD"; then
10126 echo "$as_me:$LINENO: result: $LD" >&5
10127 echo "${ECHO_T}$LD" >&6
10128 else
10129 echo "$as_me:$LINENO: result: no" >&5
10130 echo "${ECHO_T}no" >&6
10131 fi
10132 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10133 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10134 { (exit 1); exit 1; }; }
10135 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10136 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10137 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10138 echo $ECHO_N "(cached) $ECHO_C" >&6
10139 else
10140 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10141 case `$LD -v 2>&1 </dev/null` in
10142 *GNU* | *'with BFD'*)
10143 lt_cv_prog_gnu_ld=yes
10144 ;;
10145 *)
10146 lt_cv_prog_gnu_ld=no
10147 ;;
10148 esac
10149 fi
10150 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10151 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10152 with_gnu_ld=$lt_cv_prog_gnu_ld
10153
10154
10155
10156 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10157 # archiving commands below assume that GNU ld is being used.
10158 if test "$with_gnu_ld" = yes; then
10159 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10160 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'
10161
10162 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10163 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10164
10165 # If archive_cmds runs LD, not CC, wlarc should be empty
10166 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10167 # investigate it a little bit more. (MM)
10168 wlarc='${wl}'
10169
10170 # ancient GNU ld didn't support --whole-archive et. al.
10171 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10172 grep 'no-whole-archive' > /dev/null; then
10173 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10174 else
10175 whole_archive_flag_spec_CXX=
10176 fi
10177 else
10178 with_gnu_ld=no
10179 wlarc=
10180
10181 # A generic and very simple default shared library creation
10182 # command for GNU C++ for the case where it uses the native
10183 # linker, instead of GNU ld. If possible, this setting should
10184 # overridden to take advantage of the native linker features on
10185 # the platform it is being used on.
10186 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10187 fi
10188
10189 # Commands to make compiler produce verbose output that lists
10190 # what "hidden" libraries, object files and flags are used when
10191 # linking a shared library.
10192 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10193
10194 else
10195 GXX=no
10196 with_gnu_ld=no
10197 wlarc=
10198 fi
10199
10200 # PORTME: fill in a description of your system's C++ link characteristics
10201 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10202 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10203 ld_shlibs_CXX=yes
10204 case $host_os in
10205 aix3*)
10206 # FIXME: insert proper C++ library support
10207 ld_shlibs_CXX=no
10208 ;;
10209 aix4* | aix5*)
10210 if test "$host_cpu" = ia64; then
10211 # On IA64, the linker does run time linking by default, so we don't
10212 # have to do anything special.
10213 aix_use_runtimelinking=no
10214 exp_sym_flag='-Bexport'
10215 no_entry_flag=""
10216 else
10217 aix_use_runtimelinking=no
10218
10219 # Test if we are trying to use run time linking or normal
10220 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10221 # need to do runtime linking.
10222 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10223 for ld_flag in $LDFLAGS; do
10224 case $ld_flag in
10225 *-brtl*)
10226 aix_use_runtimelinking=yes
10227 break
10228 ;;
10229 esac
10230 done
10231 ;;
10232 esac
10233
10234 exp_sym_flag='-bexport'
10235 no_entry_flag='-bnoentry'
10236 fi
10237
10238 # When large executables or shared objects are built, AIX ld can
10239 # have problems creating the table of contents. If linking a library
10240 # or program results in "error TOC overflow" add -mminimal-toc to
10241 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10242 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10243
10244 archive_cmds_CXX=''
10245 hardcode_direct_CXX=yes
10246 hardcode_libdir_separator_CXX=':'
10247 link_all_deplibs_CXX=yes
10248
10249 if test "$GXX" = yes; then
10250 case $host_os in aix4.[012]|aix4.[012].*)
10251 # We only want to do this on AIX 4.2 and lower, the check
10252 # below for broken collect2 doesn't work under 4.3+
10253 collect2name=`${CC} -print-prog-name=collect2`
10254 if test -f "$collect2name" && \
10255 strings "$collect2name" | grep resolve_lib_name >/dev/null
10256 then
10257 # We have reworked collect2
10258 hardcode_direct_CXX=yes
10259 else
10260 # We have old collect2
10261 hardcode_direct_CXX=unsupported
10262 # It fails to find uninstalled libraries when the uninstalled
10263 # path is not listed in the libpath. Setting hardcode_minus_L
10264 # to unsupported forces relinking
10265 hardcode_minus_L_CXX=yes
10266 hardcode_libdir_flag_spec_CXX='-L$libdir'
10267 hardcode_libdir_separator_CXX=
10268 fi
10269 ;;
10270 esac
10271 shared_flag='-shared'
10272 if test "$aix_use_runtimelinking" = yes; then
10273 shared_flag="$shared_flag "'${wl}-G'
10274 fi
10275 else
10276 # not using gcc
10277 if test "$host_cpu" = ia64; then
10278 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10279 # chokes on -Wl,-G. The following line is correct:
10280 shared_flag='-G'
10281 else
10282 if test "$aix_use_runtimelinking" = yes; then
10283 shared_flag='${wl}-G'
10284 else
10285 shared_flag='${wl}-bM:SRE'
10286 fi
10287 fi
10288 fi
10289
10290 # It seems that -bexpall does not export symbols beginning with
10291 # underscore (_), so it is better to generate a list of symbols to export.
10292 always_export_symbols_CXX=yes
10293 if test "$aix_use_runtimelinking" = yes; then
10294 # Warning - without using the other runtime loading flags (-brtl),
10295 # -berok will link without error, but may produce a broken library.
10296 allow_undefined_flag_CXX='-berok'
10297 # Determine the default libpath from the value encoded in an empty executable.
10298 cat >conftest.$ac_ext <<_ACEOF
10299 /* confdefs.h. */
10300 _ACEOF
10301 cat confdefs.h >>conftest.$ac_ext
10302 cat >>conftest.$ac_ext <<_ACEOF
10303 /* end confdefs.h. */
10304
10305 int
10306 main ()
10307 {
10308
10309 ;
10310 return 0;
10311 }
10312 _ACEOF
10313 rm -f conftest.$ac_objext conftest$ac_exeext
10314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10315 (eval $ac_link) 2>conftest.er1
10316 ac_status=$?
10317 grep -v '^ *+' conftest.er1 >conftest.err
10318 rm -f conftest.er1
10319 cat conftest.err >&5
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); } &&
10322 { ac_try='test -z "$ac_cxx_werror_flag"
10323 || test ! -s conftest.err'
10324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10326 ac_status=$?
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; } &&
10329 { ac_try='test -s conftest$ac_exeext'
10330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10331 (eval $ac_try) 2>&5
10332 ac_status=$?
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); }; }; then
10335
10336 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10337 }'`
10338 # Check for a 64-bit object if we didn't find anything.
10339 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; }
10340 }'`; fi
10341 else
10342 echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10344
10345 fi
10346 rm -f conftest.err conftest.$ac_objext \
10347 conftest$ac_exeext conftest.$ac_ext
10348 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10349
10350 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10351
10352 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"
10353 else
10354 if test "$host_cpu" = ia64; then
10355 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10356 allow_undefined_flag_CXX="-z nodefs"
10357 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"
10358 else
10359 # Determine the default libpath from the value encoded in an empty executable.
10360 cat >conftest.$ac_ext <<_ACEOF
10361 /* confdefs.h. */
10362 _ACEOF
10363 cat confdefs.h >>conftest.$ac_ext
10364 cat >>conftest.$ac_ext <<_ACEOF
10365 /* end confdefs.h. */
10366
10367 int
10368 main ()
10369 {
10370
10371 ;
10372 return 0;
10373 }
10374 _ACEOF
10375 rm -f conftest.$ac_objext conftest$ac_exeext
10376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10377 (eval $ac_link) 2>conftest.er1
10378 ac_status=$?
10379 grep -v '^ *+' conftest.er1 >conftest.err
10380 rm -f conftest.er1
10381 cat conftest.err >&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } &&
10384 { ac_try='test -z "$ac_cxx_werror_flag"
10385 || test ! -s conftest.err'
10386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10387 (eval $ac_try) 2>&5
10388 ac_status=$?
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); }; } &&
10391 { ac_try='test -s conftest$ac_exeext'
10392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10393 (eval $ac_try) 2>&5
10394 ac_status=$?
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); }; }; then
10397
10398 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10399 }'`
10400 # Check for a 64-bit object if we didn't find anything.
10401 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; }
10402 }'`; fi
10403 else
10404 echo "$as_me: failed program was:" >&5
10405 sed 's/^/| /' conftest.$ac_ext >&5
10406
10407 fi
10408 rm -f conftest.err conftest.$ac_objext \
10409 conftest$ac_exeext conftest.$ac_ext
10410 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10411
10412 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10413 # Warning - without using the other run time loading flags,
10414 # -berok will link without error, but may produce a broken library.
10415 no_undefined_flag_CXX=' ${wl}-bernotok'
10416 allow_undefined_flag_CXX=' ${wl}-berok'
10417 # Exported symbols can be pulled into shared objects from archives
10418 whole_archive_flag_spec_CXX='$convenience'
10419 archive_cmds_need_lc_CXX=yes
10420 # This is similar to how AIX traditionally builds its shared libraries.
10421 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'
10422 fi
10423 fi
10424 ;;
10425
10426 beos*)
10427 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10428 allow_undefined_flag_CXX=unsupported
10429 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
10430 # support --undefined. This deserves some investigation. FIXME
10431 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10432 else
10433 ld_shlibs_CXX=no
10434 fi
10435 ;;
10436
10437 chorus*)
10438 case $cc_basename in
10439 *)
10440 # FIXME: insert proper C++ library support
10441 ld_shlibs_CXX=no
10442 ;;
10443 esac
10444 ;;
10445
10446 cygwin* | mingw* | pw32*)
10447 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10448 # as there is no search path for DLLs.
10449 hardcode_libdir_flag_spec_CXX='-L$libdir'
10450 allow_undefined_flag_CXX=unsupported
10451 always_export_symbols_CXX=no
10452 enable_shared_with_static_runtimes_CXX=yes
10453
10454 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10455 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'
10456 # If the export-symbols file already is a .def file (1st line
10457 # is EXPORTS), use it as is; otherwise, prepend...
10458 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10459 cp $export_symbols $output_objdir/$soname.def;
10460 else
10461 echo EXPORTS > $output_objdir/$soname.def;
10462 cat $export_symbols >> $output_objdir/$soname.def;
10463 fi~
10464 $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'
10465 else
10466 ld_shlibs_CXX=no
10467 fi
10468 ;;
10469 darwin* | rhapsody*)
10470 case $host_os in
10471 rhapsody* | darwin1.[012])
10472 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10473 ;;
10474 *) # Darwin 1.3 on
10475 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10476 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10477 else
10478 case ${MACOSX_DEPLOYMENT_TARGET} in
10479 10.[012])
10480 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10481 ;;
10482 10.*)
10483 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10484 ;;
10485 esac
10486 fi
10487 ;;
10488 esac
10489 archive_cmds_need_lc_CXX=no
10490 hardcode_direct_CXX=no
10491 hardcode_automatic_CXX=yes
10492 hardcode_shlibpath_var_CXX=unsupported
10493 whole_archive_flag_spec_CXX=''
10494 link_all_deplibs_CXX=yes
10495
10496 if test "$GXX" = yes ; then
10497 lt_int_apple_cc_single_mod=no
10498 output_verbose_link_cmd='echo'
10499 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10500 lt_int_apple_cc_single_mod=yes
10501 fi
10502 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10503 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10504 else
10505 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'
10506 fi
10507 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10508 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10509 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10510 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}'
10511 else
10512 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}'
10513 fi
10514 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}'
10515 else
10516 case $cc_basename in
10517 xlc*)
10518 output_verbose_link_cmd='echo'
10519 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'
10520 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10521 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10522 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}'
10523 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}'
10524 ;;
10525 *)
10526 ld_shlibs_CXX=no
10527 ;;
10528 esac
10529 fi
10530 ;;
10531
10532 dgux*)
10533 case $cc_basename in
10534 ec++*)
10535 # FIXME: insert proper C++ library support
10536 ld_shlibs_CXX=no
10537 ;;
10538 ghcx*)
10539 # Green Hills C++ Compiler
10540 # FIXME: insert proper C++ library support
10541 ld_shlibs_CXX=no
10542 ;;
10543 *)
10544 # FIXME: insert proper C++ library support
10545 ld_shlibs_CXX=no
10546 ;;
10547 esac
10548 ;;
10549 freebsd[12]*)
10550 # C++ shared libraries reported to be fairly broken before switch to ELF
10551 ld_shlibs_CXX=no
10552 ;;
10553 freebsd-elf*)
10554 archive_cmds_need_lc_CXX=no
10555 ;;
10556 freebsd* | kfreebsd*-gnu | dragonfly*)
10557 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10558 # conventions
10559 ld_shlibs_CXX=yes
10560 ;;
10561 gnu*)
10562 ;;
10563 hpux9*)
10564 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10565 hardcode_libdir_separator_CXX=:
10566 export_dynamic_flag_spec_CXX='${wl}-E'
10567 hardcode_direct_CXX=yes
10568 hardcode_minus_L_CXX=yes # Not in the search PATH,
10569 # but as the default
10570 # location of the library.
10571
10572 case $cc_basename in
10573 CC*)
10574 # FIXME: insert proper C++ library support
10575 ld_shlibs_CXX=no
10576 ;;
10577 aCC*)
10578 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'
10579 # Commands to make compiler produce verbose output that lists
10580 # what "hidden" libraries, object files and flags are used when
10581 # linking a shared library.
10582 #
10583 # There doesn't appear to be a way to prevent this compiler from
10584 # explicitly linking system object files so we need to strip them
10585 # from the output so that they don't get included in the library
10586 # dependencies.
10587 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'
10588 ;;
10589 *)
10590 if test "$GXX" = yes; then
10591 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'
10592 else
10593 # FIXME: insert proper C++ library support
10594 ld_shlibs_CXX=no
10595 fi
10596 ;;
10597 esac
10598 ;;
10599 hpux10*|hpux11*)
10600 if test $with_gnu_ld = no; then
10601 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10602 hardcode_libdir_separator_CXX=:
10603
10604 case $host_cpu in
10605 hppa*64*|ia64*)
10606 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10607 ;;
10608 *)
10609 export_dynamic_flag_spec_CXX='${wl}-E'
10610 ;;
10611 esac
10612 fi
10613 case $host_cpu in
10614 hppa*64*|ia64*)
10615 hardcode_direct_CXX=no
10616 hardcode_shlibpath_var_CXX=no
10617 ;;
10618 *)
10619 hardcode_direct_CXX=yes
10620 hardcode_minus_L_CXX=yes # Not in the search PATH,
10621 # but as the default
10622 # location of the library.
10623 ;;
10624 esac
10625
10626 case $cc_basename in
10627 CC*)
10628 # FIXME: insert proper C++ library support
10629 ld_shlibs_CXX=no
10630 ;;
10631 aCC*)
10632 case $host_cpu in
10633 hppa*64*)
10634 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10635 ;;
10636 ia64*)
10637 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10638 ;;
10639 *)
10640 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10641 ;;
10642 esac
10643 # Commands to make compiler produce verbose output that lists
10644 # what "hidden" libraries, object files and flags are used when
10645 # linking a shared library.
10646 #
10647 # There doesn't appear to be a way to prevent this compiler from
10648 # explicitly linking system object files so we need to strip them
10649 # from the output so that they don't get included in the library
10650 # dependencies.
10651 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'
10652 ;;
10653 *)
10654 if test "$GXX" = yes; then
10655 if test $with_gnu_ld = no; then
10656 case $host_cpu in
10657 hppa*64*)
10658 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10659 ;;
10660 ia64*)
10661 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10662 ;;
10663 *)
10664 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'
10665 ;;
10666 esac
10667 fi
10668 else
10669 # FIXME: insert proper C++ library support
10670 ld_shlibs_CXX=no
10671 fi
10672 ;;
10673 esac
10674 ;;
10675 interix3*)
10676 hardcode_direct_CXX=no
10677 hardcode_shlibpath_var_CXX=no
10678 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10679 export_dynamic_flag_spec_CXX='${wl}-E'
10680 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10681 # Instead, shared libraries are loaded at an image base (0x10000000 by
10682 # default) and relocated if they conflict, which is a slow very memory
10683 # consuming and fragmenting process. To avoid this, we pick a random,
10684 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10685 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10686 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'
10687 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'
10688 ;;
10689 irix5* | irix6*)
10690 case $cc_basename in
10691 CC*)
10692 # SGI C++
10693 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'
10694
10695 # Archives containing C++ object files must be created using
10696 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10697 # necessary to make sure instantiated templates are included
10698 # in the archive.
10699 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10700 ;;
10701 *)
10702 if test "$GXX" = yes; then
10703 if test "$with_gnu_ld" = no; then
10704 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'
10705 else
10706 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'
10707 fi
10708 fi
10709 link_all_deplibs_CXX=yes
10710 ;;
10711 esac
10712 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10713 hardcode_libdir_separator_CXX=:
10714 ;;
10715 linux*)
10716 case $cc_basename in
10717 KCC*)
10718 # Kuck and Associates, Inc. (KAI) C++ Compiler
10719
10720 # KCC will only create a shared library if the output file
10721 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10722 # to its proper name (with version) after linking.
10723 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'
10724 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'
10725 # Commands to make compiler produce verbose output that lists
10726 # what "hidden" libraries, object files and flags are used when
10727 # linking a shared library.
10728 #
10729 # There doesn't appear to be a way to prevent this compiler from
10730 # explicitly linking system object files so we need to strip them
10731 # from the output so that they don't get included in the library
10732 # dependencies.
10733 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'
10734
10735 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10736 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10737
10738 # Archives containing C++ object files must be created using
10739 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10740 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10741 ;;
10742 icpc*)
10743 # Intel C++
10744 with_gnu_ld=yes
10745 # version 8.0 and above of icpc choke on multiply defined symbols
10746 # if we add $predep_objects and $postdep_objects, however 7.1 and
10747 # earlier do not add the objects themselves.
10748 case `$CC -V 2>&1` in
10749 *"Version 7."*)
10750 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10751 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'
10752 ;;
10753 *) # Version 8.0 or newer
10754 tmp_idyn=
10755 case $host_cpu in
10756 ia64*) tmp_idyn=' -i_dynamic';;
10757 esac
10758 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10759 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'
10760 ;;
10761 esac
10762 archive_cmds_need_lc_CXX=no
10763 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10764 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10765 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10766 ;;
10767 pgCC*)
10768 # Portland Group C++ compiler
10769 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10770 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'
10771
10772 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10773 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10774 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'
10775 ;;
10776 cxx*)
10777 # Compaq C++
10778 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10779 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'
10780
10781 runpath_var=LD_RUN_PATH
10782 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10783 hardcode_libdir_separator_CXX=:
10784
10785 # Commands to make compiler produce verbose output that lists
10786 # what "hidden" libraries, object files and flags are used when
10787 # linking a shared library.
10788 #
10789 # There doesn't appear to be a way to prevent this compiler from
10790 # explicitly linking system object files so we need to strip them
10791 # from the output so that they don't get included in the library
10792 # dependencies.
10793 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'
10794 ;;
10795 esac
10796 ;;
10797 lynxos*)
10798 # FIXME: insert proper C++ library support
10799 ld_shlibs_CXX=no
10800 ;;
10801 m88k*)
10802 # FIXME: insert proper C++ library support
10803 ld_shlibs_CXX=no
10804 ;;
10805 mvs*)
10806 case $cc_basename in
10807 cxx*)
10808 # FIXME: insert proper C++ library support
10809 ld_shlibs_CXX=no
10810 ;;
10811 *)
10812 # FIXME: insert proper C++ library support
10813 ld_shlibs_CXX=no
10814 ;;
10815 esac
10816 ;;
10817 netbsd*)
10818 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10819 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10820 wlarc=
10821 hardcode_libdir_flag_spec_CXX='-R$libdir'
10822 hardcode_direct_CXX=yes
10823 hardcode_shlibpath_var_CXX=no
10824 fi
10825 # Workaround some broken pre-1.5 toolchains
10826 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10827 ;;
10828 openbsd2*)
10829 # C++ shared libraries are fairly broken
10830 ld_shlibs_CXX=no
10831 ;;
10832 openbsd*)
10833 hardcode_direct_CXX=yes
10834 hardcode_shlibpath_var_CXX=no
10835 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10836 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10837 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10838 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10839 export_dynamic_flag_spec_CXX='${wl}-E'
10840 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10841 fi
10842 output_verbose_link_cmd='echo'
10843 ;;
10844 osf3*)
10845 case $cc_basename in
10846 KCC*)
10847 # Kuck and Associates, Inc. (KAI) C++ Compiler
10848
10849 # KCC will only create a shared library if the output file
10850 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10851 # to its proper name (with version) after linking.
10852 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'
10853
10854 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10855 hardcode_libdir_separator_CXX=:
10856
10857 # Archives containing C++ object files must be created using
10858 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10859 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10860
10861 ;;
10862 RCC*)
10863 # Rational C++ 2.4.1
10864 # FIXME: insert proper C++ library support
10865 ld_shlibs_CXX=no
10866 ;;
10867 cxx*)
10868 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10869 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'
10870
10871 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10872 hardcode_libdir_separator_CXX=:
10873
10874 # Commands to make compiler produce verbose output that lists
10875 # what "hidden" libraries, object files and flags are used when
10876 # linking a shared library.
10877 #
10878 # There doesn't appear to be a way to prevent this compiler from
10879 # explicitly linking system object files so we need to strip them
10880 # from the output so that they don't get included in the library
10881 # dependencies.
10882 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'
10883 ;;
10884 *)
10885 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10886 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10887 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'
10888
10889 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10890 hardcode_libdir_separator_CXX=:
10891
10892 # Commands to make compiler produce verbose output that lists
10893 # what "hidden" libraries, object files and flags are used when
10894 # linking a shared library.
10895 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10896
10897 else
10898 # FIXME: insert proper C++ library support
10899 ld_shlibs_CXX=no
10900 fi
10901 ;;
10902 esac
10903 ;;
10904 osf4* | osf5*)
10905 case $cc_basename in
10906 KCC*)
10907 # Kuck and Associates, Inc. (KAI) C++ Compiler
10908
10909 # KCC will only create a shared library if the output file
10910 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10911 # to its proper name (with version) after linking.
10912 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'
10913
10914 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10915 hardcode_libdir_separator_CXX=:
10916
10917 # Archives containing C++ object files must be created using
10918 # the KAI C++ compiler.
10919 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10920 ;;
10921 RCC*)
10922 # Rational C++ 2.4.1
10923 # FIXME: insert proper C++ library support
10924 ld_shlibs_CXX=no
10925 ;;
10926 cxx*)
10927 allow_undefined_flag_CXX=' -expect_unresolved \*'
10928 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'
10929 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10930 echo "-hidden">> $lib.exp~
10931 $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~
10932 $rm $lib.exp'
10933
10934 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10935 hardcode_libdir_separator_CXX=:
10936
10937 # Commands to make compiler produce verbose output that lists
10938 # what "hidden" libraries, object files and flags are used when
10939 # linking a shared library.
10940 #
10941 # There doesn't appear to be a way to prevent this compiler from
10942 # explicitly linking system object files so we need to strip them
10943 # from the output so that they don't get included in the library
10944 # dependencies.
10945 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'
10946 ;;
10947 *)
10948 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10949 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10950 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'
10951
10952 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10953 hardcode_libdir_separator_CXX=:
10954
10955 # Commands to make compiler produce verbose output that lists
10956 # what "hidden" libraries, object files and flags are used when
10957 # linking a shared library.
10958 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10959
10960 else
10961 # FIXME: insert proper C++ library support
10962 ld_shlibs_CXX=no
10963 fi
10964 ;;
10965 esac
10966 ;;
10967 psos*)
10968 # FIXME: insert proper C++ library support
10969 ld_shlibs_CXX=no
10970 ;;
10971 sunos4*)
10972 case $cc_basename in
10973 CC*)
10974 # Sun C++ 4.x
10975 # FIXME: insert proper C++ library support
10976 ld_shlibs_CXX=no
10977 ;;
10978 lcc*)
10979 # Lucid
10980 # FIXME: insert proper C++ library support
10981 ld_shlibs_CXX=no
10982 ;;
10983 *)
10984 # FIXME: insert proper C++ library support
10985 ld_shlibs_CXX=no
10986 ;;
10987 esac
10988 ;;
10989 solaris*)
10990 case $cc_basename in
10991 CC*)
10992 # Sun C++ 4.2, 5.x and Centerline C++
10993 archive_cmds_need_lc_CXX=yes
10994 no_undefined_flag_CXX=' -zdefs'
10995 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10996 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10997 $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'
10998
10999 hardcode_libdir_flag_spec_CXX='-R$libdir'
11000 hardcode_shlibpath_var_CXX=no
11001 case $host_os in
11002 solaris2.[0-5] | solaris2.[0-5].*) ;;
11003 *)
11004 # The C++ compiler is used as linker so we must use $wl
11005 # flag to pass the commands to the underlying system
11006 # linker. We must also pass each convience library through
11007 # to the system linker between allextract/defaultextract.
11008 # The C++ compiler will combine linker options so we
11009 # cannot just pass the convience library names through
11010 # without $wl.
11011 # Supported since Solaris 2.6 (maybe 2.5.1?)
11012 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'
11013 ;;
11014 esac
11015 link_all_deplibs_CXX=yes
11016
11017 output_verbose_link_cmd='echo'
11018
11019 # Archives containing C++ object files must be created using
11020 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11021 # necessary to make sure instantiated templates are included
11022 # in the archive.
11023 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11024 ;;
11025 gcx*)
11026 # Green Hills C++ Compiler
11027 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11028
11029 # The C++ compiler must be used to create the archive.
11030 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11031 ;;
11032 *)
11033 # GNU C++ compiler with Solaris linker
11034 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11035 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11036 if $CC --version | grep -v '^2\.7' > /dev/null; then
11037 archive_cmds_CXX='$CC -shared -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 -shared -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 -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11045 else
11046 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11047 # platform.
11048 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11049 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11050 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11051
11052 # Commands to make compiler produce verbose output that lists
11053 # what "hidden" libraries, object files and flags are used when
11054 # linking a shared library.
11055 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11056 fi
11057
11058 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11059 fi
11060 ;;
11061 esac
11062 ;;
11063 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11064 no_undefined_flag_CXX='${wl}-z,text'
11065 archive_cmds_need_lc_CXX=no
11066 hardcode_shlibpath_var_CXX=no
11067 runpath_var='LD_RUN_PATH'
11068
11069 case $cc_basename in
11070 CC*)
11071 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11072 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11073 ;;
11074 *)
11075 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11076 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11077 ;;
11078 esac
11079 ;;
11080 sysv5* | sco3.2v5* | sco5v6*)
11081 # Note: We can NOT use -z defs as we might desire, because we do not
11082 # link with -lc, and that would cause any symbols used from libc to
11083 # always be unresolved, which means just about no library would
11084 # ever link correctly. If we're not using GNU ld we use -z text
11085 # though, which does catch some bad symbols but isn't as heavy-handed
11086 # as -z defs.
11087 # For security reasons, it is highly recommended that you always
11088 # use absolute paths for naming shared libraries, and exclude the
11089 # DT_RUNPATH tag from executables and libraries. But doing so
11090 # requires that you compile everything twice, which is a pain.
11091 # So that behaviour is only enabled if SCOABSPATH is set to a
11092 # non-empty value in the environment. Most likely only useful for
11093 # creating official distributions of packages.
11094 # This is a hack until libtool officially supports absolute path
11095 # names for shared libraries.
11096 no_undefined_flag_CXX='${wl}-z,text'
11097 allow_undefined_flag_CXX='${wl}-z,nodefs'
11098 archive_cmds_need_lc_CXX=no
11099 hardcode_shlibpath_var_CXX=no
11100 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11101 hardcode_libdir_separator_CXX=':'
11102 link_all_deplibs_CXX=yes
11103 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11104 runpath_var='LD_RUN_PATH'
11105
11106 case $cc_basename in
11107 CC*)
11108 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11109 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11110 ;;
11111 *)
11112 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11113 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11114 ;;
11115 esac
11116 ;;
11117 tandem*)
11118 case $cc_basename in
11119 NCC*)
11120 # NonStop-UX NCC 3.20
11121 # FIXME: insert proper C++ library support
11122 ld_shlibs_CXX=no
11123 ;;
11124 *)
11125 # FIXME: insert proper C++ library support
11126 ld_shlibs_CXX=no
11127 ;;
11128 esac
11129 ;;
11130 vxworks*)
11131 # FIXME: insert proper C++ library support
11132 ld_shlibs_CXX=no
11133 ;;
11134 *)
11135 # FIXME: insert proper C++ library support
11136 ld_shlibs_CXX=no
11137 ;;
11138 esac
11139 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11140 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11141 test "$ld_shlibs_CXX" = no && can_build_shared=no
11142
11143 GCC_CXX="$GXX"
11144 LD_CXX="$LD"
11145
11146
11147 cat > conftest.$ac_ext <<EOF
11148 class Foo
11149 {
11150 public:
11151 Foo (void) { a = 0; }
11152 private:
11153 int a;
11154 };
11155 EOF
11156
11157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11158 (eval $ac_compile) 2>&5
11159 ac_status=$?
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); }; then
11162 # Parse the compiler output and extract the necessary
11163 # objects, libraries and library flags.
11164
11165 # Sentinel used to keep track of whether or not we are before
11166 # the conftest object file.
11167 pre_test_object_deps_done=no
11168
11169 # The `*' in the case matches for architectures that use `case' in
11170 # $output_verbose_cmd can trigger glob expansion during the loop
11171 # eval without this substitution.
11172 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11173
11174 for p in `eval $output_verbose_link_cmd`; do
11175 case $p in
11176
11177 -L* | -R* | -l*)
11178 # Some compilers place space between "-{L,R}" and the path.
11179 # Remove the space.
11180 if test $p = "-L" \
11181 || test $p = "-R"; then
11182 prev=$p
11183 continue
11184 else
11185 prev=
11186 fi
11187
11188 if test "$pre_test_object_deps_done" = no; then
11189 case $p in
11190 -L* | -R*)
11191 # Internal compiler library paths should come after those
11192 # provided the user. The postdeps already come after the
11193 # user supplied libs so there is no need to process them.
11194 if test -z "$compiler_lib_search_path_CXX"; then
11195 compiler_lib_search_path_CXX="${prev}${p}"
11196 else
11197 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11198 fi
11199 ;;
11200 # The "-l" case would never come before the object being
11201 # linked, so don't bother handling this case.
11202 esac
11203 else
11204 if test -z "$postdeps_CXX"; then
11205 postdeps_CXX="${prev}${p}"
11206 else
11207 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11208 fi
11209 fi
11210 ;;
11211
11212 *.$objext)
11213 # This assumes that the test object file only shows up
11214 # once in the compiler output.
11215 if test "$p" = "conftest.$objext"; then
11216 pre_test_object_deps_done=yes
11217 continue
11218 fi
11219
11220 if test "$pre_test_object_deps_done" = no; then
11221 if test -z "$predep_objects_CXX"; then
11222 predep_objects_CXX="$p"
11223 else
11224 predep_objects_CXX="$predep_objects_CXX $p"
11225 fi
11226 else
11227 if test -z "$postdep_objects_CXX"; then
11228 postdep_objects_CXX="$p"
11229 else
11230 postdep_objects_CXX="$postdep_objects_CXX $p"
11231 fi
11232 fi
11233 ;;
11234
11235 *) ;; # Ignore the rest.
11236
11237 esac
11238 done
11239
11240 # Clean up.
11241 rm -f a.out a.exe
11242 else
11243 echo "libtool.m4: error: problem compiling CXX test program"
11244 fi
11245
11246 $rm -f confest.$objext
11247
11248 # PORTME: override above test on systems where it is broken
11249 case $host_os in
11250 interix3*)
11251 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11252 # hack all around it, let's just trust "g++" to DTRT.
11253 predep_objects_CXX=
11254 postdep_objects_CXX=
11255 postdeps_CXX=
11256 ;;
11257
11258 solaris*)
11259 case $cc_basename in
11260 CC*)
11261 # Adding this requires a known-good setup of shared libraries for
11262 # Sun compiler versions before 5.6, else PIC objects from an old
11263 # archive will be linked into the output, leading to subtle bugs.
11264 postdeps_CXX='-lCstd -lCrun'
11265 ;;
11266 esac
11267 ;;
11268 esac
11269
11270
11271 case " $postdeps_CXX " in
11272 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11273 esac
11274
11275 lt_prog_compiler_wl_CXX=
11276 lt_prog_compiler_pic_CXX=
11277 lt_prog_compiler_static_CXX=
11278
11279 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11280 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11281
11282 # C++ specific cases for pic, static, wl, etc.
11283 if test "$GXX" = yes; then
11284 lt_prog_compiler_wl_CXX='-Wl,'
11285 lt_prog_compiler_static_CXX='-static'
11286
11287 case $host_os in
11288 aix*)
11289 # All AIX code is PIC.
11290 if test "$host_cpu" = ia64; then
11291 # AIX 5 now supports IA64 processor
11292 lt_prog_compiler_static_CXX='-Bstatic'
11293 fi
11294 ;;
11295 amigaos*)
11296 # FIXME: we need at least 68020 code to build shared libraries, but
11297 # adding the `-m68020' flag to GCC prevents building anything better,
11298 # like `-m68040'.
11299 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11300 ;;
11301 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11302 # PIC is the default for these OSes.
11303 ;;
11304 mingw* | os2* | pw32*)
11305 # This hack is so that the source file can tell whether it is being
11306 # built for inclusion in a dll (and should export symbols for example).
11307 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11308 ;;
11309 darwin* | rhapsody*)
11310 # PIC is the default on this platform
11311 # Common symbols not allowed in MH_DYLIB files
11312 lt_prog_compiler_pic_CXX='-fno-common'
11313 ;;
11314 *djgpp*)
11315 # DJGPP does not support shared libraries at all
11316 lt_prog_compiler_pic_CXX=
11317 ;;
11318 interix3*)
11319 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11320 # Instead, we relocate shared libraries at runtime.
11321 ;;
11322 sysv4*MP*)
11323 if test -d /usr/nec; then
11324 lt_prog_compiler_pic_CXX=-Kconform_pic
11325 fi
11326 ;;
11327 hpux*)
11328 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11329 # not for PA HP-UX.
11330 case $host_cpu in
11331 hppa*64*|ia64*)
11332 ;;
11333 *)
11334 lt_prog_compiler_pic_CXX='-fPIC'
11335 ;;
11336 esac
11337 ;;
11338 *)
11339 lt_prog_compiler_pic_CXX='-fPIC'
11340 ;;
11341 esac
11342 else
11343 case $host_os in
11344 aix4* | aix5*)
11345 # All AIX code is PIC.
11346 if test "$host_cpu" = ia64; then
11347 # AIX 5 now supports IA64 processor
11348 lt_prog_compiler_static_CXX='-Bstatic'
11349 else
11350 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11351 fi
11352 ;;
11353 chorus*)
11354 case $cc_basename in
11355 cxch68*)
11356 # Green Hills C++ Compiler
11357 # _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"
11358 ;;
11359 esac
11360 ;;
11361 darwin*)
11362 # PIC is the default on this platform
11363 # Common symbols not allowed in MH_DYLIB files
11364 case $cc_basename in
11365 xlc*)
11366 lt_prog_compiler_pic_CXX='-qnocommon'
11367 lt_prog_compiler_wl_CXX='-Wl,'
11368 ;;
11369 esac
11370 ;;
11371 dgux*)
11372 case $cc_basename in
11373 ec++*)
11374 lt_prog_compiler_pic_CXX='-KPIC'
11375 ;;
11376 ghcx*)
11377 # Green Hills C++ Compiler
11378 lt_prog_compiler_pic_CXX='-pic'
11379 ;;
11380 *)
11381 ;;
11382 esac
11383 ;;
11384 freebsd* | kfreebsd*-gnu | dragonfly*)
11385 # FreeBSD uses GNU C++
11386 ;;
11387 hpux9* | hpux10* | hpux11*)
11388 case $cc_basename in
11389 CC*)
11390 lt_prog_compiler_wl_CXX='-Wl,'
11391 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11392 if test "$host_cpu" != ia64; then
11393 lt_prog_compiler_pic_CXX='+Z'
11394 fi
11395 ;;
11396 aCC*)
11397 lt_prog_compiler_wl_CXX='-Wl,'
11398 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11399 case $host_cpu in
11400 hppa*64*|ia64*)
11401 # +Z the default
11402 ;;
11403 *)
11404 lt_prog_compiler_pic_CXX='+Z'
11405 ;;
11406 esac
11407 ;;
11408 *)
11409 ;;
11410 esac
11411 ;;
11412 interix*)
11413 # This is c89, which is MS Visual C++ (no shared libs)
11414 # Anyone wants to do a port?
11415 ;;
11416 irix5* | irix6* | nonstopux*)
11417 case $cc_basename in
11418 CC*)
11419 lt_prog_compiler_wl_CXX='-Wl,'
11420 lt_prog_compiler_static_CXX='-non_shared'
11421 # CC pic flag -KPIC is the default.
11422 ;;
11423 *)
11424 ;;
11425 esac
11426 ;;
11427 linux*)
11428 case $cc_basename in
11429 KCC*)
11430 # KAI C++ Compiler
11431 lt_prog_compiler_wl_CXX='--backend -Wl,'
11432 lt_prog_compiler_pic_CXX='-fPIC'
11433 ;;
11434 icpc* | ecpc*)
11435 # Intel C++
11436 lt_prog_compiler_wl_CXX='-Wl,'
11437 lt_prog_compiler_pic_CXX='-KPIC'
11438 lt_prog_compiler_static_CXX='-static'
11439 ;;
11440 pgCC*)
11441 # Portland Group C++ compiler.
11442 lt_prog_compiler_wl_CXX='-Wl,'
11443 lt_prog_compiler_pic_CXX='-fpic'
11444 lt_prog_compiler_static_CXX='-Bstatic'
11445 ;;
11446 cxx*)
11447 # Compaq C++
11448 # Make sure the PIC flag is empty. It appears that all Alpha
11449 # Linux and Compaq Tru64 Unix objects are PIC.
11450 lt_prog_compiler_pic_CXX=
11451 lt_prog_compiler_static_CXX='-non_shared'
11452 ;;
11453 *)
11454 ;;
11455 esac
11456 ;;
11457 lynxos*)
11458 ;;
11459 m88k*)
11460 ;;
11461 mvs*)
11462 case $cc_basename in
11463 cxx*)
11464 lt_prog_compiler_pic_CXX='-W c,exportall'
11465 ;;
11466 *)
11467 ;;
11468 esac
11469 ;;
11470 netbsd*)
11471 ;;
11472 osf3* | osf4* | osf5*)
11473 case $cc_basename in
11474 KCC*)
11475 lt_prog_compiler_wl_CXX='--backend -Wl,'
11476 ;;
11477 RCC*)
11478 # Rational C++ 2.4.1
11479 lt_prog_compiler_pic_CXX='-pic'
11480 ;;
11481 cxx*)
11482 # Digital/Compaq C++
11483 lt_prog_compiler_wl_CXX='-Wl,'
11484 # Make sure the PIC flag is empty. It appears that all Alpha
11485 # Linux and Compaq Tru64 Unix objects are PIC.
11486 lt_prog_compiler_pic_CXX=
11487 lt_prog_compiler_static_CXX='-non_shared'
11488 ;;
11489 *)
11490 ;;
11491 esac
11492 ;;
11493 psos*)
11494 ;;
11495 solaris*)
11496 case $cc_basename in
11497 CC*)
11498 # Sun C++ 4.2, 5.x and Centerline C++
11499 lt_prog_compiler_pic_CXX='-KPIC'
11500 lt_prog_compiler_static_CXX='-Bstatic'
11501 lt_prog_compiler_wl_CXX='-Qoption ld '
11502 ;;
11503 gcx*)
11504 # Green Hills C++ Compiler
11505 lt_prog_compiler_pic_CXX='-PIC'
11506 ;;
11507 *)
11508 ;;
11509 esac
11510 ;;
11511 sunos4*)
11512 case $cc_basename in
11513 CC*)
11514 # Sun C++ 4.x
11515 lt_prog_compiler_pic_CXX='-pic'
11516 lt_prog_compiler_static_CXX='-Bstatic'
11517 ;;
11518 lcc*)
11519 # Lucid
11520 lt_prog_compiler_pic_CXX='-pic'
11521 ;;
11522 *)
11523 ;;
11524 esac
11525 ;;
11526 tandem*)
11527 case $cc_basename in
11528 NCC*)
11529 # NonStop-UX NCC 3.20
11530 lt_prog_compiler_pic_CXX='-KPIC'
11531 ;;
11532 *)
11533 ;;
11534 esac
11535 ;;
11536 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11537 case $cc_basename in
11538 CC*)
11539 lt_prog_compiler_wl_CXX='-Wl,'
11540 lt_prog_compiler_pic_CXX='-KPIC'
11541 lt_prog_compiler_static_CXX='-Bstatic'
11542 ;;
11543 esac
11544 ;;
11545 vxworks*)
11546 ;;
11547 *)
11548 lt_prog_compiler_can_build_shared_CXX=no
11549 ;;
11550 esac
11551 fi
11552
11553 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11554 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11555
11556 #
11557 # Check to make sure the PIC flag actually works.
11558 #
11559 if test -n "$lt_prog_compiler_pic_CXX"; then
11560
11561 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11562 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11563 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11564 echo $ECHO_N "(cached) $ECHO_C" >&6
11565 else
11566 lt_prog_compiler_pic_works_CXX=no
11567 ac_outfile=conftest.$ac_objext
11568 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11569 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11570 # Insert the option either (1) after the last *FLAGS variable, or
11571 # (2) before a word containing "conftest.", or (3) at the end.
11572 # Note that $ac_compile itself does not contain backslashes and begins
11573 # with a dollar sign (not a hyphen), so the echo should work correctly.
11574 # The option is referenced via a variable to avoid confusing sed.
11575 lt_compile=`echo "$ac_compile" | $SED \
11576 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11577 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11578 -e 's:$: $lt_compiler_flag:'`
11579 (eval echo "\"\$as_me:11579: $lt_compile\"" >&5)
11580 (eval "$lt_compile" 2>conftest.err)
11581 ac_status=$?
11582 cat conftest.err >&5
11583 echo "$as_me:11583: \$? = $ac_status" >&5
11584 if (exit $ac_status) && test -s "$ac_outfile"; then
11585 # The compiler can only warn and ignore the option if not recognized
11586 # So say no if there are warnings other than the usual output.
11587 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11588 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11589 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11590 lt_prog_compiler_pic_works_CXX=yes
11591 fi
11592 fi
11593 $rm conftest*
11594
11595 fi
11596 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11597 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11598
11599 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11600 case $lt_prog_compiler_pic_CXX in
11601 "" | " "*) ;;
11602 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11603 esac
11604 else
11605 lt_prog_compiler_pic_CXX=
11606 lt_prog_compiler_can_build_shared_CXX=no
11607 fi
11608
11609 fi
11610 case $host_os in
11611 # For platforms which do not support PIC, -DPIC is meaningless:
11612 *djgpp*)
11613 lt_prog_compiler_pic_CXX=
11614 ;;
11615 *)
11616 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11617 ;;
11618 esac
11619
11620 #
11621 # Check to make sure the static flag actually works.
11622 #
11623 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11624 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11625 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11626 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11627 echo $ECHO_N "(cached) $ECHO_C" >&6
11628 else
11629 lt_prog_compiler_static_works_CXX=no
11630 save_LDFLAGS="$LDFLAGS"
11631 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11632 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11633 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11634 # The linker can only warn and ignore the option if not recognized
11635 # So say no if there are warnings
11636 if test -s conftest.err; then
11637 # Append any errors to the config.log.
11638 cat conftest.err 1>&5
11639 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11640 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11641 if diff conftest.exp conftest.er2 >/dev/null; then
11642 lt_prog_compiler_static_works_CXX=yes
11643 fi
11644 else
11645 lt_prog_compiler_static_works_CXX=yes
11646 fi
11647 fi
11648 $rm conftest*
11649 LDFLAGS="$save_LDFLAGS"
11650
11651 fi
11652 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11653 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11654
11655 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11656 :
11657 else
11658 lt_prog_compiler_static_CXX=
11659 fi
11660
11661
11662 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11663 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11664 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11665 echo $ECHO_N "(cached) $ECHO_C" >&6
11666 else
11667 lt_cv_prog_compiler_c_o_CXX=no
11668 $rm -r conftest 2>/dev/null
11669 mkdir conftest
11670 cd conftest
11671 mkdir out
11672 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11673
11674 lt_compiler_flag="-o out/conftest2.$ac_objext"
11675 # Insert the option either (1) after the last *FLAGS variable, or
11676 # (2) before a word containing "conftest.", or (3) at the end.
11677 # Note that $ac_compile itself does not contain backslashes and begins
11678 # with a dollar sign (not a hyphen), so the echo should work correctly.
11679 lt_compile=`echo "$ac_compile" | $SED \
11680 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11682 -e 's:$: $lt_compiler_flag:'`
11683 (eval echo "\"\$as_me:11683: $lt_compile\"" >&5)
11684 (eval "$lt_compile" 2>out/conftest.err)
11685 ac_status=$?
11686 cat out/conftest.err >&5
11687 echo "$as_me:11687: \$? = $ac_status" >&5
11688 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11689 then
11690 # The compiler can only warn and ignore the option if not recognized
11691 # So say no if there are warnings
11692 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11693 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11694 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11695 lt_cv_prog_compiler_c_o_CXX=yes
11696 fi
11697 fi
11698 chmod u+w . 2>&5
11699 $rm conftest*
11700 # SGI C++ compiler will create directory out/ii_files/ for
11701 # template instantiation
11702 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11703 $rm out/* && rmdir out
11704 cd ..
11705 rmdir conftest
11706 $rm conftest*
11707
11708 fi
11709 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11710 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11711
11712
11713 hard_links="nottested"
11714 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11715 # do not overwrite the value of need_locks provided by the user
11716 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11717 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11718 hard_links=yes
11719 $rm conftest*
11720 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11721 touch conftest.a
11722 ln conftest.a conftest.b 2>&5 || hard_links=no
11723 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11724 echo "$as_me:$LINENO: result: $hard_links" >&5
11725 echo "${ECHO_T}$hard_links" >&6
11726 if test "$hard_links" = no; then
11727 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11728 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11729 need_locks=warn
11730 fi
11731 else
11732 need_locks=no
11733 fi
11734
11735 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11736 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11737
11738 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11739 case $host_os in
11740 aix4* | aix5*)
11741 # If we're using GNU nm, then we don't want the "-C" option.
11742 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11743 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11744 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'
11745 else
11746 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'
11747 fi
11748 ;;
11749 pw32*)
11750 export_symbols_cmds_CXX="$ltdll_cmds"
11751 ;;
11752 cygwin* | mingw*)
11753 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'
11754 ;;
11755 *)
11756 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11757 ;;
11758 esac
11759
11760 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11761 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11762 test "$ld_shlibs_CXX" = no && can_build_shared=no
11763
11764 #
11765 # Do we need to explicitly link libc?
11766 #
11767 case "x$archive_cmds_need_lc_CXX" in
11768 x|xyes)
11769 # Assume -lc should be added
11770 archive_cmds_need_lc_CXX=yes
11771
11772 if test "$enable_shared" = yes && test "$GCC" = yes; then
11773 case $archive_cmds_CXX in
11774 *'~'*)
11775 # FIXME: we may have to deal with multi-command sequences.
11776 ;;
11777 '$CC '*)
11778 # Test whether the compiler implicitly links with -lc since on some
11779 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11780 # to ld, don't add -lc before -lgcc.
11781 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11782 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11783 $rm conftest*
11784 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11785
11786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11787 (eval $ac_compile) 2>&5
11788 ac_status=$?
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } 2>conftest.err; then
11791 soname=conftest
11792 lib=conftest
11793 libobjs=conftest.$ac_objext
11794 deplibs=
11795 wl=$lt_prog_compiler_wl_CXX
11796 pic_flag=$lt_prog_compiler_pic_CXX
11797 compiler_flags=-v
11798 linker_flags=-v
11799 verstring=
11800 output_objdir=.
11801 libname=conftest
11802 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11803 allow_undefined_flag_CXX=
11804 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11805 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11806 ac_status=$?
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }
11809 then
11810 archive_cmds_need_lc_CXX=no
11811 else
11812 archive_cmds_need_lc_CXX=yes
11813 fi
11814 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11815 else
11816 cat conftest.err 1>&5
11817 fi
11818 $rm conftest*
11819 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11820 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11821 ;;
11822 esac
11823 fi
11824 ;;
11825 esac
11826
11827 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11828 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11829 library_names_spec=
11830 libname_spec='lib$name'
11831 soname_spec=
11832 shrext_cmds=".so"
11833 postinstall_cmds=
11834 postuninstall_cmds=
11835 finish_cmds=
11836 finish_eval=
11837 shlibpath_var=
11838 shlibpath_overrides_runpath=unknown
11839 version_type=none
11840 dynamic_linker="$host_os ld.so"
11841 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11842 if test "$GCC" = yes; then
11843 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11844 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11845 # if the path contains ";" then we assume it to be the separator
11846 # otherwise default to the standard path separator (i.e. ":") - it is
11847 # assumed that no part of a normal pathname contains ";" but that should
11848 # okay in the real world where ";" in dirpaths is itself problematic.
11849 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11850 else
11851 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11852 fi
11853 else
11854 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11855 fi
11856 need_lib_prefix=unknown
11857 hardcode_into_libs=no
11858
11859 # when you set need_version to no, make sure it does not cause -set_version
11860 # flags to be left without arguments
11861 need_version=unknown
11862
11863 case $host_os in
11864 aix3*)
11865 version_type=linux
11866 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11867 shlibpath_var=LIBPATH
11868
11869 # AIX 3 has no versioning support, so we append a major version to the name.
11870 soname_spec='${libname}${release}${shared_ext}$major'
11871 ;;
11872
11873 aix4* | aix5*)
11874 version_type=linux
11875 need_lib_prefix=no
11876 need_version=no
11877 hardcode_into_libs=yes
11878 if test "$host_cpu" = ia64; then
11879 # AIX 5 supports IA64
11880 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11881 shlibpath_var=LD_LIBRARY_PATH
11882 else
11883 # With GCC up to 2.95.x, collect2 would create an import file
11884 # for dependence libraries. The import file would start with
11885 # the line `#! .'. This would cause the generated library to
11886 # depend on `.', always an invalid library. This was fixed in
11887 # development snapshots of GCC prior to 3.0.
11888 case $host_os in
11889 aix4 | aix4.[01] | aix4.[01].*)
11890 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11891 echo ' yes '
11892 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11893 :
11894 else
11895 can_build_shared=no
11896 fi
11897 ;;
11898 esac
11899 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11900 # soname into executable. Probably we can add versioning support to
11901 # collect2, so additional links can be useful in future.
11902 if test "$aix_use_runtimelinking" = yes; then
11903 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11904 # instead of lib<name>.a to let people know that these are not
11905 # typical AIX shared libraries.
11906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11907 else
11908 # We preserve .a as extension for shared libraries through AIX4.2
11909 # and later when we are not doing run time linking.
11910 library_names_spec='${libname}${release}.a $libname.a'
11911 soname_spec='${libname}${release}${shared_ext}$major'
11912 fi
11913 shlibpath_var=LIBPATH
11914 fi
11915 ;;
11916
11917 amigaos*)
11918 library_names_spec='$libname.ixlibrary $libname.a'
11919 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11920 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'
11921 ;;
11922
11923 beos*)
11924 library_names_spec='${libname}${shared_ext}'
11925 dynamic_linker="$host_os ld.so"
11926 shlibpath_var=LIBRARY_PATH
11927 ;;
11928
11929 bsdi[45]*)
11930 version_type=linux
11931 need_version=no
11932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11933 soname_spec='${libname}${release}${shared_ext}$major'
11934 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11935 shlibpath_var=LD_LIBRARY_PATH
11936 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11937 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11938 # the default ld.so.conf also contains /usr/contrib/lib and
11939 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11940 # libtool to hard-code these into programs
11941 ;;
11942
11943 cygwin* | mingw* | pw32*)
11944 version_type=windows
11945 shrext_cmds=".dll"
11946 need_version=no
11947 need_lib_prefix=no
11948
11949 case $GCC,$host_os in
11950 yes,cygwin* | yes,mingw* | yes,pw32*)
11951 library_names_spec='$libname.dll.a'
11952 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11953 postinstall_cmds='base_file=`basename \${file}`~
11954 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11955 dldir=$destdir/`dirname \$dlpath`~
11956 test -d \$dldir || mkdir -p \$dldir~
11957 $install_prog $dir/$dlname \$dldir/$dlname~
11958 chmod a+x \$dldir/$dlname'
11959 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11960 dlpath=$dir/\$dldll~
11961 $rm \$dlpath'
11962 shlibpath_overrides_runpath=yes
11963
11964 case $host_os in
11965 cygwin*)
11966 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11967 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11968 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11969 ;;
11970 mingw*)
11971 # MinGW DLLs use traditional 'lib' prefix
11972 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11973 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11974 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11975 # It is most probably a Windows format PATH printed by
11976 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11977 # path with ; separators, and with drive letters. We can handle the
11978 # drive letters (cygwin fileutils understands them), so leave them,
11979 # especially as we might pass files found there to a mingw objdump,
11980 # which wouldn't understand a cygwinified path. Ahh.
11981 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11982 else
11983 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11984 fi
11985 ;;
11986 pw32*)
11987 # pw32 DLLs use 'pw' prefix rather than 'lib'
11988 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11989 ;;
11990 esac
11991 ;;
11992
11993 *)
11994 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11995 ;;
11996 esac
11997 dynamic_linker='Win32 ld.exe'
11998 # FIXME: first we should search . and the directory the executable is in
11999 shlibpath_var=PATH
12000 ;;
12001
12002 darwin* | rhapsody*)
12003 dynamic_linker="$host_os dyld"
12004 version_type=darwin
12005 need_lib_prefix=no
12006 need_version=no
12007 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12008 soname_spec='${libname}${release}${major}$shared_ext'
12009 shlibpath_overrides_runpath=yes
12010 shlibpath_var=DYLD_LIBRARY_PATH
12011 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12012 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12013 if test "$GCC" = yes; then
12014 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"`
12015 else
12016 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12017 fi
12018 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12019 ;;
12020
12021 dgux*)
12022 version_type=linux
12023 need_lib_prefix=no
12024 need_version=no
12025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12026 soname_spec='${libname}${release}${shared_ext}$major'
12027 shlibpath_var=LD_LIBRARY_PATH
12028 ;;
12029
12030 freebsd1*)
12031 dynamic_linker=no
12032 ;;
12033
12034 kfreebsd*-gnu)
12035 version_type=linux
12036 need_lib_prefix=no
12037 need_version=no
12038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12039 soname_spec='${libname}${release}${shared_ext}$major'
12040 shlibpath_var=LD_LIBRARY_PATH
12041 shlibpath_overrides_runpath=no
12042 hardcode_into_libs=yes
12043 dynamic_linker='GNU ld.so'
12044 ;;
12045
12046 freebsd* | dragonfly*)
12047 # DragonFly does not have aout. When/if they implement a new
12048 # versioning mechanism, adjust this.
12049 if test -x /usr/bin/objformat; then
12050 objformat=`/usr/bin/objformat`
12051 else
12052 case $host_os in
12053 freebsd[123]*) objformat=aout ;;
12054 *) objformat=elf ;;
12055 esac
12056 fi
12057 version_type=freebsd-$objformat
12058 case $version_type in
12059 freebsd-elf*)
12060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12061 need_version=no
12062 need_lib_prefix=no
12063 ;;
12064 freebsd-*)
12065 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12066 need_version=yes
12067 ;;
12068 esac
12069 shlibpath_var=LD_LIBRARY_PATH
12070 case $host_os in
12071 freebsd2*)
12072 shlibpath_overrides_runpath=yes
12073 ;;
12074 freebsd3.[01]* | freebsdelf3.[01]*)
12075 shlibpath_overrides_runpath=yes
12076 hardcode_into_libs=yes
12077 ;;
12078 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12079 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12080 shlibpath_overrides_runpath=no
12081 hardcode_into_libs=yes
12082 ;;
12083 freebsd*) # from 4.6 on
12084 shlibpath_overrides_runpath=yes
12085 hardcode_into_libs=yes
12086 ;;
12087 esac
12088 ;;
12089
12090 gnu*)
12091 version_type=linux
12092 need_lib_prefix=no
12093 need_version=no
12094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12095 soname_spec='${libname}${release}${shared_ext}$major'
12096 shlibpath_var=LD_LIBRARY_PATH
12097 hardcode_into_libs=yes
12098 ;;
12099
12100 hpux9* | hpux10* | hpux11*)
12101 # Give a soname corresponding to the major version so that dld.sl refuses to
12102 # link against other versions.
12103 version_type=sunos
12104 need_lib_prefix=no
12105 need_version=no
12106 case $host_cpu in
12107 ia64*)
12108 shrext_cmds='.so'
12109 hardcode_into_libs=yes
12110 dynamic_linker="$host_os dld.so"
12111 shlibpath_var=LD_LIBRARY_PATH
12112 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12114 soname_spec='${libname}${release}${shared_ext}$major'
12115 if test "X$HPUX_IA64_MODE" = X32; then
12116 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12117 else
12118 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12119 fi
12120 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12121 ;;
12122 hppa*64*)
12123 shrext_cmds='.sl'
12124 hardcode_into_libs=yes
12125 dynamic_linker="$host_os dld.sl"
12126 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12127 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12129 soname_spec='${libname}${release}${shared_ext}$major'
12130 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12131 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12132 ;;
12133 *)
12134 shrext_cmds='.sl'
12135 dynamic_linker="$host_os dld.sl"
12136 shlibpath_var=SHLIB_PATH
12137 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12139 soname_spec='${libname}${release}${shared_ext}$major'
12140 ;;
12141 esac
12142 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12143 postinstall_cmds='chmod 555 $lib'
12144 ;;
12145
12146 interix3*)
12147 version_type=linux
12148 need_lib_prefix=no
12149 need_version=no
12150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12151 soname_spec='${libname}${release}${shared_ext}$major'
12152 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12153 shlibpath_var=LD_LIBRARY_PATH
12154 shlibpath_overrides_runpath=no
12155 hardcode_into_libs=yes
12156 ;;
12157
12158 irix5* | irix6* | nonstopux*)
12159 case $host_os in
12160 nonstopux*) version_type=nonstopux ;;
12161 *)
12162 if test "$lt_cv_prog_gnu_ld" = yes; then
12163 version_type=linux
12164 else
12165 version_type=irix
12166 fi ;;
12167 esac
12168 need_lib_prefix=no
12169 need_version=no
12170 soname_spec='${libname}${release}${shared_ext}$major'
12171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12172 case $host_os in
12173 irix5* | nonstopux*)
12174 libsuff= shlibsuff=
12175 ;;
12176 *)
12177 case $LD in # libtool.m4 will add one of these switches to LD
12178 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12179 libsuff= shlibsuff= libmagic=32-bit;;
12180 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12181 libsuff=32 shlibsuff=N32 libmagic=N32;;
12182 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12183 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12184 *) libsuff= shlibsuff= libmagic=never-match;;
12185 esac
12186 ;;
12187 esac
12188 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12189 shlibpath_overrides_runpath=no
12190 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12191 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12192 hardcode_into_libs=yes
12193 ;;
12194
12195 # No shared lib support for Linux oldld, aout, or coff.
12196 linux*oldld* | linux*aout* | linux*coff*)
12197 dynamic_linker=no
12198 ;;
12199
12200 # This must be Linux ELF.
12201 linux*)
12202 version_type=linux
12203 need_lib_prefix=no
12204 need_version=no
12205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12206 soname_spec='${libname}${release}${shared_ext}$major'
12207 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12208 shlibpath_var=LD_LIBRARY_PATH
12209 shlibpath_overrides_runpath=no
12210 # This implies no fast_install, which is unacceptable.
12211 # Some rework will be needed to allow for fast_install
12212 # before this can be enabled.
12213 hardcode_into_libs=yes
12214
12215 # find out which ABI we are using
12216 libsuff=
12217 case "$host_cpu" in
12218 x86_64*|s390x*|powerpc64*)
12219 echo '#line 12219 "configure"' > conftest.$ac_ext
12220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12221 (eval $ac_compile) 2>&5
12222 ac_status=$?
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; then
12225 case `/usr/bin/file conftest.$ac_objext` in
12226 *64-bit*)
12227 libsuff=64
12228 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12229 ;;
12230 esac
12231 fi
12232 rm -rf conftest*
12233 ;;
12234 esac
12235
12236 # Append ld.so.conf contents to the search path
12237 if test -f /etc/ld.so.conf; then
12238 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' ' '`
12239 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12240 fi
12241
12242 # We used to test for /lib/ld.so.1 and disable shared libraries on
12243 # powerpc, because MkLinux only supported shared libraries with the
12244 # GNU dynamic linker. Since this was broken with cross compilers,
12245 # most powerpc-linux boxes support dynamic linking these days and
12246 # people can always --disable-shared, the test was removed, and we
12247 # assume the GNU/Linux dynamic linker is in use.
12248 dynamic_linker='GNU/Linux ld.so'
12249 ;;
12250
12251 knetbsd*-gnu)
12252 version_type=linux
12253 need_lib_prefix=no
12254 need_version=no
12255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12256 soname_spec='${libname}${release}${shared_ext}$major'
12257 shlibpath_var=LD_LIBRARY_PATH
12258 shlibpath_overrides_runpath=no
12259 hardcode_into_libs=yes
12260 dynamic_linker='GNU ld.so'
12261 ;;
12262
12263 netbsd*)
12264 version_type=sunos
12265 need_lib_prefix=no
12266 need_version=no
12267 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12270 dynamic_linker='NetBSD (a.out) ld.so'
12271 else
12272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12273 soname_spec='${libname}${release}${shared_ext}$major'
12274 dynamic_linker='NetBSD ld.elf_so'
12275 fi
12276 shlibpath_var=LD_LIBRARY_PATH
12277 shlibpath_overrides_runpath=yes
12278 hardcode_into_libs=yes
12279 ;;
12280
12281 newsos6)
12282 version_type=linux
12283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12284 shlibpath_var=LD_LIBRARY_PATH
12285 shlibpath_overrides_runpath=yes
12286 ;;
12287
12288 nto-qnx*)
12289 version_type=linux
12290 need_lib_prefix=no
12291 need_version=no
12292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12293 soname_spec='${libname}${release}${shared_ext}$major'
12294 shlibpath_var=LD_LIBRARY_PATH
12295 shlibpath_overrides_runpath=yes
12296 ;;
12297
12298 openbsd*)
12299 version_type=sunos
12300 sys_lib_dlsearch_path_spec="/usr/lib"
12301 need_lib_prefix=no
12302 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12303 case $host_os in
12304 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12305 *) need_version=no ;;
12306 esac
12307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12308 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12309 shlibpath_var=LD_LIBRARY_PATH
12310 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12311 case $host_os in
12312 openbsd2.[89] | openbsd2.[89].*)
12313 shlibpath_overrides_runpath=no
12314 ;;
12315 *)
12316 shlibpath_overrides_runpath=yes
12317 ;;
12318 esac
12319 else
12320 shlibpath_overrides_runpath=yes
12321 fi
12322 ;;
12323
12324 os2*)
12325 libname_spec='$name'
12326 shrext_cmds=".dll"
12327 need_lib_prefix=no
12328 library_names_spec='$libname${shared_ext} $libname.a'
12329 dynamic_linker='OS/2 ld.exe'
12330 shlibpath_var=LIBPATH
12331 ;;
12332
12333 osf3* | osf4* | osf5*)
12334 version_type=osf
12335 need_lib_prefix=no
12336 need_version=no
12337 soname_spec='${libname}${release}${shared_ext}$major'
12338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12339 shlibpath_var=LD_LIBRARY_PATH
12340 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12341 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12342 ;;
12343
12344 solaris*)
12345 version_type=linux
12346 need_lib_prefix=no
12347 need_version=no
12348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12349 soname_spec='${libname}${release}${shared_ext}$major'
12350 shlibpath_var=LD_LIBRARY_PATH
12351 shlibpath_overrides_runpath=yes
12352 hardcode_into_libs=yes
12353 # ldd complains unless libraries are executable
12354 postinstall_cmds='chmod +x $lib'
12355 ;;
12356
12357 sunos4*)
12358 version_type=sunos
12359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12360 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12361 shlibpath_var=LD_LIBRARY_PATH
12362 shlibpath_overrides_runpath=yes
12363 if test "$with_gnu_ld" = yes; then
12364 need_lib_prefix=no
12365 fi
12366 need_version=yes
12367 ;;
12368
12369 sysv4 | sysv4.3*)
12370 version_type=linux
12371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12372 soname_spec='${libname}${release}${shared_ext}$major'
12373 shlibpath_var=LD_LIBRARY_PATH
12374 case $host_vendor in
12375 sni)
12376 shlibpath_overrides_runpath=no
12377 need_lib_prefix=no
12378 export_dynamic_flag_spec='${wl}-Blargedynsym'
12379 runpath_var=LD_RUN_PATH
12380 ;;
12381 siemens)
12382 need_lib_prefix=no
12383 ;;
12384 motorola)
12385 need_lib_prefix=no
12386 need_version=no
12387 shlibpath_overrides_runpath=no
12388 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12389 ;;
12390 esac
12391 ;;
12392
12393 sysv4*MP*)
12394 if test -d /usr/nec ;then
12395 version_type=linux
12396 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12397 soname_spec='$libname${shared_ext}.$major'
12398 shlibpath_var=LD_LIBRARY_PATH
12399 fi
12400 ;;
12401
12402 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12403 version_type=freebsd-elf
12404 need_lib_prefix=no
12405 need_version=no
12406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12407 soname_spec='${libname}${release}${shared_ext}$major'
12408 shlibpath_var=LD_LIBRARY_PATH
12409 hardcode_into_libs=yes
12410 if test "$with_gnu_ld" = yes; then
12411 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12412 shlibpath_overrides_runpath=no
12413 else
12414 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12415 shlibpath_overrides_runpath=yes
12416 case $host_os in
12417 sco3.2v5*)
12418 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12419 ;;
12420 esac
12421 fi
12422 sys_lib_dlsearch_path_spec='/usr/lib'
12423 ;;
12424
12425 uts4*)
12426 version_type=linux
12427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12428 soname_spec='${libname}${release}${shared_ext}$major'
12429 shlibpath_var=LD_LIBRARY_PATH
12430 ;;
12431
12432 *)
12433 dynamic_linker=no
12434 ;;
12435 esac
12436 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12437 echo "${ECHO_T}$dynamic_linker" >&6
12438 test "$dynamic_linker" = no && can_build_shared=no
12439
12440 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12441 if test "$GCC" = yes; then
12442 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12443 fi
12444
12445 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12446 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12447 hardcode_action_CXX=
12448 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12449 test -n "$runpath_var_CXX" || \
12450 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12451
12452 # We can hardcode non-existant directories.
12453 if test "$hardcode_direct_CXX" != no &&
12454 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12455 # have to relink, otherwise we might link with an installed library
12456 # when we should be linking with a yet-to-be-installed one
12457 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12458 test "$hardcode_minus_L_CXX" != no; then
12459 # Linking always hardcodes the temporary library directory.
12460 hardcode_action_CXX=relink
12461 else
12462 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12463 hardcode_action_CXX=immediate
12464 fi
12465 else
12466 # We cannot hardcode anything, or else we can only hardcode existing
12467 # directories.
12468 hardcode_action_CXX=unsupported
12469 fi
12470 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12471 echo "${ECHO_T}$hardcode_action_CXX" >&6
12472
12473 if test "$hardcode_action_CXX" = relink; then
12474 # Fast installation is not supported
12475 enable_fast_install=no
12476 elif test "$shlibpath_overrides_runpath" = yes ||
12477 test "$enable_shared" = no; then
12478 # Fast installation is not necessary
12479 enable_fast_install=needless
12480 fi
12481
12482
12483 # The else clause should only fire when bootstrapping the
12484 # libtool distribution, otherwise you forgot to ship ltmain.sh
12485 # with your package, and you will get complaints that there are
12486 # no rules to generate ltmain.sh.
12487 if test -f "$ltmain"; then
12488 # See if we are running on zsh, and set the options which allow our commands through
12489 # without removal of \ escapes.
12490 if test -n "${ZSH_VERSION+set}" ; then
12491 setopt NO_GLOB_SUBST
12492 fi
12493 # Now quote all the things that may contain metacharacters while being
12494 # careful not to overquote the AC_SUBSTed values. We take copies of the
12495 # variables and quote the copies for generation of the libtool script.
12496 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12497 SED SHELL STRIP \
12498 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12499 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12500 deplibs_check_method reload_flag reload_cmds need_locks \
12501 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12502 lt_cv_sys_global_symbol_to_c_name_address \
12503 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12504 old_postinstall_cmds old_postuninstall_cmds \
12505 compiler_CXX \
12506 CC_CXX \
12507 LD_CXX \
12508 lt_prog_compiler_wl_CXX \
12509 lt_prog_compiler_pic_CXX \
12510 lt_prog_compiler_static_CXX \
12511 lt_prog_compiler_no_builtin_flag_CXX \
12512 export_dynamic_flag_spec_CXX \
12513 thread_safe_flag_spec_CXX \
12514 whole_archive_flag_spec_CXX \
12515 enable_shared_with_static_runtimes_CXX \
12516 old_archive_cmds_CXX \
12517 old_archive_from_new_cmds_CXX \
12518 predep_objects_CXX \
12519 postdep_objects_CXX \
12520 predeps_CXX \
12521 postdeps_CXX \
12522 compiler_lib_search_path_CXX \
12523 archive_cmds_CXX \
12524 archive_expsym_cmds_CXX \
12525 postinstall_cmds_CXX \
12526 postuninstall_cmds_CXX \
12527 old_archive_from_expsyms_cmds_CXX \
12528 allow_undefined_flag_CXX \
12529 no_undefined_flag_CXX \
12530 export_symbols_cmds_CXX \
12531 hardcode_libdir_flag_spec_CXX \
12532 hardcode_libdir_flag_spec_ld_CXX \
12533 hardcode_libdir_separator_CXX \
12534 hardcode_automatic_CXX \
12535 module_cmds_CXX \
12536 module_expsym_cmds_CXX \
12537 lt_cv_prog_compiler_c_o_CXX \
12538 exclude_expsyms_CXX \
12539 include_expsyms_CXX; do
12540
12541 case $var in
12542 old_archive_cmds_CXX | \
12543 old_archive_from_new_cmds_CXX | \
12544 archive_cmds_CXX | \
12545 archive_expsym_cmds_CXX | \
12546 module_cmds_CXX | \
12547 module_expsym_cmds_CXX | \
12548 old_archive_from_expsyms_cmds_CXX | \
12549 export_symbols_cmds_CXX | \
12550 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12551 postinstall_cmds | postuninstall_cmds | \
12552 old_postinstall_cmds | old_postuninstall_cmds | \
12553 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12554 # Double-quote double-evaled strings.
12555 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12556 ;;
12557 *)
12558 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12559 ;;
12560 esac
12561 done
12562
12563 case $lt_echo in
12564 *'\$0 --fallback-echo"')
12565 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12566 ;;
12567 esac
12568
12569 cfgfile="$ofile"
12570
12571 cat <<__EOF__ >> "$cfgfile"
12572 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12573
12574 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12575
12576 # Shell to use when invoking shell scripts.
12577 SHELL=$lt_SHELL
12578
12579 # Whether or not to build shared libraries.
12580 build_libtool_libs=$enable_shared
12581
12582 # Whether or not to build static libraries.
12583 build_old_libs=$enable_static
12584
12585 # Whether or not to add -lc for building shared libraries.
12586 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12587
12588 # Whether or not to disallow shared libs when runtime libs are static
12589 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12590
12591 # Whether or not to optimize for fast installation.
12592 fast_install=$enable_fast_install
12593
12594 # The host system.
12595 host_alias=$host_alias
12596 host=$host
12597 host_os=$host_os
12598
12599 # The build system.
12600 build_alias=$build_alias
12601 build=$build
12602 build_os=$build_os
12603
12604 # An echo program that does not interpret backslashes.
12605 echo=$lt_echo
12606
12607 # The archiver.
12608 AR=$lt_AR
12609 AR_FLAGS=$lt_AR_FLAGS
12610
12611 # A C compiler.
12612 LTCC=$lt_LTCC
12613
12614 # LTCC compiler flags.
12615 LTCFLAGS=$lt_LTCFLAGS
12616
12617 # A language-specific compiler.
12618 CC=$lt_compiler_CXX
12619
12620 # Is the compiler the GNU C compiler?
12621 with_gcc=$GCC_CXX
12622
12623 # An ERE matcher.
12624 EGREP=$lt_EGREP
12625
12626 # The linker used to build libraries.
12627 LD=$lt_LD_CXX
12628
12629 # Whether we need hard or soft links.
12630 LN_S=$lt_LN_S
12631
12632 # A BSD-compatible nm program.
12633 NM=$lt_NM
12634
12635 # A symbol stripping program
12636 STRIP=$lt_STRIP
12637
12638 # Used to examine libraries when file_magic_cmd begins "file"
12639 MAGIC_CMD=$MAGIC_CMD
12640
12641 # Used on cygwin: DLL creation program.
12642 DLLTOOL="$DLLTOOL"
12643
12644 # Used on cygwin: object dumper.
12645 OBJDUMP="$OBJDUMP"
12646
12647 # Used on cygwin: assembler.
12648 AS="$AS"
12649
12650 # The name of the directory that contains temporary libtool files.
12651 objdir=$objdir
12652
12653 # How to create reloadable object files.
12654 reload_flag=$lt_reload_flag
12655 reload_cmds=$lt_reload_cmds
12656
12657 # How to pass a linker flag through the compiler.
12658 wl=$lt_lt_prog_compiler_wl_CXX
12659
12660 # Object file suffix (normally "o").
12661 objext="$ac_objext"
12662
12663 # Old archive suffix (normally "a").
12664 libext="$libext"
12665
12666 # Shared library suffix (normally ".so").
12667 shrext_cmds='$shrext_cmds'
12668
12669 # Executable file suffix (normally "").
12670 exeext="$exeext"
12671
12672 # Additional compiler flags for building library objects.
12673 pic_flag=$lt_lt_prog_compiler_pic_CXX
12674 pic_mode=$pic_mode
12675
12676 # What is the maximum length of a command?
12677 max_cmd_len=$lt_cv_sys_max_cmd_len
12678
12679 # Does compiler simultaneously support -c and -o options?
12680 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12681
12682 # Must we lock files when doing compilation?
12683 need_locks=$lt_need_locks
12684
12685 # Do we need the lib prefix for modules?
12686 need_lib_prefix=$need_lib_prefix
12687
12688 # Do we need a version for libraries?
12689 need_version=$need_version
12690
12691 # Whether dlopen is supported.
12692 dlopen_support=$enable_dlopen
12693
12694 # Whether dlopen of programs is supported.
12695 dlopen_self=$enable_dlopen_self
12696
12697 # Whether dlopen of statically linked programs is supported.
12698 dlopen_self_static=$enable_dlopen_self_static
12699
12700 # Compiler flag to prevent dynamic linking.
12701 link_static_flag=$lt_lt_prog_compiler_static_CXX
12702
12703 # Compiler flag to turn off builtin functions.
12704 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12705
12706 # Compiler flag to allow reflexive dlopens.
12707 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12708
12709 # Compiler flag to generate shared objects directly from archives.
12710 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12711
12712 # Compiler flag to generate thread-safe objects.
12713 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12714
12715 # Library versioning type.
12716 version_type=$version_type
12717
12718 # Format of library name prefix.
12719 libname_spec=$lt_libname_spec
12720
12721 # List of archive names. First name is the real one, the rest are links.
12722 # The last name is the one that the linker finds with -lNAME.
12723 library_names_spec=$lt_library_names_spec
12724
12725 # The coded name of the library, if different from the real name.
12726 soname_spec=$lt_soname_spec
12727
12728 # Commands used to build and install an old-style archive.
12729 RANLIB=$lt_RANLIB
12730 old_archive_cmds=$lt_old_archive_cmds_CXX
12731 old_postinstall_cmds=$lt_old_postinstall_cmds
12732 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12733
12734 # Create an old-style archive from a shared archive.
12735 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12736
12737 # Create a temporary old-style archive to link instead of a shared archive.
12738 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12739
12740 # Commands used to build and install a shared archive.
12741 archive_cmds=$lt_archive_cmds_CXX
12742 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12743 postinstall_cmds=$lt_postinstall_cmds
12744 postuninstall_cmds=$lt_postuninstall_cmds
12745
12746 # Commands used to build a loadable module (assumed same as above if empty)
12747 module_cmds=$lt_module_cmds_CXX
12748 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12749
12750 # Commands to strip libraries.
12751 old_striplib=$lt_old_striplib
12752 striplib=$lt_striplib
12753
12754 # Dependencies to place before the objects being linked to create a
12755 # shared library.
12756 predep_objects=$lt_predep_objects_CXX
12757
12758 # Dependencies to place after the objects being linked to create a
12759 # shared library.
12760 postdep_objects=$lt_postdep_objects_CXX
12761
12762 # Dependencies to place before the objects being linked to create a
12763 # shared library.
12764 predeps=$lt_predeps_CXX
12765
12766 # Dependencies to place after the objects being linked to create a
12767 # shared library.
12768 postdeps=$lt_postdeps_CXX
12769
12770 # The library search path used internally by the compiler when linking
12771 # a shared library.
12772 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12773
12774 # Method to check whether dependent libraries are shared objects.
12775 deplibs_check_method=$lt_deplibs_check_method
12776
12777 # Command to use when deplibs_check_method == file_magic.
12778 file_magic_cmd=$lt_file_magic_cmd
12779
12780 # Flag that allows shared libraries with undefined symbols to be built.
12781 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12782
12783 # Flag that forces no undefined symbols.
12784 no_undefined_flag=$lt_no_undefined_flag_CXX
12785
12786 # Commands used to finish a libtool library installation in a directory.
12787 finish_cmds=$lt_finish_cmds
12788
12789 # Same as above, but a single script fragment to be evaled but not shown.
12790 finish_eval=$lt_finish_eval
12791
12792 # Take the output of nm and produce a listing of raw symbols and C names.
12793 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12794
12795 # Transform the output of nm in a proper C declaration
12796 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12797
12798 # Transform the output of nm in a C name address pair
12799 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12800
12801 # This is the shared library runtime path variable.
12802 runpath_var=$runpath_var
12803
12804 # This is the shared library path variable.
12805 shlibpath_var=$shlibpath_var
12806
12807 # Is shlibpath searched before the hard-coded library search path?
12808 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12809
12810 # How to hardcode a shared library path into an executable.
12811 hardcode_action=$hardcode_action_CXX
12812
12813 # Whether we should hardcode library paths into libraries.
12814 hardcode_into_libs=$hardcode_into_libs
12815
12816 # Flag to hardcode \$libdir into a binary during linking.
12817 # This must work even if \$libdir does not exist.
12818 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12819
12820 # If ld is used when linking, flag to hardcode \$libdir into
12821 # a binary during linking. This must work even if \$libdir does
12822 # not exist.
12823 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12824
12825 # Whether we need a single -rpath flag with a separated argument.
12826 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12827
12828 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12829 # resulting binary.
12830 hardcode_direct=$hardcode_direct_CXX
12831
12832 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12833 # resulting binary.
12834 hardcode_minus_L=$hardcode_minus_L_CXX
12835
12836 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12837 # the resulting binary.
12838 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12839
12840 # Set to yes if building a shared library automatically hardcodes DIR into the library
12841 # and all subsequent libraries and executables linked against it.
12842 hardcode_automatic=$hardcode_automatic_CXX
12843
12844 # Variables whose values should be saved in libtool wrapper scripts and
12845 # restored at relink time.
12846 variables_saved_for_relink="$variables_saved_for_relink"
12847
12848 # Whether libtool must link a program against all its dependency libraries.
12849 link_all_deplibs=$link_all_deplibs_CXX
12850
12851 # Compile-time system search path for libraries
12852 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12853
12854 # Run-time system search path for libraries
12855 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12856
12857 # Fix the shell variable \$srcfile for the compiler.
12858 fix_srcfile_path="$fix_srcfile_path_CXX"
12859
12860 # Set to yes if exported symbols are required.
12861 always_export_symbols=$always_export_symbols_CXX
12862
12863 # The commands to list exported symbols.
12864 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12865
12866 # The commands to extract the exported symbol list from a shared archive.
12867 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12868
12869 # Symbols that should not be listed in the preloaded symbols.
12870 exclude_expsyms=$lt_exclude_expsyms_CXX
12871
12872 # Symbols that must always be exported.
12873 include_expsyms=$lt_include_expsyms_CXX
12874
12875 # ### END LIBTOOL TAG CONFIG: $tagname
12876
12877 __EOF__
12878
12879
12880 else
12881 # If there is no Makefile yet, we rely on a make rule to execute
12882 # `config.status --recheck' to rerun these tests and create the
12883 # libtool script then.
12884 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12885 if test -f "$ltmain_in"; then
12886 test -f Makefile && make "$ltmain"
12887 fi
12888 fi
12889
12890
12891 ac_ext=c
12892 ac_cpp='$CPP $CPPFLAGS'
12893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12896
12897 CC=$lt_save_CC
12898 LDCXX=$LD
12899 LD=$lt_save_LD
12900 GCC=$lt_save_GCC
12901 with_gnu_ldcxx=$with_gnu_ld
12902 with_gnu_ld=$lt_save_with_gnu_ld
12903 lt_cv_path_LDCXX=$lt_cv_path_LD
12904 lt_cv_path_LD=$lt_save_path_LD
12905 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12906 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12907
12908 else
12909 tagname=""
12910 fi
12911 ;;
12912
12913 F77)
12914 if test -n "$F77" && test "X$F77" != "Xno"; then
12915
12916 ac_ext=f
12917 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12918 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12919 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12920
12921
12922 archive_cmds_need_lc_F77=no
12923 allow_undefined_flag_F77=
12924 always_export_symbols_F77=no
12925 archive_expsym_cmds_F77=
12926 export_dynamic_flag_spec_F77=
12927 hardcode_direct_F77=no
12928 hardcode_libdir_flag_spec_F77=
12929 hardcode_libdir_flag_spec_ld_F77=
12930 hardcode_libdir_separator_F77=
12931 hardcode_minus_L_F77=no
12932 hardcode_automatic_F77=no
12933 module_cmds_F77=
12934 module_expsym_cmds_F77=
12935 link_all_deplibs_F77=unknown
12936 old_archive_cmds_F77=$old_archive_cmds
12937 no_undefined_flag_F77=
12938 whole_archive_flag_spec_F77=
12939 enable_shared_with_static_runtimes_F77=no
12940
12941 # Source file extension for f77 test sources.
12942 ac_ext=f
12943
12944 # Object file extension for compiled f77 test sources.
12945 objext=o
12946 objext_F77=$objext
12947
12948 # Code to be used in simple compile tests
12949 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12950
12951 # Code to be used in simple link tests
12952 lt_simple_link_test_code=" program t\n end\n"
12953
12954 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12955
12956 # If no C compiler was specified, use CC.
12957 LTCC=${LTCC-"$CC"}
12958
12959 # If no C compiler flags were specified, use CFLAGS.
12960 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12961
12962 # Allow CC to be a program name with arguments.
12963 compiler=$CC
12964
12965
12966 # save warnings/boilerplate of simple test code
12967 ac_outfile=conftest.$ac_objext
12968 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12969 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12970 _lt_compiler_boilerplate=`cat conftest.err`
12971 $rm conftest*
12972
12973 ac_outfile=conftest.$ac_objext
12974 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12975 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12976 _lt_linker_boilerplate=`cat conftest.err`
12977 $rm conftest*
12978
12979
12980 # Allow CC to be a program name with arguments.
12981 lt_save_CC="$CC"
12982 CC=${F77-"f77"}
12983 compiler=$CC
12984 compiler_F77=$CC
12985 for cc_temp in $compiler""; do
12986 case $cc_temp in
12987 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12988 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12989 \-*) ;;
12990 *) break;;
12991 esac
12992 done
12993 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12994
12995
12996 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12997 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12998 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12999 echo "${ECHO_T}$can_build_shared" >&6
13000
13001 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13002 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13003 test "$can_build_shared" = "no" && enable_shared=no
13004
13005 # On AIX, shared libraries and static libraries use the same namespace, and
13006 # are all built from PIC.
13007 case $host_os in
13008 aix3*)
13009 test "$enable_shared" = yes && enable_static=no
13010 if test -n "$RANLIB"; then
13011 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13012 postinstall_cmds='$RANLIB $lib'
13013 fi
13014 ;;
13015 aix4* | aix5*)
13016 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13017 test "$enable_shared" = yes && enable_static=no
13018 fi
13019 ;;
13020 esac
13021 echo "$as_me:$LINENO: result: $enable_shared" >&5
13022 echo "${ECHO_T}$enable_shared" >&6
13023
13024 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13025 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13026 # Make sure either enable_shared or enable_static is yes.
13027 test "$enable_shared" = yes || enable_static=yes
13028 echo "$as_me:$LINENO: result: $enable_static" >&5
13029 echo "${ECHO_T}$enable_static" >&6
13030
13031 GCC_F77="$G77"
13032 LD_F77="$LD"
13033
13034 lt_prog_compiler_wl_F77=
13035 lt_prog_compiler_pic_F77=
13036 lt_prog_compiler_static_F77=
13037
13038 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13039 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13040
13041 if test "$GCC" = yes; then
13042 lt_prog_compiler_wl_F77='-Wl,'
13043 lt_prog_compiler_static_F77='-static'
13044
13045 case $host_os in
13046 aix*)
13047 # All AIX code is PIC.
13048 if test "$host_cpu" = ia64; then
13049 # AIX 5 now supports IA64 processor
13050 lt_prog_compiler_static_F77='-Bstatic'
13051 fi
13052 ;;
13053
13054 amigaos*)
13055 # FIXME: we need at least 68020 code to build shared libraries, but
13056 # adding the `-m68020' flag to GCC prevents building anything better,
13057 # like `-m68040'.
13058 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13059 ;;
13060
13061 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13062 # PIC is the default for these OSes.
13063 ;;
13064
13065 mingw* | pw32* | os2*)
13066 # This hack is so that the source file can tell whether it is being
13067 # built for inclusion in a dll (and should export symbols for example).
13068 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13069 ;;
13070
13071 darwin* | rhapsody*)
13072 # PIC is the default on this platform
13073 # Common symbols not allowed in MH_DYLIB files
13074 lt_prog_compiler_pic_F77='-fno-common'
13075 ;;
13076
13077 interix3*)
13078 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13079 # Instead, we relocate shared libraries at runtime.
13080 ;;
13081
13082 msdosdjgpp*)
13083 # Just because we use GCC doesn't mean we suddenly get shared libraries
13084 # on systems that don't support them.
13085 lt_prog_compiler_can_build_shared_F77=no
13086 enable_shared=no
13087 ;;
13088
13089 sysv4*MP*)
13090 if test -d /usr/nec; then
13091 lt_prog_compiler_pic_F77=-Kconform_pic
13092 fi
13093 ;;
13094
13095 hpux*)
13096 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13097 # not for PA HP-UX.
13098 case $host_cpu in
13099 hppa*64*|ia64*)
13100 # +Z the default
13101 ;;
13102 *)
13103 lt_prog_compiler_pic_F77='-fPIC'
13104 ;;
13105 esac
13106 ;;
13107
13108 *)
13109 lt_prog_compiler_pic_F77='-fPIC'
13110 ;;
13111 esac
13112 else
13113 # PORTME Check for flag to pass linker flags through the system compiler.
13114 case $host_os in
13115 aix*)
13116 lt_prog_compiler_wl_F77='-Wl,'
13117 if test "$host_cpu" = ia64; then
13118 # AIX 5 now supports IA64 processor
13119 lt_prog_compiler_static_F77='-Bstatic'
13120 else
13121 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13122 fi
13123 ;;
13124 darwin*)
13125 # PIC is the default on this platform
13126 # Common symbols not allowed in MH_DYLIB files
13127 case $cc_basename in
13128 xlc*)
13129 lt_prog_compiler_pic_F77='-qnocommon'
13130 lt_prog_compiler_wl_F77='-Wl,'
13131 ;;
13132 esac
13133 ;;
13134
13135 mingw* | pw32* | os2*)
13136 # This hack is so that the source file can tell whether it is being
13137 # built for inclusion in a dll (and should export symbols for example).
13138 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13139 ;;
13140
13141 hpux9* | hpux10* | hpux11*)
13142 lt_prog_compiler_wl_F77='-Wl,'
13143 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13144 # not for PA HP-UX.
13145 case $host_cpu in
13146 hppa*64*|ia64*)
13147 # +Z the default
13148 ;;
13149 *)
13150 lt_prog_compiler_pic_F77='+Z'
13151 ;;
13152 esac
13153 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13154 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13155 ;;
13156
13157 irix5* | irix6* | nonstopux*)
13158 lt_prog_compiler_wl_F77='-Wl,'
13159 # PIC (with -KPIC) is the default.
13160 lt_prog_compiler_static_F77='-non_shared'
13161 ;;
13162
13163 newsos6)
13164 lt_prog_compiler_pic_F77='-KPIC'
13165 lt_prog_compiler_static_F77='-Bstatic'
13166 ;;
13167
13168 linux*)
13169 case $cc_basename in
13170 icc* | ecc*)
13171 lt_prog_compiler_wl_F77='-Wl,'
13172 lt_prog_compiler_pic_F77='-KPIC'
13173 lt_prog_compiler_static_F77='-static'
13174 ;;
13175 pgcc* | pgf77* | pgf90* | pgf95*)
13176 # Portland Group compilers (*not* the Pentium gcc compiler,
13177 # which looks to be a dead project)
13178 lt_prog_compiler_wl_F77='-Wl,'
13179 lt_prog_compiler_pic_F77='-fpic'
13180 lt_prog_compiler_static_F77='-Bstatic'
13181 ;;
13182 ccc*)
13183 lt_prog_compiler_wl_F77='-Wl,'
13184 # All Alpha code is PIC.
13185 lt_prog_compiler_static_F77='-non_shared'
13186 ;;
13187 esac
13188 ;;
13189
13190 osf3* | osf4* | osf5*)
13191 lt_prog_compiler_wl_F77='-Wl,'
13192 # All OSF/1 code is PIC.
13193 lt_prog_compiler_static_F77='-non_shared'
13194 ;;
13195
13196 solaris*)
13197 lt_prog_compiler_pic_F77='-KPIC'
13198 lt_prog_compiler_static_F77='-Bstatic'
13199 case $cc_basename in
13200 f77* | f90* | f95*)
13201 lt_prog_compiler_wl_F77='-Qoption ld ';;
13202 *)
13203 lt_prog_compiler_wl_F77='-Wl,';;
13204 esac
13205 ;;
13206
13207 sunos4*)
13208 lt_prog_compiler_wl_F77='-Qoption ld '
13209 lt_prog_compiler_pic_F77='-PIC'
13210 lt_prog_compiler_static_F77='-Bstatic'
13211 ;;
13212
13213 sysv4 | sysv4.2uw2* | sysv4.3*)
13214 lt_prog_compiler_wl_F77='-Wl,'
13215 lt_prog_compiler_pic_F77='-KPIC'
13216 lt_prog_compiler_static_F77='-Bstatic'
13217 ;;
13218
13219 sysv4*MP*)
13220 if test -d /usr/nec ;then
13221 lt_prog_compiler_pic_F77='-Kconform_pic'
13222 lt_prog_compiler_static_F77='-Bstatic'
13223 fi
13224 ;;
13225
13226 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13227 lt_prog_compiler_wl_F77='-Wl,'
13228 lt_prog_compiler_pic_F77='-KPIC'
13229 lt_prog_compiler_static_F77='-Bstatic'
13230 ;;
13231
13232 unicos*)
13233 lt_prog_compiler_wl_F77='-Wl,'
13234 lt_prog_compiler_can_build_shared_F77=no
13235 ;;
13236
13237 uts4*)
13238 lt_prog_compiler_pic_F77='-pic'
13239 lt_prog_compiler_static_F77='-Bstatic'
13240 ;;
13241
13242 *)
13243 lt_prog_compiler_can_build_shared_F77=no
13244 ;;
13245 esac
13246 fi
13247
13248 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13249 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13250
13251 #
13252 # Check to make sure the PIC flag actually works.
13253 #
13254 if test -n "$lt_prog_compiler_pic_F77"; then
13255
13256 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13257 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13258 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13259 echo $ECHO_N "(cached) $ECHO_C" >&6
13260 else
13261 lt_prog_compiler_pic_works_F77=no
13262 ac_outfile=conftest.$ac_objext
13263 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13264 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13265 # Insert the option either (1) after the last *FLAGS variable, or
13266 # (2) before a word containing "conftest.", or (3) at the end.
13267 # Note that $ac_compile itself does not contain backslashes and begins
13268 # with a dollar sign (not a hyphen), so the echo should work correctly.
13269 # The option is referenced via a variable to avoid confusing sed.
13270 lt_compile=`echo "$ac_compile" | $SED \
13271 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13273 -e 's:$: $lt_compiler_flag:'`
13274 (eval echo "\"\$as_me:13274: $lt_compile\"" >&5)
13275 (eval "$lt_compile" 2>conftest.err)
13276 ac_status=$?
13277 cat conftest.err >&5
13278 echo "$as_me:13278: \$? = $ac_status" >&5
13279 if (exit $ac_status) && test -s "$ac_outfile"; then
13280 # The compiler can only warn and ignore the option if not recognized
13281 # So say no if there are warnings other than the usual output.
13282 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13283 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13284 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13285 lt_prog_compiler_pic_works_F77=yes
13286 fi
13287 fi
13288 $rm conftest*
13289
13290 fi
13291 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13292 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13293
13294 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13295 case $lt_prog_compiler_pic_F77 in
13296 "" | " "*) ;;
13297 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13298 esac
13299 else
13300 lt_prog_compiler_pic_F77=
13301 lt_prog_compiler_can_build_shared_F77=no
13302 fi
13303
13304 fi
13305 case $host_os in
13306 # For platforms which do not support PIC, -DPIC is meaningless:
13307 *djgpp*)
13308 lt_prog_compiler_pic_F77=
13309 ;;
13310 *)
13311 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13312 ;;
13313 esac
13314
13315 #
13316 # Check to make sure the static flag actually works.
13317 #
13318 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13319 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13320 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13321 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13322 echo $ECHO_N "(cached) $ECHO_C" >&6
13323 else
13324 lt_prog_compiler_static_works_F77=no
13325 save_LDFLAGS="$LDFLAGS"
13326 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13327 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13328 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13329 # The linker can only warn and ignore the option if not recognized
13330 # So say no if there are warnings
13331 if test -s conftest.err; then
13332 # Append any errors to the config.log.
13333 cat conftest.err 1>&5
13334 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13335 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13336 if diff conftest.exp conftest.er2 >/dev/null; then
13337 lt_prog_compiler_static_works_F77=yes
13338 fi
13339 else
13340 lt_prog_compiler_static_works_F77=yes
13341 fi
13342 fi
13343 $rm conftest*
13344 LDFLAGS="$save_LDFLAGS"
13345
13346 fi
13347 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13348 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13349
13350 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13351 :
13352 else
13353 lt_prog_compiler_static_F77=
13354 fi
13355
13356
13357 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13358 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13359 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
13361 else
13362 lt_cv_prog_compiler_c_o_F77=no
13363 $rm -r conftest 2>/dev/null
13364 mkdir conftest
13365 cd conftest
13366 mkdir out
13367 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13368
13369 lt_compiler_flag="-o out/conftest2.$ac_objext"
13370 # Insert the option either (1) after the last *FLAGS variable, or
13371 # (2) before a word containing "conftest.", or (3) at the end.
13372 # Note that $ac_compile itself does not contain backslashes and begins
13373 # with a dollar sign (not a hyphen), so the echo should work correctly.
13374 lt_compile=`echo "$ac_compile" | $SED \
13375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13377 -e 's:$: $lt_compiler_flag:'`
13378 (eval echo "\"\$as_me:13378: $lt_compile\"" >&5)
13379 (eval "$lt_compile" 2>out/conftest.err)
13380 ac_status=$?
13381 cat out/conftest.err >&5
13382 echo "$as_me:13382: \$? = $ac_status" >&5
13383 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13384 then
13385 # The compiler can only warn and ignore the option if not recognized
13386 # So say no if there are warnings
13387 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13388 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13389 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13390 lt_cv_prog_compiler_c_o_F77=yes
13391 fi
13392 fi
13393 chmod u+w . 2>&5
13394 $rm conftest*
13395 # SGI C++ compiler will create directory out/ii_files/ for
13396 # template instantiation
13397 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13398 $rm out/* && rmdir out
13399 cd ..
13400 rmdir conftest
13401 $rm conftest*
13402
13403 fi
13404 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13405 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13406
13407
13408 hard_links="nottested"
13409 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13410 # do not overwrite the value of need_locks provided by the user
13411 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13412 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13413 hard_links=yes
13414 $rm conftest*
13415 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13416 touch conftest.a
13417 ln conftest.a conftest.b 2>&5 || hard_links=no
13418 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13419 echo "$as_me:$LINENO: result: $hard_links" >&5
13420 echo "${ECHO_T}$hard_links" >&6
13421 if test "$hard_links" = no; then
13422 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13423 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13424 need_locks=warn
13425 fi
13426 else
13427 need_locks=no
13428 fi
13429
13430 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13431 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13432
13433 runpath_var=
13434 allow_undefined_flag_F77=
13435 enable_shared_with_static_runtimes_F77=no
13436 archive_cmds_F77=
13437 archive_expsym_cmds_F77=
13438 old_archive_From_new_cmds_F77=
13439 old_archive_from_expsyms_cmds_F77=
13440 export_dynamic_flag_spec_F77=
13441 whole_archive_flag_spec_F77=
13442 thread_safe_flag_spec_F77=
13443 hardcode_libdir_flag_spec_F77=
13444 hardcode_libdir_flag_spec_ld_F77=
13445 hardcode_libdir_separator_F77=
13446 hardcode_direct_F77=no
13447 hardcode_minus_L_F77=no
13448 hardcode_shlibpath_var_F77=unsupported
13449 link_all_deplibs_F77=unknown
13450 hardcode_automatic_F77=no
13451 module_cmds_F77=
13452 module_expsym_cmds_F77=
13453 always_export_symbols_F77=no
13454 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13455 # include_expsyms should be a list of space-separated symbols to be *always*
13456 # included in the symbol list
13457 include_expsyms_F77=
13458 # exclude_expsyms can be an extended regexp of symbols to exclude
13459 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13460 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13461 # as well as any symbol that contains `d'.
13462 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13463 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13464 # platforms (ab)use it in PIC code, but their linkers get confused if
13465 # the symbol is explicitly referenced. Since portable code cannot
13466 # rely on this symbol name, it's probably fine to never include it in
13467 # preloaded symbol tables.
13468 extract_expsyms_cmds=
13469 # Just being paranoid about ensuring that cc_basename is set.
13470 for cc_temp in $compiler""; do
13471 case $cc_temp in
13472 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13473 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13474 \-*) ;;
13475 *) break;;
13476 esac
13477 done
13478 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13479
13480 case $host_os in
13481 cygwin* | mingw* | pw32*)
13482 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13483 # When not using gcc, we currently assume that we are using
13484 # Microsoft Visual C++.
13485 if test "$GCC" != yes; then
13486 with_gnu_ld=no
13487 fi
13488 ;;
13489 interix*)
13490 # we just hope/assume this is gcc and not c89 (= MSVC++)
13491 with_gnu_ld=yes
13492 ;;
13493 openbsd*)
13494 with_gnu_ld=no
13495 ;;
13496 esac
13497
13498 ld_shlibs_F77=yes
13499 if test "$with_gnu_ld" = yes; then
13500 # If archive_cmds runs LD, not CC, wlarc should be empty
13501 wlarc='${wl}'
13502
13503 # Set some defaults for GNU ld with shared library support. These
13504 # are reset later if shared libraries are not supported. Putting them
13505 # here allows them to be overridden if necessary.
13506 runpath_var=LD_RUN_PATH
13507 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13508 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13509 # ancient GNU ld didn't support --whole-archive et. al.
13510 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13511 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13512 else
13513 whole_archive_flag_spec_F77=
13514 fi
13515 supports_anon_versioning=no
13516 case `$LD -v 2>/dev/null` in
13517 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13518 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13519 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13520 *\ 2.11.*) ;; # other 2.11 versions
13521 *) supports_anon_versioning=yes ;;
13522 esac
13523
13524 # See if GNU ld supports shared libraries.
13525 case $host_os in
13526 aix3* | aix4* | aix5*)
13527 # On AIX/PPC, the GNU linker is very broken
13528 if test "$host_cpu" != ia64; then
13529 ld_shlibs_F77=no
13530 cat <<EOF 1>&2
13531
13532 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13533 *** to be unable to reliably create shared libraries on AIX.
13534 *** Therefore, libtool is disabling shared libraries support. If you
13535 *** really care for shared libraries, you may want to modify your PATH
13536 *** so that a non-GNU linker is found, and then restart.
13537
13538 EOF
13539 fi
13540 ;;
13541
13542 amigaos*)
13543 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)'
13544 hardcode_libdir_flag_spec_F77='-L$libdir'
13545 hardcode_minus_L_F77=yes
13546
13547 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
13548 # that the semantics of dynamic libraries on AmigaOS, at least up
13549 # to version 4, is to share data among multiple programs linked
13550 # with the same dynamic library. Since this doesn't match the
13551 # behavior of shared libraries on other platforms, we can't use
13552 # them.
13553 ld_shlibs_F77=no
13554 ;;
13555
13556 beos*)
13557 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13558 allow_undefined_flag_F77=unsupported
13559 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
13560 # support --undefined. This deserves some investigation. FIXME
13561 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13562 else
13563 ld_shlibs_F77=no
13564 fi
13565 ;;
13566
13567 cygwin* | mingw* | pw32*)
13568 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13569 # as there is no search path for DLLs.
13570 hardcode_libdir_flag_spec_F77='-L$libdir'
13571 allow_undefined_flag_F77=unsupported
13572 always_export_symbols_F77=no
13573 enable_shared_with_static_runtimes_F77=yes
13574 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13575
13576 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13577 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13578 # If the export-symbols file already is a .def file (1st line
13579 # is EXPORTS), use it as is; otherwise, prepend...
13580 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13581 cp $export_symbols $output_objdir/$soname.def;
13582 else
13583 echo EXPORTS > $output_objdir/$soname.def;
13584 cat $export_symbols >> $output_objdir/$soname.def;
13585 fi~
13586 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13587 else
13588 ld_shlibs_F77=no
13589 fi
13590 ;;
13591
13592 interix3*)
13593 hardcode_direct_F77=no
13594 hardcode_shlibpath_var_F77=no
13595 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13596 export_dynamic_flag_spec_F77='${wl}-E'
13597 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13598 # Instead, shared libraries are loaded at an image base (0x10000000 by
13599 # default) and relocated if they conflict, which is a slow very memory
13600 # consuming and fragmenting process. To avoid this, we pick a random,
13601 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13602 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13603 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'
13604 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'
13605 ;;
13606
13607 linux*)
13608 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13609 tmp_addflag=
13610 case $cc_basename,$host_cpu in
13611 pgcc*) # Portland Group C compiler
13612 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'
13613 tmp_addflag=' $pic_flag'
13614 ;;
13615 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13616 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'
13617 tmp_addflag=' $pic_flag -Mnomain' ;;
13618 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13619 tmp_addflag=' -i_dynamic' ;;
13620 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13621 tmp_addflag=' -i_dynamic -nofor_main' ;;
13622 ifc* | ifort*) # Intel Fortran compiler
13623 tmp_addflag=' -nofor_main' ;;
13624 esac
13625 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13626
13627 if test $supports_anon_versioning = yes; then
13628 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13629 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13630 $echo "local: *; };" >> $output_objdir/$libname.ver~
13631 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13632 fi
13633 else
13634 ld_shlibs_F77=no
13635 fi
13636 ;;
13637
13638 netbsd*)
13639 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13640 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13641 wlarc=
13642 else
13643 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13644 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13645 fi
13646 ;;
13647
13648 solaris*)
13649 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13650 ld_shlibs_F77=no
13651 cat <<EOF 1>&2
13652
13653 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13654 *** create shared libraries on Solaris systems. Therefore, libtool
13655 *** is disabling shared libraries support. We urge you to upgrade GNU
13656 *** binutils to release 2.9.1 or newer. Another option is to modify
13657 *** your PATH or compiler configuration so that the native linker is
13658 *** used, and then restart.
13659
13660 EOF
13661 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13662 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13663 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13664 else
13665 ld_shlibs_F77=no
13666 fi
13667 ;;
13668
13669 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13670 case `$LD -v 2>&1` in
13671 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13672 ld_shlibs_F77=no
13673 cat <<_LT_EOF 1>&2
13674
13675 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13676 *** reliably create shared libraries on SCO systems. Therefore, libtool
13677 *** is disabling shared libraries support. We urge you to upgrade GNU
13678 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13679 *** your PATH or compiler configuration so that the native linker is
13680 *** used, and then restart.
13681
13682 _LT_EOF
13683 ;;
13684 *)
13685 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13686 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13687 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13688 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13689 else
13690 ld_shlibs_F77=no
13691 fi
13692 ;;
13693 esac
13694 ;;
13695
13696 sunos4*)
13697 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13698 wlarc=
13699 hardcode_direct_F77=yes
13700 hardcode_shlibpath_var_F77=no
13701 ;;
13702
13703 *)
13704 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13705 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13706 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13707 else
13708 ld_shlibs_F77=no
13709 fi
13710 ;;
13711 esac
13712
13713 if test "$ld_shlibs_F77" = no; then
13714 runpath_var=
13715 hardcode_libdir_flag_spec_F77=
13716 export_dynamic_flag_spec_F77=
13717 whole_archive_flag_spec_F77=
13718 fi
13719 else
13720 # PORTME fill in a description of your system's linker (not GNU ld)
13721 case $host_os in
13722 aix3*)
13723 allow_undefined_flag_F77=unsupported
13724 always_export_symbols_F77=yes
13725 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'
13726 # Note: this linker hardcodes the directories in LIBPATH if there
13727 # are no directories specified by -L.
13728 hardcode_minus_L_F77=yes
13729 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13730 # Neither direct hardcoding nor static linking is supported with a
13731 # broken collect2.
13732 hardcode_direct_F77=unsupported
13733 fi
13734 ;;
13735
13736 aix4* | aix5*)
13737 if test "$host_cpu" = ia64; then
13738 # On IA64, the linker does run time linking by default, so we don't
13739 # have to do anything special.
13740 aix_use_runtimelinking=no
13741 exp_sym_flag='-Bexport'
13742 no_entry_flag=""
13743 else
13744 # If we're using GNU nm, then we don't want the "-C" option.
13745 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13746 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13747 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'
13748 else
13749 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'
13750 fi
13751 aix_use_runtimelinking=no
13752
13753 # Test if we are trying to use run time linking or normal
13754 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13755 # need to do runtime linking.
13756 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13757 for ld_flag in $LDFLAGS; do
13758 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13759 aix_use_runtimelinking=yes
13760 break
13761 fi
13762 done
13763 ;;
13764 esac
13765
13766 exp_sym_flag='-bexport'
13767 no_entry_flag='-bnoentry'
13768 fi
13769
13770 # When large executables or shared objects are built, AIX ld can
13771 # have problems creating the table of contents. If linking a library
13772 # or program results in "error TOC overflow" add -mminimal-toc to
13773 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13774 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13775
13776 archive_cmds_F77=''
13777 hardcode_direct_F77=yes
13778 hardcode_libdir_separator_F77=':'
13779 link_all_deplibs_F77=yes
13780
13781 if test "$GCC" = yes; then
13782 case $host_os in aix4.[012]|aix4.[012].*)
13783 # We only want to do this on AIX 4.2 and lower, the check
13784 # below for broken collect2 doesn't work under 4.3+
13785 collect2name=`${CC} -print-prog-name=collect2`
13786 if test -f "$collect2name" && \
13787 strings "$collect2name" | grep resolve_lib_name >/dev/null
13788 then
13789 # We have reworked collect2
13790 hardcode_direct_F77=yes
13791 else
13792 # We have old collect2
13793 hardcode_direct_F77=unsupported
13794 # It fails to find uninstalled libraries when the uninstalled
13795 # path is not listed in the libpath. Setting hardcode_minus_L
13796 # to unsupported forces relinking
13797 hardcode_minus_L_F77=yes
13798 hardcode_libdir_flag_spec_F77='-L$libdir'
13799 hardcode_libdir_separator_F77=
13800 fi
13801 ;;
13802 esac
13803 shared_flag='-shared'
13804 if test "$aix_use_runtimelinking" = yes; then
13805 shared_flag="$shared_flag "'${wl}-G'
13806 fi
13807 else
13808 # not using gcc
13809 if test "$host_cpu" = ia64; then
13810 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13811 # chokes on -Wl,-G. The following line is correct:
13812 shared_flag='-G'
13813 else
13814 if test "$aix_use_runtimelinking" = yes; then
13815 shared_flag='${wl}-G'
13816 else
13817 shared_flag='${wl}-bM:SRE'
13818 fi
13819 fi
13820 fi
13821
13822 # It seems that -bexpall does not export symbols beginning with
13823 # underscore (_), so it is better to generate a list of symbols to export.
13824 always_export_symbols_F77=yes
13825 if test "$aix_use_runtimelinking" = yes; then
13826 # Warning - without using the other runtime loading flags (-brtl),
13827 # -berok will link without error, but may produce a broken library.
13828 allow_undefined_flag_F77='-berok'
13829 # Determine the default libpath from the value encoded in an empty executable.
13830 cat >conftest.$ac_ext <<_ACEOF
13831 program main
13832
13833 end
13834 _ACEOF
13835 rm -f conftest.$ac_objext conftest$ac_exeext
13836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13837 (eval $ac_link) 2>conftest.er1
13838 ac_status=$?
13839 grep -v '^ *+' conftest.er1 >conftest.err
13840 rm -f conftest.er1
13841 cat conftest.err >&5
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); } &&
13844 { ac_try='test -z "$ac_f77_werror_flag"
13845 || test ! -s conftest.err'
13846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847 (eval $ac_try) 2>&5
13848 ac_status=$?
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); }; } &&
13851 { ac_try='test -s conftest$ac_exeext'
13852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13853 (eval $ac_try) 2>&5
13854 ac_status=$?
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); }; }; then
13857
13858 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13859 }'`
13860 # Check for a 64-bit object if we didn't find anything.
13861 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; }
13862 }'`; fi
13863 else
13864 echo "$as_me: failed program was:" >&5
13865 sed 's/^/| /' conftest.$ac_ext >&5
13866
13867 fi
13868 rm -f conftest.err conftest.$ac_objext \
13869 conftest$ac_exeext conftest.$ac_ext
13870 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13871
13872 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13873 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"
13874 else
13875 if test "$host_cpu" = ia64; then
13876 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13877 allow_undefined_flag_F77="-z nodefs"
13878 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"
13879 else
13880 # Determine the default libpath from the value encoded in an empty executable.
13881 cat >conftest.$ac_ext <<_ACEOF
13882 program main
13883
13884 end
13885 _ACEOF
13886 rm -f conftest.$ac_objext conftest$ac_exeext
13887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13888 (eval $ac_link) 2>conftest.er1
13889 ac_status=$?
13890 grep -v '^ *+' conftest.er1 >conftest.err
13891 rm -f conftest.er1
13892 cat conftest.err >&5
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); } &&
13895 { ac_try='test -z "$ac_f77_werror_flag"
13896 || test ! -s conftest.err'
13897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13898 (eval $ac_try) 2>&5
13899 ac_status=$?
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; } &&
13902 { ac_try='test -s conftest$ac_exeext'
13903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13904 (eval $ac_try) 2>&5
13905 ac_status=$?
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); }; }; then
13908
13909 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13910 }'`
13911 # Check for a 64-bit object if we didn't find anything.
13912 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; }
13913 }'`; fi
13914 else
13915 echo "$as_me: failed program was:" >&5
13916 sed 's/^/| /' conftest.$ac_ext >&5
13917
13918 fi
13919 rm -f conftest.err conftest.$ac_objext \
13920 conftest$ac_exeext conftest.$ac_ext
13921 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13922
13923 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13924 # Warning - without using the other run time loading flags,
13925 # -berok will link without error, but may produce a broken library.
13926 no_undefined_flag_F77=' ${wl}-bernotok'
13927 allow_undefined_flag_F77=' ${wl}-berok'
13928 # Exported symbols can be pulled into shared objects from archives
13929 whole_archive_flag_spec_F77='$convenience'
13930 archive_cmds_need_lc_F77=yes
13931 # This is similar to how AIX traditionally builds its shared libraries.
13932 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'
13933 fi
13934 fi
13935 ;;
13936
13937 amigaos*)
13938 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)'
13939 hardcode_libdir_flag_spec_F77='-L$libdir'
13940 hardcode_minus_L_F77=yes
13941 # see comment about different semantics on the GNU ld section
13942 ld_shlibs_F77=no
13943 ;;
13944
13945 bsdi[45]*)
13946 export_dynamic_flag_spec_F77=-rdynamic
13947 ;;
13948
13949 cygwin* | mingw* | pw32*)
13950 # When not using gcc, we currently assume that we are using
13951 # Microsoft Visual C++.
13952 # hardcode_libdir_flag_spec is actually meaningless, as there is
13953 # no search path for DLLs.
13954 hardcode_libdir_flag_spec_F77=' '
13955 allow_undefined_flag_F77=unsupported
13956 # Tell ltmain to make .lib files, not .a files.
13957 libext=lib
13958 # Tell ltmain to make .dll files, not .so files.
13959 shrext_cmds=".dll"
13960 # FIXME: Setting linknames here is a bad hack.
13961 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13962 # The linker will automatically build a .lib file if we build a DLL.
13963 old_archive_From_new_cmds_F77='true'
13964 # FIXME: Should let the user specify the lib program.
13965 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13966 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13967 enable_shared_with_static_runtimes_F77=yes
13968 ;;
13969
13970 darwin* | rhapsody*)
13971 case $host_os in
13972 rhapsody* | darwin1.[012])
13973 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13974 ;;
13975 *) # Darwin 1.3 on
13976 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13977 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13978 else
13979 case ${MACOSX_DEPLOYMENT_TARGET} in
13980 10.[012])
13981 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13982 ;;
13983 10.*)
13984 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13985 ;;
13986 esac
13987 fi
13988 ;;
13989 esac
13990 archive_cmds_need_lc_F77=no
13991 hardcode_direct_F77=no
13992 hardcode_automatic_F77=yes
13993 hardcode_shlibpath_var_F77=unsupported
13994 whole_archive_flag_spec_F77=''
13995 link_all_deplibs_F77=yes
13996 if test "$GCC" = yes ; then
13997 output_verbose_link_cmd='echo'
13998 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13999 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14000 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14001 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}'
14002 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}'
14003 else
14004 case $cc_basename in
14005 xlc*)
14006 output_verbose_link_cmd='echo'
14007 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14008 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14009 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14010 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}'
14011 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}'
14012 ;;
14013 *)
14014 ld_shlibs_F77=no
14015 ;;
14016 esac
14017 fi
14018 ;;
14019
14020 dgux*)
14021 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14022 hardcode_libdir_flag_spec_F77='-L$libdir'
14023 hardcode_shlibpath_var_F77=no
14024 ;;
14025
14026 freebsd1*)
14027 ld_shlibs_F77=no
14028 ;;
14029
14030 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14031 # support. Future versions do this automatically, but an explicit c++rt0.o
14032 # does not break anything, and helps significantly (at the cost of a little
14033 # extra space).
14034 freebsd2.2*)
14035 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14036 hardcode_libdir_flag_spec_F77='-R$libdir'
14037 hardcode_direct_F77=yes
14038 hardcode_shlibpath_var_F77=no
14039 ;;
14040
14041 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14042 freebsd2*)
14043 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14044 hardcode_direct_F77=yes
14045 hardcode_minus_L_F77=yes
14046 hardcode_shlibpath_var_F77=no
14047 ;;
14048
14049 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14050 freebsd* | kfreebsd*-gnu | dragonfly*)
14051 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14052 hardcode_libdir_flag_spec_F77='-R$libdir'
14053 hardcode_direct_F77=yes
14054 hardcode_shlibpath_var_F77=no
14055 ;;
14056
14057 hpux9*)
14058 if test "$GCC" = yes; then
14059 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'
14060 else
14061 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'
14062 fi
14063 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14064 hardcode_libdir_separator_F77=:
14065 hardcode_direct_F77=yes
14066
14067 # hardcode_minus_L: Not really in the search PATH,
14068 # but as the default location of the library.
14069 hardcode_minus_L_F77=yes
14070 export_dynamic_flag_spec_F77='${wl}-E'
14071 ;;
14072
14073 hpux10*)
14074 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14075 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14076 else
14077 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14078 fi
14079 if test "$with_gnu_ld" = no; then
14080 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14081 hardcode_libdir_separator_F77=:
14082
14083 hardcode_direct_F77=yes
14084 export_dynamic_flag_spec_F77='${wl}-E'
14085
14086 # hardcode_minus_L: Not really in the search PATH,
14087 # but as the default location of the library.
14088 hardcode_minus_L_F77=yes
14089 fi
14090 ;;
14091
14092 hpux11*)
14093 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14094 case $host_cpu in
14095 hppa*64*)
14096 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14097 ;;
14098 ia64*)
14099 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14100 ;;
14101 *)
14102 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14103 ;;
14104 esac
14105 else
14106 case $host_cpu in
14107 hppa*64*)
14108 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14109 ;;
14110 ia64*)
14111 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14112 ;;
14113 *)
14114 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14115 ;;
14116 esac
14117 fi
14118 if test "$with_gnu_ld" = no; then
14119 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14120 hardcode_libdir_separator_F77=:
14121
14122 case $host_cpu in
14123 hppa*64*|ia64*)
14124 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14125 hardcode_direct_F77=no
14126 hardcode_shlibpath_var_F77=no
14127 ;;
14128 *)
14129 hardcode_direct_F77=yes
14130 export_dynamic_flag_spec_F77='${wl}-E'
14131
14132 # hardcode_minus_L: Not really in the search PATH,
14133 # but as the default location of the library.
14134 hardcode_minus_L_F77=yes
14135 ;;
14136 esac
14137 fi
14138 ;;
14139
14140 irix5* | irix6* | nonstopux*)
14141 if test "$GCC" = yes; then
14142 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'
14143 else
14144 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'
14145 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14146 fi
14147 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14148 hardcode_libdir_separator_F77=:
14149 link_all_deplibs_F77=yes
14150 ;;
14151
14152 netbsd*)
14153 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14154 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14155 else
14156 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14157 fi
14158 hardcode_libdir_flag_spec_F77='-R$libdir'
14159 hardcode_direct_F77=yes
14160 hardcode_shlibpath_var_F77=no
14161 ;;
14162
14163 newsos6)
14164 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14165 hardcode_direct_F77=yes
14166 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14167 hardcode_libdir_separator_F77=:
14168 hardcode_shlibpath_var_F77=no
14169 ;;
14170
14171 openbsd*)
14172 hardcode_direct_F77=yes
14173 hardcode_shlibpath_var_F77=no
14174 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14175 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14176 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14177 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14178 export_dynamic_flag_spec_F77='${wl}-E'
14179 else
14180 case $host_os in
14181 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14182 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14183 hardcode_libdir_flag_spec_F77='-R$libdir'
14184 ;;
14185 *)
14186 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14187 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14188 ;;
14189 esac
14190 fi
14191 ;;
14192
14193 os2*)
14194 hardcode_libdir_flag_spec_F77='-L$libdir'
14195 hardcode_minus_L_F77=yes
14196 allow_undefined_flag_F77=unsupported
14197 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'
14198 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14199 ;;
14200
14201 osf3*)
14202 if test "$GCC" = yes; then
14203 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14204 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'
14205 else
14206 allow_undefined_flag_F77=' -expect_unresolved \*'
14207 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'
14208 fi
14209 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14210 hardcode_libdir_separator_F77=:
14211 ;;
14212
14213 osf4* | osf5*) # as osf3* with the addition of -msym flag
14214 if test "$GCC" = yes; then
14215 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14216 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'
14217 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14218 else
14219 allow_undefined_flag_F77=' -expect_unresolved \*'
14220 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'
14221 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~
14222 $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'
14223
14224 # Both c and cxx compiler support -rpath directly
14225 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14226 fi
14227 hardcode_libdir_separator_F77=:
14228 ;;
14229
14230 solaris*)
14231 no_undefined_flag_F77=' -z text'
14232 if test "$GCC" = yes; then
14233 wlarc='${wl}'
14234 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14235 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14236 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14237 else
14238 wlarc=''
14239 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14240 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14241 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14242 fi
14243 hardcode_libdir_flag_spec_F77='-R$libdir'
14244 hardcode_shlibpath_var_F77=no
14245 case $host_os in
14246 solaris2.[0-5] | solaris2.[0-5].*) ;;
14247 *)
14248 # The compiler driver will combine linker options so we
14249 # cannot just pass the convience library names through
14250 # without $wl, iff we do not link with $LD.
14251 # Luckily, gcc supports the same syntax we need for Sun Studio.
14252 # Supported since Solaris 2.6 (maybe 2.5.1?)
14253 case $wlarc in
14254 '')
14255 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14256 *)
14257 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' ;;
14258 esac ;;
14259 esac
14260 link_all_deplibs_F77=yes
14261 ;;
14262
14263 sunos4*)
14264 if test "x$host_vendor" = xsequent; then
14265 # Use $CC to link under sequent, because it throws in some extra .o
14266 # files that make .init and .fini sections work.
14267 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14268 else
14269 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14270 fi
14271 hardcode_libdir_flag_spec_F77='-L$libdir'
14272 hardcode_direct_F77=yes
14273 hardcode_minus_L_F77=yes
14274 hardcode_shlibpath_var_F77=no
14275 ;;
14276
14277 sysv4)
14278 case $host_vendor in
14279 sni)
14280 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14281 hardcode_direct_F77=yes # is this really true???
14282 ;;
14283 siemens)
14284 ## LD is ld it makes a PLAMLIB
14285 ## CC just makes a GrossModule.
14286 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14287 reload_cmds_F77='$CC -r -o $output$reload_objs'
14288 hardcode_direct_F77=no
14289 ;;
14290 motorola)
14291 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14292 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14293 ;;
14294 esac
14295 runpath_var='LD_RUN_PATH'
14296 hardcode_shlibpath_var_F77=no
14297 ;;
14298
14299 sysv4.3*)
14300 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14301 hardcode_shlibpath_var_F77=no
14302 export_dynamic_flag_spec_F77='-Bexport'
14303 ;;
14304
14305 sysv4*MP*)
14306 if test -d /usr/nec; then
14307 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14308 hardcode_shlibpath_var_F77=no
14309 runpath_var=LD_RUN_PATH
14310 hardcode_runpath_var=yes
14311 ld_shlibs_F77=yes
14312 fi
14313 ;;
14314
14315 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14316 no_undefined_flag_F77='${wl}-z,text'
14317 archive_cmds_need_lc_F77=no
14318 hardcode_shlibpath_var_F77=no
14319 runpath_var='LD_RUN_PATH'
14320
14321 if test "$GCC" = yes; then
14322 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14323 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14324 else
14325 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14326 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14327 fi
14328 ;;
14329
14330 sysv5* | sco3.2v5* | sco5v6*)
14331 # Note: We can NOT use -z defs as we might desire, because we do not
14332 # link with -lc, and that would cause any symbols used from libc to
14333 # always be unresolved, which means just about no library would
14334 # ever link correctly. If we're not using GNU ld we use -z text
14335 # though, which does catch some bad symbols but isn't as heavy-handed
14336 # as -z defs.
14337 no_undefined_flag_F77='${wl}-z,text'
14338 allow_undefined_flag_F77='${wl}-z,nodefs'
14339 archive_cmds_need_lc_F77=no
14340 hardcode_shlibpath_var_F77=no
14341 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14342 hardcode_libdir_separator_F77=':'
14343 link_all_deplibs_F77=yes
14344 export_dynamic_flag_spec_F77='${wl}-Bexport'
14345 runpath_var='LD_RUN_PATH'
14346
14347 if test "$GCC" = yes; then
14348 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14349 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14350 else
14351 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14352 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14353 fi
14354 ;;
14355
14356 uts4*)
14357 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14358 hardcode_libdir_flag_spec_F77='-L$libdir'
14359 hardcode_shlibpath_var_F77=no
14360 ;;
14361
14362 *)
14363 ld_shlibs_F77=no
14364 ;;
14365 esac
14366 fi
14367
14368 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14369 echo "${ECHO_T}$ld_shlibs_F77" >&6
14370 test "$ld_shlibs_F77" = no && can_build_shared=no
14371
14372 #
14373 # Do we need to explicitly link libc?
14374 #
14375 case "x$archive_cmds_need_lc_F77" in
14376 x|xyes)
14377 # Assume -lc should be added
14378 archive_cmds_need_lc_F77=yes
14379
14380 if test "$enable_shared" = yes && test "$GCC" = yes; then
14381 case $archive_cmds_F77 in
14382 *'~'*)
14383 # FIXME: we may have to deal with multi-command sequences.
14384 ;;
14385 '$CC '*)
14386 # Test whether the compiler implicitly links with -lc since on some
14387 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14388 # to ld, don't add -lc before -lgcc.
14389 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14390 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14391 $rm conftest*
14392 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14393
14394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14395 (eval $ac_compile) 2>&5
14396 ac_status=$?
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); } 2>conftest.err; then
14399 soname=conftest
14400 lib=conftest
14401 libobjs=conftest.$ac_objext
14402 deplibs=
14403 wl=$lt_prog_compiler_wl_F77
14404 pic_flag=$lt_prog_compiler_pic_F77
14405 compiler_flags=-v
14406 linker_flags=-v
14407 verstring=
14408 output_objdir=.
14409 libname=conftest
14410 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14411 allow_undefined_flag_F77=
14412 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14413 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14414 ac_status=$?
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); }
14417 then
14418 archive_cmds_need_lc_F77=no
14419 else
14420 archive_cmds_need_lc_F77=yes
14421 fi
14422 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14423 else
14424 cat conftest.err 1>&5
14425 fi
14426 $rm conftest*
14427 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14428 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14429 ;;
14430 esac
14431 fi
14432 ;;
14433 esac
14434
14435 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14436 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14437 library_names_spec=
14438 libname_spec='lib$name'
14439 soname_spec=
14440 shrext_cmds=".so"
14441 postinstall_cmds=
14442 postuninstall_cmds=
14443 finish_cmds=
14444 finish_eval=
14445 shlibpath_var=
14446 shlibpath_overrides_runpath=unknown
14447 version_type=none
14448 dynamic_linker="$host_os ld.so"
14449 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14450 if test "$GCC" = yes; then
14451 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14452 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14453 # if the path contains ";" then we assume it to be the separator
14454 # otherwise default to the standard path separator (i.e. ":") - it is
14455 # assumed that no part of a normal pathname contains ";" but that should
14456 # okay in the real world where ";" in dirpaths is itself problematic.
14457 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14458 else
14459 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14460 fi
14461 else
14462 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14463 fi
14464 need_lib_prefix=unknown
14465 hardcode_into_libs=no
14466
14467 # when you set need_version to no, make sure it does not cause -set_version
14468 # flags to be left without arguments
14469 need_version=unknown
14470
14471 case $host_os in
14472 aix3*)
14473 version_type=linux
14474 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14475 shlibpath_var=LIBPATH
14476
14477 # AIX 3 has no versioning support, so we append a major version to the name.
14478 soname_spec='${libname}${release}${shared_ext}$major'
14479 ;;
14480
14481 aix4* | aix5*)
14482 version_type=linux
14483 need_lib_prefix=no
14484 need_version=no
14485 hardcode_into_libs=yes
14486 if test "$host_cpu" = ia64; then
14487 # AIX 5 supports IA64
14488 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14489 shlibpath_var=LD_LIBRARY_PATH
14490 else
14491 # With GCC up to 2.95.x, collect2 would create an import file
14492 # for dependence libraries. The import file would start with
14493 # the line `#! .'. This would cause the generated library to
14494 # depend on `.', always an invalid library. This was fixed in
14495 # development snapshots of GCC prior to 3.0.
14496 case $host_os in
14497 aix4 | aix4.[01] | aix4.[01].*)
14498 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14499 echo ' yes '
14500 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14501 :
14502 else
14503 can_build_shared=no
14504 fi
14505 ;;
14506 esac
14507 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14508 # soname into executable. Probably we can add versioning support to
14509 # collect2, so additional links can be useful in future.
14510 if test "$aix_use_runtimelinking" = yes; then
14511 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14512 # instead of lib<name>.a to let people know that these are not
14513 # typical AIX shared libraries.
14514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14515 else
14516 # We preserve .a as extension for shared libraries through AIX4.2
14517 # and later when we are not doing run time linking.
14518 library_names_spec='${libname}${release}.a $libname.a'
14519 soname_spec='${libname}${release}${shared_ext}$major'
14520 fi
14521 shlibpath_var=LIBPATH
14522 fi
14523 ;;
14524
14525 amigaos*)
14526 library_names_spec='$libname.ixlibrary $libname.a'
14527 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14528 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'
14529 ;;
14530
14531 beos*)
14532 library_names_spec='${libname}${shared_ext}'
14533 dynamic_linker="$host_os ld.so"
14534 shlibpath_var=LIBRARY_PATH
14535 ;;
14536
14537 bsdi[45]*)
14538 version_type=linux
14539 need_version=no
14540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14541 soname_spec='${libname}${release}${shared_ext}$major'
14542 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14543 shlibpath_var=LD_LIBRARY_PATH
14544 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14545 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14546 # the default ld.so.conf also contains /usr/contrib/lib and
14547 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14548 # libtool to hard-code these into programs
14549 ;;
14550
14551 cygwin* | mingw* | pw32*)
14552 version_type=windows
14553 shrext_cmds=".dll"
14554 need_version=no
14555 need_lib_prefix=no
14556
14557 case $GCC,$host_os in
14558 yes,cygwin* | yes,mingw* | yes,pw32*)
14559 library_names_spec='$libname.dll.a'
14560 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14561 postinstall_cmds='base_file=`basename \${file}`~
14562 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14563 dldir=$destdir/`dirname \$dlpath`~
14564 test -d \$dldir || mkdir -p \$dldir~
14565 $install_prog $dir/$dlname \$dldir/$dlname~
14566 chmod a+x \$dldir/$dlname'
14567 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14568 dlpath=$dir/\$dldll~
14569 $rm \$dlpath'
14570 shlibpath_overrides_runpath=yes
14571
14572 case $host_os in
14573 cygwin*)
14574 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14575 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14576 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14577 ;;
14578 mingw*)
14579 # MinGW DLLs use traditional 'lib' prefix
14580 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14581 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14582 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14583 # It is most probably a Windows format PATH printed by
14584 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14585 # path with ; separators, and with drive letters. We can handle the
14586 # drive letters (cygwin fileutils understands them), so leave them,
14587 # especially as we might pass files found there to a mingw objdump,
14588 # which wouldn't understand a cygwinified path. Ahh.
14589 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14590 else
14591 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14592 fi
14593 ;;
14594 pw32*)
14595 # pw32 DLLs use 'pw' prefix rather than 'lib'
14596 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14597 ;;
14598 esac
14599 ;;
14600
14601 *)
14602 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14603 ;;
14604 esac
14605 dynamic_linker='Win32 ld.exe'
14606 # FIXME: first we should search . and the directory the executable is in
14607 shlibpath_var=PATH
14608 ;;
14609
14610 darwin* | rhapsody*)
14611 dynamic_linker="$host_os dyld"
14612 version_type=darwin
14613 need_lib_prefix=no
14614 need_version=no
14615 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14616 soname_spec='${libname}${release}${major}$shared_ext'
14617 shlibpath_overrides_runpath=yes
14618 shlibpath_var=DYLD_LIBRARY_PATH
14619 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14620 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14621 if test "$GCC" = yes; then
14622 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"`
14623 else
14624 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14625 fi
14626 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14627 ;;
14628
14629 dgux*)
14630 version_type=linux
14631 need_lib_prefix=no
14632 need_version=no
14633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14634 soname_spec='${libname}${release}${shared_ext}$major'
14635 shlibpath_var=LD_LIBRARY_PATH
14636 ;;
14637
14638 freebsd1*)
14639 dynamic_linker=no
14640 ;;
14641
14642 kfreebsd*-gnu)
14643 version_type=linux
14644 need_lib_prefix=no
14645 need_version=no
14646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14647 soname_spec='${libname}${release}${shared_ext}$major'
14648 shlibpath_var=LD_LIBRARY_PATH
14649 shlibpath_overrides_runpath=no
14650 hardcode_into_libs=yes
14651 dynamic_linker='GNU ld.so'
14652 ;;
14653
14654 freebsd* | dragonfly*)
14655 # DragonFly does not have aout. When/if they implement a new
14656 # versioning mechanism, adjust this.
14657 if test -x /usr/bin/objformat; then
14658 objformat=`/usr/bin/objformat`
14659 else
14660 case $host_os in
14661 freebsd[123]*) objformat=aout ;;
14662 *) objformat=elf ;;
14663 esac
14664 fi
14665 version_type=freebsd-$objformat
14666 case $version_type in
14667 freebsd-elf*)
14668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14669 need_version=no
14670 need_lib_prefix=no
14671 ;;
14672 freebsd-*)
14673 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14674 need_version=yes
14675 ;;
14676 esac
14677 shlibpath_var=LD_LIBRARY_PATH
14678 case $host_os in
14679 freebsd2*)
14680 shlibpath_overrides_runpath=yes
14681 ;;
14682 freebsd3.[01]* | freebsdelf3.[01]*)
14683 shlibpath_overrides_runpath=yes
14684 hardcode_into_libs=yes
14685 ;;
14686 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14687 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14688 shlibpath_overrides_runpath=no
14689 hardcode_into_libs=yes
14690 ;;
14691 freebsd*) # from 4.6 on
14692 shlibpath_overrides_runpath=yes
14693 hardcode_into_libs=yes
14694 ;;
14695 esac
14696 ;;
14697
14698 gnu*)
14699 version_type=linux
14700 need_lib_prefix=no
14701 need_version=no
14702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14703 soname_spec='${libname}${release}${shared_ext}$major'
14704 shlibpath_var=LD_LIBRARY_PATH
14705 hardcode_into_libs=yes
14706 ;;
14707
14708 hpux9* | hpux10* | hpux11*)
14709 # Give a soname corresponding to the major version so that dld.sl refuses to
14710 # link against other versions.
14711 version_type=sunos
14712 need_lib_prefix=no
14713 need_version=no
14714 case $host_cpu in
14715 ia64*)
14716 shrext_cmds='.so'
14717 hardcode_into_libs=yes
14718 dynamic_linker="$host_os dld.so"
14719 shlibpath_var=LD_LIBRARY_PATH
14720 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14722 soname_spec='${libname}${release}${shared_ext}$major'
14723 if test "X$HPUX_IA64_MODE" = X32; then
14724 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14725 else
14726 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14727 fi
14728 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14729 ;;
14730 hppa*64*)
14731 shrext_cmds='.sl'
14732 hardcode_into_libs=yes
14733 dynamic_linker="$host_os dld.sl"
14734 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14735 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14737 soname_spec='${libname}${release}${shared_ext}$major'
14738 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14739 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14740 ;;
14741 *)
14742 shrext_cmds='.sl'
14743 dynamic_linker="$host_os dld.sl"
14744 shlibpath_var=SHLIB_PATH
14745 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14747 soname_spec='${libname}${release}${shared_ext}$major'
14748 ;;
14749 esac
14750 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14751 postinstall_cmds='chmod 555 $lib'
14752 ;;
14753
14754 interix3*)
14755 version_type=linux
14756 need_lib_prefix=no
14757 need_version=no
14758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14759 soname_spec='${libname}${release}${shared_ext}$major'
14760 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14761 shlibpath_var=LD_LIBRARY_PATH
14762 shlibpath_overrides_runpath=no
14763 hardcode_into_libs=yes
14764 ;;
14765
14766 irix5* | irix6* | nonstopux*)
14767 case $host_os in
14768 nonstopux*) version_type=nonstopux ;;
14769 *)
14770 if test "$lt_cv_prog_gnu_ld" = yes; then
14771 version_type=linux
14772 else
14773 version_type=irix
14774 fi ;;
14775 esac
14776 need_lib_prefix=no
14777 need_version=no
14778 soname_spec='${libname}${release}${shared_ext}$major'
14779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14780 case $host_os in
14781 irix5* | nonstopux*)
14782 libsuff= shlibsuff=
14783 ;;
14784 *)
14785 case $LD in # libtool.m4 will add one of these switches to LD
14786 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14787 libsuff= shlibsuff= libmagic=32-bit;;
14788 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14789 libsuff=32 shlibsuff=N32 libmagic=N32;;
14790 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14791 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14792 *) libsuff= shlibsuff= libmagic=never-match;;
14793 esac
14794 ;;
14795 esac
14796 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14797 shlibpath_overrides_runpath=no
14798 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14799 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14800 hardcode_into_libs=yes
14801 ;;
14802
14803 # No shared lib support for Linux oldld, aout, or coff.
14804 linux*oldld* | linux*aout* | linux*coff*)
14805 dynamic_linker=no
14806 ;;
14807
14808 # This must be Linux ELF.
14809 linux*)
14810 version_type=linux
14811 need_lib_prefix=no
14812 need_version=no
14813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14814 soname_spec='${libname}${release}${shared_ext}$major'
14815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14816 shlibpath_var=LD_LIBRARY_PATH
14817 shlibpath_overrides_runpath=no
14818 # This implies no fast_install, which is unacceptable.
14819 # Some rework will be needed to allow for fast_install
14820 # before this can be enabled.
14821 hardcode_into_libs=yes
14822
14823 # find out which ABI we are using
14824 libsuff=
14825 case "$host_cpu" in
14826 x86_64*|s390x*|powerpc64*)
14827 echo '#line 14827 "configure"' > conftest.$ac_ext
14828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14829 (eval $ac_compile) 2>&5
14830 ac_status=$?
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); }; then
14833 case `/usr/bin/file conftest.$ac_objext` in
14834 *64-bit*)
14835 libsuff=64
14836 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14837 ;;
14838 esac
14839 fi
14840 rm -rf conftest*
14841 ;;
14842 esac
14843
14844 # Append ld.so.conf contents to the search path
14845 if test -f /etc/ld.so.conf; then
14846 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' ' '`
14847 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14848 fi
14849
14850 # We used to test for /lib/ld.so.1 and disable shared libraries on
14851 # powerpc, because MkLinux only supported shared libraries with the
14852 # GNU dynamic linker. Since this was broken with cross compilers,
14853 # most powerpc-linux boxes support dynamic linking these days and
14854 # people can always --disable-shared, the test was removed, and we
14855 # assume the GNU/Linux dynamic linker is in use.
14856 dynamic_linker='GNU/Linux ld.so'
14857 ;;
14858
14859 knetbsd*-gnu)
14860 version_type=linux
14861 need_lib_prefix=no
14862 need_version=no
14863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14864 soname_spec='${libname}${release}${shared_ext}$major'
14865 shlibpath_var=LD_LIBRARY_PATH
14866 shlibpath_overrides_runpath=no
14867 hardcode_into_libs=yes
14868 dynamic_linker='GNU ld.so'
14869 ;;
14870
14871 netbsd*)
14872 version_type=sunos
14873 need_lib_prefix=no
14874 need_version=no
14875 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14878 dynamic_linker='NetBSD (a.out) ld.so'
14879 else
14880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14881 soname_spec='${libname}${release}${shared_ext}$major'
14882 dynamic_linker='NetBSD ld.elf_so'
14883 fi
14884 shlibpath_var=LD_LIBRARY_PATH
14885 shlibpath_overrides_runpath=yes
14886 hardcode_into_libs=yes
14887 ;;
14888
14889 newsos6)
14890 version_type=linux
14891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14892 shlibpath_var=LD_LIBRARY_PATH
14893 shlibpath_overrides_runpath=yes
14894 ;;
14895
14896 nto-qnx*)
14897 version_type=linux
14898 need_lib_prefix=no
14899 need_version=no
14900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14901 soname_spec='${libname}${release}${shared_ext}$major'
14902 shlibpath_var=LD_LIBRARY_PATH
14903 shlibpath_overrides_runpath=yes
14904 ;;
14905
14906 openbsd*)
14907 version_type=sunos
14908 sys_lib_dlsearch_path_spec="/usr/lib"
14909 need_lib_prefix=no
14910 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14911 case $host_os in
14912 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14913 *) need_version=no ;;
14914 esac
14915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14916 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14917 shlibpath_var=LD_LIBRARY_PATH
14918 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14919 case $host_os in
14920 openbsd2.[89] | openbsd2.[89].*)
14921 shlibpath_overrides_runpath=no
14922 ;;
14923 *)
14924 shlibpath_overrides_runpath=yes
14925 ;;
14926 esac
14927 else
14928 shlibpath_overrides_runpath=yes
14929 fi
14930 ;;
14931
14932 os2*)
14933 libname_spec='$name'
14934 shrext_cmds=".dll"
14935 need_lib_prefix=no
14936 library_names_spec='$libname${shared_ext} $libname.a'
14937 dynamic_linker='OS/2 ld.exe'
14938 shlibpath_var=LIBPATH
14939 ;;
14940
14941 osf3* | osf4* | osf5*)
14942 version_type=osf
14943 need_lib_prefix=no
14944 need_version=no
14945 soname_spec='${libname}${release}${shared_ext}$major'
14946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14947 shlibpath_var=LD_LIBRARY_PATH
14948 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14949 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14950 ;;
14951
14952 solaris*)
14953 version_type=linux
14954 need_lib_prefix=no
14955 need_version=no
14956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14957 soname_spec='${libname}${release}${shared_ext}$major'
14958 shlibpath_var=LD_LIBRARY_PATH
14959 shlibpath_overrides_runpath=yes
14960 hardcode_into_libs=yes
14961 # ldd complains unless libraries are executable
14962 postinstall_cmds='chmod +x $lib'
14963 ;;
14964
14965 sunos4*)
14966 version_type=sunos
14967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14968 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14969 shlibpath_var=LD_LIBRARY_PATH
14970 shlibpath_overrides_runpath=yes
14971 if test "$with_gnu_ld" = yes; then
14972 need_lib_prefix=no
14973 fi
14974 need_version=yes
14975 ;;
14976
14977 sysv4 | sysv4.3*)
14978 version_type=linux
14979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14980 soname_spec='${libname}${release}${shared_ext}$major'
14981 shlibpath_var=LD_LIBRARY_PATH
14982 case $host_vendor in
14983 sni)
14984 shlibpath_overrides_runpath=no
14985 need_lib_prefix=no
14986 export_dynamic_flag_spec='${wl}-Blargedynsym'
14987 runpath_var=LD_RUN_PATH
14988 ;;
14989 siemens)
14990 need_lib_prefix=no
14991 ;;
14992 motorola)
14993 need_lib_prefix=no
14994 need_version=no
14995 shlibpath_overrides_runpath=no
14996 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14997 ;;
14998 esac
14999 ;;
15000
15001 sysv4*MP*)
15002 if test -d /usr/nec ;then
15003 version_type=linux
15004 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15005 soname_spec='$libname${shared_ext}.$major'
15006 shlibpath_var=LD_LIBRARY_PATH
15007 fi
15008 ;;
15009
15010 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15011 version_type=freebsd-elf
15012 need_lib_prefix=no
15013 need_version=no
15014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15015 soname_spec='${libname}${release}${shared_ext}$major'
15016 shlibpath_var=LD_LIBRARY_PATH
15017 hardcode_into_libs=yes
15018 if test "$with_gnu_ld" = yes; then
15019 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15020 shlibpath_overrides_runpath=no
15021 else
15022 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15023 shlibpath_overrides_runpath=yes
15024 case $host_os in
15025 sco3.2v5*)
15026 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15027 ;;
15028 esac
15029 fi
15030 sys_lib_dlsearch_path_spec='/usr/lib'
15031 ;;
15032
15033 uts4*)
15034 version_type=linux
15035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15036 soname_spec='${libname}${release}${shared_ext}$major'
15037 shlibpath_var=LD_LIBRARY_PATH
15038 ;;
15039
15040 *)
15041 dynamic_linker=no
15042 ;;
15043 esac
15044 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15045 echo "${ECHO_T}$dynamic_linker" >&6
15046 test "$dynamic_linker" = no && can_build_shared=no
15047
15048 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15049 if test "$GCC" = yes; then
15050 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15051 fi
15052
15053 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15054 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15055 hardcode_action_F77=
15056 if test -n "$hardcode_libdir_flag_spec_F77" || \
15057 test -n "$runpath_var_F77" || \
15058 test "X$hardcode_automatic_F77" = "Xyes" ; then
15059
15060 # We can hardcode non-existant directories.
15061 if test "$hardcode_direct_F77" != no &&
15062 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15063 # have to relink, otherwise we might link with an installed library
15064 # when we should be linking with a yet-to-be-installed one
15065 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15066 test "$hardcode_minus_L_F77" != no; then
15067 # Linking always hardcodes the temporary library directory.
15068 hardcode_action_F77=relink
15069 else
15070 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15071 hardcode_action_F77=immediate
15072 fi
15073 else
15074 # We cannot hardcode anything, or else we can only hardcode existing
15075 # directories.
15076 hardcode_action_F77=unsupported
15077 fi
15078 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15079 echo "${ECHO_T}$hardcode_action_F77" >&6
15080
15081 if test "$hardcode_action_F77" = relink; then
15082 # Fast installation is not supported
15083 enable_fast_install=no
15084 elif test "$shlibpath_overrides_runpath" = yes ||
15085 test "$enable_shared" = no; then
15086 # Fast installation is not necessary
15087 enable_fast_install=needless
15088 fi
15089
15090
15091 # The else clause should only fire when bootstrapping the
15092 # libtool distribution, otherwise you forgot to ship ltmain.sh
15093 # with your package, and you will get complaints that there are
15094 # no rules to generate ltmain.sh.
15095 if test -f "$ltmain"; then
15096 # See if we are running on zsh, and set the options which allow our commands through
15097 # without removal of \ escapes.
15098 if test -n "${ZSH_VERSION+set}" ; then
15099 setopt NO_GLOB_SUBST
15100 fi
15101 # Now quote all the things that may contain metacharacters while being
15102 # careful not to overquote the AC_SUBSTed values. We take copies of the
15103 # variables and quote the copies for generation of the libtool script.
15104 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15105 SED SHELL STRIP \
15106 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15107 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15108 deplibs_check_method reload_flag reload_cmds need_locks \
15109 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15110 lt_cv_sys_global_symbol_to_c_name_address \
15111 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15112 old_postinstall_cmds old_postuninstall_cmds \
15113 compiler_F77 \
15114 CC_F77 \
15115 LD_F77 \
15116 lt_prog_compiler_wl_F77 \
15117 lt_prog_compiler_pic_F77 \
15118 lt_prog_compiler_static_F77 \
15119 lt_prog_compiler_no_builtin_flag_F77 \
15120 export_dynamic_flag_spec_F77 \
15121 thread_safe_flag_spec_F77 \
15122 whole_archive_flag_spec_F77 \
15123 enable_shared_with_static_runtimes_F77 \
15124 old_archive_cmds_F77 \
15125 old_archive_from_new_cmds_F77 \
15126 predep_objects_F77 \
15127 postdep_objects_F77 \
15128 predeps_F77 \
15129 postdeps_F77 \
15130 compiler_lib_search_path_F77 \
15131 archive_cmds_F77 \
15132 archive_expsym_cmds_F77 \
15133 postinstall_cmds_F77 \
15134 postuninstall_cmds_F77 \
15135 old_archive_from_expsyms_cmds_F77 \
15136 allow_undefined_flag_F77 \
15137 no_undefined_flag_F77 \
15138 export_symbols_cmds_F77 \
15139 hardcode_libdir_flag_spec_F77 \
15140 hardcode_libdir_flag_spec_ld_F77 \
15141 hardcode_libdir_separator_F77 \
15142 hardcode_automatic_F77 \
15143 module_cmds_F77 \
15144 module_expsym_cmds_F77 \
15145 lt_cv_prog_compiler_c_o_F77 \
15146 exclude_expsyms_F77 \
15147 include_expsyms_F77; do
15148
15149 case $var in
15150 old_archive_cmds_F77 | \
15151 old_archive_from_new_cmds_F77 | \
15152 archive_cmds_F77 | \
15153 archive_expsym_cmds_F77 | \
15154 module_cmds_F77 | \
15155 module_expsym_cmds_F77 | \
15156 old_archive_from_expsyms_cmds_F77 | \
15157 export_symbols_cmds_F77 | \
15158 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15159 postinstall_cmds | postuninstall_cmds | \
15160 old_postinstall_cmds | old_postuninstall_cmds | \
15161 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15162 # Double-quote double-evaled strings.
15163 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15164 ;;
15165 *)
15166 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15167 ;;
15168 esac
15169 done
15170
15171 case $lt_echo in
15172 *'\$0 --fallback-echo"')
15173 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15174 ;;
15175 esac
15176
15177 cfgfile="$ofile"
15178
15179 cat <<__EOF__ >> "$cfgfile"
15180 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15181
15182 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15183
15184 # Shell to use when invoking shell scripts.
15185 SHELL=$lt_SHELL
15186
15187 # Whether or not to build shared libraries.
15188 build_libtool_libs=$enable_shared
15189
15190 # Whether or not to build static libraries.
15191 build_old_libs=$enable_static
15192
15193 # Whether or not to add -lc for building shared libraries.
15194 build_libtool_need_lc=$archive_cmds_need_lc_F77
15195
15196 # Whether or not to disallow shared libs when runtime libs are static
15197 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15198
15199 # Whether or not to optimize for fast installation.
15200 fast_install=$enable_fast_install
15201
15202 # The host system.
15203 host_alias=$host_alias
15204 host=$host
15205 host_os=$host_os
15206
15207 # The build system.
15208 build_alias=$build_alias
15209 build=$build
15210 build_os=$build_os
15211
15212 # An echo program that does not interpret backslashes.
15213 echo=$lt_echo
15214
15215 # The archiver.
15216 AR=$lt_AR
15217 AR_FLAGS=$lt_AR_FLAGS
15218
15219 # A C compiler.
15220 LTCC=$lt_LTCC
15221
15222 # LTCC compiler flags.
15223 LTCFLAGS=$lt_LTCFLAGS
15224
15225 # A language-specific compiler.
15226 CC=$lt_compiler_F77
15227
15228 # Is the compiler the GNU C compiler?
15229 with_gcc=$GCC_F77
15230
15231 # An ERE matcher.
15232 EGREP=$lt_EGREP
15233
15234 # The linker used to build libraries.
15235 LD=$lt_LD_F77
15236
15237 # Whether we need hard or soft links.
15238 LN_S=$lt_LN_S
15239
15240 # A BSD-compatible nm program.
15241 NM=$lt_NM
15242
15243 # A symbol stripping program
15244 STRIP=$lt_STRIP
15245
15246 # Used to examine libraries when file_magic_cmd begins "file"
15247 MAGIC_CMD=$MAGIC_CMD
15248
15249 # Used on cygwin: DLL creation program.
15250 DLLTOOL="$DLLTOOL"
15251
15252 # Used on cygwin: object dumper.
15253 OBJDUMP="$OBJDUMP"
15254
15255 # Used on cygwin: assembler.
15256 AS="$AS"
15257
15258 # The name of the directory that contains temporary libtool files.
15259 objdir=$objdir
15260
15261 # How to create reloadable object files.
15262 reload_flag=$lt_reload_flag
15263 reload_cmds=$lt_reload_cmds
15264
15265 # How to pass a linker flag through the compiler.
15266 wl=$lt_lt_prog_compiler_wl_F77
15267
15268 # Object file suffix (normally "o").
15269 objext="$ac_objext"
15270
15271 # Old archive suffix (normally "a").
15272 libext="$libext"
15273
15274 # Shared library suffix (normally ".so").
15275 shrext_cmds='$shrext_cmds'
15276
15277 # Executable file suffix (normally "").
15278 exeext="$exeext"
15279
15280 # Additional compiler flags for building library objects.
15281 pic_flag=$lt_lt_prog_compiler_pic_F77
15282 pic_mode=$pic_mode
15283
15284 # What is the maximum length of a command?
15285 max_cmd_len=$lt_cv_sys_max_cmd_len
15286
15287 # Does compiler simultaneously support -c and -o options?
15288 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15289
15290 # Must we lock files when doing compilation?
15291 need_locks=$lt_need_locks
15292
15293 # Do we need the lib prefix for modules?
15294 need_lib_prefix=$need_lib_prefix
15295
15296 # Do we need a version for libraries?
15297 need_version=$need_version
15298
15299 # Whether dlopen is supported.
15300 dlopen_support=$enable_dlopen
15301
15302 # Whether dlopen of programs is supported.
15303 dlopen_self=$enable_dlopen_self
15304
15305 # Whether dlopen of statically linked programs is supported.
15306 dlopen_self_static=$enable_dlopen_self_static
15307
15308 # Compiler flag to prevent dynamic linking.
15309 link_static_flag=$lt_lt_prog_compiler_static_F77
15310
15311 # Compiler flag to turn off builtin functions.
15312 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15313
15314 # Compiler flag to allow reflexive dlopens.
15315 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15316
15317 # Compiler flag to generate shared objects directly from archives.
15318 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15319
15320 # Compiler flag to generate thread-safe objects.
15321 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15322
15323 # Library versioning type.
15324 version_type=$version_type
15325
15326 # Format of library name prefix.
15327 libname_spec=$lt_libname_spec
15328
15329 # List of archive names. First name is the real one, the rest are links.
15330 # The last name is the one that the linker finds with -lNAME.
15331 library_names_spec=$lt_library_names_spec
15332
15333 # The coded name of the library, if different from the real name.
15334 soname_spec=$lt_soname_spec
15335
15336 # Commands used to build and install an old-style archive.
15337 RANLIB=$lt_RANLIB
15338 old_archive_cmds=$lt_old_archive_cmds_F77
15339 old_postinstall_cmds=$lt_old_postinstall_cmds
15340 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15341
15342 # Create an old-style archive from a shared archive.
15343 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15344
15345 # Create a temporary old-style archive to link instead of a shared archive.
15346 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15347
15348 # Commands used to build and install a shared archive.
15349 archive_cmds=$lt_archive_cmds_F77
15350 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15351 postinstall_cmds=$lt_postinstall_cmds
15352 postuninstall_cmds=$lt_postuninstall_cmds
15353
15354 # Commands used to build a loadable module (assumed same as above if empty)
15355 module_cmds=$lt_module_cmds_F77
15356 module_expsym_cmds=$lt_module_expsym_cmds_F77
15357
15358 # Commands to strip libraries.
15359 old_striplib=$lt_old_striplib
15360 striplib=$lt_striplib
15361
15362 # Dependencies to place before the objects being linked to create a
15363 # shared library.
15364 predep_objects=$lt_predep_objects_F77
15365
15366 # Dependencies to place after the objects being linked to create a
15367 # shared library.
15368 postdep_objects=$lt_postdep_objects_F77
15369
15370 # Dependencies to place before the objects being linked to create a
15371 # shared library.
15372 predeps=$lt_predeps_F77
15373
15374 # Dependencies to place after the objects being linked to create a
15375 # shared library.
15376 postdeps=$lt_postdeps_F77
15377
15378 # The library search path used internally by the compiler when linking
15379 # a shared library.
15380 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15381
15382 # Method to check whether dependent libraries are shared objects.
15383 deplibs_check_method=$lt_deplibs_check_method
15384
15385 # Command to use when deplibs_check_method == file_magic.
15386 file_magic_cmd=$lt_file_magic_cmd
15387
15388 # Flag that allows shared libraries with undefined symbols to be built.
15389 allow_undefined_flag=$lt_allow_undefined_flag_F77
15390
15391 # Flag that forces no undefined symbols.
15392 no_undefined_flag=$lt_no_undefined_flag_F77
15393
15394 # Commands used to finish a libtool library installation in a directory.
15395 finish_cmds=$lt_finish_cmds
15396
15397 # Same as above, but a single script fragment to be evaled but not shown.
15398 finish_eval=$lt_finish_eval
15399
15400 # Take the output of nm and produce a listing of raw symbols and C names.
15401 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15402
15403 # Transform the output of nm in a proper C declaration
15404 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15405
15406 # Transform the output of nm in a C name address pair
15407 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15408
15409 # This is the shared library runtime path variable.
15410 runpath_var=$runpath_var
15411
15412 # This is the shared library path variable.
15413 shlibpath_var=$shlibpath_var
15414
15415 # Is shlibpath searched before the hard-coded library search path?
15416 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15417
15418 # How to hardcode a shared library path into an executable.
15419 hardcode_action=$hardcode_action_F77
15420
15421 # Whether we should hardcode library paths into libraries.
15422 hardcode_into_libs=$hardcode_into_libs
15423
15424 # Flag to hardcode \$libdir into a binary during linking.
15425 # This must work even if \$libdir does not exist.
15426 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15427
15428 # If ld is used when linking, flag to hardcode \$libdir into
15429 # a binary during linking. This must work even if \$libdir does
15430 # not exist.
15431 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15432
15433 # Whether we need a single -rpath flag with a separated argument.
15434 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15435
15436 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15437 # resulting binary.
15438 hardcode_direct=$hardcode_direct_F77
15439
15440 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15441 # resulting binary.
15442 hardcode_minus_L=$hardcode_minus_L_F77
15443
15444 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15445 # the resulting binary.
15446 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15447
15448 # Set to yes if building a shared library automatically hardcodes DIR into the library
15449 # and all subsequent libraries and executables linked against it.
15450 hardcode_automatic=$hardcode_automatic_F77
15451
15452 # Variables whose values should be saved in libtool wrapper scripts and
15453 # restored at relink time.
15454 variables_saved_for_relink="$variables_saved_for_relink"
15455
15456 # Whether libtool must link a program against all its dependency libraries.
15457 link_all_deplibs=$link_all_deplibs_F77
15458
15459 # Compile-time system search path for libraries
15460 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15461
15462 # Run-time system search path for libraries
15463 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15464
15465 # Fix the shell variable \$srcfile for the compiler.
15466 fix_srcfile_path="$fix_srcfile_path_F77"
15467
15468 # Set to yes if exported symbols are required.
15469 always_export_symbols=$always_export_symbols_F77
15470
15471 # The commands to list exported symbols.
15472 export_symbols_cmds=$lt_export_symbols_cmds_F77
15473
15474 # The commands to extract the exported symbol list from a shared archive.
15475 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15476
15477 # Symbols that should not be listed in the preloaded symbols.
15478 exclude_expsyms=$lt_exclude_expsyms_F77
15479
15480 # Symbols that must always be exported.
15481 include_expsyms=$lt_include_expsyms_F77
15482
15483 # ### END LIBTOOL TAG CONFIG: $tagname
15484
15485 __EOF__
15486
15487
15488 else
15489 # If there is no Makefile yet, we rely on a make rule to execute
15490 # `config.status --recheck' to rerun these tests and create the
15491 # libtool script then.
15492 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15493 if test -f "$ltmain_in"; then
15494 test -f Makefile && make "$ltmain"
15495 fi
15496 fi
15497
15498
15499 ac_ext=c
15500 ac_cpp='$CPP $CPPFLAGS'
15501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15504
15505 CC="$lt_save_CC"
15506
15507 else
15508 tagname=""
15509 fi
15510 ;;
15511
15512 GCJ)
15513 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15514
15515
15516
15517 # Source file extension for Java test sources.
15518 ac_ext=java
15519
15520 # Object file extension for compiled Java test sources.
15521 objext=o
15522 objext_GCJ=$objext
15523
15524 # Code to be used in simple compile tests
15525 lt_simple_compile_test_code="class foo {}\n"
15526
15527 # Code to be used in simple link tests
15528 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15529
15530 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15531
15532 # If no C compiler was specified, use CC.
15533 LTCC=${LTCC-"$CC"}
15534
15535 # If no C compiler flags were specified, use CFLAGS.
15536 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15537
15538 # Allow CC to be a program name with arguments.
15539 compiler=$CC
15540
15541
15542 # save warnings/boilerplate of simple test code
15543 ac_outfile=conftest.$ac_objext
15544 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15545 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15546 _lt_compiler_boilerplate=`cat conftest.err`
15547 $rm conftest*
15548
15549 ac_outfile=conftest.$ac_objext
15550 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15551 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15552 _lt_linker_boilerplate=`cat conftest.err`
15553 $rm conftest*
15554
15555
15556 # Allow CC to be a program name with arguments.
15557 lt_save_CC="$CC"
15558 CC=${GCJ-"gcj"}
15559 compiler=$CC
15560 compiler_GCJ=$CC
15561 for cc_temp in $compiler""; do
15562 case $cc_temp in
15563 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15564 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15565 \-*) ;;
15566 *) break;;
15567 esac
15568 done
15569 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15570
15571
15572 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15573 archive_cmds_need_lc_GCJ=no
15574
15575 old_archive_cmds_GCJ=$old_archive_cmds
15576
15577
15578 lt_prog_compiler_no_builtin_flag_GCJ=
15579
15580 if test "$GCC" = yes; then
15581 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15582
15583
15584 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15585 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15586 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15587 echo $ECHO_N "(cached) $ECHO_C" >&6
15588 else
15589 lt_cv_prog_compiler_rtti_exceptions=no
15590 ac_outfile=conftest.$ac_objext
15591 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15592 lt_compiler_flag="-fno-rtti -fno-exceptions"
15593 # Insert the option either (1) after the last *FLAGS variable, or
15594 # (2) before a word containing "conftest.", or (3) at the end.
15595 # Note that $ac_compile itself does not contain backslashes and begins
15596 # with a dollar sign (not a hyphen), so the echo should work correctly.
15597 # The option is referenced via a variable to avoid confusing sed.
15598 lt_compile=`echo "$ac_compile" | $SED \
15599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15601 -e 's:$: $lt_compiler_flag:'`
15602 (eval echo "\"\$as_me:15602: $lt_compile\"" >&5)
15603 (eval "$lt_compile" 2>conftest.err)
15604 ac_status=$?
15605 cat conftest.err >&5
15606 echo "$as_me:15606: \$? = $ac_status" >&5
15607 if (exit $ac_status) && test -s "$ac_outfile"; then
15608 # The compiler can only warn and ignore the option if not recognized
15609 # So say no if there are warnings other than the usual output.
15610 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15611 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15612 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15613 lt_cv_prog_compiler_rtti_exceptions=yes
15614 fi
15615 fi
15616 $rm conftest*
15617
15618 fi
15619 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15620 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15621
15622 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15623 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15624 else
15625 :
15626 fi
15627
15628 fi
15629
15630 lt_prog_compiler_wl_GCJ=
15631 lt_prog_compiler_pic_GCJ=
15632 lt_prog_compiler_static_GCJ=
15633
15634 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15635 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15636
15637 if test "$GCC" = yes; then
15638 lt_prog_compiler_wl_GCJ='-Wl,'
15639 lt_prog_compiler_static_GCJ='-static'
15640
15641 case $host_os in
15642 aix*)
15643 # All AIX code is PIC.
15644 if test "$host_cpu" = ia64; then
15645 # AIX 5 now supports IA64 processor
15646 lt_prog_compiler_static_GCJ='-Bstatic'
15647 fi
15648 ;;
15649
15650 amigaos*)
15651 # FIXME: we need at least 68020 code to build shared libraries, but
15652 # adding the `-m68020' flag to GCC prevents building anything better,
15653 # like `-m68040'.
15654 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15655 ;;
15656
15657 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15658 # PIC is the default for these OSes.
15659 ;;
15660
15661 mingw* | pw32* | os2*)
15662 # This hack is so that the source file can tell whether it is being
15663 # built for inclusion in a dll (and should export symbols for example).
15664 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15665 ;;
15666
15667 darwin* | rhapsody*)
15668 # PIC is the default on this platform
15669 # Common symbols not allowed in MH_DYLIB files
15670 lt_prog_compiler_pic_GCJ='-fno-common'
15671 ;;
15672
15673 interix3*)
15674 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15675 # Instead, we relocate shared libraries at runtime.
15676 ;;
15677
15678 msdosdjgpp*)
15679 # Just because we use GCC doesn't mean we suddenly get shared libraries
15680 # on systems that don't support them.
15681 lt_prog_compiler_can_build_shared_GCJ=no
15682 enable_shared=no
15683 ;;
15684
15685 sysv4*MP*)
15686 if test -d /usr/nec; then
15687 lt_prog_compiler_pic_GCJ=-Kconform_pic
15688 fi
15689 ;;
15690
15691 hpux*)
15692 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15693 # not for PA HP-UX.
15694 case $host_cpu in
15695 hppa*64*|ia64*)
15696 # +Z the default
15697 ;;
15698 *)
15699 lt_prog_compiler_pic_GCJ='-fPIC'
15700 ;;
15701 esac
15702 ;;
15703
15704 *)
15705 lt_prog_compiler_pic_GCJ='-fPIC'
15706 ;;
15707 esac
15708 else
15709 # PORTME Check for flag to pass linker flags through the system compiler.
15710 case $host_os in
15711 aix*)
15712 lt_prog_compiler_wl_GCJ='-Wl,'
15713 if test "$host_cpu" = ia64; then
15714 # AIX 5 now supports IA64 processor
15715 lt_prog_compiler_static_GCJ='-Bstatic'
15716 else
15717 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15718 fi
15719 ;;
15720 darwin*)
15721 # PIC is the default on this platform
15722 # Common symbols not allowed in MH_DYLIB files
15723 case $cc_basename in
15724 xlc*)
15725 lt_prog_compiler_pic_GCJ='-qnocommon'
15726 lt_prog_compiler_wl_GCJ='-Wl,'
15727 ;;
15728 esac
15729 ;;
15730
15731 mingw* | pw32* | os2*)
15732 # This hack is so that the source file can tell whether it is being
15733 # built for inclusion in a dll (and should export symbols for example).
15734 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15735 ;;
15736
15737 hpux9* | hpux10* | hpux11*)
15738 lt_prog_compiler_wl_GCJ='-Wl,'
15739 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15740 # not for PA HP-UX.
15741 case $host_cpu in
15742 hppa*64*|ia64*)
15743 # +Z the default
15744 ;;
15745 *)
15746 lt_prog_compiler_pic_GCJ='+Z'
15747 ;;
15748 esac
15749 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15750 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15751 ;;
15752
15753 irix5* | irix6* | nonstopux*)
15754 lt_prog_compiler_wl_GCJ='-Wl,'
15755 # PIC (with -KPIC) is the default.
15756 lt_prog_compiler_static_GCJ='-non_shared'
15757 ;;
15758
15759 newsos6)
15760 lt_prog_compiler_pic_GCJ='-KPIC'
15761 lt_prog_compiler_static_GCJ='-Bstatic'
15762 ;;
15763
15764 linux*)
15765 case $cc_basename in
15766 icc* | ecc*)
15767 lt_prog_compiler_wl_GCJ='-Wl,'
15768 lt_prog_compiler_pic_GCJ='-KPIC'
15769 lt_prog_compiler_static_GCJ='-static'
15770 ;;
15771 pgcc* | pgf77* | pgf90* | pgf95*)
15772 # Portland Group compilers (*not* the Pentium gcc compiler,
15773 # which looks to be a dead project)
15774 lt_prog_compiler_wl_GCJ='-Wl,'
15775 lt_prog_compiler_pic_GCJ='-fpic'
15776 lt_prog_compiler_static_GCJ='-Bstatic'
15777 ;;
15778 ccc*)
15779 lt_prog_compiler_wl_GCJ='-Wl,'
15780 # All Alpha code is PIC.
15781 lt_prog_compiler_static_GCJ='-non_shared'
15782 ;;
15783 esac
15784 ;;
15785
15786 osf3* | osf4* | osf5*)
15787 lt_prog_compiler_wl_GCJ='-Wl,'
15788 # All OSF/1 code is PIC.
15789 lt_prog_compiler_static_GCJ='-non_shared'
15790 ;;
15791
15792 solaris*)
15793 lt_prog_compiler_pic_GCJ='-KPIC'
15794 lt_prog_compiler_static_GCJ='-Bstatic'
15795 case $cc_basename in
15796 f77* | f90* | f95*)
15797 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15798 *)
15799 lt_prog_compiler_wl_GCJ='-Wl,';;
15800 esac
15801 ;;
15802
15803 sunos4*)
15804 lt_prog_compiler_wl_GCJ='-Qoption ld '
15805 lt_prog_compiler_pic_GCJ='-PIC'
15806 lt_prog_compiler_static_GCJ='-Bstatic'
15807 ;;
15808
15809 sysv4 | sysv4.2uw2* | sysv4.3*)
15810 lt_prog_compiler_wl_GCJ='-Wl,'
15811 lt_prog_compiler_pic_GCJ='-KPIC'
15812 lt_prog_compiler_static_GCJ='-Bstatic'
15813 ;;
15814
15815 sysv4*MP*)
15816 if test -d /usr/nec ;then
15817 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15818 lt_prog_compiler_static_GCJ='-Bstatic'
15819 fi
15820 ;;
15821
15822 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15823 lt_prog_compiler_wl_GCJ='-Wl,'
15824 lt_prog_compiler_pic_GCJ='-KPIC'
15825 lt_prog_compiler_static_GCJ='-Bstatic'
15826 ;;
15827
15828 unicos*)
15829 lt_prog_compiler_wl_GCJ='-Wl,'
15830 lt_prog_compiler_can_build_shared_GCJ=no
15831 ;;
15832
15833 uts4*)
15834 lt_prog_compiler_pic_GCJ='-pic'
15835 lt_prog_compiler_static_GCJ='-Bstatic'
15836 ;;
15837
15838 *)
15839 lt_prog_compiler_can_build_shared_GCJ=no
15840 ;;
15841 esac
15842 fi
15843
15844 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15845 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15846
15847 #
15848 # Check to make sure the PIC flag actually works.
15849 #
15850 if test -n "$lt_prog_compiler_pic_GCJ"; then
15851
15852 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15853 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15854 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15855 echo $ECHO_N "(cached) $ECHO_C" >&6
15856 else
15857 lt_prog_compiler_pic_works_GCJ=no
15858 ac_outfile=conftest.$ac_objext
15859 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15860 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15861 # Insert the option either (1) after the last *FLAGS variable, or
15862 # (2) before a word containing "conftest.", or (3) at the end.
15863 # Note that $ac_compile itself does not contain backslashes and begins
15864 # with a dollar sign (not a hyphen), so the echo should work correctly.
15865 # The option is referenced via a variable to avoid confusing sed.
15866 lt_compile=`echo "$ac_compile" | $SED \
15867 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15869 -e 's:$: $lt_compiler_flag:'`
15870 (eval echo "\"\$as_me:15870: $lt_compile\"" >&5)
15871 (eval "$lt_compile" 2>conftest.err)
15872 ac_status=$?
15873 cat conftest.err >&5
15874 echo "$as_me:15874: \$? = $ac_status" >&5
15875 if (exit $ac_status) && test -s "$ac_outfile"; then
15876 # The compiler can only warn and ignore the option if not recognized
15877 # So say no if there are warnings other than the usual output.
15878 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15879 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15880 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15881 lt_prog_compiler_pic_works_GCJ=yes
15882 fi
15883 fi
15884 $rm conftest*
15885
15886 fi
15887 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15888 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15889
15890 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15891 case $lt_prog_compiler_pic_GCJ in
15892 "" | " "*) ;;
15893 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15894 esac
15895 else
15896 lt_prog_compiler_pic_GCJ=
15897 lt_prog_compiler_can_build_shared_GCJ=no
15898 fi
15899
15900 fi
15901 case $host_os in
15902 # For platforms which do not support PIC, -DPIC is meaningless:
15903 *djgpp*)
15904 lt_prog_compiler_pic_GCJ=
15905 ;;
15906 *)
15907 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15908 ;;
15909 esac
15910
15911 #
15912 # Check to make sure the static flag actually works.
15913 #
15914 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15915 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15916 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15917 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15918 echo $ECHO_N "(cached) $ECHO_C" >&6
15919 else
15920 lt_prog_compiler_static_works_GCJ=no
15921 save_LDFLAGS="$LDFLAGS"
15922 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15923 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15924 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15925 # The linker can only warn and ignore the option if not recognized
15926 # So say no if there are warnings
15927 if test -s conftest.err; then
15928 # Append any errors to the config.log.
15929 cat conftest.err 1>&5
15930 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15931 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15932 if diff conftest.exp conftest.er2 >/dev/null; then
15933 lt_prog_compiler_static_works_GCJ=yes
15934 fi
15935 else
15936 lt_prog_compiler_static_works_GCJ=yes
15937 fi
15938 fi
15939 $rm conftest*
15940 LDFLAGS="$save_LDFLAGS"
15941
15942 fi
15943 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15944 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15945
15946 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15947 :
15948 else
15949 lt_prog_compiler_static_GCJ=
15950 fi
15951
15952
15953 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15954 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15955 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15956 echo $ECHO_N "(cached) $ECHO_C" >&6
15957 else
15958 lt_cv_prog_compiler_c_o_GCJ=no
15959 $rm -r conftest 2>/dev/null
15960 mkdir conftest
15961 cd conftest
15962 mkdir out
15963 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15964
15965 lt_compiler_flag="-o out/conftest2.$ac_objext"
15966 # Insert the option either (1) after the last *FLAGS variable, or
15967 # (2) before a word containing "conftest.", or (3) at the end.
15968 # Note that $ac_compile itself does not contain backslashes and begins
15969 # with a dollar sign (not a hyphen), so the echo should work correctly.
15970 lt_compile=`echo "$ac_compile" | $SED \
15971 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15973 -e 's:$: $lt_compiler_flag:'`
15974 (eval echo "\"\$as_me:15974: $lt_compile\"" >&5)
15975 (eval "$lt_compile" 2>out/conftest.err)
15976 ac_status=$?
15977 cat out/conftest.err >&5
15978 echo "$as_me:15978: \$? = $ac_status" >&5
15979 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15980 then
15981 # The compiler can only warn and ignore the option if not recognized
15982 # So say no if there are warnings
15983 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15984 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15985 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15986 lt_cv_prog_compiler_c_o_GCJ=yes
15987 fi
15988 fi
15989 chmod u+w . 2>&5
15990 $rm conftest*
15991 # SGI C++ compiler will create directory out/ii_files/ for
15992 # template instantiation
15993 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15994 $rm out/* && rmdir out
15995 cd ..
15996 rmdir conftest
15997 $rm conftest*
15998
15999 fi
16000 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16001 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16002
16003
16004 hard_links="nottested"
16005 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16006 # do not overwrite the value of need_locks provided by the user
16007 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16008 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16009 hard_links=yes
16010 $rm conftest*
16011 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16012 touch conftest.a
16013 ln conftest.a conftest.b 2>&5 || hard_links=no
16014 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16015 echo "$as_me:$LINENO: result: $hard_links" >&5
16016 echo "${ECHO_T}$hard_links" >&6
16017 if test "$hard_links" = no; then
16018 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16019 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16020 need_locks=warn
16021 fi
16022 else
16023 need_locks=no
16024 fi
16025
16026 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16027 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16028
16029 runpath_var=
16030 allow_undefined_flag_GCJ=
16031 enable_shared_with_static_runtimes_GCJ=no
16032 archive_cmds_GCJ=
16033 archive_expsym_cmds_GCJ=
16034 old_archive_From_new_cmds_GCJ=
16035 old_archive_from_expsyms_cmds_GCJ=
16036 export_dynamic_flag_spec_GCJ=
16037 whole_archive_flag_spec_GCJ=
16038 thread_safe_flag_spec_GCJ=
16039 hardcode_libdir_flag_spec_GCJ=
16040 hardcode_libdir_flag_spec_ld_GCJ=
16041 hardcode_libdir_separator_GCJ=
16042 hardcode_direct_GCJ=no
16043 hardcode_minus_L_GCJ=no
16044 hardcode_shlibpath_var_GCJ=unsupported
16045 link_all_deplibs_GCJ=unknown
16046 hardcode_automatic_GCJ=no
16047 module_cmds_GCJ=
16048 module_expsym_cmds_GCJ=
16049 always_export_symbols_GCJ=no
16050 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16051 # include_expsyms should be a list of space-separated symbols to be *always*
16052 # included in the symbol list
16053 include_expsyms_GCJ=
16054 # exclude_expsyms can be an extended regexp of symbols to exclude
16055 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16056 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16057 # as well as any symbol that contains `d'.
16058 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16059 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16060 # platforms (ab)use it in PIC code, but their linkers get confused if
16061 # the symbol is explicitly referenced. Since portable code cannot
16062 # rely on this symbol name, it's probably fine to never include it in
16063 # preloaded symbol tables.
16064 extract_expsyms_cmds=
16065 # Just being paranoid about ensuring that cc_basename is set.
16066 for cc_temp in $compiler""; do
16067 case $cc_temp in
16068 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16069 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16070 \-*) ;;
16071 *) break;;
16072 esac
16073 done
16074 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16075
16076 case $host_os in
16077 cygwin* | mingw* | pw32*)
16078 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16079 # When not using gcc, we currently assume that we are using
16080 # Microsoft Visual C++.
16081 if test "$GCC" != yes; then
16082 with_gnu_ld=no
16083 fi
16084 ;;
16085 interix*)
16086 # we just hope/assume this is gcc and not c89 (= MSVC++)
16087 with_gnu_ld=yes
16088 ;;
16089 openbsd*)
16090 with_gnu_ld=no
16091 ;;
16092 esac
16093
16094 ld_shlibs_GCJ=yes
16095 if test "$with_gnu_ld" = yes; then
16096 # If archive_cmds runs LD, not CC, wlarc should be empty
16097 wlarc='${wl}'
16098
16099 # Set some defaults for GNU ld with shared library support. These
16100 # are reset later if shared libraries are not supported. Putting them
16101 # here allows them to be overridden if necessary.
16102 runpath_var=LD_RUN_PATH
16103 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16104 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16105 # ancient GNU ld didn't support --whole-archive et. al.
16106 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16107 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16108 else
16109 whole_archive_flag_spec_GCJ=
16110 fi
16111 supports_anon_versioning=no
16112 case `$LD -v 2>/dev/null` in
16113 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16114 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16115 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16116 *\ 2.11.*) ;; # other 2.11 versions
16117 *) supports_anon_versioning=yes ;;
16118 esac
16119
16120 # See if GNU ld supports shared libraries.
16121 case $host_os in
16122 aix3* | aix4* | aix5*)
16123 # On AIX/PPC, the GNU linker is very broken
16124 if test "$host_cpu" != ia64; then
16125 ld_shlibs_GCJ=no
16126 cat <<EOF 1>&2
16127
16128 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16129 *** to be unable to reliably create shared libraries on AIX.
16130 *** Therefore, libtool is disabling shared libraries support. If you
16131 *** really care for shared libraries, you may want to modify your PATH
16132 *** so that a non-GNU linker is found, and then restart.
16133
16134 EOF
16135 fi
16136 ;;
16137
16138 amigaos*)
16139 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)'
16140 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16141 hardcode_minus_L_GCJ=yes
16142
16143 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
16144 # that the semantics of dynamic libraries on AmigaOS, at least up
16145 # to version 4, is to share data among multiple programs linked
16146 # with the same dynamic library. Since this doesn't match the
16147 # behavior of shared libraries on other platforms, we can't use
16148 # them.
16149 ld_shlibs_GCJ=no
16150 ;;
16151
16152 beos*)
16153 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16154 allow_undefined_flag_GCJ=unsupported
16155 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
16156 # support --undefined. This deserves some investigation. FIXME
16157 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16158 else
16159 ld_shlibs_GCJ=no
16160 fi
16161 ;;
16162
16163 cygwin* | mingw* | pw32*)
16164 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16165 # as there is no search path for DLLs.
16166 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16167 allow_undefined_flag_GCJ=unsupported
16168 always_export_symbols_GCJ=no
16169 enable_shared_with_static_runtimes_GCJ=yes
16170 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16171
16172 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16173 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16174 # If the export-symbols file already is a .def file (1st line
16175 # is EXPORTS), use it as is; otherwise, prepend...
16176 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16177 cp $export_symbols $output_objdir/$soname.def;
16178 else
16179 echo EXPORTS > $output_objdir/$soname.def;
16180 cat $export_symbols >> $output_objdir/$soname.def;
16181 fi~
16182 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16183 else
16184 ld_shlibs_GCJ=no
16185 fi
16186 ;;
16187
16188 interix3*)
16189 hardcode_direct_GCJ=no
16190 hardcode_shlibpath_var_GCJ=no
16191 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16192 export_dynamic_flag_spec_GCJ='${wl}-E'
16193 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16194 # Instead, shared libraries are loaded at an image base (0x10000000 by
16195 # default) and relocated if they conflict, which is a slow very memory
16196 # consuming and fragmenting process. To avoid this, we pick a random,
16197 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16198 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16199 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'
16200 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'
16201 ;;
16202
16203 linux*)
16204 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16205 tmp_addflag=
16206 case $cc_basename,$host_cpu in
16207 pgcc*) # Portland Group C compiler
16208 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'
16209 tmp_addflag=' $pic_flag'
16210 ;;
16211 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16212 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'
16213 tmp_addflag=' $pic_flag -Mnomain' ;;
16214 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16215 tmp_addflag=' -i_dynamic' ;;
16216 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16217 tmp_addflag=' -i_dynamic -nofor_main' ;;
16218 ifc* | ifort*) # Intel Fortran compiler
16219 tmp_addflag=' -nofor_main' ;;
16220 esac
16221 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16222
16223 if test $supports_anon_versioning = yes; then
16224 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16225 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16226 $echo "local: *; };" >> $output_objdir/$libname.ver~
16227 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16228 fi
16229 else
16230 ld_shlibs_GCJ=no
16231 fi
16232 ;;
16233
16234 netbsd*)
16235 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16236 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16237 wlarc=
16238 else
16239 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16240 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16241 fi
16242 ;;
16243
16244 solaris*)
16245 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16246 ld_shlibs_GCJ=no
16247 cat <<EOF 1>&2
16248
16249 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16250 *** create shared libraries on Solaris systems. Therefore, libtool
16251 *** is disabling shared libraries support. We urge you to upgrade GNU
16252 *** binutils to release 2.9.1 or newer. Another option is to modify
16253 *** your PATH or compiler configuration so that the native linker is
16254 *** used, and then restart.
16255
16256 EOF
16257 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16258 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16259 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16260 else
16261 ld_shlibs_GCJ=no
16262 fi
16263 ;;
16264
16265 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16266 case `$LD -v 2>&1` in
16267 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16268 ld_shlibs_GCJ=no
16269 cat <<_LT_EOF 1>&2
16270
16271 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16272 *** reliably create shared libraries on SCO systems. Therefore, libtool
16273 *** is disabling shared libraries support. We urge you to upgrade GNU
16274 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16275 *** your PATH or compiler configuration so that the native linker is
16276 *** used, and then restart.
16277
16278 _LT_EOF
16279 ;;
16280 *)
16281 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16282 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16283 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16284 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16285 else
16286 ld_shlibs_GCJ=no
16287 fi
16288 ;;
16289 esac
16290 ;;
16291
16292 sunos4*)
16293 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16294 wlarc=
16295 hardcode_direct_GCJ=yes
16296 hardcode_shlibpath_var_GCJ=no
16297 ;;
16298
16299 *)
16300 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16301 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16302 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16303 else
16304 ld_shlibs_GCJ=no
16305 fi
16306 ;;
16307 esac
16308
16309 if test "$ld_shlibs_GCJ" = no; then
16310 runpath_var=
16311 hardcode_libdir_flag_spec_GCJ=
16312 export_dynamic_flag_spec_GCJ=
16313 whole_archive_flag_spec_GCJ=
16314 fi
16315 else
16316 # PORTME fill in a description of your system's linker (not GNU ld)
16317 case $host_os in
16318 aix3*)
16319 allow_undefined_flag_GCJ=unsupported
16320 always_export_symbols_GCJ=yes
16321 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'
16322 # Note: this linker hardcodes the directories in LIBPATH if there
16323 # are no directories specified by -L.
16324 hardcode_minus_L_GCJ=yes
16325 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16326 # Neither direct hardcoding nor static linking is supported with a
16327 # broken collect2.
16328 hardcode_direct_GCJ=unsupported
16329 fi
16330 ;;
16331
16332 aix4* | aix5*)
16333 if test "$host_cpu" = ia64; then
16334 # On IA64, the linker does run time linking by default, so we don't
16335 # have to do anything special.
16336 aix_use_runtimelinking=no
16337 exp_sym_flag='-Bexport'
16338 no_entry_flag=""
16339 else
16340 # If we're using GNU nm, then we don't want the "-C" option.
16341 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16342 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16343 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'
16344 else
16345 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'
16346 fi
16347 aix_use_runtimelinking=no
16348
16349 # Test if we are trying to use run time linking or normal
16350 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16351 # need to do runtime linking.
16352 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16353 for ld_flag in $LDFLAGS; do
16354 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16355 aix_use_runtimelinking=yes
16356 break
16357 fi
16358 done
16359 ;;
16360 esac
16361
16362 exp_sym_flag='-bexport'
16363 no_entry_flag='-bnoentry'
16364 fi
16365
16366 # When large executables or shared objects are built, AIX ld can
16367 # have problems creating the table of contents. If linking a library
16368 # or program results in "error TOC overflow" add -mminimal-toc to
16369 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16370 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16371
16372 archive_cmds_GCJ=''
16373 hardcode_direct_GCJ=yes
16374 hardcode_libdir_separator_GCJ=':'
16375 link_all_deplibs_GCJ=yes
16376
16377 if test "$GCC" = yes; then
16378 case $host_os in aix4.[012]|aix4.[012].*)
16379 # We only want to do this on AIX 4.2 and lower, the check
16380 # below for broken collect2 doesn't work under 4.3+
16381 collect2name=`${CC} -print-prog-name=collect2`
16382 if test -f "$collect2name" && \
16383 strings "$collect2name" | grep resolve_lib_name >/dev/null
16384 then
16385 # We have reworked collect2
16386 hardcode_direct_GCJ=yes
16387 else
16388 # We have old collect2
16389 hardcode_direct_GCJ=unsupported
16390 # It fails to find uninstalled libraries when the uninstalled
16391 # path is not listed in the libpath. Setting hardcode_minus_L
16392 # to unsupported forces relinking
16393 hardcode_minus_L_GCJ=yes
16394 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16395 hardcode_libdir_separator_GCJ=
16396 fi
16397 ;;
16398 esac
16399 shared_flag='-shared'
16400 if test "$aix_use_runtimelinking" = yes; then
16401 shared_flag="$shared_flag "'${wl}-G'
16402 fi
16403 else
16404 # not using gcc
16405 if test "$host_cpu" = ia64; then
16406 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16407 # chokes on -Wl,-G. The following line is correct:
16408 shared_flag='-G'
16409 else
16410 if test "$aix_use_runtimelinking" = yes; then
16411 shared_flag='${wl}-G'
16412 else
16413 shared_flag='${wl}-bM:SRE'
16414 fi
16415 fi
16416 fi
16417
16418 # It seems that -bexpall does not export symbols beginning with
16419 # underscore (_), so it is better to generate a list of symbols to export.
16420 always_export_symbols_GCJ=yes
16421 if test "$aix_use_runtimelinking" = yes; then
16422 # Warning - without using the other runtime loading flags (-brtl),
16423 # -berok will link without error, but may produce a broken library.
16424 allow_undefined_flag_GCJ='-berok'
16425 # Determine the default libpath from the value encoded in an empty executable.
16426 cat >conftest.$ac_ext <<_ACEOF
16427 /* confdefs.h. */
16428 _ACEOF
16429 cat confdefs.h >>conftest.$ac_ext
16430 cat >>conftest.$ac_ext <<_ACEOF
16431 /* end confdefs.h. */
16432
16433 int
16434 main ()
16435 {
16436
16437 ;
16438 return 0;
16439 }
16440 _ACEOF
16441 rm -f conftest.$ac_objext conftest$ac_exeext
16442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16443 (eval $ac_link) 2>conftest.er1
16444 ac_status=$?
16445 grep -v '^ *+' conftest.er1 >conftest.err
16446 rm -f conftest.er1
16447 cat conftest.err >&5
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); } &&
16450 { ac_try='test -z "$ac_c_werror_flag"
16451 || test ! -s conftest.err'
16452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16453 (eval $ac_try) 2>&5
16454 ac_status=$?
16455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); }; } &&
16457 { ac_try='test -s conftest$ac_exeext'
16458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16459 (eval $ac_try) 2>&5
16460 ac_status=$?
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); }; }; then
16463
16464 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16465 }'`
16466 # Check for a 64-bit object if we didn't find anything.
16467 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; }
16468 }'`; fi
16469 else
16470 echo "$as_me: failed program was:" >&5
16471 sed 's/^/| /' conftest.$ac_ext >&5
16472
16473 fi
16474 rm -f conftest.err conftest.$ac_objext \
16475 conftest$ac_exeext conftest.$ac_ext
16476 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16477
16478 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16479 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"
16480 else
16481 if test "$host_cpu" = ia64; then
16482 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16483 allow_undefined_flag_GCJ="-z nodefs"
16484 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"
16485 else
16486 # Determine the default libpath from the value encoded in an empty executable.
16487 cat >conftest.$ac_ext <<_ACEOF
16488 /* confdefs.h. */
16489 _ACEOF
16490 cat confdefs.h >>conftest.$ac_ext
16491 cat >>conftest.$ac_ext <<_ACEOF
16492 /* end confdefs.h. */
16493
16494 int
16495 main ()
16496 {
16497
16498 ;
16499 return 0;
16500 }
16501 _ACEOF
16502 rm -f conftest.$ac_objext conftest$ac_exeext
16503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16504 (eval $ac_link) 2>conftest.er1
16505 ac_status=$?
16506 grep -v '^ *+' conftest.er1 >conftest.err
16507 rm -f conftest.er1
16508 cat conftest.err >&5
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); } &&
16511 { ac_try='test -z "$ac_c_werror_flag"
16512 || test ! -s conftest.err'
16513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16514 (eval $ac_try) 2>&5
16515 ac_status=$?
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); }; } &&
16518 { ac_try='test -s conftest$ac_exeext'
16519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16520 (eval $ac_try) 2>&5
16521 ac_status=$?
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); }; }; then
16524
16525 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16526 }'`
16527 # Check for a 64-bit object if we didn't find anything.
16528 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; }
16529 }'`; fi
16530 else
16531 echo "$as_me: failed program was:" >&5
16532 sed 's/^/| /' conftest.$ac_ext >&5
16533
16534 fi
16535 rm -f conftest.err conftest.$ac_objext \
16536 conftest$ac_exeext conftest.$ac_ext
16537 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16538
16539 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16540 # Warning - without using the other run time loading flags,
16541 # -berok will link without error, but may produce a broken library.
16542 no_undefined_flag_GCJ=' ${wl}-bernotok'
16543 allow_undefined_flag_GCJ=' ${wl}-berok'
16544 # Exported symbols can be pulled into shared objects from archives
16545 whole_archive_flag_spec_GCJ='$convenience'
16546 archive_cmds_need_lc_GCJ=yes
16547 # This is similar to how AIX traditionally builds its shared libraries.
16548 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'
16549 fi
16550 fi
16551 ;;
16552
16553 amigaos*)
16554 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)'
16555 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16556 hardcode_minus_L_GCJ=yes
16557 # see comment about different semantics on the GNU ld section
16558 ld_shlibs_GCJ=no
16559 ;;
16560
16561 bsdi[45]*)
16562 export_dynamic_flag_spec_GCJ=-rdynamic
16563 ;;
16564
16565 cygwin* | mingw* | pw32*)
16566 # When not using gcc, we currently assume that we are using
16567 # Microsoft Visual C++.
16568 # hardcode_libdir_flag_spec is actually meaningless, as there is
16569 # no search path for DLLs.
16570 hardcode_libdir_flag_spec_GCJ=' '
16571 allow_undefined_flag_GCJ=unsupported
16572 # Tell ltmain to make .lib files, not .a files.
16573 libext=lib
16574 # Tell ltmain to make .dll files, not .so files.
16575 shrext_cmds=".dll"
16576 # FIXME: Setting linknames here is a bad hack.
16577 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16578 # The linker will automatically build a .lib file if we build a DLL.
16579 old_archive_From_new_cmds_GCJ='true'
16580 # FIXME: Should let the user specify the lib program.
16581 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16582 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16583 enable_shared_with_static_runtimes_GCJ=yes
16584 ;;
16585
16586 darwin* | rhapsody*)
16587 case $host_os in
16588 rhapsody* | darwin1.[012])
16589 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16590 ;;
16591 *) # Darwin 1.3 on
16592 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16593 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16594 else
16595 case ${MACOSX_DEPLOYMENT_TARGET} in
16596 10.[012])
16597 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16598 ;;
16599 10.*)
16600 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16601 ;;
16602 esac
16603 fi
16604 ;;
16605 esac
16606 archive_cmds_need_lc_GCJ=no
16607 hardcode_direct_GCJ=no
16608 hardcode_automatic_GCJ=yes
16609 hardcode_shlibpath_var_GCJ=unsupported
16610 whole_archive_flag_spec_GCJ=''
16611 link_all_deplibs_GCJ=yes
16612 if test "$GCC" = yes ; then
16613 output_verbose_link_cmd='echo'
16614 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16615 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16616 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16617 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}'
16618 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}'
16619 else
16620 case $cc_basename in
16621 xlc*)
16622 output_verbose_link_cmd='echo'
16623 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16624 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16625 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16626 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}'
16627 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}'
16628 ;;
16629 *)
16630 ld_shlibs_GCJ=no
16631 ;;
16632 esac
16633 fi
16634 ;;
16635
16636 dgux*)
16637 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16638 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16639 hardcode_shlibpath_var_GCJ=no
16640 ;;
16641
16642 freebsd1*)
16643 ld_shlibs_GCJ=no
16644 ;;
16645
16646 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16647 # support. Future versions do this automatically, but an explicit c++rt0.o
16648 # does not break anything, and helps significantly (at the cost of a little
16649 # extra space).
16650 freebsd2.2*)
16651 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16652 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16653 hardcode_direct_GCJ=yes
16654 hardcode_shlibpath_var_GCJ=no
16655 ;;
16656
16657 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16658 freebsd2*)
16659 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16660 hardcode_direct_GCJ=yes
16661 hardcode_minus_L_GCJ=yes
16662 hardcode_shlibpath_var_GCJ=no
16663 ;;
16664
16665 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16666 freebsd* | kfreebsd*-gnu | dragonfly*)
16667 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16668 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16669 hardcode_direct_GCJ=yes
16670 hardcode_shlibpath_var_GCJ=no
16671 ;;
16672
16673 hpux9*)
16674 if test "$GCC" = yes; then
16675 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'
16676 else
16677 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'
16678 fi
16679 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16680 hardcode_libdir_separator_GCJ=:
16681 hardcode_direct_GCJ=yes
16682
16683 # hardcode_minus_L: Not really in the search PATH,
16684 # but as the default location of the library.
16685 hardcode_minus_L_GCJ=yes
16686 export_dynamic_flag_spec_GCJ='${wl}-E'
16687 ;;
16688
16689 hpux10*)
16690 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16691 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16692 else
16693 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16694 fi
16695 if test "$with_gnu_ld" = no; then
16696 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16697 hardcode_libdir_separator_GCJ=:
16698
16699 hardcode_direct_GCJ=yes
16700 export_dynamic_flag_spec_GCJ='${wl}-E'
16701
16702 # hardcode_minus_L: Not really in the search PATH,
16703 # but as the default location of the library.
16704 hardcode_minus_L_GCJ=yes
16705 fi
16706 ;;
16707
16708 hpux11*)
16709 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16710 case $host_cpu in
16711 hppa*64*)
16712 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16713 ;;
16714 ia64*)
16715 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16716 ;;
16717 *)
16718 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16719 ;;
16720 esac
16721 else
16722 case $host_cpu in
16723 hppa*64*)
16724 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16725 ;;
16726 ia64*)
16727 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16728 ;;
16729 *)
16730 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16731 ;;
16732 esac
16733 fi
16734 if test "$with_gnu_ld" = no; then
16735 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16736 hardcode_libdir_separator_GCJ=:
16737
16738 case $host_cpu in
16739 hppa*64*|ia64*)
16740 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16741 hardcode_direct_GCJ=no
16742 hardcode_shlibpath_var_GCJ=no
16743 ;;
16744 *)
16745 hardcode_direct_GCJ=yes
16746 export_dynamic_flag_spec_GCJ='${wl}-E'
16747
16748 # hardcode_minus_L: Not really in the search PATH,
16749 # but as the default location of the library.
16750 hardcode_minus_L_GCJ=yes
16751 ;;
16752 esac
16753 fi
16754 ;;
16755
16756 irix5* | irix6* | nonstopux*)
16757 if test "$GCC" = yes; then
16758 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'
16759 else
16760 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'
16761 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16762 fi
16763 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16764 hardcode_libdir_separator_GCJ=:
16765 link_all_deplibs_GCJ=yes
16766 ;;
16767
16768 netbsd*)
16769 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16770 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16771 else
16772 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16773 fi
16774 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16775 hardcode_direct_GCJ=yes
16776 hardcode_shlibpath_var_GCJ=no
16777 ;;
16778
16779 newsos6)
16780 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16781 hardcode_direct_GCJ=yes
16782 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16783 hardcode_libdir_separator_GCJ=:
16784 hardcode_shlibpath_var_GCJ=no
16785 ;;
16786
16787 openbsd*)
16788 hardcode_direct_GCJ=yes
16789 hardcode_shlibpath_var_GCJ=no
16790 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16791 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16792 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16793 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16794 export_dynamic_flag_spec_GCJ='${wl}-E'
16795 else
16796 case $host_os in
16797 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16798 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16799 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16800 ;;
16801 *)
16802 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16803 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16804 ;;
16805 esac
16806 fi
16807 ;;
16808
16809 os2*)
16810 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16811 hardcode_minus_L_GCJ=yes
16812 allow_undefined_flag_GCJ=unsupported
16813 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'
16814 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16815 ;;
16816
16817 osf3*)
16818 if test "$GCC" = yes; then
16819 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16820 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'
16821 else
16822 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16823 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'
16824 fi
16825 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16826 hardcode_libdir_separator_GCJ=:
16827 ;;
16828
16829 osf4* | osf5*) # as osf3* with the addition of -msym flag
16830 if test "$GCC" = yes; then
16831 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16832 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'
16833 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16834 else
16835 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16836 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'
16837 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~
16838 $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'
16839
16840 # Both c and cxx compiler support -rpath directly
16841 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16842 fi
16843 hardcode_libdir_separator_GCJ=:
16844 ;;
16845
16846 solaris*)
16847 no_undefined_flag_GCJ=' -z text'
16848 if test "$GCC" = yes; then
16849 wlarc='${wl}'
16850 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16851 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16852 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16853 else
16854 wlarc=''
16855 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16856 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16857 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16858 fi
16859 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16860 hardcode_shlibpath_var_GCJ=no
16861 case $host_os in
16862 solaris2.[0-5] | solaris2.[0-5].*) ;;
16863 *)
16864 # The compiler driver will combine linker options so we
16865 # cannot just pass the convience library names through
16866 # without $wl, iff we do not link with $LD.
16867 # Luckily, gcc supports the same syntax we need for Sun Studio.
16868 # Supported since Solaris 2.6 (maybe 2.5.1?)
16869 case $wlarc in
16870 '')
16871 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16872 *)
16873 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' ;;
16874 esac ;;
16875 esac
16876 link_all_deplibs_GCJ=yes
16877 ;;
16878
16879 sunos4*)
16880 if test "x$host_vendor" = xsequent; then
16881 # Use $CC to link under sequent, because it throws in some extra .o
16882 # files that make .init and .fini sections work.
16883 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16884 else
16885 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16886 fi
16887 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16888 hardcode_direct_GCJ=yes
16889 hardcode_minus_L_GCJ=yes
16890 hardcode_shlibpath_var_GCJ=no
16891 ;;
16892
16893 sysv4)
16894 case $host_vendor in
16895 sni)
16896 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16897 hardcode_direct_GCJ=yes # is this really true???
16898 ;;
16899 siemens)
16900 ## LD is ld it makes a PLAMLIB
16901 ## CC just makes a GrossModule.
16902 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16903 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16904 hardcode_direct_GCJ=no
16905 ;;
16906 motorola)
16907 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16908 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16909 ;;
16910 esac
16911 runpath_var='LD_RUN_PATH'
16912 hardcode_shlibpath_var_GCJ=no
16913 ;;
16914
16915 sysv4.3*)
16916 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16917 hardcode_shlibpath_var_GCJ=no
16918 export_dynamic_flag_spec_GCJ='-Bexport'
16919 ;;
16920
16921 sysv4*MP*)
16922 if test -d /usr/nec; then
16923 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16924 hardcode_shlibpath_var_GCJ=no
16925 runpath_var=LD_RUN_PATH
16926 hardcode_runpath_var=yes
16927 ld_shlibs_GCJ=yes
16928 fi
16929 ;;
16930
16931 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16932 no_undefined_flag_GCJ='${wl}-z,text'
16933 archive_cmds_need_lc_GCJ=no
16934 hardcode_shlibpath_var_GCJ=no
16935 runpath_var='LD_RUN_PATH'
16936
16937 if test "$GCC" = yes; then
16938 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16939 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16940 else
16941 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16942 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16943 fi
16944 ;;
16945
16946 sysv5* | sco3.2v5* | sco5v6*)
16947 # Note: We can NOT use -z defs as we might desire, because we do not
16948 # link with -lc, and that would cause any symbols used from libc to
16949 # always be unresolved, which means just about no library would
16950 # ever link correctly. If we're not using GNU ld we use -z text
16951 # though, which does catch some bad symbols but isn't as heavy-handed
16952 # as -z defs.
16953 no_undefined_flag_GCJ='${wl}-z,text'
16954 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16955 archive_cmds_need_lc_GCJ=no
16956 hardcode_shlibpath_var_GCJ=no
16957 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16958 hardcode_libdir_separator_GCJ=':'
16959 link_all_deplibs_GCJ=yes
16960 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16961 runpath_var='LD_RUN_PATH'
16962
16963 if test "$GCC" = yes; then
16964 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16965 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16966 else
16967 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16968 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16969 fi
16970 ;;
16971
16972 uts4*)
16973 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16974 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16975 hardcode_shlibpath_var_GCJ=no
16976 ;;
16977
16978 *)
16979 ld_shlibs_GCJ=no
16980 ;;
16981 esac
16982 fi
16983
16984 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16985 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16986 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16987
16988 #
16989 # Do we need to explicitly link libc?
16990 #
16991 case "x$archive_cmds_need_lc_GCJ" in
16992 x|xyes)
16993 # Assume -lc should be added
16994 archive_cmds_need_lc_GCJ=yes
16995
16996 if test "$enable_shared" = yes && test "$GCC" = yes; then
16997 case $archive_cmds_GCJ in
16998 *'~'*)
16999 # FIXME: we may have to deal with multi-command sequences.
17000 ;;
17001 '$CC '*)
17002 # Test whether the compiler implicitly links with -lc since on some
17003 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17004 # to ld, don't add -lc before -lgcc.
17005 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17006 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17007 $rm conftest*
17008 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17009
17010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17011 (eval $ac_compile) 2>&5
17012 ac_status=$?
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); } 2>conftest.err; then
17015 soname=conftest
17016 lib=conftest
17017 libobjs=conftest.$ac_objext
17018 deplibs=
17019 wl=$lt_prog_compiler_wl_GCJ
17020 pic_flag=$lt_prog_compiler_pic_GCJ
17021 compiler_flags=-v
17022 linker_flags=-v
17023 verstring=
17024 output_objdir=.
17025 libname=conftest
17026 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17027 allow_undefined_flag_GCJ=
17028 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17029 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17030 ac_status=$?
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }
17033 then
17034 archive_cmds_need_lc_GCJ=no
17035 else
17036 archive_cmds_need_lc_GCJ=yes
17037 fi
17038 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17039 else
17040 cat conftest.err 1>&5
17041 fi
17042 $rm conftest*
17043 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17044 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17045 ;;
17046 esac
17047 fi
17048 ;;
17049 esac
17050
17051 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17052 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17053 library_names_spec=
17054 libname_spec='lib$name'
17055 soname_spec=
17056 shrext_cmds=".so"
17057 postinstall_cmds=
17058 postuninstall_cmds=
17059 finish_cmds=
17060 finish_eval=
17061 shlibpath_var=
17062 shlibpath_overrides_runpath=unknown
17063 version_type=none
17064 dynamic_linker="$host_os ld.so"
17065 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17066 if test "$GCC" = yes; then
17067 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17068 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17069 # if the path contains ";" then we assume it to be the separator
17070 # otherwise default to the standard path separator (i.e. ":") - it is
17071 # assumed that no part of a normal pathname contains ";" but that should
17072 # okay in the real world where ";" in dirpaths is itself problematic.
17073 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17074 else
17075 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17076 fi
17077 else
17078 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17079 fi
17080 need_lib_prefix=unknown
17081 hardcode_into_libs=no
17082
17083 # when you set need_version to no, make sure it does not cause -set_version
17084 # flags to be left without arguments
17085 need_version=unknown
17086
17087 case $host_os in
17088 aix3*)
17089 version_type=linux
17090 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17091 shlibpath_var=LIBPATH
17092
17093 # AIX 3 has no versioning support, so we append a major version to the name.
17094 soname_spec='${libname}${release}${shared_ext}$major'
17095 ;;
17096
17097 aix4* | aix5*)
17098 version_type=linux
17099 need_lib_prefix=no
17100 need_version=no
17101 hardcode_into_libs=yes
17102 if test "$host_cpu" = ia64; then
17103 # AIX 5 supports IA64
17104 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17105 shlibpath_var=LD_LIBRARY_PATH
17106 else
17107 # With GCC up to 2.95.x, collect2 would create an import file
17108 # for dependence libraries. The import file would start with
17109 # the line `#! .'. This would cause the generated library to
17110 # depend on `.', always an invalid library. This was fixed in
17111 # development snapshots of GCC prior to 3.0.
17112 case $host_os in
17113 aix4 | aix4.[01] | aix4.[01].*)
17114 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17115 echo ' yes '
17116 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17117 :
17118 else
17119 can_build_shared=no
17120 fi
17121 ;;
17122 esac
17123 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17124 # soname into executable. Probably we can add versioning support to
17125 # collect2, so additional links can be useful in future.
17126 if test "$aix_use_runtimelinking" = yes; then
17127 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17128 # instead of lib<name>.a to let people know that these are not
17129 # typical AIX shared libraries.
17130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17131 else
17132 # We preserve .a as extension for shared libraries through AIX4.2
17133 # and later when we are not doing run time linking.
17134 library_names_spec='${libname}${release}.a $libname.a'
17135 soname_spec='${libname}${release}${shared_ext}$major'
17136 fi
17137 shlibpath_var=LIBPATH
17138 fi
17139 ;;
17140
17141 amigaos*)
17142 library_names_spec='$libname.ixlibrary $libname.a'
17143 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17144 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'
17145 ;;
17146
17147 beos*)
17148 library_names_spec='${libname}${shared_ext}'
17149 dynamic_linker="$host_os ld.so"
17150 shlibpath_var=LIBRARY_PATH
17151 ;;
17152
17153 bsdi[45]*)
17154 version_type=linux
17155 need_version=no
17156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17157 soname_spec='${libname}${release}${shared_ext}$major'
17158 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17159 shlibpath_var=LD_LIBRARY_PATH
17160 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17161 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17162 # the default ld.so.conf also contains /usr/contrib/lib and
17163 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17164 # libtool to hard-code these into programs
17165 ;;
17166
17167 cygwin* | mingw* | pw32*)
17168 version_type=windows
17169 shrext_cmds=".dll"
17170 need_version=no
17171 need_lib_prefix=no
17172
17173 case $GCC,$host_os in
17174 yes,cygwin* | yes,mingw* | yes,pw32*)
17175 library_names_spec='$libname.dll.a'
17176 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17177 postinstall_cmds='base_file=`basename \${file}`~
17178 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17179 dldir=$destdir/`dirname \$dlpath`~
17180 test -d \$dldir || mkdir -p \$dldir~
17181 $install_prog $dir/$dlname \$dldir/$dlname~
17182 chmod a+x \$dldir/$dlname'
17183 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17184 dlpath=$dir/\$dldll~
17185 $rm \$dlpath'
17186 shlibpath_overrides_runpath=yes
17187
17188 case $host_os in
17189 cygwin*)
17190 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17191 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17192 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17193 ;;
17194 mingw*)
17195 # MinGW DLLs use traditional 'lib' prefix
17196 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17197 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17198 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17199 # It is most probably a Windows format PATH printed by
17200 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17201 # path with ; separators, and with drive letters. We can handle the
17202 # drive letters (cygwin fileutils understands them), so leave them,
17203 # especially as we might pass files found there to a mingw objdump,
17204 # which wouldn't understand a cygwinified path. Ahh.
17205 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17206 else
17207 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17208 fi
17209 ;;
17210 pw32*)
17211 # pw32 DLLs use 'pw' prefix rather than 'lib'
17212 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17213 ;;
17214 esac
17215 ;;
17216
17217 *)
17218 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17219 ;;
17220 esac
17221 dynamic_linker='Win32 ld.exe'
17222 # FIXME: first we should search . and the directory the executable is in
17223 shlibpath_var=PATH
17224 ;;
17225
17226 darwin* | rhapsody*)
17227 dynamic_linker="$host_os dyld"
17228 version_type=darwin
17229 need_lib_prefix=no
17230 need_version=no
17231 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17232 soname_spec='${libname}${release}${major}$shared_ext'
17233 shlibpath_overrides_runpath=yes
17234 shlibpath_var=DYLD_LIBRARY_PATH
17235 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17236 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17237 if test "$GCC" = yes; then
17238 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"`
17239 else
17240 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17241 fi
17242 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17243 ;;
17244
17245 dgux*)
17246 version_type=linux
17247 need_lib_prefix=no
17248 need_version=no
17249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17250 soname_spec='${libname}${release}${shared_ext}$major'
17251 shlibpath_var=LD_LIBRARY_PATH
17252 ;;
17253
17254 freebsd1*)
17255 dynamic_linker=no
17256 ;;
17257
17258 kfreebsd*-gnu)
17259 version_type=linux
17260 need_lib_prefix=no
17261 need_version=no
17262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17263 soname_spec='${libname}${release}${shared_ext}$major'
17264 shlibpath_var=LD_LIBRARY_PATH
17265 shlibpath_overrides_runpath=no
17266 hardcode_into_libs=yes
17267 dynamic_linker='GNU ld.so'
17268 ;;
17269
17270 freebsd* | dragonfly*)
17271 # DragonFly does not have aout. When/if they implement a new
17272 # versioning mechanism, adjust this.
17273 if test -x /usr/bin/objformat; then
17274 objformat=`/usr/bin/objformat`
17275 else
17276 case $host_os in
17277 freebsd[123]*) objformat=aout ;;
17278 *) objformat=elf ;;
17279 esac
17280 fi
17281 version_type=freebsd-$objformat
17282 case $version_type in
17283 freebsd-elf*)
17284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17285 need_version=no
17286 need_lib_prefix=no
17287 ;;
17288 freebsd-*)
17289 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17290 need_version=yes
17291 ;;
17292 esac
17293 shlibpath_var=LD_LIBRARY_PATH
17294 case $host_os in
17295 freebsd2*)
17296 shlibpath_overrides_runpath=yes
17297 ;;
17298 freebsd3.[01]* | freebsdelf3.[01]*)
17299 shlibpath_overrides_runpath=yes
17300 hardcode_into_libs=yes
17301 ;;
17302 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17303 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17304 shlibpath_overrides_runpath=no
17305 hardcode_into_libs=yes
17306 ;;
17307 freebsd*) # from 4.6 on
17308 shlibpath_overrides_runpath=yes
17309 hardcode_into_libs=yes
17310 ;;
17311 esac
17312 ;;
17313
17314 gnu*)
17315 version_type=linux
17316 need_lib_prefix=no
17317 need_version=no
17318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17319 soname_spec='${libname}${release}${shared_ext}$major'
17320 shlibpath_var=LD_LIBRARY_PATH
17321 hardcode_into_libs=yes
17322 ;;
17323
17324 hpux9* | hpux10* | hpux11*)
17325 # Give a soname corresponding to the major version so that dld.sl refuses to
17326 # link against other versions.
17327 version_type=sunos
17328 need_lib_prefix=no
17329 need_version=no
17330 case $host_cpu in
17331 ia64*)
17332 shrext_cmds='.so'
17333 hardcode_into_libs=yes
17334 dynamic_linker="$host_os dld.so"
17335 shlibpath_var=LD_LIBRARY_PATH
17336 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17338 soname_spec='${libname}${release}${shared_ext}$major'
17339 if test "X$HPUX_IA64_MODE" = X32; then
17340 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17341 else
17342 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17343 fi
17344 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17345 ;;
17346 hppa*64*)
17347 shrext_cmds='.sl'
17348 hardcode_into_libs=yes
17349 dynamic_linker="$host_os dld.sl"
17350 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17351 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17353 soname_spec='${libname}${release}${shared_ext}$major'
17354 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17355 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17356 ;;
17357 *)
17358 shrext_cmds='.sl'
17359 dynamic_linker="$host_os dld.sl"
17360 shlibpath_var=SHLIB_PATH
17361 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17363 soname_spec='${libname}${release}${shared_ext}$major'
17364 ;;
17365 esac
17366 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17367 postinstall_cmds='chmod 555 $lib'
17368 ;;
17369
17370 interix3*)
17371 version_type=linux
17372 need_lib_prefix=no
17373 need_version=no
17374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17375 soname_spec='${libname}${release}${shared_ext}$major'
17376 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17377 shlibpath_var=LD_LIBRARY_PATH
17378 shlibpath_overrides_runpath=no
17379 hardcode_into_libs=yes
17380 ;;
17381
17382 irix5* | irix6* | nonstopux*)
17383 case $host_os in
17384 nonstopux*) version_type=nonstopux ;;
17385 *)
17386 if test "$lt_cv_prog_gnu_ld" = yes; then
17387 version_type=linux
17388 else
17389 version_type=irix
17390 fi ;;
17391 esac
17392 need_lib_prefix=no
17393 need_version=no
17394 soname_spec='${libname}${release}${shared_ext}$major'
17395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17396 case $host_os in
17397 irix5* | nonstopux*)
17398 libsuff= shlibsuff=
17399 ;;
17400 *)
17401 case $LD in # libtool.m4 will add one of these switches to LD
17402 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17403 libsuff= shlibsuff= libmagic=32-bit;;
17404 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17405 libsuff=32 shlibsuff=N32 libmagic=N32;;
17406 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17407 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17408 *) libsuff= shlibsuff= libmagic=never-match;;
17409 esac
17410 ;;
17411 esac
17412 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17413 shlibpath_overrides_runpath=no
17414 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17415 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17416 hardcode_into_libs=yes
17417 ;;
17418
17419 # No shared lib support for Linux oldld, aout, or coff.
17420 linux*oldld* | linux*aout* | linux*coff*)
17421 dynamic_linker=no
17422 ;;
17423
17424 # This must be Linux ELF.
17425 linux*)
17426 version_type=linux
17427 need_lib_prefix=no
17428 need_version=no
17429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17430 soname_spec='${libname}${release}${shared_ext}$major'
17431 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17432 shlibpath_var=LD_LIBRARY_PATH
17433 shlibpath_overrides_runpath=no
17434 # This implies no fast_install, which is unacceptable.
17435 # Some rework will be needed to allow for fast_install
17436 # before this can be enabled.
17437 hardcode_into_libs=yes
17438
17439 # find out which ABI we are using
17440 libsuff=
17441 case "$host_cpu" in
17442 x86_64*|s390x*|powerpc64*)
17443 echo '#line 17443 "configure"' > conftest.$ac_ext
17444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17445 (eval $ac_compile) 2>&5
17446 ac_status=$?
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); }; then
17449 case `/usr/bin/file conftest.$ac_objext` in
17450 *64-bit*)
17451 libsuff=64
17452 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17453 ;;
17454 esac
17455 fi
17456 rm -rf conftest*
17457 ;;
17458 esac
17459
17460 # Append ld.so.conf contents to the search path
17461 if test -f /etc/ld.so.conf; then
17462 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' ' '`
17463 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17464 fi
17465
17466 # We used to test for /lib/ld.so.1 and disable shared libraries on
17467 # powerpc, because MkLinux only supported shared libraries with the
17468 # GNU dynamic linker. Since this was broken with cross compilers,
17469 # most powerpc-linux boxes support dynamic linking these days and
17470 # people can always --disable-shared, the test was removed, and we
17471 # assume the GNU/Linux dynamic linker is in use.
17472 dynamic_linker='GNU/Linux ld.so'
17473 ;;
17474
17475 knetbsd*-gnu)
17476 version_type=linux
17477 need_lib_prefix=no
17478 need_version=no
17479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17480 soname_spec='${libname}${release}${shared_ext}$major'
17481 shlibpath_var=LD_LIBRARY_PATH
17482 shlibpath_overrides_runpath=no
17483 hardcode_into_libs=yes
17484 dynamic_linker='GNU ld.so'
17485 ;;
17486
17487 netbsd*)
17488 version_type=sunos
17489 need_lib_prefix=no
17490 need_version=no
17491 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17494 dynamic_linker='NetBSD (a.out) ld.so'
17495 else
17496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17497 soname_spec='${libname}${release}${shared_ext}$major'
17498 dynamic_linker='NetBSD ld.elf_so'
17499 fi
17500 shlibpath_var=LD_LIBRARY_PATH
17501 shlibpath_overrides_runpath=yes
17502 hardcode_into_libs=yes
17503 ;;
17504
17505 newsos6)
17506 version_type=linux
17507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17508 shlibpath_var=LD_LIBRARY_PATH
17509 shlibpath_overrides_runpath=yes
17510 ;;
17511
17512 nto-qnx*)
17513 version_type=linux
17514 need_lib_prefix=no
17515 need_version=no
17516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17517 soname_spec='${libname}${release}${shared_ext}$major'
17518 shlibpath_var=LD_LIBRARY_PATH
17519 shlibpath_overrides_runpath=yes
17520 ;;
17521
17522 openbsd*)
17523 version_type=sunos
17524 sys_lib_dlsearch_path_spec="/usr/lib"
17525 need_lib_prefix=no
17526 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17527 case $host_os in
17528 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17529 *) need_version=no ;;
17530 esac
17531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17533 shlibpath_var=LD_LIBRARY_PATH
17534 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17535 case $host_os in
17536 openbsd2.[89] | openbsd2.[89].*)
17537 shlibpath_overrides_runpath=no
17538 ;;
17539 *)
17540 shlibpath_overrides_runpath=yes
17541 ;;
17542 esac
17543 else
17544 shlibpath_overrides_runpath=yes
17545 fi
17546 ;;
17547
17548 os2*)
17549 libname_spec='$name'
17550 shrext_cmds=".dll"
17551 need_lib_prefix=no
17552 library_names_spec='$libname${shared_ext} $libname.a'
17553 dynamic_linker='OS/2 ld.exe'
17554 shlibpath_var=LIBPATH
17555 ;;
17556
17557 osf3* | osf4* | osf5*)
17558 version_type=osf
17559 need_lib_prefix=no
17560 need_version=no
17561 soname_spec='${libname}${release}${shared_ext}$major'
17562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17563 shlibpath_var=LD_LIBRARY_PATH
17564 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17565 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17566 ;;
17567
17568 solaris*)
17569 version_type=linux
17570 need_lib_prefix=no
17571 need_version=no
17572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17573 soname_spec='${libname}${release}${shared_ext}$major'
17574 shlibpath_var=LD_LIBRARY_PATH
17575 shlibpath_overrides_runpath=yes
17576 hardcode_into_libs=yes
17577 # ldd complains unless libraries are executable
17578 postinstall_cmds='chmod +x $lib'
17579 ;;
17580
17581 sunos4*)
17582 version_type=sunos
17583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17584 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17585 shlibpath_var=LD_LIBRARY_PATH
17586 shlibpath_overrides_runpath=yes
17587 if test "$with_gnu_ld" = yes; then
17588 need_lib_prefix=no
17589 fi
17590 need_version=yes
17591 ;;
17592
17593 sysv4 | sysv4.3*)
17594 version_type=linux
17595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17596 soname_spec='${libname}${release}${shared_ext}$major'
17597 shlibpath_var=LD_LIBRARY_PATH
17598 case $host_vendor in
17599 sni)
17600 shlibpath_overrides_runpath=no
17601 need_lib_prefix=no
17602 export_dynamic_flag_spec='${wl}-Blargedynsym'
17603 runpath_var=LD_RUN_PATH
17604 ;;
17605 siemens)
17606 need_lib_prefix=no
17607 ;;
17608 motorola)
17609 need_lib_prefix=no
17610 need_version=no
17611 shlibpath_overrides_runpath=no
17612 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17613 ;;
17614 esac
17615 ;;
17616
17617 sysv4*MP*)
17618 if test -d /usr/nec ;then
17619 version_type=linux
17620 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17621 soname_spec='$libname${shared_ext}.$major'
17622 shlibpath_var=LD_LIBRARY_PATH
17623 fi
17624 ;;
17625
17626 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17627 version_type=freebsd-elf
17628 need_lib_prefix=no
17629 need_version=no
17630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17631 soname_spec='${libname}${release}${shared_ext}$major'
17632 shlibpath_var=LD_LIBRARY_PATH
17633 hardcode_into_libs=yes
17634 if test "$with_gnu_ld" = yes; then
17635 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17636 shlibpath_overrides_runpath=no
17637 else
17638 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17639 shlibpath_overrides_runpath=yes
17640 case $host_os in
17641 sco3.2v5*)
17642 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17643 ;;
17644 esac
17645 fi
17646 sys_lib_dlsearch_path_spec='/usr/lib'
17647 ;;
17648
17649 uts4*)
17650 version_type=linux
17651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17652 soname_spec='${libname}${release}${shared_ext}$major'
17653 shlibpath_var=LD_LIBRARY_PATH
17654 ;;
17655
17656 *)
17657 dynamic_linker=no
17658 ;;
17659 esac
17660 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17661 echo "${ECHO_T}$dynamic_linker" >&6
17662 test "$dynamic_linker" = no && can_build_shared=no
17663
17664 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17665 if test "$GCC" = yes; then
17666 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17667 fi
17668
17669 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17670 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17671 hardcode_action_GCJ=
17672 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17673 test -n "$runpath_var_GCJ" || \
17674 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17675
17676 # We can hardcode non-existant directories.
17677 if test "$hardcode_direct_GCJ" != no &&
17678 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17679 # have to relink, otherwise we might link with an installed library
17680 # when we should be linking with a yet-to-be-installed one
17681 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17682 test "$hardcode_minus_L_GCJ" != no; then
17683 # Linking always hardcodes the temporary library directory.
17684 hardcode_action_GCJ=relink
17685 else
17686 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17687 hardcode_action_GCJ=immediate
17688 fi
17689 else
17690 # We cannot hardcode anything, or else we can only hardcode existing
17691 # directories.
17692 hardcode_action_GCJ=unsupported
17693 fi
17694 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17695 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17696
17697 if test "$hardcode_action_GCJ" = relink; then
17698 # Fast installation is not supported
17699 enable_fast_install=no
17700 elif test "$shlibpath_overrides_runpath" = yes ||
17701 test "$enable_shared" = no; then
17702 # Fast installation is not necessary
17703 enable_fast_install=needless
17704 fi
17705
17706
17707 # The else clause should only fire when bootstrapping the
17708 # libtool distribution, otherwise you forgot to ship ltmain.sh
17709 # with your package, and you will get complaints that there are
17710 # no rules to generate ltmain.sh.
17711 if test -f "$ltmain"; then
17712 # See if we are running on zsh, and set the options which allow our commands through
17713 # without removal of \ escapes.
17714 if test -n "${ZSH_VERSION+set}" ; then
17715 setopt NO_GLOB_SUBST
17716 fi
17717 # Now quote all the things that may contain metacharacters while being
17718 # careful not to overquote the AC_SUBSTed values. We take copies of the
17719 # variables and quote the copies for generation of the libtool script.
17720 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17721 SED SHELL STRIP \
17722 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17723 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17724 deplibs_check_method reload_flag reload_cmds need_locks \
17725 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17726 lt_cv_sys_global_symbol_to_c_name_address \
17727 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17728 old_postinstall_cmds old_postuninstall_cmds \
17729 compiler_GCJ \
17730 CC_GCJ \
17731 LD_GCJ \
17732 lt_prog_compiler_wl_GCJ \
17733 lt_prog_compiler_pic_GCJ \
17734 lt_prog_compiler_static_GCJ \
17735 lt_prog_compiler_no_builtin_flag_GCJ \
17736 export_dynamic_flag_spec_GCJ \
17737 thread_safe_flag_spec_GCJ \
17738 whole_archive_flag_spec_GCJ \
17739 enable_shared_with_static_runtimes_GCJ \
17740 old_archive_cmds_GCJ \
17741 old_archive_from_new_cmds_GCJ \
17742 predep_objects_GCJ \
17743 postdep_objects_GCJ \
17744 predeps_GCJ \
17745 postdeps_GCJ \
17746 compiler_lib_search_path_GCJ \
17747 archive_cmds_GCJ \
17748 archive_expsym_cmds_GCJ \
17749 postinstall_cmds_GCJ \
17750 postuninstall_cmds_GCJ \
17751 old_archive_from_expsyms_cmds_GCJ \
17752 allow_undefined_flag_GCJ \
17753 no_undefined_flag_GCJ \
17754 export_symbols_cmds_GCJ \
17755 hardcode_libdir_flag_spec_GCJ \
17756 hardcode_libdir_flag_spec_ld_GCJ \
17757 hardcode_libdir_separator_GCJ \
17758 hardcode_automatic_GCJ \
17759 module_cmds_GCJ \
17760 module_expsym_cmds_GCJ \
17761 lt_cv_prog_compiler_c_o_GCJ \
17762 exclude_expsyms_GCJ \
17763 include_expsyms_GCJ; do
17764
17765 case $var in
17766 old_archive_cmds_GCJ | \
17767 old_archive_from_new_cmds_GCJ | \
17768 archive_cmds_GCJ | \
17769 archive_expsym_cmds_GCJ | \
17770 module_cmds_GCJ | \
17771 module_expsym_cmds_GCJ | \
17772 old_archive_from_expsyms_cmds_GCJ | \
17773 export_symbols_cmds_GCJ | \
17774 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17775 postinstall_cmds | postuninstall_cmds | \
17776 old_postinstall_cmds | old_postuninstall_cmds | \
17777 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17778 # Double-quote double-evaled strings.
17779 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17780 ;;
17781 *)
17782 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17783 ;;
17784 esac
17785 done
17786
17787 case $lt_echo in
17788 *'\$0 --fallback-echo"')
17789 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17790 ;;
17791 esac
17792
17793 cfgfile="$ofile"
17794
17795 cat <<__EOF__ >> "$cfgfile"
17796 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17797
17798 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17799
17800 # Shell to use when invoking shell scripts.
17801 SHELL=$lt_SHELL
17802
17803 # Whether or not to build shared libraries.
17804 build_libtool_libs=$enable_shared
17805
17806 # Whether or not to build static libraries.
17807 build_old_libs=$enable_static
17808
17809 # Whether or not to add -lc for building shared libraries.
17810 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17811
17812 # Whether or not to disallow shared libs when runtime libs are static
17813 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17814
17815 # Whether or not to optimize for fast installation.
17816 fast_install=$enable_fast_install
17817
17818 # The host system.
17819 host_alias=$host_alias
17820 host=$host
17821 host_os=$host_os
17822
17823 # The build system.
17824 build_alias=$build_alias
17825 build=$build
17826 build_os=$build_os
17827
17828 # An echo program that does not interpret backslashes.
17829 echo=$lt_echo
17830
17831 # The archiver.
17832 AR=$lt_AR
17833 AR_FLAGS=$lt_AR_FLAGS
17834
17835 # A C compiler.
17836 LTCC=$lt_LTCC
17837
17838 # LTCC compiler flags.
17839 LTCFLAGS=$lt_LTCFLAGS
17840
17841 # A language-specific compiler.
17842 CC=$lt_compiler_GCJ
17843
17844 # Is the compiler the GNU C compiler?
17845 with_gcc=$GCC_GCJ
17846
17847 # An ERE matcher.
17848 EGREP=$lt_EGREP
17849
17850 # The linker used to build libraries.
17851 LD=$lt_LD_GCJ
17852
17853 # Whether we need hard or soft links.
17854 LN_S=$lt_LN_S
17855
17856 # A BSD-compatible nm program.
17857 NM=$lt_NM
17858
17859 # A symbol stripping program
17860 STRIP=$lt_STRIP
17861
17862 # Used to examine libraries when file_magic_cmd begins "file"
17863 MAGIC_CMD=$MAGIC_CMD
17864
17865 # Used on cygwin: DLL creation program.
17866 DLLTOOL="$DLLTOOL"
17867
17868 # Used on cygwin: object dumper.
17869 OBJDUMP="$OBJDUMP"
17870
17871 # Used on cygwin: assembler.
17872 AS="$AS"
17873
17874 # The name of the directory that contains temporary libtool files.
17875 objdir=$objdir
17876
17877 # How to create reloadable object files.
17878 reload_flag=$lt_reload_flag
17879 reload_cmds=$lt_reload_cmds
17880
17881 # How to pass a linker flag through the compiler.
17882 wl=$lt_lt_prog_compiler_wl_GCJ
17883
17884 # Object file suffix (normally "o").
17885 objext="$ac_objext"
17886
17887 # Old archive suffix (normally "a").
17888 libext="$libext"
17889
17890 # Shared library suffix (normally ".so").
17891 shrext_cmds='$shrext_cmds'
17892
17893 # Executable file suffix (normally "").
17894 exeext="$exeext"
17895
17896 # Additional compiler flags for building library objects.
17897 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17898 pic_mode=$pic_mode
17899
17900 # What is the maximum length of a command?
17901 max_cmd_len=$lt_cv_sys_max_cmd_len
17902
17903 # Does compiler simultaneously support -c and -o options?
17904 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17905
17906 # Must we lock files when doing compilation?
17907 need_locks=$lt_need_locks
17908
17909 # Do we need the lib prefix for modules?
17910 need_lib_prefix=$need_lib_prefix
17911
17912 # Do we need a version for libraries?
17913 need_version=$need_version
17914
17915 # Whether dlopen is supported.
17916 dlopen_support=$enable_dlopen
17917
17918 # Whether dlopen of programs is supported.
17919 dlopen_self=$enable_dlopen_self
17920
17921 # Whether dlopen of statically linked programs is supported.
17922 dlopen_self_static=$enable_dlopen_self_static
17923
17924 # Compiler flag to prevent dynamic linking.
17925 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17926
17927 # Compiler flag to turn off builtin functions.
17928 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17929
17930 # Compiler flag to allow reflexive dlopens.
17931 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17932
17933 # Compiler flag to generate shared objects directly from archives.
17934 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17935
17936 # Compiler flag to generate thread-safe objects.
17937 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17938
17939 # Library versioning type.
17940 version_type=$version_type
17941
17942 # Format of library name prefix.
17943 libname_spec=$lt_libname_spec
17944
17945 # List of archive names. First name is the real one, the rest are links.
17946 # The last name is the one that the linker finds with -lNAME.
17947 library_names_spec=$lt_library_names_spec
17948
17949 # The coded name of the library, if different from the real name.
17950 soname_spec=$lt_soname_spec
17951
17952 # Commands used to build and install an old-style archive.
17953 RANLIB=$lt_RANLIB
17954 old_archive_cmds=$lt_old_archive_cmds_GCJ
17955 old_postinstall_cmds=$lt_old_postinstall_cmds
17956 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17957
17958 # Create an old-style archive from a shared archive.
17959 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17960
17961 # Create a temporary old-style archive to link instead of a shared archive.
17962 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17963
17964 # Commands used to build and install a shared archive.
17965 archive_cmds=$lt_archive_cmds_GCJ
17966 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17967 postinstall_cmds=$lt_postinstall_cmds
17968 postuninstall_cmds=$lt_postuninstall_cmds
17969
17970 # Commands used to build a loadable module (assumed same as above if empty)
17971 module_cmds=$lt_module_cmds_GCJ
17972 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17973
17974 # Commands to strip libraries.
17975 old_striplib=$lt_old_striplib
17976 striplib=$lt_striplib
17977
17978 # Dependencies to place before the objects being linked to create a
17979 # shared library.
17980 predep_objects=$lt_predep_objects_GCJ
17981
17982 # Dependencies to place after the objects being linked to create a
17983 # shared library.
17984 postdep_objects=$lt_postdep_objects_GCJ
17985
17986 # Dependencies to place before the objects being linked to create a
17987 # shared library.
17988 predeps=$lt_predeps_GCJ
17989
17990 # Dependencies to place after the objects being linked to create a
17991 # shared library.
17992 postdeps=$lt_postdeps_GCJ
17993
17994 # The library search path used internally by the compiler when linking
17995 # a shared library.
17996 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17997
17998 # Method to check whether dependent libraries are shared objects.
17999 deplibs_check_method=$lt_deplibs_check_method
18000
18001 # Command to use when deplibs_check_method == file_magic.
18002 file_magic_cmd=$lt_file_magic_cmd
18003
18004 # Flag that allows shared libraries with undefined symbols to be built.
18005 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18006
18007 # Flag that forces no undefined symbols.
18008 no_undefined_flag=$lt_no_undefined_flag_GCJ
18009
18010 # Commands used to finish a libtool library installation in a directory.
18011 finish_cmds=$lt_finish_cmds
18012
18013 # Same as above, but a single script fragment to be evaled but not shown.
18014 finish_eval=$lt_finish_eval
18015
18016 # Take the output of nm and produce a listing of raw symbols and C names.
18017 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18018
18019 # Transform the output of nm in a proper C declaration
18020 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18021
18022 # Transform the output of nm in a C name address pair
18023 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18024
18025 # This is the shared library runtime path variable.
18026 runpath_var=$runpath_var
18027
18028 # This is the shared library path variable.
18029 shlibpath_var=$shlibpath_var
18030
18031 # Is shlibpath searched before the hard-coded library search path?
18032 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18033
18034 # How to hardcode a shared library path into an executable.
18035 hardcode_action=$hardcode_action_GCJ
18036
18037 # Whether we should hardcode library paths into libraries.
18038 hardcode_into_libs=$hardcode_into_libs
18039
18040 # Flag to hardcode \$libdir into a binary during linking.
18041 # This must work even if \$libdir does not exist.
18042 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18043
18044 # If ld is used when linking, flag to hardcode \$libdir into
18045 # a binary during linking. This must work even if \$libdir does
18046 # not exist.
18047 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18048
18049 # Whether we need a single -rpath flag with a separated argument.
18050 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18051
18052 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18053 # resulting binary.
18054 hardcode_direct=$hardcode_direct_GCJ
18055
18056 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18057 # resulting binary.
18058 hardcode_minus_L=$hardcode_minus_L_GCJ
18059
18060 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18061 # the resulting binary.
18062 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18063
18064 # Set to yes if building a shared library automatically hardcodes DIR into the library
18065 # and all subsequent libraries and executables linked against it.
18066 hardcode_automatic=$hardcode_automatic_GCJ
18067
18068 # Variables whose values should be saved in libtool wrapper scripts and
18069 # restored at relink time.
18070 variables_saved_for_relink="$variables_saved_for_relink"
18071
18072 # Whether libtool must link a program against all its dependency libraries.
18073 link_all_deplibs=$link_all_deplibs_GCJ
18074
18075 # Compile-time system search path for libraries
18076 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18077
18078 # Run-time system search path for libraries
18079 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18080
18081 # Fix the shell variable \$srcfile for the compiler.
18082 fix_srcfile_path="$fix_srcfile_path_GCJ"
18083
18084 # Set to yes if exported symbols are required.
18085 always_export_symbols=$always_export_symbols_GCJ
18086
18087 # The commands to list exported symbols.
18088 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18089
18090 # The commands to extract the exported symbol list from a shared archive.
18091 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18092
18093 # Symbols that should not be listed in the preloaded symbols.
18094 exclude_expsyms=$lt_exclude_expsyms_GCJ
18095
18096 # Symbols that must always be exported.
18097 include_expsyms=$lt_include_expsyms_GCJ
18098
18099 # ### END LIBTOOL TAG CONFIG: $tagname
18100
18101 __EOF__
18102
18103
18104 else
18105 # If there is no Makefile yet, we rely on a make rule to execute
18106 # `config.status --recheck' to rerun these tests and create the
18107 # libtool script then.
18108 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18109 if test -f "$ltmain_in"; then
18110 test -f Makefile && make "$ltmain"
18111 fi
18112 fi
18113
18114
18115 ac_ext=c
18116 ac_cpp='$CPP $CPPFLAGS'
18117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18120
18121 CC="$lt_save_CC"
18122
18123 else
18124 tagname=""
18125 fi
18126 ;;
18127
18128 RC)
18129
18130
18131
18132 # Source file extension for RC test sources.
18133 ac_ext=rc
18134
18135 # Object file extension for compiled RC test sources.
18136 objext=o
18137 objext_RC=$objext
18138
18139 # Code to be used in simple compile tests
18140 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18141
18142 # Code to be used in simple link tests
18143 lt_simple_link_test_code="$lt_simple_compile_test_code"
18144
18145 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18146
18147 # If no C compiler was specified, use CC.
18148 LTCC=${LTCC-"$CC"}
18149
18150 # If no C compiler flags were specified, use CFLAGS.
18151 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18152
18153 # Allow CC to be a program name with arguments.
18154 compiler=$CC
18155
18156
18157 # save warnings/boilerplate of simple test code
18158 ac_outfile=conftest.$ac_objext
18159 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18160 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18161 _lt_compiler_boilerplate=`cat conftest.err`
18162 $rm conftest*
18163
18164 ac_outfile=conftest.$ac_objext
18165 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18166 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18167 _lt_linker_boilerplate=`cat conftest.err`
18168 $rm conftest*
18169
18170
18171 # Allow CC to be a program name with arguments.
18172 lt_save_CC="$CC"
18173 CC=${RC-"windres"}
18174 compiler=$CC
18175 compiler_RC=$CC
18176 for cc_temp in $compiler""; do
18177 case $cc_temp in
18178 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18179 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18180 \-*) ;;
18181 *) break;;
18182 esac
18183 done
18184 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18185
18186 lt_cv_prog_compiler_c_o_RC=yes
18187
18188 # The else clause should only fire when bootstrapping the
18189 # libtool distribution, otherwise you forgot to ship ltmain.sh
18190 # with your package, and you will get complaints that there are
18191 # no rules to generate ltmain.sh.
18192 if test -f "$ltmain"; then
18193 # See if we are running on zsh, and set the options which allow our commands through
18194 # without removal of \ escapes.
18195 if test -n "${ZSH_VERSION+set}" ; then
18196 setopt NO_GLOB_SUBST
18197 fi
18198 # Now quote all the things that may contain metacharacters while being
18199 # careful not to overquote the AC_SUBSTed values. We take copies of the
18200 # variables and quote the copies for generation of the libtool script.
18201 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18202 SED SHELL STRIP \
18203 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18204 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18205 deplibs_check_method reload_flag reload_cmds need_locks \
18206 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18207 lt_cv_sys_global_symbol_to_c_name_address \
18208 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18209 old_postinstall_cmds old_postuninstall_cmds \
18210 compiler_RC \
18211 CC_RC \
18212 LD_RC \
18213 lt_prog_compiler_wl_RC \
18214 lt_prog_compiler_pic_RC \
18215 lt_prog_compiler_static_RC \
18216 lt_prog_compiler_no_builtin_flag_RC \
18217 export_dynamic_flag_spec_RC \
18218 thread_safe_flag_spec_RC \
18219 whole_archive_flag_spec_RC \
18220 enable_shared_with_static_runtimes_RC \
18221 old_archive_cmds_RC \
18222 old_archive_from_new_cmds_RC \
18223 predep_objects_RC \
18224 postdep_objects_RC \
18225 predeps_RC \
18226 postdeps_RC \
18227 compiler_lib_search_path_RC \
18228 archive_cmds_RC \
18229 archive_expsym_cmds_RC \
18230 postinstall_cmds_RC \
18231 postuninstall_cmds_RC \
18232 old_archive_from_expsyms_cmds_RC \
18233 allow_undefined_flag_RC \
18234 no_undefined_flag_RC \
18235 export_symbols_cmds_RC \
18236 hardcode_libdir_flag_spec_RC \
18237 hardcode_libdir_flag_spec_ld_RC \
18238 hardcode_libdir_separator_RC \
18239 hardcode_automatic_RC \
18240 module_cmds_RC \
18241 module_expsym_cmds_RC \
18242 lt_cv_prog_compiler_c_o_RC \
18243 exclude_expsyms_RC \
18244 include_expsyms_RC; do
18245
18246 case $var in
18247 old_archive_cmds_RC | \
18248 old_archive_from_new_cmds_RC | \
18249 archive_cmds_RC | \
18250 archive_expsym_cmds_RC | \
18251 module_cmds_RC | \
18252 module_expsym_cmds_RC | \
18253 old_archive_from_expsyms_cmds_RC | \
18254 export_symbols_cmds_RC | \
18255 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18256 postinstall_cmds | postuninstall_cmds | \
18257 old_postinstall_cmds | old_postuninstall_cmds | \
18258 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18259 # Double-quote double-evaled strings.
18260 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18261 ;;
18262 *)
18263 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18264 ;;
18265 esac
18266 done
18267
18268 case $lt_echo in
18269 *'\$0 --fallback-echo"')
18270 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18271 ;;
18272 esac
18273
18274 cfgfile="$ofile"
18275
18276 cat <<__EOF__ >> "$cfgfile"
18277 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18278
18279 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18280
18281 # Shell to use when invoking shell scripts.
18282 SHELL=$lt_SHELL
18283
18284 # Whether or not to build shared libraries.
18285 build_libtool_libs=$enable_shared
18286
18287 # Whether or not to build static libraries.
18288 build_old_libs=$enable_static
18289
18290 # Whether or not to add -lc for building shared libraries.
18291 build_libtool_need_lc=$archive_cmds_need_lc_RC
18292
18293 # Whether or not to disallow shared libs when runtime libs are static
18294 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18295
18296 # Whether or not to optimize for fast installation.
18297 fast_install=$enable_fast_install
18298
18299 # The host system.
18300 host_alias=$host_alias
18301 host=$host
18302 host_os=$host_os
18303
18304 # The build system.
18305 build_alias=$build_alias
18306 build=$build
18307 build_os=$build_os
18308
18309 # An echo program that does not interpret backslashes.
18310 echo=$lt_echo
18311
18312 # The archiver.
18313 AR=$lt_AR
18314 AR_FLAGS=$lt_AR_FLAGS
18315
18316 # A C compiler.
18317 LTCC=$lt_LTCC
18318
18319 # LTCC compiler flags.
18320 LTCFLAGS=$lt_LTCFLAGS
18321
18322 # A language-specific compiler.
18323 CC=$lt_compiler_RC
18324
18325 # Is the compiler the GNU C compiler?
18326 with_gcc=$GCC_RC
18327
18328 # An ERE matcher.
18329 EGREP=$lt_EGREP
18330
18331 # The linker used to build libraries.
18332 LD=$lt_LD_RC
18333
18334 # Whether we need hard or soft links.
18335 LN_S=$lt_LN_S
18336
18337 # A BSD-compatible nm program.
18338 NM=$lt_NM
18339
18340 # A symbol stripping program
18341 STRIP=$lt_STRIP
18342
18343 # Used to examine libraries when file_magic_cmd begins "file"
18344 MAGIC_CMD=$MAGIC_CMD
18345
18346 # Used on cygwin: DLL creation program.
18347 DLLTOOL="$DLLTOOL"
18348
18349 # Used on cygwin: object dumper.
18350 OBJDUMP="$OBJDUMP"
18351
18352 # Used on cygwin: assembler.
18353 AS="$AS"
18354
18355 # The name of the directory that contains temporary libtool files.
18356 objdir=$objdir
18357
18358 # How to create reloadable object files.
18359 reload_flag=$lt_reload_flag
18360 reload_cmds=$lt_reload_cmds
18361
18362 # How to pass a linker flag through the compiler.
18363 wl=$lt_lt_prog_compiler_wl_RC
18364
18365 # Object file suffix (normally "o").
18366 objext="$ac_objext"
18367
18368 # Old archive suffix (normally "a").
18369 libext="$libext"
18370
18371 # Shared library suffix (normally ".so").
18372 shrext_cmds='$shrext_cmds'
18373
18374 # Executable file suffix (normally "").
18375 exeext="$exeext"
18376
18377 # Additional compiler flags for building library objects.
18378 pic_flag=$lt_lt_prog_compiler_pic_RC
18379 pic_mode=$pic_mode
18380
18381 # What is the maximum length of a command?
18382 max_cmd_len=$lt_cv_sys_max_cmd_len
18383
18384 # Does compiler simultaneously support -c and -o options?
18385 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18386
18387 # Must we lock files when doing compilation?
18388 need_locks=$lt_need_locks
18389
18390 # Do we need the lib prefix for modules?
18391 need_lib_prefix=$need_lib_prefix
18392
18393 # Do we need a version for libraries?
18394 need_version=$need_version
18395
18396 # Whether dlopen is supported.
18397 dlopen_support=$enable_dlopen
18398
18399 # Whether dlopen of programs is supported.
18400 dlopen_self=$enable_dlopen_self
18401
18402 # Whether dlopen of statically linked programs is supported.
18403 dlopen_self_static=$enable_dlopen_self_static
18404
18405 # Compiler flag to prevent dynamic linking.
18406 link_static_flag=$lt_lt_prog_compiler_static_RC
18407
18408 # Compiler flag to turn off builtin functions.
18409 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18410
18411 # Compiler flag to allow reflexive dlopens.
18412 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18413
18414 # Compiler flag to generate shared objects directly from archives.
18415 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18416
18417 # Compiler flag to generate thread-safe objects.
18418 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18419
18420 # Library versioning type.
18421 version_type=$version_type
18422
18423 # Format of library name prefix.
18424 libname_spec=$lt_libname_spec
18425
18426 # List of archive names. First name is the real one, the rest are links.
18427 # The last name is the one that the linker finds with -lNAME.
18428 library_names_spec=$lt_library_names_spec
18429
18430 # The coded name of the library, if different from the real name.
18431 soname_spec=$lt_soname_spec
18432
18433 # Commands used to build and install an old-style archive.
18434 RANLIB=$lt_RANLIB
18435 old_archive_cmds=$lt_old_archive_cmds_RC
18436 old_postinstall_cmds=$lt_old_postinstall_cmds
18437 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18438
18439 # Create an old-style archive from a shared archive.
18440 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18441
18442 # Create a temporary old-style archive to link instead of a shared archive.
18443 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18444
18445 # Commands used to build and install a shared archive.
18446 archive_cmds=$lt_archive_cmds_RC
18447 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18448 postinstall_cmds=$lt_postinstall_cmds
18449 postuninstall_cmds=$lt_postuninstall_cmds
18450
18451 # Commands used to build a loadable module (assumed same as above if empty)
18452 module_cmds=$lt_module_cmds_RC
18453 module_expsym_cmds=$lt_module_expsym_cmds_RC
18454
18455 # Commands to strip libraries.
18456 old_striplib=$lt_old_striplib
18457 striplib=$lt_striplib
18458
18459 # Dependencies to place before the objects being linked to create a
18460 # shared library.
18461 predep_objects=$lt_predep_objects_RC
18462
18463 # Dependencies to place after the objects being linked to create a
18464 # shared library.
18465 postdep_objects=$lt_postdep_objects_RC
18466
18467 # Dependencies to place before the objects being linked to create a
18468 # shared library.
18469 predeps=$lt_predeps_RC
18470
18471 # Dependencies to place after the objects being linked to create a
18472 # shared library.
18473 postdeps=$lt_postdeps_RC
18474
18475 # The library search path used internally by the compiler when linking
18476 # a shared library.
18477 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18478
18479 # Method to check whether dependent libraries are shared objects.
18480 deplibs_check_method=$lt_deplibs_check_method
18481
18482 # Command to use when deplibs_check_method == file_magic.
18483 file_magic_cmd=$lt_file_magic_cmd
18484
18485 # Flag that allows shared libraries with undefined symbols to be built.
18486 allow_undefined_flag=$lt_allow_undefined_flag_RC
18487
18488 # Flag that forces no undefined symbols.
18489 no_undefined_flag=$lt_no_undefined_flag_RC
18490
18491 # Commands used to finish a libtool library installation in a directory.
18492 finish_cmds=$lt_finish_cmds
18493
18494 # Same as above, but a single script fragment to be evaled but not shown.
18495 finish_eval=$lt_finish_eval
18496
18497 # Take the output of nm and produce a listing of raw symbols and C names.
18498 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18499
18500 # Transform the output of nm in a proper C declaration
18501 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18502
18503 # Transform the output of nm in a C name address pair
18504 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18505
18506 # This is the shared library runtime path variable.
18507 runpath_var=$runpath_var
18508
18509 # This is the shared library path variable.
18510 shlibpath_var=$shlibpath_var
18511
18512 # Is shlibpath searched before the hard-coded library search path?
18513 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18514
18515 # How to hardcode a shared library path into an executable.
18516 hardcode_action=$hardcode_action_RC
18517
18518 # Whether we should hardcode library paths into libraries.
18519 hardcode_into_libs=$hardcode_into_libs
18520
18521 # Flag to hardcode \$libdir into a binary during linking.
18522 # This must work even if \$libdir does not exist.
18523 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18524
18525 # If ld is used when linking, flag to hardcode \$libdir into
18526 # a binary during linking. This must work even if \$libdir does
18527 # not exist.
18528 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18529
18530 # Whether we need a single -rpath flag with a separated argument.
18531 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18532
18533 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18534 # resulting binary.
18535 hardcode_direct=$hardcode_direct_RC
18536
18537 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18538 # resulting binary.
18539 hardcode_minus_L=$hardcode_minus_L_RC
18540
18541 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18542 # the resulting binary.
18543 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18544
18545 # Set to yes if building a shared library automatically hardcodes DIR into the library
18546 # and all subsequent libraries and executables linked against it.
18547 hardcode_automatic=$hardcode_automatic_RC
18548
18549 # Variables whose values should be saved in libtool wrapper scripts and
18550 # restored at relink time.
18551 variables_saved_for_relink="$variables_saved_for_relink"
18552
18553 # Whether libtool must link a program against all its dependency libraries.
18554 link_all_deplibs=$link_all_deplibs_RC
18555
18556 # Compile-time system search path for libraries
18557 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18558
18559 # Run-time system search path for libraries
18560 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18561
18562 # Fix the shell variable \$srcfile for the compiler.
18563 fix_srcfile_path="$fix_srcfile_path_RC"
18564
18565 # Set to yes if exported symbols are required.
18566 always_export_symbols=$always_export_symbols_RC
18567
18568 # The commands to list exported symbols.
18569 export_symbols_cmds=$lt_export_symbols_cmds_RC
18570
18571 # The commands to extract the exported symbol list from a shared archive.
18572 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18573
18574 # Symbols that should not be listed in the preloaded symbols.
18575 exclude_expsyms=$lt_exclude_expsyms_RC
18576
18577 # Symbols that must always be exported.
18578 include_expsyms=$lt_include_expsyms_RC
18579
18580 # ### END LIBTOOL TAG CONFIG: $tagname
18581
18582 __EOF__
18583
18584
18585 else
18586 # If there is no Makefile yet, we rely on a make rule to execute
18587 # `config.status --recheck' to rerun these tests and create the
18588 # libtool script then.
18589 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18590 if test -f "$ltmain_in"; then
18591 test -f Makefile && make "$ltmain"
18592 fi
18593 fi
18594
18595
18596 ac_ext=c
18597 ac_cpp='$CPP $CPPFLAGS'
18598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18601
18602 CC="$lt_save_CC"
18603
18604 ;;
18605
18606 *)
18607 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18608 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18609 { (exit 1); exit 1; }; }
18610 ;;
18611 esac
18612
18613 # Append the new tag name to the list of available tags.
18614 if test -n "$tagname" ; then
18615 available_tags="$available_tags $tagname"
18616 fi
18617 fi
18618 done
18619 IFS="$lt_save_ifs"
18620
18621 # Now substitute the updated list of available tags.
18622 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18623 mv "${ofile}T" "$ofile"
18624 chmod +x "$ofile"
18625 else
18626 rm -f "${ofile}T"
18627 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18628 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18629 { (exit 1); exit 1; }; }
18630 fi
18631 fi
18632
18633
18634
18635 # This can be used to rebuild libtool when needed
18636 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18637
18638 # Always use our own libtool.
18639 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18640
18641 # Prevent multiple expansion
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662 ac_ext=c
18663 ac_cpp='$CPP $CPPFLAGS'
18664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18667 if test -n "$ac_tool_prefix"; then
18668 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18669 set dummy ${ac_tool_prefix}gcc; ac_word=$2
18670 echo "$as_me:$LINENO: checking for $ac_word" >&5
18671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18672 if test "${ac_cv_prog_CC+set}" = set; then
18673 echo $ECHO_N "(cached) $ECHO_C" >&6
18674 else
18675 if test -n "$CC"; then
18676 ac_cv_prog_CC="$CC" # Let the user override the test.
18677 else
18678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18679 for as_dir in $PATH
18680 do
18681 IFS=$as_save_IFS
18682 test -z "$as_dir" && as_dir=.
18683 for ac_exec_ext in '' $ac_executable_extensions; do
18684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18685 ac_cv_prog_CC="${ac_tool_prefix}gcc"
18686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18687 break 2
18688 fi
18689 done
18690 done
18691
18692 fi
18693 fi
18694 CC=$ac_cv_prog_CC
18695 if test -n "$CC"; then
18696 echo "$as_me:$LINENO: result: $CC" >&5
18697 echo "${ECHO_T}$CC" >&6
18698 else
18699 echo "$as_me:$LINENO: result: no" >&5
18700 echo "${ECHO_T}no" >&6
18701 fi
18702
18703 fi
18704 if test -z "$ac_cv_prog_CC"; then
18705 ac_ct_CC=$CC
18706 # Extract the first word of "gcc", so it can be a program name with args.
18707 set dummy gcc; ac_word=$2
18708 echo "$as_me:$LINENO: checking for $ac_word" >&5
18709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18710 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18711 echo $ECHO_N "(cached) $ECHO_C" >&6
18712 else
18713 if test -n "$ac_ct_CC"; then
18714 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18715 else
18716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18717 for as_dir in $PATH
18718 do
18719 IFS=$as_save_IFS
18720 test -z "$as_dir" && as_dir=.
18721 for ac_exec_ext in '' $ac_executable_extensions; do
18722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18723 ac_cv_prog_ac_ct_CC="gcc"
18724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18725 break 2
18726 fi
18727 done
18728 done
18729
18730 fi
18731 fi
18732 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18733 if test -n "$ac_ct_CC"; then
18734 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18735 echo "${ECHO_T}$ac_ct_CC" >&6
18736 else
18737 echo "$as_me:$LINENO: result: no" >&5
18738 echo "${ECHO_T}no" >&6
18739 fi
18740
18741 CC=$ac_ct_CC
18742 else
18743 CC="$ac_cv_prog_CC"
18744 fi
18745
18746 if test -z "$CC"; then
18747 if test -n "$ac_tool_prefix"; then
18748 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18749 set dummy ${ac_tool_prefix}cc; ac_word=$2
18750 echo "$as_me:$LINENO: checking for $ac_word" >&5
18751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18752 if test "${ac_cv_prog_CC+set}" = set; then
18753 echo $ECHO_N "(cached) $ECHO_C" >&6
18754 else
18755 if test -n "$CC"; then
18756 ac_cv_prog_CC="$CC" # Let the user override the test.
18757 else
18758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18759 for as_dir in $PATH
18760 do
18761 IFS=$as_save_IFS
18762 test -z "$as_dir" && as_dir=.
18763 for ac_exec_ext in '' $ac_executable_extensions; do
18764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18765 ac_cv_prog_CC="${ac_tool_prefix}cc"
18766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18767 break 2
18768 fi
18769 done
18770 done
18771
18772 fi
18773 fi
18774 CC=$ac_cv_prog_CC
18775 if test -n "$CC"; then
18776 echo "$as_me:$LINENO: result: $CC" >&5
18777 echo "${ECHO_T}$CC" >&6
18778 else
18779 echo "$as_me:$LINENO: result: no" >&5
18780 echo "${ECHO_T}no" >&6
18781 fi
18782
18783 fi
18784 if test -z "$ac_cv_prog_CC"; then
18785 ac_ct_CC=$CC
18786 # Extract the first word of "cc", so it can be a program name with args.
18787 set dummy cc; ac_word=$2
18788 echo "$as_me:$LINENO: checking for $ac_word" >&5
18789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18790 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18791 echo $ECHO_N "(cached) $ECHO_C" >&6
18792 else
18793 if test -n "$ac_ct_CC"; then
18794 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18795 else
18796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18797 for as_dir in $PATH
18798 do
18799 IFS=$as_save_IFS
18800 test -z "$as_dir" && as_dir=.
18801 for ac_exec_ext in '' $ac_executable_extensions; do
18802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18803 ac_cv_prog_ac_ct_CC="cc"
18804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18805 break 2
18806 fi
18807 done
18808 done
18809
18810 fi
18811 fi
18812 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18813 if test -n "$ac_ct_CC"; then
18814 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18815 echo "${ECHO_T}$ac_ct_CC" >&6
18816 else
18817 echo "$as_me:$LINENO: result: no" >&5
18818 echo "${ECHO_T}no" >&6
18819 fi
18820
18821 CC=$ac_ct_CC
18822 else
18823 CC="$ac_cv_prog_CC"
18824 fi
18825
18826 fi
18827 if test -z "$CC"; then
18828 # Extract the first word of "cc", so it can be a program name with args.
18829 set dummy cc; ac_word=$2
18830 echo "$as_me:$LINENO: checking for $ac_word" >&5
18831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18832 if test "${ac_cv_prog_CC+set}" = set; then
18833 echo $ECHO_N "(cached) $ECHO_C" >&6
18834 else
18835 if test -n "$CC"; then
18836 ac_cv_prog_CC="$CC" # Let the user override the test.
18837 else
18838 ac_prog_rejected=no
18839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18840 for as_dir in $PATH
18841 do
18842 IFS=$as_save_IFS
18843 test -z "$as_dir" && as_dir=.
18844 for ac_exec_ext in '' $ac_executable_extensions; do
18845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18846 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18847 ac_prog_rejected=yes
18848 continue
18849 fi
18850 ac_cv_prog_CC="cc"
18851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18852 break 2
18853 fi
18854 done
18855 done
18856
18857 if test $ac_prog_rejected = yes; then
18858 # We found a bogon in the path, so make sure we never use it.
18859 set dummy $ac_cv_prog_CC
18860 shift
18861 if test $# != 0; then
18862 # We chose a different compiler from the bogus one.
18863 # However, it has the same basename, so the bogon will be chosen
18864 # first if we set CC to just the basename; use the full file name.
18865 shift
18866 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18867 fi
18868 fi
18869 fi
18870 fi
18871 CC=$ac_cv_prog_CC
18872 if test -n "$CC"; then
18873 echo "$as_me:$LINENO: result: $CC" >&5
18874 echo "${ECHO_T}$CC" >&6
18875 else
18876 echo "$as_me:$LINENO: result: no" >&5
18877 echo "${ECHO_T}no" >&6
18878 fi
18879
18880 fi
18881 if test -z "$CC"; then
18882 if test -n "$ac_tool_prefix"; then
18883 for ac_prog in cl
18884 do
18885 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18886 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18887 echo "$as_me:$LINENO: checking for $ac_word" >&5
18888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18889 if test "${ac_cv_prog_CC+set}" = set; then
18890 echo $ECHO_N "(cached) $ECHO_C" >&6
18891 else
18892 if test -n "$CC"; then
18893 ac_cv_prog_CC="$CC" # Let the user override the test.
18894 else
18895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18896 for as_dir in $PATH
18897 do
18898 IFS=$as_save_IFS
18899 test -z "$as_dir" && as_dir=.
18900 for ac_exec_ext in '' $ac_executable_extensions; do
18901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18902 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18904 break 2
18905 fi
18906 done
18907 done
18908
18909 fi
18910 fi
18911 CC=$ac_cv_prog_CC
18912 if test -n "$CC"; then
18913 echo "$as_me:$LINENO: result: $CC" >&5
18914 echo "${ECHO_T}$CC" >&6
18915 else
18916 echo "$as_me:$LINENO: result: no" >&5
18917 echo "${ECHO_T}no" >&6
18918 fi
18919
18920 test -n "$CC" && break
18921 done
18922 fi
18923 if test -z "$CC"; then
18924 ac_ct_CC=$CC
18925 for ac_prog in cl
18926 do
18927 # Extract the first word of "$ac_prog", so it can be a program name with args.
18928 set dummy $ac_prog; ac_word=$2
18929 echo "$as_me:$LINENO: checking for $ac_word" >&5
18930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18931 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18932 echo $ECHO_N "(cached) $ECHO_C" >&6
18933 else
18934 if test -n "$ac_ct_CC"; then
18935 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18936 else
18937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18938 for as_dir in $PATH
18939 do
18940 IFS=$as_save_IFS
18941 test -z "$as_dir" && as_dir=.
18942 for ac_exec_ext in '' $ac_executable_extensions; do
18943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18944 ac_cv_prog_ac_ct_CC="$ac_prog"
18945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18946 break 2
18947 fi
18948 done
18949 done
18950
18951 fi
18952 fi
18953 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18954 if test -n "$ac_ct_CC"; then
18955 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18956 echo "${ECHO_T}$ac_ct_CC" >&6
18957 else
18958 echo "$as_me:$LINENO: result: no" >&5
18959 echo "${ECHO_T}no" >&6
18960 fi
18961
18962 test -n "$ac_ct_CC" && break
18963 done
18964
18965 CC=$ac_ct_CC
18966 fi
18967
18968 fi
18969
18970
18971 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
18972 See \`config.log' for more details." >&5
18973 echo "$as_me: error: no acceptable C compiler found in \$PATH
18974 See \`config.log' for more details." >&2;}
18975 { (exit 1); exit 1; }; }
18976
18977 # Provide some information about the compiler.
18978 echo "$as_me:$LINENO:" \
18979 "checking for C compiler version" >&5
18980 ac_compiler=`set X $ac_compile; echo $2`
18981 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
18982 (eval $ac_compiler --version </dev/null >&5) 2>&5
18983 ac_status=$?
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); }
18986 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
18987 (eval $ac_compiler -v </dev/null >&5) 2>&5
18988 ac_status=$?
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); }
18991 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
18992 (eval $ac_compiler -V </dev/null >&5) 2>&5
18993 ac_status=$?
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); }
18996
18997 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
18998 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
18999 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19000 echo $ECHO_N "(cached) $ECHO_C" >&6
19001 else
19002 cat >conftest.$ac_ext <<_ACEOF
19003 /* confdefs.h. */
19004 _ACEOF
19005 cat confdefs.h >>conftest.$ac_ext
19006 cat >>conftest.$ac_ext <<_ACEOF
19007 /* end confdefs.h. */
19008
19009 int
19010 main ()
19011 {
19012 #ifndef __GNUC__
19013 choke me
19014 #endif
19015
19016 ;
19017 return 0;
19018 }
19019 _ACEOF
19020 rm -f conftest.$ac_objext
19021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19022 (eval $ac_compile) 2>conftest.er1
19023 ac_status=$?
19024 grep -v '^ *+' conftest.er1 >conftest.err
19025 rm -f conftest.er1
19026 cat conftest.err >&5
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); } &&
19029 { ac_try='test -z "$ac_c_werror_flag"
19030 || test ! -s conftest.err'
19031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19032 (eval $ac_try) 2>&5
19033 ac_status=$?
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); }; } &&
19036 { ac_try='test -s conftest.$ac_objext'
19037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19038 (eval $ac_try) 2>&5
19039 ac_status=$?
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); }; }; then
19042 ac_compiler_gnu=yes
19043 else
19044 echo "$as_me: failed program was:" >&5
19045 sed 's/^/| /' conftest.$ac_ext >&5
19046
19047 ac_compiler_gnu=no
19048 fi
19049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19050 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19051
19052 fi
19053 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19054 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19055 GCC=`test $ac_compiler_gnu = yes && echo yes`
19056 ac_test_CFLAGS=${CFLAGS+set}
19057 ac_save_CFLAGS=$CFLAGS
19058 CFLAGS="-g"
19059 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19060 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19061 if test "${ac_cv_prog_cc_g+set}" = set; then
19062 echo $ECHO_N "(cached) $ECHO_C" >&6
19063 else
19064 cat >conftest.$ac_ext <<_ACEOF
19065 /* confdefs.h. */
19066 _ACEOF
19067 cat confdefs.h >>conftest.$ac_ext
19068 cat >>conftest.$ac_ext <<_ACEOF
19069 /* end confdefs.h. */
19070
19071 int
19072 main ()
19073 {
19074
19075 ;
19076 return 0;
19077 }
19078 _ACEOF
19079 rm -f conftest.$ac_objext
19080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19081 (eval $ac_compile) 2>conftest.er1
19082 ac_status=$?
19083 grep -v '^ *+' conftest.er1 >conftest.err
19084 rm -f conftest.er1
19085 cat conftest.err >&5
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); } &&
19088 { ac_try='test -z "$ac_c_werror_flag"
19089 || test ! -s conftest.err'
19090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19091 (eval $ac_try) 2>&5
19092 ac_status=$?
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); }; } &&
19095 { ac_try='test -s conftest.$ac_objext'
19096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19097 (eval $ac_try) 2>&5
19098 ac_status=$?
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); }; }; then
19101 ac_cv_prog_cc_g=yes
19102 else
19103 echo "$as_me: failed program was:" >&5
19104 sed 's/^/| /' conftest.$ac_ext >&5
19105
19106 ac_cv_prog_cc_g=no
19107 fi
19108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19109 fi
19110 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19111 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19112 if test "$ac_test_CFLAGS" = set; then
19113 CFLAGS=$ac_save_CFLAGS
19114 elif test $ac_cv_prog_cc_g = yes; then
19115 if test "$GCC" = yes; then
19116 CFLAGS="-g -O2"
19117 else
19118 CFLAGS="-g"
19119 fi
19120 else
19121 if test "$GCC" = yes; then
19122 CFLAGS="-O2"
19123 else
19124 CFLAGS=
19125 fi
19126 fi
19127 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19128 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19129 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19130 echo $ECHO_N "(cached) $ECHO_C" >&6
19131 else
19132 ac_cv_prog_cc_stdc=no
19133 ac_save_CC=$CC
19134 cat >conftest.$ac_ext <<_ACEOF
19135 /* confdefs.h. */
19136 _ACEOF
19137 cat confdefs.h >>conftest.$ac_ext
19138 cat >>conftest.$ac_ext <<_ACEOF
19139 /* end confdefs.h. */
19140 #include <stdarg.h>
19141 #include <stdio.h>
19142 #include <sys/types.h>
19143 #include <sys/stat.h>
19144 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19145 struct buf { int x; };
19146 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19147 static char *e (p, i)
19148 char **p;
19149 int i;
19150 {
19151 return p[i];
19152 }
19153 static char *f (char * (*g) (char **, int), char **p, ...)
19154 {
19155 char *s;
19156 va_list v;
19157 va_start (v,p);
19158 s = g (p, va_arg (v,int));
19159 va_end (v);
19160 return s;
19161 }
19162
19163 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19164 function prototypes and stuff, but not '\xHH' hex character constants.
19165 These don't provoke an error unfortunately, instead are silently treated
19166 as 'x'. The following induces an error, until -std1 is added to get
19167 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19168 array size at least. It's necessary to write '\x00'==0 to get something
19169 that's true only with -std1. */
19170 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19171
19172 int test (int i, double x);
19173 struct s1 {int (*f) (int a);};
19174 struct s2 {int (*f) (double a);};
19175 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19176 int argc;
19177 char **argv;
19178 int
19179 main ()
19180 {
19181 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19182 ;
19183 return 0;
19184 }
19185 _ACEOF
19186 # Don't try gcc -ansi; that turns off useful extensions and
19187 # breaks some systems' header files.
19188 # AIX -qlanglvl=ansi
19189 # Ultrix and OSF/1 -std1
19190 # HP-UX 10.20 and later -Ae
19191 # HP-UX older versions -Aa -D_HPUX_SOURCE
19192 # SVR4 -Xc -D__EXTENSIONS__
19193 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19194 do
19195 CC="$ac_save_CC $ac_arg"
19196 rm -f conftest.$ac_objext
19197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19198 (eval $ac_compile) 2>conftest.er1
19199 ac_status=$?
19200 grep -v '^ *+' conftest.er1 >conftest.err
19201 rm -f conftest.er1
19202 cat conftest.err >&5
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); } &&
19205 { ac_try='test -z "$ac_c_werror_flag"
19206 || test ! -s conftest.err'
19207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19208 (eval $ac_try) 2>&5
19209 ac_status=$?
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); }; } &&
19212 { ac_try='test -s conftest.$ac_objext'
19213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19214 (eval $ac_try) 2>&5
19215 ac_status=$?
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); }; }; then
19218 ac_cv_prog_cc_stdc=$ac_arg
19219 break
19220 else
19221 echo "$as_me: failed program was:" >&5
19222 sed 's/^/| /' conftest.$ac_ext >&5
19223
19224 fi
19225 rm -f conftest.err conftest.$ac_objext
19226 done
19227 rm -f conftest.$ac_ext conftest.$ac_objext
19228 CC=$ac_save_CC
19229
19230 fi
19231
19232 case "x$ac_cv_prog_cc_stdc" in
19233 x|xno)
19234 echo "$as_me:$LINENO: result: none needed" >&5
19235 echo "${ECHO_T}none needed" >&6 ;;
19236 *)
19237 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19238 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19239 CC="$CC $ac_cv_prog_cc_stdc" ;;
19240 esac
19241
19242 # Some people use a C++ compiler to compile C. Since we use `exit',
19243 # in C++ we need to declare it. In case someone uses the same compiler
19244 # for both compiling C and C++ we need to have the C++ compiler decide
19245 # the declaration of exit, since it's the most demanding environment.
19246 cat >conftest.$ac_ext <<_ACEOF
19247 #ifndef __cplusplus
19248 choke me
19249 #endif
19250 _ACEOF
19251 rm -f conftest.$ac_objext
19252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19253 (eval $ac_compile) 2>conftest.er1
19254 ac_status=$?
19255 grep -v '^ *+' conftest.er1 >conftest.err
19256 rm -f conftest.er1
19257 cat conftest.err >&5
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); } &&
19260 { ac_try='test -z "$ac_c_werror_flag"
19261 || test ! -s conftest.err'
19262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19263 (eval $ac_try) 2>&5
19264 ac_status=$?
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); }; } &&
19267 { ac_try='test -s conftest.$ac_objext'
19268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19269 (eval $ac_try) 2>&5
19270 ac_status=$?
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); }; }; then
19273 for ac_declaration in \
19274 '' \
19275 'extern "C" void std::exit (int) throw (); using std::exit;' \
19276 'extern "C" void std::exit (int); using std::exit;' \
19277 'extern "C" void exit (int) throw ();' \
19278 'extern "C" void exit (int);' \
19279 'void exit (int);'
19280 do
19281 cat >conftest.$ac_ext <<_ACEOF
19282 /* confdefs.h. */
19283 _ACEOF
19284 cat confdefs.h >>conftest.$ac_ext
19285 cat >>conftest.$ac_ext <<_ACEOF
19286 /* end confdefs.h. */
19287 $ac_declaration
19288 #include <stdlib.h>
19289 int
19290 main ()
19291 {
19292 exit (42);
19293 ;
19294 return 0;
19295 }
19296 _ACEOF
19297 rm -f conftest.$ac_objext
19298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19299 (eval $ac_compile) 2>conftest.er1
19300 ac_status=$?
19301 grep -v '^ *+' conftest.er1 >conftest.err
19302 rm -f conftest.er1
19303 cat conftest.err >&5
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); } &&
19306 { ac_try='test -z "$ac_c_werror_flag"
19307 || test ! -s conftest.err'
19308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19309 (eval $ac_try) 2>&5
19310 ac_status=$?
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); }; } &&
19313 { ac_try='test -s conftest.$ac_objext'
19314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19315 (eval $ac_try) 2>&5
19316 ac_status=$?
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); }; }; then
19319 :
19320 else
19321 echo "$as_me: failed program was:" >&5
19322 sed 's/^/| /' conftest.$ac_ext >&5
19323
19324 continue
19325 fi
19326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19327 cat >conftest.$ac_ext <<_ACEOF
19328 /* confdefs.h. */
19329 _ACEOF
19330 cat confdefs.h >>conftest.$ac_ext
19331 cat >>conftest.$ac_ext <<_ACEOF
19332 /* end confdefs.h. */
19333 $ac_declaration
19334 int
19335 main ()
19336 {
19337 exit (42);
19338 ;
19339 return 0;
19340 }
19341 _ACEOF
19342 rm -f conftest.$ac_objext
19343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19344 (eval $ac_compile) 2>conftest.er1
19345 ac_status=$?
19346 grep -v '^ *+' conftest.er1 >conftest.err
19347 rm -f conftest.er1
19348 cat conftest.err >&5
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); } &&
19351 { ac_try='test -z "$ac_c_werror_flag"
19352 || test ! -s conftest.err'
19353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19354 (eval $ac_try) 2>&5
19355 ac_status=$?
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); }; } &&
19358 { ac_try='test -s conftest.$ac_objext'
19359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19360 (eval $ac_try) 2>&5
19361 ac_status=$?
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); }; }; then
19364 break
19365 else
19366 echo "$as_me: failed program was:" >&5
19367 sed 's/^/| /' conftest.$ac_ext >&5
19368
19369 fi
19370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19371 done
19372 rm -f conftest*
19373 if test -n "$ac_declaration"; then
19374 echo '#ifdef __cplusplus' >>confdefs.h
19375 echo $ac_declaration >>confdefs.h
19376 echo '#endif' >>confdefs.h
19377 fi
19378
19379 else
19380 echo "$as_me: failed program was:" >&5
19381 sed 's/^/| /' conftest.$ac_ext >&5
19382
19383 fi
19384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19385 ac_ext=c
19386 ac_cpp='$CPP $CPPFLAGS'
19387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19390
19391 depcc="$CC" am_compiler_list=
19392
19393 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19394 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19395 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19396 echo $ECHO_N "(cached) $ECHO_C" >&6
19397 else
19398 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19399 # We make a subdir and do the tests there. Otherwise we can end up
19400 # making bogus files that we don't know about and never remove. For
19401 # instance it was reported that on HP-UX the gcc test will end up
19402 # making a dummy file named `D' -- because `-MD' means `put the output
19403 # in D'.
19404 mkdir conftest.dir
19405 # Copy depcomp to subdir because otherwise we won't find it if we're
19406 # using a relative directory.
19407 cp "$am_depcomp" conftest.dir
19408 cd conftest.dir
19409 # We will build objects and dependencies in a subdirectory because
19410 # it helps to detect inapplicable dependency modes. For instance
19411 # both Tru64's cc and ICC support -MD to output dependencies as a
19412 # side effect of compilation, but ICC will put the dependencies in
19413 # the current directory while Tru64 will put them in the object
19414 # directory.
19415 mkdir sub
19416
19417 am_cv_CC_dependencies_compiler_type=none
19418 if test "$am_compiler_list" = ""; then
19419 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19420 fi
19421 for depmode in $am_compiler_list; do
19422 # Setup a source with many dependencies, because some compilers
19423 # like to wrap large dependency lists on column 80 (with \), and
19424 # we should not choose a depcomp mode which is confused by this.
19425 #
19426 # We need to recreate these files for each test, as the compiler may
19427 # overwrite some of them when testing with obscure command lines.
19428 # This happens at least with the AIX C compiler.
19429 : > sub/conftest.c
19430 for i in 1 2 3 4 5 6; do
19431 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19432 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19433 # Solaris 8's {/usr,}/bin/sh.
19434 touch sub/conftst$i.h
19435 done
19436 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19437
19438 case $depmode in
19439 nosideeffect)
19440 # after this tag, mechanisms are not by side-effect, so they'll
19441 # only be used when explicitly requested
19442 if test "x$enable_dependency_tracking" = xyes; then
19443 continue
19444 else
19445 break
19446 fi
19447 ;;
19448 none) break ;;
19449 esac
19450 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19451 # mode. It turns out that the SunPro C++ compiler does not properly
19452 # handle `-M -o', and we need to detect this.
19453 if depmode=$depmode \
19454 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19455 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19456 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19457 >/dev/null 2>conftest.err &&
19458 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19459 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19460 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19461 # icc doesn't choke on unknown options, it will just issue warnings
19462 # or remarks (even with -Werror). So we grep stderr for any message
19463 # that says an option was ignored or not supported.
19464 # When given -MP, icc 7.0 and 7.1 complain thusly:
19465 # icc: Command line warning: ignoring option '-M'; no argument required
19466 # The diagnosis changed in icc 8.0:
19467 # icc: Command line remark: option '-MP' not supported
19468 if (grep 'ignoring option' conftest.err ||
19469 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19470 am_cv_CC_dependencies_compiler_type=$depmode
19471 break
19472 fi
19473 fi
19474 done
19475
19476 cd ..
19477 rm -rf conftest.dir
19478 else
19479 am_cv_CC_dependencies_compiler_type=none
19480 fi
19481
19482 fi
19483 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19484 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19485 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19486
19487
19488
19489 if
19490 test "x$enable_dependency_tracking" != xno \
19491 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19492 am__fastdepCC_TRUE=
19493 am__fastdepCC_FALSE='#'
19494 else
19495 am__fastdepCC_TRUE='#'
19496 am__fastdepCC_FALSE=
19497 fi
19498
19499
19500
19501
19502
19503
19504
19505 # Check whether --with-xorg-module-dir or --without-xorg-module-dir was given.
19506 if test "${with_xorg_module_dir+set}" = set; then
19507 withval="$with_xorg_module_dir"
19508 moduledir="$withval"
19509 else
19510 moduledir="$libdir/xorg/modules"
19511 fi;
19512
19513 # Check whether --enable-dri or --disable-dri was given.
19514 if test "${enable_dri+set}" = set; then
19515 enableval="$enable_dri"
19516 DRI="$enableval"
19517 else
19518 DRI=auto
19519 fi;
19520
19521 # Checks for extensions
19522
19523 SAVE_CFLAGS="$CFLAGS"
19524 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
19525 cat >conftest.$ac_ext <<_ACEOF
19526 /* confdefs.h. */
19527 _ACEOF
19528 cat confdefs.h >>conftest.$ac_ext
19529 cat >>conftest.$ac_ext <<_ACEOF
19530 /* end confdefs.h. */
19531
19532 #include "xorg-server.h"
19533 #if !defined RANDR
19534 #error RANDR not defined
19535 #endif
19536
19537 int
19538 main ()
19539 {
19540
19541 ;
19542 return 0;
19543 }
19544 _ACEOF
19545 rm -f conftest.$ac_objext
19546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19547 (eval $ac_compile) 2>conftest.er1
19548 ac_status=$?
19549 grep -v '^ *+' conftest.er1 >conftest.err
19550 rm -f conftest.er1
19551 cat conftest.err >&5
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); } &&
19554 { ac_try='test -z "$ac_c_werror_flag"
19555 || test ! -s conftest.err'
19556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19557 (eval $ac_try) 2>&5
19558 ac_status=$?
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); }; } &&
19561 { ac_try='test -s conftest.$ac_objext'
19562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19563 (eval $ac_try) 2>&5
19564 ac_status=$?
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); }; }; then
19567 _EXT_CHECK=yes
19568 else
19569 echo "$as_me: failed program was:" >&5
19570 sed 's/^/| /' conftest.$ac_ext >&5
19571
19572 _EXT_CHECK=no
19573 fi
19574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19575 CFLAGS="$SAVE_CFLAGS"
19576 echo "$as_me:$LINENO: checking if RANDR is defined" >&5
19577 echo $ECHO_N "checking if RANDR is defined... $ECHO_C" >&6
19578 echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
19579 echo "${ECHO_T}$_EXT_CHECK" >&6
19580 if test "$_EXT_CHECK" != no; then
19581 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19582 fi
19583
19584
19585 SAVE_CFLAGS="$CFLAGS"
19586 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
19587 cat >conftest.$ac_ext <<_ACEOF
19588 /* confdefs.h. */
19589 _ACEOF
19590 cat confdefs.h >>conftest.$ac_ext
19591 cat >>conftest.$ac_ext <<_ACEOF
19592 /* end confdefs.h. */
19593
19594 #include "xorg-server.h"
19595 #if !defined RENDER
19596 #error RENDER not defined
19597 #endif
19598
19599 int
19600 main ()
19601 {
19602
19603 ;
19604 return 0;
19605 }
19606 _ACEOF
19607 rm -f conftest.$ac_objext
19608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19609 (eval $ac_compile) 2>conftest.er1
19610 ac_status=$?
19611 grep -v '^ *+' conftest.er1 >conftest.err
19612 rm -f conftest.er1
19613 cat conftest.err >&5
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); } &&
19616 { ac_try='test -z "$ac_c_werror_flag"
19617 || test ! -s conftest.err'
19618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19619 (eval $ac_try) 2>&5
19620 ac_status=$?
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); }; } &&
19623 { ac_try='test -s conftest.$ac_objext'
19624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19625 (eval $ac_try) 2>&5
19626 ac_status=$?
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); }; }; then
19629 _EXT_CHECK=yes
19630 else
19631 echo "$as_me: failed program was:" >&5
19632 sed 's/^/| /' conftest.$ac_ext >&5
19633
19634 _EXT_CHECK=no
19635 fi
19636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19637 CFLAGS="$SAVE_CFLAGS"
19638 echo "$as_me:$LINENO: checking if RENDER is defined" >&5
19639 echo $ECHO_N "checking if RENDER is defined... $ECHO_C" >&6
19640 echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
19641 echo "${ECHO_T}$_EXT_CHECK" >&6
19642 if test "$_EXT_CHECK" != no; then
19643 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
19644 fi
19645
19646
19647 SAVE_CFLAGS="$CFLAGS"
19648 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
19649 cat >conftest.$ac_ext <<_ACEOF
19650 /* confdefs.h. */
19651 _ACEOF
19652 cat confdefs.h >>conftest.$ac_ext
19653 cat >>conftest.$ac_ext <<_ACEOF
19654 /* end confdefs.h. */
19655
19656 #include "xorg-server.h"
19657 #if !defined XV
19658 #error XV not defined
19659 #endif
19660
19661 int
19662 main ()
19663 {
19664
19665 ;
19666 return 0;
19667 }
19668 _ACEOF
19669 rm -f conftest.$ac_objext
19670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19671 (eval $ac_compile) 2>conftest.er1
19672 ac_status=$?
19673 grep -v '^ *+' conftest.er1 >conftest.err
19674 rm -f conftest.er1
19675 cat conftest.err >&5
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); } &&
19678 { ac_try='test -z "$ac_c_werror_flag"
19679 || test ! -s conftest.err'
19680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19681 (eval $ac_try) 2>&5
19682 ac_status=$?
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); }; } &&
19685 { ac_try='test -s conftest.$ac_objext'
19686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19687 (eval $ac_try) 2>&5
19688 ac_status=$?
19689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690 (exit $ac_status); }; }; then
19691 _EXT_CHECK=yes
19692 else
19693 echo "$as_me: failed program was:" >&5
19694 sed 's/^/| /' conftest.$ac_ext >&5
19695
19696 _EXT_CHECK=no
19697 fi
19698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19699 CFLAGS="$SAVE_CFLAGS"
19700 echo "$as_me:$LINENO: checking if XV is defined" >&5
19701 echo $ECHO_N "checking if XV is defined... $ECHO_C" >&6
19702 echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
19703 echo "${ECHO_T}$_EXT_CHECK" >&6
19704 if test "$_EXT_CHECK" != no; then
19705 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
19706 fi
19707
19708
19709 SAVE_CFLAGS="$CFLAGS"
19710 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
19711 cat >conftest.$ac_ext <<_ACEOF
19712 /* confdefs.h. */
19713 _ACEOF
19714 cat confdefs.h >>conftest.$ac_ext
19715 cat >>conftest.$ac_ext <<_ACEOF
19716 /* end confdefs.h. */
19717
19718 #include "xorg-server.h"
19719 #if !defined DPMSExtension
19720 #error DPMSExtension not defined
19721 #endif
19722
19723 int
19724 main ()
19725 {
19726
19727 ;
19728 return 0;
19729 }
19730 _ACEOF
19731 rm -f conftest.$ac_objext
19732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19733 (eval $ac_compile) 2>conftest.er1
19734 ac_status=$?
19735 grep -v '^ *+' conftest.er1 >conftest.err
19736 rm -f conftest.er1
19737 cat conftest.err >&5
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); } &&
19740 { ac_try='test -z "$ac_c_werror_flag"
19741 || test ! -s conftest.err'
19742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19743 (eval $ac_try) 2>&5
19744 ac_status=$?
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); }; } &&
19747 { ac_try='test -s conftest.$ac_objext'
19748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19749 (eval $ac_try) 2>&5
19750 ac_status=$?
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); }; }; then
19753 _EXT_CHECK=yes
19754 else
19755 echo "$as_me: failed program was:" >&5
19756 sed 's/^/| /' conftest.$ac_ext >&5
19757
19758 _EXT_CHECK=no
19759 fi
19760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19761 CFLAGS="$SAVE_CFLAGS"
19762 echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
19763 echo $ECHO_N "checking if DPMSExtension is defined... $ECHO_C" >&6
19764 echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
19765 echo "${ECHO_T}$_EXT_CHECK" >&6
19766 if test "$_EXT_CHECK" != no; then
19767 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
19768 fi
19769
19770
19771 SAVE_CFLAGS="$CFLAGS"
19772 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
19773 cat >conftest.$ac_ext <<_ACEOF
19774 /* confdefs.h. */
19775 _ACEOF
19776 cat confdefs.h >>conftest.$ac_ext
19777 cat >>conftest.$ac_ext <<_ACEOF
19778 /* end confdefs.h. */
19779
19780 #include "xorg-server.h"
19781 #if !defined XFreeXDGA
19782 #error XFreeXDGA not defined
19783 #endif
19784
19785 int
19786 main ()
19787 {
19788
19789 ;
19790 return 0;
19791 }
19792 _ACEOF
19793 rm -f conftest.$ac_objext
19794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19795 (eval $ac_compile) 2>conftest.er1
19796 ac_status=$?
19797 grep -v '^ *+' conftest.er1 >conftest.err
19798 rm -f conftest.er1
19799 cat conftest.err >&5
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); } &&
19802 { ac_try='test -z "$ac_c_werror_flag"
19803 || test ! -s conftest.err'
19804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19805 (eval $ac_try) 2>&5
19806 ac_status=$?
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); }; } &&
19809 { ac_try='test -s conftest.$ac_objext'
19810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811 (eval $ac_try) 2>&5
19812 ac_status=$?
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); }; }; then
19815 _EXT_CHECK=yes
19816 else
19817 echo "$as_me: failed program was:" >&5
19818 sed 's/^/| /' conftest.$ac_ext >&5
19819
19820 _EXT_CHECK=no
19821 fi
19822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19823 CFLAGS="$SAVE_CFLAGS"
19824 echo "$as_me:$LINENO: checking if XFreeXDGA is defined" >&5
19825 echo $ECHO_N "checking if XFreeXDGA is defined... $ECHO_C" >&6
19826 echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
19827 echo "${ECHO_T}$_EXT_CHECK" >&6
19828 if test "$_EXT_CHECK" != no; then
19829 REQUIRED_MODULES="$REQUIRED_MODULES xf86dgaproto"
19830 fi
19831
19832
19833 # Checks for pkg-config packages
19834
19835
19836 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19837 if test -n "$ac_tool_prefix"; then
19838 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19839 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19840 echo "$as_me:$LINENO: checking for $ac_word" >&5
19841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19842 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19843 echo $ECHO_N "(cached) $ECHO_C" >&6
19844 else
19845 case $PKG_CONFIG in
19846 [\\/]* | ?:[\\/]*)
19847 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19848 ;;
19849 *)
19850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19851 for as_dir in $PATH
19852 do
19853 IFS=$as_save_IFS
19854 test -z "$as_dir" && as_dir=.
19855 for ac_exec_ext in '' $ac_executable_extensions; do
19856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19857 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19859 break 2
19860 fi
19861 done
19862 done
19863
19864 ;;
19865 esac
19866 fi
19867 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19868
19869 if test -n "$PKG_CONFIG"; then
19870 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19871 echo "${ECHO_T}$PKG_CONFIG" >&6
19872 else
19873 echo "$as_me:$LINENO: result: no" >&5
19874 echo "${ECHO_T}no" >&6
19875 fi
19876
19877 fi
19878 if test -z "$ac_cv_path_PKG_CONFIG"; then
19879 ac_pt_PKG_CONFIG=$PKG_CONFIG
19880 # Extract the first word of "pkg-config", so it can be a program name with args.
19881 set dummy pkg-config; ac_word=$2
19882 echo "$as_me:$LINENO: checking for $ac_word" >&5
19883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19884 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19885 echo $ECHO_N "(cached) $ECHO_C" >&6
19886 else
19887 case $ac_pt_PKG_CONFIG in
19888 [\\/]* | ?:[\\/]*)
19889 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19890 ;;
19891 *)
19892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19893 for as_dir in $PATH
19894 do
19895 IFS=$as_save_IFS
19896 test -z "$as_dir" && as_dir=.
19897 for ac_exec_ext in '' $ac_executable_extensions; do
19898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19899 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19901 break 2
19902 fi
19903 done
19904 done
19905
19906 ;;
19907 esac
19908 fi
19909 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19910
19911 if test -n "$ac_pt_PKG_CONFIG"; then
19912 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19913 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
19914 else
19915 echo "$as_me:$LINENO: result: no" >&5
19916 echo "${ECHO_T}no" >&6
19917 fi
19918
19919 PKG_CONFIG=$ac_pt_PKG_CONFIG
19920 else
19921 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19922 fi
19923
19924 fi
19925 if test -n "$PKG_CONFIG"; then
19926 _pkg_min_version=0.9.0
19927 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19928 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
19929 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19930 echo "$as_me:$LINENO: result: yes" >&5
19931 echo "${ECHO_T}yes" >&6
19932 else
19933 echo "$as_me:$LINENO: result: no" >&5
19934 echo "${ECHO_T}no" >&6
19935 PKG_CONFIG=""
19936 fi
19937
19938 fi
19939
19940 pkg_failed=no
19941 echo "$as_me:$LINENO: checking for XORG" >&5
19942 echo $ECHO_N "checking for XORG... $ECHO_C" >&6
19943
19944 if test -n "$PKG_CONFIG"; then
19945 if test -n "$XORG_CFLAGS"; then
19946 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19947 else
19948 if test -n "$PKG_CONFIG" && \
19949 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
19950 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
19951 ac_status=$?
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); }; then
19954 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19955 else
19956 pkg_failed=yes
19957 fi
19958 fi
19959 else
19960 pkg_failed=untried
19961 fi
19962 if test -n "$PKG_CONFIG"; then
19963 if test -n "$XORG_LIBS"; then
19964 pkg_cv_XORG_LIBS="$XORG_LIBS"
19965 else
19966 if test -n "$PKG_CONFIG" && \
19967 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
19968 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
19969 ac_status=$?
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); }; then
19972 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19973 else
19974 pkg_failed=yes
19975 fi
19976 fi
19977 else
19978 pkg_failed=untried
19979 fi
19980
19981
19982
19983 if test $pkg_failed = yes; then
19984
19985 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19986 _pkg_short_errors_supported=yes
19987 else
19988 _pkg_short_errors_supported=no
19989 fi
19990 if test $_pkg_short_errors_supported = yes; then
19991 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES"`
19992 else
19993 XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES"`
19994 fi
19995 # Put the nasty error message in config.log where it belongs
19996 echo "$XORG_PKG_ERRORS" >&5
19997
19998 { { echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
19999
20000 $XORG_PKG_ERRORS
20001
20002 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20003 installed software in a non-standard prefix.
20004
20005 Alternatively, you may set the environment variables XORG_CFLAGS
20006 and XORG_LIBS to avoid the need to call pkg-config.
20007 See the pkg-config man page for more details.
20008 " >&5
20009 echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
20010
20011 $XORG_PKG_ERRORS
20012
20013 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20014 installed software in a non-standard prefix.
20015
20016 Alternatively, you may set the environment variables XORG_CFLAGS
20017 and XORG_LIBS to avoid the need to call pkg-config.
20018 See the pkg-config man page for more details.
20019 " >&2;}
20020 { (exit 1); exit 1; }; }
20021 elif test $pkg_failed = untried; then
20022 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20023 is in your PATH or set the PKG_CONFIG environment variable to the full
20024 path to pkg-config.
20025
20026 Alternatively, you may set the environment variables XORG_CFLAGS
20027 and XORG_LIBS to avoid the need to call pkg-config.
20028 See the pkg-config man page for more details.
20029
20030 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20031 See \`config.log' for more details." >&5
20032 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20033 is in your PATH or set the PKG_CONFIG environment variable to the full
20034 path to pkg-config.
20035
20036 Alternatively, you may set the environment variables XORG_CFLAGS
20037 and XORG_LIBS to avoid the need to call pkg-config.
20038 See the pkg-config man page for more details.
20039
20040 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20041 See \`config.log' for more details." >&2;}
20042 { (exit 1); exit 1; }; }
20043 else
20044 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
20045 XORG_LIBS=$pkg_cv_XORG_LIBS
20046 echo "$as_me:$LINENO: result: yes" >&5
20047 echo "${ECHO_T}yes" >&6
20048 :
20049 fi
20050 sdkdir=$(pkg-config --variable=sdkdir xorg-server)
20051
20052 # Checks for libraries.
20053
20054 # Checks for header files.
20055 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20056 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20057 if test "${ac_cv_header_stdc+set}" = set; then
20058 echo $ECHO_N "(cached) $ECHO_C" >&6
20059 else
20060 cat >conftest.$ac_ext <<_ACEOF
20061 /* confdefs.h. */
20062 _ACEOF
20063 cat confdefs.h >>conftest.$ac_ext
20064 cat >>conftest.$ac_ext <<_ACEOF
20065 /* end confdefs.h. */
20066 #include <stdlib.h>
20067 #include <stdarg.h>
20068 #include <string.h>
20069 #include <float.h>
20070
20071 int
20072 main ()
20073 {
20074
20075 ;
20076 return 0;
20077 }
20078 _ACEOF
20079 rm -f conftest.$ac_objext
20080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20081 (eval $ac_compile) 2>conftest.er1
20082 ac_status=$?
20083 grep -v '^ *+' conftest.er1 >conftest.err
20084 rm -f conftest.er1
20085 cat conftest.err >&5
20086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087 (exit $ac_status); } &&
20088 { ac_try='test -z "$ac_c_werror_flag"
20089 || test ! -s conftest.err'
20090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20091 (eval $ac_try) 2>&5
20092 ac_status=$?
20093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); }; } &&
20095 { ac_try='test -s conftest.$ac_objext'
20096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20097 (eval $ac_try) 2>&5
20098 ac_status=$?
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); }; }; then
20101 ac_cv_header_stdc=yes
20102 else
20103 echo "$as_me: failed program was:" >&5
20104 sed 's/^/| /' conftest.$ac_ext >&5
20105
20106 ac_cv_header_stdc=no
20107 fi
20108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20109
20110 if test $ac_cv_header_stdc = yes; then
20111 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20112 cat >conftest.$ac_ext <<_ACEOF
20113 /* confdefs.h. */
20114 _ACEOF
20115 cat confdefs.h >>conftest.$ac_ext
20116 cat >>conftest.$ac_ext <<_ACEOF
20117 /* end confdefs.h. */
20118 #include <string.h>
20119
20120 _ACEOF
20121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20122 $EGREP "memchr" >/dev/null 2>&1; then
20123 :
20124 else
20125 ac_cv_header_stdc=no
20126 fi
20127 rm -f conftest*
20128
20129 fi
20130
20131 if test $ac_cv_header_stdc = yes; then
20132 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20133 cat >conftest.$ac_ext <<_ACEOF
20134 /* confdefs.h. */
20135 _ACEOF
20136 cat confdefs.h >>conftest.$ac_ext
20137 cat >>conftest.$ac_ext <<_ACEOF
20138 /* end confdefs.h. */
20139 #include <stdlib.h>
20140
20141 _ACEOF
20142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20143 $EGREP "free" >/dev/null 2>&1; then
20144 :
20145 else
20146 ac_cv_header_stdc=no
20147 fi
20148 rm -f conftest*
20149
20150 fi
20151
20152 if test $ac_cv_header_stdc = yes; then
20153 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20154 if test "$cross_compiling" = yes; then
20155 :
20156 else
20157 cat >conftest.$ac_ext <<_ACEOF
20158 /* confdefs.h. */
20159 _ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h. */
20163 #include <ctype.h>
20164 #if ((' ' & 0x0FF) == 0x020)
20165 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20166 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20167 #else
20168 # define ISLOWER(c) \
20169 (('a' <= (c) && (c) <= 'i') \
20170 || ('j' <= (c) && (c) <= 'r') \
20171 || ('s' <= (c) && (c) <= 'z'))
20172 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20173 #endif
20174
20175 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20176 int
20177 main ()
20178 {
20179 int i;
20180 for (i = 0; i < 256; i++)
20181 if (XOR (islower (i), ISLOWER (i))
20182 || toupper (i) != TOUPPER (i))
20183 exit(2);
20184 exit (0);
20185 }
20186 _ACEOF
20187 rm -f conftest$ac_exeext
20188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20189 (eval $ac_link) 2>&5
20190 ac_status=$?
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20194 (eval $ac_try) 2>&5
20195 ac_status=$?
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); }; }; then
20198 :
20199 else
20200 echo "$as_me: program exited with status $ac_status" >&5
20201 echo "$as_me: failed program was:" >&5
20202 sed 's/^/| /' conftest.$ac_ext >&5
20203
20204 ( exit $ac_status )
20205 ac_cv_header_stdc=no
20206 fi
20207 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20208 fi
20209 fi
20210 fi
20211 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20212 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20213 if test $ac_cv_header_stdc = yes; then
20214
20215 cat >>confdefs.h <<\_ACEOF
20216 #define STDC_HEADERS 1
20217 _ACEOF
20218
20219 fi
20220
20221
20222 if test "$DRI" != no; then
20223 as_ac_File=`echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
20224 echo "$as_me:$LINENO: checking for ${sdkdir}/dri.h" >&5
20225 echo $ECHO_N "checking for ${sdkdir}/dri.h... $ECHO_C" >&6
20226 if eval "test \"\${$as_ac_File+set}\" = set"; then
20227 echo $ECHO_N "(cached) $ECHO_C" >&6
20228 else
20229 test "$cross_compiling" = yes &&
20230 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
20231 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
20232 { (exit 1); exit 1; }; }
20233 if test -r "${sdkdir}/dri.h"; then
20234 eval "$as_ac_File=yes"
20235 else
20236 eval "$as_ac_File=no"
20237 fi
20238 fi
20239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
20240 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
20241 if test `eval echo '${'$as_ac_File'}'` = yes; then
20242 have_dri_h="yes"
20243 else
20244 have_dri_h="no"
20245 fi
20246
20247 as_ac_File=`echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
20248 echo "$as_me:$LINENO: checking for ${sdkdir}/sarea.h" >&5
20249 echo $ECHO_N "checking for ${sdkdir}/sarea.h... $ECHO_C" >&6
20250 if eval "test \"\${$as_ac_File+set}\" = set"; then
20251 echo $ECHO_N "(cached) $ECHO_C" >&6
20252 else
20253 test "$cross_compiling" = yes &&
20254 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
20255 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
20256 { (exit 1); exit 1; }; }
20257 if test -r "${sdkdir}/sarea.h"; then
20258 eval "$as_ac_File=yes"
20259 else
20260 eval "$as_ac_File=no"
20261 fi
20262 fi
20263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
20264 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
20265 if test `eval echo '${'$as_ac_File'}'` = yes; then
20266 have_sarea_h="yes"
20267 else
20268 have_sarea_h="no"
20269 fi
20270
20271 as_ac_File=`echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
20272 echo "$as_me:$LINENO: checking for ${sdkdir}/dristruct.h" >&5
20273 echo $ECHO_N "checking for ${sdkdir}/dristruct.h... $ECHO_C" >&6
20274 if eval "test \"\${$as_ac_File+set}\" = set"; then
20275 echo $ECHO_N "(cached) $ECHO_C" >&6
20276 else
20277 test "$cross_compiling" = yes &&
20278 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
20279 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
20280 { (exit 1); exit 1; }; }
20281 if test -r "${sdkdir}/dristruct.h"; then
20282 eval "$as_ac_File=yes"
20283 else
20284 eval "$as_ac_File=no"
20285 fi
20286 fi
20287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
20288 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
20289 if test `eval echo '${'$as_ac_File'}'` = yes; then
20290 have_dristruct_h="yes"
20291 else
20292 have_dristruct_h="no"
20293 fi
20294
20295 fi
20296
20297 echo "$as_me:$LINENO: checking whether to include DRI support" >&5
20298 echo $ECHO_N "checking whether to include DRI support... $ECHO_C" >&6
20299 if test x$DRI = xauto; then
20300 if test "$have_dri_h" = yes -a \
20301 "$have_sarea_h" = yes -a \
20302 "$have_dristruct_h" = yes; then
20303 DRI="yes"
20304 else
20305 DRI="no"
20306 fi
20307 fi
20308 echo "$as_me:$LINENO: result: $DRI" >&5
20309 echo "${ECHO_T}$DRI" >&6
20310
20311
20312
20313 if test x$DRI = xyes; then
20314 DRI_TRUE=
20315 DRI_FALSE='#'
20316 else
20317 DRI_TRUE='#'
20318 DRI_FALSE=
20319 fi
20320
20321 if test "$DRI" = yes; then
20322
20323 pkg_failed=no
20324 echo "$as_me:$LINENO: checking for DRI" >&5
20325 echo $ECHO_N "checking for DRI... $ECHO_C" >&6
20326
20327 if test -n "$PKG_CONFIG"; then
20328 if test -n "$DRI_CFLAGS"; then
20329 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
20330 else
20331 if test -n "$PKG_CONFIG" && \
20332 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5
20333 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
20334 ac_status=$?
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); }; then
20337 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null`
20338 else
20339 pkg_failed=yes
20340 fi
20341 fi
20342 else
20343 pkg_failed=untried
20344 fi
20345 if test -n "$PKG_CONFIG"; then
20346 if test -n "$DRI_LIBS"; then
20347 pkg_cv_DRI_LIBS="$DRI_LIBS"
20348 else
20349 if test -n "$PKG_CONFIG" && \
20350 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\"") >&5
20351 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
20352 ac_status=$?
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); }; then
20355 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null`
20356 else
20357 pkg_failed=yes
20358 fi
20359 fi
20360 else
20361 pkg_failed=untried
20362 fi
20363
20364
20365
20366 if test $pkg_failed = yes; then
20367
20368 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20369 _pkg_short_errors_supported=yes
20370 else
20371 _pkg_short_errors_supported=no
20372 fi
20373 if test $_pkg_short_errors_supported = yes; then
20374 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libdrm >= 2.0 xf86driproto"`
20375 else
20376 DRI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libdrm >= 2.0 xf86driproto"`
20377 fi
20378 # Put the nasty error message in config.log where it belongs
20379 echo "$DRI_PKG_ERRORS" >&5
20380
20381 { { echo "$as_me:$LINENO: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met:
20382
20383 $DRI_PKG_ERRORS
20384
20385 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20386 installed software in a non-standard prefix.
20387
20388 Alternatively, you may set the environment variables DRI_CFLAGS
20389 and DRI_LIBS to avoid the need to call pkg-config.
20390 See the pkg-config man page for more details.
20391 " >&5
20392 echo "$as_me: error: Package requirements (libdrm >= 2.0 xf86driproto) were not met:
20393
20394 $DRI_PKG_ERRORS
20395
20396 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20397 installed software in a non-standard prefix.
20398
20399 Alternatively, you may set the environment variables DRI_CFLAGS
20400 and DRI_LIBS to avoid the need to call pkg-config.
20401 See the pkg-config man page for more details.
20402 " >&2;}
20403 { (exit 1); exit 1; }; }
20404 elif test $pkg_failed = untried; then
20405 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20406 is in your PATH or set the PKG_CONFIG environment variable to the full
20407 path to pkg-config.
20408
20409 Alternatively, you may set the environment variables DRI_CFLAGS
20410 and DRI_LIBS to avoid the need to call pkg-config.
20411 See the pkg-config man page for more details.
20412
20413 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20414 See \`config.log' for more details." >&5
20415 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20416 is in your PATH or set the PKG_CONFIG environment variable to the full
20417 path to pkg-config.
20418
20419 Alternatively, you may set the environment variables DRI_CFLAGS
20420 and DRI_LIBS to avoid the need to call pkg-config.
20421 See the pkg-config man page for more details.
20422
20423 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20424 See \`config.log' for more details." >&2;}
20425 { (exit 1); exit 1; }; }
20426 else
20427 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
20428 DRI_LIBS=$pkg_cv_DRI_LIBS
20429 echo "$as_me:$LINENO: result: yes" >&5
20430 echo "${ECHO_T}yes" >&6
20431 :
20432 fi
20433
20434 cat >>confdefs.h <<\_ACEOF
20435 #define XF86DRI 1
20436 _ACEOF
20437
20438
20439 cat >>confdefs.h <<\_ACEOF
20440 #define XF86DRI_DEVEL 1
20441 _ACEOF
20442
20443 fi
20444
20445
20446
20447
20448
20449 DRIVER_NAME=glint
20450
20451
20452
20453
20454
20455 if test x$APP_MAN_SUFFIX = x ; then
20456 case $host_os in
20457 linux*) APP_MAN_SUFFIX=1x ;;
20458 *) APP_MAN_SUFFIX=1 ;;
20459 esac
20460 fi
20461 if test x$APP_MAN_DIR = x ; then
20462 case $host_os in
20463 linux*) APP_MAN_DIR='$(mandir)/man1' ;;
20464 *) APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' ;;
20465 esac
20466 fi
20467
20468 if test x$LIB_MAN_SUFFIX = x ; then
20469 case $host_os in
20470 linux*) LIB_MAN_SUFFIX=3x ;;
20471 *) LIB_MAN_SUFFIX=3 ;;
20472 esac
20473 fi
20474 if test x$LIB_MAN_DIR = x ; then
20475 case $host_os in
20476 linux*) LIB_MAN_DIR='$(mandir)/man3' ;;
20477 *) LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' ;;
20478 esac
20479 fi
20480
20481 if test x$FILE_MAN_SUFFIX = x ; then
20482 case $host_os in
20483 linux*) FILE_MAN_SUFFIX=5x ;;
20484 solaris*) FILE_MAN_SUFFIX=4 ;;
20485 *) FILE_MAN_SUFFIX=5 ;;
20486 esac
20487 fi
20488 if test x$FILE_MAN_DIR = x ; then
20489 case $host_os in
20490 linux*) FILE_MAN_DIR='$(mandir)/man5' ;;
20491 *) FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' ;;
20492 esac
20493 fi
20494
20495 # In Imake's linux.cf, the misc man suffix & dir was only changed for
20496 # LinuxDebian, not other Linuxes, so we leave it unchanged here
20497 if test x$MISC_MAN_SUFFIX = x ; then
20498 case $host_os in
20499 # linux*) MISC_MAN_SUFFIX=7x ;;
20500 solaris*) MISC_MAN_SUFFIX=5 ;;
20501 *) MISC_MAN_SUFFIX=7 ;;
20502 esac
20503 fi
20504 if test x$MISC_MAN_DIR = x ; then
20505 case $host_os in
20506 # linux*) MISC_MAN_DIR='$(mandir)/man7' ;;
20507 *) MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' ;;
20508 esac
20509 fi
20510
20511 # In Imake's linux.cf, the driver man suffix & dir was only changed for
20512 # LinuxDebian, not other Linuxes, so we leave it unchanged here
20513 if test x$DRIVER_MAN_SUFFIX = x ; then
20514 case $host_os in
20515 # linux*) DRIVER_MAN_SUFFIX=4x ;;
20516 solaris*) DRIVER_MAN_SUFFIX=7 ;;
20517 *) DRIVER_MAN_SUFFIX=4 ;;
20518 esac
20519 fi
20520 if test x$DRIVER_MAN_DIR = x ; then
20521 case $host_os in
20522 # linux*) DRIVER_MAN_DIR='$(mandir)/man4' ;;
20523 *) DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' ;;
20524 esac
20525 fi
20526
20527 if test x$ADMIN_MAN_SUFFIX = x ; then
20528 case $host_os in
20529 solaris*) ADMIN_MAN_SUFFIX=1m ;;
20530 *) ADMIN_MAN_SUFFIX=8 ;;
20531 esac
20532 fi
20533 if test x$ADMIN_MAN_DIR = x ; then
20534 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20535 fi
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553 # Check whether --with-release-version or --without-release-version was given.
20554 if test "${with_release_version+set}" = set; then
20555 withval="$with_release_version"
20556 RELEASE_VERSION="$withval"
20557 else
20558 RELEASE_VERSION=""
20559 fi;
20560 if test "x$RELEASE_VERSION" != "x"; then
20561 PACKAGE="$PACKAGE-$RELEASE_VERSION"
20562 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
20563 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
20564 echo "$as_me: Building with package name set to $PACKAGE" >&6;}
20565 fi
20566
20567
20568 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
20569 cat >confcache <<\_ACEOF
20570 # This file is a shell script that caches the results of configure
20571 # tests run on this system so they can be shared between configure
20572 # scripts and configure runs, see configure's option --config-cache.
20573 # It is not useful on other systems. If it contains results you don't
20574 # want to keep, you may remove or edit it.
20575 #
20576 # config.status only pays attention to the cache file if you give it
20577 # the --recheck option to rerun configure.
20578 #
20579 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20580 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20581 # following values.
20582
20583 _ACEOF
20584
20585 # The following way of writing the cache mishandles newlines in values,
20586 # but we know of no workaround that is simple, portable, and efficient.
20587 # So, don't put newlines in cache variables' values.
20588 # Ultrix sh set writes to stderr and can't be redirected directly,
20589 # and sets the high bit in the cache file unless we assign to the vars.
20590 {
20591 (set) 2>&1 |
20592 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20593 *ac_space=\ *)
20594 # `set' does not quote correctly, so add quotes (double-quote
20595 # substitution turns \\\\ into \\, and sed turns \\ into \).
20596 sed -n \
20597 "s/'/'\\\\''/g;
20598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20599 ;;
20600 *)
20601 # `set' quotes correctly as required by POSIX, so do not add quotes.
20602 sed -n \
20603 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20604 ;;
20605 esac;
20606 } |
20607 sed '
20608 t clear
20609 : clear
20610 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20611 t end
20612 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20613 : end' >>confcache
20614 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20615 if test -w $cache_file; then
20616 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20617 cat confcache >$cache_file
20618 else
20619 echo "not updating unwritable cache $cache_file"
20620 fi
20621 fi
20622 rm -f confcache
20623
20624 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20625 # Let make expand exec_prefix.
20626 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20627
20628 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20629 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20630 # trailing colons and then remove the whole line if VPATH becomes empty
20631 # (actually we leave an empty line to preserve line numbers).
20632 if test "x$srcdir" = x.; then
20633 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20634 s/:*\$(srcdir):*/:/;
20635 s/:*\${srcdir}:*/:/;
20636 s/:*@srcdir@:*/:/;
20637 s/^\([^=]*=[ ]*\):*/\1/;
20638 s/:*$//;
20639 s/^[^=]*=[ ]*$//;
20640 }'
20641 fi
20642
20643 DEFS=-DHAVE_CONFIG_H
20644
20645 ac_libobjs=
20646 ac_ltlibobjs=
20647 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20648 # 1. Remove the extension, and $U if already installed.
20649 ac_i=`echo "$ac_i" |
20650 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20651 # 2. Add them.
20652 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20653 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20654 done
20655 LIBOBJS=$ac_libobjs
20656
20657 LTLIBOBJS=$ac_ltlibobjs
20658
20659
20660 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20661 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20662 Usually this means the macro was only invoked conditionally." >&5
20663 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20664 Usually this means the macro was only invoked conditionally." >&2;}
20665 { (exit 1); exit 1; }; }
20666 fi
20667 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20668 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20669 Usually this means the macro was only invoked conditionally." >&5
20670 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20671 Usually this means the macro was only invoked conditionally." >&2;}
20672 { (exit 1); exit 1; }; }
20673 fi
20674 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20675 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20676 Usually this means the macro was only invoked conditionally." >&5
20677 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20678 Usually this means the macro was only invoked conditionally." >&2;}
20679 { (exit 1); exit 1; }; }
20680 fi
20681 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20682 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20683 Usually this means the macro was only invoked conditionally." >&5
20684 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20685 Usually this means the macro was only invoked conditionally." >&2;}
20686 { (exit 1); exit 1; }; }
20687 fi
20688 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20689 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20690 Usually this means the macro was only invoked conditionally." >&5
20691 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20692 Usually this means the macro was only invoked conditionally." >&2;}
20693 { (exit 1); exit 1; }; }
20694 fi
20695 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
20696 { { echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined.
20697 Usually this means the macro was only invoked conditionally." >&5
20698 echo "$as_me: error: conditional \"DRI\" was never defined.
20699 Usually this means the macro was only invoked conditionally." >&2;}
20700 { (exit 1); exit 1; }; }
20701 fi
20702
20703 : ${CONFIG_STATUS=./config.status}
20704 ac_clean_files_save=$ac_clean_files
20705 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20706 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20707 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20708 cat >$CONFIG_STATUS <<_ACEOF
20709 #! $SHELL
20710 # Generated by $as_me.
20711 # Run this file to recreate the current configuration.
20712 # Compiler output produced by configure, useful for debugging
20713 # configure, is in config.log if it exists.
20714
20715 debug=false
20716 ac_cs_recheck=false
20717 ac_cs_silent=false
20718 SHELL=\${CONFIG_SHELL-$SHELL}
20719 _ACEOF
20720
20721 cat >>$CONFIG_STATUS <<\_ACEOF
20722 ## --------------------- ##
20723 ## M4sh Initialization. ##
20724 ## --------------------- ##
20725
20726 # Be Bourne compatible
20727 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20728 emulate sh
20729 NULLCMD=:
20730 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20731 # is contrary to our usage. Disable this feature.
20732 alias -g '${1+"$@"}'='"$@"'
20733 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20734 set -o posix
20735 fi
20736 DUALCASE=1; export DUALCASE # for MKS sh
20737
20738 # Support unset when possible.
20739 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20740 as_unset=unset
20741 else
20742 as_unset=false
20743 fi
20744
20745
20746 # Work around bugs in pre-3.0 UWIN ksh.
20747 $as_unset ENV MAIL MAILPATH
20748 PS1='$ '
20749 PS2='> '
20750 PS4='+ '
20751
20752 # NLS nuisances.
20753 for as_var in \
20754 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20755 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20756 LC_TELEPHONE LC_TIME
20757 do
20758 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20759 eval $as_var=C; export $as_var
20760 else
20761 $as_unset $as_var
20762 fi
20763 done
20764
20765 # Required to use basename.
20766 if expr a : '\(a\)' >/dev/null 2>&1; then
20767 as_expr=expr
20768 else
20769 as_expr=false
20770 fi
20771
20772 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20773 as_basename=basename
20774 else
20775 as_basename=false
20776 fi
20777
20778
20779 # Name of the executable.
20780 as_me=`$as_basename "$0" ||
20781 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20782 X"$0" : 'X\(//\)$' \| \
20783 X"$0" : 'X\(/\)$' \| \
20784 . : '\(.\)' 2>/dev/null ||
20785 echo X/"$0" |
20786 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20787 /^X\/\(\/\/\)$/{ s//\1/; q; }
20788 /^X\/\(\/\).*/{ s//\1/; q; }
20789 s/.*/./; q'`
20790
20791
20792 # PATH needs CR, and LINENO needs CR and PATH.
20793 # Avoid depending upon Character Ranges.
20794 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20795 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20796 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20797 as_cr_digits='0123456789'
20798 as_cr_alnum=$as_cr_Letters$as_cr_digits
20799
20800 # The user is always right.
20801 if test "${PATH_SEPARATOR+set}" != set; then
20802 echo "#! /bin/sh" >conf$$.sh
20803 echo "exit 0" >>conf$$.sh
20804 chmod +x conf$$.sh
20805 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20806 PATH_SEPARATOR=';'
20807 else
20808 PATH_SEPARATOR=:
20809 fi
20810 rm -f conf$$.sh
20811 fi
20812
20813
20814 as_lineno_1=$LINENO
20815 as_lineno_2=$LINENO
20816 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20817 test "x$as_lineno_1" != "x$as_lineno_2" &&
20818 test "x$as_lineno_3" = "x$as_lineno_2" || {
20819 # Find who we are. Look in the path if we contain no path at all
20820 # relative or not.
20821 case $0 in
20822 *[\\/]* ) as_myself=$0 ;;
20823 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20824 for as_dir in $PATH
20825 do
20826 IFS=$as_save_IFS
20827 test -z "$as_dir" && as_dir=.
20828 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20829 done
20830
20831 ;;
20832 esac
20833 # We did not find ourselves, most probably we were run as `sh COMMAND'
20834 # in which case we are not to be found in the path.
20835 if test "x$as_myself" = x; then
20836 as_myself=$0
20837 fi
20838 if test ! -f "$as_myself"; then
20839 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20840 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20841 { (exit 1); exit 1; }; }
20842 fi
20843 case $CONFIG_SHELL in
20844 '')
20845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20846 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20847 do
20848 IFS=$as_save_IFS
20849 test -z "$as_dir" && as_dir=.
20850 for as_base in sh bash ksh sh5; do
20851 case $as_dir in
20852 /*)
20853 if ("$as_dir/$as_base" -c '
20854 as_lineno_1=$LINENO
20855 as_lineno_2=$LINENO
20856 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20857 test "x$as_lineno_1" != "x$as_lineno_2" &&
20858 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20859 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20860 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20861 CONFIG_SHELL=$as_dir/$as_base
20862 export CONFIG_SHELL
20863 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20864 fi;;
20865 esac
20866 done
20867 done
20868 ;;
20869 esac
20870
20871 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20872 # uniformly replaced by the line number. The first 'sed' inserts a
20873 # line-number line before each line; the second 'sed' does the real
20874 # work. The second script uses 'N' to pair each line-number line
20875 # with the numbered line, and appends trailing '-' during
20876 # substitution so that $LINENO is not a special case at line end.
20877 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20878 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20879 sed '=' <$as_myself |
20880 sed '
20881 N
20882 s,$,-,
20883 : loop
20884 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20885 t loop
20886 s,-$,,
20887 s,^['$as_cr_digits']*\n,,
20888 ' >$as_me.lineno &&
20889 chmod +x $as_me.lineno ||
20890 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20891 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20892 { (exit 1); exit 1; }; }
20893
20894 # Don't try to exec as it changes $[0], causing all sort of problems
20895 # (the dirname of $[0] is not the place where we might find the
20896 # original and so on. Autoconf is especially sensible to this).
20897 . ./$as_me.lineno
20898 # Exit status is that of the last command.
20899 exit
20900 }
20901
20902
20903 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20904 *c*,-n*) ECHO_N= ECHO_C='
20905 ' ECHO_T=' ' ;;
20906 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20907 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20908 esac
20909
20910 if expr a : '\(a\)' >/dev/null 2>&1; then
20911 as_expr=expr
20912 else
20913 as_expr=false
20914 fi
20915
20916 rm -f conf$$ conf$$.exe conf$$.file
20917 echo >conf$$.file
20918 if ln -s conf$$.file conf$$ 2>/dev/null; then
20919 # We could just check for DJGPP; but this test a) works b) is more generic
20920 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20921 if test -f conf$$.exe; then
20922 # Don't use ln at all; we don't have any links
20923 as_ln_s='cp -p'
20924 else
20925 as_ln_s='ln -s'
20926 fi
20927 elif ln conf$$.file conf$$ 2>/dev/null; then
20928 as_ln_s=ln
20929 else
20930 as_ln_s='cp -p'
20931 fi
20932 rm -f conf$$ conf$$.exe conf$$.file
20933
20934 if mkdir -p . 2>/dev/null; then
20935 as_mkdir_p=:
20936 else
20937 test -d ./-p && rmdir ./-p
20938 as_mkdir_p=false
20939 fi
20940
20941 as_executable_p="test -f"
20942
20943 # Sed expression to map a string onto a valid CPP name.
20944 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20945
20946 # Sed expression to map a string onto a valid variable name.
20947 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20948
20949
20950 # IFS
20951 # We need space, tab and new line, in precisely that order.
20952 as_nl='
20953 '
20954 IFS=" $as_nl"
20955
20956 # CDPATH.
20957 $as_unset CDPATH
20958
20959 exec 6>&1
20960
20961 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20962 # report actual input values of CONFIG_FILES etc. instead of their
20963 # values after options handling. Logging --version etc. is OK.
20964 exec 5>>config.log
20965 {
20966 echo
20967 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20968 ## Running $as_me. ##
20969 _ASBOX
20970 } >&5
20971 cat >&5 <<_CSEOF
20972
20973 This file was extended by xf86-video-glint $as_me 1.1.1, which was
20974 generated by GNU Autoconf 2.59. Invocation command line was
20975
20976 CONFIG_FILES = $CONFIG_FILES
20977 CONFIG_HEADERS = $CONFIG_HEADERS
20978 CONFIG_LINKS = $CONFIG_LINKS
20979 CONFIG_COMMANDS = $CONFIG_COMMANDS
20980 $ $0 $@
20981
20982 _CSEOF
20983 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20984 echo >&5
20985 _ACEOF
20986
20987 # Files that config.status was made for.
20988 if test -n "$ac_config_files"; then
20989 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20990 fi
20991
20992 if test -n "$ac_config_headers"; then
20993 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20994 fi
20995
20996 if test -n "$ac_config_links"; then
20997 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20998 fi
20999
21000 if test -n "$ac_config_commands"; then
21001 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21002 fi
21003
21004 cat >>$CONFIG_STATUS <<\_ACEOF
21005
21006 ac_cs_usage="\
21007 \`$as_me' instantiates files from templates according to the
21008 current configuration.
21009
21010 Usage: $0 [OPTIONS] [FILE]...
21011
21012 -h, --help print this help, then exit
21013 -V, --version print version number, then exit
21014 -q, --quiet do not print progress messages
21015 -d, --debug don't remove temporary files
21016 --recheck update $as_me by reconfiguring in the same conditions
21017 --file=FILE[:TEMPLATE]
21018 instantiate the configuration file FILE
21019 --header=FILE[:TEMPLATE]
21020 instantiate the configuration header FILE
21021
21022 Configuration files:
21023 $config_files
21024
21025 Configuration headers:
21026 $config_headers
21027
21028 Configuration commands:
21029 $config_commands
21030
21031 Report bugs to <bug-autoconf@gnu.org>."
21032 _ACEOF
21033
21034 cat >>$CONFIG_STATUS <<_ACEOF
21035 ac_cs_version="\\
21036 xf86-video-glint config.status 1.1.1
21037 configured by $0, generated by GNU Autoconf 2.59,
21038 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21039
21040 Copyright (C) 2003 Free Software Foundation, Inc.
21041 This config.status script is free software; the Free Software Foundation
21042 gives unlimited permission to copy, distribute and modify it."
21043 srcdir=$srcdir
21044 INSTALL="$INSTALL"
21045 _ACEOF
21046
21047 cat >>$CONFIG_STATUS <<\_ACEOF
21048 # If no file are specified by the user, then we need to provide default
21049 # value. By we need to know if files were specified by the user.
21050 ac_need_defaults=:
21051 while test $# != 0
21052 do
21053 case $1 in
21054 --*=*)
21055 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21056 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21057 ac_shift=:
21058 ;;
21059 -*)
21060 ac_option=$1
21061 ac_optarg=$2
21062 ac_shift=shift
21063 ;;
21064 *) # This is not an option, so the user has probably given explicit
21065 # arguments.
21066 ac_option=$1
21067 ac_need_defaults=false;;
21068 esac
21069
21070 case $ac_option in
21071 # Handling of the options.
21072 _ACEOF
21073 cat >>$CONFIG_STATUS <<\_ACEOF
21074 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21075 ac_cs_recheck=: ;;
21076 --version | --vers* | -V )
21077 echo "$ac_cs_version"; exit 0 ;;
21078 --he | --h)
21079 # Conflict between --help and --header
21080 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21081 Try \`$0 --help' for more information." >&5
21082 echo "$as_me: error: ambiguous option: $1
21083 Try \`$0 --help' for more information." >&2;}
21084 { (exit 1); exit 1; }; };;
21085 --help | --hel | -h )
21086 echo "$ac_cs_usage"; exit 0 ;;
21087 --debug | --d* | -d )
21088 debug=: ;;
21089 --file | --fil | --fi | --f )
21090 $ac_shift
21091 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21092 ac_need_defaults=false;;
21093 --header | --heade | --head | --hea )
21094 $ac_shift
21095 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21096 ac_need_defaults=false;;
21097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21098 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21099 ac_cs_silent=: ;;
21100
21101 # This is an error.
21102 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21103 Try \`$0 --help' for more information." >&5
21104 echo "$as_me: error: unrecognized option: $1
21105 Try \`$0 --help' for more information." >&2;}
21106 { (exit 1); exit 1; }; } ;;
21107
21108 *) ac_config_targets="$ac_config_targets $1" ;;
21109
21110 esac
21111 shift
21112 done
21113
21114 ac_configure_extra_args=
21115
21116 if $ac_cs_silent; then
21117 exec 6>/dev/null
21118 ac_configure_extra_args="$ac_configure_extra_args --silent"
21119 fi
21120
21121 _ACEOF
21122 cat >>$CONFIG_STATUS <<_ACEOF
21123 if \$ac_cs_recheck; then
21124 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21125 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21126 fi
21127
21128 _ACEOF
21129
21130 cat >>$CONFIG_STATUS <<_ACEOF
21131 #
21132 # INIT-COMMANDS section.
21133 #
21134
21135 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21136
21137 _ACEOF
21138
21139
21140
21141 cat >>$CONFIG_STATUS <<\_ACEOF
21142 for ac_config_target in $ac_config_targets
21143 do
21144 case "$ac_config_target" in
21145 # Handling of arguments.
21146 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21147 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21148 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21149 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21150 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21151 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21152 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21153 { (exit 1); exit 1; }; };;
21154 esac
21155 done
21156
21157 # If the user did not use the arguments to specify the items to instantiate,
21158 # then the envvar interface is used. Set only those that are not.
21159 # We use the long form for the default assignment because of an extremely
21160 # bizarre bug on SunOS 4.1.3.
21161 if $ac_need_defaults; then
21162 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21163 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21164 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21165 fi
21166
21167 # Have a temporary directory for convenience. Make it in the build tree
21168 # simply because there is no reason to put it here, and in addition,
21169 # creating and moving files from /tmp can sometimes cause problems.
21170 # Create a temporary directory, and hook for its removal unless debugging.
21171 $debug ||
21172 {
21173 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21174 trap '{ (exit 1); exit 1; }' 1 2 13 15
21175 }
21176
21177 # Create a (secure) tmp directory for tmp files.
21178
21179 {
21180 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21181 test -n "$tmp" && test -d "$tmp"
21182 } ||
21183 {
21184 tmp=./confstat$$-$RANDOM
21185 (umask 077 && mkdir $tmp)
21186 } ||
21187 {
21188 echo "$me: cannot create a temporary directory in ." >&2
21189 { (exit 1); exit 1; }
21190 }
21191
21192 _ACEOF
21193
21194 cat >>$CONFIG_STATUS <<_ACEOF
21195
21196 #
21197 # CONFIG_FILES section.
21198 #
21199
21200 # No need to generate the scripts if there are no CONFIG_FILES.
21201 # This happens for instance when ./config.status config.h
21202 if test -n "\$CONFIG_FILES"; then
21203 # Protect against being on the right side of a sed subst in config.status.
21204 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21205 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21206 s,@SHELL@,$SHELL,;t t
21207 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21208 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21209 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21210 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21211 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21212 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21213 s,@exec_prefix@,$exec_prefix,;t t
21214 s,@prefix@,$prefix,;t t
21215 s,@program_transform_name@,$program_transform_name,;t t
21216 s,@bindir@,$bindir,;t t
21217 s,@sbindir@,$sbindir,;t t
21218 s,@libexecdir@,$libexecdir,;t t
21219 s,@datadir@,$datadir,;t t
21220 s,@sysconfdir@,$sysconfdir,;t t
21221 s,@sharedstatedir@,$sharedstatedir,;t t
21222 s,@localstatedir@,$localstatedir,;t t
21223 s,@libdir@,$libdir,;t t
21224 s,@includedir@,$includedir,;t t
21225 s,@oldincludedir@,$oldincludedir,;t t
21226 s,@infodir@,$infodir,;t t
21227 s,@mandir@,$mandir,;t t
21228 s,@build_alias@,$build_alias,;t t
21229 s,@host_alias@,$host_alias,;t t
21230 s,@target_alias@,$target_alias,;t t
21231 s,@DEFS@,$DEFS,;t t
21232 s,@ECHO_C@,$ECHO_C,;t t
21233 s,@ECHO_N@,$ECHO_N,;t t
21234 s,@ECHO_T@,$ECHO_T,;t t
21235 s,@LIBS@,$LIBS,;t t
21236 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21237 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21238 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21239 s,@CYGPATH_W@,$CYGPATH_W,;t t
21240 s,@PACKAGE@,$PACKAGE,;t t
21241 s,@VERSION@,$VERSION,;t t
21242 s,@ACLOCAL@,$ACLOCAL,;t t
21243 s,@AUTOCONF@,$AUTOCONF,;t t
21244 s,@AUTOMAKE@,$AUTOMAKE,;t t
21245 s,@AUTOHEADER@,$AUTOHEADER,;t t
21246 s,@MAKEINFO@,$MAKEINFO,;t t
21247 s,@install_sh@,$install_sh,;t t
21248 s,@STRIP@,$STRIP,;t t
21249 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21250 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21251 s,@mkdir_p@,$mkdir_p,;t t
21252 s,@AWK@,$AWK,;t t
21253 s,@SET_MAKE@,$SET_MAKE,;t t
21254 s,@am__leading_dot@,$am__leading_dot,;t t
21255 s,@AMTAR@,$AMTAR,;t t
21256 s,@am__tar@,$am__tar,;t t
21257 s,@am__untar@,$am__untar,;t t
21258 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21259 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21260 s,@MAINT@,$MAINT,;t t
21261 s,@build@,$build,;t t
21262 s,@build_cpu@,$build_cpu,;t t
21263 s,@build_vendor@,$build_vendor,;t t
21264 s,@build_os@,$build_os,;t t
21265 s,@host@,$host,;t t
21266 s,@host_cpu@,$host_cpu,;t t
21267 s,@host_vendor@,$host_vendor,;t t
21268 s,@host_os@,$host_os,;t t
21269 s,@CC@,$CC,;t t
21270 s,@CFLAGS@,$CFLAGS,;t t
21271 s,@LDFLAGS@,$LDFLAGS,;t t
21272 s,@CPPFLAGS@,$CPPFLAGS,;t t
21273 s,@ac_ct_CC@,$ac_ct_CC,;t t
21274 s,@EXEEXT@,$EXEEXT,;t t
21275 s,@OBJEXT@,$OBJEXT,;t t
21276 s,@DEPDIR@,$DEPDIR,;t t
21277 s,@am__include@,$am__include,;t t
21278 s,@am__quote@,$am__quote,;t t
21279 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21280 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21281 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21282 s,@CCDEPMODE@,$CCDEPMODE,;t t
21283 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21284 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21285 s,@EGREP@,$EGREP,;t t
21286 s,@LN_S@,$LN_S,;t t
21287 s,@ECHO@,$ECHO,;t t
21288 s,@AR@,$AR,;t t
21289 s,@ac_ct_AR@,$ac_ct_AR,;t t
21290 s,@RANLIB@,$RANLIB,;t t
21291 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21292 s,@CPP@,$CPP,;t t
21293 s,@CXX@,$CXX,;t t
21294 s,@CXXFLAGS@,$CXXFLAGS,;t t
21295 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21296 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21297 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21298 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21299 s,@CXXCPP@,$CXXCPP,;t t
21300 s,@F77@,$F77,;t t
21301 s,@FFLAGS@,$FFLAGS,;t t
21302 s,@ac_ct_F77@,$ac_ct_F77,;t t
21303 s,@LIBTOOL@,$LIBTOOL,;t t
21304 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21305 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
21306 s,@XORG_CFLAGS@,$XORG_CFLAGS,;t t
21307 s,@XORG_LIBS@,$XORG_LIBS,;t t
21308 s,@DRI_TRUE@,$DRI_TRUE,;t t
21309 s,@DRI_FALSE@,$DRI_FALSE,;t t
21310 s,@DRI_CFLAGS@,$DRI_CFLAGS,;t t
21311 s,@DRI_LIBS@,$DRI_LIBS,;t t
21312 s,@moduledir@,$moduledir,;t t
21313 s,@DRIVER_NAME@,$DRIVER_NAME,;t t
21314 s,@APP_MAN_SUFFIX@,$APP_MAN_SUFFIX,;t t
21315 s,@LIB_MAN_SUFFIX@,$LIB_MAN_SUFFIX,;t t
21316 s,@FILE_MAN_SUFFIX@,$FILE_MAN_SUFFIX,;t t
21317 s,@MISC_MAN_SUFFIX@,$MISC_MAN_SUFFIX,;t t
21318 s,@DRIVER_MAN_SUFFIX@,$DRIVER_MAN_SUFFIX,;t t
21319 s,@ADMIN_MAN_SUFFIX@,$ADMIN_MAN_SUFFIX,;t t
21320 s,@APP_MAN_DIR@,$APP_MAN_DIR,;t t
21321 s,@LIB_MAN_DIR@,$LIB_MAN_DIR,;t t
21322 s,@FILE_MAN_DIR@,$FILE_MAN_DIR,;t t
21323 s,@MISC_MAN_DIR@,$MISC_MAN_DIR,;t t
21324 s,@DRIVER_MAN_DIR@,$DRIVER_MAN_DIR,;t t
21325 s,@ADMIN_MAN_DIR@,$ADMIN_MAN_DIR,;t t
21326 s,@LIBOBJS@,$LIBOBJS,;t t
21327 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21328 CEOF
21329
21330 _ACEOF
21331
21332 cat >>$CONFIG_STATUS <<\_ACEOF
21333 # Split the substitutions into bite-sized pieces for seds with
21334 # small command number limits, like on Digital OSF/1 and HP-UX.
21335 ac_max_sed_lines=48
21336 ac_sed_frag=1 # Number of current file.
21337 ac_beg=1 # First line for current file.
21338 ac_end=$ac_max_sed_lines # Line after last line for current file.
21339 ac_more_lines=:
21340 ac_sed_cmds=
21341 while $ac_more_lines; do
21342 if test $ac_beg -gt 1; then
21343 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21344 else
21345 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21346 fi
21347 if test ! -s $tmp/subs.frag; then
21348 ac_more_lines=false
21349 else
21350 # The purpose of the label and of the branching condition is to
21351 # speed up the sed processing (if there are no `@' at all, there
21352 # is no need to browse any of the substitutions).
21353 # These are the two extra sed commands mentioned above.
21354 (echo ':t
21355 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21356 if test -z "$ac_sed_cmds"; then
21357 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21358 else
21359 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21360 fi
21361 ac_sed_frag=`expr $ac_sed_frag + 1`
21362 ac_beg=$ac_end
21363 ac_end=`expr $ac_end + $ac_max_sed_lines`
21364 fi
21365 done
21366 if test -z "$ac_sed_cmds"; then
21367 ac_sed_cmds=cat
21368 fi
21369 fi # test -n "$CONFIG_FILES"
21370
21371 _ACEOF
21372 cat >>$CONFIG_STATUS <<\_ACEOF
21373 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21374 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21375 case $ac_file in
21376 - | *:- | *:-:* ) # input from stdin
21377 cat >$tmp/stdin
21378 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21379 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21380 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21381 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21382 * ) ac_file_in=$ac_file.in ;;
21383 esac
21384
21385 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21386 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21387 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21388 X"$ac_file" : 'X\(//\)[^/]' \| \
21389 X"$ac_file" : 'X\(//\)$' \| \
21390 X"$ac_file" : 'X\(/\)' \| \
21391 . : '\(.\)' 2>/dev/null ||
21392 echo X"$ac_file" |
21393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21394 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21395 /^X\(\/\/\)$/{ s//\1/; q; }
21396 /^X\(\/\).*/{ s//\1/; q; }
21397 s/.*/./; q'`
21398 { if $as_mkdir_p; then
21399 mkdir -p "$ac_dir"
21400 else
21401 as_dir="$ac_dir"
21402 as_dirs=
21403 while test ! -d "$as_dir"; do
21404 as_dirs="$as_dir $as_dirs"
21405 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21406 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21407 X"$as_dir" : 'X\(//\)[^/]' \| \
21408 X"$as_dir" : 'X\(//\)$' \| \
21409 X"$as_dir" : 'X\(/\)' \| \
21410 . : '\(.\)' 2>/dev/null ||
21411 echo X"$as_dir" |
21412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21413 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21414 /^X\(\/\/\)$/{ s//\1/; q; }
21415 /^X\(\/\).*/{ s//\1/; q; }
21416 s/.*/./; q'`
21417 done
21418 test ! -n "$as_dirs" || mkdir $as_dirs
21419 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21420 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21421 { (exit 1); exit 1; }; }; }
21422
21423 ac_builddir=.
21424
21425 if test "$ac_dir" != .; then
21426 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21427 # A "../" for each directory in $ac_dir_suffix.
21428 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21429 else
21430 ac_dir_suffix= ac_top_builddir=
21431 fi
21432
21433 case $srcdir in
21434 .) # No --srcdir option. We are building in place.
21435 ac_srcdir=.
21436 if test -z "$ac_top_builddir"; then
21437 ac_top_srcdir=.
21438 else
21439 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21440 fi ;;
21441 [\\/]* | ?:[\\/]* ) # Absolute path.
21442 ac_srcdir=$srcdir$ac_dir_suffix;
21443 ac_top_srcdir=$srcdir ;;
21444 *) # Relative path.
21445 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21446 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21447 esac
21448
21449 # Do not use `cd foo && pwd` to compute absolute paths, because
21450 # the directories may not exist.
21451 case `pwd` in
21452 .) ac_abs_builddir="$ac_dir";;
21453 *)
21454 case "$ac_dir" in
21455 .) ac_abs_builddir=`pwd`;;
21456 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21457 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21458 esac;;
21459 esac
21460 case $ac_abs_builddir in
21461 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21462 *)
21463 case ${ac_top_builddir}. in
21464 .) ac_abs_top_builddir=$ac_abs_builddir;;
21465 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21466 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21467 esac;;
21468 esac
21469 case $ac_abs_builddir in
21470 .) ac_abs_srcdir=$ac_srcdir;;
21471 *)
21472 case $ac_srcdir in
21473 .) ac_abs_srcdir=$ac_abs_builddir;;
21474 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21475 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21476 esac;;
21477 esac
21478 case $ac_abs_builddir in
21479 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21480 *)
21481 case $ac_top_srcdir in
21482 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21483 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21484 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21485 esac;;
21486 esac
21487
21488
21489 case $INSTALL in
21490 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21491 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21492 esac
21493
21494 if test x"$ac_file" != x-; then
21495 { echo "$as_me:$LINENO: creating $ac_file" >&5
21496 echo "$as_me: creating $ac_file" >&6;}
21497 rm -f "$ac_file"
21498 fi
21499 # Let's still pretend it is `configure' which instantiates (i.e., don't
21500 # use $as_me), people would be surprised to read:
21501 # /* config.h. Generated by config.status. */
21502 if test x"$ac_file" = x-; then
21503 configure_input=
21504 else
21505 configure_input="$ac_file. "
21506 fi
21507 configure_input=$configure_input"Generated from `echo $ac_file_in |
21508 sed 's,.*/,,'` by configure."
21509
21510 # First look for the input files in the build tree, otherwise in the
21511 # src tree.
21512 ac_file_inputs=`IFS=:
21513 for f in $ac_file_in; do
21514 case $f in
21515 -) echo $tmp/stdin ;;
21516 [\\/$]*)
21517 # Absolute (can't be DOS-style, as IFS=:)
21518 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21519 echo "$as_me: error: cannot find input file: $f" >&2;}
21520 { (exit 1); exit 1; }; }
21521 echo "$f";;
21522 *) # Relative
21523 if test -f "$f"; then
21524 # Build tree
21525 echo "$f"
21526 elif test -f "$srcdir/$f"; then
21527 # Source tree
21528 echo "$srcdir/$f"
21529 else
21530 # /dev/null tree
21531 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21532 echo "$as_me: error: cannot find input file: $f" >&2;}
21533 { (exit 1); exit 1; }; }
21534 fi;;
21535 esac
21536 done` || { (exit 1); exit 1; }
21537 _ACEOF
21538 cat >>$CONFIG_STATUS <<_ACEOF
21539 sed "$ac_vpsub
21540 $extrasub
21541 _ACEOF
21542 cat >>$CONFIG_STATUS <<\_ACEOF
21543 :t
21544 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21545 s,@configure_input@,$configure_input,;t t
21546 s,@srcdir@,$ac_srcdir,;t t
21547 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21548 s,@top_srcdir@,$ac_top_srcdir,;t t
21549 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21550 s,@builddir@,$ac_builddir,;t t
21551 s,@abs_builddir@,$ac_abs_builddir,;t t
21552 s,@top_builddir@,$ac_top_builddir,;t t
21553 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21554 s,@INSTALL@,$ac_INSTALL,;t t
21555 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21556 rm -f $tmp/stdin
21557 if test x"$ac_file" != x-; then
21558 mv $tmp/out $ac_file
21559 else
21560 cat $tmp/out
21561 rm -f $tmp/out
21562 fi
21563
21564 done
21565 _ACEOF
21566 cat >>$CONFIG_STATUS <<\_ACEOF
21567
21568 #
21569 # CONFIG_HEADER section.
21570 #
21571
21572 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21573 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21574 #
21575 # ac_d sets the value in "#define NAME VALUE" lines.
21576 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21577 ac_dB='[ ].*$,\1#\2'
21578 ac_dC=' '
21579 ac_dD=',;t'
21580 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21581 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21582 ac_uB='$,\1#\2define\3'
21583 ac_uC=' '
21584 ac_uD=',;t'
21585
21586 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21587 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21588 case $ac_file in
21589 - | *:- | *:-:* ) # input from stdin
21590 cat >$tmp/stdin
21591 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21592 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21593 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21594 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21595 * ) ac_file_in=$ac_file.in ;;
21596 esac
21597
21598 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21599 echo "$as_me: creating $ac_file" >&6;}
21600
21601 # First look for the input files in the build tree, otherwise in the
21602 # src tree.
21603 ac_file_inputs=`IFS=:
21604 for f in $ac_file_in; do
21605 case $f in
21606 -) echo $tmp/stdin ;;
21607 [\\/$]*)
21608 # Absolute (can't be DOS-style, as IFS=:)
21609 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21610 echo "$as_me: error: cannot find input file: $f" >&2;}
21611 { (exit 1); exit 1; }; }
21612 # Do quote $f, to prevent DOS paths from being IFS'd.
21613 echo "$f";;
21614 *) # Relative
21615 if test -f "$f"; then
21616 # Build tree
21617 echo "$f"
21618 elif test -f "$srcdir/$f"; then
21619 # Source tree
21620 echo "$srcdir/$f"
21621 else
21622 # /dev/null tree
21623 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21624 echo "$as_me: error: cannot find input file: $f" >&2;}
21625 { (exit 1); exit 1; }; }
21626 fi;;
21627 esac
21628 done` || { (exit 1); exit 1; }
21629 # Remove the trailing spaces.
21630 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21631
21632 _ACEOF
21633
21634 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21635 # `conftest.undefs', that substitutes the proper values into
21636 # config.h.in to produce config.h. The first handles `#define'
21637 # templates, and the second `#undef' templates.
21638 # And first: Protect against being on the right side of a sed subst in
21639 # config.status. Protect against being in an unquoted here document
21640 # in config.status.
21641 rm -f conftest.defines conftest.undefs
21642 # Using a here document instead of a string reduces the quoting nightmare.
21643 # Putting comments in sed scripts is not portable.
21644 #
21645 # `end' is used to avoid that the second main sed command (meant for
21646 # 0-ary CPP macros) applies to n-ary macro definitions.
21647 # See the Autoconf documentation for `clear'.
21648 cat >confdef2sed.sed <<\_ACEOF
21649 s/[\\&,]/\\&/g
21650 s,[\\$`],\\&,g
21651 t clear
21652 : clear
21653 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21654 t end
21655 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21656 : end
21657 _ACEOF
21658 # If some macros were called several times there might be several times
21659 # the same #defines, which is useless. Nevertheless, we may not want to
21660 # sort them, since we want the *last* AC-DEFINE to be honored.
21661 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21662 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21663 rm -f confdef2sed.sed
21664
21665 # This sed command replaces #undef with comments. This is necessary, for
21666 # example, in the case of _POSIX_SOURCE, which is predefined and required
21667 # on some systems where configure will not decide to define it.
21668 cat >>conftest.undefs <<\_ACEOF
21669 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21670 _ACEOF
21671
21672 # Break up conftest.defines because some shells have a limit on the size
21673 # of here documents, and old seds have small limits too (100 cmds).
21674 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21675 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21676 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21677 echo ' :' >>$CONFIG_STATUS
21678 rm -f conftest.tail
21679 while grep . conftest.defines >/dev/null
21680 do
21681 # Write a limited-size here document to $tmp/defines.sed.
21682 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21683 # Speed up: don't consider the non `#define' lines.
21684 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21685 # Work around the forget-to-reset-the-flag bug.
21686 echo 't clr' >>$CONFIG_STATUS
21687 echo ': clr' >>$CONFIG_STATUS
21688 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21689 echo 'CEOF
21690 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21691 rm -f $tmp/in
21692 mv $tmp/out $tmp/in
21693 ' >>$CONFIG_STATUS
21694 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21695 rm -f conftest.defines
21696 mv conftest.tail conftest.defines
21697 done
21698 rm -f conftest.defines
21699 echo ' fi # grep' >>$CONFIG_STATUS
21700 echo >>$CONFIG_STATUS
21701
21702 # Break up conftest.undefs because some shells have a limit on the size
21703 # of here documents, and old seds have small limits too (100 cmds).
21704 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21705 rm -f conftest.tail
21706 while grep . conftest.undefs >/dev/null
21707 do
21708 # Write a limited-size here document to $tmp/undefs.sed.
21709 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21710 # Speed up: don't consider the non `#undef'
21711 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21712 # Work around the forget-to-reset-the-flag bug.
21713 echo 't clr' >>$CONFIG_STATUS
21714 echo ': clr' >>$CONFIG_STATUS
21715 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21716 echo 'CEOF
21717 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21718 rm -f $tmp/in
21719 mv $tmp/out $tmp/in
21720 ' >>$CONFIG_STATUS
21721 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21722 rm -f conftest.undefs
21723 mv conftest.tail conftest.undefs
21724 done
21725 rm -f conftest.undefs
21726
21727 cat >>$CONFIG_STATUS <<\_ACEOF
21728 # Let's still pretend it is `configure' which instantiates (i.e., don't
21729 # use $as_me), people would be surprised to read:
21730 # /* config.h. Generated by config.status. */
21731 if test x"$ac_file" = x-; then
21732 echo "/* Generated by configure. */" >$tmp/config.h
21733 else
21734 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21735 fi
21736 cat $tmp/in >>$tmp/config.h
21737 rm -f $tmp/in
21738 if test x"$ac_file" != x-; then
21739 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21740 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21741 echo "$as_me: $ac_file is unchanged" >&6;}
21742 else
21743 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21744 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21745 X"$ac_file" : 'X\(//\)[^/]' \| \
21746 X"$ac_file" : 'X\(//\)$' \| \
21747 X"$ac_file" : 'X\(/\)' \| \
21748 . : '\(.\)' 2>/dev/null ||
21749 echo X"$ac_file" |
21750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21751 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21752 /^X\(\/\/\)$/{ s//\1/; q; }
21753 /^X\(\/\).*/{ s//\1/; q; }
21754 s/.*/./; q'`
21755 { if $as_mkdir_p; then
21756 mkdir -p "$ac_dir"
21757 else
21758 as_dir="$ac_dir"
21759 as_dirs=
21760 while test ! -d "$as_dir"; do
21761 as_dirs="$as_dir $as_dirs"
21762 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21763 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21764 X"$as_dir" : 'X\(//\)[^/]' \| \
21765 X"$as_dir" : 'X\(//\)$' \| \
21766 X"$as_dir" : 'X\(/\)' \| \
21767 . : '\(.\)' 2>/dev/null ||
21768 echo X"$as_dir" |
21769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21770 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21771 /^X\(\/\/\)$/{ s//\1/; q; }
21772 /^X\(\/\).*/{ s//\1/; q; }
21773 s/.*/./; q'`
21774 done
21775 test ! -n "$as_dirs" || mkdir $as_dirs
21776 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21777 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21778 { (exit 1); exit 1; }; }; }
21779
21780 rm -f $ac_file
21781 mv $tmp/config.h $ac_file
21782 fi
21783 else
21784 cat $tmp/config.h
21785 rm -f $tmp/config.h
21786 fi
21787 # Compute $ac_file's index in $config_headers.
21788 _am_stamp_count=1
21789 for _am_header in $config_headers :; do
21790 case $_am_header in
21791 $ac_file | $ac_file:* )
21792 break ;;
21793 * )
21794 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21795 esac
21796 done
21797 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21798 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21799 X$ac_file : 'X\(//\)[^/]' \| \
21800 X$ac_file : 'X\(//\)$' \| \
21801 X$ac_file : 'X\(/\)' \| \
21802 . : '\(.\)' 2>/dev/null ||
21803 echo X$ac_file |
21804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21805 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21806 /^X\(\/\/\)$/{ s//\1/; q; }
21807 /^X\(\/\).*/{ s//\1/; q; }
21808 s/.*/./; q'`/stamp-h$_am_stamp_count
21809 done
21810 _ACEOF
21811 cat >>$CONFIG_STATUS <<\_ACEOF
21812
21813 #
21814 # CONFIG_COMMANDS section.
21815 #
21816 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21817 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21818 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21819 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21820 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21821 X"$ac_dest" : 'X\(//\)[^/]' \| \
21822 X"$ac_dest" : 'X\(//\)$' \| \
21823 X"$ac_dest" : 'X\(/\)' \| \
21824 . : '\(.\)' 2>/dev/null ||
21825 echo X"$ac_dest" |
21826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21827 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21828 /^X\(\/\/\)$/{ s//\1/; q; }
21829 /^X\(\/\).*/{ s//\1/; q; }
21830 s/.*/./; q'`
21831 { if $as_mkdir_p; then
21832 mkdir -p "$ac_dir"
21833 else
21834 as_dir="$ac_dir"
21835 as_dirs=
21836 while test ! -d "$as_dir"; do
21837 as_dirs="$as_dir $as_dirs"
21838 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21839 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21840 X"$as_dir" : 'X\(//\)[^/]' \| \
21841 X"$as_dir" : 'X\(//\)$' \| \
21842 X"$as_dir" : 'X\(/\)' \| \
21843 . : '\(.\)' 2>/dev/null ||
21844 echo X"$as_dir" |
21845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21846 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21847 /^X\(\/\/\)$/{ s//\1/; q; }
21848 /^X\(\/\).*/{ s//\1/; q; }
21849 s/.*/./; q'`
21850 done
21851 test ! -n "$as_dirs" || mkdir $as_dirs
21852 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21853 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21854 { (exit 1); exit 1; }; }; }
21855
21856 ac_builddir=.
21857
21858 if test "$ac_dir" != .; then
21859 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21860 # A "../" for each directory in $ac_dir_suffix.
21861 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21862 else
21863 ac_dir_suffix= ac_top_builddir=
21864 fi
21865
21866 case $srcdir in
21867 .) # No --srcdir option. We are building in place.
21868 ac_srcdir=.
21869 if test -z "$ac_top_builddir"; then
21870 ac_top_srcdir=.
21871 else
21872 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21873 fi ;;
21874 [\\/]* | ?:[\\/]* ) # Absolute path.
21875 ac_srcdir=$srcdir$ac_dir_suffix;
21876 ac_top_srcdir=$srcdir ;;
21877 *) # Relative path.
21878 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21879 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21880 esac
21881
21882 # Do not use `cd foo && pwd` to compute absolute paths, because
21883 # the directories may not exist.
21884 case `pwd` in
21885 .) ac_abs_builddir="$ac_dir";;
21886 *)
21887 case "$ac_dir" in
21888 .) ac_abs_builddir=`pwd`;;
21889 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21890 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21891 esac;;
21892 esac
21893 case $ac_abs_builddir in
21894 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21895 *)
21896 case ${ac_top_builddir}. in
21897 .) ac_abs_top_builddir=$ac_abs_builddir;;
21898 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21899 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21900 esac;;
21901 esac
21902 case $ac_abs_builddir in
21903 .) ac_abs_srcdir=$ac_srcdir;;
21904 *)
21905 case $ac_srcdir in
21906 .) ac_abs_srcdir=$ac_abs_builddir;;
21907 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21908 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21909 esac;;
21910 esac
21911 case $ac_abs_builddir in
21912 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21913 *)
21914 case $ac_top_srcdir in
21915 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21916 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21917 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21918 esac;;
21919 esac
21920
21921
21922 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21923 echo "$as_me: executing $ac_dest commands" >&6;}
21924 case $ac_dest in
21925 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21926 # Strip MF so we end up with the name of the file.
21927 mf=`echo "$mf" | sed -e 's/:.*$//'`
21928 # Check whether this is an Automake generated Makefile or not.
21929 # We used to match only the files named `Makefile.in', but
21930 # some people rename them; so instead we look at the file content.
21931 # Grep'ing the first line is not enough: some people post-process
21932 # each Makefile.in and add a new line on top of each file to say so.
21933 # So let's grep whole file.
21934 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21935 dirpart=`(dirname "$mf") 2>/dev/null ||
21936 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21937 X"$mf" : 'X\(//\)[^/]' \| \
21938 X"$mf" : 'X\(//\)$' \| \
21939 X"$mf" : 'X\(/\)' \| \
21940 . : '\(.\)' 2>/dev/null ||
21941 echo X"$mf" |
21942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21943 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21944 /^X\(\/\/\)$/{ s//\1/; q; }
21945 /^X\(\/\).*/{ s//\1/; q; }
21946 s/.*/./; q'`
21947 else
21948 continue
21949 fi
21950 # Extract the definition of DEPDIR, am__include, and am__quote
21951 # from the Makefile without running `make'.
21952 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21953 test -z "$DEPDIR" && continue
21954 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21955 test -z "am__include" && continue
21956 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21957 # When using ansi2knr, U may be empty or an underscore; expand it
21958 U=`sed -n 's/^U = //p' < "$mf"`
21959 # Find all dependency output files, they are included files with
21960 # $(DEPDIR) in their names. We invoke sed twice because it is the
21961 # simplest approach to changing $(DEPDIR) to its actual value in the
21962 # expansion.
21963 for file in `sed -n "
21964 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21965 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21966 # Make sure the directory exists.
21967 test -f "$dirpart/$file" && continue
21968 fdir=`(dirname "$file") 2>/dev/null ||
21969 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21970 X"$file" : 'X\(//\)[^/]' \| \
21971 X"$file" : 'X\(//\)$' \| \
21972 X"$file" : 'X\(/\)' \| \
21973 . : '\(.\)' 2>/dev/null ||
21974 echo X"$file" |
21975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21976 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21977 /^X\(\/\/\)$/{ s//\1/; q; }
21978 /^X\(\/\).*/{ s//\1/; q; }
21979 s/.*/./; q'`
21980 { if $as_mkdir_p; then
21981 mkdir -p $dirpart/$fdir
21982 else
21983 as_dir=$dirpart/$fdir
21984 as_dirs=
21985 while test ! -d "$as_dir"; do
21986 as_dirs="$as_dir $as_dirs"
21987 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21988 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21989 X"$as_dir" : 'X\(//\)[^/]' \| \
21990 X"$as_dir" : 'X\(//\)$' \| \
21991 X"$as_dir" : 'X\(/\)' \| \
21992 . : '\(.\)' 2>/dev/null ||
21993 echo X"$as_dir" |
21994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21995 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21996 /^X\(\/\/\)$/{ s//\1/; q; }
21997 /^X\(\/\).*/{ s//\1/; q; }
21998 s/.*/./; q'`
21999 done
22000 test ! -n "$as_dirs" || mkdir $as_dirs
22001 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22002 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22003 { (exit 1); exit 1; }; }; }
22004
22005 # echo "creating $dirpart/$file"
22006 echo '# dummy' > "$dirpart/$file"
22007 done
22008 done
22009 ;;
22010 esac
22011 done
22012 _ACEOF
22013
22014 cat >>$CONFIG_STATUS <<\_ACEOF
22015
22016 { (exit 0); exit 0; }
22017 _ACEOF
22018 chmod +x $CONFIG_STATUS
22019 ac_clean_files=$ac_clean_files_save
22020
22021
22022 # configure is writing to config.log, and then calls config.status.
22023 # config.status does its own redirection, appending to config.log.
22024 # Unfortunately, on DOS this fails, as config.log is still kept open
22025 # by configure, so config.status won't be able to write to it; its
22026 # output is simply discarded. So we exec the FD to /dev/null,
22027 # effectively closing config.log, so it can be properly (re)opened and
22028 # appended to by config.status. When coming back to configure, we
22029 # need to make the FD available again.
22030 if test "$no_create" != yes; then
22031 ac_cs_success=:
22032 ac_config_status_args=
22033 test "$silent" = yes &&
22034 ac_config_status_args="$ac_config_status_args --quiet"
22035 exec 5>/dev/null
22036 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22037 exec 5>>config.log
22038 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22039 # would make configure fail if this is the last instruction.
22040 $ac_cs_success || { (exit 1); exit 1; }
22041 fi
22042
22043