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-newport 0.2.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-newport'
425 PACKAGE_TARNAME='xf86-video-newport'
426 PACKAGE_VERSION='0.2.1'
427 PACKAGE_STRING='xf86-video-newport 0.2.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 SED EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG ac_pt_PKG_CONFIG XORG_CFLAGS XORG_LIBS moduledir DRIVER_NAME APP_MAN_SUFFIX LIB_MAN_SUFFIX FILE_MAN_SUFFIX MISC_MAN_SUFFIX DRIVER_MAN_SUFFIX ADMIN_MAN_SUFFIX APP_MAN_DIR LIB_MAN_DIR FILE_MAN_DIR MISC_MAN_DIR DRIVER_MAN_DIR ADMIN_MAN_DIR LINUXDOC PS2PDF BUILD_LINUXDOC_TRUE BUILD_LINUXDOC_FALSE BUILD_PDFDOC_TRUE BUILD_PDFDOC_FALSE MAKE_TEXT MAKE_PS MAKE_PDF MAKE_HTML LIBOBJS LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
515 ac_prev=
516 continue
517 fi
518
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521 # Accept the important Cygnus configure options, so we can diagnose typos.
522
523 case $ac_option in
524
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir=$ac_optarg ;;
529
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
534
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
541
542 --config-cache | -C)
543 cache_file=config.cache ;;
544
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 ac_prev=datadir ;;
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 | --da=*)
549 datadir=$ac_optarg ;;
550
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
559
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 case $ac_option in
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 *) ac_optarg=yes ;;
570 esac
571 eval "enable_$ac_feature='$ac_optarg'" ;;
572
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
581
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
584 with_gas=yes ;;
585
586 -help | --help | --hel | --he | -h)
587 ac_init_help=long ;;
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
592
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
597
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
604
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 ac_prev=infodir ;;
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
609
610 -libdir | --libdir | --libdi | --libd)
611 ac_prev=libdir ;;
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 libdir=$ac_optarg ;;
614
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
621
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
630
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 ac_prev=mandir ;;
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 mandir=$ac_optarg ;;
635
636 -nfp | --nfp | --nf)
637 # Obsolete; use --without-fp.
638 with_fp=no ;;
639
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
642 no_create=yes ;;
643
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 no_recursion=yes ;;
647
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
656
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 ac_prev=prefix ;;
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 prefix=$ac_optarg ;;
661
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
668
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
675
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
692
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
695 silent=yes ;;
696
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 ac_prev=sbindir ;;
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 | --sbi=* | --sb=*)
701 sbindir=$ac_optarg ;;
702
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
706 | --sha | --sh)
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 | --sha=* | --sh=*)
712 sharedstatedir=$ac_optarg ;;
713
714 -site | --site | --sit)
715 ac_prev=site ;;
716 -site=* | --site=* | --sit=*)
717 site=$ac_optarg ;;
718
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 ac_prev=srcdir ;;
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 srcdir=$ac_optarg ;;
723
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
730
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
735
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 verbose=yes ;;
738
739 -version | --version | --versio | --versi | --vers | -V)
740 ac_init_version=: ;;
741
742 -with-* | --with-*)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 case $ac_option in
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 *) ac_optarg=yes ;;
752 esac
753 eval "with_$ac_package='$ac_optarg'" ;;
754
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
763
764 --x)
765 # Obsolete; use --with-x.
766 with_x=yes ;;
767
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
774
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
781
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
785 ;;
786
787 *=*)
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
795 export $ac_envvar ;;
796
797 *)
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803 ;;
804
805 esac
806 done
807
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817 eval ac_val=$`echo $ac_var`
818 case $ac_val in
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
822 esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
828 do
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
851 cross_compiling=yes
852 fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
876 s/.*/./; q'`
877 srcdir=$ac_confdir
878 if test ! -r $srcdir/$ac_unique_file; then
879 srcdir=..
880 fi
881 else
882 ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
888 else
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
891 fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
949 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
950 ac_env_PKG_CONFIG_value=$PKG_CONFIG
951 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
952 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
953 ac_env_XORG_CFLAGS_set=${XORG_CFLAGS+set}
954 ac_env_XORG_CFLAGS_value=$XORG_CFLAGS
955 ac_cv_env_XORG_CFLAGS_set=${XORG_CFLAGS+set}
956 ac_cv_env_XORG_CFLAGS_value=$XORG_CFLAGS
957 ac_env_XORG_LIBS_set=${XORG_LIBS+set}
958 ac_env_XORG_LIBS_value=$XORG_LIBS
959 ac_cv_env_XORG_LIBS_set=${XORG_LIBS+set}
960 ac_cv_env_XORG_LIBS_value=$XORG_LIBS
961
962 #
963 # Report the --help message.
964 #
965 if test "$ac_init_help" = "long"; then
966 # Omit some internal or obsolete options to make the list less imposing.
967 # This message is too long to be a string in the A/UX 3.1 sh.
968 cat <<_ACEOF
969 \`configure' configures xf86-video-newport 0.2.1 to adapt to many kinds of systems.
970
971 Usage: $0 [OPTION]... [VAR=VALUE]...
972
973 To assign environment variables (e.g., CC, CFLAGS...), specify them as
974 VAR=VALUE. See below for descriptions of some of the useful variables.
975
976 Defaults for the options are specified in brackets.
977
978 Configuration:
979 -h, --help display this help and exit
980 --help=short display options specific to this package
981 --help=recursive display the short help of all the included packages
982 -V, --version display version information and exit
983 -q, --quiet, --silent do not print \`checking...' messages
984 --cache-file=FILE cache test results in FILE [disabled]
985 -C, --config-cache alias for \`--cache-file=config.cache'
986 -n, --no-create do not create output files
987 --srcdir=DIR find the sources in DIR [configure dir or \`..']
988
989 _ACEOF
990
991 cat <<_ACEOF
992 Installation directories:
993 --prefix=PREFIX install architecture-independent files in PREFIX
994 [$ac_default_prefix]
995 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
996 [PREFIX]
997
998 By default, \`make install' will install all the files in
999 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1000 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1001 for instance \`--prefix=\$HOME'.
1002
1003 For better control, use the options below.
1004
1005 Fine tuning of the installation directories:
1006 --bindir=DIR user executables [EPREFIX/bin]
1007 --sbindir=DIR system admin executables [EPREFIX/sbin]
1008 --libexecdir=DIR program executables [EPREFIX/libexec]
1009 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1010 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1011 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1012 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1013 --libdir=DIR object code libraries [EPREFIX/lib]
1014 --includedir=DIR C header files [PREFIX/include]
1015 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1016 --infodir=DIR info documentation [PREFIX/info]
1017 --mandir=DIR man documentation [PREFIX/man]
1018 _ACEOF
1019
1020 cat <<\_ACEOF
1021
1022 Program names:
1023 --program-prefix=PREFIX prepend PREFIX to installed program names
1024 --program-suffix=SUFFIX append SUFFIX to installed program names
1025 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1026
1027 System types:
1028 --build=BUILD configure for building on BUILD [guessed]
1029 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1030 _ACEOF
1031 fi
1032
1033 if test -n "$ac_init_help"; then
1034 case $ac_init_help in
1035 short | recursive ) echo "Configuration of xf86-video-newport 0.2.1:";;
1036 esac
1037 cat <<\_ACEOF
1038
1039 Optional Features:
1040 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1041 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1042 --enable-maintainer-mode enable make rules and dependencies not useful
1043 (and sometimes confusing) to the casual installer
1044 --enable-static[=PKGS]
1045 build static libraries [default=no]
1046 --enable-shared[=PKGS]
1047 build shared libraries [default=yes]
1048 --enable-fast-install[=PKGS]
1049 optimize for fast installation [default=yes]
1050 --disable-dependency-tracking speeds up one-time build
1051 --enable-dependency-tracking do not reject slow dependency extractors
1052 --disable-libtool-lock avoid locking (might break parallel builds)
1053
1054 Optional Packages:
1055 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1056 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1057 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1058 --with-pic try to use only PIC/non-PIC objects [default=use
1059 both]
1060 --with-tags[=TAGS]
1061 include additional configurations [automatic]
1062 --with-xorg-module-dir=DIR
1063 Default xorg module directory
1064 [default=$libdir/xorg/modules]
1065 --with-release-version=STRING
1066 Use release version string in package name
1067
1068 Some influential environment variables:
1069 CC C compiler command
1070 CFLAGS C compiler flags
1071 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1072 nonstandard directory <lib dir>
1073 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1074 headers in a nonstandard directory <include dir>
1075 CPP C preprocessor
1076 CXX C++ compiler command
1077 CXXFLAGS C++ compiler flags
1078 CXXCPP C++ preprocessor
1079 F77 Fortran 77 compiler command
1080 FFLAGS Fortran 77 compiler flags
1081 PKG_CONFIG path to pkg-config utility
1082 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1083 XORG_LIBS linker flags for XORG, overriding pkg-config
1084
1085 Use these variables to override the choices made by `configure' or to help
1086 it to find libraries and programs with nonstandard names/locations.
1087
1088 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1089 _ACEOF
1090 fi
1091
1092 if test "$ac_init_help" = "recursive"; then
1093 # If there are subdirs, report their specific --help.
1094 ac_popdir=`pwd`
1095 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1096 test -d $ac_dir || continue
1097 ac_builddir=.
1098
1099 if test "$ac_dir" != .; then
1100 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1101 # A "../" for each directory in $ac_dir_suffix.
1102 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1103 else
1104 ac_dir_suffix= ac_top_builddir=
1105 fi
1106
1107 case $srcdir in
1108 .) # No --srcdir option. We are building in place.
1109 ac_srcdir=.
1110 if test -z "$ac_top_builddir"; then
1111 ac_top_srcdir=.
1112 else
1113 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1114 fi ;;
1115 [\\/]* | ?:[\\/]* ) # Absolute path.
1116 ac_srcdir=$srcdir$ac_dir_suffix;
1117 ac_top_srcdir=$srcdir ;;
1118 *) # Relative path.
1119 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1120 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1121 esac
1122
1123 # Do not use `cd foo && pwd` to compute absolute paths, because
1124 # the directories may not exist.
1125 case `pwd` in
1126 .) ac_abs_builddir="$ac_dir";;
1127 *)
1128 case "$ac_dir" in
1129 .) ac_abs_builddir=`pwd`;;
1130 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1131 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1132 esac;;
1133 esac
1134 case $ac_abs_builddir in
1135 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1136 *)
1137 case ${ac_top_builddir}. in
1138 .) ac_abs_top_builddir=$ac_abs_builddir;;
1139 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1140 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1141 esac;;
1142 esac
1143 case $ac_abs_builddir in
1144 .) ac_abs_srcdir=$ac_srcdir;;
1145 *)
1146 case $ac_srcdir in
1147 .) ac_abs_srcdir=$ac_abs_builddir;;
1148 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1149 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1150 esac;;
1151 esac
1152 case $ac_abs_builddir in
1153 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1154 *)
1155 case $ac_top_srcdir in
1156 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1157 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1158 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1159 esac;;
1160 esac
1161
1162 cd $ac_dir
1163 # Check for guested configure; otherwise get Cygnus style configure.
1164 if test -f $ac_srcdir/configure.gnu; then
1165 echo
1166 $SHELL $ac_srcdir/configure.gnu --help=recursive
1167 elif test -f $ac_srcdir/configure; then
1168 echo
1169 $SHELL $ac_srcdir/configure --help=recursive
1170 elif test -f $ac_srcdir/configure.ac ||
1171 test -f $ac_srcdir/configure.in; then
1172 echo
1173 $ac_configure --help
1174 else
1175 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1176 fi
1177 cd $ac_popdir
1178 done
1179 fi
1180
1181 test -n "$ac_init_help" && exit 0
1182 if $ac_init_version; then
1183 cat <<\_ACEOF
1184 xf86-video-newport configure 0.2.1
1185 generated by GNU Autoconf 2.59
1186
1187 Copyright (C) 2003 Free Software Foundation, Inc.
1188 This configure script is free software; the Free Software Foundation
1189 gives unlimited permission to copy, distribute and modify it.
1190 _ACEOF
1191 exit 0
1192 fi
1193 exec 5>config.log
1194 cat >&5 <<_ACEOF
1195 This file contains any messages produced by compilers while
1196 running configure, to aid debugging if configure makes a mistake.
1197
1198 It was created by xf86-video-newport $as_me 0.2.1, which was
1199 generated by GNU Autoconf 2.59. Invocation command line was
1200
1201 $ $0 $@
1202
1203 _ACEOF
1204 {
1205 cat <<_ASUNAME
1206 ## --------- ##
1207 ## Platform. ##
1208 ## --------- ##
1209
1210 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1211 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1212 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1213 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1214 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1215
1216 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1217 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1218
1219 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1220 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1221 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1222 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1223 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1224 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1225 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1226
1227 _ASUNAME
1228
1229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1230 for as_dir in $PATH
1231 do
1232 IFS=$as_save_IFS
1233 test -z "$as_dir" && as_dir=.
1234 echo "PATH: $as_dir"
1235 done
1236
1237 } >&5
1238
1239 cat >&5 <<_ACEOF
1240
1241
1242 ## ----------- ##
1243 ## Core tests. ##
1244 ## ----------- ##
1245
1246 _ACEOF
1247
1248
1249 # Keep a trace of the command line.
1250 # Strip out --no-create and --no-recursion so they do not pile up.
1251 # Strip out --silent because we don't want to record it for future runs.
1252 # Also quote any args containing shell meta-characters.
1253 # Make two passes to allow for proper duplicate-argument suppression.
1254 ac_configure_args=
1255 ac_configure_args0=
1256 ac_configure_args1=
1257 ac_sep=
1258 ac_must_keep_next=false
1259 for ac_pass in 1 2
1260 do
1261 for ac_arg
1262 do
1263 case $ac_arg in
1264 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1265 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1266 | -silent | --silent | --silen | --sile | --sil)
1267 continue ;;
1268 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1269 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1270 esac
1271 case $ac_pass in
1272 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1273 2)
1274 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1275 if test $ac_must_keep_next = true; then
1276 ac_must_keep_next=false # Got value, back to normal.
1277 else
1278 case $ac_arg in
1279 *=* | --config-cache | -C | -disable-* | --disable-* \
1280 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1281 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1282 | -with-* | --with-* | -without-* | --without-* | --x)
1283 case "$ac_configure_args0 " in
1284 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1285 esac
1286 ;;
1287 -* ) ac_must_keep_next=true ;;
1288 esac
1289 fi
1290 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1291 # Get rid of the leading space.
1292 ac_sep=" "
1293 ;;
1294 esac
1295 done
1296 done
1297 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1298 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1299
1300 # When interrupted or exit'd, cleanup temporary files, and complete
1301 # config.log. We remove comments because anyway the quotes in there
1302 # would cause problems or look ugly.
1303 # WARNING: Be sure not to use single quotes in there, as some shells,
1304 # such as our DU 5.0 friend, will then `close' the trap.
1305 trap 'exit_status=$?
1306 # Save into config.log some information that might help in debugging.
1307 {
1308 echo
1309
1310 cat <<\_ASBOX
1311 ## ---------------- ##
1312 ## Cache variables. ##
1313 ## ---------------- ##
1314 _ASBOX
1315 echo
1316 # The following way of writing the cache mishandles newlines in values,
1317 {
1318 (set) 2>&1 |
1319 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1320 *ac_space=\ *)
1321 sed -n \
1322 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1323 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1324 ;;
1325 *)
1326 sed -n \
1327 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1328 ;;
1329 esac;
1330 }
1331 echo
1332
1333 cat <<\_ASBOX
1334 ## ----------------- ##
1335 ## Output variables. ##
1336 ## ----------------- ##
1337 _ASBOX
1338 echo
1339 for ac_var in $ac_subst_vars
1340 do
1341 eval ac_val=$`echo $ac_var`
1342 echo "$ac_var='"'"'$ac_val'"'"'"
1343 done | sort
1344 echo
1345
1346 if test -n "$ac_subst_files"; then
1347 cat <<\_ASBOX
1348 ## ------------- ##
1349 ## Output files. ##
1350 ## ------------- ##
1351 _ASBOX
1352 echo
1353 for ac_var in $ac_subst_files
1354 do
1355 eval ac_val=$`echo $ac_var`
1356 echo "$ac_var='"'"'$ac_val'"'"'"
1357 done | sort
1358 echo
1359 fi
1360
1361 if test -s confdefs.h; then
1362 cat <<\_ASBOX
1363 ## ----------- ##
1364 ## confdefs.h. ##
1365 ## ----------- ##
1366 _ASBOX
1367 echo
1368 sed "/^$/d" confdefs.h | sort
1369 echo
1370 fi
1371 test "$ac_signal" != 0 &&
1372 echo "$as_me: caught signal $ac_signal"
1373 echo "$as_me: exit $exit_status"
1374 } >&5
1375 rm -f core *.core &&
1376 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1377 exit $exit_status
1378 ' 0
1379 for ac_signal in 1 2 13 15; do
1380 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1381 done
1382 ac_signal=0
1383
1384 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1385 rm -rf conftest* confdefs.h
1386 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1387 echo >confdefs.h
1388
1389 # Predefined preprocessor variables.
1390
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_NAME "$PACKAGE_NAME"
1393 _ACEOF
1394
1395
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1398 _ACEOF
1399
1400
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1403 _ACEOF
1404
1405
1406 cat >>confdefs.h <<_ACEOF
1407 #define PACKAGE_STRING "$PACKAGE_STRING"
1408 _ACEOF
1409
1410
1411 cat >>confdefs.h <<_ACEOF
1412 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1413 _ACEOF
1414
1415
1416 # Let the site file select an alternate cache file if it wants to.
1417 # Prefer explicitly selected file to automatically selected ones.
1418 if test -z "$CONFIG_SITE"; then
1419 if test "x$prefix" != xNONE; then
1420 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1421 else
1422 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1423 fi
1424 fi
1425 for ac_site_file in $CONFIG_SITE; do
1426 if test -r "$ac_site_file"; then
1427 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1428 echo "$as_me: loading site script $ac_site_file" >&6;}
1429 sed 's/^/| /' "$ac_site_file" >&5
1430 . "$ac_site_file"
1431 fi
1432 done
1433
1434 if test -r "$cache_file"; then
1435 # Some versions of bash will fail to source /dev/null (special
1436 # files actually), so we avoid doing that.
1437 if test -f "$cache_file"; then
1438 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1439 echo "$as_me: loading cache $cache_file" >&6;}
1440 case $cache_file in
1441 [\\/]* | ?:[\\/]* ) . $cache_file;;
1442 *) . ./$cache_file;;
1443 esac
1444 fi
1445 else
1446 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1447 echo "$as_me: creating cache $cache_file" >&6;}
1448 >$cache_file
1449 fi
1450
1451 # Check that the precious variables saved in the cache have kept the same
1452 # value.
1453 ac_cache_corrupted=false
1454 for ac_var in `(set) 2>&1 |
1455 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1456 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1457 eval ac_new_set=\$ac_env_${ac_var}_set
1458 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1459 eval ac_new_val="\$ac_env_${ac_var}_value"
1460 case $ac_old_set,$ac_new_set in
1461 set,)
1462 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1463 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1464 ac_cache_corrupted=: ;;
1465 ,set)
1466 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1467 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1468 ac_cache_corrupted=: ;;
1469 ,);;
1470 *)
1471 if test "x$ac_old_val" != "x$ac_new_val"; then
1472 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1473 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1474 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1475 echo "$as_me: former value: $ac_old_val" >&2;}
1476 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1477 echo "$as_me: current value: $ac_new_val" >&2;}
1478 ac_cache_corrupted=:
1479 fi;;
1480 esac
1481 # Pass precious variables to config.status.
1482 if test "$ac_new_set" = set; then
1483 case $ac_new_val in
1484 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1485 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1486 *) ac_arg=$ac_var=$ac_new_val ;;
1487 esac
1488 case " $ac_configure_args " in
1489 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1490 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1491 esac
1492 fi
1493 done
1494 if $ac_cache_corrupted; then
1495 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1496 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1497 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1498 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1499 { (exit 1); exit 1; }; }
1500 fi
1501
1502 ac_ext=c
1503 ac_cpp='$CPP $CPPFLAGS'
1504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536 ac_config_headers="$ac_config_headers config.h"
1537
1538 ac_aux_dir=
1539 for ac_dir in . $srcdir/.; do
1540 if test -f $ac_dir/install-sh; then
1541 ac_aux_dir=$ac_dir
1542 ac_install_sh="$ac_aux_dir/install-sh -c"
1543 break
1544 elif test -f $ac_dir/install.sh; then
1545 ac_aux_dir=$ac_dir
1546 ac_install_sh="$ac_aux_dir/install.sh -c"
1547 break
1548 elif test -f $ac_dir/shtool; then
1549 ac_aux_dir=$ac_dir
1550 ac_install_sh="$ac_aux_dir/shtool install -c"
1551 break
1552 fi
1553 done
1554 if test -z "$ac_aux_dir"; then
1555 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1556 echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1557 { (exit 1); exit 1; }; }
1558 fi
1559 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1560 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1561 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1562
1563
1564 am__api_version="1.9"
1565 # Find a good install program. We prefer a C program (faster),
1566 # so one script is as good as another. But avoid the broken or
1567 # incompatible versions:
1568 # SysV /etc/install, /usr/sbin/install
1569 # SunOS /usr/etc/install
1570 # IRIX /sbin/install
1571 # AIX /bin/install
1572 # AmigaOS /C/install, which installs bootblocks on floppy discs
1573 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1574 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1575 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1576 # OS/2's system install, which has a completely different semantic
1577 # ./install, which can be erroneously created by make from ./install.sh.
1578 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1579 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1580 if test -z "$INSTALL"; then
1581 if test "${ac_cv_path_install+set}" = set; then
1582 echo $ECHO_N "(cached) $ECHO_C" >&6
1583 else
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 for as_dir in $PATH
1586 do
1587 IFS=$as_save_IFS
1588 test -z "$as_dir" && as_dir=.
1589 # Account for people who put trailing slashes in PATH elements.
1590 case $as_dir/ in
1591 ./ | .// | /cC/* | \
1592 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1593 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1594 /usr/ucb/* ) ;;
1595 *)
1596 # OSF1 and SCO ODT 3.0 have their own names for install.
1597 # Don't use installbsd from OSF since it installs stuff as root
1598 # by default.
1599 for ac_prog in ginstall scoinst install; do
1600 for ac_exec_ext in '' $ac_executable_extensions; do
1601 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1602 if test $ac_prog = install &&
1603 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1604 # AIX install. It has an incompatible calling convention.
1605 :
1606 elif test $ac_prog = install &&
1607 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1608 # program-specific install script used by HP pwplus--don't use.
1609 :
1610 else
1611 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1612 break 3
1613 fi
1614 fi
1615 done
1616 done
1617 ;;
1618 esac
1619 done
1620
1621
1622 fi
1623 if test "${ac_cv_path_install+set}" = set; then
1624 INSTALL=$ac_cv_path_install
1625 else
1626 # As a last resort, use the slow shell script. We don't cache a
1627 # path for INSTALL within a source directory, because that will
1628 # break other packages using the cache if that directory is
1629 # removed, or if the path is relative.
1630 INSTALL=$ac_install_sh
1631 fi
1632 fi
1633 echo "$as_me:$LINENO: result: $INSTALL" >&5
1634 echo "${ECHO_T}$INSTALL" >&6
1635
1636 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1637 # It thinks the first close brace ends the variable substitution.
1638 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1639
1640 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1641
1642 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1643
1644 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1645 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1646 # Just in case
1647 sleep 1
1648 echo timestamp > conftest.file
1649 # Do `set' in a subshell so we don't clobber the current shell's
1650 # arguments. Must try -L first in case configure is actually a
1651 # symlink; some systems play weird games with the mod time of symlinks
1652 # (eg FreeBSD returns the mod time of the symlink's containing
1653 # directory).
1654 if (
1655 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1656 if test "$*" = "X"; then
1657 # -L didn't work.
1658 set X `ls -t $srcdir/configure conftest.file`
1659 fi
1660 rm -f conftest.file
1661 if test "$*" != "X $srcdir/configure conftest.file" \
1662 && test "$*" != "X conftest.file $srcdir/configure"; then
1663
1664 # If neither matched, then we have a broken ls. This can happen
1665 # if, for instance, CONFIG_SHELL is bash and it inherits a
1666 # broken ls alias from the environment. This has actually
1667 # happened. Such a system could not be considered "sane".
1668 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1669 alias in your environment" >&5
1670 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1671 alias in your environment" >&2;}
1672 { (exit 1); exit 1; }; }
1673 fi
1674
1675 test "$2" = conftest.file
1676 )
1677 then
1678 # Ok.
1679 :
1680 else
1681 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1682 Check your system clock" >&5
1683 echo "$as_me: error: newly created file is older than distributed files!
1684 Check your system clock" >&2;}
1685 { (exit 1); exit 1; }; }
1686 fi
1687 echo "$as_me:$LINENO: result: yes" >&5
1688 echo "${ECHO_T}yes" >&6
1689 test "$program_prefix" != NONE &&
1690 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1691 # Use a double $ so make ignores it.
1692 test "$program_suffix" != NONE &&
1693 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1694 # Double any \ or $. echo might interpret backslashes.
1695 # By default was `s,x,x', remove it if useless.
1696 cat <<\_ACEOF >conftest.sed
1697 s/[\\$]/&&/g;s/;s,x,x,$//
1698 _ACEOF
1699 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1700 rm conftest.sed
1701
1702 # expand $ac_aux_dir to an absolute path
1703 am_aux_dir=`cd $ac_aux_dir && pwd`
1704
1705 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1706 # Use eval to expand $SHELL
1707 if eval "$MISSING --run true"; then
1708 am_missing_run="$MISSING --run "
1709 else
1710 am_missing_run=
1711 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1712 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1713 fi
1714
1715 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1716 # We used to keeping the `.' as first argument, in order to
1717 # allow $(mkdir_p) to be used without argument. As in
1718 # $(mkdir_p) $(somedir)
1719 # where $(somedir) is conditionally defined. However this is wrong
1720 # for two reasons:
1721 # 1. if the package is installed by a user who cannot write `.'
1722 # make install will fail,
1723 # 2. the above comment should most certainly read
1724 # $(mkdir_p) $(DESTDIR)$(somedir)
1725 # so it does not work when $(somedir) is undefined and
1726 # $(DESTDIR) is not.
1727 # To support the latter case, we have to write
1728 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1729 # so the `.' trick is pointless.
1730 mkdir_p='mkdir -p --'
1731 else
1732 # On NextStep and OpenStep, the `mkdir' command does not
1733 # recognize any option. It will interpret all options as
1734 # directories to create, and then abort because `.' already
1735 # exists.
1736 for d in ./-p ./--version;
1737 do
1738 test -d $d && rmdir $d
1739 done
1740 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1741 if test -f "$ac_aux_dir/mkinstalldirs"; then
1742 mkdir_p='$(mkinstalldirs)'
1743 else
1744 mkdir_p='$(install_sh) -d'
1745 fi
1746 fi
1747
1748 for ac_prog in gawk mawk nawk awk
1749 do
1750 # Extract the first word of "$ac_prog", so it can be a program name with args.
1751 set dummy $ac_prog; ac_word=$2
1752 echo "$as_me:$LINENO: checking for $ac_word" >&5
1753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1754 if test "${ac_cv_prog_AWK+set}" = set; then
1755 echo $ECHO_N "(cached) $ECHO_C" >&6
1756 else
1757 if test -n "$AWK"; then
1758 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1759 else
1760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761 for as_dir in $PATH
1762 do
1763 IFS=$as_save_IFS
1764 test -z "$as_dir" && as_dir=.
1765 for ac_exec_ext in '' $ac_executable_extensions; do
1766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1767 ac_cv_prog_AWK="$ac_prog"
1768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1769 break 2
1770 fi
1771 done
1772 done
1773
1774 fi
1775 fi
1776 AWK=$ac_cv_prog_AWK
1777 if test -n "$AWK"; then
1778 echo "$as_me:$LINENO: result: $AWK" >&5
1779 echo "${ECHO_T}$AWK" >&6
1780 else
1781 echo "$as_me:$LINENO: result: no" >&5
1782 echo "${ECHO_T}no" >&6
1783 fi
1784
1785 test -n "$AWK" && break
1786 done
1787
1788 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1789 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1790 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1791 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1793 else
1794 cat >conftest.make <<\_ACEOF
1795 all:
1796 @echo 'ac_maketemp="$(MAKE)"'
1797 _ACEOF
1798 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1799 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1800 if test -n "$ac_maketemp"; then
1801 eval ac_cv_prog_make_${ac_make}_set=yes
1802 else
1803 eval ac_cv_prog_make_${ac_make}_set=no
1804 fi
1805 rm -f conftest.make
1806 fi
1807 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1808 echo "$as_me:$LINENO: result: yes" >&5
1809 echo "${ECHO_T}yes" >&6
1810 SET_MAKE=
1811 else
1812 echo "$as_me:$LINENO: result: no" >&5
1813 echo "${ECHO_T}no" >&6
1814 SET_MAKE="MAKE=${MAKE-make}"
1815 fi
1816
1817 rm -rf .tst 2>/dev/null
1818 mkdir .tst 2>/dev/null
1819 if test -d .tst; then
1820 am__leading_dot=.
1821 else
1822 am__leading_dot=_
1823 fi
1824 rmdir .tst 2>/dev/null
1825
1826 # test to see if srcdir already configured
1827 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1828 test -f $srcdir/config.status; then
1829 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1830 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1831 { (exit 1); exit 1; }; }
1832 fi
1833
1834 # test whether we have cygpath
1835 if test -z "$CYGPATH_W"; then
1836 if (cygpath --version) >/dev/null 2>/dev/null; then
1837 CYGPATH_W='cygpath -w'
1838 else
1839 CYGPATH_W=echo
1840 fi
1841 fi
1842
1843
1844 # Define the identity of the package.
1845 PACKAGE='xf86-video-newport'
1846 VERSION='0.2.1'
1847
1848
1849 cat >>confdefs.h <<_ACEOF
1850 #define PACKAGE "$PACKAGE"
1851 _ACEOF
1852
1853
1854 cat >>confdefs.h <<_ACEOF
1855 #define VERSION "$VERSION"
1856 _ACEOF
1857
1858 # Some tools Automake needs.
1859
1860 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1861
1862
1863 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1864
1865
1866 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1867
1868
1869 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1870
1871
1872 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1873
1874 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1875
1876 # Installed binaries are usually stripped using `strip' when the user
1877 # run `make install-strip'. However `strip' might not be the right
1878 # tool to use in cross-compilation environments, therefore Automake
1879 # will honor the `STRIP' environment variable to overrule this program.
1880 if test "$cross_compiling" != no; then
1881 if test -n "$ac_tool_prefix"; then
1882 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1883 set dummy ${ac_tool_prefix}strip; ac_word=$2
1884 echo "$as_me:$LINENO: checking for $ac_word" >&5
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886 if test "${ac_cv_prog_STRIP+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 else
1889 if test -n "$STRIP"; then
1890 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1891 else
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 for as_dir in $PATH
1894 do
1895 IFS=$as_save_IFS
1896 test -z "$as_dir" && as_dir=.
1897 for ac_exec_ext in '' $ac_executable_extensions; do
1898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901 break 2
1902 fi
1903 done
1904 done
1905
1906 fi
1907 fi
1908 STRIP=$ac_cv_prog_STRIP
1909 if test -n "$STRIP"; then
1910 echo "$as_me:$LINENO: result: $STRIP" >&5
1911 echo "${ECHO_T}$STRIP" >&6
1912 else
1913 echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1915 fi
1916
1917 fi
1918 if test -z "$ac_cv_prog_STRIP"; then
1919 ac_ct_STRIP=$STRIP
1920 # Extract the first word of "strip", so it can be a program name with args.
1921 set dummy strip; ac_word=$2
1922 echo "$as_me:$LINENO: checking for $ac_word" >&5
1923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1924 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1926 else
1927 if test -n "$ac_ct_STRIP"; then
1928 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1929 else
1930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931 for as_dir in $PATH
1932 do
1933 IFS=$as_save_IFS
1934 test -z "$as_dir" && as_dir=.
1935 for ac_exec_ext in '' $ac_executable_extensions; do
1936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1937 ac_cv_prog_ac_ct_STRIP="strip"
1938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939 break 2
1940 fi
1941 done
1942 done
1943
1944 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1945 fi
1946 fi
1947 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1948 if test -n "$ac_ct_STRIP"; then
1949 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1950 echo "${ECHO_T}$ac_ct_STRIP" >&6
1951 else
1952 echo "$as_me:$LINENO: result: no" >&5
1953 echo "${ECHO_T}no" >&6
1954 fi
1955
1956 STRIP=$ac_ct_STRIP
1957 else
1958 STRIP="$ac_cv_prog_STRIP"
1959 fi
1960
1961 fi
1962 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1963
1964 # We need awk for the "check" target. The system "awk" is bad on
1965 # some platforms.
1966 # Always define AMTAR for backward compatibility.
1967
1968 AMTAR=${AMTAR-"${am_missing_run}tar"}
1969
1970 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1971
1972
1973
1974
1975
1976
1977 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1978 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1979 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1980 if test "${enable_maintainer_mode+set}" = set; then
1981 enableval="$enable_maintainer_mode"
1982 USE_MAINTAINER_MODE=$enableval
1983 else
1984 USE_MAINTAINER_MODE=no
1985 fi;
1986 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1987 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1988
1989
1990 if test $USE_MAINTAINER_MODE = yes; then
1991 MAINTAINER_MODE_TRUE=
1992 MAINTAINER_MODE_FALSE='#'
1993 else
1994 MAINTAINER_MODE_TRUE='#'
1995 MAINTAINER_MODE_FALSE=
1996 fi
1997
1998 MAINT=$MAINTAINER_MODE_TRUE
1999
2000
2001
2002 # Checks for programs.
2003 # Check whether --enable-static or --disable-static was given.
2004 if test "${enable_static+set}" = set; then
2005 enableval="$enable_static"
2006 p=${PACKAGE-default}
2007 case $enableval in
2008 yes) enable_static=yes ;;
2009 no) enable_static=no ;;
2010 *)
2011 enable_static=no
2012 # Look at the argument we got. We use all the common list separators.
2013 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2014 for pkg in $enableval; do
2015 IFS="$lt_save_ifs"
2016 if test "X$pkg" = "X$p"; then
2017 enable_static=yes
2018 fi
2019 done
2020 IFS="$lt_save_ifs"
2021 ;;
2022 esac
2023 else
2024 enable_static=no
2025 fi;
2026
2027
2028 # Check whether --enable-shared or --disable-shared was given.
2029 if test "${enable_shared+set}" = set; then
2030 enableval="$enable_shared"
2031 p=${PACKAGE-default}
2032 case $enableval in
2033 yes) enable_shared=yes ;;
2034 no) enable_shared=no ;;
2035 *)
2036 enable_shared=no
2037 # Look at the argument we got. We use all the common list separators.
2038 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2039 for pkg in $enableval; do
2040 IFS="$lt_save_ifs"
2041 if test "X$pkg" = "X$p"; then
2042 enable_shared=yes
2043 fi
2044 done
2045 IFS="$lt_save_ifs"
2046 ;;
2047 esac
2048 else
2049 enable_shared=yes
2050 fi;
2051
2052 # Check whether --enable-fast-install or --disable-fast-install was given.
2053 if test "${enable_fast_install+set}" = set; then
2054 enableval="$enable_fast_install"
2055 p=${PACKAGE-default}
2056 case $enableval in
2057 yes) enable_fast_install=yes ;;
2058 no) enable_fast_install=no ;;
2059 *)
2060 enable_fast_install=no
2061 # Look at the argument we got. We use all the common list separators.
2062 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2063 for pkg in $enableval; do
2064 IFS="$lt_save_ifs"
2065 if test "X$pkg" = "X$p"; then
2066 enable_fast_install=yes
2067 fi
2068 done
2069 IFS="$lt_save_ifs"
2070 ;;
2071 esac
2072 else
2073 enable_fast_install=yes
2074 fi;
2075
2076 # Make sure we can run config.sub.
2077 $ac_config_sub sun4 >/dev/null 2>&1 ||
2078 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2079 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2080 { (exit 1); exit 1; }; }
2081
2082 echo "$as_me:$LINENO: checking build system type" >&5
2083 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2084 if test "${ac_cv_build+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 else
2087 ac_cv_build_alias=$build_alias
2088 test -z "$ac_cv_build_alias" &&
2089 ac_cv_build_alias=`$ac_config_guess`
2090 test -z "$ac_cv_build_alias" &&
2091 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2092 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2093 { (exit 1); exit 1; }; }
2094 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2095 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2096 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2097 { (exit 1); exit 1; }; }
2098
2099 fi
2100 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2101 echo "${ECHO_T}$ac_cv_build" >&6
2102 build=$ac_cv_build
2103 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2104 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2105 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2106
2107
2108 echo "$as_me:$LINENO: checking host system type" >&5
2109 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2110 if test "${ac_cv_host+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2112 else
2113 ac_cv_host_alias=$host_alias
2114 test -z "$ac_cv_host_alias" &&
2115 ac_cv_host_alias=$ac_cv_build_alias
2116 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2117 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2118 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2119 { (exit 1); exit 1; }; }
2120
2121 fi
2122 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2123 echo "${ECHO_T}$ac_cv_host" >&6
2124 host=$ac_cv_host
2125 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2126 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2127 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2128
2129
2130 DEPDIR="${am__leading_dot}deps"
2131
2132 ac_config_commands="$ac_config_commands depfiles"
2133
2134
2135 am_make=${MAKE-make}
2136 cat > confinc << 'END'
2137 am__doit:
2138 @echo done
2139 .PHONY: am__doit
2140 END
2141 # If we don't find an include directive, just comment out the code.
2142 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2143 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2144 am__include="#"
2145 am__quote=
2146 _am_result=none
2147 # First try GNU make style include.
2148 echo "include confinc" > confmf
2149 # We grep out `Entering directory' and `Leaving directory'
2150 # messages which can occur if `w' ends up in MAKEFLAGS.
2151 # In particular we don't look at `^make:' because GNU make might
2152 # be invoked under some other name (usually "gmake"), in which
2153 # case it prints its new name instead of `make'.
2154 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2155 am__include=include
2156 am__quote=
2157 _am_result=GNU
2158 fi
2159 # Now try BSD make style include.
2160 if test "$am__include" = "#"; then
2161 echo '.include "confinc"' > confmf
2162 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2163 am__include=.include
2164 am__quote="\""
2165 _am_result=BSD
2166 fi
2167 fi
2168
2169
2170 echo "$as_me:$LINENO: result: $_am_result" >&5
2171 echo "${ECHO_T}$_am_result" >&6
2172 rm -f confinc confmf
2173
2174 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2175 if test "${enable_dependency_tracking+set}" = set; then
2176 enableval="$enable_dependency_tracking"
2177
2178 fi;
2179 if test "x$enable_dependency_tracking" != xno; then
2180 am_depcomp="$ac_aux_dir/depcomp"
2181 AMDEPBACKSLASH='\'
2182 fi
2183
2184
2185 if test "x$enable_dependency_tracking" != xno; then
2186 AMDEP_TRUE=
2187 AMDEP_FALSE='#'
2188 else
2189 AMDEP_TRUE='#'
2190 AMDEP_FALSE=
2191 fi
2192
2193
2194
2195 ac_ext=c
2196 ac_cpp='$CPP $CPPFLAGS'
2197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2200 if test -n "$ac_tool_prefix"; then
2201 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2202 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2203 echo "$as_me:$LINENO: checking for $ac_word" >&5
2204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2205 if test "${ac_cv_prog_CC+set}" = set; then
2206 echo $ECHO_N "(cached) $ECHO_C" >&6
2207 else
2208 if test -n "$CC"; then
2209 ac_cv_prog_CC="$CC" # Let the user override the test.
2210 else
2211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2212 for as_dir in $PATH
2213 do
2214 IFS=$as_save_IFS
2215 test -z "$as_dir" && as_dir=.
2216 for ac_exec_ext in '' $ac_executable_extensions; do
2217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2218 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2220 break 2
2221 fi
2222 done
2223 done
2224
2225 fi
2226 fi
2227 CC=$ac_cv_prog_CC
2228 if test -n "$CC"; then
2229 echo "$as_me:$LINENO: result: $CC" >&5
2230 echo "${ECHO_T}$CC" >&6
2231 else
2232 echo "$as_me:$LINENO: result: no" >&5
2233 echo "${ECHO_T}no" >&6
2234 fi
2235
2236 fi
2237 if test -z "$ac_cv_prog_CC"; then
2238 ac_ct_CC=$CC
2239 # Extract the first word of "gcc", so it can be a program name with args.
2240 set dummy gcc; ac_word=$2
2241 echo "$as_me:$LINENO: checking for $ac_word" >&5
2242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2243 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
2245 else
2246 if test -n "$ac_ct_CC"; then
2247 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2248 else
2249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250 for as_dir in $PATH
2251 do
2252 IFS=$as_save_IFS
2253 test -z "$as_dir" && as_dir=.
2254 for ac_exec_ext in '' $ac_executable_extensions; do
2255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2256 ac_cv_prog_ac_ct_CC="gcc"
2257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2258 break 2
2259 fi
2260 done
2261 done
2262
2263 fi
2264 fi
2265 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2266 if test -n "$ac_ct_CC"; then
2267 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2268 echo "${ECHO_T}$ac_ct_CC" >&6
2269 else
2270 echo "$as_me:$LINENO: result: no" >&5
2271 echo "${ECHO_T}no" >&6
2272 fi
2273
2274 CC=$ac_ct_CC
2275 else
2276 CC="$ac_cv_prog_CC"
2277 fi
2278
2279 if test -z "$CC"; then
2280 if test -n "$ac_tool_prefix"; then
2281 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2282 set dummy ${ac_tool_prefix}cc; ac_word=$2
2283 echo "$as_me:$LINENO: checking for $ac_word" >&5
2284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2285 if test "${ac_cv_prog_CC+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2287 else
2288 if test -n "$CC"; then
2289 ac_cv_prog_CC="$CC" # Let the user override the test.
2290 else
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 for as_dir in $PATH
2293 do
2294 IFS=$as_save_IFS
2295 test -z "$as_dir" && as_dir=.
2296 for ac_exec_ext in '' $ac_executable_extensions; do
2297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2298 ac_cv_prog_CC="${ac_tool_prefix}cc"
2299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2300 break 2
2301 fi
2302 done
2303 done
2304
2305 fi
2306 fi
2307 CC=$ac_cv_prog_CC
2308 if test -n "$CC"; then
2309 echo "$as_me:$LINENO: result: $CC" >&5
2310 echo "${ECHO_T}$CC" >&6
2311 else
2312 echo "$as_me:$LINENO: result: no" >&5
2313 echo "${ECHO_T}no" >&6
2314 fi
2315
2316 fi
2317 if test -z "$ac_cv_prog_CC"; then
2318 ac_ct_CC=$CC
2319 # Extract the first word of "cc", so it can be a program name with args.
2320 set dummy cc; ac_word=$2
2321 echo "$as_me:$LINENO: checking for $ac_word" >&5
2322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2323 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2325 else
2326 if test -n "$ac_ct_CC"; then
2327 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2328 else
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 for as_dir in $PATH
2331 do
2332 IFS=$as_save_IFS
2333 test -z "$as_dir" && as_dir=.
2334 for ac_exec_ext in '' $ac_executable_extensions; do
2335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2336 ac_cv_prog_ac_ct_CC="cc"
2337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 break 2
2339 fi
2340 done
2341 done
2342
2343 fi
2344 fi
2345 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2346 if test -n "$ac_ct_CC"; then
2347 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2348 echo "${ECHO_T}$ac_ct_CC" >&6
2349 else
2350 echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6
2352 fi
2353
2354 CC=$ac_ct_CC
2355 else
2356 CC="$ac_cv_prog_CC"
2357 fi
2358
2359 fi
2360 if test -z "$CC"; then
2361 # Extract the first word of "cc", so it can be a program name with args.
2362 set dummy cc; ac_word=$2
2363 echo "$as_me:$LINENO: checking for $ac_word" >&5
2364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2365 if test "${ac_cv_prog_CC+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 else
2368 if test -n "$CC"; then
2369 ac_cv_prog_CC="$CC" # Let the user override the test.
2370 else
2371 ac_prog_rejected=no
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2374 do
2375 IFS=$as_save_IFS
2376 test -z "$as_dir" && as_dir=.
2377 for ac_exec_ext in '' $ac_executable_extensions; do
2378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2379 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2380 ac_prog_rejected=yes
2381 continue
2382 fi
2383 ac_cv_prog_CC="cc"
2384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2385 break 2
2386 fi
2387 done
2388 done
2389
2390 if test $ac_prog_rejected = yes; then
2391 # We found a bogon in the path, so make sure we never use it.
2392 set dummy $ac_cv_prog_CC
2393 shift
2394 if test $# != 0; then
2395 # We chose a different compiler from the bogus one.
2396 # However, it has the same basename, so the bogon will be chosen
2397 # first if we set CC to just the basename; use the full file name.
2398 shift
2399 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2400 fi
2401 fi
2402 fi
2403 fi
2404 CC=$ac_cv_prog_CC
2405 if test -n "$CC"; then
2406 echo "$as_me:$LINENO: result: $CC" >&5
2407 echo "${ECHO_T}$CC" >&6
2408 else
2409 echo "$as_me:$LINENO: result: no" >&5
2410 echo "${ECHO_T}no" >&6
2411 fi
2412
2413 fi
2414 if test -z "$CC"; then
2415 if test -n "$ac_tool_prefix"; then
2416 for ac_prog in cl
2417 do
2418 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2419 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2420 echo "$as_me:$LINENO: checking for $ac_word" >&5
2421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2422 if test "${ac_cv_prog_CC+set}" = set; then
2423 echo $ECHO_N "(cached) $ECHO_C" >&6
2424 else
2425 if test -n "$CC"; then
2426 ac_cv_prog_CC="$CC" # Let the user override the test.
2427 else
2428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429 for as_dir in $PATH
2430 do
2431 IFS=$as_save_IFS
2432 test -z "$as_dir" && as_dir=.
2433 for ac_exec_ext in '' $ac_executable_extensions; do
2434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2435 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2437 break 2
2438 fi
2439 done
2440 done
2441
2442 fi
2443 fi
2444 CC=$ac_cv_prog_CC
2445 if test -n "$CC"; then
2446 echo "$as_me:$LINENO: result: $CC" >&5
2447 echo "${ECHO_T}$CC" >&6
2448 else
2449 echo "$as_me:$LINENO: result: no" >&5
2450 echo "${ECHO_T}no" >&6
2451 fi
2452
2453 test -n "$CC" && break
2454 done
2455 fi
2456 if test -z "$CC"; then
2457 ac_ct_CC=$CC
2458 for ac_prog in cl
2459 do
2460 # Extract the first word of "$ac_prog", so it can be a program name with args.
2461 set dummy $ac_prog; ac_word=$2
2462 echo "$as_me:$LINENO: checking for $ac_word" >&5
2463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2464 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2465 echo $ECHO_N "(cached) $ECHO_C" >&6
2466 else
2467 if test -n "$ac_ct_CC"; then
2468 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2469 else
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2472 do
2473 IFS=$as_save_IFS
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2477 ac_cv_prog_ac_ct_CC="$ac_prog"
2478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2479 break 2
2480 fi
2481 done
2482 done
2483
2484 fi
2485 fi
2486 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2487 if test -n "$ac_ct_CC"; then
2488 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2489 echo "${ECHO_T}$ac_ct_CC" >&6
2490 else
2491 echo "$as_me:$LINENO: result: no" >&5
2492 echo "${ECHO_T}no" >&6
2493 fi
2494
2495 test -n "$ac_ct_CC" && break
2496 done
2497
2498 CC=$ac_ct_CC
2499 fi
2500
2501 fi
2502
2503
2504 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2505 See \`config.log' for more details." >&5
2506 echo "$as_me: error: no acceptable C compiler found in \$PATH
2507 See \`config.log' for more details." >&2;}
2508 { (exit 1); exit 1; }; }
2509
2510 # Provide some information about the compiler.
2511 echo "$as_me:$LINENO:" \
2512 "checking for C compiler version" >&5
2513 ac_compiler=`set X $ac_compile; echo $2`
2514 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2515 (eval $ac_compiler --version </dev/null >&5) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }
2519 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2520 (eval $ac_compiler -v </dev/null >&5) 2>&5
2521 ac_status=$?
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }
2524 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2525 (eval $ac_compiler -V </dev/null >&5) 2>&5
2526 ac_status=$?
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }
2529
2530 cat >conftest.$ac_ext <<_ACEOF
2531 /* confdefs.h. */
2532 _ACEOF
2533 cat confdefs.h >>conftest.$ac_ext
2534 cat >>conftest.$ac_ext <<_ACEOF
2535 /* end confdefs.h. */
2536
2537 int
2538 main ()
2539 {
2540
2541 ;
2542 return 0;
2543 }
2544 _ACEOF
2545 ac_clean_files_save=$ac_clean_files
2546 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2547 # Try to create an executable without -o first, disregard a.out.
2548 # It will help us diagnose broken compilers, and finding out an intuition
2549 # of exeext.
2550 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2551 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2552 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2553 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2554 (eval $ac_link_default) 2>&5
2555 ac_status=$?
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; then
2558 # Find the output, starting from the most likely. This scheme is
2559 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2560 # resort.
2561
2562 # Be careful to initialize this variable, since it used to be cached.
2563 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2564 ac_cv_exeext=
2565 # b.out is created by i960 compilers.
2566 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2567 do
2568 test -f "$ac_file" || continue
2569 case $ac_file in
2570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2571 ;;
2572 conftest.$ac_ext )
2573 # This is the source file.
2574 ;;
2575 [ab].out )
2576 # We found the default executable, but exeext='' is most
2577 # certainly right.
2578 break;;
2579 *.* )
2580 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2581 # FIXME: I believe we export ac_cv_exeext for Libtool,
2582 # but it would be cool to find out if it's true. Does anybody
2583 # maintain Libtool? --akim.
2584 export ac_cv_exeext
2585 break;;
2586 * )
2587 break;;
2588 esac
2589 done
2590 else
2591 echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2593
2594 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2595 See \`config.log' for more details." >&5
2596 echo "$as_me: error: C compiler cannot create executables
2597 See \`config.log' for more details." >&2;}
2598 { (exit 77); exit 77; }; }
2599 fi
2600
2601 ac_exeext=$ac_cv_exeext
2602 echo "$as_me:$LINENO: result: $ac_file" >&5
2603 echo "${ECHO_T}$ac_file" >&6
2604
2605 # Check the compiler produces executables we can run. If not, either
2606 # the compiler is broken, or we cross compile.
2607 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2608 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2609 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2610 # If not cross compiling, check that we can run a simple program.
2611 if test "$cross_compiling" != yes; then
2612 if { ac_try='./$ac_file'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 (eval $ac_try) 2>&5
2615 ac_status=$?
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; }; then
2618 cross_compiling=no
2619 else
2620 if test "$cross_compiling" = maybe; then
2621 cross_compiling=yes
2622 else
2623 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2624 If you meant to cross compile, use \`--host'.
2625 See \`config.log' for more details." >&5
2626 echo "$as_me: error: cannot run C compiled programs.
2627 If you meant to cross compile, use \`--host'.
2628 See \`config.log' for more details." >&2;}
2629 { (exit 1); exit 1; }; }
2630 fi
2631 fi
2632 fi
2633 echo "$as_me:$LINENO: result: yes" >&5
2634 echo "${ECHO_T}yes" >&6
2635
2636 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2637 ac_clean_files=$ac_clean_files_save
2638 # Check the compiler produces executables we can run. If not, either
2639 # the compiler is broken, or we cross compile.
2640 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2641 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2642 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2643 echo "${ECHO_T}$cross_compiling" >&6
2644
2645 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2646 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2648 (eval $ac_link) 2>&5
2649 ac_status=$?
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; then
2652 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2653 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2654 # work properly (i.e., refer to `conftest.exe'), while it won't with
2655 # `rm'.
2656 for ac_file in conftest.exe conftest conftest.*; do
2657 test -f "$ac_file" || continue
2658 case $ac_file in
2659 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2660 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2661 export ac_cv_exeext
2662 break;;
2663 * ) break;;
2664 esac
2665 done
2666 else
2667 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2668 See \`config.log' for more details." >&5
2669 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2670 See \`config.log' for more details." >&2;}
2671 { (exit 1); exit 1; }; }
2672 fi
2673
2674 rm -f conftest$ac_cv_exeext
2675 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2676 echo "${ECHO_T}$ac_cv_exeext" >&6
2677
2678 rm -f conftest.$ac_ext
2679 EXEEXT=$ac_cv_exeext
2680 ac_exeext=$EXEEXT
2681 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2682 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2683 if test "${ac_cv_objext+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 else
2686 cat >conftest.$ac_ext <<_ACEOF
2687 /* confdefs.h. */
2688 _ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h. */
2692
2693 int
2694 main ()
2695 {
2696
2697 ;
2698 return 0;
2699 }
2700 _ACEOF
2701 rm -f conftest.o conftest.obj
2702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2703 (eval $ac_compile) 2>&5
2704 ac_status=$?
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; then
2707 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2708 case $ac_file in
2709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2710 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2711 break;;
2712 esac
2713 done
2714 else
2715 echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2717
2718 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2719 See \`config.log' for more details." >&5
2720 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2721 See \`config.log' for more details." >&2;}
2722 { (exit 1); exit 1; }; }
2723 fi
2724
2725 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2726 fi
2727 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2728 echo "${ECHO_T}$ac_cv_objext" >&6
2729 OBJEXT=$ac_cv_objext
2730 ac_objext=$OBJEXT
2731 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2732 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2733 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 else
2736 cat >conftest.$ac_ext <<_ACEOF
2737 /* confdefs.h. */
2738 _ACEOF
2739 cat confdefs.h >>conftest.$ac_ext
2740 cat >>conftest.$ac_ext <<_ACEOF
2741 /* end confdefs.h. */
2742
2743 int
2744 main ()
2745 {
2746 #ifndef __GNUC__
2747 choke me
2748 #endif
2749
2750 ;
2751 return 0;
2752 }
2753 _ACEOF
2754 rm -f conftest.$ac_objext
2755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2756 (eval $ac_compile) 2>conftest.er1
2757 ac_status=$?
2758 grep -v '^ *+' conftest.er1 >conftest.err
2759 rm -f conftest.er1
2760 cat conftest.err >&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); } &&
2763 { ac_try='test -z "$ac_c_werror_flag"
2764 || test ! -s conftest.err'
2765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766 (eval $ac_try) 2>&5
2767 ac_status=$?
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }; } &&
2770 { ac_try='test -s conftest.$ac_objext'
2771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772 (eval $ac_try) 2>&5
2773 ac_status=$?
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }; }; then
2776 ac_compiler_gnu=yes
2777 else
2778 echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.$ac_ext >&5
2780
2781 ac_compiler_gnu=no
2782 fi
2783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2784 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2785
2786 fi
2787 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2788 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2789 GCC=`test $ac_compiler_gnu = yes && echo yes`
2790 ac_test_CFLAGS=${CFLAGS+set}
2791 ac_save_CFLAGS=$CFLAGS
2792 CFLAGS="-g"
2793 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2794 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2795 if test "${ac_cv_prog_cc_g+set}" = set; then
2796 echo $ECHO_N "(cached) $ECHO_C" >&6
2797 else
2798 cat >conftest.$ac_ext <<_ACEOF
2799 /* confdefs.h. */
2800 _ACEOF
2801 cat confdefs.h >>conftest.$ac_ext
2802 cat >>conftest.$ac_ext <<_ACEOF
2803 /* end confdefs.h. */
2804
2805 int
2806 main ()
2807 {
2808
2809 ;
2810 return 0;
2811 }
2812 _ACEOF
2813 rm -f conftest.$ac_objext
2814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2815 (eval $ac_compile) 2>conftest.er1
2816 ac_status=$?
2817 grep -v '^ *+' conftest.er1 >conftest.err
2818 rm -f conftest.er1
2819 cat conftest.err >&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); } &&
2822 { ac_try='test -z "$ac_c_werror_flag"
2823 || test ! -s conftest.err'
2824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825 (eval $ac_try) 2>&5
2826 ac_status=$?
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); }; } &&
2829 { ac_try='test -s conftest.$ac_objext'
2830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831 (eval $ac_try) 2>&5
2832 ac_status=$?
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }; }; then
2835 ac_cv_prog_cc_g=yes
2836 else
2837 echo "$as_me: failed program was:" >&5
2838 sed 's/^/| /' conftest.$ac_ext >&5
2839
2840 ac_cv_prog_cc_g=no
2841 fi
2842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2843 fi
2844 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2845 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2846 if test "$ac_test_CFLAGS" = set; then
2847 CFLAGS=$ac_save_CFLAGS
2848 elif test $ac_cv_prog_cc_g = yes; then
2849 if test "$GCC" = yes; then
2850 CFLAGS="-g -O2"
2851 else
2852 CFLAGS="-g"
2853 fi
2854 else
2855 if test "$GCC" = yes; then
2856 CFLAGS="-O2"
2857 else
2858 CFLAGS=
2859 fi
2860 fi
2861 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2862 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2863 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2864 echo $ECHO_N "(cached) $ECHO_C" >&6
2865 else
2866 ac_cv_prog_cc_stdc=no
2867 ac_save_CC=$CC
2868 cat >conftest.$ac_ext <<_ACEOF
2869 /* confdefs.h. */
2870 _ACEOF
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h. */
2874 #include <stdarg.h>
2875 #include <stdio.h>
2876 #include <sys/types.h>
2877 #include <sys/stat.h>
2878 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2879 struct buf { int x; };
2880 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2881 static char *e (p, i)
2882 char **p;
2883 int i;
2884 {
2885 return p[i];
2886 }
2887 static char *f (char * (*g) (char **, int), char **p, ...)
2888 {
2889 char *s;
2890 va_list v;
2891 va_start (v,p);
2892 s = g (p, va_arg (v,int));
2893 va_end (v);
2894 return s;
2895 }
2896
2897 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2898 function prototypes and stuff, but not '\xHH' hex character constants.
2899 These don't provoke an error unfortunately, instead are silently treated
2900 as 'x'. The following induces an error, until -std1 is added to get
2901 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2902 array size at least. It's necessary to write '\x00'==0 to get something
2903 that's true only with -std1. */
2904 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2905
2906 int test (int i, double x);
2907 struct s1 {int (*f) (int a);};
2908 struct s2 {int (*f) (double a);};
2909 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2910 int argc;
2911 char **argv;
2912 int
2913 main ()
2914 {
2915 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2916 ;
2917 return 0;
2918 }
2919 _ACEOF
2920 # Don't try gcc -ansi; that turns off useful extensions and
2921 # breaks some systems' header files.
2922 # AIX -qlanglvl=ansi
2923 # Ultrix and OSF/1 -std1
2924 # HP-UX 10.20 and later -Ae
2925 # HP-UX older versions -Aa -D_HPUX_SOURCE
2926 # SVR4 -Xc -D__EXTENSIONS__
2927 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2928 do
2929 CC="$ac_save_CC $ac_arg"
2930 rm -f conftest.$ac_objext
2931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2932 (eval $ac_compile) 2>conftest.er1
2933 ac_status=$?
2934 grep -v '^ *+' conftest.er1 >conftest.err
2935 rm -f conftest.er1
2936 cat conftest.err >&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); } &&
2939 { ac_try='test -z "$ac_c_werror_flag"
2940 || test ! -s conftest.err'
2941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942 (eval $ac_try) 2>&5
2943 ac_status=$?
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; } &&
2946 { ac_try='test -s conftest.$ac_objext'
2947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948 (eval $ac_try) 2>&5
2949 ac_status=$?
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; }; then
2952 ac_cv_prog_cc_stdc=$ac_arg
2953 break
2954 else
2955 echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2957
2958 fi
2959 rm -f conftest.err conftest.$ac_objext
2960 done
2961 rm -f conftest.$ac_ext conftest.$ac_objext
2962 CC=$ac_save_CC
2963
2964 fi
2965
2966 case "x$ac_cv_prog_cc_stdc" in
2967 x|xno)
2968 echo "$as_me:$LINENO: result: none needed" >&5
2969 echo "${ECHO_T}none needed" >&6 ;;
2970 *)
2971 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2972 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2973 CC="$CC $ac_cv_prog_cc_stdc" ;;
2974 esac
2975
2976 # Some people use a C++ compiler to compile C. Since we use `exit',
2977 # in C++ we need to declare it. In case someone uses the same compiler
2978 # for both compiling C and C++ we need to have the C++ compiler decide
2979 # the declaration of exit, since it's the most demanding environment.
2980 cat >conftest.$ac_ext <<_ACEOF
2981 #ifndef __cplusplus
2982 choke me
2983 #endif
2984 _ACEOF
2985 rm -f conftest.$ac_objext
2986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2987 (eval $ac_compile) 2>conftest.er1
2988 ac_status=$?
2989 grep -v '^ *+' conftest.er1 >conftest.err
2990 rm -f conftest.er1
2991 cat conftest.err >&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); } &&
2994 { ac_try='test -z "$ac_c_werror_flag"
2995 || test ! -s conftest.err'
2996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997 (eval $ac_try) 2>&5
2998 ac_status=$?
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }; } &&
3001 { ac_try='test -s conftest.$ac_objext'
3002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3003 (eval $ac_try) 2>&5
3004 ac_status=$?
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); }; }; then
3007 for ac_declaration in \
3008 '' \
3009 'extern "C" void std::exit (int) throw (); using std::exit;' \
3010 'extern "C" void std::exit (int); using std::exit;' \
3011 'extern "C" void exit (int) throw ();' \
3012 'extern "C" void exit (int);' \
3013 'void exit (int);'
3014 do
3015 cat >conftest.$ac_ext <<_ACEOF
3016 /* confdefs.h. */
3017 _ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h. */
3021 $ac_declaration
3022 #include <stdlib.h>
3023 int
3024 main ()
3025 {
3026 exit (42);
3027 ;
3028 return 0;
3029 }
3030 _ACEOF
3031 rm -f conftest.$ac_objext
3032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3033 (eval $ac_compile) 2>conftest.er1
3034 ac_status=$?
3035 grep -v '^ *+' conftest.er1 >conftest.err
3036 rm -f conftest.er1
3037 cat conftest.err >&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); } &&
3040 { ac_try='test -z "$ac_c_werror_flag"
3041 || test ! -s conftest.err'
3042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043 (eval $ac_try) 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; } &&
3047 { ac_try='test -s conftest.$ac_objext'
3048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049 (eval $ac_try) 2>&5
3050 ac_status=$?
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); }; }; then
3053 :
3054 else
3055 echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3057
3058 continue
3059 fi
3060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3061 cat >conftest.$ac_ext <<_ACEOF
3062 /* confdefs.h. */
3063 _ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h. */
3067 $ac_declaration
3068 int
3069 main ()
3070 {
3071 exit (42);
3072 ;
3073 return 0;
3074 }
3075 _ACEOF
3076 rm -f conftest.$ac_objext
3077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3078 (eval $ac_compile) 2>conftest.er1
3079 ac_status=$?
3080 grep -v '^ *+' conftest.er1 >conftest.err
3081 rm -f conftest.er1
3082 cat conftest.err >&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); } &&
3085 { ac_try='test -z "$ac_c_werror_flag"
3086 || test ! -s conftest.err'
3087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088 (eval $ac_try) 2>&5
3089 ac_status=$?
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; } &&
3092 { ac_try='test -s conftest.$ac_objext'
3093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094 (eval $ac_try) 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; }; then
3098 break
3099 else
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103 fi
3104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3105 done
3106 rm -f conftest*
3107 if test -n "$ac_declaration"; then
3108 echo '#ifdef __cplusplus' >>confdefs.h
3109 echo $ac_declaration >>confdefs.h
3110 echo '#endif' >>confdefs.h
3111 fi
3112
3113 else
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3116
3117 fi
3118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3119 ac_ext=c
3120 ac_cpp='$CPP $CPPFLAGS'
3121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3124
3125 depcc="$CC" am_compiler_list=
3126
3127 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3128 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3129 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3130 echo $ECHO_N "(cached) $ECHO_C" >&6
3131 else
3132 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3133 # We make a subdir and do the tests there. Otherwise we can end up
3134 # making bogus files that we don't know about and never remove. For
3135 # instance it was reported that on HP-UX the gcc test will end up
3136 # making a dummy file named `D' -- because `-MD' means `put the output
3137 # in D'.
3138 mkdir conftest.dir
3139 # Copy depcomp to subdir because otherwise we won't find it if we're
3140 # using a relative directory.
3141 cp "$am_depcomp" conftest.dir
3142 cd conftest.dir
3143 # We will build objects and dependencies in a subdirectory because
3144 # it helps to detect inapplicable dependency modes. For instance
3145 # both Tru64's cc and ICC support -MD to output dependencies as a
3146 # side effect of compilation, but ICC will put the dependencies in
3147 # the current directory while Tru64 will put them in the object
3148 # directory.
3149 mkdir sub
3150
3151 am_cv_CC_dependencies_compiler_type=none
3152 if test "$am_compiler_list" = ""; then
3153 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3154 fi
3155 for depmode in $am_compiler_list; do
3156 # Setup a source with many dependencies, because some compilers
3157 # like to wrap large dependency lists on column 80 (with \), and
3158 # we should not choose a depcomp mode which is confused by this.
3159 #
3160 # We need to recreate these files for each test, as the compiler may
3161 # overwrite some of them when testing with obscure command lines.
3162 # This happens at least with the AIX C compiler.
3163 : > sub/conftest.c
3164 for i in 1 2 3 4 5 6; do
3165 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3166 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3167 # Solaris 8's {/usr,}/bin/sh.
3168 touch sub/conftst$i.h
3169 done
3170 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3171
3172 case $depmode in
3173 nosideeffect)
3174 # after this tag, mechanisms are not by side-effect, so they'll
3175 # only be used when explicitly requested
3176 if test "x$enable_dependency_tracking" = xyes; then
3177 continue
3178 else
3179 break
3180 fi
3181 ;;
3182 none) break ;;
3183 esac
3184 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3185 # mode. It turns out that the SunPro C++ compiler does not properly
3186 # handle `-M -o', and we need to detect this.
3187 if depmode=$depmode \
3188 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3189 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3190 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3191 >/dev/null 2>conftest.err &&
3192 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3193 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3194 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3195 # icc doesn't choke on unknown options, it will just issue warnings
3196 # or remarks (even with -Werror). So we grep stderr for any message
3197 # that says an option was ignored or not supported.
3198 # When given -MP, icc 7.0 and 7.1 complain thusly:
3199 # icc: Command line warning: ignoring option '-M'; no argument required
3200 # The diagnosis changed in icc 8.0:
3201 # icc: Command line remark: option '-MP' not supported
3202 if (grep 'ignoring option' conftest.err ||
3203 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3204 am_cv_CC_dependencies_compiler_type=$depmode
3205 break
3206 fi
3207 fi
3208 done
3209
3210 cd ..
3211 rm -rf conftest.dir
3212 else
3213 am_cv_CC_dependencies_compiler_type=none
3214 fi
3215
3216 fi
3217 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3218 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3219 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3220
3221
3222
3223 if
3224 test "x$enable_dependency_tracking" != xno \
3225 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3226 am__fastdepCC_TRUE=
3227 am__fastdepCC_FALSE='#'
3228 else
3229 am__fastdepCC_TRUE='#'
3230 am__fastdepCC_FALSE=
3231 fi
3232
3233
3234 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3235 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3236 if test "${lt_cv_path_SED+set}" = set; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
3238 else
3239 # Loop through the user's path and test for sed and gsed.
3240 # Then use that list of sed's as ones to test for truncation.
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for as_dir in $PATH
3243 do
3244 IFS=$as_save_IFS
3245 test -z "$as_dir" && as_dir=.
3246 for lt_ac_prog in sed gsed; do
3247 for ac_exec_ext in '' $ac_executable_extensions; do
3248 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3249 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3250 fi
3251 done
3252 done
3253 done
3254 IFS=$as_save_IFS
3255 lt_ac_max=0
3256 lt_ac_count=0
3257 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3258 # along with /bin/sed that truncates output.
3259 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3260 test ! -f $lt_ac_sed && continue
3261 cat /dev/null > conftest.in
3262 lt_ac_count=0
3263 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3264 # Check for GNU sed and select it if it is found.
3265 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3266 lt_cv_path_SED=$lt_ac_sed
3267 break
3268 fi
3269 while true; do
3270 cat conftest.in conftest.in >conftest.tmp
3271 mv conftest.tmp conftest.in
3272 cp conftest.in conftest.nl
3273 echo >>conftest.nl
3274 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3275 cmp -s conftest.out conftest.nl || break
3276 # 10000 chars as input seems more than enough
3277 test $lt_ac_count -gt 10 && break
3278 lt_ac_count=`expr $lt_ac_count + 1`
3279 if test $lt_ac_count -gt $lt_ac_max; then
3280 lt_ac_max=$lt_ac_count
3281 lt_cv_path_SED=$lt_ac_sed
3282 fi
3283 done
3284 done
3285
3286 fi
3287
3288 SED=$lt_cv_path_SED
3289
3290 echo "$as_me:$LINENO: result: $SED" >&5
3291 echo "${ECHO_T}$SED" >&6
3292
3293 echo "$as_me:$LINENO: checking for egrep" >&5
3294 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3295 if test "${ac_cv_prog_egrep+set}" = set; then
3296 echo $ECHO_N "(cached) $ECHO_C" >&6
3297 else
3298 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3299 then ac_cv_prog_egrep='grep -E'
3300 else ac_cv_prog_egrep='egrep'
3301 fi
3302 fi
3303 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3304 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3305 EGREP=$ac_cv_prog_egrep
3306
3307
3308
3309 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3310 if test "${with_gnu_ld+set}" = set; then
3311 withval="$with_gnu_ld"
3312 test "$withval" = no || with_gnu_ld=yes
3313 else
3314 with_gnu_ld=no
3315 fi;
3316 ac_prog=ld
3317 if test "$GCC" = yes; then
3318 # Check if gcc -print-prog-name=ld gives a path.
3319 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3320 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3321 case $host in
3322 *-*-mingw*)
3323 # gcc leaves a trailing carriage return which upsets mingw
3324 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3325 *)
3326 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3327 esac
3328 case $ac_prog in
3329 # Accept absolute paths.
3330 [\\/]* | ?:[\\/]*)
3331 re_direlt='/[^/][^/]*/\.\./'
3332 # Canonicalize the pathname of ld
3333 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3334 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3335 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3336 done
3337 test -z "$LD" && LD="$ac_prog"
3338 ;;
3339 "")
3340 # If it fails, then pretend we aren't using GCC.
3341 ac_prog=ld
3342 ;;
3343 *)
3344 # If it is relative, then search for the first ld in PATH.
3345 with_gnu_ld=unknown
3346 ;;
3347 esac
3348 elif test "$with_gnu_ld" = yes; then
3349 echo "$as_me:$LINENO: checking for GNU ld" >&5
3350 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3351 else
3352 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3353 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3354 fi
3355 if test "${lt_cv_path_LD+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 else
3358 if test -z "$LD"; then
3359 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3360 for ac_dir in $PATH; do
3361 IFS="$lt_save_ifs"
3362 test -z "$ac_dir" && ac_dir=.
3363 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3364 lt_cv_path_LD="$ac_dir/$ac_prog"
3365 # Check to see if the program is GNU ld. I'd rather use --version,
3366 # but apparently some variants of GNU ld only accept -v.
3367 # Break only if it was the GNU/non-GNU ld that we prefer.
3368 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3369 *GNU* | *'with BFD'*)
3370 test "$with_gnu_ld" != no && break
3371 ;;
3372 *)
3373 test "$with_gnu_ld" != yes && break
3374 ;;
3375 esac
3376 fi
3377 done
3378 IFS="$lt_save_ifs"
3379 else
3380 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3381 fi
3382 fi
3383
3384 LD="$lt_cv_path_LD"
3385 if test -n "$LD"; then
3386 echo "$as_me:$LINENO: result: $LD" >&5
3387 echo "${ECHO_T}$LD" >&6
3388 else
3389 echo "$as_me:$LINENO: result: no" >&5
3390 echo "${ECHO_T}no" >&6
3391 fi
3392 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3393 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3394 { (exit 1); exit 1; }; }
3395 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3396 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3397 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 else
3400 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3401 case `$LD -v 2>&1 </dev/null` in
3402 *GNU* | *'with BFD'*)
3403 lt_cv_prog_gnu_ld=yes
3404 ;;
3405 *)
3406 lt_cv_prog_gnu_ld=no
3407 ;;
3408 esac
3409 fi
3410 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3411 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3412 with_gnu_ld=$lt_cv_prog_gnu_ld
3413
3414
3415 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3416 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3417 if test "${lt_cv_ld_reload_flag+set}" = set; then
3418 echo $ECHO_N "(cached) $ECHO_C" >&6
3419 else
3420 lt_cv_ld_reload_flag='-r'
3421 fi
3422 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3423 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3424 reload_flag=$lt_cv_ld_reload_flag
3425 case $reload_flag in
3426 "" | " "*) ;;
3427 *) reload_flag=" $reload_flag" ;;
3428 esac
3429 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3430 case $host_os in
3431 darwin*)
3432 if test "$GCC" = yes; then
3433 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3434 else
3435 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3436 fi
3437 ;;
3438 esac
3439
3440 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3441 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3442 if test "${lt_cv_path_NM+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 else
3445 if test -n "$NM"; then
3446 # Let the user override the test.
3447 lt_cv_path_NM="$NM"
3448 else
3449 lt_nm_to_check="${ac_tool_prefix}nm"
3450 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3451 lt_nm_to_check="$lt_nm_to_check nm"
3452 fi
3453 for lt_tmp_nm in $lt_nm_to_check; do
3454 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3455 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3456 IFS="$lt_save_ifs"
3457 test -z "$ac_dir" && ac_dir=.
3458 tmp_nm="$ac_dir/$lt_tmp_nm"
3459 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3460 # Check to see if the nm accepts a BSD-compat flag.
3461 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3462 # nm: unknown option "B" ignored
3463 # Tru64's nm complains that /dev/null is an invalid object file
3464 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3465 */dev/null* | *'Invalid file or object type'*)
3466 lt_cv_path_NM="$tmp_nm -B"
3467 break
3468 ;;
3469 *)
3470 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3471 */dev/null*)
3472 lt_cv_path_NM="$tmp_nm -p"
3473 break
3474 ;;
3475 *)
3476 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3477 continue # so that we can try to find one that supports BSD flags
3478 ;;
3479 esac
3480 ;;
3481 esac
3482 fi
3483 done
3484 IFS="$lt_save_ifs"
3485 done
3486 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3487 fi
3488 fi
3489 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3490 echo "${ECHO_T}$lt_cv_path_NM" >&6
3491 NM="$lt_cv_path_NM"
3492
3493 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3494 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3495 LN_S=$as_ln_s
3496 if test "$LN_S" = "ln -s"; then
3497 echo "$as_me:$LINENO: result: yes" >&5
3498 echo "${ECHO_T}yes" >&6
3499 else
3500 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3501 echo "${ECHO_T}no, using $LN_S" >&6
3502 fi
3503
3504 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3505 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3506 if test "${lt_cv_deplibs_check_method+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3508 else
3509 lt_cv_file_magic_cmd='$MAGIC_CMD'
3510 lt_cv_file_magic_test_file=
3511 lt_cv_deplibs_check_method='unknown'
3512 # Need to set the preceding variable on all platforms that support
3513 # interlibrary dependencies.
3514 # 'none' -- dependencies not supported.
3515 # `unknown' -- same as none, but documents that we really don't know.
3516 # 'pass_all' -- all dependencies passed with no checks.
3517 # 'test_compile' -- check by making test program.
3518 # 'file_magic [[regex]]' -- check by looking for files in library path
3519 # which responds to the $file_magic_cmd with a given extended regex.
3520 # If you have `file' or equivalent on your system and you're not sure
3521 # whether `pass_all' will *always* work, you probably want this one.
3522
3523 case $host_os in
3524 aix4* | aix5*)
3525 lt_cv_deplibs_check_method=pass_all
3526 ;;
3527
3528 beos*)
3529 lt_cv_deplibs_check_method=pass_all
3530 ;;
3531
3532 bsdi[45]*)
3533 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3534 lt_cv_file_magic_cmd='/usr/bin/file -L'
3535 lt_cv_file_magic_test_file=/shlib/libc.so
3536 ;;
3537
3538 cygwin*)
3539 # func_win32_libid is a shell function defined in ltmain.sh
3540 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3541 lt_cv_file_magic_cmd='func_win32_libid'
3542 ;;
3543
3544 mingw* | pw32*)
3545 # Base MSYS/MinGW do not provide the 'file' command needed by
3546 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3547 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3548 lt_cv_file_magic_cmd='$OBJDUMP -f'
3549 ;;
3550
3551 darwin* | rhapsody*)
3552 lt_cv_deplibs_check_method=pass_all
3553 ;;
3554
3555 freebsd* | kfreebsd*-gnu | dragonfly*)
3556 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3557 case $host_cpu in
3558 i*86 )
3559 # Not sure whether the presence of OpenBSD here was a mistake.
3560 # Let's accept both of them until this is cleared up.
3561 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3562 lt_cv_file_magic_cmd=/usr/bin/file
3563 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3564 ;;
3565 esac
3566 else
3567 lt_cv_deplibs_check_method=pass_all
3568 fi
3569 ;;
3570
3571 gnu*)
3572 lt_cv_deplibs_check_method=pass_all
3573 ;;
3574
3575 hpux10.20* | hpux11*)
3576 lt_cv_file_magic_cmd=/usr/bin/file
3577 case $host_cpu in
3578 ia64*)
3579 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3580 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3581 ;;
3582 hppa*64*)
3583 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]'
3584 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3585 ;;
3586 *)
3587 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3588 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3589 ;;
3590 esac
3591 ;;
3592
3593 interix3*)
3594 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3595 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3596 ;;
3597
3598 irix5* | irix6* | nonstopux*)
3599 case $LD in
3600 *-32|*"-32 ") libmagic=32-bit;;
3601 *-n32|*"-n32 ") libmagic=N32;;
3602 *-64|*"-64 ") libmagic=64-bit;;
3603 *) libmagic=never-match;;
3604 esac
3605 lt_cv_deplibs_check_method=pass_all
3606 ;;
3607
3608 # This must be Linux ELF.
3609 linux*)
3610 lt_cv_deplibs_check_method=pass_all
3611 ;;
3612
3613 netbsd*)
3614 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3615 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3616 else
3617 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3618 fi
3619 ;;
3620
3621 newos6*)
3622 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3623 lt_cv_file_magic_cmd=/usr/bin/file
3624 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3625 ;;
3626
3627 nto-qnx*)
3628 lt_cv_deplibs_check_method=unknown
3629 ;;
3630
3631 openbsd*)
3632 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3634 else
3635 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3636 fi
3637 ;;
3638
3639 osf3* | osf4* | osf5*)
3640 lt_cv_deplibs_check_method=pass_all
3641 ;;
3642
3643 solaris*)
3644 lt_cv_deplibs_check_method=pass_all
3645 ;;
3646
3647 sysv4 | sysv4.3*)
3648 case $host_vendor in
3649 motorola)
3650 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]'
3651 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3652 ;;
3653 ncr)
3654 lt_cv_deplibs_check_method=pass_all
3655 ;;
3656 sequent)
3657 lt_cv_file_magic_cmd='/bin/file'
3658 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3659 ;;
3660 sni)
3661 lt_cv_file_magic_cmd='/bin/file'
3662 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3663 lt_cv_file_magic_test_file=/lib/libc.so
3664 ;;
3665 siemens)
3666 lt_cv_deplibs_check_method=pass_all
3667 ;;
3668 pc)
3669 lt_cv_deplibs_check_method=pass_all
3670 ;;
3671 esac
3672 ;;
3673
3674 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3675 lt_cv_deplibs_check_method=pass_all
3676 ;;
3677 esac
3678
3679 fi
3680 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3681 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3682 file_magic_cmd=$lt_cv_file_magic_cmd
3683 deplibs_check_method=$lt_cv_deplibs_check_method
3684 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3685
3686
3687
3688
3689 # If no C compiler was specified, use CC.
3690 LTCC=${LTCC-"$CC"}
3691
3692 # If no C compiler flags were specified, use CFLAGS.
3693 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3694
3695 # Allow CC to be a program name with arguments.
3696 compiler=$CC
3697
3698
3699 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3700 if test "${enable_libtool_lock+set}" = set; then
3701 enableval="$enable_libtool_lock"
3702
3703 fi;
3704 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3705
3706 # Some flags need to be propagated to the compiler or linker for good
3707 # libtool support.
3708 case $host in
3709 ia64-*-hpux*)
3710 # Find out which ABI we are using.
3711 echo 'int i;' > conftest.$ac_ext
3712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3713 (eval $ac_compile) 2>&5
3714 ac_status=$?
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; then
3717 case `/usr/bin/file conftest.$ac_objext` in
3718 *ELF-32*)
3719 HPUX_IA64_MODE="32"
3720 ;;
3721 *ELF-64*)
3722 HPUX_IA64_MODE="64"
3723 ;;
3724 esac
3725 fi
3726 rm -rf conftest*
3727 ;;
3728 *-*-irix6*)
3729 # Find out which ABI we are using.
3730 echo '#line 3730 "configure"' > conftest.$ac_ext
3731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3732 (eval $ac_compile) 2>&5
3733 ac_status=$?
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }; then
3736 if test "$lt_cv_prog_gnu_ld" = yes; then
3737 case `/usr/bin/file conftest.$ac_objext` in
3738 *32-bit*)
3739 LD="${LD-ld} -melf32bsmip"
3740 ;;
3741 *N32*)
3742 LD="${LD-ld} -melf32bmipn32"
3743 ;;
3744 *64-bit*)
3745 LD="${LD-ld} -melf64bmip"
3746 ;;
3747 esac
3748 else
3749 case `/usr/bin/file conftest.$ac_objext` in
3750 *32-bit*)
3751 LD="${LD-ld} -32"
3752 ;;
3753 *N32*)
3754 LD="${LD-ld} -n32"
3755 ;;
3756 *64-bit*)
3757 LD="${LD-ld} -64"
3758 ;;
3759 esac
3760 fi
3761 fi
3762 rm -rf conftest*
3763 ;;
3764
3765 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3766 # Find out which ABI we are using.
3767 echo 'int i;' > conftest.$ac_ext
3768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3769 (eval $ac_compile) 2>&5
3770 ac_status=$?
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); }; then
3773 case `/usr/bin/file conftest.o` in
3774 *32-bit*)
3775 case $host in
3776 x86_64-*linux*)
3777 LD="${LD-ld} -m elf_i386"
3778 ;;
3779 ppc64-*linux*|powerpc64-*linux*)
3780 LD="${LD-ld} -m elf32ppclinux"
3781 ;;
3782 s390x-*linux*)
3783 LD="${LD-ld} -m elf_s390"
3784 ;;
3785 sparc64-*linux*)
3786 LD="${LD-ld} -m elf32_sparc"
3787 ;;
3788 esac
3789 ;;
3790 *64-bit*)
3791 case $host in
3792 x86_64-*linux*)
3793 LD="${LD-ld} -m elf_x86_64"
3794 ;;
3795 ppc*-*linux*|powerpc*-*linux*)
3796 LD="${LD-ld} -m elf64ppc"
3797 ;;
3798 s390*-*linux*)
3799 LD="${LD-ld} -m elf64_s390"
3800 ;;
3801 sparc*-*linux*)
3802 LD="${LD-ld} -m elf64_sparc"
3803 ;;
3804 esac
3805 ;;
3806 esac
3807 fi
3808 rm -rf conftest*
3809 ;;
3810
3811 *-*-sco3.2v5*)
3812 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3813 SAVE_CFLAGS="$CFLAGS"
3814 CFLAGS="$CFLAGS -belf"
3815 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3816 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3817 if test "${lt_cv_cc_needs_belf+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3819 else
3820 ac_ext=c
3821 ac_cpp='$CPP $CPPFLAGS'
3822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3825
3826 cat >conftest.$ac_ext <<_ACEOF
3827 /* confdefs.h. */
3828 _ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h. */
3832
3833 int
3834 main ()
3835 {
3836
3837 ;
3838 return 0;
3839 }
3840 _ACEOF
3841 rm -f conftest.$ac_objext conftest$ac_exeext
3842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3843 (eval $ac_link) 2>conftest.er1
3844 ac_status=$?
3845 grep -v '^ *+' conftest.er1 >conftest.err
3846 rm -f conftest.er1
3847 cat conftest.err >&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); } &&
3850 { ac_try='test -z "$ac_c_werror_flag"
3851 || test ! -s conftest.err'
3852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3853 (eval $ac_try) 2>&5
3854 ac_status=$?
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; } &&
3857 { ac_try='test -s conftest$ac_exeext'
3858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859 (eval $ac_try) 2>&5
3860 ac_status=$?
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); }; }; then
3863 lt_cv_cc_needs_belf=yes
3864 else
3865 echo "$as_me: failed program was:" >&5
3866 sed 's/^/| /' conftest.$ac_ext >&5
3867
3868 lt_cv_cc_needs_belf=no
3869 fi
3870 rm -f conftest.err conftest.$ac_objext \
3871 conftest$ac_exeext conftest.$ac_ext
3872 ac_ext=c
3873 ac_cpp='$CPP $CPPFLAGS'
3874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3877
3878 fi
3879 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3880 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3881 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3882 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3883 CFLAGS="$SAVE_CFLAGS"
3884 fi
3885 ;;
3886 sparc*-*solaris*)
3887 # Find out which ABI we are using.
3888 echo 'int i;' > conftest.$ac_ext
3889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3890 (eval $ac_compile) 2>&5
3891 ac_status=$?
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); }; then
3894 case `/usr/bin/file conftest.o` in
3895 *64-bit*)
3896 case $lt_cv_prog_gnu_ld in
3897 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3898 *) LD="${LD-ld} -64" ;;
3899 esac
3900 ;;
3901 esac
3902 fi
3903 rm -rf conftest*
3904 ;;
3905
3906
3907 esac
3908
3909 need_locks="$enable_libtool_lock"
3910
3911
3912 ac_ext=c
3913 ac_cpp='$CPP $CPPFLAGS'
3914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3917 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3918 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3919 # On Suns, sometimes $CPP names a directory.
3920 if test -n "$CPP" && test -d "$CPP"; then
3921 CPP=
3922 fi
3923 if test -z "$CPP"; then
3924 if test "${ac_cv_prog_CPP+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927 # Double quotes because CPP needs to be expanded
3928 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3929 do
3930 ac_preproc_ok=false
3931 for ac_c_preproc_warn_flag in '' yes
3932 do
3933 # Use a header file that comes with gcc, so configuring glibc
3934 # with a fresh cross-compiler works.
3935 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3936 # <limits.h> exists even on freestanding compilers.
3937 # On the NeXT, cc -E runs the code through the compiler's parser,
3938 # not just through cpp. "Syntax error" is here to catch this case.
3939 cat >conftest.$ac_ext <<_ACEOF
3940 /* confdefs.h. */
3941 _ACEOF
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h. */
3945 #ifdef __STDC__
3946 # include <limits.h>
3947 #else
3948 # include <assert.h>
3949 #endif
3950 Syntax error
3951 _ACEOF
3952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3954 ac_status=$?
3955 grep -v '^ *+' conftest.er1 >conftest.err
3956 rm -f conftest.er1
3957 cat conftest.err >&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); } >/dev/null; then
3960 if test -s conftest.err; then
3961 ac_cpp_err=$ac_c_preproc_warn_flag
3962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3963 else
3964 ac_cpp_err=
3965 fi
3966 else
3967 ac_cpp_err=yes
3968 fi
3969 if test -z "$ac_cpp_err"; then
3970 :
3971 else
3972 echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3974
3975 # Broken: fails on valid input.
3976 continue
3977 fi
3978 rm -f conftest.err conftest.$ac_ext
3979
3980 # OK, works on sane cases. Now check whether non-existent headers
3981 # can be detected and how.
3982 cat >conftest.$ac_ext <<_ACEOF
3983 /* confdefs.h. */
3984 _ACEOF
3985 cat confdefs.h >>conftest.$ac_ext
3986 cat >>conftest.$ac_ext <<_ACEOF
3987 /* end confdefs.h. */
3988 #include <ac_nonexistent.h>
3989 _ACEOF
3990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3992 ac_status=$?
3993 grep -v '^ *+' conftest.er1 >conftest.err
3994 rm -f conftest.er1
3995 cat conftest.err >&5
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); } >/dev/null; then
3998 if test -s conftest.err; then
3999 ac_cpp_err=$ac_c_preproc_warn_flag
4000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4001 else
4002 ac_cpp_err=
4003 fi
4004 else
4005 ac_cpp_err=yes
4006 fi
4007 if test -z "$ac_cpp_err"; then
4008 # Broken: success on invalid input.
4009 continue
4010 else
4011 echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4013
4014 # Passes both tests.
4015 ac_preproc_ok=:
4016 break
4017 fi
4018 rm -f conftest.err conftest.$ac_ext
4019
4020 done
4021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4022 rm -f conftest.err conftest.$ac_ext
4023 if $ac_preproc_ok; then
4024 break
4025 fi
4026
4027 done
4028 ac_cv_prog_CPP=$CPP
4029
4030 fi
4031 CPP=$ac_cv_prog_CPP
4032 else
4033 ac_cv_prog_CPP=$CPP
4034 fi
4035 echo "$as_me:$LINENO: result: $CPP" >&5
4036 echo "${ECHO_T}$CPP" >&6
4037 ac_preproc_ok=false
4038 for ac_c_preproc_warn_flag in '' yes
4039 do
4040 # Use a header file that comes with gcc, so configuring glibc
4041 # with a fresh cross-compiler works.
4042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4043 # <limits.h> exists even on freestanding compilers.
4044 # On the NeXT, cc -E runs the code through the compiler's parser,
4045 # not just through cpp. "Syntax error" is here to catch this case.
4046 cat >conftest.$ac_ext <<_ACEOF
4047 /* confdefs.h. */
4048 _ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h. */
4052 #ifdef __STDC__
4053 # include <limits.h>
4054 #else
4055 # include <assert.h>
4056 #endif
4057 Syntax error
4058 _ACEOF
4059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4061 ac_status=$?
4062 grep -v '^ *+' conftest.er1 >conftest.err
4063 rm -f conftest.er1
4064 cat conftest.err >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } >/dev/null; then
4067 if test -s conftest.err; then
4068 ac_cpp_err=$ac_c_preproc_warn_flag
4069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4070 else
4071 ac_cpp_err=
4072 fi
4073 else
4074 ac_cpp_err=yes
4075 fi
4076 if test -z "$ac_cpp_err"; then
4077 :
4078 else
4079 echo "$as_me: failed program was:" >&5
4080 sed 's/^/| /' conftest.$ac_ext >&5
4081
4082 # Broken: fails on valid input.
4083 continue
4084 fi
4085 rm -f conftest.err conftest.$ac_ext
4086
4087 # OK, works on sane cases. Now check whether non-existent headers
4088 # can be detected and how.
4089 cat >conftest.$ac_ext <<_ACEOF
4090 /* confdefs.h. */
4091 _ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h. */
4095 #include <ac_nonexistent.h>
4096 _ACEOF
4097 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4098 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4099 ac_status=$?
4100 grep -v '^ *+' conftest.er1 >conftest.err
4101 rm -f conftest.er1
4102 cat conftest.err >&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); } >/dev/null; then
4105 if test -s conftest.err; then
4106 ac_cpp_err=$ac_c_preproc_warn_flag
4107 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4108 else
4109 ac_cpp_err=
4110 fi
4111 else
4112 ac_cpp_err=yes
4113 fi
4114 if test -z "$ac_cpp_err"; then
4115 # Broken: success on invalid input.
4116 continue
4117 else
4118 echo "$as_me: failed program was:" >&5
4119 sed 's/^/| /' conftest.$ac_ext >&5
4120
4121 # Passes both tests.
4122 ac_preproc_ok=:
4123 break
4124 fi
4125 rm -f conftest.err conftest.$ac_ext
4126
4127 done
4128 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4129 rm -f conftest.err conftest.$ac_ext
4130 if $ac_preproc_ok; then
4131 :
4132 else
4133 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4134 See \`config.log' for more details." >&5
4135 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4136 See \`config.log' for more details." >&2;}
4137 { (exit 1); exit 1; }; }
4138 fi
4139
4140 ac_ext=c
4141 ac_cpp='$CPP $CPPFLAGS'
4142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145
4146
4147 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4148 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4149 if test "${ac_cv_header_stdc+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152 cat >conftest.$ac_ext <<_ACEOF
4153 /* confdefs.h. */
4154 _ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4158 #include <stdlib.h>
4159 #include <stdarg.h>
4160 #include <string.h>
4161 #include <float.h>
4162
4163 int
4164 main ()
4165 {
4166
4167 ;
4168 return 0;
4169 }
4170 _ACEOF
4171 rm -f conftest.$ac_objext
4172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4173 (eval $ac_compile) 2>conftest.er1
4174 ac_status=$?
4175 grep -v '^ *+' conftest.er1 >conftest.err
4176 rm -f conftest.er1
4177 cat conftest.err >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } &&
4180 { ac_try='test -z "$ac_c_werror_flag"
4181 || test ! -s conftest.err'
4182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4183 (eval $ac_try) 2>&5
4184 ac_status=$?
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; } &&
4187 { ac_try='test -s conftest.$ac_objext'
4188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189 (eval $ac_try) 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 ac_cv_header_stdc=yes
4194 else
4195 echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4197
4198 ac_cv_header_stdc=no
4199 fi
4200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4201
4202 if test $ac_cv_header_stdc = yes; then
4203 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4204 cat >conftest.$ac_ext <<_ACEOF
4205 /* confdefs.h. */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4210 #include <string.h>
4211
4212 _ACEOF
4213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4214 $EGREP "memchr" >/dev/null 2>&1; then
4215 :
4216 else
4217 ac_cv_header_stdc=no
4218 fi
4219 rm -f conftest*
4220
4221 fi
4222
4223 if test $ac_cv_header_stdc = yes; then
4224 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4225 cat >conftest.$ac_ext <<_ACEOF
4226 /* confdefs.h. */
4227 _ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h. */
4231 #include <stdlib.h>
4232
4233 _ACEOF
4234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4235 $EGREP "free" >/dev/null 2>&1; then
4236 :
4237 else
4238 ac_cv_header_stdc=no
4239 fi
4240 rm -f conftest*
4241
4242 fi
4243
4244 if test $ac_cv_header_stdc = yes; then
4245 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4246 if test "$cross_compiling" = yes; then
4247 :
4248 else
4249 cat >conftest.$ac_ext <<_ACEOF
4250 /* confdefs.h. */
4251 _ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4255 #include <ctype.h>
4256 #if ((' ' & 0x0FF) == 0x020)
4257 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4258 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4259 #else
4260 # define ISLOWER(c) \
4261 (('a' <= (c) && (c) <= 'i') \
4262 || ('j' <= (c) && (c) <= 'r') \
4263 || ('s' <= (c) && (c) <= 'z'))
4264 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4265 #endif
4266
4267 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4268 int
4269 main ()
4270 {
4271 int i;
4272 for (i = 0; i < 256; i++)
4273 if (XOR (islower (i), ISLOWER (i))
4274 || toupper (i) != TOUPPER (i))
4275 exit(2);
4276 exit (0);
4277 }
4278 _ACEOF
4279 rm -f conftest$ac_exeext
4280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4281 (eval $ac_link) 2>&5
4282 ac_status=$?
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4286 (eval $ac_try) 2>&5
4287 ac_status=$?
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4290 :
4291 else
4292 echo "$as_me: program exited with status $ac_status" >&5
4293 echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4295
4296 ( exit $ac_status )
4297 ac_cv_header_stdc=no
4298 fi
4299 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4300 fi
4301 fi
4302 fi
4303 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4304 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4305 if test $ac_cv_header_stdc = yes; then
4306
4307 cat >>confdefs.h <<\_ACEOF
4308 #define STDC_HEADERS 1
4309 _ACEOF
4310
4311 fi
4312
4313 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4324 inttypes.h stdint.h unistd.h
4325 do
4326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4327 echo "$as_me:$LINENO: checking for $ac_header" >&5
4328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 else
4332 cat >conftest.$ac_ext <<_ACEOF
4333 /* confdefs.h. */
4334 _ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h. */
4338 $ac_includes_default
4339
4340 #include <$ac_header>
4341 _ACEOF
4342 rm -f conftest.$ac_objext
4343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4344 (eval $ac_compile) 2>conftest.er1
4345 ac_status=$?
4346 grep -v '^ *+' conftest.er1 >conftest.err
4347 rm -f conftest.er1
4348 cat conftest.err >&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); } &&
4351 { ac_try='test -z "$ac_c_werror_flag"
4352 || test ! -s conftest.err'
4353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354 (eval $ac_try) 2>&5
4355 ac_status=$?
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; } &&
4358 { ac_try='test -s conftest.$ac_objext'
4359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360 (eval $ac_try) 2>&5
4361 ac_status=$?
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; }; then
4364 eval "$as_ac_Header=yes"
4365 else
4366 echo "$as_me: failed program was:" >&5
4367 sed 's/^/| /' conftest.$ac_ext >&5
4368
4369 eval "$as_ac_Header=no"
4370 fi
4371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4372 fi
4373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4376 cat >>confdefs.h <<_ACEOF
4377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4378 _ACEOF
4379
4380 fi
4381
4382 done
4383
4384
4385
4386 for ac_header in dlfcn.h
4387 do
4388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4390 echo "$as_me:$LINENO: checking for $ac_header" >&5
4391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4393 echo $ECHO_N "(cached) $ECHO_C" >&6
4394 fi
4395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4397 else
4398 # Is the header compilable?
4399 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4400 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4401 cat >conftest.$ac_ext <<_ACEOF
4402 /* confdefs.h. */
4403 _ACEOF
4404 cat confdefs.h >>conftest.$ac_ext
4405 cat >>conftest.$ac_ext <<_ACEOF
4406 /* end confdefs.h. */
4407 $ac_includes_default
4408 #include <$ac_header>
4409 _ACEOF
4410 rm -f conftest.$ac_objext
4411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4412 (eval $ac_compile) 2>conftest.er1
4413 ac_status=$?
4414 grep -v '^ *+' conftest.er1 >conftest.err
4415 rm -f conftest.er1
4416 cat conftest.err >&5
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); } &&
4419 { ac_try='test -z "$ac_c_werror_flag"
4420 || test ! -s conftest.err'
4421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4422 (eval $ac_try) 2>&5
4423 ac_status=$?
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); }; } &&
4426 { ac_try='test -s conftest.$ac_objext'
4427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4428 (eval $ac_try) 2>&5
4429 ac_status=$?
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); }; }; then
4432 ac_header_compiler=yes
4433 else
4434 echo "$as_me: failed program was:" >&5
4435 sed 's/^/| /' conftest.$ac_ext >&5
4436
4437 ac_header_compiler=no
4438 fi
4439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4440 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4441 echo "${ECHO_T}$ac_header_compiler" >&6
4442
4443 # Is the header present?
4444 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4445 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4446 cat >conftest.$ac_ext <<_ACEOF
4447 /* confdefs.h. */
4448 _ACEOF
4449 cat confdefs.h >>conftest.$ac_ext
4450 cat >>conftest.$ac_ext <<_ACEOF
4451 /* end confdefs.h. */
4452 #include <$ac_header>
4453 _ACEOF
4454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4456 ac_status=$?
4457 grep -v '^ *+' conftest.er1 >conftest.err
4458 rm -f conftest.er1
4459 cat conftest.err >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } >/dev/null; then
4462 if test -s conftest.err; then
4463 ac_cpp_err=$ac_c_preproc_warn_flag
4464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4465 else
4466 ac_cpp_err=
4467 fi
4468 else
4469 ac_cpp_err=yes
4470 fi
4471 if test -z "$ac_cpp_err"; then
4472 ac_header_preproc=yes
4473 else
4474 echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4476
4477 ac_header_preproc=no
4478 fi
4479 rm -f conftest.err conftest.$ac_ext
4480 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4481 echo "${ECHO_T}$ac_header_preproc" >&6
4482
4483 # So? What about this header?
4484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4485 yes:no: )
4486 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4487 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4489 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4490 ac_header_preproc=yes
4491 ;;
4492 no:yes:* )
4493 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4494 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4495 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4496 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4497 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4498 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4499 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4500 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4502 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4503 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4504 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4505 (
4506 cat <<\_ASBOX
4507 ## ---------------------------------------------------------------------- ##
4508 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
4509 ## ---------------------------------------------------------------------- ##
4510 _ASBOX
4511 ) |
4512 sed "s/^/$as_me: WARNING: /" >&2
4513 ;;
4514 esac
4515 echo "$as_me:$LINENO: checking for $ac_header" >&5
4516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 else
4520 eval "$as_ac_Header=\$ac_header_preproc"
4521 fi
4522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4524
4525 fi
4526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4527 cat >>confdefs.h <<_ACEOF
4528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4529 _ACEOF
4530
4531 fi
4532
4533 done
4534
4535 ac_ext=cc
4536 ac_cpp='$CXXCPP $CPPFLAGS'
4537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4540 if test -n "$ac_tool_prefix"; then
4541 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4542 do
4543 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4544 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4545 echo "$as_me:$LINENO: checking for $ac_word" >&5
4546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4547 if test "${ac_cv_prog_CXX+set}" = set; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4549 else
4550 if test -n "$CXX"; then
4551 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4552 else
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH
4555 do
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4560 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 break 2
4563 fi
4564 done
4565 done
4566
4567 fi
4568 fi
4569 CXX=$ac_cv_prog_CXX
4570 if test -n "$CXX"; then
4571 echo "$as_me:$LINENO: result: $CXX" >&5
4572 echo "${ECHO_T}$CXX" >&6
4573 else
4574 echo "$as_me:$LINENO: result: no" >&5
4575 echo "${ECHO_T}no" >&6
4576 fi
4577
4578 test -n "$CXX" && break
4579 done
4580 fi
4581 if test -z "$CXX"; then
4582 ac_ct_CXX=$CXX
4583 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4584 do
4585 # Extract the first word of "$ac_prog", so it can be a program name with args.
4586 set dummy $ac_prog; ac_word=$2
4587 echo "$as_me:$LINENO: checking for $ac_word" >&5
4588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4589 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4590 echo $ECHO_N "(cached) $ECHO_C" >&6
4591 else
4592 if test -n "$ac_ct_CXX"; then
4593 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4594 else
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH
4597 do
4598 IFS=$as_save_IFS
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4602 ac_cv_prog_ac_ct_CXX="$ac_prog"
4603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4604 break 2
4605 fi
4606 done
4607 done
4608
4609 fi
4610 fi
4611 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4612 if test -n "$ac_ct_CXX"; then
4613 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4614 echo "${ECHO_T}$ac_ct_CXX" >&6
4615 else
4616 echo "$as_me:$LINENO: result: no" >&5
4617 echo "${ECHO_T}no" >&6
4618 fi
4619
4620 test -n "$ac_ct_CXX" && break
4621 done
4622 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4623
4624 CXX=$ac_ct_CXX
4625 fi
4626
4627
4628 # Provide some information about the compiler.
4629 echo "$as_me:$LINENO:" \
4630 "checking for C++ compiler version" >&5
4631 ac_compiler=`set X $ac_compile; echo $2`
4632 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4633 (eval $ac_compiler --version </dev/null >&5) 2>&5
4634 ac_status=$?
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }
4637 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4638 (eval $ac_compiler -v </dev/null >&5) 2>&5
4639 ac_status=$?
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); }
4642 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4643 (eval $ac_compiler -V </dev/null >&5) 2>&5
4644 ac_status=$?
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }
4647
4648 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4649 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4650 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4652 else
4653 cat >conftest.$ac_ext <<_ACEOF
4654 /* confdefs.h. */
4655 _ACEOF
4656 cat confdefs.h >>conftest.$ac_ext
4657 cat >>conftest.$ac_ext <<_ACEOF
4658 /* end confdefs.h. */
4659
4660 int
4661 main ()
4662 {
4663 #ifndef __GNUC__
4664 choke me
4665 #endif
4666
4667 ;
4668 return 0;
4669 }
4670 _ACEOF
4671 rm -f conftest.$ac_objext
4672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4673 (eval $ac_compile) 2>conftest.er1
4674 ac_status=$?
4675 grep -v '^ *+' conftest.er1 >conftest.err
4676 rm -f conftest.er1
4677 cat conftest.err >&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); } &&
4680 { ac_try='test -z "$ac_cxx_werror_flag"
4681 || test ! -s conftest.err'
4682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683 (eval $ac_try) 2>&5
4684 ac_status=$?
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); }; } &&
4687 { ac_try='test -s conftest.$ac_objext'
4688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689 (eval $ac_try) 2>&5
4690 ac_status=$?
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); }; }; then
4693 ac_compiler_gnu=yes
4694 else
4695 echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4697
4698 ac_compiler_gnu=no
4699 fi
4700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4701 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4702
4703 fi
4704 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4705 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4706 GXX=`test $ac_compiler_gnu = yes && echo yes`
4707 ac_test_CXXFLAGS=${CXXFLAGS+set}
4708 ac_save_CXXFLAGS=$CXXFLAGS
4709 CXXFLAGS="-g"
4710 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4711 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4712 if test "${ac_cv_prog_cxx_g+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 else
4715 cat >conftest.$ac_ext <<_ACEOF
4716 /* confdefs.h. */
4717 _ACEOF
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h. */
4721
4722 int
4723 main ()
4724 {
4725
4726 ;
4727 return 0;
4728 }
4729 _ACEOF
4730 rm -f conftest.$ac_objext
4731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4732 (eval $ac_compile) 2>conftest.er1
4733 ac_status=$?
4734 grep -v '^ *+' conftest.er1 >conftest.err
4735 rm -f conftest.er1
4736 cat conftest.err >&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } &&
4739 { ac_try='test -z "$ac_cxx_werror_flag"
4740 || test ! -s conftest.err'
4741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4742 (eval $ac_try) 2>&5
4743 ac_status=$?
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); }; } &&
4746 { ac_try='test -s conftest.$ac_objext'
4747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4748 (eval $ac_try) 2>&5
4749 ac_status=$?
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; }; then
4752 ac_cv_prog_cxx_g=yes
4753 else
4754 echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4756
4757 ac_cv_prog_cxx_g=no
4758 fi
4759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4760 fi
4761 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4762 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4763 if test "$ac_test_CXXFLAGS" = set; then
4764 CXXFLAGS=$ac_save_CXXFLAGS
4765 elif test $ac_cv_prog_cxx_g = yes; then
4766 if test "$GXX" = yes; then
4767 CXXFLAGS="-g -O2"
4768 else
4769 CXXFLAGS="-g"
4770 fi
4771 else
4772 if test "$GXX" = yes; then
4773 CXXFLAGS="-O2"
4774 else
4775 CXXFLAGS=
4776 fi
4777 fi
4778 for ac_declaration in \
4779 '' \
4780 'extern "C" void std::exit (int) throw (); using std::exit;' \
4781 'extern "C" void std::exit (int); using std::exit;' \
4782 'extern "C" void exit (int) throw ();' \
4783 'extern "C" void exit (int);' \
4784 'void exit (int);'
4785 do
4786 cat >conftest.$ac_ext <<_ACEOF
4787 /* confdefs.h. */
4788 _ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4792 $ac_declaration
4793 #include <stdlib.h>
4794 int
4795 main ()
4796 {
4797 exit (42);
4798 ;
4799 return 0;
4800 }
4801 _ACEOF
4802 rm -f conftest.$ac_objext
4803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4804 (eval $ac_compile) 2>conftest.er1
4805 ac_status=$?
4806 grep -v '^ *+' conftest.er1 >conftest.err
4807 rm -f conftest.er1
4808 cat conftest.err >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } &&
4811 { ac_try='test -z "$ac_cxx_werror_flag"
4812 || test ! -s conftest.err'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 (eval $ac_try) 2>&5
4815 ac_status=$?
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; } &&
4818 { ac_try='test -s conftest.$ac_objext'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 (eval $ac_try) 2>&5
4821 ac_status=$?
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; }; then
4824 :
4825 else
4826 echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4828
4829 continue
4830 fi
4831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4832 cat >conftest.$ac_ext <<_ACEOF
4833 /* confdefs.h. */
4834 _ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4838 $ac_declaration
4839 int
4840 main ()
4841 {
4842 exit (42);
4843 ;
4844 return 0;
4845 }
4846 _ACEOF
4847 rm -f conftest.$ac_objext
4848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4849 (eval $ac_compile) 2>conftest.er1
4850 ac_status=$?
4851 grep -v '^ *+' conftest.er1 >conftest.err
4852 rm -f conftest.er1
4853 cat conftest.err >&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); } &&
4856 { ac_try='test -z "$ac_cxx_werror_flag"
4857 || test ! -s conftest.err'
4858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859 (eval $ac_try) 2>&5
4860 ac_status=$?
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); }; } &&
4863 { ac_try='test -s conftest.$ac_objext'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 (eval $ac_try) 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4869 break
4870 else
4871 echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4873
4874 fi
4875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4876 done
4877 rm -f conftest*
4878 if test -n "$ac_declaration"; then
4879 echo '#ifdef __cplusplus' >>confdefs.h
4880 echo $ac_declaration >>confdefs.h
4881 echo '#endif' >>confdefs.h
4882 fi
4883
4884 ac_ext=cc
4885 ac_cpp='$CXXCPP $CPPFLAGS'
4886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4889
4890 depcc="$CXX" am_compiler_list=
4891
4892 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4893 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4894 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4896 else
4897 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4898 # We make a subdir and do the tests there. Otherwise we can end up
4899 # making bogus files that we don't know about and never remove. For
4900 # instance it was reported that on HP-UX the gcc test will end up
4901 # making a dummy file named `D' -- because `-MD' means `put the output
4902 # in D'.
4903 mkdir conftest.dir
4904 # Copy depcomp to subdir because otherwise we won't find it if we're
4905 # using a relative directory.
4906 cp "$am_depcomp" conftest.dir
4907 cd conftest.dir
4908 # We will build objects and dependencies in a subdirectory because
4909 # it helps to detect inapplicable dependency modes. For instance
4910 # both Tru64's cc and ICC support -MD to output dependencies as a
4911 # side effect of compilation, but ICC will put the dependencies in
4912 # the current directory while Tru64 will put them in the object
4913 # directory.
4914 mkdir sub
4915
4916 am_cv_CXX_dependencies_compiler_type=none
4917 if test "$am_compiler_list" = ""; then
4918 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4919 fi
4920 for depmode in $am_compiler_list; do
4921 # Setup a source with many dependencies, because some compilers
4922 # like to wrap large dependency lists on column 80 (with \), and
4923 # we should not choose a depcomp mode which is confused by this.
4924 #
4925 # We need to recreate these files for each test, as the compiler may
4926 # overwrite some of them when testing with obscure command lines.
4927 # This happens at least with the AIX C compiler.
4928 : > sub/conftest.c
4929 for i in 1 2 3 4 5 6; do
4930 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4931 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4932 # Solaris 8's {/usr,}/bin/sh.
4933 touch sub/conftst$i.h
4934 done
4935 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4936
4937 case $depmode in
4938 nosideeffect)
4939 # after this tag, mechanisms are not by side-effect, so they'll
4940 # only be used when explicitly requested
4941 if test "x$enable_dependency_tracking" = xyes; then
4942 continue
4943 else
4944 break
4945 fi
4946 ;;
4947 none) break ;;
4948 esac
4949 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4950 # mode. It turns out that the SunPro C++ compiler does not properly
4951 # handle `-M -o', and we need to detect this.
4952 if depmode=$depmode \
4953 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4954 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4955 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4956 >/dev/null 2>conftest.err &&
4957 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4958 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4959 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4960 # icc doesn't choke on unknown options, it will just issue warnings
4961 # or remarks (even with -Werror). So we grep stderr for any message
4962 # that says an option was ignored or not supported.
4963 # When given -MP, icc 7.0 and 7.1 complain thusly:
4964 # icc: Command line warning: ignoring option '-M'; no argument required
4965 # The diagnosis changed in icc 8.0:
4966 # icc: Command line remark: option '-MP' not supported
4967 if (grep 'ignoring option' conftest.err ||
4968 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4969 am_cv_CXX_dependencies_compiler_type=$depmode
4970 break
4971 fi
4972 fi
4973 done
4974
4975 cd ..
4976 rm -rf conftest.dir
4977 else
4978 am_cv_CXX_dependencies_compiler_type=none
4979 fi
4980
4981 fi
4982 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4983 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4984 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4985
4986
4987
4988 if
4989 test "x$enable_dependency_tracking" != xno \
4990 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4991 am__fastdepCXX_TRUE=
4992 am__fastdepCXX_FALSE='#'
4993 else
4994 am__fastdepCXX_TRUE='#'
4995 am__fastdepCXX_FALSE=
4996 fi
4997
4998
4999
5000
5001 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5002 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5003 (test "X$CXX" != "Xg++"))) ; then
5004 ac_ext=cc
5005 ac_cpp='$CXXCPP $CPPFLAGS'
5006 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5007 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5008 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5009 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5010 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5011 if test -z "$CXXCPP"; then
5012 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5014 else
5015 # Double quotes because CXXCPP needs to be expanded
5016 for CXXCPP in "$CXX -E" "/lib/cpp"
5017 do
5018 ac_preproc_ok=false
5019 for ac_cxx_preproc_warn_flag in '' yes
5020 do
5021 # Use a header file that comes with gcc, so configuring glibc
5022 # with a fresh cross-compiler works.
5023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5024 # <limits.h> exists even on freestanding compilers.
5025 # On the NeXT, cc -E runs the code through the compiler's parser,
5026 # not just through cpp. "Syntax error" is here to catch this case.
5027 cat >conftest.$ac_ext <<_ACEOF
5028 /* confdefs.h. */
5029 _ACEOF
5030 cat confdefs.h >>conftest.$ac_ext
5031 cat >>conftest.$ac_ext <<_ACEOF
5032 /* end confdefs.h. */
5033 #ifdef __STDC__
5034 # include <limits.h>
5035 #else
5036 # include <assert.h>
5037 #endif
5038 Syntax error
5039 _ACEOF
5040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5042 ac_status=$?
5043 grep -v '^ *+' conftest.er1 >conftest.err
5044 rm -f conftest.er1
5045 cat conftest.err >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } >/dev/null; then
5048 if test -s conftest.err; then
5049 ac_cpp_err=$ac_cxx_preproc_warn_flag
5050 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5051 else
5052 ac_cpp_err=
5053 fi
5054 else
5055 ac_cpp_err=yes
5056 fi
5057 if test -z "$ac_cpp_err"; then
5058 :
5059 else
5060 echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.$ac_ext >&5
5062
5063 # Broken: fails on valid input.
5064 continue
5065 fi
5066 rm -f conftest.err conftest.$ac_ext
5067
5068 # OK, works on sane cases. Now check whether non-existent headers
5069 # can be detected and how.
5070 cat >conftest.$ac_ext <<_ACEOF
5071 /* confdefs.h. */
5072 _ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5076 #include <ac_nonexistent.h>
5077 _ACEOF
5078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5080 ac_status=$?
5081 grep -v '^ *+' conftest.er1 >conftest.err
5082 rm -f conftest.er1
5083 cat conftest.err >&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } >/dev/null; then
5086 if test -s conftest.err; then
5087 ac_cpp_err=$ac_cxx_preproc_warn_flag
5088 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5089 else
5090 ac_cpp_err=
5091 fi
5092 else
5093 ac_cpp_err=yes
5094 fi
5095 if test -z "$ac_cpp_err"; then
5096 # Broken: success on invalid input.
5097 continue
5098 else
5099 echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5101
5102 # Passes both tests.
5103 ac_preproc_ok=:
5104 break
5105 fi
5106 rm -f conftest.err conftest.$ac_ext
5107
5108 done
5109 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5110 rm -f conftest.err conftest.$ac_ext
5111 if $ac_preproc_ok; then
5112 break
5113 fi
5114
5115 done
5116 ac_cv_prog_CXXCPP=$CXXCPP
5117
5118 fi
5119 CXXCPP=$ac_cv_prog_CXXCPP
5120 else
5121 ac_cv_prog_CXXCPP=$CXXCPP
5122 fi
5123 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5124 echo "${ECHO_T}$CXXCPP" >&6
5125 ac_preproc_ok=false
5126 for ac_cxx_preproc_warn_flag in '' yes
5127 do
5128 # Use a header file that comes with gcc, so configuring glibc
5129 # with a fresh cross-compiler works.
5130 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5131 # <limits.h> exists even on freestanding compilers.
5132 # On the NeXT, cc -E runs the code through the compiler's parser,
5133 # not just through cpp. "Syntax error" is here to catch this case.
5134 cat >conftest.$ac_ext <<_ACEOF
5135 /* confdefs.h. */
5136 _ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h. */
5140 #ifdef __STDC__
5141 # include <limits.h>
5142 #else
5143 # include <assert.h>
5144 #endif
5145 Syntax error
5146 _ACEOF
5147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5149 ac_status=$?
5150 grep -v '^ *+' conftest.er1 >conftest.err
5151 rm -f conftest.er1
5152 cat conftest.err >&5
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); } >/dev/null; then
5155 if test -s conftest.err; then
5156 ac_cpp_err=$ac_cxx_preproc_warn_flag
5157 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5158 else
5159 ac_cpp_err=
5160 fi
5161 else
5162 ac_cpp_err=yes
5163 fi
5164 if test -z "$ac_cpp_err"; then
5165 :
5166 else
5167 echo "$as_me: failed program was:" >&5
5168 sed 's/^/| /' conftest.$ac_ext >&5
5169
5170 # Broken: fails on valid input.
5171 continue
5172 fi
5173 rm -f conftest.err conftest.$ac_ext
5174
5175 # OK, works on sane cases. Now check whether non-existent headers
5176 # can be detected and how.
5177 cat >conftest.$ac_ext <<_ACEOF
5178 /* confdefs.h. */
5179 _ACEOF
5180 cat confdefs.h >>conftest.$ac_ext
5181 cat >>conftest.$ac_ext <<_ACEOF
5182 /* end confdefs.h. */
5183 #include <ac_nonexistent.h>
5184 _ACEOF
5185 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5186 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5187 ac_status=$?
5188 grep -v '^ *+' conftest.er1 >conftest.err
5189 rm -f conftest.er1
5190 cat conftest.err >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } >/dev/null; then
5193 if test -s conftest.err; then
5194 ac_cpp_err=$ac_cxx_preproc_warn_flag
5195 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5196 else
5197 ac_cpp_err=
5198 fi
5199 else
5200 ac_cpp_err=yes
5201 fi
5202 if test -z "$ac_cpp_err"; then
5203 # Broken: success on invalid input.
5204 continue
5205 else
5206 echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5208
5209 # Passes both tests.
5210 ac_preproc_ok=:
5211 break
5212 fi
5213 rm -f conftest.err conftest.$ac_ext
5214
5215 done
5216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5217 rm -f conftest.err conftest.$ac_ext
5218 if $ac_preproc_ok; then
5219 :
5220 else
5221 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5222 See \`config.log' for more details." >&5
5223 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5224 See \`config.log' for more details." >&2;}
5225 { (exit 1); exit 1; }; }
5226 fi
5227
5228 ac_ext=cc
5229 ac_cpp='$CXXCPP $CPPFLAGS'
5230 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5231 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5232 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5233
5234 fi
5235
5236
5237 ac_ext=f
5238 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5239 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5240 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5241 if test -n "$ac_tool_prefix"; then
5242 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5243 do
5244 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5245 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5246 echo "$as_me:$LINENO: checking for $ac_word" >&5
5247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5248 if test "${ac_cv_prog_F77+set}" = set; then
5249 echo $ECHO_N "(cached) $ECHO_C" >&6
5250 else
5251 if test -n "$F77"; then
5252 ac_cv_prog_F77="$F77" # Let the user override the test.
5253 else
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 for as_dir in $PATH
5256 do
5257 IFS=$as_save_IFS
5258 test -z "$as_dir" && as_dir=.
5259 for ac_exec_ext in '' $ac_executable_extensions; do
5260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5261 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 break 2
5264 fi
5265 done
5266 done
5267
5268 fi
5269 fi
5270 F77=$ac_cv_prog_F77
5271 if test -n "$F77"; then
5272 echo "$as_me:$LINENO: result: $F77" >&5
5273 echo "${ECHO_T}$F77" >&6
5274 else
5275 echo "$as_me:$LINENO: result: no" >&5
5276 echo "${ECHO_T}no" >&6
5277 fi
5278
5279 test -n "$F77" && break
5280 done
5281 fi
5282 if test -z "$F77"; then
5283 ac_ct_F77=$F77
5284 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5285 do
5286 # Extract the first word of "$ac_prog", so it can be a program name with args.
5287 set dummy $ac_prog; ac_word=$2
5288 echo "$as_me:$LINENO: checking for $ac_word" >&5
5289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5290 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 else
5293 if test -n "$ac_ct_F77"; then
5294 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5295 else
5296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 for as_dir in $PATH
5298 do
5299 IFS=$as_save_IFS
5300 test -z "$as_dir" && as_dir=.
5301 for ac_exec_ext in '' $ac_executable_extensions; do
5302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5303 ac_cv_prog_ac_ct_F77="$ac_prog"
5304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5305 break 2
5306 fi
5307 done
5308 done
5309
5310 fi
5311 fi
5312 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5313 if test -n "$ac_ct_F77"; then
5314 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5315 echo "${ECHO_T}$ac_ct_F77" >&6
5316 else
5317 echo "$as_me:$LINENO: result: no" >&5
5318 echo "${ECHO_T}no" >&6
5319 fi
5320
5321 test -n "$ac_ct_F77" && break
5322 done
5323
5324 F77=$ac_ct_F77
5325 fi
5326
5327
5328 # Provide some information about the compiler.
5329 echo "$as_me:5329:" \
5330 "checking for Fortran 77 compiler version" >&5
5331 ac_compiler=`set X $ac_compile; echo $2`
5332 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5333 (eval $ac_compiler --version </dev/null >&5) 2>&5
5334 ac_status=$?
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); }
5337 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5338 (eval $ac_compiler -v </dev/null >&5) 2>&5
5339 ac_status=$?
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); }
5342 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5343 (eval $ac_compiler -V </dev/null >&5) 2>&5
5344 ac_status=$?
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }
5347 rm -f a.out
5348
5349 # If we don't use `.F' as extension, the preprocessor is not run on the
5350 # input file. (Note that this only needs to work for GNU compilers.)
5351 ac_save_ext=$ac_ext
5352 ac_ext=F
5353 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5354 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5355 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5357 else
5358 cat >conftest.$ac_ext <<_ACEOF
5359 program main
5360 #ifndef __GNUC__
5361 choke me
5362 #endif
5363
5364 end
5365 _ACEOF
5366 rm -f conftest.$ac_objext
5367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5368 (eval $ac_compile) 2>conftest.er1
5369 ac_status=$?
5370 grep -v '^ *+' conftest.er1 >conftest.err
5371 rm -f conftest.er1
5372 cat conftest.err >&5
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); } &&
5375 { ac_try='test -z "$ac_f77_werror_flag"
5376 || test ! -s conftest.err'
5377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5378 (eval $ac_try) 2>&5
5379 ac_status=$?
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); }; } &&
5382 { ac_try='test -s conftest.$ac_objext'
5383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384 (eval $ac_try) 2>&5
5385 ac_status=$?
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); }; }; then
5388 ac_compiler_gnu=yes
5389 else
5390 echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5392
5393 ac_compiler_gnu=no
5394 fi
5395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5396 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5397
5398 fi
5399 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5400 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5401 ac_ext=$ac_save_ext
5402 ac_test_FFLAGS=${FFLAGS+set}
5403 ac_save_FFLAGS=$FFLAGS
5404 FFLAGS=
5405 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5406 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5407 if test "${ac_cv_prog_f77_g+set}" = set; then
5408 echo $ECHO_N "(cached) $ECHO_C" >&6
5409 else
5410 FFLAGS=-g
5411 cat >conftest.$ac_ext <<_ACEOF
5412 program main
5413
5414 end
5415 _ACEOF
5416 rm -f conftest.$ac_objext
5417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5418 (eval $ac_compile) 2>conftest.er1
5419 ac_status=$?
5420 grep -v '^ *+' conftest.er1 >conftest.err
5421 rm -f conftest.er1
5422 cat conftest.err >&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); } &&
5425 { ac_try='test -z "$ac_f77_werror_flag"
5426 || test ! -s conftest.err'
5427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5428 (eval $ac_try) 2>&5
5429 ac_status=$?
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); }; } &&
5432 { ac_try='test -s conftest.$ac_objext'
5433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434 (eval $ac_try) 2>&5
5435 ac_status=$?
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }; }; then
5438 ac_cv_prog_f77_g=yes
5439 else
5440 echo "$as_me: failed program was:" >&5
5441 sed 's/^/| /' conftest.$ac_ext >&5
5442
5443 ac_cv_prog_f77_g=no
5444 fi
5445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5446
5447 fi
5448 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5449 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5450 if test "$ac_test_FFLAGS" = set; then
5451 FFLAGS=$ac_save_FFLAGS
5452 elif test $ac_cv_prog_f77_g = yes; then
5453 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5454 FFLAGS="-g -O2"
5455 else
5456 FFLAGS="-g"
5457 fi
5458 else
5459 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5460 FFLAGS="-O2"
5461 else
5462 FFLAGS=
5463 fi
5464 fi
5465
5466 G77=`test $ac_compiler_gnu = yes && echo yes`
5467 ac_ext=c
5468 ac_cpp='$CPP $CPPFLAGS'
5469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5472
5473
5474
5475 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5476
5477 # find the maximum length of command line arguments
5478 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5479 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5480 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5482 else
5483 i=0
5484 teststring="ABCD"
5485
5486 case $build_os in
5487 msdosdjgpp*)
5488 # On DJGPP, this test can blow up pretty badly due to problems in libc
5489 # (any single argument exceeding 2000 bytes causes a buffer overrun
5490 # during glob expansion). Even if it were fixed, the result of this
5491 # check would be larger than it should be.
5492 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5493 ;;
5494
5495 gnu*)
5496 # Under GNU Hurd, this test is not required because there is
5497 # no limit to the length of command line arguments.
5498 # Libtool will interpret -1 as no limit whatsoever
5499 lt_cv_sys_max_cmd_len=-1;
5500 ;;
5501
5502 cygwin* | mingw*)
5503 # On Win9x/ME, this test blows up -- it succeeds, but takes
5504 # about 5 minutes as the teststring grows exponentially.
5505 # Worse, since 9x/ME are not pre-emptively multitasking,
5506 # you end up with a "frozen" computer, even though with patience
5507 # the test eventually succeeds (with a max line length of 256k).
5508 # Instead, let's just punt: use the minimum linelength reported by
5509 # all of the supported platforms: 8192 (on NT/2K/XP).
5510 lt_cv_sys_max_cmd_len=8192;
5511 ;;
5512
5513 amigaos*)
5514 # On AmigaOS with pdksh, this test takes hours, literally.
5515 # So we just punt and use a minimum line length of 8192.
5516 lt_cv_sys_max_cmd_len=8192;
5517 ;;
5518
5519 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5520 # This has been around since 386BSD, at least. Likely further.
5521 if test -x /sbin/sysctl; then
5522 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5523 elif test -x /usr/sbin/sysctl; then
5524 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5525 else
5526 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5527 fi
5528 # And add a safety zone
5529 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5530 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5531 ;;
5532
5533 interix*)
5534 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5535 lt_cv_sys_max_cmd_len=196608
5536 ;;
5537
5538 osf*)
5539 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5540 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5541 # nice to cause kernel panics so lets avoid the loop below.
5542 # First set a reasonable default.
5543 lt_cv_sys_max_cmd_len=16384
5544 #
5545 if test -x /sbin/sysconfig; then
5546 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5547 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5548 esac
5549 fi
5550 ;;
5551 sco3.2v5*)
5552 lt_cv_sys_max_cmd_len=102400
5553 ;;
5554 sysv5* | sco5v6* | sysv4.2uw2*)
5555 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5556 if test -n "$kargmax"; then
5557 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5558 else
5559 lt_cv_sys_max_cmd_len=32768
5560 fi
5561 ;;
5562 *)
5563 # If test is not a shell built-in, we'll probably end up computing a
5564 # maximum length that is only half of the actual maximum length, but
5565 # we can't tell.
5566 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5567 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5568 = "XX$teststring") >/dev/null 2>&1 &&
5569 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5570 lt_cv_sys_max_cmd_len=$new_result &&
5571 test $i != 17 # 1/2 MB should be enough
5572 do
5573 i=`expr $i + 1`
5574 teststring=$teststring$teststring
5575 done
5576 teststring=
5577 # Add a significant safety factor because C++ compilers can tack on massive
5578 # amounts of additional arguments before passing them to the linker.
5579 # It appears as though 1/2 is a usable value.
5580 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5581 ;;
5582 esac
5583
5584 fi
5585
5586 if test -n $lt_cv_sys_max_cmd_len ; then
5587 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5588 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5589 else
5590 echo "$as_me:$LINENO: result: none" >&5
5591 echo "${ECHO_T}none" >&6
5592 fi
5593
5594
5595
5596
5597 # Check for command to grab the raw symbol name followed by C symbol from nm.
5598 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5599 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5600 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5602 else
5603
5604 # These are sane defaults that work on at least a few old systems.
5605 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5606
5607 # Character class describing NM global symbol codes.
5608 symcode='[BCDEGRST]'
5609
5610 # Regexp to match symbols that can be accessed directly from C.
5611 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5612
5613 # Transform an extracted symbol line into a proper C declaration
5614 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5615
5616 # Transform an extracted symbol line into symbol name and symbol address
5617 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'"
5618
5619 # Define system-specific variables.
5620 case $host_os in
5621 aix*)
5622 symcode='[BCDT]'
5623 ;;
5624 cygwin* | mingw* | pw32*)
5625 symcode='[ABCDGISTW]'
5626 ;;
5627 hpux*) # Its linker distinguishes data from code symbols
5628 if test "$host_cpu" = ia64; then
5629 symcode='[ABCDEGRST]'
5630 fi
5631 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5632 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'"
5633 ;;
5634 linux*)
5635 if test "$host_cpu" = ia64; then
5636 symcode='[ABCDGIRSTW]'
5637 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5638 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'"
5639 fi
5640 ;;
5641 irix* | nonstopux*)
5642 symcode='[BCDEGRST]'
5643 ;;
5644 osf*)
5645 symcode='[BCDEGQRST]'
5646 ;;
5647 solaris*)
5648 symcode='[BDRT]'
5649 ;;
5650 sco3.2v5*)
5651 symcode='[DT]'
5652 ;;
5653 sysv4.2uw2*)
5654 symcode='[DT]'
5655 ;;
5656 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5657 symcode='[ABDT]'
5658 ;;
5659 sysv4)
5660 symcode='[DFNSTU]'
5661 ;;
5662 esac
5663
5664 # Handle CRLF in mingw tool chain
5665 opt_cr=
5666 case $build_os in
5667 mingw*)
5668 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5669 ;;
5670 esac
5671
5672 # If we're using GNU nm, then use its standard symbol codes.
5673 case `$NM -V 2>&1` in
5674 *GNU* | *'with BFD'*)
5675 symcode='[ABCDGIRSTW]' ;;
5676 esac
5677
5678 # Try without a prefix undercore, then with it.
5679 for ac_symprfx in "" "_"; do
5680
5681 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5682 symxfrm="\\1 $ac_symprfx\\2 \\2"
5683
5684 # Write the raw and C identifiers.
5685 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5686
5687 # Check to see that the pipe works correctly.
5688 pipe_works=no
5689
5690 rm -f conftest*
5691 cat > conftest.$ac_ext <<EOF
5692 #ifdef __cplusplus
5693 extern "C" {
5694 #endif
5695 char nm_test_var;
5696 void nm_test_func(){}
5697 #ifdef __cplusplus
5698 }
5699 #endif
5700 int main(){nm_test_var='a';nm_test_func();return(0);}
5701 EOF
5702
5703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5704 (eval $ac_compile) 2>&5
5705 ac_status=$?
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; then
5708 # Now try to grab the symbols.
5709 nlist=conftest.nm
5710 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5711 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5712 ac_status=$?
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); } && test -s "$nlist"; then
5715 # Try sorting and uniquifying the output.
5716 if sort "$nlist" | uniq > "$nlist"T; then
5717 mv -f "$nlist"T "$nlist"
5718 else
5719 rm -f "$nlist"T
5720 fi
5721
5722 # Make sure that we snagged all the symbols we need.
5723 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5724 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5725 cat <<EOF > conftest.$ac_ext
5726 #ifdef __cplusplus
5727 extern "C" {
5728 #endif
5729
5730 EOF
5731 # Now generate the symbol file.
5732 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5733
5734 cat <<EOF >> conftest.$ac_ext
5735 #if defined (__STDC__) && __STDC__
5736 # define lt_ptr_t void *
5737 #else
5738 # define lt_ptr_t char *
5739 # define const
5740 #endif
5741
5742 /* The mapping between symbol names and symbols. */
5743 const struct {
5744 const char *name;
5745 lt_ptr_t address;
5746 }
5747 lt_preloaded_symbols[] =
5748 {
5749 EOF
5750 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5751 cat <<\EOF >> conftest.$ac_ext
5752 {0, (lt_ptr_t) 0}
5753 };
5754
5755 #ifdef __cplusplus
5756 }
5757 #endif
5758 EOF
5759 # Now try linking the two files.
5760 mv conftest.$ac_objext conftstm.$ac_objext
5761 lt_save_LIBS="$LIBS"
5762 lt_save_CFLAGS="$CFLAGS"
5763 LIBS="conftstm.$ac_objext"
5764 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5766 (eval $ac_link) 2>&5
5767 ac_status=$?
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5770 pipe_works=yes
5771 fi
5772 LIBS="$lt_save_LIBS"
5773 CFLAGS="$lt_save_CFLAGS"
5774 else
5775 echo "cannot find nm_test_func in $nlist" >&5
5776 fi
5777 else
5778 echo "cannot find nm_test_var in $nlist" >&5
5779 fi
5780 else
5781 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5782 fi
5783 else
5784 echo "$progname: failed program was:" >&5
5785 cat conftest.$ac_ext >&5
5786 fi
5787 rm -f conftest* conftst*
5788
5789 # Do not use the global_symbol_pipe unless it works.
5790 if test "$pipe_works" = yes; then
5791 break
5792 else
5793 lt_cv_sys_global_symbol_pipe=
5794 fi
5795 done
5796
5797 fi
5798
5799 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5800 lt_cv_sys_global_symbol_to_cdecl=
5801 fi
5802 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5803 echo "$as_me:$LINENO: result: failed" >&5
5804 echo "${ECHO_T}failed" >&6
5805 else
5806 echo "$as_me:$LINENO: result: ok" >&5
5807 echo "${ECHO_T}ok" >&6
5808 fi
5809
5810 echo "$as_me:$LINENO: checking for objdir" >&5
5811 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5812 if test "${lt_cv_objdir+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5814 else
5815 rm -f .libs 2>/dev/null
5816 mkdir .libs 2>/dev/null
5817 if test -d .libs; then
5818 lt_cv_objdir=.libs
5819 else
5820 # MS-DOS does not allow filenames that begin with a dot.
5821 lt_cv_objdir=_libs
5822 fi
5823 rmdir .libs 2>/dev/null
5824 fi
5825 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5826 echo "${ECHO_T}$lt_cv_objdir" >&6
5827 objdir=$lt_cv_objdir
5828
5829
5830
5831
5832
5833 case $host_os in
5834 aix3*)
5835 # AIX sometimes has problems with the GCC collect2 program. For some
5836 # reason, if we set the COLLECT_NAMES environment variable, the problems
5837 # vanish in a puff of smoke.
5838 if test "X${COLLECT_NAMES+set}" != Xset; then
5839 COLLECT_NAMES=
5840 export COLLECT_NAMES
5841 fi
5842 ;;
5843 esac
5844
5845 # Sed substitution that helps us do robust quoting. It backslashifies
5846 # metacharacters that are still active within double-quoted strings.
5847 Xsed='sed -e 1s/^X//'
5848 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5849
5850 # Same as above, but do not quote variable references.
5851 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5852
5853 # Sed substitution to delay expansion of an escaped shell variable in a
5854 # double_quote_subst'ed string.
5855 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5856
5857 # Sed substitution to avoid accidental globbing in evaled expressions
5858 no_glob_subst='s/\*/\\\*/g'
5859
5860 # Constants:
5861 rm="rm -f"
5862
5863 # Global variables:
5864 default_ofile=libtool
5865 can_build_shared=yes
5866
5867 # All known linkers require a `.a' archive for static linking (except MSVC,
5868 # which needs '.lib').
5869 libext=a
5870 ltmain="$ac_aux_dir/ltmain.sh"
5871 ofile="$default_ofile"
5872 with_gnu_ld="$lt_cv_prog_gnu_ld"
5873
5874 if test -n "$ac_tool_prefix"; then
5875 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5876 set dummy ${ac_tool_prefix}ar; ac_word=$2
5877 echo "$as_me:$LINENO: checking for $ac_word" >&5
5878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5879 if test "${ac_cv_prog_AR+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 else
5882 if test -n "$AR"; then
5883 ac_cv_prog_AR="$AR" # Let the user override the test.
5884 else
5885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886 for as_dir in $PATH
5887 do
5888 IFS=$as_save_IFS
5889 test -z "$as_dir" && as_dir=.
5890 for ac_exec_ext in '' $ac_executable_extensions; do
5891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5892 ac_cv_prog_AR="${ac_tool_prefix}ar"
5893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5894 break 2
5895 fi
5896 done
5897 done
5898
5899 fi
5900 fi
5901 AR=$ac_cv_prog_AR
5902 if test -n "$AR"; then
5903 echo "$as_me:$LINENO: result: $AR" >&5
5904 echo "${ECHO_T}$AR" >&6
5905 else
5906 echo "$as_me:$LINENO: result: no" >&5
5907 echo "${ECHO_T}no" >&6
5908 fi
5909
5910 fi
5911 if test -z "$ac_cv_prog_AR"; then
5912 ac_ct_AR=$AR
5913 # Extract the first word of "ar", so it can be a program name with args.
5914 set dummy ar; ac_word=$2
5915 echo "$as_me:$LINENO: checking for $ac_word" >&5
5916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5917 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 else
5920 if test -n "$ac_ct_AR"; then
5921 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5922 else
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 for as_dir in $PATH
5925 do
5926 IFS=$as_save_IFS
5927 test -z "$as_dir" && as_dir=.
5928 for ac_exec_ext in '' $ac_executable_extensions; do
5929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5930 ac_cv_prog_ac_ct_AR="ar"
5931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5932 break 2
5933 fi
5934 done
5935 done
5936
5937 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5938 fi
5939 fi
5940 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5941 if test -n "$ac_ct_AR"; then
5942 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5943 echo "${ECHO_T}$ac_ct_AR" >&6
5944 else
5945 echo "$as_me:$LINENO: result: no" >&5
5946 echo "${ECHO_T}no" >&6
5947 fi
5948
5949 AR=$ac_ct_AR
5950 else
5951 AR="$ac_cv_prog_AR"
5952 fi
5953
5954 if test -n "$ac_tool_prefix"; then
5955 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5956 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5957 echo "$as_me:$LINENO: checking for $ac_word" >&5
5958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5959 if test "${ac_cv_prog_RANLIB+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 else
5962 if test -n "$RANLIB"; then
5963 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5964 else
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 for as_dir in $PATH
5967 do
5968 IFS=$as_save_IFS
5969 test -z "$as_dir" && as_dir=.
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5972 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5974 break 2
5975 fi
5976 done
5977 done
5978
5979 fi
5980 fi
5981 RANLIB=$ac_cv_prog_RANLIB
5982 if test -n "$RANLIB"; then
5983 echo "$as_me:$LINENO: result: $RANLIB" >&5
5984 echo "${ECHO_T}$RANLIB" >&6
5985 else
5986 echo "$as_me:$LINENO: result: no" >&5
5987 echo "${ECHO_T}no" >&6
5988 fi
5989
5990 fi
5991 if test -z "$ac_cv_prog_RANLIB"; then
5992 ac_ct_RANLIB=$RANLIB
5993 # Extract the first word of "ranlib", so it can be a program name with args.
5994 set dummy ranlib; ac_word=$2
5995 echo "$as_me:$LINENO: checking for $ac_word" >&5
5996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5997 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
5999 else
6000 if test -n "$ac_ct_RANLIB"; then
6001 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6002 else
6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004 for as_dir in $PATH
6005 do
6006 IFS=$as_save_IFS
6007 test -z "$as_dir" && as_dir=.
6008 for ac_exec_ext in '' $ac_executable_extensions; do
6009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6010 ac_cv_prog_ac_ct_RANLIB="ranlib"
6011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6012 break 2
6013 fi
6014 done
6015 done
6016
6017 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6018 fi
6019 fi
6020 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6021 if test -n "$ac_ct_RANLIB"; then
6022 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6023 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6024 else
6025 echo "$as_me:$LINENO: result: no" >&5
6026 echo "${ECHO_T}no" >&6
6027 fi
6028
6029 RANLIB=$ac_ct_RANLIB
6030 else
6031 RANLIB="$ac_cv_prog_RANLIB"
6032 fi
6033
6034 if test -n "$ac_tool_prefix"; then
6035 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6036 set dummy ${ac_tool_prefix}strip; ac_word=$2
6037 echo "$as_me:$LINENO: checking for $ac_word" >&5
6038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6039 if test "${ac_cv_prog_STRIP+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6041 else
6042 if test -n "$STRIP"; then
6043 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6044 else
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046 for as_dir in $PATH
6047 do
6048 IFS=$as_save_IFS
6049 test -z "$as_dir" && as_dir=.
6050 for ac_exec_ext in '' $ac_executable_extensions; do
6051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6052 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6054 break 2
6055 fi
6056 done
6057 done
6058
6059 fi
6060 fi
6061 STRIP=$ac_cv_prog_STRIP
6062 if test -n "$STRIP"; then
6063 echo "$as_me:$LINENO: result: $STRIP" >&5
6064 echo "${ECHO_T}$STRIP" >&6
6065 else
6066 echo "$as_me:$LINENO: result: no" >&5
6067 echo "${ECHO_T}no" >&6
6068 fi
6069
6070 fi
6071 if test -z "$ac_cv_prog_STRIP"; then
6072 ac_ct_STRIP=$STRIP
6073 # Extract the first word of "strip", so it can be a program name with args.
6074 set dummy strip; ac_word=$2
6075 echo "$as_me:$LINENO: checking for $ac_word" >&5
6076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6077 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
6079 else
6080 if test -n "$ac_ct_STRIP"; then
6081 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6082 else
6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084 for as_dir in $PATH
6085 do
6086 IFS=$as_save_IFS
6087 test -z "$as_dir" && as_dir=.
6088 for ac_exec_ext in '' $ac_executable_extensions; do
6089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6090 ac_cv_prog_ac_ct_STRIP="strip"
6091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6092 break 2
6093 fi
6094 done
6095 done
6096
6097 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6098 fi
6099 fi
6100 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6101 if test -n "$ac_ct_STRIP"; then
6102 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6103 echo "${ECHO_T}$ac_ct_STRIP" >&6
6104 else
6105 echo "$as_me:$LINENO: result: no" >&5
6106 echo "${ECHO_T}no" >&6
6107 fi
6108
6109 STRIP=$ac_ct_STRIP
6110 else
6111 STRIP="$ac_cv_prog_STRIP"
6112 fi
6113
6114
6115 old_CC="$CC"
6116 old_CFLAGS="$CFLAGS"
6117
6118 # Set sane defaults for various variables
6119 test -z "$AR" && AR=ar
6120 test -z "$AR_FLAGS" && AR_FLAGS=cru
6121 test -z "$AS" && AS=as
6122 test -z "$CC" && CC=cc
6123 test -z "$LTCC" && LTCC=$CC
6124 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6125 test -z "$DLLTOOL" && DLLTOOL=dlltool
6126 test -z "$LD" && LD=ld
6127 test -z "$LN_S" && LN_S="ln -s"
6128 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6129 test -z "$NM" && NM=nm
6130 test -z "$SED" && SED=sed
6131 test -z "$OBJDUMP" && OBJDUMP=objdump
6132 test -z "$RANLIB" && RANLIB=:
6133 test -z "$STRIP" && STRIP=:
6134 test -z "$ac_objext" && ac_objext=o
6135
6136 # Determine commands to create old-style static archives.
6137 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6138 old_postinstall_cmds='chmod 644 $oldlib'
6139 old_postuninstall_cmds=
6140
6141 if test -n "$RANLIB"; then
6142 case $host_os in
6143 openbsd*)
6144 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6145 ;;
6146 *)
6147 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6148 ;;
6149 esac
6150 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6151 fi
6152
6153 for cc_temp in $compiler""; do
6154 case $cc_temp in
6155 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6156 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6157 \-*) ;;
6158 *) break;;
6159 esac
6160 done
6161 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6162
6163
6164 # Only perform the check for file, if the check method requires it
6165 case $deplibs_check_method in
6166 file_magic*)
6167 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6168 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6169 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6170 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6171 echo $ECHO_N "(cached) $ECHO_C" >&6
6172 else
6173 case $MAGIC_CMD in
6174 [\\/*] | ?:[\\/]*)
6175 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6176 ;;
6177 *)
6178 lt_save_MAGIC_CMD="$MAGIC_CMD"
6179 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6180 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6181 for ac_dir in $ac_dummy; do
6182 IFS="$lt_save_ifs"
6183 test -z "$ac_dir" && ac_dir=.
6184 if test -f $ac_dir/${ac_tool_prefix}file; then
6185 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6186 if test -n "$file_magic_test_file"; then
6187 case $deplibs_check_method in
6188 "file_magic "*)
6189 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6190 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6191 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6192 $EGREP "$file_magic_regex" > /dev/null; then
6193 :
6194 else
6195 cat <<EOF 1>&2
6196
6197 *** Warning: the command libtool uses to detect shared libraries,
6198 *** $file_magic_cmd, produces output that libtool cannot recognize.
6199 *** The result is that libtool may fail to recognize shared libraries
6200 *** as such. This will affect the creation of libtool libraries that
6201 *** depend on shared libraries, but programs linked with such libtool
6202 *** libraries will work regardless of this problem. Nevertheless, you
6203 *** may want to report the problem to your system manager and/or to
6204 *** bug-libtool@gnu.org
6205
6206 EOF
6207 fi ;;
6208 esac
6209 fi
6210 break
6211 fi
6212 done
6213 IFS="$lt_save_ifs"
6214 MAGIC_CMD="$lt_save_MAGIC_CMD"
6215 ;;
6216 esac
6217 fi
6218
6219 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6220 if test -n "$MAGIC_CMD"; then
6221 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6222 echo "${ECHO_T}$MAGIC_CMD" >&6
6223 else
6224 echo "$as_me:$LINENO: result: no" >&5
6225 echo "${ECHO_T}no" >&6
6226 fi
6227
6228 if test -z "$lt_cv_path_MAGIC_CMD"; then
6229 if test -n "$ac_tool_prefix"; then
6230 echo "$as_me:$LINENO: checking for file" >&5
6231 echo $ECHO_N "checking for file... $ECHO_C" >&6
6232 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 else
6235 case $MAGIC_CMD in
6236 [\\/*] | ?:[\\/]*)
6237 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6238 ;;
6239 *)
6240 lt_save_MAGIC_CMD="$MAGIC_CMD"
6241 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6242 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6243 for ac_dir in $ac_dummy; do
6244 IFS="$lt_save_ifs"
6245 test -z "$ac_dir" && ac_dir=.
6246 if test -f $ac_dir/file; then
6247 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6248 if test -n "$file_magic_test_file"; then
6249 case $deplibs_check_method in
6250 "file_magic "*)
6251 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6252 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6253 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6254 $EGREP "$file_magic_regex" > /dev/null; then
6255 :
6256 else
6257 cat <<EOF 1>&2
6258
6259 *** Warning: the command libtool uses to detect shared libraries,
6260 *** $file_magic_cmd, produces output that libtool cannot recognize.
6261 *** The result is that libtool may fail to recognize shared libraries
6262 *** as such. This will affect the creation of libtool libraries that
6263 *** depend on shared libraries, but programs linked with such libtool
6264 *** libraries will work regardless of this problem. Nevertheless, you
6265 *** may want to report the problem to your system manager and/or to
6266 *** bug-libtool@gnu.org
6267
6268 EOF
6269 fi ;;
6270 esac
6271 fi
6272 break
6273 fi
6274 done
6275 IFS="$lt_save_ifs"
6276 MAGIC_CMD="$lt_save_MAGIC_CMD"
6277 ;;
6278 esac
6279 fi
6280
6281 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6282 if test -n "$MAGIC_CMD"; then
6283 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6284 echo "${ECHO_T}$MAGIC_CMD" >&6
6285 else
6286 echo "$as_me:$LINENO: result: no" >&5
6287 echo "${ECHO_T}no" >&6
6288 fi
6289
6290 else
6291 MAGIC_CMD=:
6292 fi
6293 fi
6294
6295 fi
6296 ;;
6297 esac
6298
6299 enable_dlopen=no
6300 enable_win32_dll=no
6301
6302 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6303 if test "${enable_libtool_lock+set}" = set; then
6304 enableval="$enable_libtool_lock"
6305
6306 fi;
6307 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6308
6309
6310 # Check whether --with-pic or --without-pic was given.
6311 if test "${with_pic+set}" = set; then
6312 withval="$with_pic"
6313 pic_mode="$withval"
6314 else
6315 pic_mode=default
6316 fi;
6317 test -z "$pic_mode" && pic_mode=default
6318
6319 # Use C for the default configuration in the libtool script
6320 tagname=
6321 lt_save_CC="$CC"
6322 ac_ext=c
6323 ac_cpp='$CPP $CPPFLAGS'
6324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6327
6328
6329 # Source file extension for C test sources.
6330 ac_ext=c
6331
6332 # Object file extension for compiled C test sources.
6333 objext=o
6334 objext=$objext
6335
6336 # Code to be used in simple compile tests
6337 lt_simple_compile_test_code="int some_variable = 0;\n"
6338
6339 # Code to be used in simple link tests
6340 lt_simple_link_test_code='int main(){return(0);}\n'
6341
6342
6343 # If no C compiler was specified, use CC.
6344 LTCC=${LTCC-"$CC"}
6345
6346 # If no C compiler flags were specified, use CFLAGS.
6347 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6348
6349 # Allow CC to be a program name with arguments.
6350 compiler=$CC
6351
6352
6353 # save warnings/boilerplate of simple test code
6354 ac_outfile=conftest.$ac_objext
6355 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6356 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6357 _lt_compiler_boilerplate=`cat conftest.err`
6358 $rm conftest*
6359
6360 ac_outfile=conftest.$ac_objext
6361 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6362 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6363 _lt_linker_boilerplate=`cat conftest.err`
6364 $rm conftest*
6365
6366
6367
6368 lt_prog_compiler_no_builtin_flag=
6369
6370 if test "$GCC" = yes; then
6371 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6372
6373
6374 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6375 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6376 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6378 else
6379 lt_cv_prog_compiler_rtti_exceptions=no
6380 ac_outfile=conftest.$ac_objext
6381 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6382 lt_compiler_flag="-fno-rtti -fno-exceptions"
6383 # Insert the option either (1) after the last *FLAGS variable, or
6384 # (2) before a word containing "conftest.", or (3) at the end.
6385 # Note that $ac_compile itself does not contain backslashes and begins
6386 # with a dollar sign (not a hyphen), so the echo should work correctly.
6387 # The option is referenced via a variable to avoid confusing sed.
6388 lt_compile=`echo "$ac_compile" | $SED \
6389 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6390 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6391 -e 's:$: $lt_compiler_flag:'`
6392 (eval echo "\"\$as_me:6392: $lt_compile\"" >&5)
6393 (eval "$lt_compile" 2>conftest.err)
6394 ac_status=$?
6395 cat conftest.err >&5
6396 echo "$as_me:6396: \$? = $ac_status" >&5
6397 if (exit $ac_status) && test -s "$ac_outfile"; then
6398 # The compiler can only warn and ignore the option if not recognized
6399 # So say no if there are warnings other than the usual output.
6400 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6401 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6402 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6403 lt_cv_prog_compiler_rtti_exceptions=yes
6404 fi
6405 fi
6406 $rm conftest*
6407
6408 fi
6409 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6410 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6411
6412 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6413 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6414 else
6415 :
6416 fi
6417
6418 fi
6419
6420 lt_prog_compiler_wl=
6421 lt_prog_compiler_pic=
6422 lt_prog_compiler_static=
6423
6424 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6425 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6426
6427 if test "$GCC" = yes; then
6428 lt_prog_compiler_wl='-Wl,'
6429 lt_prog_compiler_static='-static'
6430
6431 case $host_os in
6432 aix*)
6433 # All AIX code is PIC.
6434 if test "$host_cpu" = ia64; then
6435 # AIX 5 now supports IA64 processor
6436 lt_prog_compiler_static='-Bstatic'
6437 fi
6438 ;;
6439
6440 amigaos*)
6441 # FIXME: we need at least 68020 code to build shared libraries, but
6442 # adding the `-m68020' flag to GCC prevents building anything better,
6443 # like `-m68040'.
6444 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6445 ;;
6446
6447 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6448 # PIC is the default for these OSes.
6449 ;;
6450
6451 mingw* | pw32* | os2*)
6452 # This hack is so that the source file can tell whether it is being
6453 # built for inclusion in a dll (and should export symbols for example).
6454 lt_prog_compiler_pic='-DDLL_EXPORT'
6455 ;;
6456
6457 darwin* | rhapsody*)
6458 # PIC is the default on this platform
6459 # Common symbols not allowed in MH_DYLIB files
6460 lt_prog_compiler_pic='-fno-common'
6461 ;;
6462
6463 interix3*)
6464 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6465 # Instead, we relocate shared libraries at runtime.
6466 ;;
6467
6468 msdosdjgpp*)
6469 # Just because we use GCC doesn't mean we suddenly get shared libraries
6470 # on systems that don't support them.
6471 lt_prog_compiler_can_build_shared=no
6472 enable_shared=no
6473 ;;
6474
6475 sysv4*MP*)
6476 if test -d /usr/nec; then
6477 lt_prog_compiler_pic=-Kconform_pic
6478 fi
6479 ;;
6480
6481 hpux*)
6482 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6483 # not for PA HP-UX.
6484 case $host_cpu in
6485 hppa*64*|ia64*)
6486 # +Z the default
6487 ;;
6488 *)
6489 lt_prog_compiler_pic='-fPIC'
6490 ;;
6491 esac
6492 ;;
6493
6494 *)
6495 lt_prog_compiler_pic='-fPIC'
6496 ;;
6497 esac
6498 else
6499 # PORTME Check for flag to pass linker flags through the system compiler.
6500 case $host_os in
6501 aix*)
6502 lt_prog_compiler_wl='-Wl,'
6503 if test "$host_cpu" = ia64; then
6504 # AIX 5 now supports IA64 processor
6505 lt_prog_compiler_static='-Bstatic'
6506 else
6507 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6508 fi
6509 ;;
6510 darwin*)
6511 # PIC is the default on this platform
6512 # Common symbols not allowed in MH_DYLIB files
6513 case $cc_basename in
6514 xlc*)
6515 lt_prog_compiler_pic='-qnocommon'
6516 lt_prog_compiler_wl='-Wl,'
6517 ;;
6518 esac
6519 ;;
6520
6521 mingw* | pw32* | os2*)
6522 # This hack is so that the source file can tell whether it is being
6523 # built for inclusion in a dll (and should export symbols for example).
6524 lt_prog_compiler_pic='-DDLL_EXPORT'
6525 ;;
6526
6527 hpux9* | hpux10* | hpux11*)
6528 lt_prog_compiler_wl='-Wl,'
6529 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6530 # not for PA HP-UX.
6531 case $host_cpu in
6532 hppa*64*|ia64*)
6533 # +Z the default
6534 ;;
6535 *)
6536 lt_prog_compiler_pic='+Z'
6537 ;;
6538 esac
6539 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6540 lt_prog_compiler_static='${wl}-a ${wl}archive'
6541 ;;
6542
6543 irix5* | irix6* | nonstopux*)
6544 lt_prog_compiler_wl='-Wl,'
6545 # PIC (with -KPIC) is the default.
6546 lt_prog_compiler_static='-non_shared'
6547 ;;
6548
6549 newsos6)
6550 lt_prog_compiler_pic='-KPIC'
6551 lt_prog_compiler_static='-Bstatic'
6552 ;;
6553
6554 linux*)
6555 case $cc_basename in
6556 icc* | ecc*)
6557 lt_prog_compiler_wl='-Wl,'
6558 lt_prog_compiler_pic='-KPIC'
6559 lt_prog_compiler_static='-static'
6560 ;;
6561 pgcc* | pgf77* | pgf90* | pgf95*)
6562 # Portland Group compilers (*not* the Pentium gcc compiler,
6563 # which looks to be a dead project)
6564 lt_prog_compiler_wl='-Wl,'
6565 lt_prog_compiler_pic='-fpic'
6566 lt_prog_compiler_static='-Bstatic'
6567 ;;
6568 ccc*)
6569 lt_prog_compiler_wl='-Wl,'
6570 # All Alpha code is PIC.
6571 lt_prog_compiler_static='-non_shared'
6572 ;;
6573 esac
6574 ;;
6575
6576 osf3* | osf4* | osf5*)
6577 lt_prog_compiler_wl='-Wl,'
6578 # All OSF/1 code is PIC.
6579 lt_prog_compiler_static='-non_shared'
6580 ;;
6581
6582 solaris*)
6583 lt_prog_compiler_pic='-KPIC'
6584 lt_prog_compiler_static='-Bstatic'
6585 case $cc_basename in
6586 f77* | f90* | f95*)
6587 lt_prog_compiler_wl='-Qoption ld ';;
6588 *)
6589 lt_prog_compiler_wl='-Wl,';;
6590 esac
6591 ;;
6592
6593 sunos4*)
6594 lt_prog_compiler_wl='-Qoption ld '
6595 lt_prog_compiler_pic='-PIC'
6596 lt_prog_compiler_static='-Bstatic'
6597 ;;
6598
6599 sysv4 | sysv4.2uw2* | sysv4.3*)
6600 lt_prog_compiler_wl='-Wl,'
6601 lt_prog_compiler_pic='-KPIC'
6602 lt_prog_compiler_static='-Bstatic'
6603 ;;
6604
6605 sysv4*MP*)
6606 if test -d /usr/nec ;then
6607 lt_prog_compiler_pic='-Kconform_pic'
6608 lt_prog_compiler_static='-Bstatic'
6609 fi
6610 ;;
6611
6612 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6613 lt_prog_compiler_wl='-Wl,'
6614 lt_prog_compiler_pic='-KPIC'
6615 lt_prog_compiler_static='-Bstatic'
6616 ;;
6617
6618 unicos*)
6619 lt_prog_compiler_wl='-Wl,'
6620 lt_prog_compiler_can_build_shared=no
6621 ;;
6622
6623 uts4*)
6624 lt_prog_compiler_pic='-pic'
6625 lt_prog_compiler_static='-Bstatic'
6626 ;;
6627
6628 *)
6629 lt_prog_compiler_can_build_shared=no
6630 ;;
6631 esac
6632 fi
6633
6634 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6635 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6636
6637 #
6638 # Check to make sure the PIC flag actually works.
6639 #
6640 if test -n "$lt_prog_compiler_pic"; then
6641
6642 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6643 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6644 if test "${lt_prog_compiler_pic_works+set}" = set; then
6645 echo $ECHO_N "(cached) $ECHO_C" >&6
6646 else
6647 lt_prog_compiler_pic_works=no
6648 ac_outfile=conftest.$ac_objext
6649 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6650 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6651 # Insert the option either (1) after the last *FLAGS variable, or
6652 # (2) before a word containing "conftest.", or (3) at the end.
6653 # Note that $ac_compile itself does not contain backslashes and begins
6654 # with a dollar sign (not a hyphen), so the echo should work correctly.
6655 # The option is referenced via a variable to avoid confusing sed.
6656 lt_compile=`echo "$ac_compile" | $SED \
6657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6659 -e 's:$: $lt_compiler_flag:'`
6660 (eval echo "\"\$as_me:6660: $lt_compile\"" >&5)
6661 (eval "$lt_compile" 2>conftest.err)
6662 ac_status=$?
6663 cat conftest.err >&5
6664 echo "$as_me:6664: \$? = $ac_status" >&5
6665 if (exit $ac_status) && test -s "$ac_outfile"; then
6666 # The compiler can only warn and ignore the option if not recognized
6667 # So say no if there are warnings other than the usual output.
6668 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6670 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6671 lt_prog_compiler_pic_works=yes
6672 fi
6673 fi
6674 $rm conftest*
6675
6676 fi
6677 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6678 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6679
6680 if test x"$lt_prog_compiler_pic_works" = xyes; then
6681 case $lt_prog_compiler_pic in
6682 "" | " "*) ;;
6683 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6684 esac
6685 else
6686 lt_prog_compiler_pic=
6687 lt_prog_compiler_can_build_shared=no
6688 fi
6689
6690 fi
6691 case $host_os in
6692 # For platforms which do not support PIC, -DPIC is meaningless:
6693 *djgpp*)
6694 lt_prog_compiler_pic=
6695 ;;
6696 *)
6697 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6698 ;;
6699 esac
6700
6701 #
6702 # Check to make sure the static flag actually works.
6703 #
6704 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6705 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6706 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6707 if test "${lt_prog_compiler_static_works+set}" = set; then
6708 echo $ECHO_N "(cached) $ECHO_C" >&6
6709 else
6710 lt_prog_compiler_static_works=no
6711 save_LDFLAGS="$LDFLAGS"
6712 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6713 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6714 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6715 # The linker can only warn and ignore the option if not recognized
6716 # So say no if there are warnings
6717 if test -s conftest.err; then
6718 # Append any errors to the config.log.
6719 cat conftest.err 1>&5
6720 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6721 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6722 if diff conftest.exp conftest.er2 >/dev/null; then
6723 lt_prog_compiler_static_works=yes
6724 fi
6725 else
6726 lt_prog_compiler_static_works=yes
6727 fi
6728 fi
6729 $rm conftest*
6730 LDFLAGS="$save_LDFLAGS"
6731
6732 fi
6733 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6734 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6735
6736 if test x"$lt_prog_compiler_static_works" = xyes; then
6737 :
6738 else
6739 lt_prog_compiler_static=
6740 fi
6741
6742
6743 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6744 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6745 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 else
6748 lt_cv_prog_compiler_c_o=no
6749 $rm -r conftest 2>/dev/null
6750 mkdir conftest
6751 cd conftest
6752 mkdir out
6753 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6754
6755 lt_compiler_flag="-o out/conftest2.$ac_objext"
6756 # Insert the option either (1) after the last *FLAGS variable, or
6757 # (2) before a word containing "conftest.", or (3) at the end.
6758 # Note that $ac_compile itself does not contain backslashes and begins
6759 # with a dollar sign (not a hyphen), so the echo should work correctly.
6760 lt_compile=`echo "$ac_compile" | $SED \
6761 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6763 -e 's:$: $lt_compiler_flag:'`
6764 (eval echo "\"\$as_me:6764: $lt_compile\"" >&5)
6765 (eval "$lt_compile" 2>out/conftest.err)
6766 ac_status=$?
6767 cat out/conftest.err >&5
6768 echo "$as_me:6768: \$? = $ac_status" >&5
6769 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6770 then
6771 # The compiler can only warn and ignore the option if not recognized
6772 # So say no if there are warnings
6773 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6774 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6775 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6776 lt_cv_prog_compiler_c_o=yes
6777 fi
6778 fi
6779 chmod u+w . 2>&5
6780 $rm conftest*
6781 # SGI C++ compiler will create directory out/ii_files/ for
6782 # template instantiation
6783 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6784 $rm out/* && rmdir out
6785 cd ..
6786 rmdir conftest
6787 $rm conftest*
6788
6789 fi
6790 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6791 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6792
6793
6794 hard_links="nottested"
6795 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6796 # do not overwrite the value of need_locks provided by the user
6797 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6798 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6799 hard_links=yes
6800 $rm conftest*
6801 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6802 touch conftest.a
6803 ln conftest.a conftest.b 2>&5 || hard_links=no
6804 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6805 echo "$as_me:$LINENO: result: $hard_links" >&5
6806 echo "${ECHO_T}$hard_links" >&6
6807 if test "$hard_links" = no; then
6808 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6809 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6810 need_locks=warn
6811 fi
6812 else
6813 need_locks=no
6814 fi
6815
6816 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6817 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6818
6819 runpath_var=
6820 allow_undefined_flag=
6821 enable_shared_with_static_runtimes=no
6822 archive_cmds=
6823 archive_expsym_cmds=
6824 old_archive_From_new_cmds=
6825 old_archive_from_expsyms_cmds=
6826 export_dynamic_flag_spec=
6827 whole_archive_flag_spec=
6828 thread_safe_flag_spec=
6829 hardcode_libdir_flag_spec=
6830 hardcode_libdir_flag_spec_ld=
6831 hardcode_libdir_separator=
6832 hardcode_direct=no
6833 hardcode_minus_L=no
6834 hardcode_shlibpath_var=unsupported
6835 link_all_deplibs=unknown
6836 hardcode_automatic=no
6837 module_cmds=
6838 module_expsym_cmds=
6839 always_export_symbols=no
6840 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6841 # include_expsyms should be a list of space-separated symbols to be *always*
6842 # included in the symbol list
6843 include_expsyms=
6844 # exclude_expsyms can be an extended regexp of symbols to exclude
6845 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6846 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6847 # as well as any symbol that contains `d'.
6848 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6849 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6850 # platforms (ab)use it in PIC code, but their linkers get confused if
6851 # the symbol is explicitly referenced. Since portable code cannot
6852 # rely on this symbol name, it's probably fine to never include it in
6853 # preloaded symbol tables.
6854 extract_expsyms_cmds=
6855 # Just being paranoid about ensuring that cc_basename is set.
6856 for cc_temp in $compiler""; do
6857 case $cc_temp in
6858 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6859 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6860 \-*) ;;
6861 *) break;;
6862 esac
6863 done
6864 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6865
6866 case $host_os in
6867 cygwin* | mingw* | pw32*)
6868 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6869 # When not using gcc, we currently assume that we are using
6870 # Microsoft Visual C++.
6871 if test "$GCC" != yes; then
6872 with_gnu_ld=no
6873 fi
6874 ;;
6875 interix*)
6876 # we just hope/assume this is gcc and not c89 (= MSVC++)
6877 with_gnu_ld=yes
6878 ;;
6879 openbsd*)
6880 with_gnu_ld=no
6881 ;;
6882 esac
6883
6884 ld_shlibs=yes
6885 if test "$with_gnu_ld" = yes; then
6886 # If archive_cmds runs LD, not CC, wlarc should be empty
6887 wlarc='${wl}'
6888
6889 # Set some defaults for GNU ld with shared library support. These
6890 # are reset later if shared libraries are not supported. Putting them
6891 # here allows them to be overridden if necessary.
6892 runpath_var=LD_RUN_PATH
6893 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6894 export_dynamic_flag_spec='${wl}--export-dynamic'
6895 # ancient GNU ld didn't support --whole-archive et. al.
6896 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6897 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6898 else
6899 whole_archive_flag_spec=
6900 fi
6901 supports_anon_versioning=no
6902 case `$LD -v 2>/dev/null` in
6903 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6904 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6905 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6906 *\ 2.11.*) ;; # other 2.11 versions
6907 *) supports_anon_versioning=yes ;;
6908 esac
6909
6910 # See if GNU ld supports shared libraries.
6911 case $host_os in
6912 aix3* | aix4* | aix5*)
6913 # On AIX/PPC, the GNU linker is very broken
6914 if test "$host_cpu" != ia64; then
6915 ld_shlibs=no
6916 cat <<EOF 1>&2
6917
6918 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6919 *** to be unable to reliably create shared libraries on AIX.
6920 *** Therefore, libtool is disabling shared libraries support. If you
6921 *** really care for shared libraries, you may want to modify your PATH
6922 *** so that a non-GNU linker is found, and then restart.
6923
6924 EOF
6925 fi
6926 ;;
6927
6928 amigaos*)
6929 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)'
6930 hardcode_libdir_flag_spec='-L$libdir'
6931 hardcode_minus_L=yes
6932
6933 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
6934 # that the semantics of dynamic libraries on AmigaOS, at least up
6935 # to version 4, is to share data among multiple programs linked
6936 # with the same dynamic library. Since this doesn't match the
6937 # behavior of shared libraries on other platforms, we can't use
6938 # them.
6939 ld_shlibs=no
6940 ;;
6941
6942 beos*)
6943 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6944 allow_undefined_flag=unsupported
6945 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
6946 # support --undefined. This deserves some investigation. FIXME
6947 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6948 else
6949 ld_shlibs=no
6950 fi
6951 ;;
6952
6953 cygwin* | mingw* | pw32*)
6954 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6955 # as there is no search path for DLLs.
6956 hardcode_libdir_flag_spec='-L$libdir'
6957 allow_undefined_flag=unsupported
6958 always_export_symbols=no
6959 enable_shared_with_static_runtimes=yes
6960 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6961
6962 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6963 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6964 # If the export-symbols file already is a .def file (1st line
6965 # is EXPORTS), use it as is; otherwise, prepend...
6966 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6967 cp $export_symbols $output_objdir/$soname.def;
6968 else
6969 echo EXPORTS > $output_objdir/$soname.def;
6970 cat $export_symbols >> $output_objdir/$soname.def;
6971 fi~
6972 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6973 else
6974 ld_shlibs=no
6975 fi
6976 ;;
6977
6978 interix3*)
6979 hardcode_direct=no
6980 hardcode_shlibpath_var=no
6981 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6982 export_dynamic_flag_spec='${wl}-E'
6983 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6984 # Instead, shared libraries are loaded at an image base (0x10000000 by
6985 # default) and relocated if they conflict, which is a slow very memory
6986 # consuming and fragmenting process. To avoid this, we pick a random,
6987 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6988 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6989 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6990 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'
6991 ;;
6992
6993 linux*)
6994 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6995 tmp_addflag=
6996 case $cc_basename,$host_cpu in
6997 pgcc*) # Portland Group C compiler
6998 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'
6999 tmp_addflag=' $pic_flag'
7000 ;;
7001 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7002 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'
7003 tmp_addflag=' $pic_flag -Mnomain' ;;
7004 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7005 tmp_addflag=' -i_dynamic' ;;
7006 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7007 tmp_addflag=' -i_dynamic -nofor_main' ;;
7008 ifc* | ifort*) # Intel Fortran compiler
7009 tmp_addflag=' -nofor_main' ;;
7010 esac
7011 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7012
7013 if test $supports_anon_versioning = yes; then
7014 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7015 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7016 $echo "local: *; };" >> $output_objdir/$libname.ver~
7017 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7018 fi
7019 else
7020 ld_shlibs=no
7021 fi
7022 ;;
7023
7024 netbsd*)
7025 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7026 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7027 wlarc=
7028 else
7029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7030 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7031 fi
7032 ;;
7033
7034 solaris*)
7035 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7036 ld_shlibs=no
7037 cat <<EOF 1>&2
7038
7039 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7040 *** create shared libraries on Solaris systems. Therefore, libtool
7041 *** is disabling shared libraries support. We urge you to upgrade GNU
7042 *** binutils to release 2.9.1 or newer. Another option is to modify
7043 *** your PATH or compiler configuration so that the native linker is
7044 *** used, and then restart.
7045
7046 EOF
7047 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7048 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7049 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7050 else
7051 ld_shlibs=no
7052 fi
7053 ;;
7054
7055 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7056 case `$LD -v 2>&1` in
7057 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7058 ld_shlibs=no
7059 cat <<_LT_EOF 1>&2
7060
7061 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7062 *** reliably create shared libraries on SCO systems. Therefore, libtool
7063 *** is disabling shared libraries support. We urge you to upgrade GNU
7064 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7065 *** your PATH or compiler configuration so that the native linker is
7066 *** used, and then restart.
7067
7068 _LT_EOF
7069 ;;
7070 *)
7071 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7072 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7073 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7074 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7075 else
7076 ld_shlibs=no
7077 fi
7078 ;;
7079 esac
7080 ;;
7081
7082 sunos4*)
7083 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7084 wlarc=
7085 hardcode_direct=yes
7086 hardcode_shlibpath_var=no
7087 ;;
7088
7089 *)
7090 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7092 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7093 else
7094 ld_shlibs=no
7095 fi
7096 ;;
7097 esac
7098
7099 if test "$ld_shlibs" = no; then
7100 runpath_var=
7101 hardcode_libdir_flag_spec=
7102 export_dynamic_flag_spec=
7103 whole_archive_flag_spec=
7104 fi
7105 else
7106 # PORTME fill in a description of your system's linker (not GNU ld)
7107 case $host_os in
7108 aix3*)
7109 allow_undefined_flag=unsupported
7110 always_export_symbols=yes
7111 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'
7112 # Note: this linker hardcodes the directories in LIBPATH if there
7113 # are no directories specified by -L.
7114 hardcode_minus_L=yes
7115 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7116 # Neither direct hardcoding nor static linking is supported with a
7117 # broken collect2.
7118 hardcode_direct=unsupported
7119 fi
7120 ;;
7121
7122 aix4* | aix5*)
7123 if test "$host_cpu" = ia64; then
7124 # On IA64, the linker does run time linking by default, so we don't
7125 # have to do anything special.
7126 aix_use_runtimelinking=no
7127 exp_sym_flag='-Bexport'
7128 no_entry_flag=""
7129 else
7130 # If we're using GNU nm, then we don't want the "-C" option.
7131 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7132 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7133 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'
7134 else
7135 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'
7136 fi
7137 aix_use_runtimelinking=no
7138
7139 # Test if we are trying to use run time linking or normal
7140 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7141 # need to do runtime linking.
7142 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7143 for ld_flag in $LDFLAGS; do
7144 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7145 aix_use_runtimelinking=yes
7146 break
7147 fi
7148 done
7149 ;;
7150 esac
7151
7152 exp_sym_flag='-bexport'
7153 no_entry_flag='-bnoentry'
7154 fi
7155
7156 # When large executables or shared objects are built, AIX ld can
7157 # have problems creating the table of contents. If linking a library
7158 # or program results in "error TOC overflow" add -mminimal-toc to
7159 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7160 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7161
7162 archive_cmds=''
7163 hardcode_direct=yes
7164 hardcode_libdir_separator=':'
7165 link_all_deplibs=yes
7166
7167 if test "$GCC" = yes; then
7168 case $host_os in aix4.[012]|aix4.[012].*)
7169 # We only want to do this on AIX 4.2 and lower, the check
7170 # below for broken collect2 doesn't work under 4.3+
7171 collect2name=`${CC} -print-prog-name=collect2`
7172 if test -f "$collect2name" && \
7173 strings "$collect2name" | grep resolve_lib_name >/dev/null
7174 then
7175 # We have reworked collect2
7176 hardcode_direct=yes
7177 else
7178 # We have old collect2
7179 hardcode_direct=unsupported
7180 # It fails to find uninstalled libraries when the uninstalled
7181 # path is not listed in the libpath. Setting hardcode_minus_L
7182 # to unsupported forces relinking
7183 hardcode_minus_L=yes
7184 hardcode_libdir_flag_spec='-L$libdir'
7185 hardcode_libdir_separator=
7186 fi
7187 ;;
7188 esac
7189 shared_flag='-shared'
7190 if test "$aix_use_runtimelinking" = yes; then
7191 shared_flag="$shared_flag "'${wl}-G'
7192 fi
7193 else
7194 # not using gcc
7195 if test "$host_cpu" = ia64; then
7196 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7197 # chokes on -Wl,-G. The following line is correct:
7198 shared_flag='-G'
7199 else
7200 if test "$aix_use_runtimelinking" = yes; then
7201 shared_flag='${wl}-G'
7202 else
7203 shared_flag='${wl}-bM:SRE'
7204 fi
7205 fi
7206 fi
7207
7208 # It seems that -bexpall does not export symbols beginning with
7209 # underscore (_), so it is better to generate a list of symbols to export.
7210 always_export_symbols=yes
7211 if test "$aix_use_runtimelinking" = yes; then
7212 # Warning - without using the other runtime loading flags (-brtl),
7213 # -berok will link without error, but may produce a broken library.
7214 allow_undefined_flag='-berok'
7215 # Determine the default libpath from the value encoded in an empty executable.
7216 cat >conftest.$ac_ext <<_ACEOF
7217 /* confdefs.h. */
7218 _ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h. */
7222
7223 int
7224 main ()
7225 {
7226
7227 ;
7228 return 0;
7229 }
7230 _ACEOF
7231 rm -f conftest.$ac_objext conftest$ac_exeext
7232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7233 (eval $ac_link) 2>conftest.er1
7234 ac_status=$?
7235 grep -v '^ *+' conftest.er1 >conftest.err
7236 rm -f conftest.er1
7237 cat conftest.err >&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } &&
7240 { ac_try='test -z "$ac_c_werror_flag"
7241 || test ! -s conftest.err'
7242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7243 (eval $ac_try) 2>&5
7244 ac_status=$?
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); }; } &&
7247 { ac_try='test -s conftest$ac_exeext'
7248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249 (eval $ac_try) 2>&5
7250 ac_status=$?
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); }; }; then
7253
7254 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7255 }'`
7256 # Check for a 64-bit object if we didn't find anything.
7257 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; }
7258 }'`; fi
7259 else
7260 echo "$as_me: failed program was:" >&5
7261 sed 's/^/| /' conftest.$ac_ext >&5
7262
7263 fi
7264 rm -f conftest.err conftest.$ac_objext \
7265 conftest$ac_exeext conftest.$ac_ext
7266 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7267
7268 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7269 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"
7270 else
7271 if test "$host_cpu" = ia64; then
7272 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7273 allow_undefined_flag="-z nodefs"
7274 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"
7275 else
7276 # Determine the default libpath from the value encoded in an empty executable.
7277 cat >conftest.$ac_ext <<_ACEOF
7278 /* confdefs.h. */
7279 _ACEOF
7280 cat confdefs.h >>conftest.$ac_ext
7281 cat >>conftest.$ac_ext <<_ACEOF
7282 /* end confdefs.h. */
7283
7284 int
7285 main ()
7286 {
7287
7288 ;
7289 return 0;
7290 }
7291 _ACEOF
7292 rm -f conftest.$ac_objext conftest$ac_exeext
7293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7294 (eval $ac_link) 2>conftest.er1
7295 ac_status=$?
7296 grep -v '^ *+' conftest.er1 >conftest.err
7297 rm -f conftest.er1
7298 cat conftest.err >&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } &&
7301 { ac_try='test -z "$ac_c_werror_flag"
7302 || test ! -s conftest.err'
7303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304 (eval $ac_try) 2>&5
7305 ac_status=$?
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; } &&
7308 { ac_try='test -s conftest$ac_exeext'
7309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7310 (eval $ac_try) 2>&5
7311 ac_status=$?
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); }; }; then
7314
7315 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7316 }'`
7317 # Check for a 64-bit object if we didn't find anything.
7318 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; }
7319 }'`; fi
7320 else
7321 echo "$as_me: failed program was:" >&5
7322 sed 's/^/| /' conftest.$ac_ext >&5
7323
7324 fi
7325 rm -f conftest.err conftest.$ac_objext \
7326 conftest$ac_exeext conftest.$ac_ext
7327 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7328
7329 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7330 # Warning - without using the other run time loading flags,
7331 # -berok will link without error, but may produce a broken library.
7332 no_undefined_flag=' ${wl}-bernotok'
7333 allow_undefined_flag=' ${wl}-berok'
7334 # Exported symbols can be pulled into shared objects from archives
7335 whole_archive_flag_spec='$convenience'
7336 archive_cmds_need_lc=yes
7337 # This is similar to how AIX traditionally builds its shared libraries.
7338 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'
7339 fi
7340 fi
7341 ;;
7342
7343 amigaos*)
7344 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)'
7345 hardcode_libdir_flag_spec='-L$libdir'
7346 hardcode_minus_L=yes
7347 # see comment about different semantics on the GNU ld section
7348 ld_shlibs=no
7349 ;;
7350
7351 bsdi[45]*)
7352 export_dynamic_flag_spec=-rdynamic
7353 ;;
7354
7355 cygwin* | mingw* | pw32*)
7356 # When not using gcc, we currently assume that we are using
7357 # Microsoft Visual C++.
7358 # hardcode_libdir_flag_spec is actually meaningless, as there is
7359 # no search path for DLLs.
7360 hardcode_libdir_flag_spec=' '
7361 allow_undefined_flag=unsupported
7362 # Tell ltmain to make .lib files, not .a files.
7363 libext=lib
7364 # Tell ltmain to make .dll files, not .so files.
7365 shrext_cmds=".dll"
7366 # FIXME: Setting linknames here is a bad hack.
7367 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7368 # The linker will automatically build a .lib file if we build a DLL.
7369 old_archive_From_new_cmds='true'
7370 # FIXME: Should let the user specify the lib program.
7371 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7372 fix_srcfile_path='`cygpath -w "$srcfile"`'
7373 enable_shared_with_static_runtimes=yes
7374 ;;
7375
7376 darwin* | rhapsody*)
7377 case $host_os in
7378 rhapsody* | darwin1.[012])
7379 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7380 ;;
7381 *) # Darwin 1.3 on
7382 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7383 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7384 else
7385 case ${MACOSX_DEPLOYMENT_TARGET} in
7386 10.[012])
7387 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7388 ;;
7389 10.*)
7390 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7391 ;;
7392 esac
7393 fi
7394 ;;
7395 esac
7396 archive_cmds_need_lc=no
7397 hardcode_direct=no
7398 hardcode_automatic=yes
7399 hardcode_shlibpath_var=unsupported
7400 whole_archive_flag_spec=''
7401 link_all_deplibs=yes
7402 if test "$GCC" = yes ; then
7403 output_verbose_link_cmd='echo'
7404 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7405 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7406 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7407 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}'
7408 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}'
7409 else
7410 case $cc_basename in
7411 xlc*)
7412 output_verbose_link_cmd='echo'
7413 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $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 -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}'
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 ;;
7419 *)
7420 ld_shlibs=no
7421 ;;
7422 esac
7423 fi
7424 ;;
7425
7426 dgux*)
7427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7428 hardcode_libdir_flag_spec='-L$libdir'
7429 hardcode_shlibpath_var=no
7430 ;;
7431
7432 freebsd1*)
7433 ld_shlibs=no
7434 ;;
7435
7436 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7437 # support. Future versions do this automatically, but an explicit c++rt0.o
7438 # does not break anything, and helps significantly (at the cost of a little
7439 # extra space).
7440 freebsd2.2*)
7441 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7442 hardcode_libdir_flag_spec='-R$libdir'
7443 hardcode_direct=yes
7444 hardcode_shlibpath_var=no
7445 ;;
7446
7447 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7448 freebsd2*)
7449 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7450 hardcode_direct=yes
7451 hardcode_minus_L=yes
7452 hardcode_shlibpath_var=no
7453 ;;
7454
7455 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7456 freebsd* | kfreebsd*-gnu | dragonfly*)
7457 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7458 hardcode_libdir_flag_spec='-R$libdir'
7459 hardcode_direct=yes
7460 hardcode_shlibpath_var=no
7461 ;;
7462
7463 hpux9*)
7464 if test "$GCC" = yes; then
7465 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'
7466 else
7467 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'
7468 fi
7469 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7470 hardcode_libdir_separator=:
7471 hardcode_direct=yes
7472
7473 # hardcode_minus_L: Not really in the search PATH,
7474 # but as the default location of the library.
7475 hardcode_minus_L=yes
7476 export_dynamic_flag_spec='${wl}-E'
7477 ;;
7478
7479 hpux10*)
7480 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7481 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7482 else
7483 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7484 fi
7485 if test "$with_gnu_ld" = no; then
7486 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7487 hardcode_libdir_separator=:
7488
7489 hardcode_direct=yes
7490 export_dynamic_flag_spec='${wl}-E'
7491
7492 # hardcode_minus_L: Not really in the search PATH,
7493 # but as the default location of the library.
7494 hardcode_minus_L=yes
7495 fi
7496 ;;
7497
7498 hpux11*)
7499 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7500 case $host_cpu in
7501 hppa*64*)
7502 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7503 ;;
7504 ia64*)
7505 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7506 ;;
7507 *)
7508 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7509 ;;
7510 esac
7511 else
7512 case $host_cpu in
7513 hppa*64*)
7514 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7515 ;;
7516 ia64*)
7517 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7518 ;;
7519 *)
7520 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7521 ;;
7522 esac
7523 fi
7524 if test "$with_gnu_ld" = no; then
7525 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7526 hardcode_libdir_separator=:
7527
7528 case $host_cpu in
7529 hppa*64*|ia64*)
7530 hardcode_libdir_flag_spec_ld='+b $libdir'
7531 hardcode_direct=no
7532 hardcode_shlibpath_var=no
7533 ;;
7534 *)
7535 hardcode_direct=yes
7536 export_dynamic_flag_spec='${wl}-E'
7537
7538 # hardcode_minus_L: Not really in the search PATH,
7539 # but as the default location of the library.
7540 hardcode_minus_L=yes
7541 ;;
7542 esac
7543 fi
7544 ;;
7545
7546 irix5* | irix6* | nonstopux*)
7547 if test "$GCC" = yes; then
7548 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'
7549 else
7550 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'
7551 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7552 fi
7553 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7554 hardcode_libdir_separator=:
7555 link_all_deplibs=yes
7556 ;;
7557
7558 netbsd*)
7559 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7560 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7561 else
7562 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7563 fi
7564 hardcode_libdir_flag_spec='-R$libdir'
7565 hardcode_direct=yes
7566 hardcode_shlibpath_var=no
7567 ;;
7568
7569 newsos6)
7570 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7571 hardcode_direct=yes
7572 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7573 hardcode_libdir_separator=:
7574 hardcode_shlibpath_var=no
7575 ;;
7576
7577 openbsd*)
7578 hardcode_direct=yes
7579 hardcode_shlibpath_var=no
7580 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7581 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7582 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7583 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7584 export_dynamic_flag_spec='${wl}-E'
7585 else
7586 case $host_os in
7587 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7588 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7589 hardcode_libdir_flag_spec='-R$libdir'
7590 ;;
7591 *)
7592 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7593 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7594 ;;
7595 esac
7596 fi
7597 ;;
7598
7599 os2*)
7600 hardcode_libdir_flag_spec='-L$libdir'
7601 hardcode_minus_L=yes
7602 allow_undefined_flag=unsupported
7603 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'
7604 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7605 ;;
7606
7607 osf3*)
7608 if test "$GCC" = yes; then
7609 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7610 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'
7611 else
7612 allow_undefined_flag=' -expect_unresolved \*'
7613 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'
7614 fi
7615 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7616 hardcode_libdir_separator=:
7617 ;;
7618
7619 osf4* | osf5*) # as osf3* with the addition of -msym flag
7620 if test "$GCC" = yes; then
7621 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7622 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'
7623 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7624 else
7625 allow_undefined_flag=' -expect_unresolved \*'
7626 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'
7627 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7628 $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'
7629
7630 # Both c and cxx compiler support -rpath directly
7631 hardcode_libdir_flag_spec='-rpath $libdir'
7632 fi
7633 hardcode_libdir_separator=:
7634 ;;
7635
7636 solaris*)
7637 no_undefined_flag=' -z text'
7638 if test "$GCC" = yes; then
7639 wlarc='${wl}'
7640 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7641 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7642 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7643 else
7644 wlarc=''
7645 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7646 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7647 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7648 fi
7649 hardcode_libdir_flag_spec='-R$libdir'
7650 hardcode_shlibpath_var=no
7651 case $host_os in
7652 solaris2.[0-5] | solaris2.[0-5].*) ;;
7653 *)
7654 # The compiler driver will combine linker options so we
7655 # cannot just pass the convience library names through
7656 # without $wl, iff we do not link with $LD.
7657 # Luckily, gcc supports the same syntax we need for Sun Studio.
7658 # Supported since Solaris 2.6 (maybe 2.5.1?)
7659 case $wlarc in
7660 '')
7661 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7662 *)
7663 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' ;;
7664 esac ;;
7665 esac
7666 link_all_deplibs=yes
7667 ;;
7668
7669 sunos4*)
7670 if test "x$host_vendor" = xsequent; then
7671 # Use $CC to link under sequent, because it throws in some extra .o
7672 # files that make .init and .fini sections work.
7673 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7674 else
7675 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7676 fi
7677 hardcode_libdir_flag_spec='-L$libdir'
7678 hardcode_direct=yes
7679 hardcode_minus_L=yes
7680 hardcode_shlibpath_var=no
7681 ;;
7682
7683 sysv4)
7684 case $host_vendor in
7685 sni)
7686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7687 hardcode_direct=yes # is this really true???
7688 ;;
7689 siemens)
7690 ## LD is ld it makes a PLAMLIB
7691 ## CC just makes a GrossModule.
7692 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7693 reload_cmds='$CC -r -o $output$reload_objs'
7694 hardcode_direct=no
7695 ;;
7696 motorola)
7697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7698 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7699 ;;
7700 esac
7701 runpath_var='LD_RUN_PATH'
7702 hardcode_shlibpath_var=no
7703 ;;
7704
7705 sysv4.3*)
7706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7707 hardcode_shlibpath_var=no
7708 export_dynamic_flag_spec='-Bexport'
7709 ;;
7710
7711 sysv4*MP*)
7712 if test -d /usr/nec; then
7713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7714 hardcode_shlibpath_var=no
7715 runpath_var=LD_RUN_PATH
7716 hardcode_runpath_var=yes
7717 ld_shlibs=yes
7718 fi
7719 ;;
7720
7721 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7722 no_undefined_flag='${wl}-z,text'
7723 archive_cmds_need_lc=no
7724 hardcode_shlibpath_var=no
7725 runpath_var='LD_RUN_PATH'
7726
7727 if test "$GCC" = yes; then
7728 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7729 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7730 else
7731 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7732 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7733 fi
7734 ;;
7735
7736 sysv5* | sco3.2v5* | sco5v6*)
7737 # Note: We can NOT use -z defs as we might desire, because we do not
7738 # link with -lc, and that would cause any symbols used from libc to
7739 # always be unresolved, which means just about no library would
7740 # ever link correctly. If we're not using GNU ld we use -z text
7741 # though, which does catch some bad symbols but isn't as heavy-handed
7742 # as -z defs.
7743 no_undefined_flag='${wl}-z,text'
7744 allow_undefined_flag='${wl}-z,nodefs'
7745 archive_cmds_need_lc=no
7746 hardcode_shlibpath_var=no
7747 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7748 hardcode_libdir_separator=':'
7749 link_all_deplibs=yes
7750 export_dynamic_flag_spec='${wl}-Bexport'
7751 runpath_var='LD_RUN_PATH'
7752
7753 if test "$GCC" = yes; then
7754 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7755 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7756 else
7757 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7758 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7759 fi
7760 ;;
7761
7762 uts4*)
7763 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7764 hardcode_libdir_flag_spec='-L$libdir'
7765 hardcode_shlibpath_var=no
7766 ;;
7767
7768 *)
7769 ld_shlibs=no
7770 ;;
7771 esac
7772 fi
7773
7774 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7775 echo "${ECHO_T}$ld_shlibs" >&6
7776 test "$ld_shlibs" = no && can_build_shared=no
7777
7778 #
7779 # Do we need to explicitly link libc?
7780 #
7781 case "x$archive_cmds_need_lc" in
7782 x|xyes)
7783 # Assume -lc should be added
7784 archive_cmds_need_lc=yes
7785
7786 if test "$enable_shared" = yes && test "$GCC" = yes; then
7787 case $archive_cmds in
7788 *'~'*)
7789 # FIXME: we may have to deal with multi-command sequences.
7790 ;;
7791 '$CC '*)
7792 # Test whether the compiler implicitly links with -lc since on some
7793 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7794 # to ld, don't add -lc before -lgcc.
7795 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7796 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7797 $rm conftest*
7798 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7799
7800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7801 (eval $ac_compile) 2>&5
7802 ac_status=$?
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); } 2>conftest.err; then
7805 soname=conftest
7806 lib=conftest
7807 libobjs=conftest.$ac_objext
7808 deplibs=
7809 wl=$lt_prog_compiler_wl
7810 pic_flag=$lt_prog_compiler_pic
7811 compiler_flags=-v
7812 linker_flags=-v
7813 verstring=
7814 output_objdir=.
7815 libname=conftest
7816 lt_save_allow_undefined_flag=$allow_undefined_flag
7817 allow_undefined_flag=
7818 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7819 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7820 ac_status=$?
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); }
7823 then
7824 archive_cmds_need_lc=no
7825 else
7826 archive_cmds_need_lc=yes
7827 fi
7828 allow_undefined_flag=$lt_save_allow_undefined_flag
7829 else
7830 cat conftest.err 1>&5
7831 fi
7832 $rm conftest*
7833 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7834 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7835 ;;
7836 esac
7837 fi
7838 ;;
7839 esac
7840
7841 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7842 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7843 library_names_spec=
7844 libname_spec='lib$name'
7845 soname_spec=
7846 shrext_cmds=".so"
7847 postinstall_cmds=
7848 postuninstall_cmds=
7849 finish_cmds=
7850 finish_eval=
7851 shlibpath_var=
7852 shlibpath_overrides_runpath=unknown
7853 version_type=none
7854 dynamic_linker="$host_os ld.so"
7855 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7856 if test "$GCC" = yes; then
7857 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7858 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7859 # if the path contains ";" then we assume it to be the separator
7860 # otherwise default to the standard path separator (i.e. ":") - it is
7861 # assumed that no part of a normal pathname contains ";" but that should
7862 # okay in the real world where ";" in dirpaths is itself problematic.
7863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7864 else
7865 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7866 fi
7867 else
7868 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7869 fi
7870 need_lib_prefix=unknown
7871 hardcode_into_libs=no
7872
7873 # when you set need_version to no, make sure it does not cause -set_version
7874 # flags to be left without arguments
7875 need_version=unknown
7876
7877 case $host_os in
7878 aix3*)
7879 version_type=linux
7880 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7881 shlibpath_var=LIBPATH
7882
7883 # AIX 3 has no versioning support, so we append a major version to the name.
7884 soname_spec='${libname}${release}${shared_ext}$major'
7885 ;;
7886
7887 aix4* | aix5*)
7888 version_type=linux
7889 need_lib_prefix=no
7890 need_version=no
7891 hardcode_into_libs=yes
7892 if test "$host_cpu" = ia64; then
7893 # AIX 5 supports IA64
7894 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7895 shlibpath_var=LD_LIBRARY_PATH
7896 else
7897 # With GCC up to 2.95.x, collect2 would create an import file
7898 # for dependence libraries. The import file would start with
7899 # the line `#! .'. This would cause the generated library to
7900 # depend on `.', always an invalid library. This was fixed in
7901 # development snapshots of GCC prior to 3.0.
7902 case $host_os in
7903 aix4 | aix4.[01] | aix4.[01].*)
7904 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7905 echo ' yes '
7906 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7907 :
7908 else
7909 can_build_shared=no
7910 fi
7911 ;;
7912 esac
7913 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7914 # soname into executable. Probably we can add versioning support to
7915 # collect2, so additional links can be useful in future.
7916 if test "$aix_use_runtimelinking" = yes; then
7917 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7918 # instead of lib<name>.a to let people know that these are not
7919 # typical AIX shared libraries.
7920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7921 else
7922 # We preserve .a as extension for shared libraries through AIX4.2
7923 # and later when we are not doing run time linking.
7924 library_names_spec='${libname}${release}.a $libname.a'
7925 soname_spec='${libname}${release}${shared_ext}$major'
7926 fi
7927 shlibpath_var=LIBPATH
7928 fi
7929 ;;
7930
7931 amigaos*)
7932 library_names_spec='$libname.ixlibrary $libname.a'
7933 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7934 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'
7935 ;;
7936
7937 beos*)
7938 library_names_spec='${libname}${shared_ext}'
7939 dynamic_linker="$host_os ld.so"
7940 shlibpath_var=LIBRARY_PATH
7941 ;;
7942
7943 bsdi[45]*)
7944 version_type=linux
7945 need_version=no
7946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7947 soname_spec='${libname}${release}${shared_ext}$major'
7948 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7949 shlibpath_var=LD_LIBRARY_PATH
7950 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7951 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7952 # the default ld.so.conf also contains /usr/contrib/lib and
7953 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7954 # libtool to hard-code these into programs
7955 ;;
7956
7957 cygwin* | mingw* | pw32*)
7958 version_type=windows
7959 shrext_cmds=".dll"
7960 need_version=no
7961 need_lib_prefix=no
7962
7963 case $GCC,$host_os in
7964 yes,cygwin* | yes,mingw* | yes,pw32*)
7965 library_names_spec='$libname.dll.a'
7966 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7967 postinstall_cmds='base_file=`basename \${file}`~
7968 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7969 dldir=$destdir/`dirname \$dlpath`~
7970 test -d \$dldir || mkdir -p \$dldir~
7971 $install_prog $dir/$dlname \$dldir/$dlname~
7972 chmod a+x \$dldir/$dlname'
7973 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7974 dlpath=$dir/\$dldll~
7975 $rm \$dlpath'
7976 shlibpath_overrides_runpath=yes
7977
7978 case $host_os in
7979 cygwin*)
7980 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7981 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7982 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7983 ;;
7984 mingw*)
7985 # MinGW DLLs use traditional 'lib' prefix
7986 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7987 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7988 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7989 # It is most probably a Windows format PATH printed by
7990 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7991 # path with ; separators, and with drive letters. We can handle the
7992 # drive letters (cygwin fileutils understands them), so leave them,
7993 # especially as we might pass files found there to a mingw objdump,
7994 # which wouldn't understand a cygwinified path. Ahh.
7995 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7996 else
7997 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7998 fi
7999 ;;
8000 pw32*)
8001 # pw32 DLLs use 'pw' prefix rather than 'lib'
8002 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8003 ;;
8004 esac
8005 ;;
8006
8007 *)
8008 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8009 ;;
8010 esac
8011 dynamic_linker='Win32 ld.exe'
8012 # FIXME: first we should search . and the directory the executable is in
8013 shlibpath_var=PATH
8014 ;;
8015
8016 darwin* | rhapsody*)
8017 dynamic_linker="$host_os dyld"
8018 version_type=darwin
8019 need_lib_prefix=no
8020 need_version=no
8021 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8022 soname_spec='${libname}${release}${major}$shared_ext'
8023 shlibpath_overrides_runpath=yes
8024 shlibpath_var=DYLD_LIBRARY_PATH
8025 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8026 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8027 if test "$GCC" = yes; then
8028 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"`
8029 else
8030 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8031 fi
8032 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8033 ;;
8034
8035 dgux*)
8036 version_type=linux
8037 need_lib_prefix=no
8038 need_version=no
8039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8040 soname_spec='${libname}${release}${shared_ext}$major'
8041 shlibpath_var=LD_LIBRARY_PATH
8042 ;;
8043
8044 freebsd1*)
8045 dynamic_linker=no
8046 ;;
8047
8048 kfreebsd*-gnu)
8049 version_type=linux
8050 need_lib_prefix=no
8051 need_version=no
8052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8053 soname_spec='${libname}${release}${shared_ext}$major'
8054 shlibpath_var=LD_LIBRARY_PATH
8055 shlibpath_overrides_runpath=no
8056 hardcode_into_libs=yes
8057 dynamic_linker='GNU ld.so'
8058 ;;
8059
8060 freebsd* | dragonfly*)
8061 # DragonFly does not have aout. When/if they implement a new
8062 # versioning mechanism, adjust this.
8063 if test -x /usr/bin/objformat; then
8064 objformat=`/usr/bin/objformat`
8065 else
8066 case $host_os in
8067 freebsd[123]*) objformat=aout ;;
8068 *) objformat=elf ;;
8069 esac
8070 fi
8071 version_type=freebsd-$objformat
8072 case $version_type in
8073 freebsd-elf*)
8074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8075 need_version=no
8076 need_lib_prefix=no
8077 ;;
8078 freebsd-*)
8079 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8080 need_version=yes
8081 ;;
8082 esac
8083 shlibpath_var=LD_LIBRARY_PATH
8084 case $host_os in
8085 freebsd2*)
8086 shlibpath_overrides_runpath=yes
8087 ;;
8088 freebsd3.[01]* | freebsdelf3.[01]*)
8089 shlibpath_overrides_runpath=yes
8090 hardcode_into_libs=yes
8091 ;;
8092 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8093 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8094 shlibpath_overrides_runpath=no
8095 hardcode_into_libs=yes
8096 ;;
8097 freebsd*) # from 4.6 on
8098 shlibpath_overrides_runpath=yes
8099 hardcode_into_libs=yes
8100 ;;
8101 esac
8102 ;;
8103
8104 gnu*)
8105 version_type=linux
8106 need_lib_prefix=no
8107 need_version=no
8108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8109 soname_spec='${libname}${release}${shared_ext}$major'
8110 shlibpath_var=LD_LIBRARY_PATH
8111 hardcode_into_libs=yes
8112 ;;
8113
8114 hpux9* | hpux10* | hpux11*)
8115 # Give a soname corresponding to the major version so that dld.sl refuses to
8116 # link against other versions.
8117 version_type=sunos
8118 need_lib_prefix=no
8119 need_version=no
8120 case $host_cpu in
8121 ia64*)
8122 shrext_cmds='.so'
8123 hardcode_into_libs=yes
8124 dynamic_linker="$host_os dld.so"
8125 shlibpath_var=LD_LIBRARY_PATH
8126 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8128 soname_spec='${libname}${release}${shared_ext}$major'
8129 if test "X$HPUX_IA64_MODE" = X32; then
8130 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8131 else
8132 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8133 fi
8134 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8135 ;;
8136 hppa*64*)
8137 shrext_cmds='.sl'
8138 hardcode_into_libs=yes
8139 dynamic_linker="$host_os dld.sl"
8140 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8141 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8143 soname_spec='${libname}${release}${shared_ext}$major'
8144 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8145 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8146 ;;
8147 *)
8148 shrext_cmds='.sl'
8149 dynamic_linker="$host_os dld.sl"
8150 shlibpath_var=SHLIB_PATH
8151 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8153 soname_spec='${libname}${release}${shared_ext}$major'
8154 ;;
8155 esac
8156 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8157 postinstall_cmds='chmod 555 $lib'
8158 ;;
8159
8160 interix3*)
8161 version_type=linux
8162 need_lib_prefix=no
8163 need_version=no
8164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8165 soname_spec='${libname}${release}${shared_ext}$major'
8166 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8167 shlibpath_var=LD_LIBRARY_PATH
8168 shlibpath_overrides_runpath=no
8169 hardcode_into_libs=yes
8170 ;;
8171
8172 irix5* | irix6* | nonstopux*)
8173 case $host_os in
8174 nonstopux*) version_type=nonstopux ;;
8175 *)
8176 if test "$lt_cv_prog_gnu_ld" = yes; then
8177 version_type=linux
8178 else
8179 version_type=irix
8180 fi ;;
8181 esac
8182 need_lib_prefix=no
8183 need_version=no
8184 soname_spec='${libname}${release}${shared_ext}$major'
8185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8186 case $host_os in
8187 irix5* | nonstopux*)
8188 libsuff= shlibsuff=
8189 ;;
8190 *)
8191 case $LD in # libtool.m4 will add one of these switches to LD
8192 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8193 libsuff= shlibsuff= libmagic=32-bit;;
8194 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8195 libsuff=32 shlibsuff=N32 libmagic=N32;;
8196 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8197 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8198 *) libsuff= shlibsuff= libmagic=never-match;;
8199 esac
8200 ;;
8201 esac
8202 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8203 shlibpath_overrides_runpath=no
8204 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8205 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8206 hardcode_into_libs=yes
8207 ;;
8208
8209 # No shared lib support for Linux oldld, aout, or coff.
8210 linux*oldld* | linux*aout* | linux*coff*)
8211 dynamic_linker=no
8212 ;;
8213
8214 # This must be Linux ELF.
8215 linux*)
8216 version_type=linux
8217 need_lib_prefix=no
8218 need_version=no
8219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8220 soname_spec='${libname}${release}${shared_ext}$major'
8221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8222 shlibpath_var=LD_LIBRARY_PATH
8223 shlibpath_overrides_runpath=no
8224 # This implies no fast_install, which is unacceptable.
8225 # Some rework will be needed to allow for fast_install
8226 # before this can be enabled.
8227 hardcode_into_libs=yes
8228
8229 # find out which ABI we are using
8230 libsuff=
8231 case "$host_cpu" in
8232 x86_64*|s390x*|powerpc64*)
8233 echo '#line 8233 "configure"' > conftest.$ac_ext
8234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8235 (eval $ac_compile) 2>&5
8236 ac_status=$?
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); }; then
8239 case `/usr/bin/file conftest.$ac_objext` in
8240 *64-bit*)
8241 libsuff=64
8242 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8243 ;;
8244 esac
8245 fi
8246 rm -rf conftest*
8247 ;;
8248 esac
8249
8250 # Append ld.so.conf contents to the search path
8251 if test -f /etc/ld.so.conf; then
8252 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8253 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8254 fi
8255
8256 # We used to test for /lib/ld.so.1 and disable shared libraries on
8257 # powerpc, because MkLinux only supported shared libraries with the
8258 # GNU dynamic linker. Since this was broken with cross compilers,
8259 # most powerpc-linux boxes support dynamic linking these days and
8260 # people can always --disable-shared, the test was removed, and we
8261 # assume the GNU/Linux dynamic linker is in use.
8262 dynamic_linker='GNU/Linux ld.so'
8263 ;;
8264
8265 knetbsd*-gnu)
8266 version_type=linux
8267 need_lib_prefix=no
8268 need_version=no
8269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8270 soname_spec='${libname}${release}${shared_ext}$major'
8271 shlibpath_var=LD_LIBRARY_PATH
8272 shlibpath_overrides_runpath=no
8273 hardcode_into_libs=yes
8274 dynamic_linker='GNU ld.so'
8275 ;;
8276
8277 netbsd*)
8278 version_type=sunos
8279 need_lib_prefix=no
8280 need_version=no
8281 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8283 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8284 dynamic_linker='NetBSD (a.out) ld.so'
8285 else
8286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8287 soname_spec='${libname}${release}${shared_ext}$major'
8288 dynamic_linker='NetBSD ld.elf_so'
8289 fi
8290 shlibpath_var=LD_LIBRARY_PATH
8291 shlibpath_overrides_runpath=yes
8292 hardcode_into_libs=yes
8293 ;;
8294
8295 newsos6)
8296 version_type=linux
8297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8298 shlibpath_var=LD_LIBRARY_PATH
8299 shlibpath_overrides_runpath=yes
8300 ;;
8301
8302 nto-qnx*)
8303 version_type=linux
8304 need_lib_prefix=no
8305 need_version=no
8306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8307 soname_spec='${libname}${release}${shared_ext}$major'
8308 shlibpath_var=LD_LIBRARY_PATH
8309 shlibpath_overrides_runpath=yes
8310 ;;
8311
8312 openbsd*)
8313 version_type=sunos
8314 sys_lib_dlsearch_path_spec="/usr/lib"
8315 need_lib_prefix=no
8316 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8317 case $host_os in
8318 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8319 *) need_version=no ;;
8320 esac
8321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8322 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8323 shlibpath_var=LD_LIBRARY_PATH
8324 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8325 case $host_os in
8326 openbsd2.[89] | openbsd2.[89].*)
8327 shlibpath_overrides_runpath=no
8328 ;;
8329 *)
8330 shlibpath_overrides_runpath=yes
8331 ;;
8332 esac
8333 else
8334 shlibpath_overrides_runpath=yes
8335 fi
8336 ;;
8337
8338 os2*)
8339 libname_spec='$name'
8340 shrext_cmds=".dll"
8341 need_lib_prefix=no
8342 library_names_spec='$libname${shared_ext} $libname.a'
8343 dynamic_linker='OS/2 ld.exe'
8344 shlibpath_var=LIBPATH
8345 ;;
8346
8347 osf3* | osf4* | osf5*)
8348 version_type=osf
8349 need_lib_prefix=no
8350 need_version=no
8351 soname_spec='${libname}${release}${shared_ext}$major'
8352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8353 shlibpath_var=LD_LIBRARY_PATH
8354 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8355 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8356 ;;
8357
8358 solaris*)
8359 version_type=linux
8360 need_lib_prefix=no
8361 need_version=no
8362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8363 soname_spec='${libname}${release}${shared_ext}$major'
8364 shlibpath_var=LD_LIBRARY_PATH
8365 shlibpath_overrides_runpath=yes
8366 hardcode_into_libs=yes
8367 # ldd complains unless libraries are executable
8368 postinstall_cmds='chmod +x $lib'
8369 ;;
8370
8371 sunos4*)
8372 version_type=sunos
8373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8374 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8375 shlibpath_var=LD_LIBRARY_PATH
8376 shlibpath_overrides_runpath=yes
8377 if test "$with_gnu_ld" = yes; then
8378 need_lib_prefix=no
8379 fi
8380 need_version=yes
8381 ;;
8382
8383 sysv4 | sysv4.3*)
8384 version_type=linux
8385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8386 soname_spec='${libname}${release}${shared_ext}$major'
8387 shlibpath_var=LD_LIBRARY_PATH
8388 case $host_vendor in
8389 sni)
8390 shlibpath_overrides_runpath=no
8391 need_lib_prefix=no
8392 export_dynamic_flag_spec='${wl}-Blargedynsym'
8393 runpath_var=LD_RUN_PATH
8394 ;;
8395 siemens)
8396 need_lib_prefix=no
8397 ;;
8398 motorola)
8399 need_lib_prefix=no
8400 need_version=no
8401 shlibpath_overrides_runpath=no
8402 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8403 ;;
8404 esac
8405 ;;
8406
8407 sysv4*MP*)
8408 if test -d /usr/nec ;then
8409 version_type=linux
8410 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8411 soname_spec='$libname${shared_ext}.$major'
8412 shlibpath_var=LD_LIBRARY_PATH
8413 fi
8414 ;;
8415
8416 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8417 version_type=freebsd-elf
8418 need_lib_prefix=no
8419 need_version=no
8420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8421 soname_spec='${libname}${release}${shared_ext}$major'
8422 shlibpath_var=LD_LIBRARY_PATH
8423 hardcode_into_libs=yes
8424 if test "$with_gnu_ld" = yes; then
8425 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8426 shlibpath_overrides_runpath=no
8427 else
8428 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8429 shlibpath_overrides_runpath=yes
8430 case $host_os in
8431 sco3.2v5*)
8432 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8433 ;;
8434 esac
8435 fi
8436 sys_lib_dlsearch_path_spec='/usr/lib'
8437 ;;
8438
8439 uts4*)
8440 version_type=linux
8441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8442 soname_spec='${libname}${release}${shared_ext}$major'
8443 shlibpath_var=LD_LIBRARY_PATH
8444 ;;
8445
8446 *)
8447 dynamic_linker=no
8448 ;;
8449 esac
8450 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8451 echo "${ECHO_T}$dynamic_linker" >&6
8452 test "$dynamic_linker" = no && can_build_shared=no
8453
8454 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8455 if test "$GCC" = yes; then
8456 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8457 fi
8458
8459 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8460 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8461 hardcode_action=
8462 if test -n "$hardcode_libdir_flag_spec" || \
8463 test -n "$runpath_var" || \
8464 test "X$hardcode_automatic" = "Xyes" ; then
8465
8466 # We can hardcode non-existant directories.
8467 if test "$hardcode_direct" != no &&
8468 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8469 # have to relink, otherwise we might link with an installed library
8470 # when we should be linking with a yet-to-be-installed one
8471 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8472 test "$hardcode_minus_L" != no; then
8473 # Linking always hardcodes the temporary library directory.
8474 hardcode_action=relink
8475 else
8476 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8477 hardcode_action=immediate
8478 fi
8479 else
8480 # We cannot hardcode anything, or else we can only hardcode existing
8481 # directories.
8482 hardcode_action=unsupported
8483 fi
8484 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8485 echo "${ECHO_T}$hardcode_action" >&6
8486
8487 if test "$hardcode_action" = relink; then
8488 # Fast installation is not supported
8489 enable_fast_install=no
8490 elif test "$shlibpath_overrides_runpath" = yes ||
8491 test "$enable_shared" = no; then
8492 # Fast installation is not necessary
8493 enable_fast_install=needless
8494 fi
8495
8496 striplib=
8497 old_striplib=
8498 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8499 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8500 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8501 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8502 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8503 echo "$as_me:$LINENO: result: yes" >&5
8504 echo "${ECHO_T}yes" >&6
8505 else
8506 # FIXME - insert some real tests, host_os isn't really good enough
8507 case $host_os in
8508 darwin*)
8509 if test -n "$STRIP" ; then
8510 striplib="$STRIP -x"
8511 echo "$as_me:$LINENO: result: yes" >&5
8512 echo "${ECHO_T}yes" >&6
8513 else
8514 echo "$as_me:$LINENO: result: no" >&5
8515 echo "${ECHO_T}no" >&6
8516 fi
8517 ;;
8518 *)
8519 echo "$as_me:$LINENO: result: no" >&5
8520 echo "${ECHO_T}no" >&6
8521 ;;
8522 esac
8523 fi
8524
8525 if test "x$enable_dlopen" != xyes; then
8526 enable_dlopen=unknown
8527 enable_dlopen_self=unknown
8528 enable_dlopen_self_static=unknown
8529 else
8530 lt_cv_dlopen=no
8531 lt_cv_dlopen_libs=
8532
8533 case $host_os in
8534 beos*)
8535 lt_cv_dlopen="load_add_on"
8536 lt_cv_dlopen_libs=
8537 lt_cv_dlopen_self=yes
8538 ;;
8539
8540 mingw* | pw32*)
8541 lt_cv_dlopen="LoadLibrary"
8542 lt_cv_dlopen_libs=
8543 ;;
8544
8545 cygwin*)
8546 lt_cv_dlopen="dlopen"
8547 lt_cv_dlopen_libs=
8548 ;;
8549
8550 darwin*)
8551 # if libdl is installed we need to link against it
8552 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8553 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8554 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8555 echo $ECHO_N "(cached) $ECHO_C" >&6
8556 else
8557 ac_check_lib_save_LIBS=$LIBS
8558 LIBS="-ldl $LIBS"
8559 cat >conftest.$ac_ext <<_ACEOF
8560 /* confdefs.h. */
8561 _ACEOF
8562 cat confdefs.h >>conftest.$ac_ext
8563 cat >>conftest.$ac_ext <<_ACEOF
8564 /* end confdefs.h. */
8565
8566 /* Override any gcc2 internal prototype to avoid an error. */
8567 #ifdef __cplusplus
8568 extern "C"
8569 #endif
8570 /* We use char because int might match the return type of a gcc2
8571 builtin and then its argument prototype would still apply. */
8572 char dlopen ();
8573 int
8574 main ()
8575 {
8576 dlopen ();
8577 ;
8578 return 0;
8579 }
8580 _ACEOF
8581 rm -f conftest.$ac_objext conftest$ac_exeext
8582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8583 (eval $ac_link) 2>conftest.er1
8584 ac_status=$?
8585 grep -v '^ *+' conftest.er1 >conftest.err
8586 rm -f conftest.er1
8587 cat conftest.err >&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); } &&
8590 { ac_try='test -z "$ac_c_werror_flag"
8591 || test ! -s conftest.err'
8592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593 (eval $ac_try) 2>&5
8594 ac_status=$?
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; } &&
8597 { ac_try='test -s conftest$ac_exeext'
8598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599 (eval $ac_try) 2>&5
8600 ac_status=$?
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); }; }; then
8603 ac_cv_lib_dl_dlopen=yes
8604 else
8605 echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8607
8608 ac_cv_lib_dl_dlopen=no
8609 fi
8610 rm -f conftest.err conftest.$ac_objext \
8611 conftest$ac_exeext conftest.$ac_ext
8612 LIBS=$ac_check_lib_save_LIBS
8613 fi
8614 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8615 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8616 if test $ac_cv_lib_dl_dlopen = yes; then
8617 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8618 else
8619
8620 lt_cv_dlopen="dyld"
8621 lt_cv_dlopen_libs=
8622 lt_cv_dlopen_self=yes
8623
8624 fi
8625
8626 ;;
8627
8628 *)
8629 echo "$as_me:$LINENO: checking for shl_load" >&5
8630 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8631 if test "${ac_cv_func_shl_load+set}" = set; then
8632 echo $ECHO_N "(cached) $ECHO_C" >&6
8633 else
8634 cat >conftest.$ac_ext <<_ACEOF
8635 /* confdefs.h. */
8636 _ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h. */
8640 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8642 #define shl_load innocuous_shl_load
8643
8644 /* System header to define __stub macros and hopefully few prototypes,
8645 which can conflict with char shl_load (); below.
8646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8647 <limits.h> exists even on freestanding compilers. */
8648
8649 #ifdef __STDC__
8650 # include <limits.h>
8651 #else
8652 # include <assert.h>
8653 #endif
8654
8655 #undef shl_load
8656
8657 /* Override any gcc2 internal prototype to avoid an error. */
8658 #ifdef __cplusplus
8659 extern "C"
8660 {
8661 #endif
8662 /* We use char because int might match the return type of a gcc2
8663 builtin and then its argument prototype would still apply. */
8664 char shl_load ();
8665 /* The GNU C library defines this for functions which it implements
8666 to always fail with ENOSYS. Some functions are actually named
8667 something starting with __ and the normal name is an alias. */
8668 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8669 choke me
8670 #else
8671 char (*f) () = shl_load;
8672 #endif
8673 #ifdef __cplusplus
8674 }
8675 #endif
8676
8677 int
8678 main ()
8679 {
8680 return f != shl_load;
8681 ;
8682 return 0;
8683 }
8684 _ACEOF
8685 rm -f conftest.$ac_objext conftest$ac_exeext
8686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8687 (eval $ac_link) 2>conftest.er1
8688 ac_status=$?
8689 grep -v '^ *+' conftest.er1 >conftest.err
8690 rm -f conftest.er1
8691 cat conftest.err >&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); } &&
8694 { ac_try='test -z "$ac_c_werror_flag"
8695 || test ! -s conftest.err'
8696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697 (eval $ac_try) 2>&5
8698 ac_status=$?
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; } &&
8701 { ac_try='test -s conftest$ac_exeext'
8702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703 (eval $ac_try) 2>&5
8704 ac_status=$?
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); }; }; then
8707 ac_cv_func_shl_load=yes
8708 else
8709 echo "$as_me: failed program was:" >&5
8710 sed 's/^/| /' conftest.$ac_ext >&5
8711
8712 ac_cv_func_shl_load=no
8713 fi
8714 rm -f conftest.err conftest.$ac_objext \
8715 conftest$ac_exeext conftest.$ac_ext
8716 fi
8717 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8718 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8719 if test $ac_cv_func_shl_load = yes; then
8720 lt_cv_dlopen="shl_load"
8721 else
8722 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8723 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8724 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8725 echo $ECHO_N "(cached) $ECHO_C" >&6
8726 else
8727 ac_check_lib_save_LIBS=$LIBS
8728 LIBS="-ldld $LIBS"
8729 cat >conftest.$ac_ext <<_ACEOF
8730 /* confdefs.h. */
8731 _ACEOF
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h. */
8735
8736 /* Override any gcc2 internal prototype to avoid an error. */
8737 #ifdef __cplusplus
8738 extern "C"
8739 #endif
8740 /* We use char because int might match the return type of a gcc2
8741 builtin and then its argument prototype would still apply. */
8742 char shl_load ();
8743 int
8744 main ()
8745 {
8746 shl_load ();
8747 ;
8748 return 0;
8749 }
8750 _ACEOF
8751 rm -f conftest.$ac_objext conftest$ac_exeext
8752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8753 (eval $ac_link) 2>conftest.er1
8754 ac_status=$?
8755 grep -v '^ *+' conftest.er1 >conftest.err
8756 rm -f conftest.er1
8757 cat conftest.err >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } &&
8760 { ac_try='test -z "$ac_c_werror_flag"
8761 || test ! -s conftest.err'
8762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763 (eval $ac_try) 2>&5
8764 ac_status=$?
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); }; } &&
8767 { ac_try='test -s conftest$ac_exeext'
8768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769 (eval $ac_try) 2>&5
8770 ac_status=$?
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; }; then
8773 ac_cv_lib_dld_shl_load=yes
8774 else
8775 echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.$ac_ext >&5
8777
8778 ac_cv_lib_dld_shl_load=no
8779 fi
8780 rm -f conftest.err conftest.$ac_objext \
8781 conftest$ac_exeext conftest.$ac_ext
8782 LIBS=$ac_check_lib_save_LIBS
8783 fi
8784 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8785 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8786 if test $ac_cv_lib_dld_shl_load = yes; then
8787 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8788 else
8789 echo "$as_me:$LINENO: checking for dlopen" >&5
8790 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8791 if test "${ac_cv_func_dlopen+set}" = set; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 else
8794 cat >conftest.$ac_ext <<_ACEOF
8795 /* confdefs.h. */
8796 _ACEOF
8797 cat confdefs.h >>conftest.$ac_ext
8798 cat >>conftest.$ac_ext <<_ACEOF
8799 /* end confdefs.h. */
8800 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8802 #define dlopen innocuous_dlopen
8803
8804 /* System header to define __stub macros and hopefully few prototypes,
8805 which can conflict with char dlopen (); below.
8806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8807 <limits.h> exists even on freestanding compilers. */
8808
8809 #ifdef __STDC__
8810 # include <limits.h>
8811 #else
8812 # include <assert.h>
8813 #endif
8814
8815 #undef dlopen
8816
8817 /* Override any gcc2 internal prototype to avoid an error. */
8818 #ifdef __cplusplus
8819 extern "C"
8820 {
8821 #endif
8822 /* We use char because int might match the return type of a gcc2
8823 builtin and then its argument prototype would still apply. */
8824 char dlopen ();
8825 /* The GNU C library defines this for functions which it implements
8826 to always fail with ENOSYS. Some functions are actually named
8827 something starting with __ and the normal name is an alias. */
8828 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8829 choke me
8830 #else
8831 char (*f) () = dlopen;
8832 #endif
8833 #ifdef __cplusplus
8834 }
8835 #endif
8836
8837 int
8838 main ()
8839 {
8840 return f != dlopen;
8841 ;
8842 return 0;
8843 }
8844 _ACEOF
8845 rm -f conftest.$ac_objext conftest$ac_exeext
8846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8847 (eval $ac_link) 2>conftest.er1
8848 ac_status=$?
8849 grep -v '^ *+' conftest.er1 >conftest.err
8850 rm -f conftest.er1
8851 cat conftest.err >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); } &&
8854 { ac_try='test -z "$ac_c_werror_flag"
8855 || test ! -s conftest.err'
8856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857 (eval $ac_try) 2>&5
8858 ac_status=$?
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); }; } &&
8861 { ac_try='test -s conftest$ac_exeext'
8862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863 (eval $ac_try) 2>&5
8864 ac_status=$?
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); }; }; then
8867 ac_cv_func_dlopen=yes
8868 else
8869 echo "$as_me: failed program was:" >&5
8870 sed 's/^/| /' conftest.$ac_ext >&5
8871
8872 ac_cv_func_dlopen=no
8873 fi
8874 rm -f conftest.err conftest.$ac_objext \
8875 conftest$ac_exeext conftest.$ac_ext
8876 fi
8877 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8878 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8879 if test $ac_cv_func_dlopen = yes; then
8880 lt_cv_dlopen="dlopen"
8881 else
8882 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8883 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8884 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 else
8887 ac_check_lib_save_LIBS=$LIBS
8888 LIBS="-ldl $LIBS"
8889 cat >conftest.$ac_ext <<_ACEOF
8890 /* confdefs.h. */
8891 _ACEOF
8892 cat confdefs.h >>conftest.$ac_ext
8893 cat >>conftest.$ac_ext <<_ACEOF
8894 /* end confdefs.h. */
8895
8896 /* Override any gcc2 internal prototype to avoid an error. */
8897 #ifdef __cplusplus
8898 extern "C"
8899 #endif
8900 /* We use char because int might match the return type of a gcc2
8901 builtin and then its argument prototype would still apply. */
8902 char dlopen ();
8903 int
8904 main ()
8905 {
8906 dlopen ();
8907 ;
8908 return 0;
8909 }
8910 _ACEOF
8911 rm -f conftest.$ac_objext conftest$ac_exeext
8912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8913 (eval $ac_link) 2>conftest.er1
8914 ac_status=$?
8915 grep -v '^ *+' conftest.er1 >conftest.err
8916 rm -f conftest.er1
8917 cat conftest.err >&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); } &&
8920 { ac_try='test -z "$ac_c_werror_flag"
8921 || test ! -s conftest.err'
8922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8923 (eval $ac_try) 2>&5
8924 ac_status=$?
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); }; } &&
8927 { ac_try='test -s conftest$ac_exeext'
8928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8929 (eval $ac_try) 2>&5
8930 ac_status=$?
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); }; }; then
8933 ac_cv_lib_dl_dlopen=yes
8934 else
8935 echo "$as_me: failed program was:" >&5
8936 sed 's/^/| /' conftest.$ac_ext >&5
8937
8938 ac_cv_lib_dl_dlopen=no
8939 fi
8940 rm -f conftest.err conftest.$ac_objext \
8941 conftest$ac_exeext conftest.$ac_ext
8942 LIBS=$ac_check_lib_save_LIBS
8943 fi
8944 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8945 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8946 if test $ac_cv_lib_dl_dlopen = yes; then
8947 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8948 else
8949 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8950 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8951 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8953 else
8954 ac_check_lib_save_LIBS=$LIBS
8955 LIBS="-lsvld $LIBS"
8956 cat >conftest.$ac_ext <<_ACEOF
8957 /* confdefs.h. */
8958 _ACEOF
8959 cat confdefs.h >>conftest.$ac_ext
8960 cat >>conftest.$ac_ext <<_ACEOF
8961 /* end confdefs.h. */
8962
8963 /* Override any gcc2 internal prototype to avoid an error. */
8964 #ifdef __cplusplus
8965 extern "C"
8966 #endif
8967 /* We use char because int might match the return type of a gcc2
8968 builtin and then its argument prototype would still apply. */
8969 char dlopen ();
8970 int
8971 main ()
8972 {
8973 dlopen ();
8974 ;
8975 return 0;
8976 }
8977 _ACEOF
8978 rm -f conftest.$ac_objext conftest$ac_exeext
8979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8980 (eval $ac_link) 2>conftest.er1
8981 ac_status=$?
8982 grep -v '^ *+' conftest.er1 >conftest.err
8983 rm -f conftest.er1
8984 cat conftest.err >&5
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); } &&
8987 { ac_try='test -z "$ac_c_werror_flag"
8988 || test ! -s conftest.err'
8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990 (eval $ac_try) 2>&5
8991 ac_status=$?
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; } &&
8994 { ac_try='test -s conftest$ac_exeext'
8995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996 (eval $ac_try) 2>&5
8997 ac_status=$?
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); }; }; then
9000 ac_cv_lib_svld_dlopen=yes
9001 else
9002 echo "$as_me: failed program was:" >&5
9003 sed 's/^/| /' conftest.$ac_ext >&5
9004
9005 ac_cv_lib_svld_dlopen=no
9006 fi
9007 rm -f conftest.err conftest.$ac_objext \
9008 conftest$ac_exeext conftest.$ac_ext
9009 LIBS=$ac_check_lib_save_LIBS
9010 fi
9011 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9012 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9013 if test $ac_cv_lib_svld_dlopen = yes; then
9014 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9015 else
9016 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9017 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9018 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9020 else
9021 ac_check_lib_save_LIBS=$LIBS
9022 LIBS="-ldld $LIBS"
9023 cat >conftest.$ac_ext <<_ACEOF
9024 /* confdefs.h. */
9025 _ACEOF
9026 cat confdefs.h >>conftest.$ac_ext
9027 cat >>conftest.$ac_ext <<_ACEOF
9028 /* end confdefs.h. */
9029
9030 /* Override any gcc2 internal prototype to avoid an error. */
9031 #ifdef __cplusplus
9032 extern "C"
9033 #endif
9034 /* We use char because int might match the return type of a gcc2
9035 builtin and then its argument prototype would still apply. */
9036 char dld_link ();
9037 int
9038 main ()
9039 {
9040 dld_link ();
9041 ;
9042 return 0;
9043 }
9044 _ACEOF
9045 rm -f conftest.$ac_objext conftest$ac_exeext
9046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9047 (eval $ac_link) 2>conftest.er1
9048 ac_status=$?
9049 grep -v '^ *+' conftest.er1 >conftest.err
9050 rm -f conftest.er1
9051 cat conftest.err >&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); } &&
9054 { ac_try='test -z "$ac_c_werror_flag"
9055 || test ! -s conftest.err'
9056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9057 (eval $ac_try) 2>&5
9058 ac_status=$?
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); }; } &&
9061 { ac_try='test -s conftest$ac_exeext'
9062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063 (eval $ac_try) 2>&5
9064 ac_status=$?
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); }; }; then
9067 ac_cv_lib_dld_dld_link=yes
9068 else
9069 echo "$as_me: failed program was:" >&5
9070 sed 's/^/| /' conftest.$ac_ext >&5
9071
9072 ac_cv_lib_dld_dld_link=no
9073 fi
9074 rm -f conftest.err conftest.$ac_objext \
9075 conftest$ac_exeext conftest.$ac_ext
9076 LIBS=$ac_check_lib_save_LIBS
9077 fi
9078 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9079 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9080 if test $ac_cv_lib_dld_dld_link = yes; then
9081 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9082 fi
9083
9084
9085 fi
9086
9087
9088 fi
9089
9090
9091 fi
9092
9093
9094 fi
9095
9096
9097 fi
9098
9099 ;;
9100 esac
9101
9102 if test "x$lt_cv_dlopen" != xno; then
9103 enable_dlopen=yes
9104 else
9105 enable_dlopen=no
9106 fi
9107
9108 case $lt_cv_dlopen in
9109 dlopen)
9110 save_CPPFLAGS="$CPPFLAGS"
9111 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9112
9113 save_LDFLAGS="$LDFLAGS"
9114 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9115
9116 save_LIBS="$LIBS"
9117 LIBS="$lt_cv_dlopen_libs $LIBS"
9118
9119 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9120 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9121 if test "${lt_cv_dlopen_self+set}" = set; then
9122 echo $ECHO_N "(cached) $ECHO_C" >&6
9123 else
9124 if test "$cross_compiling" = yes; then :
9125 lt_cv_dlopen_self=cross
9126 else
9127 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9128 lt_status=$lt_dlunknown
9129 cat > conftest.$ac_ext <<EOF
9130 #line 9130 "configure"
9131 #include "confdefs.h"
9132
9133 #if HAVE_DLFCN_H
9134 #include <dlfcn.h>
9135 #endif
9136
9137 #include <stdio.h>
9138
9139 #ifdef RTLD_GLOBAL
9140 # define LT_DLGLOBAL RTLD_GLOBAL
9141 #else
9142 # ifdef DL_GLOBAL
9143 # define LT_DLGLOBAL DL_GLOBAL
9144 # else
9145 # define LT_DLGLOBAL 0
9146 # endif
9147 #endif
9148
9149 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9150 find out it does not work in some platform. */
9151 #ifndef LT_DLLAZY_OR_NOW
9152 # ifdef RTLD_LAZY
9153 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9154 # else
9155 # ifdef DL_LAZY
9156 # define LT_DLLAZY_OR_NOW DL_LAZY
9157 # else
9158 # ifdef RTLD_NOW
9159 # define LT_DLLAZY_OR_NOW RTLD_NOW
9160 # else
9161 # ifdef DL_NOW
9162 # define LT_DLLAZY_OR_NOW DL_NOW
9163 # else
9164 # define LT_DLLAZY_OR_NOW 0
9165 # endif
9166 # endif
9167 # endif
9168 # endif
9169 #endif
9170
9171 #ifdef __cplusplus
9172 extern "C" void exit (int);
9173 #endif
9174
9175 void fnord() { int i=42;}
9176 int main ()
9177 {
9178 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9179 int status = $lt_dlunknown;
9180
9181 if (self)
9182 {
9183 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9184 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9185 /* dlclose (self); */
9186 }
9187 else
9188 puts (dlerror ());
9189
9190 exit (status);
9191 }
9192 EOF
9193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9194 (eval $ac_link) 2>&5
9195 ac_status=$?
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9198 (./conftest; exit; ) >&5 2>/dev/null
9199 lt_status=$?
9200 case x$lt_status in
9201 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9202 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9203 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9204 esac
9205 else :
9206 # compilation failed
9207 lt_cv_dlopen_self=no
9208 fi
9209 fi
9210 rm -fr conftest*
9211
9212
9213 fi
9214 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9215 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9216
9217 if test "x$lt_cv_dlopen_self" = xyes; then
9218 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9219 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9220 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9221 if test "${lt_cv_dlopen_self_static+set}" = set; then
9222 echo $ECHO_N "(cached) $ECHO_C" >&6
9223 else
9224 if test "$cross_compiling" = yes; then :
9225 lt_cv_dlopen_self_static=cross
9226 else
9227 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9228 lt_status=$lt_dlunknown
9229 cat > conftest.$ac_ext <<EOF
9230 #line 9230 "configure"
9231 #include "confdefs.h"
9232
9233 #if HAVE_DLFCN_H
9234 #include <dlfcn.h>
9235 #endif
9236
9237 #include <stdio.h>
9238
9239 #ifdef RTLD_GLOBAL
9240 # define LT_DLGLOBAL RTLD_GLOBAL
9241 #else
9242 # ifdef DL_GLOBAL
9243 # define LT_DLGLOBAL DL_GLOBAL
9244 # else
9245 # define LT_DLGLOBAL 0
9246 # endif
9247 #endif
9248
9249 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9250 find out it does not work in some platform. */
9251 #ifndef LT_DLLAZY_OR_NOW
9252 # ifdef RTLD_LAZY
9253 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9254 # else
9255 # ifdef DL_LAZY
9256 # define LT_DLLAZY_OR_NOW DL_LAZY
9257 # else
9258 # ifdef RTLD_NOW
9259 # define LT_DLLAZY_OR_NOW RTLD_NOW
9260 # else
9261 # ifdef DL_NOW
9262 # define LT_DLLAZY_OR_NOW DL_NOW
9263 # else
9264 # define LT_DLLAZY_OR_NOW 0
9265 # endif
9266 # endif
9267 # endif
9268 # endif
9269 #endif
9270
9271 #ifdef __cplusplus
9272 extern "C" void exit (int);
9273 #endif
9274
9275 void fnord() { int i=42;}
9276 int main ()
9277 {
9278 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9279 int status = $lt_dlunknown;
9280
9281 if (self)
9282 {
9283 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9284 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9285 /* dlclose (self); */
9286 }
9287 else
9288 puts (dlerror ());
9289
9290 exit (status);
9291 }
9292 EOF
9293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9294 (eval $ac_link) 2>&5
9295 ac_status=$?
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9298 (./conftest; exit; ) >&5 2>/dev/null
9299 lt_status=$?
9300 case x$lt_status in
9301 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9302 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9303 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9304 esac
9305 else :
9306 # compilation failed
9307 lt_cv_dlopen_self_static=no
9308 fi
9309 fi
9310 rm -fr conftest*
9311
9312
9313 fi
9314 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9315 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9316 fi
9317
9318 CPPFLAGS="$save_CPPFLAGS"
9319 LDFLAGS="$save_LDFLAGS"
9320 LIBS="$save_LIBS"
9321 ;;
9322 esac
9323
9324 case $lt_cv_dlopen_self in
9325 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9326 *) enable_dlopen_self=unknown ;;
9327 esac
9328
9329 case $lt_cv_dlopen_self_static in
9330 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9331 *) enable_dlopen_self_static=unknown ;;
9332 esac
9333 fi
9334
9335
9336 # Report which library types will actually be built
9337 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9338 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9339 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9340 echo "${ECHO_T}$can_build_shared" >&6
9341
9342 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9343 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9344 test "$can_build_shared" = "no" && enable_shared=no
9345
9346 # On AIX, shared libraries and static libraries use the same namespace, and
9347 # are all built from PIC.
9348 case $host_os in
9349 aix3*)
9350 test "$enable_shared" = yes && enable_static=no
9351 if test -n "$RANLIB"; then
9352 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9353 postinstall_cmds='$RANLIB $lib'
9354 fi
9355 ;;
9356
9357 aix4* | aix5*)
9358 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9359 test "$enable_shared" = yes && enable_static=no
9360 fi
9361 ;;
9362 esac
9363 echo "$as_me:$LINENO: result: $enable_shared" >&5
9364 echo "${ECHO_T}$enable_shared" >&6
9365
9366 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9367 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9368 # Make sure either enable_shared or enable_static is yes.
9369 test "$enable_shared" = yes || enable_static=yes
9370 echo "$as_me:$LINENO: result: $enable_static" >&5
9371 echo "${ECHO_T}$enable_static" >&6
9372
9373 # The else clause should only fire when bootstrapping the
9374 # libtool distribution, otherwise you forgot to ship ltmain.sh
9375 # with your package, and you will get complaints that there are
9376 # no rules to generate ltmain.sh.
9377 if test -f "$ltmain"; then
9378 # See if we are running on zsh, and set the options which allow our commands through
9379 # without removal of \ escapes.
9380 if test -n "${ZSH_VERSION+set}" ; then
9381 setopt NO_GLOB_SUBST
9382 fi
9383 # Now quote all the things that may contain metacharacters while being
9384 # careful not to overquote the AC_SUBSTed values. We take copies of the
9385 # variables and quote the copies for generation of the libtool script.
9386 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9387 SED SHELL STRIP \
9388 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9389 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9390 deplibs_check_method reload_flag reload_cmds need_locks \
9391 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9392 lt_cv_sys_global_symbol_to_c_name_address \
9393 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9394 old_postinstall_cmds old_postuninstall_cmds \
9395 compiler \
9396 CC \
9397 LD \
9398 lt_prog_compiler_wl \
9399 lt_prog_compiler_pic \
9400 lt_prog_compiler_static \
9401 lt_prog_compiler_no_builtin_flag \
9402 export_dynamic_flag_spec \
9403 thread_safe_flag_spec \
9404 whole_archive_flag_spec \
9405 enable_shared_with_static_runtimes \
9406 old_archive_cmds \
9407 old_archive_from_new_cmds \
9408 predep_objects \
9409 postdep_objects \
9410 predeps \
9411 postdeps \
9412 compiler_lib_search_path \
9413 archive_cmds \
9414 archive_expsym_cmds \
9415 postinstall_cmds \
9416 postuninstall_cmds \
9417 old_archive_from_expsyms_cmds \
9418 allow_undefined_flag \
9419 no_undefined_flag \
9420 export_symbols_cmds \
9421 hardcode_libdir_flag_spec \
9422 hardcode_libdir_flag_spec_ld \
9423 hardcode_libdir_separator \
9424 hardcode_automatic \
9425 module_cmds \
9426 module_expsym_cmds \
9427 lt_cv_prog_compiler_c_o \
9428 exclude_expsyms \
9429 include_expsyms; do
9430
9431 case $var in
9432 old_archive_cmds | \
9433 old_archive_from_new_cmds | \
9434 archive_cmds | \
9435 archive_expsym_cmds | \
9436 module_cmds | \
9437 module_expsym_cmds | \
9438 old_archive_from_expsyms_cmds | \
9439 export_symbols_cmds | \
9440 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9441 postinstall_cmds | postuninstall_cmds | \
9442 old_postinstall_cmds | old_postuninstall_cmds | \
9443 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9444 # Double-quote double-evaled strings.
9445 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9446 ;;
9447 *)
9448 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9449 ;;
9450 esac
9451 done
9452
9453 case $lt_echo in
9454 *'\$0 --fallback-echo"')
9455 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9456 ;;
9457 esac
9458
9459 cfgfile="${ofile}T"
9460 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9461 $rm -f "$cfgfile"
9462 { echo "$as_me:$LINENO: creating $ofile" >&5
9463 echo "$as_me: creating $ofile" >&6;}
9464
9465 cat <<__EOF__ >> "$cfgfile"
9466 #! $SHELL
9467
9468 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9469 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9470 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9471 #
9472 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9473 # Free Software Foundation, Inc.
9474 #
9475 # This file is part of GNU Libtool:
9476 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
9477 #
9478 # This program is free software; you can redistribute it and/or modify
9479 # it under the terms of the GNU General Public License as published by
9480 # the Free Software Foundation; either version 2 of the License, or
9481 # (at your option) any later version.
9482 #
9483 # This program is distributed in the hope that it will be useful, but
9484 # WITHOUT ANY WARRANTY; without even the implied warranty of
9485 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9486 # General Public License for more details.
9487 #
9488 # You should have received a copy of the GNU General Public License
9489 # along with this program; if not, write to the Free Software
9490 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9491 #
9492 # As a special exception to the GNU General Public License, if you
9493 # distribute this file as part of a program that contains a
9494 # configuration script generated by Autoconf, you may include it under
9495 # the same distribution terms that you use for the rest of that program.
9496
9497 # A sed program that does not truncate output.
9498 SED=$lt_SED
9499
9500 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9501 Xsed="$SED -e 1s/^X//"
9502
9503 # The HP-UX ksh and POSIX shell print the target directory to stdout
9504 # if CDPATH is set.
9505 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9506
9507 # The names of the tagged configurations supported by this script.
9508 available_tags=
9509
9510 # ### BEGIN LIBTOOL CONFIG
9511
9512 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9513
9514 # Shell to use when invoking shell scripts.
9515 SHELL=$lt_SHELL
9516
9517 # Whether or not to build shared libraries.
9518 build_libtool_libs=$enable_shared
9519
9520 # Whether or not to build static libraries.
9521 build_old_libs=$enable_static
9522
9523 # Whether or not to add -lc for building shared libraries.
9524 build_libtool_need_lc=$archive_cmds_need_lc
9525
9526 # Whether or not to disallow shared libs when runtime libs are static
9527 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9528
9529 # Whether or not to optimize for fast installation.
9530 fast_install=$enable_fast_install
9531
9532 # The host system.
9533 host_alias=$host_alias
9534 host=$host
9535 host_os=$host_os
9536
9537 # The build system.
9538 build_alias=$build_alias
9539 build=$build
9540 build_os=$build_os
9541
9542 # An echo program that does not interpret backslashes.
9543 echo=$lt_echo
9544
9545 # The archiver.
9546 AR=$lt_AR
9547 AR_FLAGS=$lt_AR_FLAGS
9548
9549 # A C compiler.
9550 LTCC=$lt_LTCC
9551
9552 # LTCC compiler flags.
9553 LTCFLAGS=$lt_LTCFLAGS
9554
9555 # A language-specific compiler.
9556 CC=$lt_compiler
9557
9558 # Is the compiler the GNU C compiler?
9559 with_gcc=$GCC
9560
9561 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
9562 gcc_ver=\`gcc -dumpversion\`
9563
9564 # An ERE matcher.
9565 EGREP=$lt_EGREP
9566
9567 # The linker used to build libraries.
9568 LD=$lt_LD
9569
9570 # Whether we need hard or soft links.
9571 LN_S=$lt_LN_S
9572
9573 # A BSD-compatible nm program.
9574 NM=$lt_NM
9575
9576 # A symbol stripping program
9577 STRIP=$lt_STRIP
9578
9579 # Used to examine libraries when file_magic_cmd begins "file"
9580 MAGIC_CMD=$MAGIC_CMD
9581
9582 # Used on cygwin: DLL creation program.
9583 DLLTOOL="$DLLTOOL"
9584
9585 # Used on cygwin: object dumper.
9586 OBJDUMP="$OBJDUMP"
9587
9588 # Used on cygwin: assembler.
9589 AS="$AS"
9590
9591 # The name of the directory that contains temporary libtool files.
9592 objdir=$objdir
9593
9594 # How to create reloadable object files.
9595 reload_flag=$lt_reload_flag
9596 reload_cmds=$lt_reload_cmds
9597
9598 # How to pass a linker flag through the compiler.
9599 wl=$lt_lt_prog_compiler_wl
9600
9601 # Object file suffix (normally "o").
9602 objext="$ac_objext"
9603
9604 # Old archive suffix (normally "a").
9605 libext="$libext"
9606
9607 # Shared library suffix (normally ".so").
9608 shrext_cmds='$shrext_cmds'
9609
9610 # Executable file suffix (normally "").
9611 exeext="$exeext"
9612
9613 # Additional compiler flags for building library objects.
9614 pic_flag=$lt_lt_prog_compiler_pic
9615 pic_mode=$pic_mode
9616
9617 # What is the maximum length of a command?
9618 max_cmd_len=$lt_cv_sys_max_cmd_len
9619
9620 # Does compiler simultaneously support -c and -o options?
9621 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9622
9623 # Must we lock files when doing compilation?
9624 need_locks=$lt_need_locks
9625
9626 # Do we need the lib prefix for modules?
9627 need_lib_prefix=$need_lib_prefix
9628
9629 # Do we need a version for libraries?
9630 need_version=$need_version
9631
9632 # Whether dlopen is supported.
9633 dlopen_support=$enable_dlopen
9634
9635 # Whether dlopen of programs is supported.
9636 dlopen_self=$enable_dlopen_self
9637
9638 # Whether dlopen of statically linked programs is supported.
9639 dlopen_self_static=$enable_dlopen_self_static
9640
9641 # Compiler flag to prevent dynamic linking.
9642 link_static_flag=$lt_lt_prog_compiler_static
9643
9644 # Compiler flag to turn off builtin functions.
9645 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9646
9647 # Compiler flag to allow reflexive dlopens.
9648 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9649
9650 # Compiler flag to generate shared objects directly from archives.
9651 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9652
9653 # Compiler flag to generate thread-safe objects.
9654 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9655
9656 # Library versioning type.
9657 version_type=$version_type
9658
9659 # Format of library name prefix.
9660 libname_spec=$lt_libname_spec
9661
9662 # List of archive names. First name is the real one, the rest are links.
9663 # The last name is the one that the linker finds with -lNAME.
9664 library_names_spec=$lt_library_names_spec
9665
9666 # The coded name of the library, if different from the real name.
9667 soname_spec=$lt_soname_spec
9668
9669 # Commands used to build and install an old-style archive.
9670 RANLIB=$lt_RANLIB
9671 old_archive_cmds=$lt_old_archive_cmds
9672 old_postinstall_cmds=$lt_old_postinstall_cmds
9673 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9674
9675 # Create an old-style archive from a shared archive.
9676 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9677
9678 # Create a temporary old-style archive to link instead of a shared archive.
9679 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9680
9681 # Commands used to build and install a shared archive.
9682 archive_cmds=$lt_archive_cmds
9683 archive_expsym_cmds=$lt_archive_expsym_cmds
9684 postinstall_cmds=$lt_postinstall_cmds
9685 postuninstall_cmds=$lt_postuninstall_cmds
9686
9687 # Commands used to build a loadable module (assumed same as above if empty)
9688 module_cmds=$lt_module_cmds
9689 module_expsym_cmds=$lt_module_expsym_cmds
9690
9691 # Commands to strip libraries.
9692 old_striplib=$lt_old_striplib
9693 striplib=$lt_striplib
9694
9695 # Dependencies to place before the objects being linked to create a
9696 # shared library.
9697 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9698
9699 # Dependencies to place after the objects being linked to create a
9700 # shared library.
9701 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9702
9703 # Dependencies to place before the objects being linked to create a
9704 # shared library.
9705 predeps=$lt_predeps
9706
9707 # Dependencies to place after the objects being linked to create a
9708 # shared library.
9709 postdeps=$lt_postdeps
9710
9711 # The library search path used internally by the compiler when linking
9712 # a shared library.
9713 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9714
9715 # Method to check whether dependent libraries are shared objects.
9716 deplibs_check_method=$lt_deplibs_check_method
9717
9718 # Command to use when deplibs_check_method == file_magic.
9719 file_magic_cmd=$lt_file_magic_cmd
9720
9721 # Flag that allows shared libraries with undefined symbols to be built.
9722 allow_undefined_flag=$lt_allow_undefined_flag
9723
9724 # Flag that forces no undefined symbols.
9725 no_undefined_flag=$lt_no_undefined_flag
9726
9727 # Commands used to finish a libtool library installation in a directory.
9728 finish_cmds=$lt_finish_cmds
9729
9730 # Same as above, but a single script fragment to be evaled but not shown.
9731 finish_eval=$lt_finish_eval
9732
9733 # Take the output of nm and produce a listing of raw symbols and C names.
9734 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9735
9736 # Transform the output of nm in a proper C declaration
9737 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9738
9739 # Transform the output of nm in a C name address pair
9740 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9741
9742 # This is the shared library runtime path variable.
9743 runpath_var=$runpath_var
9744
9745 # This is the shared library path variable.
9746 shlibpath_var=$shlibpath_var
9747
9748 # Is shlibpath searched before the hard-coded library search path?
9749 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9750
9751 # How to hardcode a shared library path into an executable.
9752 hardcode_action=$hardcode_action
9753
9754 # Whether we should hardcode library paths into libraries.
9755 hardcode_into_libs=$hardcode_into_libs
9756
9757 # Flag to hardcode \$libdir into a binary during linking.
9758 # This must work even if \$libdir does not exist.
9759 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9760
9761 # If ld is used when linking, flag to hardcode \$libdir into
9762 # a binary during linking. This must work even if \$libdir does
9763 # not exist.
9764 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9765
9766 # Whether we need a single -rpath flag with a separated argument.
9767 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9768
9769 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9770 # resulting binary.
9771 hardcode_direct=$hardcode_direct
9772
9773 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9774 # resulting binary.
9775 hardcode_minus_L=$hardcode_minus_L
9776
9777 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9778 # the resulting binary.
9779 hardcode_shlibpath_var=$hardcode_shlibpath_var
9780
9781 # Set to yes if building a shared library automatically hardcodes DIR into the library
9782 # and all subsequent libraries and executables linked against it.
9783 hardcode_automatic=$hardcode_automatic
9784
9785 # Variables whose values should be saved in libtool wrapper scripts and
9786 # restored at relink time.
9787 variables_saved_for_relink="$variables_saved_for_relink"
9788
9789 # Whether libtool must link a program against all its dependency libraries.
9790 link_all_deplibs=$link_all_deplibs
9791
9792 # Compile-time system search path for libraries
9793 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9794
9795 # Run-time system search path for libraries
9796 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9797
9798 # Fix the shell variable \$srcfile for the compiler.
9799 fix_srcfile_path="$fix_srcfile_path"
9800
9801 # Set to yes if exported symbols are required.
9802 always_export_symbols=$always_export_symbols
9803
9804 # The commands to list exported symbols.
9805 export_symbols_cmds=$lt_export_symbols_cmds
9806
9807 # The commands to extract the exported symbol list from a shared archive.
9808 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9809
9810 # Symbols that should not be listed in the preloaded symbols.
9811 exclude_expsyms=$lt_exclude_expsyms
9812
9813 # Symbols that must always be exported.
9814 include_expsyms=$lt_include_expsyms
9815
9816 # ### END LIBTOOL CONFIG
9817
9818 __EOF__
9819
9820
9821 case $host_os in
9822 aix3*)
9823 cat <<\EOF >> "$cfgfile"
9824
9825 # AIX sometimes has problems with the GCC collect2 program. For some
9826 # reason, if we set the COLLECT_NAMES environment variable, the problems
9827 # vanish in a puff of smoke.
9828 if test "X${COLLECT_NAMES+set}" != Xset; then
9829 COLLECT_NAMES=
9830 export COLLECT_NAMES
9831 fi
9832 EOF
9833 ;;
9834 esac
9835
9836 # We use sed instead of cat because bash on DJGPP gets confused if
9837 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9838 # text mode, it properly converts lines to CR/LF. This bash problem
9839 # is reportedly fixed, but why not run on old versions too?
9840 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9841
9842 mv -f "$cfgfile" "$ofile" || \
9843 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9844 chmod +x "$ofile"
9845
9846 else
9847 # If there is no Makefile yet, we rely on a make rule to execute
9848 # `config.status --recheck' to rerun these tests and create the
9849 # libtool script then.
9850 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9851 if test -f "$ltmain_in"; then
9852 test -f Makefile && make "$ltmain"
9853 fi
9854 fi
9855
9856
9857 ac_ext=c
9858 ac_cpp='$CPP $CPPFLAGS'
9859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9862
9863 CC="$lt_save_CC"
9864
9865
9866 # Check whether --with-tags or --without-tags was given.
9867 if test "${with_tags+set}" = set; then
9868 withval="$with_tags"
9869 tagnames="$withval"
9870 fi;
9871
9872 if test -f "$ltmain" && test -n "$tagnames"; then
9873 if test ! -f "${ofile}"; then
9874 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9875 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9876 fi
9877
9878 if test -z "$LTCC"; then
9879 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9880 if test -z "$LTCC"; then
9881 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9882 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9883 else
9884 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9885 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9886 fi
9887 fi
9888 if test -z "$LTCFLAGS"; then
9889 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9890 fi
9891
9892 # Extract list of available tagged configurations in $ofile.
9893 # Note that this assumes the entire list is on one line.
9894 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9895
9896 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9897 for tagname in $tagnames; do
9898 IFS="$lt_save_ifs"
9899 # Check whether tagname contains only valid characters
9900 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9901 "") ;;
9902 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9903 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9904 { (exit 1); exit 1; }; }
9905 ;;
9906 esac
9907
9908 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9909 then
9910 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9911 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9912 { (exit 1); exit 1; }; }
9913 fi
9914
9915 # Update the list of available tags.
9916 if test -n "$tagname"; then
9917 echo appending configuration tag \"$tagname\" to $ofile
9918
9919 case $tagname in
9920 CXX)
9921 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9922 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9923 (test "X$CXX" != "Xg++"))) ; then
9924 ac_ext=cc
9925 ac_cpp='$CXXCPP $CPPFLAGS'
9926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9929
9930
9931
9932
9933 archive_cmds_need_lc_CXX=no
9934 allow_undefined_flag_CXX=
9935 always_export_symbols_CXX=no
9936 archive_expsym_cmds_CXX=
9937 export_dynamic_flag_spec_CXX=
9938 hardcode_direct_CXX=no
9939 hardcode_libdir_flag_spec_CXX=
9940 hardcode_libdir_flag_spec_ld_CXX=
9941 hardcode_libdir_separator_CXX=
9942 hardcode_minus_L_CXX=no
9943 hardcode_shlibpath_var_CXX=unsupported
9944 hardcode_automatic_CXX=no
9945 module_cmds_CXX=
9946 module_expsym_cmds_CXX=
9947 link_all_deplibs_CXX=unknown
9948 old_archive_cmds_CXX=$old_archive_cmds
9949 no_undefined_flag_CXX=
9950 whole_archive_flag_spec_CXX=
9951 enable_shared_with_static_runtimes_CXX=no
9952
9953 # Dependencies to place before and after the object being linked:
9954 predep_objects_CXX=
9955 postdep_objects_CXX=
9956 predeps_CXX=
9957 postdeps_CXX=
9958 compiler_lib_search_path_CXX=
9959
9960 # Source file extension for C++ test sources.
9961 ac_ext=cpp
9962
9963 # Object file extension for compiled C++ test sources.
9964 objext=o
9965 objext_CXX=$objext
9966
9967 # Code to be used in simple compile tests
9968 lt_simple_compile_test_code="int some_variable = 0;\n"
9969
9970 # Code to be used in simple link tests
9971 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9972
9973 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9974
9975 # If no C compiler was specified, use CC.
9976 LTCC=${LTCC-"$CC"}
9977
9978 # If no C compiler flags were specified, use CFLAGS.
9979 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9980
9981 # Allow CC to be a program name with arguments.
9982 compiler=$CC
9983
9984
9985 # save warnings/boilerplate of simple test code
9986 ac_outfile=conftest.$ac_objext
9987 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9988 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9989 _lt_compiler_boilerplate=`cat conftest.err`
9990 $rm conftest*
9991
9992 ac_outfile=conftest.$ac_objext
9993 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9994 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9995 _lt_linker_boilerplate=`cat conftest.err`
9996 $rm conftest*
9997
9998
9999 # Allow CC to be a program name with arguments.
10000 lt_save_CC=$CC
10001 lt_save_LD=$LD
10002 lt_save_GCC=$GCC
10003 GCC=$GXX
10004 lt_save_with_gnu_ld=$with_gnu_ld
10005 lt_save_path_LD=$lt_cv_path_LD
10006 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10007 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10008 else
10009 $as_unset lt_cv_prog_gnu_ld
10010 fi
10011 if test -n "${lt_cv_path_LDCXX+set}"; then
10012 lt_cv_path_LD=$lt_cv_path_LDCXX
10013 else
10014 $as_unset lt_cv_path_LD
10015 fi
10016 test -z "${LDCXX+set}" || LD=$LDCXX
10017 CC=${CXX-"c++"}
10018 compiler=$CC
10019 compiler_CXX=$CC
10020 for cc_temp in $compiler""; do
10021 case $cc_temp in
10022 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10023 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10024 \-*) ;;
10025 *) break;;
10026 esac
10027 done
10028 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10029
10030
10031 # We don't want -fno-exception wen compiling C++ code, so set the
10032 # no_builtin_flag separately
10033 if test "$GXX" = yes; then
10034 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10035 else
10036 lt_prog_compiler_no_builtin_flag_CXX=
10037 fi
10038
10039 if test "$GXX" = yes; then
10040 # Set up default GNU C++ configuration
10041
10042
10043 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10044 if test "${with_gnu_ld+set}" = set; then
10045 withval="$with_gnu_ld"
10046 test "$withval" = no || with_gnu_ld=yes
10047 else
10048 with_gnu_ld=no
10049 fi;
10050 ac_prog=ld
10051 if test "$GCC" = yes; then
10052 # Check if gcc -print-prog-name=ld gives a path.
10053 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10054 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10055 case $host in
10056 *-*-mingw*)
10057 # gcc leaves a trailing carriage return which upsets mingw
10058 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10059 *)
10060 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10061 esac
10062 case $ac_prog in
10063 # Accept absolute paths.
10064 [\\/]* | ?:[\\/]*)
10065 re_direlt='/[^/][^/]*/\.\./'
10066 # Canonicalize the pathname of ld
10067 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10068 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10069 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10070 done
10071 test -z "$LD" && LD="$ac_prog"
10072 ;;
10073 "")
10074 # If it fails, then pretend we aren't using GCC.
10075 ac_prog=ld
10076 ;;
10077 *)
10078 # If it is relative, then search for the first ld in PATH.
10079 with_gnu_ld=unknown
10080 ;;
10081 esac
10082 elif test "$with_gnu_ld" = yes; then
10083 echo "$as_me:$LINENO: checking for GNU ld" >&5
10084 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10085 else
10086 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10087 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10088 fi
10089 if test "${lt_cv_path_LD+set}" = set; then
10090 echo $ECHO_N "(cached) $ECHO_C" >&6
10091 else
10092 if test -z "$LD"; then
10093 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10094 for ac_dir in $PATH; do
10095 IFS="$lt_save_ifs"
10096 test -z "$ac_dir" && ac_dir=.
10097 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10098 lt_cv_path_LD="$ac_dir/$ac_prog"
10099 # Check to see if the program is GNU ld. I'd rather use --version,
10100 # but apparently some variants of GNU ld only accept -v.
10101 # Break only if it was the GNU/non-GNU ld that we prefer.
10102 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10103 *GNU* | *'with BFD'*)
10104 test "$with_gnu_ld" != no && break
10105 ;;
10106 *)
10107 test "$with_gnu_ld" != yes && break
10108 ;;
10109 esac
10110 fi
10111 done
10112 IFS="$lt_save_ifs"
10113 else
10114 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10115 fi
10116 fi
10117
10118 LD="$lt_cv_path_LD"
10119 if test -n "$LD"; then
10120 echo "$as_me:$LINENO: result: $LD" >&5
10121 echo "${ECHO_T}$LD" >&6
10122 else
10123 echo "$as_me:$LINENO: result: no" >&5
10124 echo "${ECHO_T}no" >&6
10125 fi
10126 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10127 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10128 { (exit 1); exit 1; }; }
10129 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10130 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10131 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10133 else
10134 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10135 case `$LD -v 2>&1 </dev/null` in
10136 *GNU* | *'with BFD'*)
10137 lt_cv_prog_gnu_ld=yes
10138 ;;
10139 *)
10140 lt_cv_prog_gnu_ld=no
10141 ;;
10142 esac
10143 fi
10144 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10145 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10146 with_gnu_ld=$lt_cv_prog_gnu_ld
10147
10148
10149
10150 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10151 # archiving commands below assume that GNU ld is being used.
10152 if test "$with_gnu_ld" = yes; then
10153 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10154 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'
10155
10156 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10157 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10158
10159 # If archive_cmds runs LD, not CC, wlarc should be empty
10160 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10161 # investigate it a little bit more. (MM)
10162 wlarc='${wl}'
10163
10164 # ancient GNU ld didn't support --whole-archive et. al.
10165 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10166 grep 'no-whole-archive' > /dev/null; then
10167 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10168 else
10169 whole_archive_flag_spec_CXX=
10170 fi
10171 else
10172 with_gnu_ld=no
10173 wlarc=
10174
10175 # A generic and very simple default shared library creation
10176 # command for GNU C++ for the case where it uses the native
10177 # linker, instead of GNU ld. If possible, this setting should
10178 # overridden to take advantage of the native linker features on
10179 # the platform it is being used on.
10180 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10181 fi
10182
10183 # Commands to make compiler produce verbose output that lists
10184 # what "hidden" libraries, object files and flags are used when
10185 # linking a shared library.
10186 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10187
10188 else
10189 GXX=no
10190 with_gnu_ld=no
10191 wlarc=
10192 fi
10193
10194 # PORTME: fill in a description of your system's C++ link characteristics
10195 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10196 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10197 ld_shlibs_CXX=yes
10198 case $host_os in
10199 aix3*)
10200 # FIXME: insert proper C++ library support
10201 ld_shlibs_CXX=no
10202 ;;
10203 aix4* | aix5*)
10204 if test "$host_cpu" = ia64; then
10205 # On IA64, the linker does run time linking by default, so we don't
10206 # have to do anything special.
10207 aix_use_runtimelinking=no
10208 exp_sym_flag='-Bexport'
10209 no_entry_flag=""
10210 else
10211 aix_use_runtimelinking=no
10212
10213 # Test if we are trying to use run time linking or normal
10214 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10215 # need to do runtime linking.
10216 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10217 for ld_flag in $LDFLAGS; do
10218 case $ld_flag in
10219 *-brtl*)
10220 aix_use_runtimelinking=yes
10221 break
10222 ;;
10223 esac
10224 done
10225 ;;
10226 esac
10227
10228 exp_sym_flag='-bexport'
10229 no_entry_flag='-bnoentry'
10230 fi
10231
10232 # When large executables or shared objects are built, AIX ld can
10233 # have problems creating the table of contents. If linking a library
10234 # or program results in "error TOC overflow" add -mminimal-toc to
10235 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10236 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10237
10238 archive_cmds_CXX=''
10239 hardcode_direct_CXX=yes
10240 hardcode_libdir_separator_CXX=':'
10241 link_all_deplibs_CXX=yes
10242
10243 if test "$GXX" = yes; then
10244 case $host_os in aix4.[012]|aix4.[012].*)
10245 # We only want to do this on AIX 4.2 and lower, the check
10246 # below for broken collect2 doesn't work under 4.3+
10247 collect2name=`${CC} -print-prog-name=collect2`
10248 if test -f "$collect2name" && \
10249 strings "$collect2name" | grep resolve_lib_name >/dev/null
10250 then
10251 # We have reworked collect2
10252 hardcode_direct_CXX=yes
10253 else
10254 # We have old collect2
10255 hardcode_direct_CXX=unsupported
10256 # It fails to find uninstalled libraries when the uninstalled
10257 # path is not listed in the libpath. Setting hardcode_minus_L
10258 # to unsupported forces relinking
10259 hardcode_minus_L_CXX=yes
10260 hardcode_libdir_flag_spec_CXX='-L$libdir'
10261 hardcode_libdir_separator_CXX=
10262 fi
10263 ;;
10264 esac
10265 shared_flag='-shared'
10266 if test "$aix_use_runtimelinking" = yes; then
10267 shared_flag="$shared_flag "'${wl}-G'
10268 fi
10269 else
10270 # not using gcc
10271 if test "$host_cpu" = ia64; then
10272 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10273 # chokes on -Wl,-G. The following line is correct:
10274 shared_flag='-G'
10275 else
10276 if test "$aix_use_runtimelinking" = yes; then
10277 shared_flag='${wl}-G'
10278 else
10279 shared_flag='${wl}-bM:SRE'
10280 fi
10281 fi
10282 fi
10283
10284 # It seems that -bexpall does not export symbols beginning with
10285 # underscore (_), so it is better to generate a list of symbols to export.
10286 always_export_symbols_CXX=yes
10287 if test "$aix_use_runtimelinking" = yes; then
10288 # Warning - without using the other runtime loading flags (-brtl),
10289 # -berok will link without error, but may produce a broken library.
10290 allow_undefined_flag_CXX='-berok'
10291 # Determine the default libpath from the value encoded in an empty executable.
10292 cat >conftest.$ac_ext <<_ACEOF
10293 /* confdefs.h. */
10294 _ACEOF
10295 cat confdefs.h >>conftest.$ac_ext
10296 cat >>conftest.$ac_ext <<_ACEOF
10297 /* end confdefs.h. */
10298
10299 int
10300 main ()
10301 {
10302
10303 ;
10304 return 0;
10305 }
10306 _ACEOF
10307 rm -f conftest.$ac_objext conftest$ac_exeext
10308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10309 (eval $ac_link) 2>conftest.er1
10310 ac_status=$?
10311 grep -v '^ *+' conftest.er1 >conftest.err
10312 rm -f conftest.er1
10313 cat conftest.err >&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); } &&
10316 { ac_try='test -z "$ac_cxx_werror_flag"
10317 || test ! -s conftest.err'
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10320 ac_status=$?
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; } &&
10323 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10329
10330 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10331 }'`
10332 # Check for a 64-bit object if we didn't find anything.
10333 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; }
10334 }'`; fi
10335 else
10336 echo "$as_me: failed program was:" >&5
10337 sed 's/^/| /' conftest.$ac_ext >&5
10338
10339 fi
10340 rm -f conftest.err conftest.$ac_objext \
10341 conftest$ac_exeext conftest.$ac_ext
10342 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10343
10344 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10345
10346 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"
10347 else
10348 if test "$host_cpu" = ia64; then
10349 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10350 allow_undefined_flag_CXX="-z nodefs"
10351 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"
10352 else
10353 # Determine the default libpath from the value encoded in an empty executable.
10354 cat >conftest.$ac_ext <<_ACEOF
10355 /* confdefs.h. */
10356 _ACEOF
10357 cat confdefs.h >>conftest.$ac_ext
10358 cat >>conftest.$ac_ext <<_ACEOF
10359 /* end confdefs.h. */
10360
10361 int
10362 main ()
10363 {
10364
10365 ;
10366 return 0;
10367 }
10368 _ACEOF
10369 rm -f conftest.$ac_objext conftest$ac_exeext
10370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10371 (eval $ac_link) 2>conftest.er1
10372 ac_status=$?
10373 grep -v '^ *+' conftest.er1 >conftest.err
10374 rm -f conftest.er1
10375 cat conftest.err >&5
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); } &&
10378 { ac_try='test -z "$ac_cxx_werror_flag"
10379 || test ! -s conftest.err'
10380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10381 (eval $ac_try) 2>&5
10382 ac_status=$?
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); }; } &&
10385 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10391
10392 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10393 }'`
10394 # Check for a 64-bit object if we didn't find anything.
10395 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; }
10396 }'`; fi
10397 else
10398 echo "$as_me: failed program was:" >&5
10399 sed 's/^/| /' conftest.$ac_ext >&5
10400
10401 fi
10402 rm -f conftest.err conftest.$ac_objext \
10403 conftest$ac_exeext conftest.$ac_ext
10404 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10405
10406 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10407 # Warning - without using the other run time loading flags,
10408 # -berok will link without error, but may produce a broken library.
10409 no_undefined_flag_CXX=' ${wl}-bernotok'
10410 allow_undefined_flag_CXX=' ${wl}-berok'
10411 # Exported symbols can be pulled into shared objects from archives
10412 whole_archive_flag_spec_CXX='$convenience'
10413 archive_cmds_need_lc_CXX=yes
10414 # This is similar to how AIX traditionally builds its shared libraries.
10415 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'
10416 fi
10417 fi
10418 ;;
10419
10420 beos*)
10421 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10422 allow_undefined_flag_CXX=unsupported
10423 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
10424 # support --undefined. This deserves some investigation. FIXME
10425 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10426 else
10427 ld_shlibs_CXX=no
10428 fi
10429 ;;
10430
10431 chorus*)
10432 case $cc_basename in
10433 *)
10434 # FIXME: insert proper C++ library support
10435 ld_shlibs_CXX=no
10436 ;;
10437 esac
10438 ;;
10439
10440 cygwin* | mingw* | pw32*)
10441 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10442 # as there is no search path for DLLs.
10443 hardcode_libdir_flag_spec_CXX='-L$libdir'
10444 allow_undefined_flag_CXX=unsupported
10445 always_export_symbols_CXX=no
10446 enable_shared_with_static_runtimes_CXX=yes
10447
10448 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10449 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'
10450 # If the export-symbols file already is a .def file (1st line
10451 # is EXPORTS), use it as is; otherwise, prepend...
10452 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10453 cp $export_symbols $output_objdir/$soname.def;
10454 else
10455 echo EXPORTS > $output_objdir/$soname.def;
10456 cat $export_symbols >> $output_objdir/$soname.def;
10457 fi~
10458 $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'
10459 else
10460 ld_shlibs_CXX=no
10461 fi
10462 ;;
10463 darwin* | rhapsody*)
10464 case $host_os in
10465 rhapsody* | darwin1.[012])
10466 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10467 ;;
10468 *) # Darwin 1.3 on
10469 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10470 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10471 else
10472 case ${MACOSX_DEPLOYMENT_TARGET} in
10473 10.[012])
10474 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10475 ;;
10476 10.*)
10477 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10478 ;;
10479 esac
10480 fi
10481 ;;
10482 esac
10483 archive_cmds_need_lc_CXX=no
10484 hardcode_direct_CXX=no
10485 hardcode_automatic_CXX=yes
10486 hardcode_shlibpath_var_CXX=unsupported
10487 whole_archive_flag_spec_CXX=''
10488 link_all_deplibs_CXX=yes
10489
10490 if test "$GXX" = yes ; then
10491 lt_int_apple_cc_single_mod=no
10492 output_verbose_link_cmd='echo'
10493 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10494 lt_int_apple_cc_single_mod=yes
10495 fi
10496 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10497 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10498 else
10499 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'
10500 fi
10501 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10502 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10503 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10504 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}'
10505 else
10506 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}'
10507 fi
10508 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}'
10509 else
10510 case $cc_basename in
10511 xlc*)
10512 output_verbose_link_cmd='echo'
10513 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'
10514 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10515 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10516 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}'
10517 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}'
10518 ;;
10519 *)
10520 ld_shlibs_CXX=no
10521 ;;
10522 esac
10523 fi
10524 ;;
10525
10526 dgux*)
10527 case $cc_basename in
10528 ec++*)
10529 # FIXME: insert proper C++ library support
10530 ld_shlibs_CXX=no
10531 ;;
10532 ghcx*)
10533 # Green Hills C++ Compiler
10534 # FIXME: insert proper C++ library support
10535 ld_shlibs_CXX=no
10536 ;;
10537 *)
10538 # FIXME: insert proper C++ library support
10539 ld_shlibs_CXX=no
10540 ;;
10541 esac
10542 ;;
10543 freebsd[12]*)
10544 # C++ shared libraries reported to be fairly broken before switch to ELF
10545 ld_shlibs_CXX=no
10546 ;;
10547 freebsd-elf*)
10548 archive_cmds_need_lc_CXX=no
10549 ;;
10550 freebsd* | kfreebsd*-gnu | dragonfly*)
10551 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10552 # conventions
10553 ld_shlibs_CXX=yes
10554 ;;
10555 gnu*)
10556 ;;
10557 hpux9*)
10558 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10559 hardcode_libdir_separator_CXX=:
10560 export_dynamic_flag_spec_CXX='${wl}-E'
10561 hardcode_direct_CXX=yes
10562 hardcode_minus_L_CXX=yes # Not in the search PATH,
10563 # but as the default
10564 # location of the library.
10565
10566 case $cc_basename in
10567 CC*)
10568 # FIXME: insert proper C++ library support
10569 ld_shlibs_CXX=no
10570 ;;
10571 aCC*)
10572 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'
10573 # Commands to make compiler produce verbose output that lists
10574 # what "hidden" libraries, object files and flags are used when
10575 # linking a shared library.
10576 #
10577 # There doesn't appear to be a way to prevent this compiler from
10578 # explicitly linking system object files so we need to strip them
10579 # from the output so that they don't get included in the library
10580 # dependencies.
10581 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'
10582 ;;
10583 *)
10584 if test "$GXX" = yes; then
10585 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'
10586 else
10587 # FIXME: insert proper C++ library support
10588 ld_shlibs_CXX=no
10589 fi
10590 ;;
10591 esac
10592 ;;
10593 hpux10*|hpux11*)
10594 if test $with_gnu_ld = no; then
10595 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10596 hardcode_libdir_separator_CXX=:
10597
10598 case $host_cpu in
10599 hppa*64*|ia64*)
10600 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10601 ;;
10602 *)
10603 export_dynamic_flag_spec_CXX='${wl}-E'
10604 ;;
10605 esac
10606 fi
10607 case $host_cpu in
10608 hppa*64*|ia64*)
10609 hardcode_direct_CXX=no
10610 hardcode_shlibpath_var_CXX=no
10611 ;;
10612 *)
10613 hardcode_direct_CXX=yes
10614 hardcode_minus_L_CXX=yes # Not in the search PATH,
10615 # but as the default
10616 # location of the library.
10617 ;;
10618 esac
10619
10620 case $cc_basename in
10621 CC*)
10622 # FIXME: insert proper C++ library support
10623 ld_shlibs_CXX=no
10624 ;;
10625 aCC*)
10626 case $host_cpu in
10627 hppa*64*)
10628 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10629 ;;
10630 ia64*)
10631 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10632 ;;
10633 *)
10634 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10635 ;;
10636 esac
10637 # Commands to make compiler produce verbose output that lists
10638 # what "hidden" libraries, object files and flags are used when
10639 # linking a shared library.
10640 #
10641 # There doesn't appear to be a way to prevent this compiler from
10642 # explicitly linking system object files so we need to strip them
10643 # from the output so that they don't get included in the library
10644 # dependencies.
10645 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'
10646 ;;
10647 *)
10648 if test "$GXX" = yes; then
10649 if test $with_gnu_ld = no; then
10650 case $host_cpu in
10651 hppa*64*)
10652 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10653 ;;
10654 ia64*)
10655 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10656 ;;
10657 *)
10658 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'
10659 ;;
10660 esac
10661 fi
10662 else
10663 # FIXME: insert proper C++ library support
10664 ld_shlibs_CXX=no
10665 fi
10666 ;;
10667 esac
10668 ;;
10669 interix3*)
10670 hardcode_direct_CXX=no
10671 hardcode_shlibpath_var_CXX=no
10672 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10673 export_dynamic_flag_spec_CXX='${wl}-E'
10674 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10675 # Instead, shared libraries are loaded at an image base (0x10000000 by
10676 # default) and relocated if they conflict, which is a slow very memory
10677 # consuming and fragmenting process. To avoid this, we pick a random,
10678 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10679 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10680 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'
10681 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'
10682 ;;
10683 irix5* | irix6*)
10684 case $cc_basename in
10685 CC*)
10686 # SGI C++
10687 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'
10688
10689 # Archives containing C++ object files must be created using
10690 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10691 # necessary to make sure instantiated templates are included
10692 # in the archive.
10693 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10694 ;;
10695 *)
10696 if test "$GXX" = yes; then
10697 if test "$with_gnu_ld" = no; then
10698 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'
10699 else
10700 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'
10701 fi
10702 fi
10703 link_all_deplibs_CXX=yes
10704 ;;
10705 esac
10706 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10707 hardcode_libdir_separator_CXX=:
10708 ;;
10709 linux*)
10710 case $cc_basename in
10711 KCC*)
10712 # Kuck and Associates, Inc. (KAI) C++ Compiler
10713
10714 # KCC will only create a shared library if the output file
10715 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10716 # to its proper name (with version) after linking.
10717 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'
10718 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'
10719 # Commands to make compiler produce verbose output that lists
10720 # what "hidden" libraries, object files and flags are used when
10721 # linking a shared library.
10722 #
10723 # There doesn't appear to be a way to prevent this compiler from
10724 # explicitly linking system object files so we need to strip them
10725 # from the output so that they don't get included in the library
10726 # dependencies.
10727 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'
10728
10729 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10730 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10731
10732 # Archives containing C++ object files must be created using
10733 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10734 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10735 ;;
10736 icpc*)
10737 # Intel C++
10738 with_gnu_ld=yes
10739 # version 8.0 and above of icpc choke on multiply defined symbols
10740 # if we add $predep_objects and $postdep_objects, however 7.1 and
10741 # earlier do not add the objects themselves.
10742 case `$CC -V 2>&1` in
10743 *"Version 7."*)
10744 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10745 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'
10746 ;;
10747 *) # Version 8.0 or newer
10748 tmp_idyn=
10749 case $host_cpu in
10750 ia64*) tmp_idyn=' -i_dynamic';;
10751 esac
10752 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10753 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'
10754 ;;
10755 esac
10756 archive_cmds_need_lc_CXX=no
10757 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10758 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10759 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10760 ;;
10761 pgCC*)
10762 # Portland Group C++ compiler
10763 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10764 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'
10765
10766 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10767 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10768 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'
10769 ;;
10770 cxx*)
10771 # Compaq C++
10772 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10773 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'
10774
10775 runpath_var=LD_RUN_PATH
10776 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10777 hardcode_libdir_separator_CXX=:
10778
10779 # Commands to make compiler produce verbose output that lists
10780 # what "hidden" libraries, object files and flags are used when
10781 # linking a shared library.
10782 #
10783 # There doesn't appear to be a way to prevent this compiler from
10784 # explicitly linking system object files so we need to strip them
10785 # from the output so that they don't get included in the library
10786 # dependencies.
10787 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'
10788 ;;
10789 esac
10790 ;;
10791 lynxos*)
10792 # FIXME: insert proper C++ library support
10793 ld_shlibs_CXX=no
10794 ;;
10795 m88k*)
10796 # FIXME: insert proper C++ library support
10797 ld_shlibs_CXX=no
10798 ;;
10799 mvs*)
10800 case $cc_basename in
10801 cxx*)
10802 # FIXME: insert proper C++ library support
10803 ld_shlibs_CXX=no
10804 ;;
10805 *)
10806 # FIXME: insert proper C++ library support
10807 ld_shlibs_CXX=no
10808 ;;
10809 esac
10810 ;;
10811 netbsd*)
10812 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10813 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10814 wlarc=
10815 hardcode_libdir_flag_spec_CXX='-R$libdir'
10816 hardcode_direct_CXX=yes
10817 hardcode_shlibpath_var_CXX=no
10818 fi
10819 # Workaround some broken pre-1.5 toolchains
10820 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10821 ;;
10822 openbsd2*)
10823 # C++ shared libraries are fairly broken
10824 ld_shlibs_CXX=no
10825 ;;
10826 openbsd*)
10827 hardcode_direct_CXX=yes
10828 hardcode_shlibpath_var_CXX=no
10829 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10830 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10831 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10832 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10833 export_dynamic_flag_spec_CXX='${wl}-E'
10834 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10835 fi
10836 output_verbose_link_cmd='echo'
10837 ;;
10838 osf3*)
10839 case $cc_basename in
10840 KCC*)
10841 # Kuck and Associates, Inc. (KAI) C++ Compiler
10842
10843 # KCC will only create a shared library if the output file
10844 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10845 # to its proper name (with version) after linking.
10846 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'
10847
10848 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10849 hardcode_libdir_separator_CXX=:
10850
10851 # Archives containing C++ object files must be created using
10852 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10853 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10854
10855 ;;
10856 RCC*)
10857 # Rational C++ 2.4.1
10858 # FIXME: insert proper C++ library support
10859 ld_shlibs_CXX=no
10860 ;;
10861 cxx*)
10862 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10863 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'
10864
10865 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10866 hardcode_libdir_separator_CXX=:
10867
10868 # Commands to make compiler produce verbose output that lists
10869 # what "hidden" libraries, object files and flags are used when
10870 # linking a shared library.
10871 #
10872 # There doesn't appear to be a way to prevent this compiler from
10873 # explicitly linking system object files so we need to strip them
10874 # from the output so that they don't get included in the library
10875 # dependencies.
10876 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'
10877 ;;
10878 *)
10879 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10880 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10881 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'
10882
10883 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10884 hardcode_libdir_separator_CXX=:
10885
10886 # Commands to make compiler produce verbose output that lists
10887 # what "hidden" libraries, object files and flags are used when
10888 # linking a shared library.
10889 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10890
10891 else
10892 # FIXME: insert proper C++ library support
10893 ld_shlibs_CXX=no
10894 fi
10895 ;;
10896 esac
10897 ;;
10898 osf4* | osf5*)
10899 case $cc_basename in
10900 KCC*)
10901 # Kuck and Associates, Inc. (KAI) C++ Compiler
10902
10903 # KCC will only create a shared library if the output file
10904 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10905 # to its proper name (with version) after linking.
10906 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'
10907
10908 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10909 hardcode_libdir_separator_CXX=:
10910
10911 # Archives containing C++ object files must be created using
10912 # the KAI C++ compiler.
10913 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10914 ;;
10915 RCC*)
10916 # Rational C++ 2.4.1
10917 # FIXME: insert proper C++ library support
10918 ld_shlibs_CXX=no
10919 ;;
10920 cxx*)
10921 allow_undefined_flag_CXX=' -expect_unresolved \*'
10922 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'
10923 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10924 echo "-hidden">> $lib.exp~
10925 $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~
10926 $rm $lib.exp'
10927
10928 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10929 hardcode_libdir_separator_CXX=:
10930
10931 # Commands to make compiler produce verbose output that lists
10932 # what "hidden" libraries, object files and flags are used when
10933 # linking a shared library.
10934 #
10935 # There doesn't appear to be a way to prevent this compiler from
10936 # explicitly linking system object files so we need to strip them
10937 # from the output so that they don't get included in the library
10938 # dependencies.
10939 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'
10940 ;;
10941 *)
10942 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10943 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10944 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'
10945
10946 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10947 hardcode_libdir_separator_CXX=:
10948
10949 # Commands to make compiler produce verbose output that lists
10950 # what "hidden" libraries, object files and flags are used when
10951 # linking a shared library.
10952 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10953
10954 else
10955 # FIXME: insert proper C++ library support
10956 ld_shlibs_CXX=no
10957 fi
10958 ;;
10959 esac
10960 ;;
10961 psos*)
10962 # FIXME: insert proper C++ library support
10963 ld_shlibs_CXX=no
10964 ;;
10965 sunos4*)
10966 case $cc_basename in
10967 CC*)
10968 # Sun C++ 4.x
10969 # FIXME: insert proper C++ library support
10970 ld_shlibs_CXX=no
10971 ;;
10972 lcc*)
10973 # Lucid
10974 # FIXME: insert proper C++ library support
10975 ld_shlibs_CXX=no
10976 ;;
10977 *)
10978 # FIXME: insert proper C++ library support
10979 ld_shlibs_CXX=no
10980 ;;
10981 esac
10982 ;;
10983 solaris*)
10984 case $cc_basename in
10985 CC*)
10986 # Sun C++ 4.2, 5.x and Centerline C++
10987 archive_cmds_need_lc_CXX=yes
10988 no_undefined_flag_CXX=' -zdefs'
10989 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10990 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10991 $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'
10992
10993 hardcode_libdir_flag_spec_CXX='-R$libdir'
10994 hardcode_shlibpath_var_CXX=no
10995 case $host_os in
10996 solaris2.[0-5] | solaris2.[0-5].*) ;;
10997 *)
10998 # The C++ compiler is used as linker so we must use $wl
10999 # flag to pass the commands to the underlying system
11000 # linker. We must also pass each convience library through
11001 # to the system linker between allextract/defaultextract.
11002 # The C++ compiler will combine linker options so we
11003 # cannot just pass the convience library names through
11004 # without $wl.
11005 # Supported since Solaris 2.6 (maybe 2.5.1?)
11006 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'
11007 ;;
11008 esac
11009 link_all_deplibs_CXX=yes
11010
11011 output_verbose_link_cmd='echo'
11012
11013 # Archives containing C++ object files must be created using
11014 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11015 # necessary to make sure instantiated templates are included
11016 # in the archive.
11017 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11018 ;;
11019 gcx*)
11020 # Green Hills C++ Compiler
11021 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11022
11023 # The C++ compiler must be used to create the archive.
11024 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11025 ;;
11026 *)
11027 # GNU C++ compiler with Solaris linker
11028 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11029 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11030 if $CC --version | grep -v '^2\.7' > /dev/null; then
11031 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11032 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11033 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11034
11035 # Commands to make compiler produce verbose output that lists
11036 # what "hidden" libraries, object files and flags are used when
11037 # linking a shared library.
11038 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11039 else
11040 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11041 # platform.
11042 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11043 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11044 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11045
11046 # Commands to make compiler produce verbose output that lists
11047 # what "hidden" libraries, object files and flags are used when
11048 # linking a shared library.
11049 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11050 fi
11051
11052 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11053 fi
11054 ;;
11055 esac
11056 ;;
11057 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11058 no_undefined_flag_CXX='${wl}-z,text'
11059 archive_cmds_need_lc_CXX=no
11060 hardcode_shlibpath_var_CXX=no
11061 runpath_var='LD_RUN_PATH'
11062
11063 case $cc_basename in
11064 CC*)
11065 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11066 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11067 ;;
11068 *)
11069 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11070 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11071 ;;
11072 esac
11073 ;;
11074 sysv5* | sco3.2v5* | sco5v6*)
11075 # Note: We can NOT use -z defs as we might desire, because we do not
11076 # link with -lc, and that would cause any symbols used from libc to
11077 # always be unresolved, which means just about no library would
11078 # ever link correctly. If we're not using GNU ld we use -z text
11079 # though, which does catch some bad symbols but isn't as heavy-handed
11080 # as -z defs.
11081 # For security reasons, it is highly recommended that you always
11082 # use absolute paths for naming shared libraries, and exclude the
11083 # DT_RUNPATH tag from executables and libraries. But doing so
11084 # requires that you compile everything twice, which is a pain.
11085 # So that behaviour is only enabled if SCOABSPATH is set to a
11086 # non-empty value in the environment. Most likely only useful for
11087 # creating official distributions of packages.
11088 # This is a hack until libtool officially supports absolute path
11089 # names for shared libraries.
11090 no_undefined_flag_CXX='${wl}-z,text'
11091 allow_undefined_flag_CXX='${wl}-z,nodefs'
11092 archive_cmds_need_lc_CXX=no
11093 hardcode_shlibpath_var_CXX=no
11094 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11095 hardcode_libdir_separator_CXX=':'
11096 link_all_deplibs_CXX=yes
11097 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11098 runpath_var='LD_RUN_PATH'
11099
11100 case $cc_basename in
11101 CC*)
11102 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11103 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11104 ;;
11105 *)
11106 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11107 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11108 ;;
11109 esac
11110 ;;
11111 tandem*)
11112 case $cc_basename in
11113 NCC*)
11114 # NonStop-UX NCC 3.20
11115 # FIXME: insert proper C++ library support
11116 ld_shlibs_CXX=no
11117 ;;
11118 *)
11119 # FIXME: insert proper C++ library support
11120 ld_shlibs_CXX=no
11121 ;;
11122 esac
11123 ;;
11124 vxworks*)
11125 # FIXME: insert proper C++ library support
11126 ld_shlibs_CXX=no
11127 ;;
11128 *)
11129 # FIXME: insert proper C++ library support
11130 ld_shlibs_CXX=no
11131 ;;
11132 esac
11133 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11134 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11135 test "$ld_shlibs_CXX" = no && can_build_shared=no
11136
11137 GCC_CXX="$GXX"
11138 LD_CXX="$LD"
11139
11140
11141 cat > conftest.$ac_ext <<EOF
11142 class Foo
11143 {
11144 public:
11145 Foo (void) { a = 0; }
11146 private:
11147 int a;
11148 };
11149 EOF
11150
11151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11152 (eval $ac_compile) 2>&5
11153 ac_status=$?
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); }; then
11156 # Parse the compiler output and extract the necessary
11157 # objects, libraries and library flags.
11158
11159 # Sentinel used to keep track of whether or not we are before
11160 # the conftest object file.
11161 pre_test_object_deps_done=no
11162
11163 # The `*' in the case matches for architectures that use `case' in
11164 # $output_verbose_cmd can trigger glob expansion during the loop
11165 # eval without this substitution.
11166 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11167
11168 for p in `eval $output_verbose_link_cmd`; do
11169 case $p in
11170
11171 -L* | -R* | -l*)
11172 # Some compilers place space between "-{L,R}" and the path.
11173 # Remove the space.
11174 if test $p = "-L" \
11175 || test $p = "-R"; then
11176 prev=$p
11177 continue
11178 else
11179 prev=
11180 fi
11181
11182 if test "$pre_test_object_deps_done" = no; then
11183 case $p in
11184 -L* | -R*)
11185 # Internal compiler library paths should come after those
11186 # provided the user. The postdeps already come after the
11187 # user supplied libs so there is no need to process them.
11188 if test -z "$compiler_lib_search_path_CXX"; then
11189 compiler_lib_search_path_CXX="${prev}${p}"
11190 else
11191 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11192 fi
11193 ;;
11194 # The "-l" case would never come before the object being
11195 # linked, so don't bother handling this case.
11196 esac
11197 else
11198 if test -z "$postdeps_CXX"; then
11199 postdeps_CXX="${prev}${p}"
11200 else
11201 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11202 fi
11203 fi
11204 ;;
11205
11206 *.$objext)
11207 # This assumes that the test object file only shows up
11208 # once in the compiler output.
11209 if test "$p" = "conftest.$objext"; then
11210 pre_test_object_deps_done=yes
11211 continue
11212 fi
11213
11214 if test "$pre_test_object_deps_done" = no; then
11215 if test -z "$predep_objects_CXX"; then
11216 predep_objects_CXX="$p"
11217 else
11218 predep_objects_CXX="$predep_objects_CXX $p"
11219 fi
11220 else
11221 if test -z "$postdep_objects_CXX"; then
11222 postdep_objects_CXX="$p"
11223 else
11224 postdep_objects_CXX="$postdep_objects_CXX $p"
11225 fi
11226 fi
11227 ;;
11228
11229 *) ;; # Ignore the rest.
11230
11231 esac
11232 done
11233
11234 # Clean up.
11235 rm -f a.out a.exe
11236 else
11237 echo "libtool.m4: error: problem compiling CXX test program"
11238 fi
11239
11240 $rm -f confest.$objext
11241
11242 # PORTME: override above test on systems where it is broken
11243 case $host_os in
11244 interix3*)
11245 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11246 # hack all around it, let's just trust "g++" to DTRT.
11247 predep_objects_CXX=
11248 postdep_objects_CXX=
11249 postdeps_CXX=
11250 ;;
11251
11252 solaris*)
11253 case $cc_basename in
11254 CC*)
11255 # Adding this requires a known-good setup of shared libraries for
11256 # Sun compiler versions before 5.6, else PIC objects from an old
11257 # archive will be linked into the output, leading to subtle bugs.
11258 postdeps_CXX='-lCstd -lCrun'
11259 ;;
11260 esac
11261 ;;
11262 esac
11263
11264
11265 case " $postdeps_CXX " in
11266 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11267 esac
11268
11269 lt_prog_compiler_wl_CXX=
11270 lt_prog_compiler_pic_CXX=
11271 lt_prog_compiler_static_CXX=
11272
11273 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11274 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11275
11276 # C++ specific cases for pic, static, wl, etc.
11277 if test "$GXX" = yes; then
11278 lt_prog_compiler_wl_CXX='-Wl,'
11279 lt_prog_compiler_static_CXX='-static'
11280
11281 case $host_os in
11282 aix*)
11283 # All AIX code is PIC.
11284 if test "$host_cpu" = ia64; then
11285 # AIX 5 now supports IA64 processor
11286 lt_prog_compiler_static_CXX='-Bstatic'
11287 fi
11288 ;;
11289 amigaos*)
11290 # FIXME: we need at least 68020 code to build shared libraries, but
11291 # adding the `-m68020' flag to GCC prevents building anything better,
11292 # like `-m68040'.
11293 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11294 ;;
11295 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11296 # PIC is the default for these OSes.
11297 ;;
11298 mingw* | os2* | pw32*)
11299 # This hack is so that the source file can tell whether it is being
11300 # built for inclusion in a dll (and should export symbols for example).
11301 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11302 ;;
11303 darwin* | rhapsody*)
11304 # PIC is the default on this platform
11305 # Common symbols not allowed in MH_DYLIB files
11306 lt_prog_compiler_pic_CXX='-fno-common'
11307 ;;
11308 *djgpp*)
11309 # DJGPP does not support shared libraries at all
11310 lt_prog_compiler_pic_CXX=
11311 ;;
11312 interix3*)
11313 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11314 # Instead, we relocate shared libraries at runtime.
11315 ;;
11316 sysv4*MP*)
11317 if test -d /usr/nec; then
11318 lt_prog_compiler_pic_CXX=-Kconform_pic
11319 fi
11320 ;;
11321 hpux*)
11322 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11323 # not for PA HP-UX.
11324 case $host_cpu in
11325 hppa*64*|ia64*)
11326 ;;
11327 *)
11328 lt_prog_compiler_pic_CXX='-fPIC'
11329 ;;
11330 esac
11331 ;;
11332 *)
11333 lt_prog_compiler_pic_CXX='-fPIC'
11334 ;;
11335 esac
11336 else
11337 case $host_os in
11338 aix4* | aix5*)
11339 # All AIX code is PIC.
11340 if test "$host_cpu" = ia64; then
11341 # AIX 5 now supports IA64 processor
11342 lt_prog_compiler_static_CXX='-Bstatic'
11343 else
11344 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11345 fi
11346 ;;
11347 chorus*)
11348 case $cc_basename in
11349 cxch68*)
11350 # Green Hills C++ Compiler
11351 # _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"
11352 ;;
11353 esac
11354 ;;
11355 darwin*)
11356 # PIC is the default on this platform
11357 # Common symbols not allowed in MH_DYLIB files
11358 case $cc_basename in
11359 xlc*)
11360 lt_prog_compiler_pic_CXX='-qnocommon'
11361 lt_prog_compiler_wl_CXX='-Wl,'
11362 ;;
11363 esac
11364 ;;
11365 dgux*)
11366 case $cc_basename in
11367 ec++*)
11368 lt_prog_compiler_pic_CXX='-KPIC'
11369 ;;
11370 ghcx*)
11371 # Green Hills C++ Compiler
11372 lt_prog_compiler_pic_CXX='-pic'
11373 ;;
11374 *)
11375 ;;
11376 esac
11377 ;;
11378 freebsd* | kfreebsd*-gnu | dragonfly*)
11379 # FreeBSD uses GNU C++
11380 ;;
11381 hpux9* | hpux10* | hpux11*)
11382 case $cc_basename in
11383 CC*)
11384 lt_prog_compiler_wl_CXX='-Wl,'
11385 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11386 if test "$host_cpu" != ia64; then
11387 lt_prog_compiler_pic_CXX='+Z'
11388 fi
11389 ;;
11390 aCC*)
11391 lt_prog_compiler_wl_CXX='-Wl,'
11392 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11393 case $host_cpu in
11394 hppa*64*|ia64*)
11395 # +Z the default
11396 ;;
11397 *)
11398 lt_prog_compiler_pic_CXX='+Z'
11399 ;;
11400 esac
11401 ;;
11402 *)
11403 ;;
11404 esac
11405 ;;
11406 interix*)
11407 # This is c89, which is MS Visual C++ (no shared libs)
11408 # Anyone wants to do a port?
11409 ;;
11410 irix5* | irix6* | nonstopux*)
11411 case $cc_basename in
11412 CC*)
11413 lt_prog_compiler_wl_CXX='-Wl,'
11414 lt_prog_compiler_static_CXX='-non_shared'
11415 # CC pic flag -KPIC is the default.
11416 ;;
11417 *)
11418 ;;
11419 esac
11420 ;;
11421 linux*)
11422 case $cc_basename in
11423 KCC*)
11424 # KAI C++ Compiler
11425 lt_prog_compiler_wl_CXX='--backend -Wl,'
11426 lt_prog_compiler_pic_CXX='-fPIC'
11427 ;;
11428 icpc* | ecpc*)
11429 # Intel C++
11430 lt_prog_compiler_wl_CXX='-Wl,'
11431 lt_prog_compiler_pic_CXX='-KPIC'
11432 lt_prog_compiler_static_CXX='-static'
11433 ;;
11434 pgCC*)
11435 # Portland Group C++ compiler.
11436 lt_prog_compiler_wl_CXX='-Wl,'
11437 lt_prog_compiler_pic_CXX='-fpic'
11438 lt_prog_compiler_static_CXX='-Bstatic'
11439 ;;
11440 cxx*)
11441 # Compaq C++
11442 # Make sure the PIC flag is empty. It appears that all Alpha
11443 # Linux and Compaq Tru64 Unix objects are PIC.
11444 lt_prog_compiler_pic_CXX=
11445 lt_prog_compiler_static_CXX='-non_shared'
11446 ;;
11447 *)
11448 ;;
11449 esac
11450 ;;
11451 lynxos*)
11452 ;;
11453 m88k*)
11454 ;;
11455 mvs*)
11456 case $cc_basename in
11457 cxx*)
11458 lt_prog_compiler_pic_CXX='-W c,exportall'
11459 ;;
11460 *)
11461 ;;
11462 esac
11463 ;;
11464 netbsd*)
11465 ;;
11466 osf3* | osf4* | osf5*)
11467 case $cc_basename in
11468 KCC*)
11469 lt_prog_compiler_wl_CXX='--backend -Wl,'
11470 ;;
11471 RCC*)
11472 # Rational C++ 2.4.1
11473 lt_prog_compiler_pic_CXX='-pic'
11474 ;;
11475 cxx*)
11476 # Digital/Compaq C++
11477 lt_prog_compiler_wl_CXX='-Wl,'
11478 # Make sure the PIC flag is empty. It appears that all Alpha
11479 # Linux and Compaq Tru64 Unix objects are PIC.
11480 lt_prog_compiler_pic_CXX=
11481 lt_prog_compiler_static_CXX='-non_shared'
11482 ;;
11483 *)
11484 ;;
11485 esac
11486 ;;
11487 psos*)
11488 ;;
11489 solaris*)
11490 case $cc_basename in
11491 CC*)
11492 # Sun C++ 4.2, 5.x and Centerline C++
11493 lt_prog_compiler_pic_CXX='-KPIC'
11494 lt_prog_compiler_static_CXX='-Bstatic'
11495 lt_prog_compiler_wl_CXX='-Qoption ld '
11496 ;;
11497 gcx*)
11498 # Green Hills C++ Compiler
11499 lt_prog_compiler_pic_CXX='-PIC'
11500 ;;
11501 *)
11502 ;;
11503 esac
11504 ;;
11505 sunos4*)
11506 case $cc_basename in
11507 CC*)
11508 # Sun C++ 4.x
11509 lt_prog_compiler_pic_CXX='-pic'
11510 lt_prog_compiler_static_CXX='-Bstatic'
11511 ;;
11512 lcc*)
11513 # Lucid
11514 lt_prog_compiler_pic_CXX='-pic'
11515 ;;
11516 *)
11517 ;;
11518 esac
11519 ;;
11520 tandem*)
11521 case $cc_basename in
11522 NCC*)
11523 # NonStop-UX NCC 3.20
11524 lt_prog_compiler_pic_CXX='-KPIC'
11525 ;;
11526 *)
11527 ;;
11528 esac
11529 ;;
11530 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11531 case $cc_basename in
11532 CC*)
11533 lt_prog_compiler_wl_CXX='-Wl,'
11534 lt_prog_compiler_pic_CXX='-KPIC'
11535 lt_prog_compiler_static_CXX='-Bstatic'
11536 ;;
11537 esac
11538 ;;
11539 vxworks*)
11540 ;;
11541 *)
11542 lt_prog_compiler_can_build_shared_CXX=no
11543 ;;
11544 esac
11545 fi
11546
11547 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11548 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11549
11550 #
11551 # Check to make sure the PIC flag actually works.
11552 #
11553 if test -n "$lt_prog_compiler_pic_CXX"; then
11554
11555 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11556 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11557 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11558 echo $ECHO_N "(cached) $ECHO_C" >&6
11559 else
11560 lt_prog_compiler_pic_works_CXX=no
11561 ac_outfile=conftest.$ac_objext
11562 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11563 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11564 # Insert the option either (1) after the last *FLAGS variable, or
11565 # (2) before a word containing "conftest.", or (3) at the end.
11566 # Note that $ac_compile itself does not contain backslashes and begins
11567 # with a dollar sign (not a hyphen), so the echo should work correctly.
11568 # The option is referenced via a variable to avoid confusing sed.
11569 lt_compile=`echo "$ac_compile" | $SED \
11570 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11571 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11572 -e 's:$: $lt_compiler_flag:'`
11573 (eval echo "\"\$as_me:11573: $lt_compile\"" >&5)
11574 (eval "$lt_compile" 2>conftest.err)
11575 ac_status=$?
11576 cat conftest.err >&5
11577 echo "$as_me:11577: \$? = $ac_status" >&5
11578 if (exit $ac_status) && test -s "$ac_outfile"; then
11579 # The compiler can only warn and ignore the option if not recognized
11580 # So say no if there are warnings other than the usual output.
11581 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11582 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11583 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11584 lt_prog_compiler_pic_works_CXX=yes
11585 fi
11586 fi
11587 $rm conftest*
11588
11589 fi
11590 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11591 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11592
11593 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11594 case $lt_prog_compiler_pic_CXX in
11595 "" | " "*) ;;
11596 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11597 esac
11598 else
11599 lt_prog_compiler_pic_CXX=
11600 lt_prog_compiler_can_build_shared_CXX=no
11601 fi
11602
11603 fi
11604 case $host_os in
11605 # For platforms which do not support PIC, -DPIC is meaningless:
11606 *djgpp*)
11607 lt_prog_compiler_pic_CXX=
11608 ;;
11609 *)
11610 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11611 ;;
11612 esac
11613
11614 #
11615 # Check to make sure the static flag actually works.
11616 #
11617 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11618 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11619 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11620 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11621 echo $ECHO_N "(cached) $ECHO_C" >&6
11622 else
11623 lt_prog_compiler_static_works_CXX=no
11624 save_LDFLAGS="$LDFLAGS"
11625 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11626 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11627 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11628 # The linker can only warn and ignore the option if not recognized
11629 # So say no if there are warnings
11630 if test -s conftest.err; then
11631 # Append any errors to the config.log.
11632 cat conftest.err 1>&5
11633 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11634 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11635 if diff conftest.exp conftest.er2 >/dev/null; then
11636 lt_prog_compiler_static_works_CXX=yes
11637 fi
11638 else
11639 lt_prog_compiler_static_works_CXX=yes
11640 fi
11641 fi
11642 $rm conftest*
11643 LDFLAGS="$save_LDFLAGS"
11644
11645 fi
11646 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11647 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11648
11649 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11650 :
11651 else
11652 lt_prog_compiler_static_CXX=
11653 fi
11654
11655
11656 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11657 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11658 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11659 echo $ECHO_N "(cached) $ECHO_C" >&6
11660 else
11661 lt_cv_prog_compiler_c_o_CXX=no
11662 $rm -r conftest 2>/dev/null
11663 mkdir conftest
11664 cd conftest
11665 mkdir out
11666 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11667
11668 lt_compiler_flag="-o out/conftest2.$ac_objext"
11669 # Insert the option either (1) after the last *FLAGS variable, or
11670 # (2) before a word containing "conftest.", or (3) at the end.
11671 # Note that $ac_compile itself does not contain backslashes and begins
11672 # with a dollar sign (not a hyphen), so the echo should work correctly.
11673 lt_compile=`echo "$ac_compile" | $SED \
11674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11676 -e 's:$: $lt_compiler_flag:'`
11677 (eval echo "\"\$as_me:11677: $lt_compile\"" >&5)
11678 (eval "$lt_compile" 2>out/conftest.err)
11679 ac_status=$?
11680 cat out/conftest.err >&5
11681 echo "$as_me:11681: \$? = $ac_status" >&5
11682 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11683 then
11684 # The compiler can only warn and ignore the option if not recognized
11685 # So say no if there are warnings
11686 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11687 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11688 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11689 lt_cv_prog_compiler_c_o_CXX=yes
11690 fi
11691 fi
11692 chmod u+w . 2>&5
11693 $rm conftest*
11694 # SGI C++ compiler will create directory out/ii_files/ for
11695 # template instantiation
11696 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11697 $rm out/* && rmdir out
11698 cd ..
11699 rmdir conftest
11700 $rm conftest*
11701
11702 fi
11703 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11704 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11705
11706
11707 hard_links="nottested"
11708 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11709 # do not overwrite the value of need_locks provided by the user
11710 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11711 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11712 hard_links=yes
11713 $rm conftest*
11714 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11715 touch conftest.a
11716 ln conftest.a conftest.b 2>&5 || hard_links=no
11717 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11718 echo "$as_me:$LINENO: result: $hard_links" >&5
11719 echo "${ECHO_T}$hard_links" >&6
11720 if test "$hard_links" = no; then
11721 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11722 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11723 need_locks=warn
11724 fi
11725 else
11726 need_locks=no
11727 fi
11728
11729 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11730 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11731
11732 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11733 case $host_os in
11734 aix4* | aix5*)
11735 # If we're using GNU nm, then we don't want the "-C" option.
11736 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11737 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11738 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'
11739 else
11740 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'
11741 fi
11742 ;;
11743 pw32*)
11744 export_symbols_cmds_CXX="$ltdll_cmds"
11745 ;;
11746 cygwin* | mingw*)
11747 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'
11748 ;;
11749 *)
11750 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11751 ;;
11752 esac
11753
11754 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11755 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11756 test "$ld_shlibs_CXX" = no && can_build_shared=no
11757
11758 #
11759 # Do we need to explicitly link libc?
11760 #
11761 case "x$archive_cmds_need_lc_CXX" in
11762 x|xyes)
11763 # Assume -lc should be added
11764 archive_cmds_need_lc_CXX=yes
11765
11766 if test "$enable_shared" = yes && test "$GCC" = yes; then
11767 case $archive_cmds_CXX in
11768 *'~'*)
11769 # FIXME: we may have to deal with multi-command sequences.
11770 ;;
11771 '$CC '*)
11772 # Test whether the compiler implicitly links with -lc since on some
11773 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11774 # to ld, don't add -lc before -lgcc.
11775 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11776 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11777 $rm conftest*
11778 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11779
11780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11781 (eval $ac_compile) 2>&5
11782 ac_status=$?
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); } 2>conftest.err; then
11785 soname=conftest
11786 lib=conftest
11787 libobjs=conftest.$ac_objext
11788 deplibs=
11789 wl=$lt_prog_compiler_wl_CXX
11790 pic_flag=$lt_prog_compiler_pic_CXX
11791 compiler_flags=-v
11792 linker_flags=-v
11793 verstring=
11794 output_objdir=.
11795 libname=conftest
11796 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11797 allow_undefined_flag_CXX=
11798 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11799 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11800 ac_status=$?
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }
11803 then
11804 archive_cmds_need_lc_CXX=no
11805 else
11806 archive_cmds_need_lc_CXX=yes
11807 fi
11808 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11809 else
11810 cat conftest.err 1>&5
11811 fi
11812 $rm conftest*
11813 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11814 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11815 ;;
11816 esac
11817 fi
11818 ;;
11819 esac
11820
11821 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11822 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11823 library_names_spec=
11824 libname_spec='lib$name'
11825 soname_spec=
11826 shrext_cmds=".so"
11827 postinstall_cmds=
11828 postuninstall_cmds=
11829 finish_cmds=
11830 finish_eval=
11831 shlibpath_var=
11832 shlibpath_overrides_runpath=unknown
11833 version_type=none
11834 dynamic_linker="$host_os ld.so"
11835 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11836 if test "$GCC" = yes; then
11837 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11838 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11839 # if the path contains ";" then we assume it to be the separator
11840 # otherwise default to the standard path separator (i.e. ":") - it is
11841 # assumed that no part of a normal pathname contains ";" but that should
11842 # okay in the real world where ";" in dirpaths is itself problematic.
11843 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11844 else
11845 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11846 fi
11847 else
11848 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11849 fi
11850 need_lib_prefix=unknown
11851 hardcode_into_libs=no
11852
11853 # when you set need_version to no, make sure it does not cause -set_version
11854 # flags to be left without arguments
11855 need_version=unknown
11856
11857 case $host_os in
11858 aix3*)
11859 version_type=linux
11860 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11861 shlibpath_var=LIBPATH
11862
11863 # AIX 3 has no versioning support, so we append a major version to the name.
11864 soname_spec='${libname}${release}${shared_ext}$major'
11865 ;;
11866
11867 aix4* | aix5*)
11868 version_type=linux
11869 need_lib_prefix=no
11870 need_version=no
11871 hardcode_into_libs=yes
11872 if test "$host_cpu" = ia64; then
11873 # AIX 5 supports IA64
11874 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11875 shlibpath_var=LD_LIBRARY_PATH
11876 else
11877 # With GCC up to 2.95.x, collect2 would create an import file
11878 # for dependence libraries. The import file would start with
11879 # the line `#! .'. This would cause the generated library to
11880 # depend on `.', always an invalid library. This was fixed in
11881 # development snapshots of GCC prior to 3.0.
11882 case $host_os in
11883 aix4 | aix4.[01] | aix4.[01].*)
11884 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11885 echo ' yes '
11886 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11887 :
11888 else
11889 can_build_shared=no
11890 fi
11891 ;;
11892 esac
11893 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11894 # soname into executable. Probably we can add versioning support to
11895 # collect2, so additional links can be useful in future.
11896 if test "$aix_use_runtimelinking" = yes; then
11897 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11898 # instead of lib<name>.a to let people know that these are not
11899 # typical AIX shared libraries.
11900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11901 else
11902 # We preserve .a as extension for shared libraries through AIX4.2
11903 # and later when we are not doing run time linking.
11904 library_names_spec='${libname}${release}.a $libname.a'
11905 soname_spec='${libname}${release}${shared_ext}$major'
11906 fi
11907 shlibpath_var=LIBPATH
11908 fi
11909 ;;
11910
11911 amigaos*)
11912 library_names_spec='$libname.ixlibrary $libname.a'
11913 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11914 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'
11915 ;;
11916
11917 beos*)
11918 library_names_spec='${libname}${shared_ext}'
11919 dynamic_linker="$host_os ld.so"
11920 shlibpath_var=LIBRARY_PATH
11921 ;;
11922
11923 bsdi[45]*)
11924 version_type=linux
11925 need_version=no
11926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11927 soname_spec='${libname}${release}${shared_ext}$major'
11928 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11929 shlibpath_var=LD_LIBRARY_PATH
11930 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11931 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11932 # the default ld.so.conf also contains /usr/contrib/lib and
11933 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11934 # libtool to hard-code these into programs
11935 ;;
11936
11937 cygwin* | mingw* | pw32*)
11938 version_type=windows
11939 shrext_cmds=".dll"
11940 need_version=no
11941 need_lib_prefix=no
11942
11943 case $GCC,$host_os in
11944 yes,cygwin* | yes,mingw* | yes,pw32*)
11945 library_names_spec='$libname.dll.a'
11946 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11947 postinstall_cmds='base_file=`basename \${file}`~
11948 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11949 dldir=$destdir/`dirname \$dlpath`~
11950 test -d \$dldir || mkdir -p \$dldir~
11951 $install_prog $dir/$dlname \$dldir/$dlname~
11952 chmod a+x \$dldir/$dlname'
11953 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11954 dlpath=$dir/\$dldll~
11955 $rm \$dlpath'
11956 shlibpath_overrides_runpath=yes
11957
11958 case $host_os in
11959 cygwin*)
11960 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11961 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11962 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11963 ;;
11964 mingw*)
11965 # MinGW DLLs use traditional 'lib' prefix
11966 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11967 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11968 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11969 # It is most probably a Windows format PATH printed by
11970 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11971 # path with ; separators, and with drive letters. We can handle the
11972 # drive letters (cygwin fileutils understands them), so leave them,
11973 # especially as we might pass files found there to a mingw objdump,
11974 # which wouldn't understand a cygwinified path. Ahh.
11975 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11976 else
11977 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11978 fi
11979 ;;
11980 pw32*)
11981 # pw32 DLLs use 'pw' prefix rather than 'lib'
11982 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11983 ;;
11984 esac
11985 ;;
11986
11987 *)
11988 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11989 ;;
11990 esac
11991 dynamic_linker='Win32 ld.exe'
11992 # FIXME: first we should search . and the directory the executable is in
11993 shlibpath_var=PATH
11994 ;;
11995
11996 darwin* | rhapsody*)
11997 dynamic_linker="$host_os dyld"
11998 version_type=darwin
11999 need_lib_prefix=no
12000 need_version=no
12001 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12002 soname_spec='${libname}${release}${major}$shared_ext'
12003 shlibpath_overrides_runpath=yes
12004 shlibpath_var=DYLD_LIBRARY_PATH
12005 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12006 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12007 if test "$GCC" = yes; then
12008 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"`
12009 else
12010 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12011 fi
12012 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12013 ;;
12014
12015 dgux*)
12016 version_type=linux
12017 need_lib_prefix=no
12018 need_version=no
12019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12020 soname_spec='${libname}${release}${shared_ext}$major'
12021 shlibpath_var=LD_LIBRARY_PATH
12022 ;;
12023
12024 freebsd1*)
12025 dynamic_linker=no
12026 ;;
12027
12028 kfreebsd*-gnu)
12029 version_type=linux
12030 need_lib_prefix=no
12031 need_version=no
12032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12033 soname_spec='${libname}${release}${shared_ext}$major'
12034 shlibpath_var=LD_LIBRARY_PATH
12035 shlibpath_overrides_runpath=no
12036 hardcode_into_libs=yes
12037 dynamic_linker='GNU ld.so'
12038 ;;
12039
12040 freebsd* | dragonfly*)
12041 # DragonFly does not have aout. When/if they implement a new
12042 # versioning mechanism, adjust this.
12043 if test -x /usr/bin/objformat; then
12044 objformat=`/usr/bin/objformat`
12045 else
12046 case $host_os in
12047 freebsd[123]*) objformat=aout ;;
12048 *) objformat=elf ;;
12049 esac
12050 fi
12051 version_type=freebsd-$objformat
12052 case $version_type in
12053 freebsd-elf*)
12054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12055 need_version=no
12056 need_lib_prefix=no
12057 ;;
12058 freebsd-*)
12059 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12060 need_version=yes
12061 ;;
12062 esac
12063 shlibpath_var=LD_LIBRARY_PATH
12064 case $host_os in
12065 freebsd2*)
12066 shlibpath_overrides_runpath=yes
12067 ;;
12068 freebsd3.[01]* | freebsdelf3.[01]*)
12069 shlibpath_overrides_runpath=yes
12070 hardcode_into_libs=yes
12071 ;;
12072 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12073 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12074 shlibpath_overrides_runpath=no
12075 hardcode_into_libs=yes
12076 ;;
12077 freebsd*) # from 4.6 on
12078 shlibpath_overrides_runpath=yes
12079 hardcode_into_libs=yes
12080 ;;
12081 esac
12082 ;;
12083
12084 gnu*)
12085 version_type=linux
12086 need_lib_prefix=no
12087 need_version=no
12088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12089 soname_spec='${libname}${release}${shared_ext}$major'
12090 shlibpath_var=LD_LIBRARY_PATH
12091 hardcode_into_libs=yes
12092 ;;
12093
12094 hpux9* | hpux10* | hpux11*)
12095 # Give a soname corresponding to the major version so that dld.sl refuses to
12096 # link against other versions.
12097 version_type=sunos
12098 need_lib_prefix=no
12099 need_version=no
12100 case $host_cpu in
12101 ia64*)
12102 shrext_cmds='.so'
12103 hardcode_into_libs=yes
12104 dynamic_linker="$host_os dld.so"
12105 shlibpath_var=LD_LIBRARY_PATH
12106 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12108 soname_spec='${libname}${release}${shared_ext}$major'
12109 if test "X$HPUX_IA64_MODE" = X32; then
12110 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12111 else
12112 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12113 fi
12114 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12115 ;;
12116 hppa*64*)
12117 shrext_cmds='.sl'
12118 hardcode_into_libs=yes
12119 dynamic_linker="$host_os dld.sl"
12120 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12121 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12123 soname_spec='${libname}${release}${shared_ext}$major'
12124 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12125 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12126 ;;
12127 *)
12128 shrext_cmds='.sl'
12129 dynamic_linker="$host_os dld.sl"
12130 shlibpath_var=SHLIB_PATH
12131 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12133 soname_spec='${libname}${release}${shared_ext}$major'
12134 ;;
12135 esac
12136 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12137 postinstall_cmds='chmod 555 $lib'
12138 ;;
12139
12140 interix3*)
12141 version_type=linux
12142 need_lib_prefix=no
12143 need_version=no
12144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12145 soname_spec='${libname}${release}${shared_ext}$major'
12146 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12147 shlibpath_var=LD_LIBRARY_PATH
12148 shlibpath_overrides_runpath=no
12149 hardcode_into_libs=yes
12150 ;;
12151
12152 irix5* | irix6* | nonstopux*)
12153 case $host_os in
12154 nonstopux*) version_type=nonstopux ;;
12155 *)
12156 if test "$lt_cv_prog_gnu_ld" = yes; then
12157 version_type=linux
12158 else
12159 version_type=irix
12160 fi ;;
12161 esac
12162 need_lib_prefix=no
12163 need_version=no
12164 soname_spec='${libname}${release}${shared_ext}$major'
12165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12166 case $host_os in
12167 irix5* | nonstopux*)
12168 libsuff= shlibsuff=
12169 ;;
12170 *)
12171 case $LD in # libtool.m4 will add one of these switches to LD
12172 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12173 libsuff= shlibsuff= libmagic=32-bit;;
12174 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12175 libsuff=32 shlibsuff=N32 libmagic=N32;;
12176 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12177 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12178 *) libsuff= shlibsuff= libmagic=never-match;;
12179 esac
12180 ;;
12181 esac
12182 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12183 shlibpath_overrides_runpath=no
12184 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12185 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12186 hardcode_into_libs=yes
12187 ;;
12188
12189 # No shared lib support for Linux oldld, aout, or coff.
12190 linux*oldld* | linux*aout* | linux*coff*)
12191 dynamic_linker=no
12192 ;;
12193
12194 # This must be Linux ELF.
12195 linux*)
12196 version_type=linux
12197 need_lib_prefix=no
12198 need_version=no
12199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12200 soname_spec='${libname}${release}${shared_ext}$major'
12201 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12202 shlibpath_var=LD_LIBRARY_PATH
12203 shlibpath_overrides_runpath=no
12204 # This implies no fast_install, which is unacceptable.
12205 # Some rework will be needed to allow for fast_install
12206 # before this can be enabled.
12207 hardcode_into_libs=yes
12208
12209 # find out which ABI we are using
12210 libsuff=
12211 case "$host_cpu" in
12212 x86_64*|s390x*|powerpc64*)
12213 echo '#line 12213 "configure"' > conftest.$ac_ext
12214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12215 (eval $ac_compile) 2>&5
12216 ac_status=$?
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; then
12219 case `/usr/bin/file conftest.$ac_objext` in
12220 *64-bit*)
12221 libsuff=64
12222 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12223 ;;
12224 esac
12225 fi
12226 rm -rf conftest*
12227 ;;
12228 esac
12229
12230 # Append ld.so.conf contents to the search path
12231 if test -f /etc/ld.so.conf; then
12232 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12233 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12234 fi
12235
12236 # We used to test for /lib/ld.so.1 and disable shared libraries on
12237 # powerpc, because MkLinux only supported shared libraries with the
12238 # GNU dynamic linker. Since this was broken with cross compilers,
12239 # most powerpc-linux boxes support dynamic linking these days and
12240 # people can always --disable-shared, the test was removed, and we
12241 # assume the GNU/Linux dynamic linker is in use.
12242 dynamic_linker='GNU/Linux ld.so'
12243 ;;
12244
12245 knetbsd*-gnu)
12246 version_type=linux
12247 need_lib_prefix=no
12248 need_version=no
12249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12250 soname_spec='${libname}${release}${shared_ext}$major'
12251 shlibpath_var=LD_LIBRARY_PATH
12252 shlibpath_overrides_runpath=no
12253 hardcode_into_libs=yes
12254 dynamic_linker='GNU ld.so'
12255 ;;
12256
12257 netbsd*)
12258 version_type=sunos
12259 need_lib_prefix=no
12260 need_version=no
12261 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12264 dynamic_linker='NetBSD (a.out) ld.so'
12265 else
12266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12267 soname_spec='${libname}${release}${shared_ext}$major'
12268 dynamic_linker='NetBSD ld.elf_so'
12269 fi
12270 shlibpath_var=LD_LIBRARY_PATH
12271 shlibpath_overrides_runpath=yes
12272 hardcode_into_libs=yes
12273 ;;
12274
12275 newsos6)
12276 version_type=linux
12277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12278 shlibpath_var=LD_LIBRARY_PATH
12279 shlibpath_overrides_runpath=yes
12280 ;;
12281
12282 nto-qnx*)
12283 version_type=linux
12284 need_lib_prefix=no
12285 need_version=no
12286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12287 soname_spec='${libname}${release}${shared_ext}$major'
12288 shlibpath_var=LD_LIBRARY_PATH
12289 shlibpath_overrides_runpath=yes
12290 ;;
12291
12292 openbsd*)
12293 version_type=sunos
12294 sys_lib_dlsearch_path_spec="/usr/lib"
12295 need_lib_prefix=no
12296 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12297 case $host_os in
12298 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12299 *) need_version=no ;;
12300 esac
12301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12303 shlibpath_var=LD_LIBRARY_PATH
12304 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12305 case $host_os in
12306 openbsd2.[89] | openbsd2.[89].*)
12307 shlibpath_overrides_runpath=no
12308 ;;
12309 *)
12310 shlibpath_overrides_runpath=yes
12311 ;;
12312 esac
12313 else
12314 shlibpath_overrides_runpath=yes
12315 fi
12316 ;;
12317
12318 os2*)
12319 libname_spec='$name'
12320 shrext_cmds=".dll"
12321 need_lib_prefix=no
12322 library_names_spec='$libname${shared_ext} $libname.a'
12323 dynamic_linker='OS/2 ld.exe'
12324 shlibpath_var=LIBPATH
12325 ;;
12326
12327 osf3* | osf4* | osf5*)
12328 version_type=osf
12329 need_lib_prefix=no
12330 need_version=no
12331 soname_spec='${libname}${release}${shared_ext}$major'
12332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12333 shlibpath_var=LD_LIBRARY_PATH
12334 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12335 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12336 ;;
12337
12338 solaris*)
12339 version_type=linux
12340 need_lib_prefix=no
12341 need_version=no
12342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12343 soname_spec='${libname}${release}${shared_ext}$major'
12344 shlibpath_var=LD_LIBRARY_PATH
12345 shlibpath_overrides_runpath=yes
12346 hardcode_into_libs=yes
12347 # ldd complains unless libraries are executable
12348 postinstall_cmds='chmod +x $lib'
12349 ;;
12350
12351 sunos4*)
12352 version_type=sunos
12353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12354 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12355 shlibpath_var=LD_LIBRARY_PATH
12356 shlibpath_overrides_runpath=yes
12357 if test "$with_gnu_ld" = yes; then
12358 need_lib_prefix=no
12359 fi
12360 need_version=yes
12361 ;;
12362
12363 sysv4 | sysv4.3*)
12364 version_type=linux
12365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12366 soname_spec='${libname}${release}${shared_ext}$major'
12367 shlibpath_var=LD_LIBRARY_PATH
12368 case $host_vendor in
12369 sni)
12370 shlibpath_overrides_runpath=no
12371 need_lib_prefix=no
12372 export_dynamic_flag_spec='${wl}-Blargedynsym'
12373 runpath_var=LD_RUN_PATH
12374 ;;
12375 siemens)
12376 need_lib_prefix=no
12377 ;;
12378 motorola)
12379 need_lib_prefix=no
12380 need_version=no
12381 shlibpath_overrides_runpath=no
12382 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12383 ;;
12384 esac
12385 ;;
12386
12387 sysv4*MP*)
12388 if test -d /usr/nec ;then
12389 version_type=linux
12390 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12391 soname_spec='$libname${shared_ext}.$major'
12392 shlibpath_var=LD_LIBRARY_PATH
12393 fi
12394 ;;
12395
12396 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12397 version_type=freebsd-elf
12398 need_lib_prefix=no
12399 need_version=no
12400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12401 soname_spec='${libname}${release}${shared_ext}$major'
12402 shlibpath_var=LD_LIBRARY_PATH
12403 hardcode_into_libs=yes
12404 if test "$with_gnu_ld" = yes; then
12405 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12406 shlibpath_overrides_runpath=no
12407 else
12408 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12409 shlibpath_overrides_runpath=yes
12410 case $host_os in
12411 sco3.2v5*)
12412 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12413 ;;
12414 esac
12415 fi
12416 sys_lib_dlsearch_path_spec='/usr/lib'
12417 ;;
12418
12419 uts4*)
12420 version_type=linux
12421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12422 soname_spec='${libname}${release}${shared_ext}$major'
12423 shlibpath_var=LD_LIBRARY_PATH
12424 ;;
12425
12426 *)
12427 dynamic_linker=no
12428 ;;
12429 esac
12430 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12431 echo "${ECHO_T}$dynamic_linker" >&6
12432 test "$dynamic_linker" = no && can_build_shared=no
12433
12434 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12435 if test "$GCC" = yes; then
12436 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12437 fi
12438
12439 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12440 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12441 hardcode_action_CXX=
12442 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12443 test -n "$runpath_var_CXX" || \
12444 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12445
12446 # We can hardcode non-existant directories.
12447 if test "$hardcode_direct_CXX" != no &&
12448 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12449 # have to relink, otherwise we might link with an installed library
12450 # when we should be linking with a yet-to-be-installed one
12451 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12452 test "$hardcode_minus_L_CXX" != no; then
12453 # Linking always hardcodes the temporary library directory.
12454 hardcode_action_CXX=relink
12455 else
12456 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12457 hardcode_action_CXX=immediate
12458 fi
12459 else
12460 # We cannot hardcode anything, or else we can only hardcode existing
12461 # directories.
12462 hardcode_action_CXX=unsupported
12463 fi
12464 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12465 echo "${ECHO_T}$hardcode_action_CXX" >&6
12466
12467 if test "$hardcode_action_CXX" = relink; then
12468 # Fast installation is not supported
12469 enable_fast_install=no
12470 elif test "$shlibpath_overrides_runpath" = yes ||
12471 test "$enable_shared" = no; then
12472 # Fast installation is not necessary
12473 enable_fast_install=needless
12474 fi
12475
12476
12477 # The else clause should only fire when bootstrapping the
12478 # libtool distribution, otherwise you forgot to ship ltmain.sh
12479 # with your package, and you will get complaints that there are
12480 # no rules to generate ltmain.sh.
12481 if test -f "$ltmain"; then
12482 # See if we are running on zsh, and set the options which allow our commands through
12483 # without removal of \ escapes.
12484 if test -n "${ZSH_VERSION+set}" ; then
12485 setopt NO_GLOB_SUBST
12486 fi
12487 # Now quote all the things that may contain metacharacters while being
12488 # careful not to overquote the AC_SUBSTed values. We take copies of the
12489 # variables and quote the copies for generation of the libtool script.
12490 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12491 SED SHELL STRIP \
12492 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12493 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12494 deplibs_check_method reload_flag reload_cmds need_locks \
12495 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12496 lt_cv_sys_global_symbol_to_c_name_address \
12497 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12498 old_postinstall_cmds old_postuninstall_cmds \
12499 compiler_CXX \
12500 CC_CXX \
12501 LD_CXX \
12502 lt_prog_compiler_wl_CXX \
12503 lt_prog_compiler_pic_CXX \
12504 lt_prog_compiler_static_CXX \
12505 lt_prog_compiler_no_builtin_flag_CXX \
12506 export_dynamic_flag_spec_CXX \
12507 thread_safe_flag_spec_CXX \
12508 whole_archive_flag_spec_CXX \
12509 enable_shared_with_static_runtimes_CXX \
12510 old_archive_cmds_CXX \
12511 old_archive_from_new_cmds_CXX \
12512 predep_objects_CXX \
12513 postdep_objects_CXX \
12514 predeps_CXX \
12515 postdeps_CXX \
12516 compiler_lib_search_path_CXX \
12517 archive_cmds_CXX \
12518 archive_expsym_cmds_CXX \
12519 postinstall_cmds_CXX \
12520 postuninstall_cmds_CXX \
12521 old_archive_from_expsyms_cmds_CXX \
12522 allow_undefined_flag_CXX \
12523 no_undefined_flag_CXX \
12524 export_symbols_cmds_CXX \
12525 hardcode_libdir_flag_spec_CXX \
12526 hardcode_libdir_flag_spec_ld_CXX \
12527 hardcode_libdir_separator_CXX \
12528 hardcode_automatic_CXX \
12529 module_cmds_CXX \
12530 module_expsym_cmds_CXX \
12531 lt_cv_prog_compiler_c_o_CXX \
12532 exclude_expsyms_CXX \
12533 include_expsyms_CXX; do
12534
12535 case $var in
12536 old_archive_cmds_CXX | \
12537 old_archive_from_new_cmds_CXX | \
12538 archive_cmds_CXX | \
12539 archive_expsym_cmds_CXX | \
12540 module_cmds_CXX | \
12541 module_expsym_cmds_CXX | \
12542 old_archive_from_expsyms_cmds_CXX | \
12543 export_symbols_cmds_CXX | \
12544 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12545 postinstall_cmds | postuninstall_cmds | \
12546 old_postinstall_cmds | old_postuninstall_cmds | \
12547 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12548 # Double-quote double-evaled strings.
12549 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12550 ;;
12551 *)
12552 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12553 ;;
12554 esac
12555 done
12556
12557 case $lt_echo in
12558 *'\$0 --fallback-echo"')
12559 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12560 ;;
12561 esac
12562
12563 cfgfile="$ofile"
12564
12565 cat <<__EOF__ >> "$cfgfile"
12566 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12567
12568 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12569
12570 # Shell to use when invoking shell scripts.
12571 SHELL=$lt_SHELL
12572
12573 # Whether or not to build shared libraries.
12574 build_libtool_libs=$enable_shared
12575
12576 # Whether or not to build static libraries.
12577 build_old_libs=$enable_static
12578
12579 # Whether or not to add -lc for building shared libraries.
12580 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12581
12582 # Whether or not to disallow shared libs when runtime libs are static
12583 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12584
12585 # Whether or not to optimize for fast installation.
12586 fast_install=$enable_fast_install
12587
12588 # The host system.
12589 host_alias=$host_alias
12590 host=$host
12591 host_os=$host_os
12592
12593 # The build system.
12594 build_alias=$build_alias
12595 build=$build
12596 build_os=$build_os
12597
12598 # An echo program that does not interpret backslashes.
12599 echo=$lt_echo
12600
12601 # The archiver.
12602 AR=$lt_AR
12603 AR_FLAGS=$lt_AR_FLAGS
12604
12605 # A C compiler.
12606 LTCC=$lt_LTCC
12607
12608 # LTCC compiler flags.
12609 LTCFLAGS=$lt_LTCFLAGS
12610
12611 # A language-specific compiler.
12612 CC=$lt_compiler_CXX
12613
12614 # Is the compiler the GNU C compiler?
12615 with_gcc=$GCC_CXX
12616
12617 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
12618 gcc_ver=\`gcc -dumpversion\`
12619
12620 # An ERE matcher.
12621 EGREP=$lt_EGREP
12622
12623 # The linker used to build libraries.
12624 LD=$lt_LD_CXX
12625
12626 # Whether we need hard or soft links.
12627 LN_S=$lt_LN_S
12628
12629 # A BSD-compatible nm program.
12630 NM=$lt_NM
12631
12632 # A symbol stripping program
12633 STRIP=$lt_STRIP
12634
12635 # Used to examine libraries when file_magic_cmd begins "file"
12636 MAGIC_CMD=$MAGIC_CMD
12637
12638 # Used on cygwin: DLL creation program.
12639 DLLTOOL="$DLLTOOL"
12640
12641 # Used on cygwin: object dumper.
12642 OBJDUMP="$OBJDUMP"
12643
12644 # Used on cygwin: assembler.
12645 AS="$AS"
12646
12647 # The name of the directory that contains temporary libtool files.
12648 objdir=$objdir
12649
12650 # How to create reloadable object files.
12651 reload_flag=$lt_reload_flag
12652 reload_cmds=$lt_reload_cmds
12653
12654 # How to pass a linker flag through the compiler.
12655 wl=$lt_lt_prog_compiler_wl_CXX
12656
12657 # Object file suffix (normally "o").
12658 objext="$ac_objext"
12659
12660 # Old archive suffix (normally "a").
12661 libext="$libext"
12662
12663 # Shared library suffix (normally ".so").
12664 shrext_cmds='$shrext_cmds'
12665
12666 # Executable file suffix (normally "").
12667 exeext="$exeext"
12668
12669 # Additional compiler flags for building library objects.
12670 pic_flag=$lt_lt_prog_compiler_pic_CXX
12671 pic_mode=$pic_mode
12672
12673 # What is the maximum length of a command?
12674 max_cmd_len=$lt_cv_sys_max_cmd_len
12675
12676 # Does compiler simultaneously support -c and -o options?
12677 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12678
12679 # Must we lock files when doing compilation?
12680 need_locks=$lt_need_locks
12681
12682 # Do we need the lib prefix for modules?
12683 need_lib_prefix=$need_lib_prefix
12684
12685 # Do we need a version for libraries?
12686 need_version=$need_version
12687
12688 # Whether dlopen is supported.
12689 dlopen_support=$enable_dlopen
12690
12691 # Whether dlopen of programs is supported.
12692 dlopen_self=$enable_dlopen_self
12693
12694 # Whether dlopen of statically linked programs is supported.
12695 dlopen_self_static=$enable_dlopen_self_static
12696
12697 # Compiler flag to prevent dynamic linking.
12698 link_static_flag=$lt_lt_prog_compiler_static_CXX
12699
12700 # Compiler flag to turn off builtin functions.
12701 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12702
12703 # Compiler flag to allow reflexive dlopens.
12704 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12705
12706 # Compiler flag to generate shared objects directly from archives.
12707 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12708
12709 # Compiler flag to generate thread-safe objects.
12710 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12711
12712 # Library versioning type.
12713 version_type=$version_type
12714
12715 # Format of library name prefix.
12716 libname_spec=$lt_libname_spec
12717
12718 # List of archive names. First name is the real one, the rest are links.
12719 # The last name is the one that the linker finds with -lNAME.
12720 library_names_spec=$lt_library_names_spec
12721
12722 # The coded name of the library, if different from the real name.
12723 soname_spec=$lt_soname_spec
12724
12725 # Commands used to build and install an old-style archive.
12726 RANLIB=$lt_RANLIB
12727 old_archive_cmds=$lt_old_archive_cmds_CXX
12728 old_postinstall_cmds=$lt_old_postinstall_cmds
12729 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12730
12731 # Create an old-style archive from a shared archive.
12732 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12733
12734 # Create a temporary old-style archive to link instead of a shared archive.
12735 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12736
12737 # Commands used to build and install a shared archive.
12738 archive_cmds=$lt_archive_cmds_CXX
12739 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12740 postinstall_cmds=$lt_postinstall_cmds
12741 postuninstall_cmds=$lt_postuninstall_cmds
12742
12743 # Commands used to build a loadable module (assumed same as above if empty)
12744 module_cmds=$lt_module_cmds_CXX
12745 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12746
12747 # Commands to strip libraries.
12748 old_striplib=$lt_old_striplib
12749 striplib=$lt_striplib
12750
12751 # Dependencies to place before the objects being linked to create a
12752 # shared library.
12753 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12754
12755 # Dependencies to place after the objects being linked to create a
12756 # shared library.
12757 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12758
12759 # Dependencies to place before the objects being linked to create a
12760 # shared library.
12761 predeps=$lt_predeps_CXX
12762
12763 # Dependencies to place after the objects being linked to create a
12764 # shared library.
12765 postdeps=$lt_postdeps_CXX
12766
12767 # The library search path used internally by the compiler when linking
12768 # a shared library.
12769 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12770
12771 # Method to check whether dependent libraries are shared objects.
12772 deplibs_check_method=$lt_deplibs_check_method
12773
12774 # Command to use when deplibs_check_method == file_magic.
12775 file_magic_cmd=$lt_file_magic_cmd
12776
12777 # Flag that allows shared libraries with undefined symbols to be built.
12778 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12779
12780 # Flag that forces no undefined symbols.
12781 no_undefined_flag=$lt_no_undefined_flag_CXX
12782
12783 # Commands used to finish a libtool library installation in a directory.
12784 finish_cmds=$lt_finish_cmds
12785
12786 # Same as above, but a single script fragment to be evaled but not shown.
12787 finish_eval=$lt_finish_eval
12788
12789 # Take the output of nm and produce a listing of raw symbols and C names.
12790 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12791
12792 # Transform the output of nm in a proper C declaration
12793 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12794
12795 # Transform the output of nm in a C name address pair
12796 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12797
12798 # This is the shared library runtime path variable.
12799 runpath_var=$runpath_var
12800
12801 # This is the shared library path variable.
12802 shlibpath_var=$shlibpath_var
12803
12804 # Is shlibpath searched before the hard-coded library search path?
12805 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12806
12807 # How to hardcode a shared library path into an executable.
12808 hardcode_action=$hardcode_action_CXX
12809
12810 # Whether we should hardcode library paths into libraries.
12811 hardcode_into_libs=$hardcode_into_libs
12812
12813 # Flag to hardcode \$libdir into a binary during linking.
12814 # This must work even if \$libdir does not exist.
12815 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12816
12817 # If ld is used when linking, flag to hardcode \$libdir into
12818 # a binary during linking. This must work even if \$libdir does
12819 # not exist.
12820 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12821
12822 # Whether we need a single -rpath flag with a separated argument.
12823 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12824
12825 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12826 # resulting binary.
12827 hardcode_direct=$hardcode_direct_CXX
12828
12829 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12830 # resulting binary.
12831 hardcode_minus_L=$hardcode_minus_L_CXX
12832
12833 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12834 # the resulting binary.
12835 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12836
12837 # Set to yes if building a shared library automatically hardcodes DIR into the library
12838 # and all subsequent libraries and executables linked against it.
12839 hardcode_automatic=$hardcode_automatic_CXX
12840
12841 # Variables whose values should be saved in libtool wrapper scripts and
12842 # restored at relink time.
12843 variables_saved_for_relink="$variables_saved_for_relink"
12844
12845 # Whether libtool must link a program against all its dependency libraries.
12846 link_all_deplibs=$link_all_deplibs_CXX
12847
12848 # Compile-time system search path for libraries
12849 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12850
12851 # Run-time system search path for libraries
12852 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12853
12854 # Fix the shell variable \$srcfile for the compiler.
12855 fix_srcfile_path="$fix_srcfile_path_CXX"
12856
12857 # Set to yes if exported symbols are required.
12858 always_export_symbols=$always_export_symbols_CXX
12859
12860 # The commands to list exported symbols.
12861 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12862
12863 # The commands to extract the exported symbol list from a shared archive.
12864 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12865
12866 # Symbols that should not be listed in the preloaded symbols.
12867 exclude_expsyms=$lt_exclude_expsyms_CXX
12868
12869 # Symbols that must always be exported.
12870 include_expsyms=$lt_include_expsyms_CXX
12871
12872 # ### END LIBTOOL TAG CONFIG: $tagname
12873
12874 __EOF__
12875
12876
12877 else
12878 # If there is no Makefile yet, we rely on a make rule to execute
12879 # `config.status --recheck' to rerun these tests and create the
12880 # libtool script then.
12881 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12882 if test -f "$ltmain_in"; then
12883 test -f Makefile && make "$ltmain"
12884 fi
12885 fi
12886
12887
12888 ac_ext=c
12889 ac_cpp='$CPP $CPPFLAGS'
12890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12893
12894 CC=$lt_save_CC
12895 LDCXX=$LD
12896 LD=$lt_save_LD
12897 GCC=$lt_save_GCC
12898 with_gnu_ldcxx=$with_gnu_ld
12899 with_gnu_ld=$lt_save_with_gnu_ld
12900 lt_cv_path_LDCXX=$lt_cv_path_LD
12901 lt_cv_path_LD=$lt_save_path_LD
12902 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12903 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12904
12905 else
12906 tagname=""
12907 fi
12908 ;;
12909
12910 F77)
12911 if test -n "$F77" && test "X$F77" != "Xno"; then
12912
12913 ac_ext=f
12914 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12915 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12916 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12917
12918
12919 archive_cmds_need_lc_F77=no
12920 allow_undefined_flag_F77=
12921 always_export_symbols_F77=no
12922 archive_expsym_cmds_F77=
12923 export_dynamic_flag_spec_F77=
12924 hardcode_direct_F77=no
12925 hardcode_libdir_flag_spec_F77=
12926 hardcode_libdir_flag_spec_ld_F77=
12927 hardcode_libdir_separator_F77=
12928 hardcode_minus_L_F77=no
12929 hardcode_automatic_F77=no
12930 module_cmds_F77=
12931 module_expsym_cmds_F77=
12932 link_all_deplibs_F77=unknown
12933 old_archive_cmds_F77=$old_archive_cmds
12934 no_undefined_flag_F77=
12935 whole_archive_flag_spec_F77=
12936 enable_shared_with_static_runtimes_F77=no
12937
12938 # Source file extension for f77 test sources.
12939 ac_ext=f
12940
12941 # Object file extension for compiled f77 test sources.
12942 objext=o
12943 objext_F77=$objext
12944
12945 # Code to be used in simple compile tests
12946 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12947
12948 # Code to be used in simple link tests
12949 lt_simple_link_test_code=" program t\n end\n"
12950
12951 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12952
12953 # If no C compiler was specified, use CC.
12954 LTCC=${LTCC-"$CC"}
12955
12956 # If no C compiler flags were specified, use CFLAGS.
12957 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12958
12959 # Allow CC to be a program name with arguments.
12960 compiler=$CC
12961
12962
12963 # save warnings/boilerplate of simple test code
12964 ac_outfile=conftest.$ac_objext
12965 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12966 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12967 _lt_compiler_boilerplate=`cat conftest.err`
12968 $rm conftest*
12969
12970 ac_outfile=conftest.$ac_objext
12971 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12972 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12973 _lt_linker_boilerplate=`cat conftest.err`
12974 $rm conftest*
12975
12976
12977 # Allow CC to be a program name with arguments.
12978 lt_save_CC="$CC"
12979 CC=${F77-"f77"}
12980 compiler=$CC
12981 compiler_F77=$CC
12982 for cc_temp in $compiler""; do
12983 case $cc_temp in
12984 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12985 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12986 \-*) ;;
12987 *) break;;
12988 esac
12989 done
12990 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12991
12992
12993 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12994 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12995 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12996 echo "${ECHO_T}$can_build_shared" >&6
12997
12998 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12999 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13000 test "$can_build_shared" = "no" && enable_shared=no
13001
13002 # On AIX, shared libraries and static libraries use the same namespace, and
13003 # are all built from PIC.
13004 case $host_os in
13005 aix3*)
13006 test "$enable_shared" = yes && enable_static=no
13007 if test -n "$RANLIB"; then
13008 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13009 postinstall_cmds='$RANLIB $lib'
13010 fi
13011 ;;
13012 aix4* | aix5*)
13013 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13014 test "$enable_shared" = yes && enable_static=no
13015 fi
13016 ;;
13017 esac
13018 echo "$as_me:$LINENO: result: $enable_shared" >&5
13019 echo "${ECHO_T}$enable_shared" >&6
13020
13021 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13022 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13023 # Make sure either enable_shared or enable_static is yes.
13024 test "$enable_shared" = yes || enable_static=yes
13025 echo "$as_me:$LINENO: result: $enable_static" >&5
13026 echo "${ECHO_T}$enable_static" >&6
13027
13028 GCC_F77="$G77"
13029 LD_F77="$LD"
13030
13031 lt_prog_compiler_wl_F77=
13032 lt_prog_compiler_pic_F77=
13033 lt_prog_compiler_static_F77=
13034
13035 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13036 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13037
13038 if test "$GCC" = yes; then
13039 lt_prog_compiler_wl_F77='-Wl,'
13040 lt_prog_compiler_static_F77='-static'
13041
13042 case $host_os in
13043 aix*)
13044 # All AIX code is PIC.
13045 if test "$host_cpu" = ia64; then
13046 # AIX 5 now supports IA64 processor
13047 lt_prog_compiler_static_F77='-Bstatic'
13048 fi
13049 ;;
13050
13051 amigaos*)
13052 # FIXME: we need at least 68020 code to build shared libraries, but
13053 # adding the `-m68020' flag to GCC prevents building anything better,
13054 # like `-m68040'.
13055 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13056 ;;
13057
13058 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13059 # PIC is the default for these OSes.
13060 ;;
13061
13062 mingw* | pw32* | os2*)
13063 # This hack is so that the source file can tell whether it is being
13064 # built for inclusion in a dll (and should export symbols for example).
13065 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13066 ;;
13067
13068 darwin* | rhapsody*)
13069 # PIC is the default on this platform
13070 # Common symbols not allowed in MH_DYLIB files
13071 lt_prog_compiler_pic_F77='-fno-common'
13072 ;;
13073
13074 interix3*)
13075 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13076 # Instead, we relocate shared libraries at runtime.
13077 ;;
13078
13079 msdosdjgpp*)
13080 # Just because we use GCC doesn't mean we suddenly get shared libraries
13081 # on systems that don't support them.
13082 lt_prog_compiler_can_build_shared_F77=no
13083 enable_shared=no
13084 ;;
13085
13086 sysv4*MP*)
13087 if test -d /usr/nec; then
13088 lt_prog_compiler_pic_F77=-Kconform_pic
13089 fi
13090 ;;
13091
13092 hpux*)
13093 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13094 # not for PA HP-UX.
13095 case $host_cpu in
13096 hppa*64*|ia64*)
13097 # +Z the default
13098 ;;
13099 *)
13100 lt_prog_compiler_pic_F77='-fPIC'
13101 ;;
13102 esac
13103 ;;
13104
13105 *)
13106 lt_prog_compiler_pic_F77='-fPIC'
13107 ;;
13108 esac
13109 else
13110 # PORTME Check for flag to pass linker flags through the system compiler.
13111 case $host_os in
13112 aix*)
13113 lt_prog_compiler_wl_F77='-Wl,'
13114 if test "$host_cpu" = ia64; then
13115 # AIX 5 now supports IA64 processor
13116 lt_prog_compiler_static_F77='-Bstatic'
13117 else
13118 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13119 fi
13120 ;;
13121 darwin*)
13122 # PIC is the default on this platform
13123 # Common symbols not allowed in MH_DYLIB files
13124 case $cc_basename in
13125 xlc*)
13126 lt_prog_compiler_pic_F77='-qnocommon'
13127 lt_prog_compiler_wl_F77='-Wl,'
13128 ;;
13129 esac
13130 ;;
13131
13132 mingw* | pw32* | os2*)
13133 # This hack is so that the source file can tell whether it is being
13134 # built for inclusion in a dll (and should export symbols for example).
13135 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13136 ;;
13137
13138 hpux9* | hpux10* | hpux11*)
13139 lt_prog_compiler_wl_F77='-Wl,'
13140 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13141 # not for PA HP-UX.
13142 case $host_cpu in
13143 hppa*64*|ia64*)
13144 # +Z the default
13145 ;;
13146 *)
13147 lt_prog_compiler_pic_F77='+Z'
13148 ;;
13149 esac
13150 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13151 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13152 ;;
13153
13154 irix5* | irix6* | nonstopux*)
13155 lt_prog_compiler_wl_F77='-Wl,'
13156 # PIC (with -KPIC) is the default.
13157 lt_prog_compiler_static_F77='-non_shared'
13158 ;;
13159
13160 newsos6)
13161 lt_prog_compiler_pic_F77='-KPIC'
13162 lt_prog_compiler_static_F77='-Bstatic'
13163 ;;
13164
13165 linux*)
13166 case $cc_basename in
13167 icc* | ecc*)
13168 lt_prog_compiler_wl_F77='-Wl,'
13169 lt_prog_compiler_pic_F77='-KPIC'
13170 lt_prog_compiler_static_F77='-static'
13171 ;;
13172 pgcc* | pgf77* | pgf90* | pgf95*)
13173 # Portland Group compilers (*not* the Pentium gcc compiler,
13174 # which looks to be a dead project)
13175 lt_prog_compiler_wl_F77='-Wl,'
13176 lt_prog_compiler_pic_F77='-fpic'
13177 lt_prog_compiler_static_F77='-Bstatic'
13178 ;;
13179 ccc*)
13180 lt_prog_compiler_wl_F77='-Wl,'
13181 # All Alpha code is PIC.
13182 lt_prog_compiler_static_F77='-non_shared'
13183 ;;
13184 esac
13185 ;;
13186
13187 osf3* | osf4* | osf5*)
13188 lt_prog_compiler_wl_F77='-Wl,'
13189 # All OSF/1 code is PIC.
13190 lt_prog_compiler_static_F77='-non_shared'
13191 ;;
13192
13193 solaris*)
13194 lt_prog_compiler_pic_F77='-KPIC'
13195 lt_prog_compiler_static_F77='-Bstatic'
13196 case $cc_basename in
13197 f77* | f90* | f95*)
13198 lt_prog_compiler_wl_F77='-Qoption ld ';;
13199 *)
13200 lt_prog_compiler_wl_F77='-Wl,';;
13201 esac
13202 ;;
13203
13204 sunos4*)
13205 lt_prog_compiler_wl_F77='-Qoption ld '
13206 lt_prog_compiler_pic_F77='-PIC'
13207 lt_prog_compiler_static_F77='-Bstatic'
13208 ;;
13209
13210 sysv4 | sysv4.2uw2* | sysv4.3*)
13211 lt_prog_compiler_wl_F77='-Wl,'
13212 lt_prog_compiler_pic_F77='-KPIC'
13213 lt_prog_compiler_static_F77='-Bstatic'
13214 ;;
13215
13216 sysv4*MP*)
13217 if test -d /usr/nec ;then
13218 lt_prog_compiler_pic_F77='-Kconform_pic'
13219 lt_prog_compiler_static_F77='-Bstatic'
13220 fi
13221 ;;
13222
13223 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13224 lt_prog_compiler_wl_F77='-Wl,'
13225 lt_prog_compiler_pic_F77='-KPIC'
13226 lt_prog_compiler_static_F77='-Bstatic'
13227 ;;
13228
13229 unicos*)
13230 lt_prog_compiler_wl_F77='-Wl,'
13231 lt_prog_compiler_can_build_shared_F77=no
13232 ;;
13233
13234 uts4*)
13235 lt_prog_compiler_pic_F77='-pic'
13236 lt_prog_compiler_static_F77='-Bstatic'
13237 ;;
13238
13239 *)
13240 lt_prog_compiler_can_build_shared_F77=no
13241 ;;
13242 esac
13243 fi
13244
13245 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13246 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13247
13248 #
13249 # Check to make sure the PIC flag actually works.
13250 #
13251 if test -n "$lt_prog_compiler_pic_F77"; then
13252
13253 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13254 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13255 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13256 echo $ECHO_N "(cached) $ECHO_C" >&6
13257 else
13258 lt_prog_compiler_pic_works_F77=no
13259 ac_outfile=conftest.$ac_objext
13260 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13261 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13262 # Insert the option either (1) after the last *FLAGS variable, or
13263 # (2) before a word containing "conftest.", or (3) at the end.
13264 # Note that $ac_compile itself does not contain backslashes and begins
13265 # with a dollar sign (not a hyphen), so the echo should work correctly.
13266 # The option is referenced via a variable to avoid confusing sed.
13267 lt_compile=`echo "$ac_compile" | $SED \
13268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13270 -e 's:$: $lt_compiler_flag:'`
13271 (eval echo "\"\$as_me:13271: $lt_compile\"" >&5)
13272 (eval "$lt_compile" 2>conftest.err)
13273 ac_status=$?
13274 cat conftest.err >&5
13275 echo "$as_me:13275: \$? = $ac_status" >&5
13276 if (exit $ac_status) && test -s "$ac_outfile"; then
13277 # The compiler can only warn and ignore the option if not recognized
13278 # So say no if there are warnings other than the usual output.
13279 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13280 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13281 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13282 lt_prog_compiler_pic_works_F77=yes
13283 fi
13284 fi
13285 $rm conftest*
13286
13287 fi
13288 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13289 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13290
13291 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13292 case $lt_prog_compiler_pic_F77 in
13293 "" | " "*) ;;
13294 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13295 esac
13296 else
13297 lt_prog_compiler_pic_F77=
13298 lt_prog_compiler_can_build_shared_F77=no
13299 fi
13300
13301 fi
13302 case $host_os in
13303 # For platforms which do not support PIC, -DPIC is meaningless:
13304 *djgpp*)
13305 lt_prog_compiler_pic_F77=
13306 ;;
13307 *)
13308 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13309 ;;
13310 esac
13311
13312 #
13313 # Check to make sure the static flag actually works.
13314 #
13315 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13316 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13317 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13318 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13319 echo $ECHO_N "(cached) $ECHO_C" >&6
13320 else
13321 lt_prog_compiler_static_works_F77=no
13322 save_LDFLAGS="$LDFLAGS"
13323 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13324 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13325 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13326 # The linker can only warn and ignore the option if not recognized
13327 # So say no if there are warnings
13328 if test -s conftest.err; then
13329 # Append any errors to the config.log.
13330 cat conftest.err 1>&5
13331 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13332 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13333 if diff conftest.exp conftest.er2 >/dev/null; then
13334 lt_prog_compiler_static_works_F77=yes
13335 fi
13336 else
13337 lt_prog_compiler_static_works_F77=yes
13338 fi
13339 fi
13340 $rm conftest*
13341 LDFLAGS="$save_LDFLAGS"
13342
13343 fi
13344 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13345 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13346
13347 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13348 :
13349 else
13350 lt_prog_compiler_static_F77=
13351 fi
13352
13353
13354 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13355 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13356 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13357 echo $ECHO_N "(cached) $ECHO_C" >&6
13358 else
13359 lt_cv_prog_compiler_c_o_F77=no
13360 $rm -r conftest 2>/dev/null
13361 mkdir conftest
13362 cd conftest
13363 mkdir out
13364 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13365
13366 lt_compiler_flag="-o out/conftest2.$ac_objext"
13367 # Insert the option either (1) after the last *FLAGS variable, or
13368 # (2) before a word containing "conftest.", or (3) at the end.
13369 # Note that $ac_compile itself does not contain backslashes and begins
13370 # with a dollar sign (not a hyphen), so the echo should work correctly.
13371 lt_compile=`echo "$ac_compile" | $SED \
13372 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13374 -e 's:$: $lt_compiler_flag:'`
13375 (eval echo "\"\$as_me:13375: $lt_compile\"" >&5)
13376 (eval "$lt_compile" 2>out/conftest.err)
13377 ac_status=$?
13378 cat out/conftest.err >&5
13379 echo "$as_me:13379: \$? = $ac_status" >&5
13380 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13381 then
13382 # The compiler can only warn and ignore the option if not recognized
13383 # So say no if there are warnings
13384 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13385 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13386 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13387 lt_cv_prog_compiler_c_o_F77=yes
13388 fi
13389 fi
13390 chmod u+w . 2>&5
13391 $rm conftest*
13392 # SGI C++ compiler will create directory out/ii_files/ for
13393 # template instantiation
13394 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13395 $rm out/* && rmdir out
13396 cd ..
13397 rmdir conftest
13398 $rm conftest*
13399
13400 fi
13401 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13402 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13403
13404
13405 hard_links="nottested"
13406 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13407 # do not overwrite the value of need_locks provided by the user
13408 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13409 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13410 hard_links=yes
13411 $rm conftest*
13412 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13413 touch conftest.a
13414 ln conftest.a conftest.b 2>&5 || hard_links=no
13415 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13416 echo "$as_me:$LINENO: result: $hard_links" >&5
13417 echo "${ECHO_T}$hard_links" >&6
13418 if test "$hard_links" = no; then
13419 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13420 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13421 need_locks=warn
13422 fi
13423 else
13424 need_locks=no
13425 fi
13426
13427 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13428 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13429
13430 runpath_var=
13431 allow_undefined_flag_F77=
13432 enable_shared_with_static_runtimes_F77=no
13433 archive_cmds_F77=
13434 archive_expsym_cmds_F77=
13435 old_archive_From_new_cmds_F77=
13436 old_archive_from_expsyms_cmds_F77=
13437 export_dynamic_flag_spec_F77=
13438 whole_archive_flag_spec_F77=
13439 thread_safe_flag_spec_F77=
13440 hardcode_libdir_flag_spec_F77=
13441 hardcode_libdir_flag_spec_ld_F77=
13442 hardcode_libdir_separator_F77=
13443 hardcode_direct_F77=no
13444 hardcode_minus_L_F77=no
13445 hardcode_shlibpath_var_F77=unsupported
13446 link_all_deplibs_F77=unknown
13447 hardcode_automatic_F77=no
13448 module_cmds_F77=
13449 module_expsym_cmds_F77=
13450 always_export_symbols_F77=no
13451 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13452 # include_expsyms should be a list of space-separated symbols to be *always*
13453 # included in the symbol list
13454 include_expsyms_F77=
13455 # exclude_expsyms can be an extended regexp of symbols to exclude
13456 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13457 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13458 # as well as any symbol that contains `d'.
13459 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13460 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13461 # platforms (ab)use it in PIC code, but their linkers get confused if
13462 # the symbol is explicitly referenced. Since portable code cannot
13463 # rely on this symbol name, it's probably fine to never include it in
13464 # preloaded symbol tables.
13465 extract_expsyms_cmds=
13466 # Just being paranoid about ensuring that cc_basename is set.
13467 for cc_temp in $compiler""; do
13468 case $cc_temp in
13469 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13470 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13471 \-*) ;;
13472 *) break;;
13473 esac
13474 done
13475 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13476
13477 case $host_os in
13478 cygwin* | mingw* | pw32*)
13479 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13480 # When not using gcc, we currently assume that we are using
13481 # Microsoft Visual C++.
13482 if test "$GCC" != yes; then
13483 with_gnu_ld=no
13484 fi
13485 ;;
13486 interix*)
13487 # we just hope/assume this is gcc and not c89 (= MSVC++)
13488 with_gnu_ld=yes
13489 ;;
13490 openbsd*)
13491 with_gnu_ld=no
13492 ;;
13493 esac
13494
13495 ld_shlibs_F77=yes
13496 if test "$with_gnu_ld" = yes; then
13497 # If archive_cmds runs LD, not CC, wlarc should be empty
13498 wlarc='${wl}'
13499
13500 # Set some defaults for GNU ld with shared library support. These
13501 # are reset later if shared libraries are not supported. Putting them
13502 # here allows them to be overridden if necessary.
13503 runpath_var=LD_RUN_PATH
13504 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13505 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13506 # ancient GNU ld didn't support --whole-archive et. al.
13507 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13508 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13509 else
13510 whole_archive_flag_spec_F77=
13511 fi
13512 supports_anon_versioning=no
13513 case `$LD -v 2>/dev/null` in
13514 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13515 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13516 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13517 *\ 2.11.*) ;; # other 2.11 versions
13518 *) supports_anon_versioning=yes ;;
13519 esac
13520
13521 # See if GNU ld supports shared libraries.
13522 case $host_os in
13523 aix3* | aix4* | aix5*)
13524 # On AIX/PPC, the GNU linker is very broken
13525 if test "$host_cpu" != ia64; then
13526 ld_shlibs_F77=no
13527 cat <<EOF 1>&2
13528
13529 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13530 *** to be unable to reliably create shared libraries on AIX.
13531 *** Therefore, libtool is disabling shared libraries support. If you
13532 *** really care for shared libraries, you may want to modify your PATH
13533 *** so that a non-GNU linker is found, and then restart.
13534
13535 EOF
13536 fi
13537 ;;
13538
13539 amigaos*)
13540 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)'
13541 hardcode_libdir_flag_spec_F77='-L$libdir'
13542 hardcode_minus_L_F77=yes
13543
13544 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
13545 # that the semantics of dynamic libraries on AmigaOS, at least up
13546 # to version 4, is to share data among multiple programs linked
13547 # with the same dynamic library. Since this doesn't match the
13548 # behavior of shared libraries on other platforms, we can't use
13549 # them.
13550 ld_shlibs_F77=no
13551 ;;
13552
13553 beos*)
13554 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13555 allow_undefined_flag_F77=unsupported
13556 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
13557 # support --undefined. This deserves some investigation. FIXME
13558 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13559 else
13560 ld_shlibs_F77=no
13561 fi
13562 ;;
13563
13564 cygwin* | mingw* | pw32*)
13565 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13566 # as there is no search path for DLLs.
13567 hardcode_libdir_flag_spec_F77='-L$libdir'
13568 allow_undefined_flag_F77=unsupported
13569 always_export_symbols_F77=no
13570 enable_shared_with_static_runtimes_F77=yes
13571 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13572
13573 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13574 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13575 # If the export-symbols file already is a .def file (1st line
13576 # is EXPORTS), use it as is; otherwise, prepend...
13577 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13578 cp $export_symbols $output_objdir/$soname.def;
13579 else
13580 echo EXPORTS > $output_objdir/$soname.def;
13581 cat $export_symbols >> $output_objdir/$soname.def;
13582 fi~
13583 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13584 else
13585 ld_shlibs_F77=no
13586 fi
13587 ;;
13588
13589 interix3*)
13590 hardcode_direct_F77=no
13591 hardcode_shlibpath_var_F77=no
13592 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13593 export_dynamic_flag_spec_F77='${wl}-E'
13594 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13595 # Instead, shared libraries are loaded at an image base (0x10000000 by
13596 # default) and relocated if they conflict, which is a slow very memory
13597 # consuming and fragmenting process. To avoid this, we pick a random,
13598 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13599 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13600 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'
13601 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'
13602 ;;
13603
13604 linux*)
13605 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13606 tmp_addflag=
13607 case $cc_basename,$host_cpu in
13608 pgcc*) # Portland Group C compiler
13609 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'
13610 tmp_addflag=' $pic_flag'
13611 ;;
13612 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13613 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'
13614 tmp_addflag=' $pic_flag -Mnomain' ;;
13615 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13616 tmp_addflag=' -i_dynamic' ;;
13617 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13618 tmp_addflag=' -i_dynamic -nofor_main' ;;
13619 ifc* | ifort*) # Intel Fortran compiler
13620 tmp_addflag=' -nofor_main' ;;
13621 esac
13622 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13623
13624 if test $supports_anon_versioning = yes; then
13625 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13626 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13627 $echo "local: *; };" >> $output_objdir/$libname.ver~
13628 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13629 fi
13630 else
13631 ld_shlibs_F77=no
13632 fi
13633 ;;
13634
13635 netbsd*)
13636 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13637 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13638 wlarc=
13639 else
13640 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13641 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13642 fi
13643 ;;
13644
13645 solaris*)
13646 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13647 ld_shlibs_F77=no
13648 cat <<EOF 1>&2
13649
13650 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13651 *** create shared libraries on Solaris systems. Therefore, libtool
13652 *** is disabling shared libraries support. We urge you to upgrade GNU
13653 *** binutils to release 2.9.1 or newer. Another option is to modify
13654 *** your PATH or compiler configuration so that the native linker is
13655 *** used, and then restart.
13656
13657 EOF
13658 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13659 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13660 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13661 else
13662 ld_shlibs_F77=no
13663 fi
13664 ;;
13665
13666 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13667 case `$LD -v 2>&1` in
13668 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13669 ld_shlibs_F77=no
13670 cat <<_LT_EOF 1>&2
13671
13672 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13673 *** reliably create shared libraries on SCO systems. Therefore, libtool
13674 *** is disabling shared libraries support. We urge you to upgrade GNU
13675 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13676 *** your PATH or compiler configuration so that the native linker is
13677 *** used, and then restart.
13678
13679 _LT_EOF
13680 ;;
13681 *)
13682 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13683 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13684 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13685 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13686 else
13687 ld_shlibs_F77=no
13688 fi
13689 ;;
13690 esac
13691 ;;
13692
13693 sunos4*)
13694 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13695 wlarc=
13696 hardcode_direct_F77=yes
13697 hardcode_shlibpath_var_F77=no
13698 ;;
13699
13700 *)
13701 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13702 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13703 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13704 else
13705 ld_shlibs_F77=no
13706 fi
13707 ;;
13708 esac
13709
13710 if test "$ld_shlibs_F77" = no; then
13711 runpath_var=
13712 hardcode_libdir_flag_spec_F77=
13713 export_dynamic_flag_spec_F77=
13714 whole_archive_flag_spec_F77=
13715 fi
13716 else
13717 # PORTME fill in a description of your system's linker (not GNU ld)
13718 case $host_os in
13719 aix3*)
13720 allow_undefined_flag_F77=unsupported
13721 always_export_symbols_F77=yes
13722 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'
13723 # Note: this linker hardcodes the directories in LIBPATH if there
13724 # are no directories specified by -L.
13725 hardcode_minus_L_F77=yes
13726 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13727 # Neither direct hardcoding nor static linking is supported with a
13728 # broken collect2.
13729 hardcode_direct_F77=unsupported
13730 fi
13731 ;;
13732
13733 aix4* | aix5*)
13734 if test "$host_cpu" = ia64; then
13735 # On IA64, the linker does run time linking by default, so we don't
13736 # have to do anything special.
13737 aix_use_runtimelinking=no
13738 exp_sym_flag='-Bexport'
13739 no_entry_flag=""
13740 else
13741 # If we're using GNU nm, then we don't want the "-C" option.
13742 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13743 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13744 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'
13745 else
13746 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'
13747 fi
13748 aix_use_runtimelinking=no
13749
13750 # Test if we are trying to use run time linking or normal
13751 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13752 # need to do runtime linking.
13753 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13754 for ld_flag in $LDFLAGS; do
13755 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13756 aix_use_runtimelinking=yes
13757 break
13758 fi
13759 done
13760 ;;
13761 esac
13762
13763 exp_sym_flag='-bexport'
13764 no_entry_flag='-bnoentry'
13765 fi
13766
13767 # When large executables or shared objects are built, AIX ld can
13768 # have problems creating the table of contents. If linking a library
13769 # or program results in "error TOC overflow" add -mminimal-toc to
13770 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13771 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13772
13773 archive_cmds_F77=''
13774 hardcode_direct_F77=yes
13775 hardcode_libdir_separator_F77=':'
13776 link_all_deplibs_F77=yes
13777
13778 if test "$GCC" = yes; then
13779 case $host_os in aix4.[012]|aix4.[012].*)
13780 # We only want to do this on AIX 4.2 and lower, the check
13781 # below for broken collect2 doesn't work under 4.3+
13782 collect2name=`${CC} -print-prog-name=collect2`
13783 if test -f "$collect2name" && \
13784 strings "$collect2name" | grep resolve_lib_name >/dev/null
13785 then
13786 # We have reworked collect2
13787 hardcode_direct_F77=yes
13788 else
13789 # We have old collect2
13790 hardcode_direct_F77=unsupported
13791 # It fails to find uninstalled libraries when the uninstalled
13792 # path is not listed in the libpath. Setting hardcode_minus_L
13793 # to unsupported forces relinking
13794 hardcode_minus_L_F77=yes
13795 hardcode_libdir_flag_spec_F77='-L$libdir'
13796 hardcode_libdir_separator_F77=
13797 fi
13798 ;;
13799 esac
13800 shared_flag='-shared'
13801 if test "$aix_use_runtimelinking" = yes; then
13802 shared_flag="$shared_flag "'${wl}-G'
13803 fi
13804 else
13805 # not using gcc
13806 if test "$host_cpu" = ia64; then
13807 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13808 # chokes on -Wl,-G. The following line is correct:
13809 shared_flag='-G'
13810 else
13811 if test "$aix_use_runtimelinking" = yes; then
13812 shared_flag='${wl}-G'
13813 else
13814 shared_flag='${wl}-bM:SRE'
13815 fi
13816 fi
13817 fi
13818
13819 # It seems that -bexpall does not export symbols beginning with
13820 # underscore (_), so it is better to generate a list of symbols to export.
13821 always_export_symbols_F77=yes
13822 if test "$aix_use_runtimelinking" = yes; then
13823 # Warning - without using the other runtime loading flags (-brtl),
13824 # -berok will link without error, but may produce a broken library.
13825 allow_undefined_flag_F77='-berok'
13826 # Determine the default libpath from the value encoded in an empty executable.
13827 cat >conftest.$ac_ext <<_ACEOF
13828 program main
13829
13830 end
13831 _ACEOF
13832 rm -f conftest.$ac_objext conftest$ac_exeext
13833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13834 (eval $ac_link) 2>conftest.er1
13835 ac_status=$?
13836 grep -v '^ *+' conftest.er1 >conftest.err
13837 rm -f conftest.er1
13838 cat conftest.err >&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); } &&
13841 { ac_try='test -z "$ac_f77_werror_flag"
13842 || test ! -s conftest.err'
13843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13844 (eval $ac_try) 2>&5
13845 ac_status=$?
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); }; } &&
13848 { ac_try='test -s conftest$ac_exeext'
13849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850 (eval $ac_try) 2>&5
13851 ac_status=$?
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; }; then
13854
13855 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13856 }'`
13857 # Check for a 64-bit object if we didn't find anything.
13858 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; }
13859 }'`; fi
13860 else
13861 echo "$as_me: failed program was:" >&5
13862 sed 's/^/| /' conftest.$ac_ext >&5
13863
13864 fi
13865 rm -f conftest.err conftest.$ac_objext \
13866 conftest$ac_exeext conftest.$ac_ext
13867 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13868
13869 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13870 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"
13871 else
13872 if test "$host_cpu" = ia64; then
13873 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13874 allow_undefined_flag_F77="-z nodefs"
13875 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"
13876 else
13877 # Determine the default libpath from the value encoded in an empty executable.
13878 cat >conftest.$ac_ext <<_ACEOF
13879 program main
13880
13881 end
13882 _ACEOF
13883 rm -f conftest.$ac_objext conftest$ac_exeext
13884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13885 (eval $ac_link) 2>conftest.er1
13886 ac_status=$?
13887 grep -v '^ *+' conftest.er1 >conftest.err
13888 rm -f conftest.er1
13889 cat conftest.err >&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } &&
13892 { ac_try='test -z "$ac_f77_werror_flag"
13893 || test ! -s conftest.err'
13894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895 (eval $ac_try) 2>&5
13896 ac_status=$?
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; } &&
13899 { ac_try='test -s conftest$ac_exeext'
13900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13901 (eval $ac_try) 2>&5
13902 ac_status=$?
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); }; }; then
13905
13906 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13907 }'`
13908 # Check for a 64-bit object if we didn't find anything.
13909 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; }
13910 }'`; fi
13911 else
13912 echo "$as_me: failed program was:" >&5
13913 sed 's/^/| /' conftest.$ac_ext >&5
13914
13915 fi
13916 rm -f conftest.err conftest.$ac_objext \
13917 conftest$ac_exeext conftest.$ac_ext
13918 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13919
13920 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13921 # Warning - without using the other run time loading flags,
13922 # -berok will link without error, but may produce a broken library.
13923 no_undefined_flag_F77=' ${wl}-bernotok'
13924 allow_undefined_flag_F77=' ${wl}-berok'
13925 # Exported symbols can be pulled into shared objects from archives
13926 whole_archive_flag_spec_F77='$convenience'
13927 archive_cmds_need_lc_F77=yes
13928 # This is similar to how AIX traditionally builds its shared libraries.
13929 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'
13930 fi
13931 fi
13932 ;;
13933
13934 amigaos*)
13935 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)'
13936 hardcode_libdir_flag_spec_F77='-L$libdir'
13937 hardcode_minus_L_F77=yes
13938 # see comment about different semantics on the GNU ld section
13939 ld_shlibs_F77=no
13940 ;;
13941
13942 bsdi[45]*)
13943 export_dynamic_flag_spec_F77=-rdynamic
13944 ;;
13945
13946 cygwin* | mingw* | pw32*)
13947 # When not using gcc, we currently assume that we are using
13948 # Microsoft Visual C++.
13949 # hardcode_libdir_flag_spec is actually meaningless, as there is
13950 # no search path for DLLs.
13951 hardcode_libdir_flag_spec_F77=' '
13952 allow_undefined_flag_F77=unsupported
13953 # Tell ltmain to make .lib files, not .a files.
13954 libext=lib
13955 # Tell ltmain to make .dll files, not .so files.
13956 shrext_cmds=".dll"
13957 # FIXME: Setting linknames here is a bad hack.
13958 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13959 # The linker will automatically build a .lib file if we build a DLL.
13960 old_archive_From_new_cmds_F77='true'
13961 # FIXME: Should let the user specify the lib program.
13962 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13963 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13964 enable_shared_with_static_runtimes_F77=yes
13965 ;;
13966
13967 darwin* | rhapsody*)
13968 case $host_os in
13969 rhapsody* | darwin1.[012])
13970 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13971 ;;
13972 *) # Darwin 1.3 on
13973 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13974 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13975 else
13976 case ${MACOSX_DEPLOYMENT_TARGET} in
13977 10.[012])
13978 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13979 ;;
13980 10.*)
13981 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13982 ;;
13983 esac
13984 fi
13985 ;;
13986 esac
13987 archive_cmds_need_lc_F77=no
13988 hardcode_direct_F77=no
13989 hardcode_automatic_F77=yes
13990 hardcode_shlibpath_var_F77=unsupported
13991 whole_archive_flag_spec_F77=''
13992 link_all_deplibs_F77=yes
13993 if test "$GCC" = yes ; then
13994 output_verbose_link_cmd='echo'
13995 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13996 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13997 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13998 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}'
13999 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}'
14000 else
14001 case $cc_basename in
14002 xlc*)
14003 output_verbose_link_cmd='echo'
14004 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14005 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14006 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14007 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}'
14008 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}'
14009 ;;
14010 *)
14011 ld_shlibs_F77=no
14012 ;;
14013 esac
14014 fi
14015 ;;
14016
14017 dgux*)
14018 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14019 hardcode_libdir_flag_spec_F77='-L$libdir'
14020 hardcode_shlibpath_var_F77=no
14021 ;;
14022
14023 freebsd1*)
14024 ld_shlibs_F77=no
14025 ;;
14026
14027 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14028 # support. Future versions do this automatically, but an explicit c++rt0.o
14029 # does not break anything, and helps significantly (at the cost of a little
14030 # extra space).
14031 freebsd2.2*)
14032 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14033 hardcode_libdir_flag_spec_F77='-R$libdir'
14034 hardcode_direct_F77=yes
14035 hardcode_shlibpath_var_F77=no
14036 ;;
14037
14038 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14039 freebsd2*)
14040 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14041 hardcode_direct_F77=yes
14042 hardcode_minus_L_F77=yes
14043 hardcode_shlibpath_var_F77=no
14044 ;;
14045
14046 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14047 freebsd* | kfreebsd*-gnu | dragonfly*)
14048 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14049 hardcode_libdir_flag_spec_F77='-R$libdir'
14050 hardcode_direct_F77=yes
14051 hardcode_shlibpath_var_F77=no
14052 ;;
14053
14054 hpux9*)
14055 if test "$GCC" = yes; then
14056 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'
14057 else
14058 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'
14059 fi
14060 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14061 hardcode_libdir_separator_F77=:
14062 hardcode_direct_F77=yes
14063
14064 # hardcode_minus_L: Not really in the search PATH,
14065 # but as the default location of the library.
14066 hardcode_minus_L_F77=yes
14067 export_dynamic_flag_spec_F77='${wl}-E'
14068 ;;
14069
14070 hpux10*)
14071 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14072 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14073 else
14074 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14075 fi
14076 if test "$with_gnu_ld" = no; then
14077 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14078 hardcode_libdir_separator_F77=:
14079
14080 hardcode_direct_F77=yes
14081 export_dynamic_flag_spec_F77='${wl}-E'
14082
14083 # hardcode_minus_L: Not really in the search PATH,
14084 # but as the default location of the library.
14085 hardcode_minus_L_F77=yes
14086 fi
14087 ;;
14088
14089 hpux11*)
14090 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14091 case $host_cpu in
14092 hppa*64*)
14093 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14094 ;;
14095 ia64*)
14096 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14097 ;;
14098 *)
14099 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14100 ;;
14101 esac
14102 else
14103 case $host_cpu in
14104 hppa*64*)
14105 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14106 ;;
14107 ia64*)
14108 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14109 ;;
14110 *)
14111 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14112 ;;
14113 esac
14114 fi
14115 if test "$with_gnu_ld" = no; then
14116 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14117 hardcode_libdir_separator_F77=:
14118
14119 case $host_cpu in
14120 hppa*64*|ia64*)
14121 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14122 hardcode_direct_F77=no
14123 hardcode_shlibpath_var_F77=no
14124 ;;
14125 *)
14126 hardcode_direct_F77=yes
14127 export_dynamic_flag_spec_F77='${wl}-E'
14128
14129 # hardcode_minus_L: Not really in the search PATH,
14130 # but as the default location of the library.
14131 hardcode_minus_L_F77=yes
14132 ;;
14133 esac
14134 fi
14135 ;;
14136
14137 irix5* | irix6* | nonstopux*)
14138 if test "$GCC" = yes; then
14139 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'
14140 else
14141 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'
14142 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14143 fi
14144 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14145 hardcode_libdir_separator_F77=:
14146 link_all_deplibs_F77=yes
14147 ;;
14148
14149 netbsd*)
14150 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14151 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14152 else
14153 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14154 fi
14155 hardcode_libdir_flag_spec_F77='-R$libdir'
14156 hardcode_direct_F77=yes
14157 hardcode_shlibpath_var_F77=no
14158 ;;
14159
14160 newsos6)
14161 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14162 hardcode_direct_F77=yes
14163 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14164 hardcode_libdir_separator_F77=:
14165 hardcode_shlibpath_var_F77=no
14166 ;;
14167
14168 openbsd*)
14169 hardcode_direct_F77=yes
14170 hardcode_shlibpath_var_F77=no
14171 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14172 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14173 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14174 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14175 export_dynamic_flag_spec_F77='${wl}-E'
14176 else
14177 case $host_os in
14178 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14179 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14180 hardcode_libdir_flag_spec_F77='-R$libdir'
14181 ;;
14182 *)
14183 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14184 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14185 ;;
14186 esac
14187 fi
14188 ;;
14189
14190 os2*)
14191 hardcode_libdir_flag_spec_F77='-L$libdir'
14192 hardcode_minus_L_F77=yes
14193 allow_undefined_flag_F77=unsupported
14194 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'
14195 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14196 ;;
14197
14198 osf3*)
14199 if test "$GCC" = yes; then
14200 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14201 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'
14202 else
14203 allow_undefined_flag_F77=' -expect_unresolved \*'
14204 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'
14205 fi
14206 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14207 hardcode_libdir_separator_F77=:
14208 ;;
14209
14210 osf4* | osf5*) # as osf3* with the addition of -msym flag
14211 if test "$GCC" = yes; then
14212 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14213 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'
14214 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14215 else
14216 allow_undefined_flag_F77=' -expect_unresolved \*'
14217 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'
14218 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~
14219 $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'
14220
14221 # Both c and cxx compiler support -rpath directly
14222 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14223 fi
14224 hardcode_libdir_separator_F77=:
14225 ;;
14226
14227 solaris*)
14228 no_undefined_flag_F77=' -z text'
14229 if test "$GCC" = yes; then
14230 wlarc='${wl}'
14231 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14232 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14233 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14234 else
14235 wlarc=''
14236 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14237 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14238 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14239 fi
14240 hardcode_libdir_flag_spec_F77='-R$libdir'
14241 hardcode_shlibpath_var_F77=no
14242 case $host_os in
14243 solaris2.[0-5] | solaris2.[0-5].*) ;;
14244 *)
14245 # The compiler driver will combine linker options so we
14246 # cannot just pass the convience library names through
14247 # without $wl, iff we do not link with $LD.
14248 # Luckily, gcc supports the same syntax we need for Sun Studio.
14249 # Supported since Solaris 2.6 (maybe 2.5.1?)
14250 case $wlarc in
14251 '')
14252 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14253 *)
14254 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' ;;
14255 esac ;;
14256 esac
14257 link_all_deplibs_F77=yes
14258 ;;
14259
14260 sunos4*)
14261 if test "x$host_vendor" = xsequent; then
14262 # Use $CC to link under sequent, because it throws in some extra .o
14263 # files that make .init and .fini sections work.
14264 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14265 else
14266 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14267 fi
14268 hardcode_libdir_flag_spec_F77='-L$libdir'
14269 hardcode_direct_F77=yes
14270 hardcode_minus_L_F77=yes
14271 hardcode_shlibpath_var_F77=no
14272 ;;
14273
14274 sysv4)
14275 case $host_vendor in
14276 sni)
14277 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14278 hardcode_direct_F77=yes # is this really true???
14279 ;;
14280 siemens)
14281 ## LD is ld it makes a PLAMLIB
14282 ## CC just makes a GrossModule.
14283 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14284 reload_cmds_F77='$CC -r -o $output$reload_objs'
14285 hardcode_direct_F77=no
14286 ;;
14287 motorola)
14288 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14289 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14290 ;;
14291 esac
14292 runpath_var='LD_RUN_PATH'
14293 hardcode_shlibpath_var_F77=no
14294 ;;
14295
14296 sysv4.3*)
14297 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14298 hardcode_shlibpath_var_F77=no
14299 export_dynamic_flag_spec_F77='-Bexport'
14300 ;;
14301
14302 sysv4*MP*)
14303 if test -d /usr/nec; then
14304 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14305 hardcode_shlibpath_var_F77=no
14306 runpath_var=LD_RUN_PATH
14307 hardcode_runpath_var=yes
14308 ld_shlibs_F77=yes
14309 fi
14310 ;;
14311
14312 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14313 no_undefined_flag_F77='${wl}-z,text'
14314 archive_cmds_need_lc_F77=no
14315 hardcode_shlibpath_var_F77=no
14316 runpath_var='LD_RUN_PATH'
14317
14318 if test "$GCC" = yes; then
14319 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14320 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14321 else
14322 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14323 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14324 fi
14325 ;;
14326
14327 sysv5* | sco3.2v5* | sco5v6*)
14328 # Note: We can NOT use -z defs as we might desire, because we do not
14329 # link with -lc, and that would cause any symbols used from libc to
14330 # always be unresolved, which means just about no library would
14331 # ever link correctly. If we're not using GNU ld we use -z text
14332 # though, which does catch some bad symbols but isn't as heavy-handed
14333 # as -z defs.
14334 no_undefined_flag_F77='${wl}-z,text'
14335 allow_undefined_flag_F77='${wl}-z,nodefs'
14336 archive_cmds_need_lc_F77=no
14337 hardcode_shlibpath_var_F77=no
14338 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14339 hardcode_libdir_separator_F77=':'
14340 link_all_deplibs_F77=yes
14341 export_dynamic_flag_spec_F77='${wl}-Bexport'
14342 runpath_var='LD_RUN_PATH'
14343
14344 if test "$GCC" = yes; then
14345 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14346 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14347 else
14348 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14349 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14350 fi
14351 ;;
14352
14353 uts4*)
14354 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14355 hardcode_libdir_flag_spec_F77='-L$libdir'
14356 hardcode_shlibpath_var_F77=no
14357 ;;
14358
14359 *)
14360 ld_shlibs_F77=no
14361 ;;
14362 esac
14363 fi
14364
14365 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14366 echo "${ECHO_T}$ld_shlibs_F77" >&6
14367 test "$ld_shlibs_F77" = no && can_build_shared=no
14368
14369 #
14370 # Do we need to explicitly link libc?
14371 #
14372 case "x$archive_cmds_need_lc_F77" in
14373 x|xyes)
14374 # Assume -lc should be added
14375 archive_cmds_need_lc_F77=yes
14376
14377 if test "$enable_shared" = yes && test "$GCC" = yes; then
14378 case $archive_cmds_F77 in
14379 *'~'*)
14380 # FIXME: we may have to deal with multi-command sequences.
14381 ;;
14382 '$CC '*)
14383 # Test whether the compiler implicitly links with -lc since on some
14384 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14385 # to ld, don't add -lc before -lgcc.
14386 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14387 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14388 $rm conftest*
14389 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14390
14391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14392 (eval $ac_compile) 2>&5
14393 ac_status=$?
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); } 2>conftest.err; then
14396 soname=conftest
14397 lib=conftest
14398 libobjs=conftest.$ac_objext
14399 deplibs=
14400 wl=$lt_prog_compiler_wl_F77
14401 pic_flag=$lt_prog_compiler_pic_F77
14402 compiler_flags=-v
14403 linker_flags=-v
14404 verstring=
14405 output_objdir=.
14406 libname=conftest
14407 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14408 allow_undefined_flag_F77=
14409 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14410 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14411 ac_status=$?
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); }
14414 then
14415 archive_cmds_need_lc_F77=no
14416 else
14417 archive_cmds_need_lc_F77=yes
14418 fi
14419 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14420 else
14421 cat conftest.err 1>&5
14422 fi
14423 $rm conftest*
14424 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14425 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14426 ;;
14427 esac
14428 fi
14429 ;;
14430 esac
14431
14432 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14433 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14434 library_names_spec=
14435 libname_spec='lib$name'
14436 soname_spec=
14437 shrext_cmds=".so"
14438 postinstall_cmds=
14439 postuninstall_cmds=
14440 finish_cmds=
14441 finish_eval=
14442 shlibpath_var=
14443 shlibpath_overrides_runpath=unknown
14444 version_type=none
14445 dynamic_linker="$host_os ld.so"
14446 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14447 if test "$GCC" = yes; then
14448 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14449 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14450 # if the path contains ";" then we assume it to be the separator
14451 # otherwise default to the standard path separator (i.e. ":") - it is
14452 # assumed that no part of a normal pathname contains ";" but that should
14453 # okay in the real world where ";" in dirpaths is itself problematic.
14454 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14455 else
14456 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14457 fi
14458 else
14459 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14460 fi
14461 need_lib_prefix=unknown
14462 hardcode_into_libs=no
14463
14464 # when you set need_version to no, make sure it does not cause -set_version
14465 # flags to be left without arguments
14466 need_version=unknown
14467
14468 case $host_os in
14469 aix3*)
14470 version_type=linux
14471 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14472 shlibpath_var=LIBPATH
14473
14474 # AIX 3 has no versioning support, so we append a major version to the name.
14475 soname_spec='${libname}${release}${shared_ext}$major'
14476 ;;
14477
14478 aix4* | aix5*)
14479 version_type=linux
14480 need_lib_prefix=no
14481 need_version=no
14482 hardcode_into_libs=yes
14483 if test "$host_cpu" = ia64; then
14484 # AIX 5 supports IA64
14485 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14486 shlibpath_var=LD_LIBRARY_PATH
14487 else
14488 # With GCC up to 2.95.x, collect2 would create an import file
14489 # for dependence libraries. The import file would start with
14490 # the line `#! .'. This would cause the generated library to
14491 # depend on `.', always an invalid library. This was fixed in
14492 # development snapshots of GCC prior to 3.0.
14493 case $host_os in
14494 aix4 | aix4.[01] | aix4.[01].*)
14495 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14496 echo ' yes '
14497 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14498 :
14499 else
14500 can_build_shared=no
14501 fi
14502 ;;
14503 esac
14504 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14505 # soname into executable. Probably we can add versioning support to
14506 # collect2, so additional links can be useful in future.
14507 if test "$aix_use_runtimelinking" = yes; then
14508 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14509 # instead of lib<name>.a to let people know that these are not
14510 # typical AIX shared libraries.
14511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14512 else
14513 # We preserve .a as extension for shared libraries through AIX4.2
14514 # and later when we are not doing run time linking.
14515 library_names_spec='${libname}${release}.a $libname.a'
14516 soname_spec='${libname}${release}${shared_ext}$major'
14517 fi
14518 shlibpath_var=LIBPATH
14519 fi
14520 ;;
14521
14522 amigaos*)
14523 library_names_spec='$libname.ixlibrary $libname.a'
14524 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14525 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'
14526 ;;
14527
14528 beos*)
14529 library_names_spec='${libname}${shared_ext}'
14530 dynamic_linker="$host_os ld.so"
14531 shlibpath_var=LIBRARY_PATH
14532 ;;
14533
14534 bsdi[45]*)
14535 version_type=linux
14536 need_version=no
14537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14538 soname_spec='${libname}${release}${shared_ext}$major'
14539 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14540 shlibpath_var=LD_LIBRARY_PATH
14541 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14542 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14543 # the default ld.so.conf also contains /usr/contrib/lib and
14544 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14545 # libtool to hard-code these into programs
14546 ;;
14547
14548 cygwin* | mingw* | pw32*)
14549 version_type=windows
14550 shrext_cmds=".dll"
14551 need_version=no
14552 need_lib_prefix=no
14553
14554 case $GCC,$host_os in
14555 yes,cygwin* | yes,mingw* | yes,pw32*)
14556 library_names_spec='$libname.dll.a'
14557 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14558 postinstall_cmds='base_file=`basename \${file}`~
14559 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14560 dldir=$destdir/`dirname \$dlpath`~
14561 test -d \$dldir || mkdir -p \$dldir~
14562 $install_prog $dir/$dlname \$dldir/$dlname~
14563 chmod a+x \$dldir/$dlname'
14564 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14565 dlpath=$dir/\$dldll~
14566 $rm \$dlpath'
14567 shlibpath_overrides_runpath=yes
14568
14569 case $host_os in
14570 cygwin*)
14571 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14572 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14573 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14574 ;;
14575 mingw*)
14576 # MinGW DLLs use traditional 'lib' prefix
14577 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14578 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14579 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14580 # It is most probably a Windows format PATH printed by
14581 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14582 # path with ; separators, and with drive letters. We can handle the
14583 # drive letters (cygwin fileutils understands them), so leave them,
14584 # especially as we might pass files found there to a mingw objdump,
14585 # which wouldn't understand a cygwinified path. Ahh.
14586 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14587 else
14588 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14589 fi
14590 ;;
14591 pw32*)
14592 # pw32 DLLs use 'pw' prefix rather than 'lib'
14593 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14594 ;;
14595 esac
14596 ;;
14597
14598 *)
14599 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14600 ;;
14601 esac
14602 dynamic_linker='Win32 ld.exe'
14603 # FIXME: first we should search . and the directory the executable is in
14604 shlibpath_var=PATH
14605 ;;
14606
14607 darwin* | rhapsody*)
14608 dynamic_linker="$host_os dyld"
14609 version_type=darwin
14610 need_lib_prefix=no
14611 need_version=no
14612 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14613 soname_spec='${libname}${release}${major}$shared_ext'
14614 shlibpath_overrides_runpath=yes
14615 shlibpath_var=DYLD_LIBRARY_PATH
14616 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14617 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14618 if test "$GCC" = yes; then
14619 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"`
14620 else
14621 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14622 fi
14623 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14624 ;;
14625
14626 dgux*)
14627 version_type=linux
14628 need_lib_prefix=no
14629 need_version=no
14630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14631 soname_spec='${libname}${release}${shared_ext}$major'
14632 shlibpath_var=LD_LIBRARY_PATH
14633 ;;
14634
14635 freebsd1*)
14636 dynamic_linker=no
14637 ;;
14638
14639 kfreebsd*-gnu)
14640 version_type=linux
14641 need_lib_prefix=no
14642 need_version=no
14643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14644 soname_spec='${libname}${release}${shared_ext}$major'
14645 shlibpath_var=LD_LIBRARY_PATH
14646 shlibpath_overrides_runpath=no
14647 hardcode_into_libs=yes
14648 dynamic_linker='GNU ld.so'
14649 ;;
14650
14651 freebsd* | dragonfly*)
14652 # DragonFly does not have aout. When/if they implement a new
14653 # versioning mechanism, adjust this.
14654 if test -x /usr/bin/objformat; then
14655 objformat=`/usr/bin/objformat`
14656 else
14657 case $host_os in
14658 freebsd[123]*) objformat=aout ;;
14659 *) objformat=elf ;;
14660 esac
14661 fi
14662 version_type=freebsd-$objformat
14663 case $version_type in
14664 freebsd-elf*)
14665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14666 need_version=no
14667 need_lib_prefix=no
14668 ;;
14669 freebsd-*)
14670 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14671 need_version=yes
14672 ;;
14673 esac
14674 shlibpath_var=LD_LIBRARY_PATH
14675 case $host_os in
14676 freebsd2*)
14677 shlibpath_overrides_runpath=yes
14678 ;;
14679 freebsd3.[01]* | freebsdelf3.[01]*)
14680 shlibpath_overrides_runpath=yes
14681 hardcode_into_libs=yes
14682 ;;
14683 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14684 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14685 shlibpath_overrides_runpath=no
14686 hardcode_into_libs=yes
14687 ;;
14688 freebsd*) # from 4.6 on
14689 shlibpath_overrides_runpath=yes
14690 hardcode_into_libs=yes
14691 ;;
14692 esac
14693 ;;
14694
14695 gnu*)
14696 version_type=linux
14697 need_lib_prefix=no
14698 need_version=no
14699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14700 soname_spec='${libname}${release}${shared_ext}$major'
14701 shlibpath_var=LD_LIBRARY_PATH
14702 hardcode_into_libs=yes
14703 ;;
14704
14705 hpux9* | hpux10* | hpux11*)
14706 # Give a soname corresponding to the major version so that dld.sl refuses to
14707 # link against other versions.
14708 version_type=sunos
14709 need_lib_prefix=no
14710 need_version=no
14711 case $host_cpu in
14712 ia64*)
14713 shrext_cmds='.so'
14714 hardcode_into_libs=yes
14715 dynamic_linker="$host_os dld.so"
14716 shlibpath_var=LD_LIBRARY_PATH
14717 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14719 soname_spec='${libname}${release}${shared_ext}$major'
14720 if test "X$HPUX_IA64_MODE" = X32; then
14721 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14722 else
14723 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14724 fi
14725 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14726 ;;
14727 hppa*64*)
14728 shrext_cmds='.sl'
14729 hardcode_into_libs=yes
14730 dynamic_linker="$host_os dld.sl"
14731 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14732 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14734 soname_spec='${libname}${release}${shared_ext}$major'
14735 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14736 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14737 ;;
14738 *)
14739 shrext_cmds='.sl'
14740 dynamic_linker="$host_os dld.sl"
14741 shlibpath_var=SHLIB_PATH
14742 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14744 soname_spec='${libname}${release}${shared_ext}$major'
14745 ;;
14746 esac
14747 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14748 postinstall_cmds='chmod 555 $lib'
14749 ;;
14750
14751 interix3*)
14752 version_type=linux
14753 need_lib_prefix=no
14754 need_version=no
14755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14756 soname_spec='${libname}${release}${shared_ext}$major'
14757 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14758 shlibpath_var=LD_LIBRARY_PATH
14759 shlibpath_overrides_runpath=no
14760 hardcode_into_libs=yes
14761 ;;
14762
14763 irix5* | irix6* | nonstopux*)
14764 case $host_os in
14765 nonstopux*) version_type=nonstopux ;;
14766 *)
14767 if test "$lt_cv_prog_gnu_ld" = yes; then
14768 version_type=linux
14769 else
14770 version_type=irix
14771 fi ;;
14772 esac
14773 need_lib_prefix=no
14774 need_version=no
14775 soname_spec='${libname}${release}${shared_ext}$major'
14776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14777 case $host_os in
14778 irix5* | nonstopux*)
14779 libsuff= shlibsuff=
14780 ;;
14781 *)
14782 case $LD in # libtool.m4 will add one of these switches to LD
14783 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14784 libsuff= shlibsuff= libmagic=32-bit;;
14785 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14786 libsuff=32 shlibsuff=N32 libmagic=N32;;
14787 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14788 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14789 *) libsuff= shlibsuff= libmagic=never-match;;
14790 esac
14791 ;;
14792 esac
14793 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14794 shlibpath_overrides_runpath=no
14795 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14796 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14797 hardcode_into_libs=yes
14798 ;;
14799
14800 # No shared lib support for Linux oldld, aout, or coff.
14801 linux*oldld* | linux*aout* | linux*coff*)
14802 dynamic_linker=no
14803 ;;
14804
14805 # This must be Linux ELF.
14806 linux*)
14807 version_type=linux
14808 need_lib_prefix=no
14809 need_version=no
14810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14811 soname_spec='${libname}${release}${shared_ext}$major'
14812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14813 shlibpath_var=LD_LIBRARY_PATH
14814 shlibpath_overrides_runpath=no
14815 # This implies no fast_install, which is unacceptable.
14816 # Some rework will be needed to allow for fast_install
14817 # before this can be enabled.
14818 hardcode_into_libs=yes
14819
14820 # find out which ABI we are using
14821 libsuff=
14822 case "$host_cpu" in
14823 x86_64*|s390x*|powerpc64*)
14824 echo '#line 14824 "configure"' > conftest.$ac_ext
14825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14826 (eval $ac_compile) 2>&5
14827 ac_status=$?
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; then
14830 case `/usr/bin/file conftest.$ac_objext` in
14831 *64-bit*)
14832 libsuff=64
14833 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14834 ;;
14835 esac
14836 fi
14837 rm -rf conftest*
14838 ;;
14839 esac
14840
14841 # Append ld.so.conf contents to the search path
14842 if test -f /etc/ld.so.conf; then
14843 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14844 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14845 fi
14846
14847 # We used to test for /lib/ld.so.1 and disable shared libraries on
14848 # powerpc, because MkLinux only supported shared libraries with the
14849 # GNU dynamic linker. Since this was broken with cross compilers,
14850 # most powerpc-linux boxes support dynamic linking these days and
14851 # people can always --disable-shared, the test was removed, and we
14852 # assume the GNU/Linux dynamic linker is in use.
14853 dynamic_linker='GNU/Linux ld.so'
14854 ;;
14855
14856 knetbsd*-gnu)
14857 version_type=linux
14858 need_lib_prefix=no
14859 need_version=no
14860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14861 soname_spec='${libname}${release}${shared_ext}$major'
14862 shlibpath_var=LD_LIBRARY_PATH
14863 shlibpath_overrides_runpath=no
14864 hardcode_into_libs=yes
14865 dynamic_linker='GNU ld.so'
14866 ;;
14867
14868 netbsd*)
14869 version_type=sunos
14870 need_lib_prefix=no
14871 need_version=no
14872 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14874 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14875 dynamic_linker='NetBSD (a.out) ld.so'
14876 else
14877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14878 soname_spec='${libname}${release}${shared_ext}$major'
14879 dynamic_linker='NetBSD ld.elf_so'
14880 fi
14881 shlibpath_var=LD_LIBRARY_PATH
14882 shlibpath_overrides_runpath=yes
14883 hardcode_into_libs=yes
14884 ;;
14885
14886 newsos6)
14887 version_type=linux
14888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14889 shlibpath_var=LD_LIBRARY_PATH
14890 shlibpath_overrides_runpath=yes
14891 ;;
14892
14893 nto-qnx*)
14894 version_type=linux
14895 need_lib_prefix=no
14896 need_version=no
14897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14898 soname_spec='${libname}${release}${shared_ext}$major'
14899 shlibpath_var=LD_LIBRARY_PATH
14900 shlibpath_overrides_runpath=yes
14901 ;;
14902
14903 openbsd*)
14904 version_type=sunos
14905 sys_lib_dlsearch_path_spec="/usr/lib"
14906 need_lib_prefix=no
14907 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14908 case $host_os in
14909 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14910 *) need_version=no ;;
14911 esac
14912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14913 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14914 shlibpath_var=LD_LIBRARY_PATH
14915 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14916 case $host_os in
14917 openbsd2.[89] | openbsd2.[89].*)
14918 shlibpath_overrides_runpath=no
14919 ;;
14920 *)
14921 shlibpath_overrides_runpath=yes
14922 ;;
14923 esac
14924 else
14925 shlibpath_overrides_runpath=yes
14926 fi
14927 ;;
14928
14929 os2*)
14930 libname_spec='$name'
14931 shrext_cmds=".dll"
14932 need_lib_prefix=no
14933 library_names_spec='$libname${shared_ext} $libname.a'
14934 dynamic_linker='OS/2 ld.exe'
14935 shlibpath_var=LIBPATH
14936 ;;
14937
14938 osf3* | osf4* | osf5*)
14939 version_type=osf
14940 need_lib_prefix=no
14941 need_version=no
14942 soname_spec='${libname}${release}${shared_ext}$major'
14943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14944 shlibpath_var=LD_LIBRARY_PATH
14945 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14946 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14947 ;;
14948
14949 solaris*)
14950 version_type=linux
14951 need_lib_prefix=no
14952 need_version=no
14953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14954 soname_spec='${libname}${release}${shared_ext}$major'
14955 shlibpath_var=LD_LIBRARY_PATH
14956 shlibpath_overrides_runpath=yes
14957 hardcode_into_libs=yes
14958 # ldd complains unless libraries are executable
14959 postinstall_cmds='chmod +x $lib'
14960 ;;
14961
14962 sunos4*)
14963 version_type=sunos
14964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14965 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14966 shlibpath_var=LD_LIBRARY_PATH
14967 shlibpath_overrides_runpath=yes
14968 if test "$with_gnu_ld" = yes; then
14969 need_lib_prefix=no
14970 fi
14971 need_version=yes
14972 ;;
14973
14974 sysv4 | sysv4.3*)
14975 version_type=linux
14976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14977 soname_spec='${libname}${release}${shared_ext}$major'
14978 shlibpath_var=LD_LIBRARY_PATH
14979 case $host_vendor in
14980 sni)
14981 shlibpath_overrides_runpath=no
14982 need_lib_prefix=no
14983 export_dynamic_flag_spec='${wl}-Blargedynsym'
14984 runpath_var=LD_RUN_PATH
14985 ;;
14986 siemens)
14987 need_lib_prefix=no
14988 ;;
14989 motorola)
14990 need_lib_prefix=no
14991 need_version=no
14992 shlibpath_overrides_runpath=no
14993 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14994 ;;
14995 esac
14996 ;;
14997
14998 sysv4*MP*)
14999 if test -d /usr/nec ;then
15000 version_type=linux
15001 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15002 soname_spec='$libname${shared_ext}.$major'
15003 shlibpath_var=LD_LIBRARY_PATH
15004 fi
15005 ;;
15006
15007 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15008 version_type=freebsd-elf
15009 need_lib_prefix=no
15010 need_version=no
15011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15012 soname_spec='${libname}${release}${shared_ext}$major'
15013 shlibpath_var=LD_LIBRARY_PATH
15014 hardcode_into_libs=yes
15015 if test "$with_gnu_ld" = yes; then
15016 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15017 shlibpath_overrides_runpath=no
15018 else
15019 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15020 shlibpath_overrides_runpath=yes
15021 case $host_os in
15022 sco3.2v5*)
15023 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15024 ;;
15025 esac
15026 fi
15027 sys_lib_dlsearch_path_spec='/usr/lib'
15028 ;;
15029
15030 uts4*)
15031 version_type=linux
15032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15033 soname_spec='${libname}${release}${shared_ext}$major'
15034 shlibpath_var=LD_LIBRARY_PATH
15035 ;;
15036
15037 *)
15038 dynamic_linker=no
15039 ;;
15040 esac
15041 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15042 echo "${ECHO_T}$dynamic_linker" >&6
15043 test "$dynamic_linker" = no && can_build_shared=no
15044
15045 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15046 if test "$GCC" = yes; then
15047 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15048 fi
15049
15050 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15051 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15052 hardcode_action_F77=
15053 if test -n "$hardcode_libdir_flag_spec_F77" || \
15054 test -n "$runpath_var_F77" || \
15055 test "X$hardcode_automatic_F77" = "Xyes" ; then
15056
15057 # We can hardcode non-existant directories.
15058 if test "$hardcode_direct_F77" != no &&
15059 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15060 # have to relink, otherwise we might link with an installed library
15061 # when we should be linking with a yet-to-be-installed one
15062 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15063 test "$hardcode_minus_L_F77" != no; then
15064 # Linking always hardcodes the temporary library directory.
15065 hardcode_action_F77=relink
15066 else
15067 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15068 hardcode_action_F77=immediate
15069 fi
15070 else
15071 # We cannot hardcode anything, or else we can only hardcode existing
15072 # directories.
15073 hardcode_action_F77=unsupported
15074 fi
15075 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15076 echo "${ECHO_T}$hardcode_action_F77" >&6
15077
15078 if test "$hardcode_action_F77" = relink; then
15079 # Fast installation is not supported
15080 enable_fast_install=no
15081 elif test "$shlibpath_overrides_runpath" = yes ||
15082 test "$enable_shared" = no; then
15083 # Fast installation is not necessary
15084 enable_fast_install=needless
15085 fi
15086
15087
15088 # The else clause should only fire when bootstrapping the
15089 # libtool distribution, otherwise you forgot to ship ltmain.sh
15090 # with your package, and you will get complaints that there are
15091 # no rules to generate ltmain.sh.
15092 if test -f "$ltmain"; then
15093 # See if we are running on zsh, and set the options which allow our commands through
15094 # without removal of \ escapes.
15095 if test -n "${ZSH_VERSION+set}" ; then
15096 setopt NO_GLOB_SUBST
15097 fi
15098 # Now quote all the things that may contain metacharacters while being
15099 # careful not to overquote the AC_SUBSTed values. We take copies of the
15100 # variables and quote the copies for generation of the libtool script.
15101 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15102 SED SHELL STRIP \
15103 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15104 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15105 deplibs_check_method reload_flag reload_cmds need_locks \
15106 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15107 lt_cv_sys_global_symbol_to_c_name_address \
15108 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15109 old_postinstall_cmds old_postuninstall_cmds \
15110 compiler_F77 \
15111 CC_F77 \
15112 LD_F77 \
15113 lt_prog_compiler_wl_F77 \
15114 lt_prog_compiler_pic_F77 \
15115 lt_prog_compiler_static_F77 \
15116 lt_prog_compiler_no_builtin_flag_F77 \
15117 export_dynamic_flag_spec_F77 \
15118 thread_safe_flag_spec_F77 \
15119 whole_archive_flag_spec_F77 \
15120 enable_shared_with_static_runtimes_F77 \
15121 old_archive_cmds_F77 \
15122 old_archive_from_new_cmds_F77 \
15123 predep_objects_F77 \
15124 postdep_objects_F77 \
15125 predeps_F77 \
15126 postdeps_F77 \
15127 compiler_lib_search_path_F77 \
15128 archive_cmds_F77 \
15129 archive_expsym_cmds_F77 \
15130 postinstall_cmds_F77 \
15131 postuninstall_cmds_F77 \
15132 old_archive_from_expsyms_cmds_F77 \
15133 allow_undefined_flag_F77 \
15134 no_undefined_flag_F77 \
15135 export_symbols_cmds_F77 \
15136 hardcode_libdir_flag_spec_F77 \
15137 hardcode_libdir_flag_spec_ld_F77 \
15138 hardcode_libdir_separator_F77 \
15139 hardcode_automatic_F77 \
15140 module_cmds_F77 \
15141 module_expsym_cmds_F77 \
15142 lt_cv_prog_compiler_c_o_F77 \
15143 exclude_expsyms_F77 \
15144 include_expsyms_F77; do
15145
15146 case $var in
15147 old_archive_cmds_F77 | \
15148 old_archive_from_new_cmds_F77 | \
15149 archive_cmds_F77 | \
15150 archive_expsym_cmds_F77 | \
15151 module_cmds_F77 | \
15152 module_expsym_cmds_F77 | \
15153 old_archive_from_expsyms_cmds_F77 | \
15154 export_symbols_cmds_F77 | \
15155 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15156 postinstall_cmds | postuninstall_cmds | \
15157 old_postinstall_cmds | old_postuninstall_cmds | \
15158 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15159 # Double-quote double-evaled strings.
15160 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15161 ;;
15162 *)
15163 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15164 ;;
15165 esac
15166 done
15167
15168 case $lt_echo in
15169 *'\$0 --fallback-echo"')
15170 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15171 ;;
15172 esac
15173
15174 cfgfile="$ofile"
15175
15176 cat <<__EOF__ >> "$cfgfile"
15177 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15178
15179 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15180
15181 # Shell to use when invoking shell scripts.
15182 SHELL=$lt_SHELL
15183
15184 # Whether or not to build shared libraries.
15185 build_libtool_libs=$enable_shared
15186
15187 # Whether or not to build static libraries.
15188 build_old_libs=$enable_static
15189
15190 # Whether or not to add -lc for building shared libraries.
15191 build_libtool_need_lc=$archive_cmds_need_lc_F77
15192
15193 # Whether or not to disallow shared libs when runtime libs are static
15194 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15195
15196 # Whether or not to optimize for fast installation.
15197 fast_install=$enable_fast_install
15198
15199 # The host system.
15200 host_alias=$host_alias
15201 host=$host
15202 host_os=$host_os
15203
15204 # The build system.
15205 build_alias=$build_alias
15206 build=$build
15207 build_os=$build_os
15208
15209 # An echo program that does not interpret backslashes.
15210 echo=$lt_echo
15211
15212 # The archiver.
15213 AR=$lt_AR
15214 AR_FLAGS=$lt_AR_FLAGS
15215
15216 # A C compiler.
15217 LTCC=$lt_LTCC
15218
15219 # LTCC compiler flags.
15220 LTCFLAGS=$lt_LTCFLAGS
15221
15222 # A language-specific compiler.
15223 CC=$lt_compiler_F77
15224
15225 # Is the compiler the GNU C compiler?
15226 with_gcc=$GCC_F77
15227
15228 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15229 gcc_ver=\`gcc -dumpversion\`
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=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15365
15366 # Dependencies to place after the objects being linked to create a
15367 # shared library.
15368 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
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=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
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=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
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>/dev/null", \$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 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
17848 gcc_ver=\`gcc -dumpversion\`
17849
17850 # An ERE matcher.
17851 EGREP=$lt_EGREP
17852
17853 # The linker used to build libraries.
17854 LD=$lt_LD_GCJ
17855
17856 # Whether we need hard or soft links.
17857 LN_S=$lt_LN_S
17858
17859 # A BSD-compatible nm program.
17860 NM=$lt_NM
17861
17862 # A symbol stripping program
17863 STRIP=$lt_STRIP
17864
17865 # Used to examine libraries when file_magic_cmd begins "file"
17866 MAGIC_CMD=$MAGIC_CMD
17867
17868 # Used on cygwin: DLL creation program.
17869 DLLTOOL="$DLLTOOL"
17870
17871 # Used on cygwin: object dumper.
17872 OBJDUMP="$OBJDUMP"
17873
17874 # Used on cygwin: assembler.
17875 AS="$AS"
17876
17877 # The name of the directory that contains temporary libtool files.
17878 objdir=$objdir
17879
17880 # How to create reloadable object files.
17881 reload_flag=$lt_reload_flag
17882 reload_cmds=$lt_reload_cmds
17883
17884 # How to pass a linker flag through the compiler.
17885 wl=$lt_lt_prog_compiler_wl_GCJ
17886
17887 # Object file suffix (normally "o").
17888 objext="$ac_objext"
17889
17890 # Old archive suffix (normally "a").
17891 libext="$libext"
17892
17893 # Shared library suffix (normally ".so").
17894 shrext_cmds='$shrext_cmds'
17895
17896 # Executable file suffix (normally "").
17897 exeext="$exeext"
17898
17899 # Additional compiler flags for building library objects.
17900 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17901 pic_mode=$pic_mode
17902
17903 # What is the maximum length of a command?
17904 max_cmd_len=$lt_cv_sys_max_cmd_len
17905
17906 # Does compiler simultaneously support -c and -o options?
17907 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17908
17909 # Must we lock files when doing compilation?
17910 need_locks=$lt_need_locks
17911
17912 # Do we need the lib prefix for modules?
17913 need_lib_prefix=$need_lib_prefix
17914
17915 # Do we need a version for libraries?
17916 need_version=$need_version
17917
17918 # Whether dlopen is supported.
17919 dlopen_support=$enable_dlopen
17920
17921 # Whether dlopen of programs is supported.
17922 dlopen_self=$enable_dlopen_self
17923
17924 # Whether dlopen of statically linked programs is supported.
17925 dlopen_self_static=$enable_dlopen_self_static
17926
17927 # Compiler flag to prevent dynamic linking.
17928 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17929
17930 # Compiler flag to turn off builtin functions.
17931 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17932
17933 # Compiler flag to allow reflexive dlopens.
17934 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17935
17936 # Compiler flag to generate shared objects directly from archives.
17937 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17938
17939 # Compiler flag to generate thread-safe objects.
17940 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17941
17942 # Library versioning type.
17943 version_type=$version_type
17944
17945 # Format of library name prefix.
17946 libname_spec=$lt_libname_spec
17947
17948 # List of archive names. First name is the real one, the rest are links.
17949 # The last name is the one that the linker finds with -lNAME.
17950 library_names_spec=$lt_library_names_spec
17951
17952 # The coded name of the library, if different from the real name.
17953 soname_spec=$lt_soname_spec
17954
17955 # Commands used to build and install an old-style archive.
17956 RANLIB=$lt_RANLIB
17957 old_archive_cmds=$lt_old_archive_cmds_GCJ
17958 old_postinstall_cmds=$lt_old_postinstall_cmds
17959 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17960
17961 # Create an old-style archive from a shared archive.
17962 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17963
17964 # Create a temporary old-style archive to link instead of a shared archive.
17965 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17966
17967 # Commands used to build and install a shared archive.
17968 archive_cmds=$lt_archive_cmds_GCJ
17969 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17970 postinstall_cmds=$lt_postinstall_cmds
17971 postuninstall_cmds=$lt_postuninstall_cmds
17972
17973 # Commands used to build a loadable module (assumed same as above if empty)
17974 module_cmds=$lt_module_cmds_GCJ
17975 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17976
17977 # Commands to strip libraries.
17978 old_striplib=$lt_old_striplib
17979 striplib=$lt_striplib
17980
17981 # Dependencies to place before the objects being linked to create a
17982 # shared library.
17983 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
17984
17985 # Dependencies to place after the objects being linked to create a
17986 # shared library.
17987 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
17988
17989 # Dependencies to place before the objects being linked to create a
17990 # shared library.
17991 predeps=$lt_predeps_GCJ
17992
17993 # Dependencies to place after the objects being linked to create a
17994 # shared library.
17995 postdeps=$lt_postdeps_GCJ
17996
17997 # The library search path used internally by the compiler when linking
17998 # a shared library.
17999 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18000
18001 # Method to check whether dependent libraries are shared objects.
18002 deplibs_check_method=$lt_deplibs_check_method
18003
18004 # Command to use when deplibs_check_method == file_magic.
18005 file_magic_cmd=$lt_file_magic_cmd
18006
18007 # Flag that allows shared libraries with undefined symbols to be built.
18008 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18009
18010 # Flag that forces no undefined symbols.
18011 no_undefined_flag=$lt_no_undefined_flag_GCJ
18012
18013 # Commands used to finish a libtool library installation in a directory.
18014 finish_cmds=$lt_finish_cmds
18015
18016 # Same as above, but a single script fragment to be evaled but not shown.
18017 finish_eval=$lt_finish_eval
18018
18019 # Take the output of nm and produce a listing of raw symbols and C names.
18020 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18021
18022 # Transform the output of nm in a proper C declaration
18023 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18024
18025 # Transform the output of nm in a C name address pair
18026 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18027
18028 # This is the shared library runtime path variable.
18029 runpath_var=$runpath_var
18030
18031 # This is the shared library path variable.
18032 shlibpath_var=$shlibpath_var
18033
18034 # Is shlibpath searched before the hard-coded library search path?
18035 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18036
18037 # How to hardcode a shared library path into an executable.
18038 hardcode_action=$hardcode_action_GCJ
18039
18040 # Whether we should hardcode library paths into libraries.
18041 hardcode_into_libs=$hardcode_into_libs
18042
18043 # Flag to hardcode \$libdir into a binary during linking.
18044 # This must work even if \$libdir does not exist.
18045 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18046
18047 # If ld is used when linking, flag to hardcode \$libdir into
18048 # a binary during linking. This must work even if \$libdir does
18049 # not exist.
18050 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18051
18052 # Whether we need a single -rpath flag with a separated argument.
18053 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18054
18055 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18056 # resulting binary.
18057 hardcode_direct=$hardcode_direct_GCJ
18058
18059 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18060 # resulting binary.
18061 hardcode_minus_L=$hardcode_minus_L_GCJ
18062
18063 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18064 # the resulting binary.
18065 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18066
18067 # Set to yes if building a shared library automatically hardcodes DIR into the library
18068 # and all subsequent libraries and executables linked against it.
18069 hardcode_automatic=$hardcode_automatic_GCJ
18070
18071 # Variables whose values should be saved in libtool wrapper scripts and
18072 # restored at relink time.
18073 variables_saved_for_relink="$variables_saved_for_relink"
18074
18075 # Whether libtool must link a program against all its dependency libraries.
18076 link_all_deplibs=$link_all_deplibs_GCJ
18077
18078 # Compile-time system search path for libraries
18079 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18080
18081 # Run-time system search path for libraries
18082 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18083
18084 # Fix the shell variable \$srcfile for the compiler.
18085 fix_srcfile_path="$fix_srcfile_path_GCJ"
18086
18087 # Set to yes if exported symbols are required.
18088 always_export_symbols=$always_export_symbols_GCJ
18089
18090 # The commands to list exported symbols.
18091 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18092
18093 # The commands to extract the exported symbol list from a shared archive.
18094 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18095
18096 # Symbols that should not be listed in the preloaded symbols.
18097 exclude_expsyms=$lt_exclude_expsyms_GCJ
18098
18099 # Symbols that must always be exported.
18100 include_expsyms=$lt_include_expsyms_GCJ
18101
18102 # ### END LIBTOOL TAG CONFIG: $tagname
18103
18104 __EOF__
18105
18106
18107 else
18108 # If there is no Makefile yet, we rely on a make rule to execute
18109 # `config.status --recheck' to rerun these tests and create the
18110 # libtool script then.
18111 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18112 if test -f "$ltmain_in"; then
18113 test -f Makefile && make "$ltmain"
18114 fi
18115 fi
18116
18117
18118 ac_ext=c
18119 ac_cpp='$CPP $CPPFLAGS'
18120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18123
18124 CC="$lt_save_CC"
18125
18126 else
18127 tagname=""
18128 fi
18129 ;;
18130
18131 RC)
18132
18133
18134
18135 # Source file extension for RC test sources.
18136 ac_ext=rc
18137
18138 # Object file extension for compiled RC test sources.
18139 objext=o
18140 objext_RC=$objext
18141
18142 # Code to be used in simple compile tests
18143 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18144
18145 # Code to be used in simple link tests
18146 lt_simple_link_test_code="$lt_simple_compile_test_code"
18147
18148 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18149
18150 # If no C compiler was specified, use CC.
18151 LTCC=${LTCC-"$CC"}
18152
18153 # If no C compiler flags were specified, use CFLAGS.
18154 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18155
18156 # Allow CC to be a program name with arguments.
18157 compiler=$CC
18158
18159
18160 # save warnings/boilerplate of simple test code
18161 ac_outfile=conftest.$ac_objext
18162 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18163 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18164 _lt_compiler_boilerplate=`cat conftest.err`
18165 $rm conftest*
18166
18167 ac_outfile=conftest.$ac_objext
18168 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18169 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18170 _lt_linker_boilerplate=`cat conftest.err`
18171 $rm conftest*
18172
18173
18174 # Allow CC to be a program name with arguments.
18175 lt_save_CC="$CC"
18176 CC=${RC-"windres"}
18177 compiler=$CC
18178 compiler_RC=$CC
18179 for cc_temp in $compiler""; do
18180 case $cc_temp in
18181 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18182 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18183 \-*) ;;
18184 *) break;;
18185 esac
18186 done
18187 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18188
18189 lt_cv_prog_compiler_c_o_RC=yes
18190
18191 # The else clause should only fire when bootstrapping the
18192 # libtool distribution, otherwise you forgot to ship ltmain.sh
18193 # with your package, and you will get complaints that there are
18194 # no rules to generate ltmain.sh.
18195 if test -f "$ltmain"; then
18196 # See if we are running on zsh, and set the options which allow our commands through
18197 # without removal of \ escapes.
18198 if test -n "${ZSH_VERSION+set}" ; then
18199 setopt NO_GLOB_SUBST
18200 fi
18201 # Now quote all the things that may contain metacharacters while being
18202 # careful not to overquote the AC_SUBSTed values. We take copies of the
18203 # variables and quote the copies for generation of the libtool script.
18204 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18205 SED SHELL STRIP \
18206 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18207 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18208 deplibs_check_method reload_flag reload_cmds need_locks \
18209 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18210 lt_cv_sys_global_symbol_to_c_name_address \
18211 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18212 old_postinstall_cmds old_postuninstall_cmds \
18213 compiler_RC \
18214 CC_RC \
18215 LD_RC \
18216 lt_prog_compiler_wl_RC \
18217 lt_prog_compiler_pic_RC \
18218 lt_prog_compiler_static_RC \
18219 lt_prog_compiler_no_builtin_flag_RC \
18220 export_dynamic_flag_spec_RC \
18221 thread_safe_flag_spec_RC \
18222 whole_archive_flag_spec_RC \
18223 enable_shared_with_static_runtimes_RC \
18224 old_archive_cmds_RC \
18225 old_archive_from_new_cmds_RC \
18226 predep_objects_RC \
18227 postdep_objects_RC \
18228 predeps_RC \
18229 postdeps_RC \
18230 compiler_lib_search_path_RC \
18231 archive_cmds_RC \
18232 archive_expsym_cmds_RC \
18233 postinstall_cmds_RC \
18234 postuninstall_cmds_RC \
18235 old_archive_from_expsyms_cmds_RC \
18236 allow_undefined_flag_RC \
18237 no_undefined_flag_RC \
18238 export_symbols_cmds_RC \
18239 hardcode_libdir_flag_spec_RC \
18240 hardcode_libdir_flag_spec_ld_RC \
18241 hardcode_libdir_separator_RC \
18242 hardcode_automatic_RC \
18243 module_cmds_RC \
18244 module_expsym_cmds_RC \
18245 lt_cv_prog_compiler_c_o_RC \
18246 exclude_expsyms_RC \
18247 include_expsyms_RC; do
18248
18249 case $var in
18250 old_archive_cmds_RC | \
18251 old_archive_from_new_cmds_RC | \
18252 archive_cmds_RC | \
18253 archive_expsym_cmds_RC | \
18254 module_cmds_RC | \
18255 module_expsym_cmds_RC | \
18256 old_archive_from_expsyms_cmds_RC | \
18257 export_symbols_cmds_RC | \
18258 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18259 postinstall_cmds | postuninstall_cmds | \
18260 old_postinstall_cmds | old_postuninstall_cmds | \
18261 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18262 # Double-quote double-evaled strings.
18263 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18264 ;;
18265 *)
18266 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18267 ;;
18268 esac
18269 done
18270
18271 case $lt_echo in
18272 *'\$0 --fallback-echo"')
18273 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18274 ;;
18275 esac
18276
18277 cfgfile="$ofile"
18278
18279 cat <<__EOF__ >> "$cfgfile"
18280 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18281
18282 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18283
18284 # Shell to use when invoking shell scripts.
18285 SHELL=$lt_SHELL
18286
18287 # Whether or not to build shared libraries.
18288 build_libtool_libs=$enable_shared
18289
18290 # Whether or not to build static libraries.
18291 build_old_libs=$enable_static
18292
18293 # Whether or not to add -lc for building shared libraries.
18294 build_libtool_need_lc=$archive_cmds_need_lc_RC
18295
18296 # Whether or not to disallow shared libs when runtime libs are static
18297 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18298
18299 # Whether or not to optimize for fast installation.
18300 fast_install=$enable_fast_install
18301
18302 # The host system.
18303 host_alias=$host_alias
18304 host=$host
18305 host_os=$host_os
18306
18307 # The build system.
18308 build_alias=$build_alias
18309 build=$build
18310 build_os=$build_os
18311
18312 # An echo program that does not interpret backslashes.
18313 echo=$lt_echo
18314
18315 # The archiver.
18316 AR=$lt_AR
18317 AR_FLAGS=$lt_AR_FLAGS
18318
18319 # A C compiler.
18320 LTCC=$lt_LTCC
18321
18322 # LTCC compiler flags.
18323 LTCFLAGS=$lt_LTCFLAGS
18324
18325 # A language-specific compiler.
18326 CC=$lt_compiler_RC
18327
18328 # Is the compiler the GNU C compiler?
18329 with_gcc=$GCC_RC
18330
18331 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18332 gcc_ver=\`gcc -dumpversion\`
18333
18334 # An ERE matcher.
18335 EGREP=$lt_EGREP
18336
18337 # The linker used to build libraries.
18338 LD=$lt_LD_RC
18339
18340 # Whether we need hard or soft links.
18341 LN_S=$lt_LN_S
18342
18343 # A BSD-compatible nm program.
18344 NM=$lt_NM
18345
18346 # A symbol stripping program
18347 STRIP=$lt_STRIP
18348
18349 # Used to examine libraries when file_magic_cmd begins "file"
18350 MAGIC_CMD=$MAGIC_CMD
18351
18352 # Used on cygwin: DLL creation program.
18353 DLLTOOL="$DLLTOOL"
18354
18355 # Used on cygwin: object dumper.
18356 OBJDUMP="$OBJDUMP"
18357
18358 # Used on cygwin: assembler.
18359 AS="$AS"
18360
18361 # The name of the directory that contains temporary libtool files.
18362 objdir=$objdir
18363
18364 # How to create reloadable object files.
18365 reload_flag=$lt_reload_flag
18366 reload_cmds=$lt_reload_cmds
18367
18368 # How to pass a linker flag through the compiler.
18369 wl=$lt_lt_prog_compiler_wl_RC
18370
18371 # Object file suffix (normally "o").
18372 objext="$ac_objext"
18373
18374 # Old archive suffix (normally "a").
18375 libext="$libext"
18376
18377 # Shared library suffix (normally ".so").
18378 shrext_cmds='$shrext_cmds'
18379
18380 # Executable file suffix (normally "").
18381 exeext="$exeext"
18382
18383 # Additional compiler flags for building library objects.
18384 pic_flag=$lt_lt_prog_compiler_pic_RC
18385 pic_mode=$pic_mode
18386
18387 # What is the maximum length of a command?
18388 max_cmd_len=$lt_cv_sys_max_cmd_len
18389
18390 # Does compiler simultaneously support -c and -o options?
18391 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18392
18393 # Must we lock files when doing compilation?
18394 need_locks=$lt_need_locks
18395
18396 # Do we need the lib prefix for modules?
18397 need_lib_prefix=$need_lib_prefix
18398
18399 # Do we need a version for libraries?
18400 need_version=$need_version
18401
18402 # Whether dlopen is supported.
18403 dlopen_support=$enable_dlopen
18404
18405 # Whether dlopen of programs is supported.
18406 dlopen_self=$enable_dlopen_self
18407
18408 # Whether dlopen of statically linked programs is supported.
18409 dlopen_self_static=$enable_dlopen_self_static
18410
18411 # Compiler flag to prevent dynamic linking.
18412 link_static_flag=$lt_lt_prog_compiler_static_RC
18413
18414 # Compiler flag to turn off builtin functions.
18415 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18416
18417 # Compiler flag to allow reflexive dlopens.
18418 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18419
18420 # Compiler flag to generate shared objects directly from archives.
18421 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18422
18423 # Compiler flag to generate thread-safe objects.
18424 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18425
18426 # Library versioning type.
18427 version_type=$version_type
18428
18429 # Format of library name prefix.
18430 libname_spec=$lt_libname_spec
18431
18432 # List of archive names. First name is the real one, the rest are links.
18433 # The last name is the one that the linker finds with -lNAME.
18434 library_names_spec=$lt_library_names_spec
18435
18436 # The coded name of the library, if different from the real name.
18437 soname_spec=$lt_soname_spec
18438
18439 # Commands used to build and install an old-style archive.
18440 RANLIB=$lt_RANLIB
18441 old_archive_cmds=$lt_old_archive_cmds_RC
18442 old_postinstall_cmds=$lt_old_postinstall_cmds
18443 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18444
18445 # Create an old-style archive from a shared archive.
18446 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18447
18448 # Create a temporary old-style archive to link instead of a shared archive.
18449 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18450
18451 # Commands used to build and install a shared archive.
18452 archive_cmds=$lt_archive_cmds_RC
18453 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18454 postinstall_cmds=$lt_postinstall_cmds
18455 postuninstall_cmds=$lt_postuninstall_cmds
18456
18457 # Commands used to build a loadable module (assumed same as above if empty)
18458 module_cmds=$lt_module_cmds_RC
18459 module_expsym_cmds=$lt_module_expsym_cmds_RC
18460
18461 # Commands to strip libraries.
18462 old_striplib=$lt_old_striplib
18463 striplib=$lt_striplib
18464
18465 # Dependencies to place before the objects being linked to create a
18466 # shared library.
18467 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18468
18469 # Dependencies to place after the objects being linked to create a
18470 # shared library.
18471 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18472
18473 # Dependencies to place before the objects being linked to create a
18474 # shared library.
18475 predeps=$lt_predeps_RC
18476
18477 # Dependencies to place after the objects being linked to create a
18478 # shared library.
18479 postdeps=$lt_postdeps_RC
18480
18481 # The library search path used internally by the compiler when linking
18482 # a shared library.
18483 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18484
18485 # Method to check whether dependent libraries are shared objects.
18486 deplibs_check_method=$lt_deplibs_check_method
18487
18488 # Command to use when deplibs_check_method == file_magic.
18489 file_magic_cmd=$lt_file_magic_cmd
18490
18491 # Flag that allows shared libraries with undefined symbols to be built.
18492 allow_undefined_flag=$lt_allow_undefined_flag_RC
18493
18494 # Flag that forces no undefined symbols.
18495 no_undefined_flag=$lt_no_undefined_flag_RC
18496
18497 # Commands used to finish a libtool library installation in a directory.
18498 finish_cmds=$lt_finish_cmds
18499
18500 # Same as above, but a single script fragment to be evaled but not shown.
18501 finish_eval=$lt_finish_eval
18502
18503 # Take the output of nm and produce a listing of raw symbols and C names.
18504 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18505
18506 # Transform the output of nm in a proper C declaration
18507 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18508
18509 # Transform the output of nm in a C name address pair
18510 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18511
18512 # This is the shared library runtime path variable.
18513 runpath_var=$runpath_var
18514
18515 # This is the shared library path variable.
18516 shlibpath_var=$shlibpath_var
18517
18518 # Is shlibpath searched before the hard-coded library search path?
18519 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18520
18521 # How to hardcode a shared library path into an executable.
18522 hardcode_action=$hardcode_action_RC
18523
18524 # Whether we should hardcode library paths into libraries.
18525 hardcode_into_libs=$hardcode_into_libs
18526
18527 # Flag to hardcode \$libdir into a binary during linking.
18528 # This must work even if \$libdir does not exist.
18529 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18530
18531 # If ld is used when linking, flag to hardcode \$libdir into
18532 # a binary during linking. This must work even if \$libdir does
18533 # not exist.
18534 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18535
18536 # Whether we need a single -rpath flag with a separated argument.
18537 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18538
18539 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18540 # resulting binary.
18541 hardcode_direct=$hardcode_direct_RC
18542
18543 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18544 # resulting binary.
18545 hardcode_minus_L=$hardcode_minus_L_RC
18546
18547 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18548 # the resulting binary.
18549 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18550
18551 # Set to yes if building a shared library automatically hardcodes DIR into the library
18552 # and all subsequent libraries and executables linked against it.
18553 hardcode_automatic=$hardcode_automatic_RC
18554
18555 # Variables whose values should be saved in libtool wrapper scripts and
18556 # restored at relink time.
18557 variables_saved_for_relink="$variables_saved_for_relink"
18558
18559 # Whether libtool must link a program against all its dependency libraries.
18560 link_all_deplibs=$link_all_deplibs_RC
18561
18562 # Compile-time system search path for libraries
18563 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18564
18565 # Run-time system search path for libraries
18566 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18567
18568 # Fix the shell variable \$srcfile for the compiler.
18569 fix_srcfile_path="$fix_srcfile_path_RC"
18570
18571 # Set to yes if exported symbols are required.
18572 always_export_symbols=$always_export_symbols_RC
18573
18574 # The commands to list exported symbols.
18575 export_symbols_cmds=$lt_export_symbols_cmds_RC
18576
18577 # The commands to extract the exported symbol list from a shared archive.
18578 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18579
18580 # Symbols that should not be listed in the preloaded symbols.
18581 exclude_expsyms=$lt_exclude_expsyms_RC
18582
18583 # Symbols that must always be exported.
18584 include_expsyms=$lt_include_expsyms_RC
18585
18586 # ### END LIBTOOL TAG CONFIG: $tagname
18587
18588 __EOF__
18589
18590
18591 else
18592 # If there is no Makefile yet, we rely on a make rule to execute
18593 # `config.status --recheck' to rerun these tests and create the
18594 # libtool script then.
18595 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18596 if test -f "$ltmain_in"; then
18597 test -f Makefile && make "$ltmain"
18598 fi
18599 fi
18600
18601
18602 ac_ext=c
18603 ac_cpp='$CPP $CPPFLAGS'
18604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18607
18608 CC="$lt_save_CC"
18609
18610 ;;
18611
18612 *)
18613 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18614 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18615 { (exit 1); exit 1; }; }
18616 ;;
18617 esac
18618
18619 # Append the new tag name to the list of available tags.
18620 if test -n "$tagname" ; then
18621 available_tags="$available_tags $tagname"
18622 fi
18623 fi
18624 done
18625 IFS="$lt_save_ifs"
18626
18627 # Now substitute the updated list of available tags.
18628 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18629 mv "${ofile}T" "$ofile"
18630 chmod +x "$ofile"
18631 else
18632 rm -f "${ofile}T"
18633 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18634 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18635 { (exit 1); exit 1; }; }
18636 fi
18637 fi
18638
18639
18640
18641 # This can be used to rebuild libtool when needed
18642 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18643
18644 # Always use our own libtool.
18645 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18646
18647 # Prevent multiple expansion
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668 ac_ext=c
18669 ac_cpp='$CPP $CPPFLAGS'
18670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18673 if test -n "$ac_tool_prefix"; then
18674 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18675 set dummy ${ac_tool_prefix}gcc; ac_word=$2
18676 echo "$as_me:$LINENO: checking for $ac_word" >&5
18677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18678 if test "${ac_cv_prog_CC+set}" = set; then
18679 echo $ECHO_N "(cached) $ECHO_C" >&6
18680 else
18681 if test -n "$CC"; then
18682 ac_cv_prog_CC="$CC" # Let the user override the test.
18683 else
18684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18685 for as_dir in $PATH
18686 do
18687 IFS=$as_save_IFS
18688 test -z "$as_dir" && as_dir=.
18689 for ac_exec_ext in '' $ac_executable_extensions; do
18690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18691 ac_cv_prog_CC="${ac_tool_prefix}gcc"
18692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18693 break 2
18694 fi
18695 done
18696 done
18697
18698 fi
18699 fi
18700 CC=$ac_cv_prog_CC
18701 if test -n "$CC"; then
18702 echo "$as_me:$LINENO: result: $CC" >&5
18703 echo "${ECHO_T}$CC" >&6
18704 else
18705 echo "$as_me:$LINENO: result: no" >&5
18706 echo "${ECHO_T}no" >&6
18707 fi
18708
18709 fi
18710 if test -z "$ac_cv_prog_CC"; then
18711 ac_ct_CC=$CC
18712 # Extract the first word of "gcc", so it can be a program name with args.
18713 set dummy gcc; ac_word=$2
18714 echo "$as_me:$LINENO: checking for $ac_word" >&5
18715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18716 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18717 echo $ECHO_N "(cached) $ECHO_C" >&6
18718 else
18719 if test -n "$ac_ct_CC"; then
18720 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18721 else
18722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18723 for as_dir in $PATH
18724 do
18725 IFS=$as_save_IFS
18726 test -z "$as_dir" && as_dir=.
18727 for ac_exec_ext in '' $ac_executable_extensions; do
18728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18729 ac_cv_prog_ac_ct_CC="gcc"
18730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18731 break 2
18732 fi
18733 done
18734 done
18735
18736 fi
18737 fi
18738 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18739 if test -n "$ac_ct_CC"; then
18740 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18741 echo "${ECHO_T}$ac_ct_CC" >&6
18742 else
18743 echo "$as_me:$LINENO: result: no" >&5
18744 echo "${ECHO_T}no" >&6
18745 fi
18746
18747 CC=$ac_ct_CC
18748 else
18749 CC="$ac_cv_prog_CC"
18750 fi
18751
18752 if test -z "$CC"; then
18753 if test -n "$ac_tool_prefix"; then
18754 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18755 set dummy ${ac_tool_prefix}cc; ac_word=$2
18756 echo "$as_me:$LINENO: checking for $ac_word" >&5
18757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18758 if test "${ac_cv_prog_CC+set}" = set; then
18759 echo $ECHO_N "(cached) $ECHO_C" >&6
18760 else
18761 if test -n "$CC"; then
18762 ac_cv_prog_CC="$CC" # Let the user override the test.
18763 else
18764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18765 for as_dir in $PATH
18766 do
18767 IFS=$as_save_IFS
18768 test -z "$as_dir" && as_dir=.
18769 for ac_exec_ext in '' $ac_executable_extensions; do
18770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18771 ac_cv_prog_CC="${ac_tool_prefix}cc"
18772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18773 break 2
18774 fi
18775 done
18776 done
18777
18778 fi
18779 fi
18780 CC=$ac_cv_prog_CC
18781 if test -n "$CC"; then
18782 echo "$as_me:$LINENO: result: $CC" >&5
18783 echo "${ECHO_T}$CC" >&6
18784 else
18785 echo "$as_me:$LINENO: result: no" >&5
18786 echo "${ECHO_T}no" >&6
18787 fi
18788
18789 fi
18790 if test -z "$ac_cv_prog_CC"; then
18791 ac_ct_CC=$CC
18792 # Extract the first word of "cc", so it can be a program name with args.
18793 set dummy cc; ac_word=$2
18794 echo "$as_me:$LINENO: checking for $ac_word" >&5
18795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18796 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18797 echo $ECHO_N "(cached) $ECHO_C" >&6
18798 else
18799 if test -n "$ac_ct_CC"; then
18800 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18801 else
18802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18803 for as_dir in $PATH
18804 do
18805 IFS=$as_save_IFS
18806 test -z "$as_dir" && as_dir=.
18807 for ac_exec_ext in '' $ac_executable_extensions; do
18808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18809 ac_cv_prog_ac_ct_CC="cc"
18810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18811 break 2
18812 fi
18813 done
18814 done
18815
18816 fi
18817 fi
18818 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18819 if test -n "$ac_ct_CC"; then
18820 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18821 echo "${ECHO_T}$ac_ct_CC" >&6
18822 else
18823 echo "$as_me:$LINENO: result: no" >&5
18824 echo "${ECHO_T}no" >&6
18825 fi
18826
18827 CC=$ac_ct_CC
18828 else
18829 CC="$ac_cv_prog_CC"
18830 fi
18831
18832 fi
18833 if test -z "$CC"; then
18834 # Extract the first word of "cc", so it can be a program name with args.
18835 set dummy cc; ac_word=$2
18836 echo "$as_me:$LINENO: checking for $ac_word" >&5
18837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18838 if test "${ac_cv_prog_CC+set}" = set; then
18839 echo $ECHO_N "(cached) $ECHO_C" >&6
18840 else
18841 if test -n "$CC"; then
18842 ac_cv_prog_CC="$CC" # Let the user override the test.
18843 else
18844 ac_prog_rejected=no
18845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18846 for as_dir in $PATH
18847 do
18848 IFS=$as_save_IFS
18849 test -z "$as_dir" && as_dir=.
18850 for ac_exec_ext in '' $ac_executable_extensions; do
18851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18852 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18853 ac_prog_rejected=yes
18854 continue
18855 fi
18856 ac_cv_prog_CC="cc"
18857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18858 break 2
18859 fi
18860 done
18861 done
18862
18863 if test $ac_prog_rejected = yes; then
18864 # We found a bogon in the path, so make sure we never use it.
18865 set dummy $ac_cv_prog_CC
18866 shift
18867 if test $# != 0; then
18868 # We chose a different compiler from the bogus one.
18869 # However, it has the same basename, so the bogon will be chosen
18870 # first if we set CC to just the basename; use the full file name.
18871 shift
18872 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18873 fi
18874 fi
18875 fi
18876 fi
18877 CC=$ac_cv_prog_CC
18878 if test -n "$CC"; then
18879 echo "$as_me:$LINENO: result: $CC" >&5
18880 echo "${ECHO_T}$CC" >&6
18881 else
18882 echo "$as_me:$LINENO: result: no" >&5
18883 echo "${ECHO_T}no" >&6
18884 fi
18885
18886 fi
18887 if test -z "$CC"; then
18888 if test -n "$ac_tool_prefix"; then
18889 for ac_prog in cl
18890 do
18891 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18892 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18893 echo "$as_me:$LINENO: checking for $ac_word" >&5
18894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18895 if test "${ac_cv_prog_CC+set}" = set; then
18896 echo $ECHO_N "(cached) $ECHO_C" >&6
18897 else
18898 if test -n "$CC"; then
18899 ac_cv_prog_CC="$CC" # Let the user override the test.
18900 else
18901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18902 for as_dir in $PATH
18903 do
18904 IFS=$as_save_IFS
18905 test -z "$as_dir" && as_dir=.
18906 for ac_exec_ext in '' $ac_executable_extensions; do
18907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18908 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18910 break 2
18911 fi
18912 done
18913 done
18914
18915 fi
18916 fi
18917 CC=$ac_cv_prog_CC
18918 if test -n "$CC"; then
18919 echo "$as_me:$LINENO: result: $CC" >&5
18920 echo "${ECHO_T}$CC" >&6
18921 else
18922 echo "$as_me:$LINENO: result: no" >&5
18923 echo "${ECHO_T}no" >&6
18924 fi
18925
18926 test -n "$CC" && break
18927 done
18928 fi
18929 if test -z "$CC"; then
18930 ac_ct_CC=$CC
18931 for ac_prog in cl
18932 do
18933 # Extract the first word of "$ac_prog", so it can be a program name with args.
18934 set dummy $ac_prog; ac_word=$2
18935 echo "$as_me:$LINENO: checking for $ac_word" >&5
18936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18937 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18938 echo $ECHO_N "(cached) $ECHO_C" >&6
18939 else
18940 if test -n "$ac_ct_CC"; then
18941 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18942 else
18943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18944 for as_dir in $PATH
18945 do
18946 IFS=$as_save_IFS
18947 test -z "$as_dir" && as_dir=.
18948 for ac_exec_ext in '' $ac_executable_extensions; do
18949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18950 ac_cv_prog_ac_ct_CC="$ac_prog"
18951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18952 break 2
18953 fi
18954 done
18955 done
18956
18957 fi
18958 fi
18959 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18960 if test -n "$ac_ct_CC"; then
18961 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18962 echo "${ECHO_T}$ac_ct_CC" >&6
18963 else
18964 echo "$as_me:$LINENO: result: no" >&5
18965 echo "${ECHO_T}no" >&6
18966 fi
18967
18968 test -n "$ac_ct_CC" && break
18969 done
18970
18971 CC=$ac_ct_CC
18972 fi
18973
18974 fi
18975
18976
18977 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
18978 See \`config.log' for more details." >&5
18979 echo "$as_me: error: no acceptable C compiler found in \$PATH
18980 See \`config.log' for more details." >&2;}
18981 { (exit 1); exit 1; }; }
18982
18983 # Provide some information about the compiler.
18984 echo "$as_me:$LINENO:" \
18985 "checking for C compiler version" >&5
18986 ac_compiler=`set X $ac_compile; echo $2`
18987 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
18988 (eval $ac_compiler --version </dev/null >&5) 2>&5
18989 ac_status=$?
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); }
18992 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
18993 (eval $ac_compiler -v </dev/null >&5) 2>&5
18994 ac_status=$?
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); }
18997 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
18998 (eval $ac_compiler -V </dev/null >&5) 2>&5
18999 ac_status=$?
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }
19002
19003 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19004 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19005 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19006 echo $ECHO_N "(cached) $ECHO_C" >&6
19007 else
19008 cat >conftest.$ac_ext <<_ACEOF
19009 /* confdefs.h. */
19010 _ACEOF
19011 cat confdefs.h >>conftest.$ac_ext
19012 cat >>conftest.$ac_ext <<_ACEOF
19013 /* end confdefs.h. */
19014
19015 int
19016 main ()
19017 {
19018 #ifndef __GNUC__
19019 choke me
19020 #endif
19021
19022 ;
19023 return 0;
19024 }
19025 _ACEOF
19026 rm -f conftest.$ac_objext
19027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19028 (eval $ac_compile) 2>conftest.er1
19029 ac_status=$?
19030 grep -v '^ *+' conftest.er1 >conftest.err
19031 rm -f conftest.er1
19032 cat conftest.err >&5
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); } &&
19035 { ac_try='test -z "$ac_c_werror_flag"
19036 || test ! -s conftest.err'
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); }; } &&
19042 { ac_try='test -s conftest.$ac_objext'
19043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19044 (eval $ac_try) 2>&5
19045 ac_status=$?
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); }; }; then
19048 ac_compiler_gnu=yes
19049 else
19050 echo "$as_me: failed program was:" >&5
19051 sed 's/^/| /' conftest.$ac_ext >&5
19052
19053 ac_compiler_gnu=no
19054 fi
19055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19056 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19057
19058 fi
19059 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19060 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19061 GCC=`test $ac_compiler_gnu = yes && echo yes`
19062 ac_test_CFLAGS=${CFLAGS+set}
19063 ac_save_CFLAGS=$CFLAGS
19064 CFLAGS="-g"
19065 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19066 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19067 if test "${ac_cv_prog_cc_g+set}" = set; then
19068 echo $ECHO_N "(cached) $ECHO_C" >&6
19069 else
19070 cat >conftest.$ac_ext <<_ACEOF
19071 /* confdefs.h. */
19072 _ACEOF
19073 cat confdefs.h >>conftest.$ac_ext
19074 cat >>conftest.$ac_ext <<_ACEOF
19075 /* end confdefs.h. */
19076
19077 int
19078 main ()
19079 {
19080
19081 ;
19082 return 0;
19083 }
19084 _ACEOF
19085 rm -f conftest.$ac_objext
19086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19087 (eval $ac_compile) 2>conftest.er1
19088 ac_status=$?
19089 grep -v '^ *+' conftest.er1 >conftest.err
19090 rm -f conftest.er1
19091 cat conftest.err >&5
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); } &&
19094 { ac_try='test -z "$ac_c_werror_flag"
19095 || test ! -s conftest.err'
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); }; } &&
19101 { ac_try='test -s conftest.$ac_objext'
19102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19103 (eval $ac_try) 2>&5
19104 ac_status=$?
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); }; }; then
19107 ac_cv_prog_cc_g=yes
19108 else
19109 echo "$as_me: failed program was:" >&5
19110 sed 's/^/| /' conftest.$ac_ext >&5
19111
19112 ac_cv_prog_cc_g=no
19113 fi
19114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19115 fi
19116 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19117 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19118 if test "$ac_test_CFLAGS" = set; then
19119 CFLAGS=$ac_save_CFLAGS
19120 elif test $ac_cv_prog_cc_g = yes; then
19121 if test "$GCC" = yes; then
19122 CFLAGS="-g -O2"
19123 else
19124 CFLAGS="-g"
19125 fi
19126 else
19127 if test "$GCC" = yes; then
19128 CFLAGS="-O2"
19129 else
19130 CFLAGS=
19131 fi
19132 fi
19133 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19134 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19135 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19136 echo $ECHO_N "(cached) $ECHO_C" >&6
19137 else
19138 ac_cv_prog_cc_stdc=no
19139 ac_save_CC=$CC
19140 cat >conftest.$ac_ext <<_ACEOF
19141 /* confdefs.h. */
19142 _ACEOF
19143 cat confdefs.h >>conftest.$ac_ext
19144 cat >>conftest.$ac_ext <<_ACEOF
19145 /* end confdefs.h. */
19146 #include <stdarg.h>
19147 #include <stdio.h>
19148 #include <sys/types.h>
19149 #include <sys/stat.h>
19150 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19151 struct buf { int x; };
19152 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19153 static char *e (p, i)
19154 char **p;
19155 int i;
19156 {
19157 return p[i];
19158 }
19159 static char *f (char * (*g) (char **, int), char **p, ...)
19160 {
19161 char *s;
19162 va_list v;
19163 va_start (v,p);
19164 s = g (p, va_arg (v,int));
19165 va_end (v);
19166 return s;
19167 }
19168
19169 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19170 function prototypes and stuff, but not '\xHH' hex character constants.
19171 These don't provoke an error unfortunately, instead are silently treated
19172 as 'x'. The following induces an error, until -std1 is added to get
19173 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19174 array size at least. It's necessary to write '\x00'==0 to get something
19175 that's true only with -std1. */
19176 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19177
19178 int test (int i, double x);
19179 struct s1 {int (*f) (int a);};
19180 struct s2 {int (*f) (double a);};
19181 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19182 int argc;
19183 char **argv;
19184 int
19185 main ()
19186 {
19187 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19188 ;
19189 return 0;
19190 }
19191 _ACEOF
19192 # Don't try gcc -ansi; that turns off useful extensions and
19193 # breaks some systems' header files.
19194 # AIX -qlanglvl=ansi
19195 # Ultrix and OSF/1 -std1
19196 # HP-UX 10.20 and later -Ae
19197 # HP-UX older versions -Aa -D_HPUX_SOURCE
19198 # SVR4 -Xc -D__EXTENSIONS__
19199 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19200 do
19201 CC="$ac_save_CC $ac_arg"
19202 rm -f conftest.$ac_objext
19203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19204 (eval $ac_compile) 2>conftest.er1
19205 ac_status=$?
19206 grep -v '^ *+' conftest.er1 >conftest.err
19207 rm -f conftest.er1
19208 cat conftest.err >&5
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); } &&
19211 { ac_try='test -z "$ac_c_werror_flag"
19212 || test ! -s conftest.err'
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); }; } &&
19218 { ac_try='test -s conftest.$ac_objext'
19219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220 (eval $ac_try) 2>&5
19221 ac_status=$?
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; }; then
19224 ac_cv_prog_cc_stdc=$ac_arg
19225 break
19226 else
19227 echo "$as_me: failed program was:" >&5
19228 sed 's/^/| /' conftest.$ac_ext >&5
19229
19230 fi
19231 rm -f conftest.err conftest.$ac_objext
19232 done
19233 rm -f conftest.$ac_ext conftest.$ac_objext
19234 CC=$ac_save_CC
19235
19236 fi
19237
19238 case "x$ac_cv_prog_cc_stdc" in
19239 x|xno)
19240 echo "$as_me:$LINENO: result: none needed" >&5
19241 echo "${ECHO_T}none needed" >&6 ;;
19242 *)
19243 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19244 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19245 CC="$CC $ac_cv_prog_cc_stdc" ;;
19246 esac
19247
19248 # Some people use a C++ compiler to compile C. Since we use `exit',
19249 # in C++ we need to declare it. In case someone uses the same compiler
19250 # for both compiling C and C++ we need to have the C++ compiler decide
19251 # the declaration of exit, since it's the most demanding environment.
19252 cat >conftest.$ac_ext <<_ACEOF
19253 #ifndef __cplusplus
19254 choke me
19255 #endif
19256 _ACEOF
19257 rm -f conftest.$ac_objext
19258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19259 (eval $ac_compile) 2>conftest.er1
19260 ac_status=$?
19261 grep -v '^ *+' conftest.er1 >conftest.err
19262 rm -f conftest.er1
19263 cat conftest.err >&5
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); } &&
19266 { ac_try='test -z "$ac_c_werror_flag"
19267 || test ! -s conftest.err'
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); }; } &&
19273 { ac_try='test -s conftest.$ac_objext'
19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 (eval $ac_try) 2>&5
19276 ac_status=$?
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; }; then
19279 for ac_declaration in \
19280 '' \
19281 'extern "C" void std::exit (int) throw (); using std::exit;' \
19282 'extern "C" void std::exit (int); using std::exit;' \
19283 'extern "C" void exit (int) throw ();' \
19284 'extern "C" void exit (int);' \
19285 'void exit (int);'
19286 do
19287 cat >conftest.$ac_ext <<_ACEOF
19288 /* confdefs.h. */
19289 _ACEOF
19290 cat confdefs.h >>conftest.$ac_ext
19291 cat >>conftest.$ac_ext <<_ACEOF
19292 /* end confdefs.h. */
19293 $ac_declaration
19294 #include <stdlib.h>
19295 int
19296 main ()
19297 {
19298 exit (42);
19299 ;
19300 return 0;
19301 }
19302 _ACEOF
19303 rm -f conftest.$ac_objext
19304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19305 (eval $ac_compile) 2>conftest.er1
19306 ac_status=$?
19307 grep -v '^ *+' conftest.er1 >conftest.err
19308 rm -f conftest.er1
19309 cat conftest.err >&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); } &&
19312 { ac_try='test -z "$ac_c_werror_flag"
19313 || test ! -s conftest.err'
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); }; } &&
19319 { ac_try='test -s conftest.$ac_objext'
19320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321 (eval $ac_try) 2>&5
19322 ac_status=$?
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; }; then
19325 :
19326 else
19327 echo "$as_me: failed program was:" >&5
19328 sed 's/^/| /' conftest.$ac_ext >&5
19329
19330 continue
19331 fi
19332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19333 cat >conftest.$ac_ext <<_ACEOF
19334 /* confdefs.h. */
19335 _ACEOF
19336 cat confdefs.h >>conftest.$ac_ext
19337 cat >>conftest.$ac_ext <<_ACEOF
19338 /* end confdefs.h. */
19339 $ac_declaration
19340 int
19341 main ()
19342 {
19343 exit (42);
19344 ;
19345 return 0;
19346 }
19347 _ACEOF
19348 rm -f conftest.$ac_objext
19349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19350 (eval $ac_compile) 2>conftest.er1
19351 ac_status=$?
19352 grep -v '^ *+' conftest.er1 >conftest.err
19353 rm -f conftest.er1
19354 cat conftest.err >&5
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); } &&
19357 { ac_try='test -z "$ac_c_werror_flag"
19358 || test ! -s conftest.err'
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); }; } &&
19364 { ac_try='test -s conftest.$ac_objext'
19365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19366 (eval $ac_try) 2>&5
19367 ac_status=$?
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); }; }; then
19370 break
19371 else
19372 echo "$as_me: failed program was:" >&5
19373 sed 's/^/| /' conftest.$ac_ext >&5
19374
19375 fi
19376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19377 done
19378 rm -f conftest*
19379 if test -n "$ac_declaration"; then
19380 echo '#ifdef __cplusplus' >>confdefs.h
19381 echo $ac_declaration >>confdefs.h
19382 echo '#endif' >>confdefs.h
19383 fi
19384
19385 else
19386 echo "$as_me: failed program was:" >&5
19387 sed 's/^/| /' conftest.$ac_ext >&5
19388
19389 fi
19390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19391 ac_ext=c
19392 ac_cpp='$CPP $CPPFLAGS'
19393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19396
19397 depcc="$CC" am_compiler_list=
19398
19399 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19400 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19401 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19402 echo $ECHO_N "(cached) $ECHO_C" >&6
19403 else
19404 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19405 # We make a subdir and do the tests there. Otherwise we can end up
19406 # making bogus files that we don't know about and never remove. For
19407 # instance it was reported that on HP-UX the gcc test will end up
19408 # making a dummy file named `D' -- because `-MD' means `put the output
19409 # in D'.
19410 mkdir conftest.dir
19411 # Copy depcomp to subdir because otherwise we won't find it if we're
19412 # using a relative directory.
19413 cp "$am_depcomp" conftest.dir
19414 cd conftest.dir
19415 # We will build objects and dependencies in a subdirectory because
19416 # it helps to detect inapplicable dependency modes. For instance
19417 # both Tru64's cc and ICC support -MD to output dependencies as a
19418 # side effect of compilation, but ICC will put the dependencies in
19419 # the current directory while Tru64 will put them in the object
19420 # directory.
19421 mkdir sub
19422
19423 am_cv_CC_dependencies_compiler_type=none
19424 if test "$am_compiler_list" = ""; then
19425 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19426 fi
19427 for depmode in $am_compiler_list; do
19428 # Setup a source with many dependencies, because some compilers
19429 # like to wrap large dependency lists on column 80 (with \), and
19430 # we should not choose a depcomp mode which is confused by this.
19431 #
19432 # We need to recreate these files for each test, as the compiler may
19433 # overwrite some of them when testing with obscure command lines.
19434 # This happens at least with the AIX C compiler.
19435 : > sub/conftest.c
19436 for i in 1 2 3 4 5 6; do
19437 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19438 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19439 # Solaris 8's {/usr,}/bin/sh.
19440 touch sub/conftst$i.h
19441 done
19442 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19443
19444 case $depmode in
19445 nosideeffect)
19446 # after this tag, mechanisms are not by side-effect, so they'll
19447 # only be used when explicitly requested
19448 if test "x$enable_dependency_tracking" = xyes; then
19449 continue
19450 else
19451 break
19452 fi
19453 ;;
19454 none) break ;;
19455 esac
19456 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19457 # mode. It turns out that the SunPro C++ compiler does not properly
19458 # handle `-M -o', and we need to detect this.
19459 if depmode=$depmode \
19460 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19461 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19462 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19463 >/dev/null 2>conftest.err &&
19464 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19465 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19466 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19467 # icc doesn't choke on unknown options, it will just issue warnings
19468 # or remarks (even with -Werror). So we grep stderr for any message
19469 # that says an option was ignored or not supported.
19470 # When given -MP, icc 7.0 and 7.1 complain thusly:
19471 # icc: Command line warning: ignoring option '-M'; no argument required
19472 # The diagnosis changed in icc 8.0:
19473 # icc: Command line remark: option '-MP' not supported
19474 if (grep 'ignoring option' conftest.err ||
19475 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19476 am_cv_CC_dependencies_compiler_type=$depmode
19477 break
19478 fi
19479 fi
19480 done
19481
19482 cd ..
19483 rm -rf conftest.dir
19484 else
19485 am_cv_CC_dependencies_compiler_type=none
19486 fi
19487
19488 fi
19489 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19490 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19491 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19492
19493
19494
19495 if
19496 test "x$enable_dependency_tracking" != xno \
19497 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19498 am__fastdepCC_TRUE=
19499 am__fastdepCC_FALSE='#'
19500 else
19501 am__fastdepCC_TRUE='#'
19502 am__fastdepCC_FALSE=
19503 fi
19504
19505
19506
19507
19508
19509
19510
19511 # Check whether --with-xorg-module-dir or --without-xorg-module-dir was given.
19512 if test "${with_xorg_module_dir+set}" = set; then
19513 withval="$with_xorg_module_dir"
19514 moduledir="$withval"
19515 else
19516 moduledir="$libdir/xorg/modules"
19517 fi;
19518
19519 # Checks for extensions
19520
19521 SAVE_CFLAGS="$CFLAGS"
19522 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
19523 cat >conftest.$ac_ext <<_ACEOF
19524 /* confdefs.h. */
19525 _ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h. */
19529
19530 #include "xorg-server.h"
19531 #if !defined RANDR
19532 #error RANDR not defined
19533 #endif
19534
19535 int
19536 main ()
19537 {
19538
19539 ;
19540 return 0;
19541 }
19542 _ACEOF
19543 rm -f conftest.$ac_objext
19544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19545 (eval $ac_compile) 2>conftest.er1
19546 ac_status=$?
19547 grep -v '^ *+' conftest.er1 >conftest.err
19548 rm -f conftest.er1
19549 cat conftest.err >&5
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); } &&
19552 { ac_try='test -z "$ac_c_werror_flag"
19553 || test ! -s conftest.err'
19554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19555 (eval $ac_try) 2>&5
19556 ac_status=$?
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); }; } &&
19559 { ac_try='test -s conftest.$ac_objext'
19560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19561 (eval $ac_try) 2>&5
19562 ac_status=$?
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); }; }; then
19565 _EXT_CHECK=yes
19566 else
19567 echo "$as_me: failed program was:" >&5
19568 sed 's/^/| /' conftest.$ac_ext >&5
19569
19570 _EXT_CHECK=no
19571 fi
19572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19573 CFLAGS="$SAVE_CFLAGS"
19574 echo "$as_me:$LINENO: checking if RANDR is defined" >&5
19575 echo $ECHO_N "checking if RANDR is defined... $ECHO_C" >&6
19576 echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
19577 echo "${ECHO_T}$_EXT_CHECK" >&6
19578 if test "$_EXT_CHECK" != no; then
19579 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19580 fi
19581
19582
19583 SAVE_CFLAGS="$CFLAGS"
19584 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
19585 cat >conftest.$ac_ext <<_ACEOF
19586 /* confdefs.h. */
19587 _ACEOF
19588 cat confdefs.h >>conftest.$ac_ext
19589 cat >>conftest.$ac_ext <<_ACEOF
19590 /* end confdefs.h. */
19591
19592 #include "xorg-server.h"
19593 #if !defined RENDER
19594 #error RENDER not defined
19595 #endif
19596
19597 int
19598 main ()
19599 {
19600
19601 ;
19602 return 0;
19603 }
19604 _ACEOF
19605 rm -f conftest.$ac_objext
19606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19607 (eval $ac_compile) 2>conftest.er1
19608 ac_status=$?
19609 grep -v '^ *+' conftest.er1 >conftest.err
19610 rm -f conftest.er1
19611 cat conftest.err >&5
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); } &&
19614 { ac_try='test -z "$ac_c_werror_flag"
19615 || test ! -s conftest.err'
19616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19617 (eval $ac_try) 2>&5
19618 ac_status=$?
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); }; } &&
19621 { ac_try='test -s conftest.$ac_objext'
19622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19623 (eval $ac_try) 2>&5
19624 ac_status=$?
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); }; }; then
19627 _EXT_CHECK=yes
19628 else
19629 echo "$as_me: failed program was:" >&5
19630 sed 's/^/| /' conftest.$ac_ext >&5
19631
19632 _EXT_CHECK=no
19633 fi
19634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19635 CFLAGS="$SAVE_CFLAGS"
19636 echo "$as_me:$LINENO: checking if RENDER is defined" >&5
19637 echo $ECHO_N "checking if RENDER is defined... $ECHO_C" >&6
19638 echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
19639 echo "${ECHO_T}$_EXT_CHECK" >&6
19640 if test "$_EXT_CHECK" != no; then
19641 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
19642 fi
19643
19644
19645 SAVE_CFLAGS="$CFLAGS"
19646 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
19647 cat >conftest.$ac_ext <<_ACEOF
19648 /* confdefs.h. */
19649 _ACEOF
19650 cat confdefs.h >>conftest.$ac_ext
19651 cat >>conftest.$ac_ext <<_ACEOF
19652 /* end confdefs.h. */
19653
19654 #include "xorg-server.h"
19655 #if !defined XV
19656 #error XV not defined
19657 #endif
19658
19659 int
19660 main ()
19661 {
19662
19663 ;
19664 return 0;
19665 }
19666 _ACEOF
19667 rm -f conftest.$ac_objext
19668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19669 (eval $ac_compile) 2>conftest.er1
19670 ac_status=$?
19671 grep -v '^ *+' conftest.er1 >conftest.err
19672 rm -f conftest.er1
19673 cat conftest.err >&5
19674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); } &&
19676 { ac_try='test -z "$ac_c_werror_flag"
19677 || test ! -s conftest.err'
19678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19679 (eval $ac_try) 2>&5
19680 ac_status=$?
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); }; } &&
19683 { ac_try='test -s conftest.$ac_objext'
19684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19685 (eval $ac_try) 2>&5
19686 ac_status=$?
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); }; }; then
19689 _EXT_CHECK=yes
19690 else
19691 echo "$as_me: failed program was:" >&5
19692 sed 's/^/| /' conftest.$ac_ext >&5
19693
19694 _EXT_CHECK=no
19695 fi
19696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19697 CFLAGS="$SAVE_CFLAGS"
19698 echo "$as_me:$LINENO: checking if XV is defined" >&5
19699 echo $ECHO_N "checking if XV is defined... $ECHO_C" >&6
19700 echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
19701 echo "${ECHO_T}$_EXT_CHECK" >&6
19702 if test "$_EXT_CHECK" != no; then
19703 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
19704 fi
19705
19706
19707 # Checks for pkg-config packages
19708
19709
19710 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19711 if test -n "$ac_tool_prefix"; then
19712 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19713 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19714 echo "$as_me:$LINENO: checking for $ac_word" >&5
19715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19716 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19717 echo $ECHO_N "(cached) $ECHO_C" >&6
19718 else
19719 case $PKG_CONFIG in
19720 [\\/]* | ?:[\\/]*)
19721 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19722 ;;
19723 *)
19724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19725 for as_dir in $PATH
19726 do
19727 IFS=$as_save_IFS
19728 test -z "$as_dir" && as_dir=.
19729 for ac_exec_ext in '' $ac_executable_extensions; do
19730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19731 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19733 break 2
19734 fi
19735 done
19736 done
19737
19738 ;;
19739 esac
19740 fi
19741 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19742
19743 if test -n "$PKG_CONFIG"; then
19744 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19745 echo "${ECHO_T}$PKG_CONFIG" >&6
19746 else
19747 echo "$as_me:$LINENO: result: no" >&5
19748 echo "${ECHO_T}no" >&6
19749 fi
19750
19751 fi
19752 if test -z "$ac_cv_path_PKG_CONFIG"; then
19753 ac_pt_PKG_CONFIG=$PKG_CONFIG
19754 # Extract the first word of "pkg-config", so it can be a program name with args.
19755 set dummy pkg-config; ac_word=$2
19756 echo "$as_me:$LINENO: checking for $ac_word" >&5
19757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19758 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19759 echo $ECHO_N "(cached) $ECHO_C" >&6
19760 else
19761 case $ac_pt_PKG_CONFIG in
19762 [\\/]* | ?:[\\/]*)
19763 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19764 ;;
19765 *)
19766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19767 for as_dir in $PATH
19768 do
19769 IFS=$as_save_IFS
19770 test -z "$as_dir" && as_dir=.
19771 for ac_exec_ext in '' $ac_executable_extensions; do
19772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19773 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19775 break 2
19776 fi
19777 done
19778 done
19779
19780 ;;
19781 esac
19782 fi
19783 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19784
19785 if test -n "$ac_pt_PKG_CONFIG"; then
19786 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19787 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
19788 else
19789 echo "$as_me:$LINENO: result: no" >&5
19790 echo "${ECHO_T}no" >&6
19791 fi
19792
19793 PKG_CONFIG=$ac_pt_PKG_CONFIG
19794 else
19795 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19796 fi
19797
19798 fi
19799 if test -n "$PKG_CONFIG"; then
19800 _pkg_min_version=0.9.0
19801 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19802 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
19803 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19804 echo "$as_me:$LINENO: result: yes" >&5
19805 echo "${ECHO_T}yes" >&6
19806 else
19807 echo "$as_me:$LINENO: result: no" >&5
19808 echo "${ECHO_T}no" >&6
19809 PKG_CONFIG=""
19810 fi
19811
19812 fi
19813
19814 pkg_failed=no
19815 echo "$as_me:$LINENO: checking for XORG" >&5
19816 echo $ECHO_N "checking for XORG... $ECHO_C" >&6
19817
19818 if test -n "$PKG_CONFIG"; then
19819 if test -n "$XORG_CFLAGS"; then
19820 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19821 else
19822 if test -n "$PKG_CONFIG" && \
19823 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
19824 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
19825 ac_status=$?
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); }; then
19828 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19829 else
19830 pkg_failed=yes
19831 fi
19832 fi
19833 else
19834 pkg_failed=untried
19835 fi
19836 if test -n "$PKG_CONFIG"; then
19837 if test -n "$XORG_LIBS"; then
19838 pkg_cv_XORG_LIBS="$XORG_LIBS"
19839 else
19840 if test -n "$PKG_CONFIG" && \
19841 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
19842 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
19843 ac_status=$?
19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845 (exit $ac_status); }; then
19846 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19847 else
19848 pkg_failed=yes
19849 fi
19850 fi
19851 else
19852 pkg_failed=untried
19853 fi
19854
19855
19856
19857 if test $pkg_failed = yes; then
19858
19859 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19860 _pkg_short_errors_supported=yes
19861 else
19862 _pkg_short_errors_supported=no
19863 fi
19864 if test $_pkg_short_errors_supported = yes; then
19865 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES"`
19866 else
19867 XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES"`
19868 fi
19869 # Put the nasty error message in config.log where it belongs
19870 echo "$XORG_PKG_ERRORS" >&5
19871
19872 { { echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
19873
19874 $XORG_PKG_ERRORS
19875
19876 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19877 installed software in a non-standard prefix.
19878
19879 Alternatively, you may set the environment variables XORG_CFLAGS
19880 and XORG_LIBS to avoid the need to call pkg-config.
19881 See the pkg-config man page for more details.
19882 " >&5
19883 echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
19884
19885 $XORG_PKG_ERRORS
19886
19887 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19888 installed software in a non-standard prefix.
19889
19890 Alternatively, you may set the environment variables XORG_CFLAGS
19891 and XORG_LIBS to avoid the need to call pkg-config.
19892 See the pkg-config man page for more details.
19893 " >&2;}
19894 { (exit 1); exit 1; }; }
19895 elif test $pkg_failed = untried; then
19896 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
19897 is in your PATH or set the PKG_CONFIG environment variable to the full
19898 path to pkg-config.
19899
19900 Alternatively, you may set the environment variables XORG_CFLAGS
19901 and XORG_LIBS to avoid the need to call pkg-config.
19902 See the pkg-config man page for more details.
19903
19904 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19905 See \`config.log' for more details." >&5
19906 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
19907 is in your PATH or set the PKG_CONFIG environment variable to the full
19908 path to pkg-config.
19909
19910 Alternatively, you may set the environment variables XORG_CFLAGS
19911 and XORG_LIBS to avoid the need to call pkg-config.
19912 See the pkg-config man page for more details.
19913
19914 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19915 See \`config.log' for more details." >&2;}
19916 { (exit 1); exit 1; }; }
19917 else
19918 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19919 XORG_LIBS=$pkg_cv_XORG_LIBS
19920 echo "$as_me:$LINENO: result: yes" >&5
19921 echo "${ECHO_T}yes" >&6
19922 :
19923 fi
19924 sdkdir=$(pkg-config --variable=sdkdir xorg-server)
19925
19926 # Checks for libraries.
19927
19928 # Checks for header files.
19929 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19930 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19931 if test "${ac_cv_header_stdc+set}" = set; then
19932 echo $ECHO_N "(cached) $ECHO_C" >&6
19933 else
19934 cat >conftest.$ac_ext <<_ACEOF
19935 /* confdefs.h. */
19936 _ACEOF
19937 cat confdefs.h >>conftest.$ac_ext
19938 cat >>conftest.$ac_ext <<_ACEOF
19939 /* end confdefs.h. */
19940 #include <stdlib.h>
19941 #include <stdarg.h>
19942 #include <string.h>
19943 #include <float.h>
19944
19945 int
19946 main ()
19947 {
19948
19949 ;
19950 return 0;
19951 }
19952 _ACEOF
19953 rm -f conftest.$ac_objext
19954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19955 (eval $ac_compile) 2>conftest.er1
19956 ac_status=$?
19957 grep -v '^ *+' conftest.er1 >conftest.err
19958 rm -f conftest.er1
19959 cat conftest.err >&5
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); } &&
19962 { ac_try='test -z "$ac_c_werror_flag"
19963 || test ! -s conftest.err'
19964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19965 (eval $ac_try) 2>&5
19966 ac_status=$?
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); }; } &&
19969 { ac_try='test -s conftest.$ac_objext'
19970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19971 (eval $ac_try) 2>&5
19972 ac_status=$?
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); }; }; then
19975 ac_cv_header_stdc=yes
19976 else
19977 echo "$as_me: failed program was:" >&5
19978 sed 's/^/| /' conftest.$ac_ext >&5
19979
19980 ac_cv_header_stdc=no
19981 fi
19982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19983
19984 if test $ac_cv_header_stdc = yes; then
19985 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19986 cat >conftest.$ac_ext <<_ACEOF
19987 /* confdefs.h. */
19988 _ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h. */
19992 #include <string.h>
19993
19994 _ACEOF
19995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19996 $EGREP "memchr" >/dev/null 2>&1; then
19997 :
19998 else
19999 ac_cv_header_stdc=no
20000 fi
20001 rm -f conftest*
20002
20003 fi
20004
20005 if test $ac_cv_header_stdc = yes; then
20006 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20007 cat >conftest.$ac_ext <<_ACEOF
20008 /* confdefs.h. */
20009 _ACEOF
20010 cat confdefs.h >>conftest.$ac_ext
20011 cat >>conftest.$ac_ext <<_ACEOF
20012 /* end confdefs.h. */
20013 #include <stdlib.h>
20014
20015 _ACEOF
20016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20017 $EGREP "free" >/dev/null 2>&1; then
20018 :
20019 else
20020 ac_cv_header_stdc=no
20021 fi
20022 rm -f conftest*
20023
20024 fi
20025
20026 if test $ac_cv_header_stdc = yes; then
20027 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20028 if test "$cross_compiling" = yes; then
20029 :
20030 else
20031 cat >conftest.$ac_ext <<_ACEOF
20032 /* confdefs.h. */
20033 _ACEOF
20034 cat confdefs.h >>conftest.$ac_ext
20035 cat >>conftest.$ac_ext <<_ACEOF
20036 /* end confdefs.h. */
20037 #include <ctype.h>
20038 #if ((' ' & 0x0FF) == 0x020)
20039 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20040 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20041 #else
20042 # define ISLOWER(c) \
20043 (('a' <= (c) && (c) <= 'i') \
20044 || ('j' <= (c) && (c) <= 'r') \
20045 || ('s' <= (c) && (c) <= 'z'))
20046 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20047 #endif
20048
20049 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20050 int
20051 main ()
20052 {
20053 int i;
20054 for (i = 0; i < 256; i++)
20055 if (XOR (islower (i), ISLOWER (i))
20056 || toupper (i) != TOUPPER (i))
20057 exit(2);
20058 exit (0);
20059 }
20060 _ACEOF
20061 rm -f conftest$ac_exeext
20062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20063 (eval $ac_link) 2>&5
20064 ac_status=$?
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20068 (eval $ac_try) 2>&5
20069 ac_status=$?
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); }; }; then
20072 :
20073 else
20074 echo "$as_me: program exited with status $ac_status" >&5
20075 echo "$as_me: failed program was:" >&5
20076 sed 's/^/| /' conftest.$ac_ext >&5
20077
20078 ( exit $ac_status )
20079 ac_cv_header_stdc=no
20080 fi
20081 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20082 fi
20083 fi
20084 fi
20085 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20086 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20087 if test $ac_cv_header_stdc = yes; then
20088
20089 cat >>confdefs.h <<\_ACEOF
20090 #define STDC_HEADERS 1
20091 _ACEOF
20092
20093 fi
20094
20095
20096
20097
20098
20099 DRIVER_NAME=newport
20100
20101
20102
20103
20104
20105 if test x$APP_MAN_SUFFIX = x ; then
20106 APP_MAN_SUFFIX=1
20107 fi
20108 if test x$APP_MAN_DIR = x ; then
20109 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20110 fi
20111
20112 if test x$LIB_MAN_SUFFIX = x ; then
20113 LIB_MAN_SUFFIX=3
20114 fi
20115 if test x$LIB_MAN_DIR = x ; then
20116 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20117 fi
20118
20119 if test x$FILE_MAN_SUFFIX = x ; then
20120 case $host_os in
20121 solaris*) FILE_MAN_SUFFIX=4 ;;
20122 *) FILE_MAN_SUFFIX=5 ;;
20123 esac
20124 fi
20125 if test x$FILE_MAN_DIR = x ; then
20126 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20127 fi
20128
20129 if test x$MISC_MAN_SUFFIX = x ; then
20130 case $host_os in
20131 solaris*) MISC_MAN_SUFFIX=5 ;;
20132 *) MISC_MAN_SUFFIX=7 ;;
20133 esac
20134 fi
20135 if test x$MISC_MAN_DIR = x ; then
20136 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20137 fi
20138
20139 if test x$DRIVER_MAN_SUFFIX = x ; then
20140 case $host_os in
20141 solaris*) DRIVER_MAN_SUFFIX=7 ;;
20142 *) DRIVER_MAN_SUFFIX=4 ;;
20143 esac
20144 fi
20145 if test x$DRIVER_MAN_DIR = x ; then
20146 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20147 fi
20148
20149 if test x$ADMIN_MAN_SUFFIX = x ; then
20150 case $host_os in
20151 solaris*) ADMIN_MAN_SUFFIX=1m ;;
20152 *) ADMIN_MAN_SUFFIX=8 ;;
20153 esac
20154 fi
20155 if test x$ADMIN_MAN_DIR = x ; then
20156 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20157 fi
20158
20159
20160
20161
20162
20163
20164
20165
20166
20167
20168
20169
20170
20171
20172
20173
20174
20175 # Check whether --with-release-version or --without-release-version was given.
20176 if test "${with_release_version+set}" = set; then
20177 withval="$with_release_version"
20178 RELEASE_VERSION="$withval"
20179 else
20180 RELEASE_VERSION=""
20181 fi;
20182 if test "x$RELEASE_VERSION" != "x"; then
20183 PACKAGE="$PACKAGE-$RELEASE_VERSION"
20184 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
20185 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
20186 echo "$as_me: Building with package name set to $PACKAGE" >&6;}
20187 fi
20188
20189
20190
20191 as_ac_File=`echo "ac_cv_file_$prefix/share/X11/sgml/defs.ent" | $as_tr_sh`
20192 echo "$as_me:$LINENO: checking for $prefix/share/X11/sgml/defs.ent" >&5
20193 echo $ECHO_N "checking for $prefix/share/X11/sgml/defs.ent... $ECHO_C" >&6
20194 if eval "test \"\${$as_ac_File+set}\" = set"; then
20195 echo $ECHO_N "(cached) $ECHO_C" >&6
20196 else
20197 test "$cross_compiling" = yes &&
20198 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
20199 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
20200 { (exit 1); exit 1; }; }
20201 if test -r "$prefix/share/X11/sgml/defs.ent"; then
20202 eval "$as_ac_File=yes"
20203 else
20204 eval "$as_ac_File=no"
20205 fi
20206 fi
20207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
20208 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
20209 if test `eval echo '${'$as_ac_File'}'` = yes; then
20210 DEFS_ENT_PATH=$prefix/share/X11/sgml
20211 else
20212 DEFS_ENT_PATH=
20213
20214 fi
20215
20216
20217 # Extract the first word of "linuxdoc", so it can be a program name with args.
20218 set dummy linuxdoc; ac_word=$2
20219 echo "$as_me:$LINENO: checking for $ac_word" >&5
20220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20221 if test "${ac_cv_path_LINUXDOC+set}" = set; then
20222 echo $ECHO_N "(cached) $ECHO_C" >&6
20223 else
20224 case $LINUXDOC in
20225 [\\/]* | ?:[\\/]*)
20226 ac_cv_path_LINUXDOC="$LINUXDOC" # Let the user override the test with a path.
20227 ;;
20228 *)
20229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20230 for as_dir in $PATH
20231 do
20232 IFS=$as_save_IFS
20233 test -z "$as_dir" && as_dir=.
20234 for ac_exec_ext in '' $ac_executable_extensions; do
20235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20236 ac_cv_path_LINUXDOC="$as_dir/$ac_word$ac_exec_ext"
20237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20238 break 2
20239 fi
20240 done
20241 done
20242
20243 ;;
20244 esac
20245 fi
20246 LINUXDOC=$ac_cv_path_LINUXDOC
20247
20248 if test -n "$LINUXDOC"; then
20249 echo "$as_me:$LINENO: result: $LINUXDOC" >&5
20250 echo "${ECHO_T}$LINUXDOC" >&6
20251 else
20252 echo "$as_me:$LINENO: result: no" >&5
20253 echo "${ECHO_T}no" >&6
20254 fi
20255
20256 # Extract the first word of "ps2pdf", so it can be a program name with args.
20257 set dummy ps2pdf; ac_word=$2
20258 echo "$as_me:$LINENO: checking for $ac_word" >&5
20259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20260 if test "${ac_cv_path_PS2PDF+set}" = set; then
20261 echo $ECHO_N "(cached) $ECHO_C" >&6
20262 else
20263 case $PS2PDF in
20264 [\\/]* | ?:[\\/]*)
20265 ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
20266 ;;
20267 *)
20268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20269 for as_dir in $PATH
20270 do
20271 IFS=$as_save_IFS
20272 test -z "$as_dir" && as_dir=.
20273 for ac_exec_ext in '' $ac_executable_extensions; do
20274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20275 ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
20276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20277 break 2
20278 fi
20279 done
20280 done
20281
20282 ;;
20283 esac
20284 fi
20285 PS2PDF=$ac_cv_path_PS2PDF
20286
20287 if test -n "$PS2PDF"; then
20288 echo "$as_me:$LINENO: result: $PS2PDF" >&5
20289 echo "${ECHO_T}$PS2PDF" >&6
20290 else
20291 echo "$as_me:$LINENO: result: no" >&5
20292 echo "${ECHO_T}no" >&6
20293 fi
20294
20295
20296 echo "$as_me:$LINENO: checking Whether to build documentation" >&5
20297 echo $ECHO_N "checking Whether to build documentation... $ECHO_C" >&6
20298
20299 if test x$DEFS_ENT_PATH != x && test x$LINUXDOC != x ; then
20300 BUILDDOC=yes
20301 else
20302 BUILDDOC=no
20303 fi
20304
20305
20306
20307 if test x$BUILDDOC = xyes; then
20308 BUILD_LINUXDOC_TRUE=
20309 BUILD_LINUXDOC_FALSE='#'
20310 else
20311 BUILD_LINUXDOC_TRUE='#'
20312 BUILD_LINUXDOC_FALSE=
20313 fi
20314
20315
20316 echo "$as_me:$LINENO: result: $BUILDDOC" >&5
20317 echo "${ECHO_T}$BUILDDOC" >&6
20318
20319 echo "$as_me:$LINENO: checking Whether to build pdf documentation" >&5
20320 echo $ECHO_N "checking Whether to build pdf documentation... $ECHO_C" >&6
20321
20322 if test x$PS2PDF != x ; then
20323 BUILDPDFDOC=yes
20324 else
20325 BUILDPDFDOC=no
20326 fi
20327
20328
20329
20330 if test x$BUILDPDFDOC = xyes; then
20331 BUILD_PDFDOC_TRUE=
20332 BUILD_PDFDOC_FALSE='#'
20333 else
20334 BUILD_PDFDOC_TRUE='#'
20335 BUILD_PDFDOC_FALSE=
20336 fi
20337
20338
20339 echo "$as_me:$LINENO: result: $BUILDPDFDOC" >&5
20340 echo "${ECHO_T}$BUILDPDFDOC" >&6
20341
20342 MAKE_TEXT="SGML_SEARCH_PATH=$DEFS_ENT_PATH GROFF_NO_SGR=y $LINUXDOC -B txt"
20343 MAKE_PS="SGML_SEARCH_PATH=$DEFS_ENT_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
20344 MAKE_PDF="$PS2PDF"
20345 MAKE_HTML="SGML_SEARCH_PATH=$DEFS_ENT_PATH $LINUXDOC -B html --split=0"
20346
20347
20348
20349
20350
20351
20352
20353 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
20354 cat >confcache <<\_ACEOF
20355 # This file is a shell script that caches the results of configure
20356 # tests run on this system so they can be shared between configure
20357 # scripts and configure runs, see configure's option --config-cache.
20358 # It is not useful on other systems. If it contains results you don't
20359 # want to keep, you may remove or edit it.
20360 #
20361 # config.status only pays attention to the cache file if you give it
20362 # the --recheck option to rerun configure.
20363 #
20364 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20365 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20366 # following values.
20367
20368 _ACEOF
20369
20370 # The following way of writing the cache mishandles newlines in values,
20371 # but we know of no workaround that is simple, portable, and efficient.
20372 # So, don't put newlines in cache variables' values.
20373 # Ultrix sh set writes to stderr and can't be redirected directly,
20374 # and sets the high bit in the cache file unless we assign to the vars.
20375 {
20376 (set) 2>&1 |
20377 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20378 *ac_space=\ *)
20379 # `set' does not quote correctly, so add quotes (double-quote
20380 # substitution turns \\\\ into \\, and sed turns \\ into \).
20381 sed -n \
20382 "s/'/'\\\\''/g;
20383 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20384 ;;
20385 *)
20386 # `set' quotes correctly as required by POSIX, so do not add quotes.
20387 sed -n \
20388 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20389 ;;
20390 esac;
20391 } |
20392 sed '
20393 t clear
20394 : clear
20395 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20396 t end
20397 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20398 : end' >>confcache
20399 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20400 if test -w $cache_file; then
20401 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20402 cat confcache >$cache_file
20403 else
20404 echo "not updating unwritable cache $cache_file"
20405 fi
20406 fi
20407 rm -f confcache
20408
20409 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20410 # Let make expand exec_prefix.
20411 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20412
20413 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20414 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20415 # trailing colons and then remove the whole line if VPATH becomes empty
20416 # (actually we leave an empty line to preserve line numbers).
20417 if test "x$srcdir" = x.; then
20418 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20419 s/:*\$(srcdir):*/:/;
20420 s/:*\${srcdir}:*/:/;
20421 s/:*@srcdir@:*/:/;
20422 s/^\([^=]*=[ ]*\):*/\1/;
20423 s/:*$//;
20424 s/^[^=]*=[ ]*$//;
20425 }'
20426 fi
20427
20428 DEFS=-DHAVE_CONFIG_H
20429
20430 ac_libobjs=
20431 ac_ltlibobjs=
20432 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20433 # 1. Remove the extension, and $U if already installed.
20434 ac_i=`echo "$ac_i" |
20435 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20436 # 2. Add them.
20437 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20438 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20439 done
20440 LIBOBJS=$ac_libobjs
20441
20442 LTLIBOBJS=$ac_ltlibobjs
20443
20444
20445 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20446 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20447 Usually this means the macro was only invoked conditionally." >&5
20448 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20449 Usually this means the macro was only invoked conditionally." >&2;}
20450 { (exit 1); exit 1; }; }
20451 fi
20452 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20453 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20454 Usually this means the macro was only invoked conditionally." >&5
20455 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20456 Usually this means the macro was only invoked conditionally." >&2;}
20457 { (exit 1); exit 1; }; }
20458 fi
20459 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20460 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20461 Usually this means the macro was only invoked conditionally." >&5
20462 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20463 Usually this means the macro was only invoked conditionally." >&2;}
20464 { (exit 1); exit 1; }; }
20465 fi
20466 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20467 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20468 Usually this means the macro was only invoked conditionally." >&5
20469 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20470 Usually this means the macro was only invoked conditionally." >&2;}
20471 { (exit 1); exit 1; }; }
20472 fi
20473 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20474 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20475 Usually this means the macro was only invoked conditionally." >&5
20476 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20477 Usually this means the macro was only invoked conditionally." >&2;}
20478 { (exit 1); exit 1; }; }
20479 fi
20480 if test -z "${BUILD_LINUXDOC_TRUE}" && test -z "${BUILD_LINUXDOC_FALSE}"; then
20481 { { echo "$as_me:$LINENO: error: conditional \"BUILD_LINUXDOC\" was never defined.
20482 Usually this means the macro was only invoked conditionally." >&5
20483 echo "$as_me: error: conditional \"BUILD_LINUXDOC\" was never defined.
20484 Usually this means the macro was only invoked conditionally." >&2;}
20485 { (exit 1); exit 1; }; }
20486 fi
20487 if test -z "${BUILD_PDFDOC_TRUE}" && test -z "${BUILD_PDFDOC_FALSE}"; then
20488 { { echo "$as_me:$LINENO: error: conditional \"BUILD_PDFDOC\" was never defined.
20489 Usually this means the macro was only invoked conditionally." >&5
20490 echo "$as_me: error: conditional \"BUILD_PDFDOC\" was never defined.
20491 Usually this means the macro was only invoked conditionally." >&2;}
20492 { (exit 1); exit 1; }; }
20493 fi
20494
20495 : ${CONFIG_STATUS=./config.status}
20496 ac_clean_files_save=$ac_clean_files
20497 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20498 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20499 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20500 cat >$CONFIG_STATUS <<_ACEOF
20501 #! $SHELL
20502 # Generated by $as_me.
20503 # Run this file to recreate the current configuration.
20504 # Compiler output produced by configure, useful for debugging
20505 # configure, is in config.log if it exists.
20506
20507 debug=false
20508 ac_cs_recheck=false
20509 ac_cs_silent=false
20510 SHELL=\${CONFIG_SHELL-$SHELL}
20511 _ACEOF
20512
20513 cat >>$CONFIG_STATUS <<\_ACEOF
20514 ## --------------------- ##
20515 ## M4sh Initialization. ##
20516 ## --------------------- ##
20517
20518 # Be Bourne compatible
20519 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20520 emulate sh
20521 NULLCMD=:
20522 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20523 # is contrary to our usage. Disable this feature.
20524 alias -g '${1+"$@"}'='"$@"'
20525 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20526 set -o posix
20527 fi
20528 DUALCASE=1; export DUALCASE # for MKS sh
20529
20530 # Support unset when possible.
20531 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20532 as_unset=unset
20533 else
20534 as_unset=false
20535 fi
20536
20537
20538 # Work around bugs in pre-3.0 UWIN ksh.
20539 $as_unset ENV MAIL MAILPATH
20540 PS1='$ '
20541 PS2='> '
20542 PS4='+ '
20543
20544 # NLS nuisances.
20545 for as_var in \
20546 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20547 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20548 LC_TELEPHONE LC_TIME
20549 do
20550 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20551 eval $as_var=C; export $as_var
20552 else
20553 $as_unset $as_var
20554 fi
20555 done
20556
20557 # Required to use basename.
20558 if expr a : '\(a\)' >/dev/null 2>&1; then
20559 as_expr=expr
20560 else
20561 as_expr=false
20562 fi
20563
20564 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20565 as_basename=basename
20566 else
20567 as_basename=false
20568 fi
20569
20570
20571 # Name of the executable.
20572 as_me=`$as_basename "$0" ||
20573 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20574 X"$0" : 'X\(//\)$' \| \
20575 X"$0" : 'X\(/\)$' \| \
20576 . : '\(.\)' 2>/dev/null ||
20577 echo X/"$0" |
20578 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20579 /^X\/\(\/\/\)$/{ s//\1/; q; }
20580 /^X\/\(\/\).*/{ s//\1/; q; }
20581 s/.*/./; q'`
20582
20583
20584 # PATH needs CR, and LINENO needs CR and PATH.
20585 # Avoid depending upon Character Ranges.
20586 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20587 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20588 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20589 as_cr_digits='0123456789'
20590 as_cr_alnum=$as_cr_Letters$as_cr_digits
20591
20592 # The user is always right.
20593 if test "${PATH_SEPARATOR+set}" != set; then
20594 echo "#! /bin/sh" >conf$$.sh
20595 echo "exit 0" >>conf$$.sh
20596 chmod +x conf$$.sh
20597 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20598 PATH_SEPARATOR=';'
20599 else
20600 PATH_SEPARATOR=:
20601 fi
20602 rm -f conf$$.sh
20603 fi
20604
20605
20606 as_lineno_1=$LINENO
20607 as_lineno_2=$LINENO
20608 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20609 test "x$as_lineno_1" != "x$as_lineno_2" &&
20610 test "x$as_lineno_3" = "x$as_lineno_2" || {
20611 # Find who we are. Look in the path if we contain no path at all
20612 # relative or not.
20613 case $0 in
20614 *[\\/]* ) as_myself=$0 ;;
20615 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20616 for as_dir in $PATH
20617 do
20618 IFS=$as_save_IFS
20619 test -z "$as_dir" && as_dir=.
20620 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20621 done
20622
20623 ;;
20624 esac
20625 # We did not find ourselves, most probably we were run as `sh COMMAND'
20626 # in which case we are not to be found in the path.
20627 if test "x$as_myself" = x; then
20628 as_myself=$0
20629 fi
20630 if test ! -f "$as_myself"; then
20631 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20632 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20633 { (exit 1); exit 1; }; }
20634 fi
20635 case $CONFIG_SHELL in
20636 '')
20637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20638 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20639 do
20640 IFS=$as_save_IFS
20641 test -z "$as_dir" && as_dir=.
20642 for as_base in sh bash ksh sh5; do
20643 case $as_dir in
20644 /*)
20645 if ("$as_dir/$as_base" -c '
20646 as_lineno_1=$LINENO
20647 as_lineno_2=$LINENO
20648 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20649 test "x$as_lineno_1" != "x$as_lineno_2" &&
20650 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20651 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20652 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20653 CONFIG_SHELL=$as_dir/$as_base
20654 export CONFIG_SHELL
20655 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20656 fi;;
20657 esac
20658 done
20659 done
20660 ;;
20661 esac
20662
20663 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20664 # uniformly replaced by the line number. The first 'sed' inserts a
20665 # line-number line before each line; the second 'sed' does the real
20666 # work. The second script uses 'N' to pair each line-number line
20667 # with the numbered line, and appends trailing '-' during
20668 # substitution so that $LINENO is not a special case at line end.
20669 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20670 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20671 sed '=' <$as_myself |
20672 sed '
20673 N
20674 s,$,-,
20675 : loop
20676 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20677 t loop
20678 s,-$,,
20679 s,^['$as_cr_digits']*\n,,
20680 ' >$as_me.lineno &&
20681 chmod +x $as_me.lineno ||
20682 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20683 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20684 { (exit 1); exit 1; }; }
20685
20686 # Don't try to exec as it changes $[0], causing all sort of problems
20687 # (the dirname of $[0] is not the place where we might find the
20688 # original and so on. Autoconf is especially sensible to this).
20689 . ./$as_me.lineno
20690 # Exit status is that of the last command.
20691 exit
20692 }
20693
20694
20695 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20696 *c*,-n*) ECHO_N= ECHO_C='
20697 ' ECHO_T=' ' ;;
20698 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20699 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20700 esac
20701
20702 if expr a : '\(a\)' >/dev/null 2>&1; then
20703 as_expr=expr
20704 else
20705 as_expr=false
20706 fi
20707
20708 rm -f conf$$ conf$$.exe conf$$.file
20709 echo >conf$$.file
20710 if ln -s conf$$.file conf$$ 2>/dev/null; then
20711 # We could just check for DJGPP; but this test a) works b) is more generic
20712 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20713 if test -f conf$$.exe; then
20714 # Don't use ln at all; we don't have any links
20715 as_ln_s='cp -p'
20716 else
20717 as_ln_s='ln -s'
20718 fi
20719 elif ln conf$$.file conf$$ 2>/dev/null; then
20720 as_ln_s=ln
20721 else
20722 as_ln_s='cp -p'
20723 fi
20724 rm -f conf$$ conf$$.exe conf$$.file
20725
20726 if mkdir -p . 2>/dev/null; then
20727 as_mkdir_p=:
20728 else
20729 test -d ./-p && rmdir ./-p
20730 as_mkdir_p=false
20731 fi
20732
20733 as_executable_p="test -f"
20734
20735 # Sed expression to map a string onto a valid CPP name.
20736 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20737
20738 # Sed expression to map a string onto a valid variable name.
20739 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20740
20741
20742 # IFS
20743 # We need space, tab and new line, in precisely that order.
20744 as_nl='
20745 '
20746 IFS=" $as_nl"
20747
20748 # CDPATH.
20749 $as_unset CDPATH
20750
20751 exec 6>&1
20752
20753 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20754 # report actual input values of CONFIG_FILES etc. instead of their
20755 # values after options handling. Logging --version etc. is OK.
20756 exec 5>>config.log
20757 {
20758 echo
20759 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20760 ## Running $as_me. ##
20761 _ASBOX
20762 } >&5
20763 cat >&5 <<_CSEOF
20764
20765 This file was extended by xf86-video-newport $as_me 0.2.1, which was
20766 generated by GNU Autoconf 2.59. Invocation command line was
20767
20768 CONFIG_FILES = $CONFIG_FILES
20769 CONFIG_HEADERS = $CONFIG_HEADERS
20770 CONFIG_LINKS = $CONFIG_LINKS
20771 CONFIG_COMMANDS = $CONFIG_COMMANDS
20772 $ $0 $@
20773
20774 _CSEOF
20775 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20776 echo >&5
20777 _ACEOF
20778
20779 # Files that config.status was made for.
20780 if test -n "$ac_config_files"; then
20781 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20782 fi
20783
20784 if test -n "$ac_config_headers"; then
20785 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20786 fi
20787
20788 if test -n "$ac_config_links"; then
20789 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20790 fi
20791
20792 if test -n "$ac_config_commands"; then
20793 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20794 fi
20795
20796 cat >>$CONFIG_STATUS <<\_ACEOF
20797
20798 ac_cs_usage="\
20799 \`$as_me' instantiates files from templates according to the
20800 current configuration.
20801
20802 Usage: $0 [OPTIONS] [FILE]...
20803
20804 -h, --help print this help, then exit
20805 -V, --version print version number, then exit
20806 -q, --quiet do not print progress messages
20807 -d, --debug don't remove temporary files
20808 --recheck update $as_me by reconfiguring in the same conditions
20809 --file=FILE[:TEMPLATE]
20810 instantiate the configuration file FILE
20811 --header=FILE[:TEMPLATE]
20812 instantiate the configuration header FILE
20813
20814 Configuration files:
20815 $config_files
20816
20817 Configuration headers:
20818 $config_headers
20819
20820 Configuration commands:
20821 $config_commands
20822
20823 Report bugs to <bug-autoconf@gnu.org>."
20824 _ACEOF
20825
20826 cat >>$CONFIG_STATUS <<_ACEOF
20827 ac_cs_version="\\
20828 xf86-video-newport config.status 0.2.1
20829 configured by $0, generated by GNU Autoconf 2.59,
20830 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20831
20832 Copyright (C) 2003 Free Software Foundation, Inc.
20833 This config.status script is free software; the Free Software Foundation
20834 gives unlimited permission to copy, distribute and modify it."
20835 srcdir=$srcdir
20836 INSTALL="$INSTALL"
20837 _ACEOF
20838
20839 cat >>$CONFIG_STATUS <<\_ACEOF
20840 # If no file are specified by the user, then we need to provide default
20841 # value. By we need to know if files were specified by the user.
20842 ac_need_defaults=:
20843 while test $# != 0
20844 do
20845 case $1 in
20846 --*=*)
20847 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20848 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20849 ac_shift=:
20850 ;;
20851 -*)
20852 ac_option=$1
20853 ac_optarg=$2
20854 ac_shift=shift
20855 ;;
20856 *) # This is not an option, so the user has probably given explicit
20857 # arguments.
20858 ac_option=$1
20859 ac_need_defaults=false;;
20860 esac
20861
20862 case $ac_option in
20863 # Handling of the options.
20864 _ACEOF
20865 cat >>$CONFIG_STATUS <<\_ACEOF
20866 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20867 ac_cs_recheck=: ;;
20868 --version | --vers* | -V )
20869 echo "$ac_cs_version"; exit 0 ;;
20870 --he | --h)
20871 # Conflict between --help and --header
20872 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20873 Try \`$0 --help' for more information." >&5
20874 echo "$as_me: error: ambiguous option: $1
20875 Try \`$0 --help' for more information." >&2;}
20876 { (exit 1); exit 1; }; };;
20877 --help | --hel | -h )
20878 echo "$ac_cs_usage"; exit 0 ;;
20879 --debug | --d* | -d )
20880 debug=: ;;
20881 --file | --fil | --fi | --f )
20882 $ac_shift
20883 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20884 ac_need_defaults=false;;
20885 --header | --heade | --head | --hea )
20886 $ac_shift
20887 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20888 ac_need_defaults=false;;
20889 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20890 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20891 ac_cs_silent=: ;;
20892
20893 # This is an error.
20894 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20895 Try \`$0 --help' for more information." >&5
20896 echo "$as_me: error: unrecognized option: $1
20897 Try \`$0 --help' for more information." >&2;}
20898 { (exit 1); exit 1; }; } ;;
20899
20900 *) ac_config_targets="$ac_config_targets $1" ;;
20901
20902 esac
20903 shift
20904 done
20905
20906 ac_configure_extra_args=
20907
20908 if $ac_cs_silent; then
20909 exec 6>/dev/null
20910 ac_configure_extra_args="$ac_configure_extra_args --silent"
20911 fi
20912
20913 _ACEOF
20914 cat >>$CONFIG_STATUS <<_ACEOF
20915 if \$ac_cs_recheck; then
20916 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20917 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20918 fi
20919
20920 _ACEOF
20921
20922 cat >>$CONFIG_STATUS <<_ACEOF
20923 #
20924 # INIT-COMMANDS section.
20925 #
20926
20927 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20928
20929 _ACEOF
20930
20931
20932
20933 cat >>$CONFIG_STATUS <<\_ACEOF
20934 for ac_config_target in $ac_config_targets
20935 do
20936 case "$ac_config_target" in
20937 # Handling of arguments.
20938 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20939 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20940 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20941 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20942 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20943 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20944 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20945 { (exit 1); exit 1; }; };;
20946 esac
20947 done
20948
20949 # If the user did not use the arguments to specify the items to instantiate,
20950 # then the envvar interface is used. Set only those that are not.
20951 # We use the long form for the default assignment because of an extremely
20952 # bizarre bug on SunOS 4.1.3.
20953 if $ac_need_defaults; then
20954 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20955 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20956 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20957 fi
20958
20959 # Have a temporary directory for convenience. Make it in the build tree
20960 # simply because there is no reason to put it here, and in addition,
20961 # creating and moving files from /tmp can sometimes cause problems.
20962 # Create a temporary directory, and hook for its removal unless debugging.
20963 $debug ||
20964 {
20965 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20966 trap '{ (exit 1); exit 1; }' 1 2 13 15
20967 }
20968
20969 # Create a (secure) tmp directory for tmp files.
20970
20971 {
20972 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20973 test -n "$tmp" && test -d "$tmp"
20974 } ||
20975 {
20976 tmp=./confstat$$-$RANDOM
20977 (umask 077 && mkdir $tmp)
20978 } ||
20979 {
20980 echo "$me: cannot create a temporary directory in ." >&2
20981 { (exit 1); exit 1; }
20982 }
20983
20984 _ACEOF
20985
20986 cat >>$CONFIG_STATUS <<_ACEOF
20987
20988 #
20989 # CONFIG_FILES section.
20990 #
20991
20992 # No need to generate the scripts if there are no CONFIG_FILES.
20993 # This happens for instance when ./config.status config.h
20994 if test -n "\$CONFIG_FILES"; then
20995 # Protect against being on the right side of a sed subst in config.status.
20996 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20997 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20998 s,@SHELL@,$SHELL,;t t
20999 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21000 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21001 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21002 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21003 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21004 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21005 s,@exec_prefix@,$exec_prefix,;t t
21006 s,@prefix@,$prefix,;t t
21007 s,@program_transform_name@,$program_transform_name,;t t
21008 s,@bindir@,$bindir,;t t
21009 s,@sbindir@,$sbindir,;t t
21010 s,@libexecdir@,$libexecdir,;t t
21011 s,@datadir@,$datadir,;t t
21012 s,@sysconfdir@,$sysconfdir,;t t
21013 s,@sharedstatedir@,$sharedstatedir,;t t
21014 s,@localstatedir@,$localstatedir,;t t
21015 s,@libdir@,$libdir,;t t
21016 s,@includedir@,$includedir,;t t
21017 s,@oldincludedir@,$oldincludedir,;t t
21018 s,@infodir@,$infodir,;t t
21019 s,@mandir@,$mandir,;t t
21020 s,@build_alias@,$build_alias,;t t
21021 s,@host_alias@,$host_alias,;t t
21022 s,@target_alias@,$target_alias,;t t
21023 s,@DEFS@,$DEFS,;t t
21024 s,@ECHO_C@,$ECHO_C,;t t
21025 s,@ECHO_N@,$ECHO_N,;t t
21026 s,@ECHO_T@,$ECHO_T,;t t
21027 s,@LIBS@,$LIBS,;t t
21028 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21029 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21030 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21031 s,@CYGPATH_W@,$CYGPATH_W,;t t
21032 s,@PACKAGE@,$PACKAGE,;t t
21033 s,@VERSION@,$VERSION,;t t
21034 s,@ACLOCAL@,$ACLOCAL,;t t
21035 s,@AUTOCONF@,$AUTOCONF,;t t
21036 s,@AUTOMAKE@,$AUTOMAKE,;t t
21037 s,@AUTOHEADER@,$AUTOHEADER,;t t
21038 s,@MAKEINFO@,$MAKEINFO,;t t
21039 s,@install_sh@,$install_sh,;t t
21040 s,@STRIP@,$STRIP,;t t
21041 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21042 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21043 s,@mkdir_p@,$mkdir_p,;t t
21044 s,@AWK@,$AWK,;t t
21045 s,@SET_MAKE@,$SET_MAKE,;t t
21046 s,@am__leading_dot@,$am__leading_dot,;t t
21047 s,@AMTAR@,$AMTAR,;t t
21048 s,@am__tar@,$am__tar,;t t
21049 s,@am__untar@,$am__untar,;t t
21050 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21051 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21052 s,@MAINT@,$MAINT,;t t
21053 s,@build@,$build,;t t
21054 s,@build_cpu@,$build_cpu,;t t
21055 s,@build_vendor@,$build_vendor,;t t
21056 s,@build_os@,$build_os,;t t
21057 s,@host@,$host,;t t
21058 s,@host_cpu@,$host_cpu,;t t
21059 s,@host_vendor@,$host_vendor,;t t
21060 s,@host_os@,$host_os,;t t
21061 s,@CC@,$CC,;t t
21062 s,@CFLAGS@,$CFLAGS,;t t
21063 s,@LDFLAGS@,$LDFLAGS,;t t
21064 s,@CPPFLAGS@,$CPPFLAGS,;t t
21065 s,@ac_ct_CC@,$ac_ct_CC,;t t
21066 s,@EXEEXT@,$EXEEXT,;t t
21067 s,@OBJEXT@,$OBJEXT,;t t
21068 s,@DEPDIR@,$DEPDIR,;t t
21069 s,@am__include@,$am__include,;t t
21070 s,@am__quote@,$am__quote,;t t
21071 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21072 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21073 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21074 s,@CCDEPMODE@,$CCDEPMODE,;t t
21075 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21076 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21077 s,@SED@,$SED,;t t
21078 s,@EGREP@,$EGREP,;t t
21079 s,@LN_S@,$LN_S,;t t
21080 s,@ECHO@,$ECHO,;t t
21081 s,@AR@,$AR,;t t
21082 s,@ac_ct_AR@,$ac_ct_AR,;t t
21083 s,@RANLIB@,$RANLIB,;t t
21084 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21085 s,@CPP@,$CPP,;t t
21086 s,@CXX@,$CXX,;t t
21087 s,@CXXFLAGS@,$CXXFLAGS,;t t
21088 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21089 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21090 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21091 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21092 s,@CXXCPP@,$CXXCPP,;t t
21093 s,@F77@,$F77,;t t
21094 s,@FFLAGS@,$FFLAGS,;t t
21095 s,@ac_ct_F77@,$ac_ct_F77,;t t
21096 s,@LIBTOOL@,$LIBTOOL,;t t
21097 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21098 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
21099 s,@XORG_CFLAGS@,$XORG_CFLAGS,;t t
21100 s,@XORG_LIBS@,$XORG_LIBS,;t t
21101 s,@moduledir@,$moduledir,;t t
21102 s,@DRIVER_NAME@,$DRIVER_NAME,;t t
21103 s,@APP_MAN_SUFFIX@,$APP_MAN_SUFFIX,;t t
21104 s,@LIB_MAN_SUFFIX@,$LIB_MAN_SUFFIX,;t t
21105 s,@FILE_MAN_SUFFIX@,$FILE_MAN_SUFFIX,;t t
21106 s,@MISC_MAN_SUFFIX@,$MISC_MAN_SUFFIX,;t t
21107 s,@DRIVER_MAN_SUFFIX@,$DRIVER_MAN_SUFFIX,;t t
21108 s,@ADMIN_MAN_SUFFIX@,$ADMIN_MAN_SUFFIX,;t t
21109 s,@APP_MAN_DIR@,$APP_MAN_DIR,;t t
21110 s,@LIB_MAN_DIR@,$LIB_MAN_DIR,;t t
21111 s,@FILE_MAN_DIR@,$FILE_MAN_DIR,;t t
21112 s,@MISC_MAN_DIR@,$MISC_MAN_DIR,;t t
21113 s,@DRIVER_MAN_DIR@,$DRIVER_MAN_DIR,;t t
21114 s,@ADMIN_MAN_DIR@,$ADMIN_MAN_DIR,;t t
21115 s,@LINUXDOC@,$LINUXDOC,;t t
21116 s,@PS2PDF@,$PS2PDF,;t t
21117 s,@BUILD_LINUXDOC_TRUE@,$BUILD_LINUXDOC_TRUE,;t t
21118 s,@BUILD_LINUXDOC_FALSE@,$BUILD_LINUXDOC_FALSE,;t t
21119 s,@BUILD_PDFDOC_TRUE@,$BUILD_PDFDOC_TRUE,;t t
21120 s,@BUILD_PDFDOC_FALSE@,$BUILD_PDFDOC_FALSE,;t t
21121 s,@MAKE_TEXT@,$MAKE_TEXT,;t t
21122 s,@MAKE_PS@,$MAKE_PS,;t t
21123 s,@MAKE_PDF@,$MAKE_PDF,;t t
21124 s,@MAKE_HTML@,$MAKE_HTML,;t t
21125 s,@LIBOBJS@,$LIBOBJS,;t t
21126 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21127 CEOF
21128
21129 _ACEOF
21130
21131 cat >>$CONFIG_STATUS <<\_ACEOF
21132 # Split the substitutions into bite-sized pieces for seds with
21133 # small command number limits, like on Digital OSF/1 and HP-UX.
21134 ac_max_sed_lines=48
21135 ac_sed_frag=1 # Number of current file.
21136 ac_beg=1 # First line for current file.
21137 ac_end=$ac_max_sed_lines # Line after last line for current file.
21138 ac_more_lines=:
21139 ac_sed_cmds=
21140 while $ac_more_lines; do
21141 if test $ac_beg -gt 1; then
21142 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21143 else
21144 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21145 fi
21146 if test ! -s $tmp/subs.frag; then
21147 ac_more_lines=false
21148 else
21149 # The purpose of the label and of the branching condition is to
21150 # speed up the sed processing (if there are no `@' at all, there
21151 # is no need to browse any of the substitutions).
21152 # These are the two extra sed commands mentioned above.
21153 (echo ':t
21154 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21155 if test -z "$ac_sed_cmds"; then
21156 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21157 else
21158 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21159 fi
21160 ac_sed_frag=`expr $ac_sed_frag + 1`
21161 ac_beg=$ac_end
21162 ac_end=`expr $ac_end + $ac_max_sed_lines`
21163 fi
21164 done
21165 if test -z "$ac_sed_cmds"; then
21166 ac_sed_cmds=cat
21167 fi
21168 fi # test -n "$CONFIG_FILES"
21169
21170 _ACEOF
21171 cat >>$CONFIG_STATUS <<\_ACEOF
21172 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21173 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21174 case $ac_file in
21175 - | *:- | *:-:* ) # input from stdin
21176 cat >$tmp/stdin
21177 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21178 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21179 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21180 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21181 * ) ac_file_in=$ac_file.in ;;
21182 esac
21183
21184 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21185 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21186 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21187 X"$ac_file" : 'X\(//\)[^/]' \| \
21188 X"$ac_file" : 'X\(//\)$' \| \
21189 X"$ac_file" : 'X\(/\)' \| \
21190 . : '\(.\)' 2>/dev/null ||
21191 echo X"$ac_file" |
21192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21193 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21194 /^X\(\/\/\)$/{ s//\1/; q; }
21195 /^X\(\/\).*/{ s//\1/; q; }
21196 s/.*/./; q'`
21197 { if $as_mkdir_p; then
21198 mkdir -p "$ac_dir"
21199 else
21200 as_dir="$ac_dir"
21201 as_dirs=
21202 while test ! -d "$as_dir"; do
21203 as_dirs="$as_dir $as_dirs"
21204 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21205 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21206 X"$as_dir" : 'X\(//\)[^/]' \| \
21207 X"$as_dir" : 'X\(//\)$' \| \
21208 X"$as_dir" : 'X\(/\)' \| \
21209 . : '\(.\)' 2>/dev/null ||
21210 echo X"$as_dir" |
21211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21212 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21213 /^X\(\/\/\)$/{ s//\1/; q; }
21214 /^X\(\/\).*/{ s//\1/; q; }
21215 s/.*/./; q'`
21216 done
21217 test ! -n "$as_dirs" || mkdir $as_dirs
21218 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21219 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21220 { (exit 1); exit 1; }; }; }
21221
21222 ac_builddir=.
21223
21224 if test "$ac_dir" != .; then
21225 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21226 # A "../" for each directory in $ac_dir_suffix.
21227 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21228 else
21229 ac_dir_suffix= ac_top_builddir=
21230 fi
21231
21232 case $srcdir in
21233 .) # No --srcdir option. We are building in place.
21234 ac_srcdir=.
21235 if test -z "$ac_top_builddir"; then
21236 ac_top_srcdir=.
21237 else
21238 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21239 fi ;;
21240 [\\/]* | ?:[\\/]* ) # Absolute path.
21241 ac_srcdir=$srcdir$ac_dir_suffix;
21242 ac_top_srcdir=$srcdir ;;
21243 *) # Relative path.
21244 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21245 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21246 esac
21247
21248 # Do not use `cd foo && pwd` to compute absolute paths, because
21249 # the directories may not exist.
21250 case `pwd` in
21251 .) ac_abs_builddir="$ac_dir";;
21252 *)
21253 case "$ac_dir" in
21254 .) ac_abs_builddir=`pwd`;;
21255 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21256 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21257 esac;;
21258 esac
21259 case $ac_abs_builddir in
21260 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21261 *)
21262 case ${ac_top_builddir}. in
21263 .) ac_abs_top_builddir=$ac_abs_builddir;;
21264 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21265 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21266 esac;;
21267 esac
21268 case $ac_abs_builddir in
21269 .) ac_abs_srcdir=$ac_srcdir;;
21270 *)
21271 case $ac_srcdir in
21272 .) ac_abs_srcdir=$ac_abs_builddir;;
21273 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21274 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21275 esac;;
21276 esac
21277 case $ac_abs_builddir in
21278 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21279 *)
21280 case $ac_top_srcdir in
21281 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21282 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21283 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21284 esac;;
21285 esac
21286
21287
21288 case $INSTALL in
21289 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21290 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21291 esac
21292
21293 if test x"$ac_file" != x-; then
21294 { echo "$as_me:$LINENO: creating $ac_file" >&5
21295 echo "$as_me: creating $ac_file" >&6;}
21296 rm -f "$ac_file"
21297 fi
21298 # Let's still pretend it is `configure' which instantiates (i.e., don't
21299 # use $as_me), people would be surprised to read:
21300 # /* config.h. Generated by config.status. */
21301 if test x"$ac_file" = x-; then
21302 configure_input=
21303 else
21304 configure_input="$ac_file. "
21305 fi
21306 configure_input=$configure_input"Generated from `echo $ac_file_in |
21307 sed 's,.*/,,'` by configure."
21308
21309 # First look for the input files in the build tree, otherwise in the
21310 # src tree.
21311 ac_file_inputs=`IFS=:
21312 for f in $ac_file_in; do
21313 case $f in
21314 -) echo $tmp/stdin ;;
21315 [\\/$]*)
21316 # Absolute (can't be DOS-style, as IFS=:)
21317 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21318 echo "$as_me: error: cannot find input file: $f" >&2;}
21319 { (exit 1); exit 1; }; }
21320 echo "$f";;
21321 *) # Relative
21322 if test -f "$f"; then
21323 # Build tree
21324 echo "$f"
21325 elif test -f "$srcdir/$f"; then
21326 # Source tree
21327 echo "$srcdir/$f"
21328 else
21329 # /dev/null tree
21330 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21331 echo "$as_me: error: cannot find input file: $f" >&2;}
21332 { (exit 1); exit 1; }; }
21333 fi;;
21334 esac
21335 done` || { (exit 1); exit 1; }
21336 _ACEOF
21337 cat >>$CONFIG_STATUS <<_ACEOF
21338 sed "$ac_vpsub
21339 $extrasub
21340 _ACEOF
21341 cat >>$CONFIG_STATUS <<\_ACEOF
21342 :t
21343 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21344 s,@configure_input@,$configure_input,;t t
21345 s,@srcdir@,$ac_srcdir,;t t
21346 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21347 s,@top_srcdir@,$ac_top_srcdir,;t t
21348 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21349 s,@builddir@,$ac_builddir,;t t
21350 s,@abs_builddir@,$ac_abs_builddir,;t t
21351 s,@top_builddir@,$ac_top_builddir,;t t
21352 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21353 s,@INSTALL@,$ac_INSTALL,;t t
21354 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21355 rm -f $tmp/stdin
21356 if test x"$ac_file" != x-; then
21357 mv $tmp/out $ac_file
21358 else
21359 cat $tmp/out
21360 rm -f $tmp/out
21361 fi
21362
21363 done
21364 _ACEOF
21365 cat >>$CONFIG_STATUS <<\_ACEOF
21366
21367 #
21368 # CONFIG_HEADER section.
21369 #
21370
21371 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21372 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21373 #
21374 # ac_d sets the value in "#define NAME VALUE" lines.
21375 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21376 ac_dB='[ ].*$,\1#\2'
21377 ac_dC=' '
21378 ac_dD=',;t'
21379 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21380 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21381 ac_uB='$,\1#\2define\3'
21382 ac_uC=' '
21383 ac_uD=',;t'
21384
21385 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21386 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21387 case $ac_file in
21388 - | *:- | *:-:* ) # input from stdin
21389 cat >$tmp/stdin
21390 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21391 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21392 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21393 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21394 * ) ac_file_in=$ac_file.in ;;
21395 esac
21396
21397 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21398 echo "$as_me: creating $ac_file" >&6;}
21399
21400 # First look for the input files in the build tree, otherwise in the
21401 # src tree.
21402 ac_file_inputs=`IFS=:
21403 for f in $ac_file_in; do
21404 case $f in
21405 -) echo $tmp/stdin ;;
21406 [\\/$]*)
21407 # Absolute (can't be DOS-style, as IFS=:)
21408 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21409 echo "$as_me: error: cannot find input file: $f" >&2;}
21410 { (exit 1); exit 1; }; }
21411 # Do quote $f, to prevent DOS paths from being IFS'd.
21412 echo "$f";;
21413 *) # Relative
21414 if test -f "$f"; then
21415 # Build tree
21416 echo "$f"
21417 elif test -f "$srcdir/$f"; then
21418 # Source tree
21419 echo "$srcdir/$f"
21420 else
21421 # /dev/null tree
21422 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21423 echo "$as_me: error: cannot find input file: $f" >&2;}
21424 { (exit 1); exit 1; }; }
21425 fi;;
21426 esac
21427 done` || { (exit 1); exit 1; }
21428 # Remove the trailing spaces.
21429 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21430
21431 _ACEOF
21432
21433 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21434 # `conftest.undefs', that substitutes the proper values into
21435 # config.h.in to produce config.h. The first handles `#define'
21436 # templates, and the second `#undef' templates.
21437 # And first: Protect against being on the right side of a sed subst in
21438 # config.status. Protect against being in an unquoted here document
21439 # in config.status.
21440 rm -f conftest.defines conftest.undefs
21441 # Using a here document instead of a string reduces the quoting nightmare.
21442 # Putting comments in sed scripts is not portable.
21443 #
21444 # `end' is used to avoid that the second main sed command (meant for
21445 # 0-ary CPP macros) applies to n-ary macro definitions.
21446 # See the Autoconf documentation for `clear'.
21447 cat >confdef2sed.sed <<\_ACEOF
21448 s/[\\&,]/\\&/g
21449 s,[\\$`],\\&,g
21450 t clear
21451 : clear
21452 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21453 t end
21454 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21455 : end
21456 _ACEOF
21457 # If some macros were called several times there might be several times
21458 # the same #defines, which is useless. Nevertheless, we may not want to
21459 # sort them, since we want the *last* AC-DEFINE to be honored.
21460 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21461 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21462 rm -f confdef2sed.sed
21463
21464 # This sed command replaces #undef with comments. This is necessary, for
21465 # example, in the case of _POSIX_SOURCE, which is predefined and required
21466 # on some systems where configure will not decide to define it.
21467 cat >>conftest.undefs <<\_ACEOF
21468 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21469 _ACEOF
21470
21471 # Break up conftest.defines because some shells have a limit on the size
21472 # of here documents, and old seds have small limits too (100 cmds).
21473 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21474 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21475 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21476 echo ' :' >>$CONFIG_STATUS
21477 rm -f conftest.tail
21478 while grep . conftest.defines >/dev/null
21479 do
21480 # Write a limited-size here document to $tmp/defines.sed.
21481 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21482 # Speed up: don't consider the non `#define' lines.
21483 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21484 # Work around the forget-to-reset-the-flag bug.
21485 echo 't clr' >>$CONFIG_STATUS
21486 echo ': clr' >>$CONFIG_STATUS
21487 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21488 echo 'CEOF
21489 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21490 rm -f $tmp/in
21491 mv $tmp/out $tmp/in
21492 ' >>$CONFIG_STATUS
21493 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21494 rm -f conftest.defines
21495 mv conftest.tail conftest.defines
21496 done
21497 rm -f conftest.defines
21498 echo ' fi # grep' >>$CONFIG_STATUS
21499 echo >>$CONFIG_STATUS
21500
21501 # Break up conftest.undefs because some shells have a limit on the size
21502 # of here documents, and old seds have small limits too (100 cmds).
21503 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21504 rm -f conftest.tail
21505 while grep . conftest.undefs >/dev/null
21506 do
21507 # Write a limited-size here document to $tmp/undefs.sed.
21508 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21509 # Speed up: don't consider the non `#undef'
21510 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21511 # Work around the forget-to-reset-the-flag bug.
21512 echo 't clr' >>$CONFIG_STATUS
21513 echo ': clr' >>$CONFIG_STATUS
21514 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21515 echo 'CEOF
21516 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21517 rm -f $tmp/in
21518 mv $tmp/out $tmp/in
21519 ' >>$CONFIG_STATUS
21520 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21521 rm -f conftest.undefs
21522 mv conftest.tail conftest.undefs
21523 done
21524 rm -f conftest.undefs
21525
21526 cat >>$CONFIG_STATUS <<\_ACEOF
21527 # Let's still pretend it is `configure' which instantiates (i.e., don't
21528 # use $as_me), people would be surprised to read:
21529 # /* config.h. Generated by config.status. */
21530 if test x"$ac_file" = x-; then
21531 echo "/* Generated by configure. */" >$tmp/config.h
21532 else
21533 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21534 fi
21535 cat $tmp/in >>$tmp/config.h
21536 rm -f $tmp/in
21537 if test x"$ac_file" != x-; then
21538 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21539 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21540 echo "$as_me: $ac_file is unchanged" >&6;}
21541 else
21542 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21543 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21544 X"$ac_file" : 'X\(//\)[^/]' \| \
21545 X"$ac_file" : 'X\(//\)$' \| \
21546 X"$ac_file" : 'X\(/\)' \| \
21547 . : '\(.\)' 2>/dev/null ||
21548 echo X"$ac_file" |
21549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21550 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21551 /^X\(\/\/\)$/{ s//\1/; q; }
21552 /^X\(\/\).*/{ s//\1/; q; }
21553 s/.*/./; q'`
21554 { if $as_mkdir_p; then
21555 mkdir -p "$ac_dir"
21556 else
21557 as_dir="$ac_dir"
21558 as_dirs=
21559 while test ! -d "$as_dir"; do
21560 as_dirs="$as_dir $as_dirs"
21561 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21562 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21563 X"$as_dir" : 'X\(//\)[^/]' \| \
21564 X"$as_dir" : 'X\(//\)$' \| \
21565 X"$as_dir" : 'X\(/\)' \| \
21566 . : '\(.\)' 2>/dev/null ||
21567 echo X"$as_dir" |
21568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21569 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21570 /^X\(\/\/\)$/{ s//\1/; q; }
21571 /^X\(\/\).*/{ s//\1/; q; }
21572 s/.*/./; q'`
21573 done
21574 test ! -n "$as_dirs" || mkdir $as_dirs
21575 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21576 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21577 { (exit 1); exit 1; }; }; }
21578
21579 rm -f $ac_file
21580 mv $tmp/config.h $ac_file
21581 fi
21582 else
21583 cat $tmp/config.h
21584 rm -f $tmp/config.h
21585 fi
21586 # Compute $ac_file's index in $config_headers.
21587 _am_stamp_count=1
21588 for _am_header in $config_headers :; do
21589 case $_am_header in
21590 $ac_file | $ac_file:* )
21591 break ;;
21592 * )
21593 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21594 esac
21595 done
21596 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21597 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21598 X$ac_file : 'X\(//\)[^/]' \| \
21599 X$ac_file : 'X\(//\)$' \| \
21600 X$ac_file : 'X\(/\)' \| \
21601 . : '\(.\)' 2>/dev/null ||
21602 echo X$ac_file |
21603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21604 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21605 /^X\(\/\/\)$/{ s//\1/; q; }
21606 /^X\(\/\).*/{ s//\1/; q; }
21607 s/.*/./; q'`/stamp-h$_am_stamp_count
21608 done
21609 _ACEOF
21610 cat >>$CONFIG_STATUS <<\_ACEOF
21611
21612 #
21613 # CONFIG_COMMANDS section.
21614 #
21615 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21616 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21617 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21618 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21619 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21620 X"$ac_dest" : 'X\(//\)[^/]' \| \
21621 X"$ac_dest" : 'X\(//\)$' \| \
21622 X"$ac_dest" : 'X\(/\)' \| \
21623 . : '\(.\)' 2>/dev/null ||
21624 echo X"$ac_dest" |
21625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21626 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21627 /^X\(\/\/\)$/{ s//\1/; q; }
21628 /^X\(\/\).*/{ s//\1/; q; }
21629 s/.*/./; q'`
21630 { if $as_mkdir_p; then
21631 mkdir -p "$ac_dir"
21632 else
21633 as_dir="$ac_dir"
21634 as_dirs=
21635 while test ! -d "$as_dir"; do
21636 as_dirs="$as_dir $as_dirs"
21637 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21638 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21639 X"$as_dir" : 'X\(//\)[^/]' \| \
21640 X"$as_dir" : 'X\(//\)$' \| \
21641 X"$as_dir" : 'X\(/\)' \| \
21642 . : '\(.\)' 2>/dev/null ||
21643 echo X"$as_dir" |
21644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21645 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21646 /^X\(\/\/\)$/{ s//\1/; q; }
21647 /^X\(\/\).*/{ s//\1/; q; }
21648 s/.*/./; q'`
21649 done
21650 test ! -n "$as_dirs" || mkdir $as_dirs
21651 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21652 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21653 { (exit 1); exit 1; }; }; }
21654
21655 ac_builddir=.
21656
21657 if test "$ac_dir" != .; then
21658 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21659 # A "../" for each directory in $ac_dir_suffix.
21660 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21661 else
21662 ac_dir_suffix= ac_top_builddir=
21663 fi
21664
21665 case $srcdir in
21666 .) # No --srcdir option. We are building in place.
21667 ac_srcdir=.
21668 if test -z "$ac_top_builddir"; then
21669 ac_top_srcdir=.
21670 else
21671 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21672 fi ;;
21673 [\\/]* | ?:[\\/]* ) # Absolute path.
21674 ac_srcdir=$srcdir$ac_dir_suffix;
21675 ac_top_srcdir=$srcdir ;;
21676 *) # Relative path.
21677 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21678 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21679 esac
21680
21681 # Do not use `cd foo && pwd` to compute absolute paths, because
21682 # the directories may not exist.
21683 case `pwd` in
21684 .) ac_abs_builddir="$ac_dir";;
21685 *)
21686 case "$ac_dir" in
21687 .) ac_abs_builddir=`pwd`;;
21688 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21689 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21690 esac;;
21691 esac
21692 case $ac_abs_builddir in
21693 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21694 *)
21695 case ${ac_top_builddir}. in
21696 .) ac_abs_top_builddir=$ac_abs_builddir;;
21697 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21698 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21699 esac;;
21700 esac
21701 case $ac_abs_builddir in
21702 .) ac_abs_srcdir=$ac_srcdir;;
21703 *)
21704 case $ac_srcdir in
21705 .) ac_abs_srcdir=$ac_abs_builddir;;
21706 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21707 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21708 esac;;
21709 esac
21710 case $ac_abs_builddir in
21711 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21712 *)
21713 case $ac_top_srcdir in
21714 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21715 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21716 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21717 esac;;
21718 esac
21719
21720
21721 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21722 echo "$as_me: executing $ac_dest commands" >&6;}
21723 case $ac_dest in
21724 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21725 # Strip MF so we end up with the name of the file.
21726 mf=`echo "$mf" | sed -e 's/:.*$//'`
21727 # Check whether this is an Automake generated Makefile or not.
21728 # We used to match only the files named `Makefile.in', but
21729 # some people rename them; so instead we look at the file content.
21730 # Grep'ing the first line is not enough: some people post-process
21731 # each Makefile.in and add a new line on top of each file to say so.
21732 # So let's grep whole file.
21733 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21734 dirpart=`(dirname "$mf") 2>/dev/null ||
21735 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21736 X"$mf" : 'X\(//\)[^/]' \| \
21737 X"$mf" : 'X\(//\)$' \| \
21738 X"$mf" : 'X\(/\)' \| \
21739 . : '\(.\)' 2>/dev/null ||
21740 echo X"$mf" |
21741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21742 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21743 /^X\(\/\/\)$/{ s//\1/; q; }
21744 /^X\(\/\).*/{ s//\1/; q; }
21745 s/.*/./; q'`
21746 else
21747 continue
21748 fi
21749 # Extract the definition of DEPDIR, am__include, and am__quote
21750 # from the Makefile without running `make'.
21751 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21752 test -z "$DEPDIR" && continue
21753 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21754 test -z "am__include" && continue
21755 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21756 # When using ansi2knr, U may be empty or an underscore; expand it
21757 U=`sed -n 's/^U = //p' < "$mf"`
21758 # Find all dependency output files, they are included files with
21759 # $(DEPDIR) in their names. We invoke sed twice because it is the
21760 # simplest approach to changing $(DEPDIR) to its actual value in the
21761 # expansion.
21762 for file in `sed -n "
21763 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21764 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21765 # Make sure the directory exists.
21766 test -f "$dirpart/$file" && continue
21767 fdir=`(dirname "$file") 2>/dev/null ||
21768 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21769 X"$file" : 'X\(//\)[^/]' \| \
21770 X"$file" : 'X\(//\)$' \| \
21771 X"$file" : 'X\(/\)' \| \
21772 . : '\(.\)' 2>/dev/null ||
21773 echo X"$file" |
21774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21775 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21776 /^X\(\/\/\)$/{ s//\1/; q; }
21777 /^X\(\/\).*/{ s//\1/; q; }
21778 s/.*/./; q'`
21779 { if $as_mkdir_p; then
21780 mkdir -p $dirpart/$fdir
21781 else
21782 as_dir=$dirpart/$fdir
21783 as_dirs=
21784 while test ! -d "$as_dir"; do
21785 as_dirs="$as_dir $as_dirs"
21786 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21787 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21788 X"$as_dir" : 'X\(//\)[^/]' \| \
21789 X"$as_dir" : 'X\(//\)$' \| \
21790 X"$as_dir" : 'X\(/\)' \| \
21791 . : '\(.\)' 2>/dev/null ||
21792 echo X"$as_dir" |
21793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21794 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21795 /^X\(\/\/\)$/{ s//\1/; q; }
21796 /^X\(\/\).*/{ s//\1/; q; }
21797 s/.*/./; q'`
21798 done
21799 test ! -n "$as_dirs" || mkdir $as_dirs
21800 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21801 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21802 { (exit 1); exit 1; }; }; }
21803
21804 # echo "creating $dirpart/$file"
21805 echo '# dummy' > "$dirpart/$file"
21806 done
21807 done
21808 ;;
21809 esac
21810 done
21811 _ACEOF
21812
21813 cat >>$CONFIG_STATUS <<\_ACEOF
21814
21815 { (exit 0); exit 0; }
21816 _ACEOF
21817 chmod +x $CONFIG_STATUS
21818 ac_clean_files=$ac_clean_files_save
21819
21820
21821 # configure is writing to config.log, and then calls config.status.
21822 # config.status does its own redirection, appending to config.log.
21823 # Unfortunately, on DOS this fails, as config.log is still kept open
21824 # by configure, so config.status won't be able to write to it; its
21825 # output is simply discarded. So we exec the FD to /dev/null,
21826 # effectively closing config.log, so it can be properly (re)opened and
21827 # appended to by config.status. When coming back to configure, we
21828 # need to make the FD available again.
21829 if test "$no_create" != yes; then
21830 ac_cs_success=:
21831 ac_config_status_args=
21832 test "$silent" = yes &&
21833 ac_config_status_args="$ac_config_status_args --quiet"
21834 exec 5>/dev/null
21835 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21836 exec 5>>config.log
21837 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21838 # would make configure fail if this is the last instruction.
21839 $ac_cs_success || { (exit 1); exit 1; }
21840 fi
21841
21842