Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for normalize 0.7.7.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
264 :
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<EOF
274 $*
275 EOF
276 exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289 echo_test_string=`eval $cmd` &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291 then
292 break
293 fi
294 done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
300 :
301 else
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
305 #
306 # So, first we look for a working echo in the user's PATH.
307
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
310 IFS="$lt_save_ifs"
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
315 echo="$dir/echo"
316 break
317 fi
318 done
319 IFS="$lt_save_ifs"
320
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
327 echo='print -r'
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
334 export CONFIG_SHELL
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336 else
337 # Try using printf.
338 echo='printf %s\n'
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
342 # Cool, printf works
343 :
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 export CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
351 export SHELL
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
358 else
359 # maybe with a smaller string...
360 prev=:
361
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364 then
365 break
366 fi
367 prev="$cmd"
368 done
369
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 else
375 # Oops. We lost completely, so just stick with echo.
376 echo=echo
377 fi
378 fi
379 fi
380 fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME='normalize'
423 PACKAGE_TARNAME='normalize'
424 PACKAGE_VERSION='0.7.7'
425 PACKAGE_STRING='normalize 0.7.7'
426 PACKAGE_BUGREPORT=''
427
428 ac_unique_file="src/normalize.c"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 # include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 # include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 # include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
465
466 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 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 LN_S CPP EGREP PERL MP3DECODE MP3ENCODE OGGDECODE OGGENCODE VORBISCOMMENT FLACDECODE FLACENCODE METAFLAC GLIB_CONFIG GLIB_CFLAGS GLIB_LIBS GTK_CONFIG GTK_CFLAGS GTK_LIBS XMMS_CONFIG XMMS_CFLAGS XMMS_LIBS XMMS_VERSION XMMS_DATA_DIR XMMS_PLUGIN_DIR XMMS_VISUALIZATION_PLUGIN_DIR XMMS_INPUT_PLUGIN_DIR XMMS_OUTPUT_PLUGIN_DIR XMMS_GENERAL_PLUGIN_DIR XMMS_EFFECT_PLUGIN_DIR ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PLUGINS AUDIOFILE_CONFIG AUDIOFILE_CFLAGS AUDIOFILE_LIBS AUDIOFILE_TRUE AUDIOFILE_FALSE MADLIBS MAD_TRUE MAD_FALSE NORMALIZE_BIN MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE INTL_MACOSX_LIBS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB LIBOBJS LTLIBOBJS'
467 ac_subst_files=''
468
469 # Initialize some variables set by options.
470 ac_init_help=
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
474 cache_file=/dev/null
475 exec_prefix=NONE
476 no_create=
477 no_recursion=
478 prefix=NONE
479 program_prefix=NONE
480 program_suffix=NONE
481 program_transform_name=s,x,x,
482 silent=
483 site=
484 srcdir=
485 verbose=
486 x_includes=NONE
487 x_libraries=NONE
488
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
506
507 ac_prev=
508 for ac_option
509 do
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
513 ac_prev=
514 continue
515 fi
516
517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
519 # Accept the important Cygnus configure options, so we can diagnose typos.
520
521 case $ac_option in
522
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
524 ac_prev=bindir ;;
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526 bindir=$ac_optarg ;;
527
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build_alias ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build_alias=$ac_optarg ;;
532
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 cache_file=$ac_optarg ;;
539
540 --config-cache | -C)
541 cache_file=config.cache ;;
542
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544 ac_prev=datadir ;;
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546 | --da=*)
547 datadir=$ac_optarg ;;
548
549 -disable-* | --disable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
557
558 -enable-* | --enable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565 case $ac_option in
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567 *) ac_optarg=yes ;;
568 esac
569 eval "enable_$ac_feature='$ac_optarg'" ;;
570
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix=$ac_optarg ;;
579
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
582 with_gas=yes ;;
583
584 -help | --help | --hel | --he | -h)
585 ac_init_help=long ;;
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587 ac_init_help=recursive ;;
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589 ac_init_help=short ;;
590
591 -host | --host | --hos | --ho)
592 ac_prev=host_alias ;;
593 -host=* | --host=* | --hos=* | --ho=*)
594 host_alias=$ac_optarg ;;
595
596 -includedir | --includedir | --includedi | --included | --include \
597 | --includ | --inclu | --incl | --inc)
598 ac_prev=includedir ;;
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
601 includedir=$ac_optarg ;;
602
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
604 ac_prev=infodir ;;
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606 infodir=$ac_optarg ;;
607
608 -libdir | --libdir | --libdi | --libd)
609 ac_prev=libdir ;;
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
611 libdir=$ac_optarg ;;
612
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
618 libexecdir=$ac_optarg ;;
619
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627 localstatedir=$ac_optarg ;;
628
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630 ac_prev=mandir ;;
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632 mandir=$ac_optarg ;;
633
634 -nfp | --nfp | --nf)
635 # Obsolete; use --without-fp.
636 with_fp=no ;;
637
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639 | --no-cr | --no-c | -n)
640 no_create=yes ;;
641
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644 no_recursion=yes ;;
645
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648 | --oldin | --oldi | --old | --ol | --o)
649 ac_prev=oldincludedir ;;
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653 oldincludedir=$ac_optarg ;;
654
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656 ac_prev=prefix ;;
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658 prefix=$ac_optarg ;;
659
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
661 | --program-pre | --program-pr | --program-p)
662 ac_prev=program_prefix ;;
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665 program_prefix=$ac_optarg ;;
666
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
668 | --program-suf | --program-su | --program-s)
669 ac_prev=program_suffix ;;
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672 program_suffix=$ac_optarg ;;
673
674 -program-transform-name | --program-transform-name \
675 | --program-transform-nam | --program-transform-na \
676 | --program-transform-n | --program-transform- \
677 | --program-transform | --program-transfor \
678 | --program-transfo | --program-transf \
679 | --program-trans | --program-tran \
680 | --progr-tra | --program-tr | --program-t)
681 ac_prev=program_transform_name ;;
682 -program-transform-name=* | --program-transform-name=* \
683 | --program-transform-nam=* | --program-transform-na=* \
684 | --program-transform-n=* | --program-transform-=* \
685 | --program-transform=* | --program-transfor=* \
686 | --program-transfo=* | --program-transf=* \
687 | --program-trans=* | --program-tran=* \
688 | --progr-tra=* | --program-tr=* | --program-t=*)
689 program_transform_name=$ac_optarg ;;
690
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692 | -silent | --silent | --silen | --sile | --sil)
693 silent=yes ;;
694
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696 ac_prev=sbindir ;;
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698 | --sbi=* | --sb=*)
699 sbindir=$ac_optarg ;;
700
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703 | --sharedst | --shareds | --shared | --share | --shar \
704 | --sha | --sh)
705 ac_prev=sharedstatedir ;;
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709 | --sha=* | --sh=*)
710 sharedstatedir=$ac_optarg ;;
711
712 -site | --site | --sit)
713 ac_prev=site ;;
714 -site=* | --site=* | --sit=*)
715 site=$ac_optarg ;;
716
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718 ac_prev=srcdir ;;
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720 srcdir=$ac_optarg ;;
721
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723 | --syscon | --sysco | --sysc | --sys | --sy)
724 ac_prev=sysconfdir ;;
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727 sysconfdir=$ac_optarg ;;
728
729 -target | --target | --targe | --targ | --tar | --ta | --t)
730 ac_prev=target_alias ;;
731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732 target_alias=$ac_optarg ;;
733
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
735 verbose=yes ;;
736
737 -version | --version | --versio | --versi | --vers | -V)
738 ac_init_version=: ;;
739
740 -with-* | --with-*)
741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package=`echo $ac_package| sed 's/-/_/g'`
747 case $ac_option in
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749 *) ac_optarg=yes ;;
750 esac
751 eval "with_$ac_package='$ac_optarg'" ;;
752
753 -without-* | --without-*)
754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
761
762 --x)
763 # Obsolete; use --with-x.
764 with_x=yes ;;
765
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767 | --x-incl | --x-inc | --x-in | --x-i)
768 ac_prev=x_includes ;;
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771 x_includes=$ac_optarg ;;
772
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775 ac_prev=x_libraries ;;
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778 x_libraries=$ac_optarg ;;
779
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
783 ;;
784
785 *=*)
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
793 export $ac_envvar ;;
794
795 *)
796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801 ;;
802
803 esac
804 done
805
806 if test -n "$ac_prev"; then
807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
810 fi
811
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
814 do
815 eval ac_val=$`echo $ac_var`
816 case $ac_val in
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
820 esac
821 done
822
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 localstatedir libdir includedir oldincludedir infodir mandir
826 do
827 eval ac_val=$`echo $ac_var`
828 case $ac_val in
829 [\\/$]* | ?:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
832 esac
833 done
834
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
838 build=$build_alias
839 host=$host_alias
840 target=$target_alias
841
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844 if test "x$build_alias" = x; then
845 cross_compiling=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
849 cross_compiling=yes
850 fi
851 fi
852
853 ac_tool_prefix=
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856 test "$silent" = yes && exec 6>/dev/null
857
858
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
869 echo X"$0" |
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
874 s/.*/./; q'`
875 srcdir=$ac_confdir
876 if test ! -r $srcdir/$ac_unique_file; then
877 srcdir=..
878 fi
879 else
880 ac_srcdir_defaulted=no
881 fi
882 if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
886 else
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
889 fi
890 fi
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
908 ac_env_CC_value=$CC
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CPP_set=${CPP+set}
924 ac_env_CPP_value=$CPP
925 ac_cv_env_CPP_set=${CPP+set}
926 ac_cv_env_CPP_value=$CPP
927 ac_env_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
947
948 #
949 # Report the --help message.
950 #
951 if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
954 cat <<_ACEOF
955 \`configure' configures normalize 0.7.7 to adapt to many kinds of systems.
956
957 Usage: $0 [OPTION]... [VAR=VALUE]...
958
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE. See below for descriptions of some of the useful variables.
961
962 Defaults for the options are specified in brackets.
963
964 Configuration:
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
974
975 _ACEOF
976
977 cat <<_ACEOF
978 Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
980 [$ac_default_prefix]
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
982 [PREFIX]
983
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
988
989 For better control, use the options below.
990
991 Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1004 _ACEOF
1005
1006 cat <<\_ACEOF
1007
1008 Program names:
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1012
1013 System types:
1014 --build=BUILD configure for building on BUILD [guessed]
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1016 _ACEOF
1017 fi
1018
1019 if test -n "$ac_init_help"; then
1020 case $ac_init_help in
1021 short | recursive ) echo "Configuration of normalize 0.7.7:";;
1022 esac
1023 cat <<\_ACEOF
1024
1025 Optional Features:
1026 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1027 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1028 --disable-dependency-tracking speeds up one-time build
1029 --enable-dependency-tracking do not reject slow dependency extractors
1030 --disable-helper-search do not look for helper programs
1031 --disable-lookup-table do not use lookup tables (saves memory, but slow)
1032 --disable-glibtest Do not try to compile and run a test GLIB program
1033 --disable-gtktest Do not try to compile and run a test GTK program
1034 --enable-static[=PKGS]
1035 build static libraries [default=no]
1036 --enable-shared[=PKGS]
1037 build shared libraries [default=yes]
1038 --enable-fast-install[=PKGS]
1039 optimize for fast installation [default=yes]
1040 --disable-libtool-lock avoid locking (might break parallel builds)
1041 --enable-xmms build the volume adjust plugin for xmms (default
1042 yes)
1043 --disable-audiofiletest Do not try to compile and run a test Audio File Library program
1044 --enable-longer-name name the binary "normalize-audio" instead of
1045 "normalize"
1046 --disable-nls do not use Native Language Support
1047 --disable-rpath do not hardcode runtime library paths
1048
1049 Optional Packages:
1050 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1051 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1052 --with-glib-prefix=PFX Prefix where GLIB is installed (optional)
1053 --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)
1054 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1055 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1056 --with-xmms-prefix=PFX Prefix where XMMS is installed (optional)
1057 --with-xmms-exec-prefix=PFX Exec prefix where XMMS is installed (optional)
1058 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1059 --with-pic try to use only PIC/non-PIC objects [default=use
1060 both]
1061 --with-tags[=TAGS]
1062 include additional configurations [automatic]
1063 --with-audiofile-prefix=PFX Prefix where Audio File Library is installed (optional)
1064 --with-audiofile-exec-prefix=PFX Exec prefix where Audio File Library is installed (optional)
1065 --with-audiofile use the audiofile library (default yes)
1066 --with-mad-prefix=PFX prefix where MAD library is installed
1067 --with-mad use the mad mpeg audio library (default yes)
1068 --with-gnu-ld assume the C compiler uses GNU ld default=no
1069 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1070 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1071 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1072 --without-libintl-prefix don't search for libintl in includedir and libdir
1073
1074 Some influential environment variables:
1075 CC C compiler command
1076 CFLAGS C compiler flags
1077 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1078 nonstandard directory <lib dir>
1079 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1080 headers in a nonstandard directory <include dir>
1081 CPP C preprocessor
1082 CXX C++ compiler command
1083 CXXFLAGS C++ compiler flags
1084 CXXCPP C++ preprocessor
1085 F77 Fortran 77 compiler command
1086 FFLAGS Fortran 77 compiler flags
1087
1088 Use these variables to override the choices made by `configure' or to help
1089 it to find libraries and programs with nonstandard names/locations.
1090
1091 _ACEOF
1092 fi
1093
1094 if test "$ac_init_help" = "recursive"; then
1095 # If there are subdirs, report their specific --help.
1096 ac_popdir=`pwd`
1097 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1098 test -d $ac_dir || continue
1099 ac_builddir=.
1100
1101 if test "$ac_dir" != .; then
1102 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1103 # A "../" for each directory in $ac_dir_suffix.
1104 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1105 else
1106 ac_dir_suffix= ac_top_builddir=
1107 fi
1108
1109 case $srcdir in
1110 .) # No --srcdir option. We are building in place.
1111 ac_srcdir=.
1112 if test -z "$ac_top_builddir"; then
1113 ac_top_srcdir=.
1114 else
1115 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1116 fi ;;
1117 [\\/]* | ?:[\\/]* ) # Absolute path.
1118 ac_srcdir=$srcdir$ac_dir_suffix;
1119 ac_top_srcdir=$srcdir ;;
1120 *) # Relative path.
1121 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1122 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1123 esac
1124
1125 # Do not use `cd foo && pwd` to compute absolute paths, because
1126 # the directories may not exist.
1127 case `pwd` in
1128 .) ac_abs_builddir="$ac_dir";;
1129 *)
1130 case "$ac_dir" in
1131 .) ac_abs_builddir=`pwd`;;
1132 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1133 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1134 esac;;
1135 esac
1136 case $ac_abs_builddir in
1137 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1138 *)
1139 case ${ac_top_builddir}. in
1140 .) ac_abs_top_builddir=$ac_abs_builddir;;
1141 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1142 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1143 esac;;
1144 esac
1145 case $ac_abs_builddir in
1146 .) ac_abs_srcdir=$ac_srcdir;;
1147 *)
1148 case $ac_srcdir in
1149 .) ac_abs_srcdir=$ac_abs_builddir;;
1150 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1151 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1152 esac;;
1153 esac
1154 case $ac_abs_builddir in
1155 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1156 *)
1157 case $ac_top_srcdir in
1158 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1159 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1160 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1161 esac;;
1162 esac
1163
1164 cd $ac_dir
1165 # Check for guested configure; otherwise get Cygnus style configure.
1166 if test -f $ac_srcdir/configure.gnu; then
1167 echo
1168 $SHELL $ac_srcdir/configure.gnu --help=recursive
1169 elif test -f $ac_srcdir/configure; then
1170 echo
1171 $SHELL $ac_srcdir/configure --help=recursive
1172 elif test -f $ac_srcdir/configure.ac ||
1173 test -f $ac_srcdir/configure.in; then
1174 echo
1175 $ac_configure --help
1176 else
1177 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1178 fi
1179 cd $ac_popdir
1180 done
1181 fi
1182
1183 test -n "$ac_init_help" && exit 0
1184 if $ac_init_version; then
1185 cat <<\_ACEOF
1186 normalize configure 0.7.7
1187 generated by GNU Autoconf 2.59
1188
1189 Copyright (C) 2003 Free Software Foundation, Inc.
1190 This configure script is free software; the Free Software Foundation
1191 gives unlimited permission to copy, distribute and modify it.
1192 _ACEOF
1193 exit 0
1194 fi
1195 exec 5>config.log
1196 cat >&5 <<_ACEOF
1197 This file contains any messages produced by compilers while
1198 running configure, to aid debugging if configure makes a mistake.
1199
1200 It was created by normalize $as_me 0.7.7, which was
1201 generated by GNU Autoconf 2.59. Invocation command line was
1202
1203 $ $0 $@
1204
1205 _ACEOF
1206 {
1207 cat <<_ASUNAME
1208 ## --------- ##
1209 ## Platform. ##
1210 ## --------- ##
1211
1212 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1213 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1214 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1215 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1216 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1217
1218 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1219 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1220
1221 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1222 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1223 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1224 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1225 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1226 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1227 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1228
1229 _ASUNAME
1230
1231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1232 for as_dir in $PATH
1233 do
1234 IFS=$as_save_IFS
1235 test -z "$as_dir" && as_dir=.
1236 echo "PATH: $as_dir"
1237 done
1238
1239 } >&5
1240
1241 cat >&5 <<_ACEOF
1242
1243
1244 ## ----------- ##
1245 ## Core tests. ##
1246 ## ----------- ##
1247
1248 _ACEOF
1249
1250
1251 # Keep a trace of the command line.
1252 # Strip out --no-create and --no-recursion so they do not pile up.
1253 # Strip out --silent because we don't want to record it for future runs.
1254 # Also quote any args containing shell meta-characters.
1255 # Make two passes to allow for proper duplicate-argument suppression.
1256 ac_configure_args=
1257 ac_configure_args0=
1258 ac_configure_args1=
1259 ac_sep=
1260 ac_must_keep_next=false
1261 for ac_pass in 1 2
1262 do
1263 for ac_arg
1264 do
1265 case $ac_arg in
1266 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1267 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1268 | -silent | --silent | --silen | --sile | --sil)
1269 continue ;;
1270 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1271 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1272 esac
1273 case $ac_pass in
1274 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1275 2)
1276 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1277 if test $ac_must_keep_next = true; then
1278 ac_must_keep_next=false # Got value, back to normal.
1279 else
1280 case $ac_arg in
1281 *=* | --config-cache | -C | -disable-* | --disable-* \
1282 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1283 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1284 | -with-* | --with-* | -without-* | --without-* | --x)
1285 case "$ac_configure_args0 " in
1286 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1287 esac
1288 ;;
1289 -* ) ac_must_keep_next=true ;;
1290 esac
1291 fi
1292 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1293 # Get rid of the leading space.
1294 ac_sep=" "
1295 ;;
1296 esac
1297 done
1298 done
1299 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1300 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1301
1302 # When interrupted or exit'd, cleanup temporary files, and complete
1303 # config.log. We remove comments because anyway the quotes in there
1304 # would cause problems or look ugly.
1305 # WARNING: Be sure not to use single quotes in there, as some shells,
1306 # such as our DU 5.0 friend, will then `close' the trap.
1307 trap 'exit_status=$?
1308 # Save into config.log some information that might help in debugging.
1309 {
1310 echo
1311
1312 cat <<\_ASBOX
1313 ## ---------------- ##
1314 ## Cache variables. ##
1315 ## ---------------- ##
1316 _ASBOX
1317 echo
1318 # The following way of writing the cache mishandles newlines in values,
1319 {
1320 (set) 2>&1 |
1321 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1322 *ac_space=\ *)
1323 sed -n \
1324 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1325 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1326 ;;
1327 *)
1328 sed -n \
1329 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1330 ;;
1331 esac;
1332 }
1333 echo
1334
1335 cat <<\_ASBOX
1336 ## ----------------- ##
1337 ## Output variables. ##
1338 ## ----------------- ##
1339 _ASBOX
1340 echo
1341 for ac_var in $ac_subst_vars
1342 do
1343 eval ac_val=$`echo $ac_var`
1344 echo "$ac_var='"'"'$ac_val'"'"'"
1345 done | sort
1346 echo
1347
1348 if test -n "$ac_subst_files"; then
1349 cat <<\_ASBOX
1350 ## ------------- ##
1351 ## Output files. ##
1352 ## ------------- ##
1353 _ASBOX
1354 echo
1355 for ac_var in $ac_subst_files
1356 do
1357 eval ac_val=$`echo $ac_var`
1358 echo "$ac_var='"'"'$ac_val'"'"'"
1359 done | sort
1360 echo
1361 fi
1362
1363 if test -s confdefs.h; then
1364 cat <<\_ASBOX
1365 ## ----------- ##
1366 ## confdefs.h. ##
1367 ## ----------- ##
1368 _ASBOX
1369 echo
1370 sed "/^$/d" confdefs.h | sort
1371 echo
1372 fi
1373 test "$ac_signal" != 0 &&
1374 echo "$as_me: caught signal $ac_signal"
1375 echo "$as_me: exit $exit_status"
1376 } >&5
1377 rm -f core *.core &&
1378 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1379 exit $exit_status
1380 ' 0
1381 for ac_signal in 1 2 13 15; do
1382 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1383 done
1384 ac_signal=0
1385
1386 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1387 rm -rf conftest* confdefs.h
1388 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1389 echo >confdefs.h
1390
1391 # Predefined preprocessor variables.
1392
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_NAME "$PACKAGE_NAME"
1395 _ACEOF
1396
1397
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1400 _ACEOF
1401
1402
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1405 _ACEOF
1406
1407
1408 cat >>confdefs.h <<_ACEOF
1409 #define PACKAGE_STRING "$PACKAGE_STRING"
1410 _ACEOF
1411
1412
1413 cat >>confdefs.h <<_ACEOF
1414 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1415 _ACEOF
1416
1417
1418 # Let the site file select an alternate cache file if it wants to.
1419 # Prefer explicitly selected file to automatically selected ones.
1420 if test -z "$CONFIG_SITE"; then
1421 if test "x$prefix" != xNONE; then
1422 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1423 else
1424 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1425 fi
1426 fi
1427 for ac_site_file in $CONFIG_SITE; do
1428 if test -r "$ac_site_file"; then
1429 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1430 echo "$as_me: loading site script $ac_site_file" >&6;}
1431 sed 's/^/| /' "$ac_site_file" >&5
1432 . "$ac_site_file"
1433 fi
1434 done
1435
1436 if test -r "$cache_file"; then
1437 # Some versions of bash will fail to source /dev/null (special
1438 # files actually), so we avoid doing that.
1439 if test -f "$cache_file"; then
1440 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1441 echo "$as_me: loading cache $cache_file" >&6;}
1442 case $cache_file in
1443 [\\/]* | ?:[\\/]* ) . $cache_file;;
1444 *) . ./$cache_file;;
1445 esac
1446 fi
1447 else
1448 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1449 echo "$as_me: creating cache $cache_file" >&6;}
1450 >$cache_file
1451 fi
1452
1453 # Check that the precious variables saved in the cache have kept the same
1454 # value.
1455 ac_cache_corrupted=false
1456 for ac_var in `(set) 2>&1 |
1457 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1458 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1459 eval ac_new_set=\$ac_env_${ac_var}_set
1460 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1461 eval ac_new_val="\$ac_env_${ac_var}_value"
1462 case $ac_old_set,$ac_new_set in
1463 set,)
1464 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1465 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1466 ac_cache_corrupted=: ;;
1467 ,set)
1468 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1469 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1470 ac_cache_corrupted=: ;;
1471 ,);;
1472 *)
1473 if test "x$ac_old_val" != "x$ac_new_val"; then
1474 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1475 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1476 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1477 echo "$as_me: former value: $ac_old_val" >&2;}
1478 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1479 echo "$as_me: current value: $ac_new_val" >&2;}
1480 ac_cache_corrupted=:
1481 fi;;
1482 esac
1483 # Pass precious variables to config.status.
1484 if test "$ac_new_set" = set; then
1485 case $ac_new_val in
1486 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1487 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1488 *) ac_arg=$ac_var=$ac_new_val ;;
1489 esac
1490 case " $ac_configure_args " in
1491 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1492 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1493 esac
1494 fi
1495 done
1496 if $ac_cache_corrupted; then
1497 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1498 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1499 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1500 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1501 { (exit 1); exit 1; }; }
1502 fi
1503
1504 ac_ext=c
1505 ac_cpp='$CPP $CPPFLAGS'
1506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1537
1538 ac_aux_dir=
1539 for ac_dir in config $srcdir/config; 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 config $srcdir/config" >&5
1556 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&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 ac_config_files="$ac_config_files config/Makefile"
1564
1565
1566 am__api_version="1.9"
1567 # Find a good install program. We prefer a C program (faster),
1568 # so one script is as good as another. But avoid the broken or
1569 # incompatible versions:
1570 # SysV /etc/install, /usr/sbin/install
1571 # SunOS /usr/etc/install
1572 # IRIX /sbin/install
1573 # AIX /bin/install
1574 # AmigaOS /C/install, which installs bootblocks on floppy discs
1575 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1576 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1577 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1578 # OS/2's system install, which has a completely different semantic
1579 # ./install, which can be erroneously created by make from ./install.sh.
1580 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1581 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1582 if test -z "$INSTALL"; then
1583 if test "${ac_cv_path_install+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585 else
1586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587 for as_dir in $PATH
1588 do
1589 IFS=$as_save_IFS
1590 test -z "$as_dir" && as_dir=.
1591 # Account for people who put trailing slashes in PATH elements.
1592 case $as_dir/ in
1593 ./ | .// | /cC/* | \
1594 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1595 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1596 /usr/ucb/* ) ;;
1597 *)
1598 # OSF1 and SCO ODT 3.0 have their own names for install.
1599 # Don't use installbsd from OSF since it installs stuff as root
1600 # by default.
1601 for ac_prog in ginstall scoinst install; do
1602 for ac_exec_ext in '' $ac_executable_extensions; do
1603 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1604 if test $ac_prog = install &&
1605 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1606 # AIX install. It has an incompatible calling convention.
1607 :
1608 elif test $ac_prog = install &&
1609 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1610 # program-specific install script used by HP pwplus--don't use.
1611 :
1612 else
1613 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1614 break 3
1615 fi
1616 fi
1617 done
1618 done
1619 ;;
1620 esac
1621 done
1622
1623
1624 fi
1625 if test "${ac_cv_path_install+set}" = set; then
1626 INSTALL=$ac_cv_path_install
1627 else
1628 # As a last resort, use the slow shell script. We don't cache a
1629 # path for INSTALL within a source directory, because that will
1630 # break other packages using the cache if that directory is
1631 # removed, or if the path is relative.
1632 INSTALL=$ac_install_sh
1633 fi
1634 fi
1635 echo "$as_me:$LINENO: result: $INSTALL" >&5
1636 echo "${ECHO_T}$INSTALL" >&6
1637
1638 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1639 # It thinks the first close brace ends the variable substitution.
1640 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1641
1642 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1643
1644 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1645
1646 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1647 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1648 # Just in case
1649 sleep 1
1650 echo timestamp > conftest.file
1651 # Do `set' in a subshell so we don't clobber the current shell's
1652 # arguments. Must try -L first in case configure is actually a
1653 # symlink; some systems play weird games with the mod time of symlinks
1654 # (eg FreeBSD returns the mod time of the symlink's containing
1655 # directory).
1656 if (
1657 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1658 if test "$*" = "X"; then
1659 # -L didn't work.
1660 set X `ls -t $srcdir/configure conftest.file`
1661 fi
1662 rm -f conftest.file
1663 if test "$*" != "X $srcdir/configure conftest.file" \
1664 && test "$*" != "X conftest.file $srcdir/configure"; then
1665
1666 # If neither matched, then we have a broken ls. This can happen
1667 # if, for instance, CONFIG_SHELL is bash and it inherits a
1668 # broken ls alias from the environment. This has actually
1669 # happened. Such a system could not be considered "sane".
1670 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1671 alias in your environment" >&5
1672 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1673 alias in your environment" >&2;}
1674 { (exit 1); exit 1; }; }
1675 fi
1676
1677 test "$2" = conftest.file
1678 )
1679 then
1680 # Ok.
1681 :
1682 else
1683 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1684 Check your system clock" >&5
1685 echo "$as_me: error: newly created file is older than distributed files!
1686 Check your system clock" >&2;}
1687 { (exit 1); exit 1; }; }
1688 fi
1689 echo "$as_me:$LINENO: result: yes" >&5
1690 echo "${ECHO_T}yes" >&6
1691 test "$program_prefix" != NONE &&
1692 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1693 # Use a double $ so make ignores it.
1694 test "$program_suffix" != NONE &&
1695 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1696 # Double any \ or $. echo might interpret backslashes.
1697 # By default was `s,x,x', remove it if useless.
1698 cat <<\_ACEOF >conftest.sed
1699 s/[\\$]/&&/g;s/;s,x,x,$//
1700 _ACEOF
1701 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1702 rm conftest.sed
1703
1704 # expand $ac_aux_dir to an absolute path
1705 am_aux_dir=`cd $ac_aux_dir && pwd`
1706
1707 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1708 # Use eval to expand $SHELL
1709 if eval "$MISSING --run true"; then
1710 am_missing_run="$MISSING --run "
1711 else
1712 am_missing_run=
1713 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1714 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1715 fi
1716
1717 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1718 # We used to keeping the `.' as first argument, in order to
1719 # allow $(mkdir_p) to be used without argument. As in
1720 # $(mkdir_p) $(somedir)
1721 # where $(somedir) is conditionally defined. However this is wrong
1722 # for two reasons:
1723 # 1. if the package is installed by a user who cannot write `.'
1724 # make install will fail,
1725 # 2. the above comment should most certainly read
1726 # $(mkdir_p) $(DESTDIR)$(somedir)
1727 # so it does not work when $(somedir) is undefined and
1728 # $(DESTDIR) is not.
1729 # To support the latter case, we have to write
1730 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1731 # so the `.' trick is pointless.
1732 mkdir_p='mkdir -p --'
1733 else
1734 # On NextStep and OpenStep, the `mkdir' command does not
1735 # recognize any option. It will interpret all options as
1736 # directories to create, and then abort because `.' already
1737 # exists.
1738 for d in ./-p ./--version;
1739 do
1740 test -d $d && rmdir $d
1741 done
1742 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1743 if test -f "$ac_aux_dir/mkinstalldirs"; then
1744 mkdir_p='$(mkinstalldirs)'
1745 else
1746 mkdir_p='$(install_sh) -d'
1747 fi
1748 fi
1749
1750 for ac_prog in gawk mawk nawk awk
1751 do
1752 # Extract the first word of "$ac_prog", so it can be a program name with args.
1753 set dummy $ac_prog; ac_word=$2
1754 echo "$as_me:$LINENO: checking for $ac_word" >&5
1755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1756 if test "${ac_cv_prog_AWK+set}" = set; then
1757 echo $ECHO_N "(cached) $ECHO_C" >&6
1758 else
1759 if test -n "$AWK"; then
1760 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1761 else
1762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763 for as_dir in $PATH
1764 do
1765 IFS=$as_save_IFS
1766 test -z "$as_dir" && as_dir=.
1767 for ac_exec_ext in '' $ac_executable_extensions; do
1768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1769 ac_cv_prog_AWK="$ac_prog"
1770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1771 break 2
1772 fi
1773 done
1774 done
1775
1776 fi
1777 fi
1778 AWK=$ac_cv_prog_AWK
1779 if test -n "$AWK"; then
1780 echo "$as_me:$LINENO: result: $AWK" >&5
1781 echo "${ECHO_T}$AWK" >&6
1782 else
1783 echo "$as_me:$LINENO: result: no" >&5
1784 echo "${ECHO_T}no" >&6
1785 fi
1786
1787 test -n "$AWK" && break
1788 done
1789
1790 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1791 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1792 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1793 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1795 else
1796 cat >conftest.make <<\_ACEOF
1797 all:
1798 @echo 'ac_maketemp="$(MAKE)"'
1799 _ACEOF
1800 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1801 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1802 if test -n "$ac_maketemp"; then
1803 eval ac_cv_prog_make_${ac_make}_set=yes
1804 else
1805 eval ac_cv_prog_make_${ac_make}_set=no
1806 fi
1807 rm -f conftest.make
1808 fi
1809 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1810 echo "$as_me:$LINENO: result: yes" >&5
1811 echo "${ECHO_T}yes" >&6
1812 SET_MAKE=
1813 else
1814 echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1816 SET_MAKE="MAKE=${MAKE-make}"
1817 fi
1818
1819 rm -rf .tst 2>/dev/null
1820 mkdir .tst 2>/dev/null
1821 if test -d .tst; then
1822 am__leading_dot=.
1823 else
1824 am__leading_dot=_
1825 fi
1826 rmdir .tst 2>/dev/null
1827
1828 # test to see if srcdir already configured
1829 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1830 test -f $srcdir/config.status; then
1831 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1832 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1833 { (exit 1); exit 1; }; }
1834 fi
1835
1836 # test whether we have cygpath
1837 if test -z "$CYGPATH_W"; then
1838 if (cygpath --version) >/dev/null 2>/dev/null; then
1839 CYGPATH_W='cygpath -w'
1840 else
1841 CYGPATH_W=echo
1842 fi
1843 fi
1844
1845
1846 # Define the identity of the package.
1847 PACKAGE='normalize'
1848 VERSION='0.7.7'
1849
1850
1851 cat >>confdefs.h <<_ACEOF
1852 #define PACKAGE "$PACKAGE"
1853 _ACEOF
1854
1855
1856 cat >>confdefs.h <<_ACEOF
1857 #define VERSION "$VERSION"
1858 _ACEOF
1859
1860 # Some tools Automake needs.
1861
1862 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1863
1864
1865 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1866
1867
1868 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1869
1870
1871 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1872
1873
1874 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1875
1876 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1877
1878 # Installed binaries are usually stripped using `strip' when the user
1879 # run `make install-strip'. However `strip' might not be the right
1880 # tool to use in cross-compilation environments, therefore Automake
1881 # will honor the `STRIP' environment variable to overrule this program.
1882 if test "$cross_compiling" != no; then
1883 if test -n "$ac_tool_prefix"; then
1884 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1885 set dummy ${ac_tool_prefix}strip; ac_word=$2
1886 echo "$as_me:$LINENO: checking for $ac_word" >&5
1887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1888 if test "${ac_cv_prog_STRIP+set}" = set; then
1889 echo $ECHO_N "(cached) $ECHO_C" >&6
1890 else
1891 if test -n "$STRIP"; then
1892 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1893 else
1894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 for as_dir in $PATH
1896 do
1897 IFS=$as_save_IFS
1898 test -z "$as_dir" && as_dir=.
1899 for ac_exec_ext in '' $ac_executable_extensions; do
1900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1901 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903 break 2
1904 fi
1905 done
1906 done
1907
1908 fi
1909 fi
1910 STRIP=$ac_cv_prog_STRIP
1911 if test -n "$STRIP"; then
1912 echo "$as_me:$LINENO: result: $STRIP" >&5
1913 echo "${ECHO_T}$STRIP" >&6
1914 else
1915 echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6
1917 fi
1918
1919 fi
1920 if test -z "$ac_cv_prog_STRIP"; then
1921 ac_ct_STRIP=$STRIP
1922 # Extract the first word of "strip", so it can be a program name with args.
1923 set dummy strip; ac_word=$2
1924 echo "$as_me:$LINENO: checking for $ac_word" >&5
1925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1926 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1928 else
1929 if test -n "$ac_ct_STRIP"; then
1930 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1931 else
1932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933 for as_dir in $PATH
1934 do
1935 IFS=$as_save_IFS
1936 test -z "$as_dir" && as_dir=.
1937 for ac_exec_ext in '' $ac_executable_extensions; do
1938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1939 ac_cv_prog_ac_ct_STRIP="strip"
1940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941 break 2
1942 fi
1943 done
1944 done
1945
1946 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1947 fi
1948 fi
1949 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1950 if test -n "$ac_ct_STRIP"; then
1951 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1952 echo "${ECHO_T}$ac_ct_STRIP" >&6
1953 else
1954 echo "$as_me:$LINENO: result: no" >&5
1955 echo "${ECHO_T}no" >&6
1956 fi
1957
1958 STRIP=$ac_ct_STRIP
1959 else
1960 STRIP="$ac_cv_prog_STRIP"
1961 fi
1962
1963 fi
1964 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1965
1966 # We need awk for the "check" target. The system "awk" is bad on
1967 # some platforms.
1968 # Always define AMTAR for backward compatibility.
1969
1970 AMTAR=${AMTAR-"${am_missing_run}tar"}
1971
1972 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1973
1974
1975
1976
1977
1978 ac_config_headers="$ac_config_headers config.h"
1979
1980
1981 # Make sure we can run config.sub.
1982 $ac_config_sub sun4 >/dev/null 2>&1 ||
1983 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1984 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1985 { (exit 1); exit 1; }; }
1986
1987 echo "$as_me:$LINENO: checking build system type" >&5
1988 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1989 if test "${ac_cv_build+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 else
1992 ac_cv_build_alias=$build_alias
1993 test -z "$ac_cv_build_alias" &&
1994 ac_cv_build_alias=`$ac_config_guess`
1995 test -z "$ac_cv_build_alias" &&
1996 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1997 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1998 { (exit 1); exit 1; }; }
1999 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2000 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2001 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2002 { (exit 1); exit 1; }; }
2003
2004 fi
2005 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2006 echo "${ECHO_T}$ac_cv_build" >&6
2007 build=$ac_cv_build
2008 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2009 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2010 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2011
2012
2013 echo "$as_me:$LINENO: checking host system type" >&5
2014 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2015 if test "${ac_cv_host+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2017 else
2018 ac_cv_host_alias=$host_alias
2019 test -z "$ac_cv_host_alias" &&
2020 ac_cv_host_alias=$ac_cv_build_alias
2021 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2022 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2023 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2024 { (exit 1); exit 1; }; }
2025
2026 fi
2027 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2028 echo "${ECHO_T}$ac_cv_host" >&6
2029 host=$ac_cv_host
2030 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2031 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2032 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2033
2034
2035 ac_ext=c
2036 ac_cpp='$CPP $CPPFLAGS'
2037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2040 if test -n "$ac_tool_prefix"; then
2041 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2042 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2043 echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2045 if test "${ac_cv_prog_CC+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 else
2048 if test -n "$CC"; then
2049 ac_cv_prog_CC="$CC" # Let the user override the test.
2050 else
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 for as_dir in $PATH
2053 do
2054 IFS=$as_save_IFS
2055 test -z "$as_dir" && as_dir=.
2056 for ac_exec_ext in '' $ac_executable_extensions; do
2057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2058 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060 break 2
2061 fi
2062 done
2063 done
2064
2065 fi
2066 fi
2067 CC=$ac_cv_prog_CC
2068 if test -n "$CC"; then
2069 echo "$as_me:$LINENO: result: $CC" >&5
2070 echo "${ECHO_T}$CC" >&6
2071 else
2072 echo "$as_me:$LINENO: result: no" >&5
2073 echo "${ECHO_T}no" >&6
2074 fi
2075
2076 fi
2077 if test -z "$ac_cv_prog_CC"; then
2078 ac_ct_CC=$CC
2079 # Extract the first word of "gcc", so it can be a program name with args.
2080 set dummy gcc; ac_word=$2
2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2083 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2085 else
2086 if test -n "$ac_ct_CC"; then
2087 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2088 else
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 for as_dir in $PATH
2091 do
2092 IFS=$as_save_IFS
2093 test -z "$as_dir" && as_dir=.
2094 for ac_exec_ext in '' $ac_executable_extensions; do
2095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096 ac_cv_prog_ac_ct_CC="gcc"
2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098 break 2
2099 fi
2100 done
2101 done
2102
2103 fi
2104 fi
2105 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2106 if test -n "$ac_ct_CC"; then
2107 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2108 echo "${ECHO_T}$ac_ct_CC" >&6
2109 else
2110 echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6
2112 fi
2113
2114 CC=$ac_ct_CC
2115 else
2116 CC="$ac_cv_prog_CC"
2117 fi
2118
2119 if test -z "$CC"; then
2120 if test -n "$ac_tool_prefix"; then
2121 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2122 set dummy ${ac_tool_prefix}cc; ac_word=$2
2123 echo "$as_me:$LINENO: checking for $ac_word" >&5
2124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2125 if test "${ac_cv_prog_CC+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2127 else
2128 if test -n "$CC"; then
2129 ac_cv_prog_CC="$CC" # Let the user override the test.
2130 else
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132 for as_dir in $PATH
2133 do
2134 IFS=$as_save_IFS
2135 test -z "$as_dir" && as_dir=.
2136 for ac_exec_ext in '' $ac_executable_extensions; do
2137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2138 ac_cv_prog_CC="${ac_tool_prefix}cc"
2139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140 break 2
2141 fi
2142 done
2143 done
2144
2145 fi
2146 fi
2147 CC=$ac_cv_prog_CC
2148 if test -n "$CC"; then
2149 echo "$as_me:$LINENO: result: $CC" >&5
2150 echo "${ECHO_T}$CC" >&6
2151 else
2152 echo "$as_me:$LINENO: result: no" >&5
2153 echo "${ECHO_T}no" >&6
2154 fi
2155
2156 fi
2157 if test -z "$ac_cv_prog_CC"; then
2158 ac_ct_CC=$CC
2159 # Extract the first word of "cc", so it can be a program name with args.
2160 set dummy cc; ac_word=$2
2161 echo "$as_me:$LINENO: checking for $ac_word" >&5
2162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2163 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2164 echo $ECHO_N "(cached) $ECHO_C" >&6
2165 else
2166 if test -n "$ac_ct_CC"; then
2167 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2168 else
2169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170 for as_dir in $PATH
2171 do
2172 IFS=$as_save_IFS
2173 test -z "$as_dir" && as_dir=.
2174 for ac_exec_ext in '' $ac_executable_extensions; do
2175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2176 ac_cv_prog_ac_ct_CC="cc"
2177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2178 break 2
2179 fi
2180 done
2181 done
2182
2183 fi
2184 fi
2185 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2186 if test -n "$ac_ct_CC"; then
2187 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2188 echo "${ECHO_T}$ac_ct_CC" >&6
2189 else
2190 echo "$as_me:$LINENO: result: no" >&5
2191 echo "${ECHO_T}no" >&6
2192 fi
2193
2194 CC=$ac_ct_CC
2195 else
2196 CC="$ac_cv_prog_CC"
2197 fi
2198
2199 fi
2200 if test -z "$CC"; then
2201 # Extract the first word of "cc", so it can be a program name with args.
2202 set dummy cc; 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 ac_prog_rejected=no
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213 for as_dir in $PATH
2214 do
2215 IFS=$as_save_IFS
2216 test -z "$as_dir" && as_dir=.
2217 for ac_exec_ext in '' $ac_executable_extensions; do
2218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2219 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2220 ac_prog_rejected=yes
2221 continue
2222 fi
2223 ac_cv_prog_CC="cc"
2224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2225 break 2
2226 fi
2227 done
2228 done
2229
2230 if test $ac_prog_rejected = yes; then
2231 # We found a bogon in the path, so make sure we never use it.
2232 set dummy $ac_cv_prog_CC
2233 shift
2234 if test $# != 0; then
2235 # We chose a different compiler from the bogus one.
2236 # However, it has the same basename, so the bogon will be chosen
2237 # first if we set CC to just the basename; use the full file name.
2238 shift
2239 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2240 fi
2241 fi
2242 fi
2243 fi
2244 CC=$ac_cv_prog_CC
2245 if test -n "$CC"; then
2246 echo "$as_me:$LINENO: result: $CC" >&5
2247 echo "${ECHO_T}$CC" >&6
2248 else
2249 echo "$as_me:$LINENO: result: no" >&5
2250 echo "${ECHO_T}no" >&6
2251 fi
2252
2253 fi
2254 if test -z "$CC"; then
2255 if test -n "$ac_tool_prefix"; then
2256 for ac_prog in cl
2257 do
2258 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2259 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2260 echo "$as_me:$LINENO: checking for $ac_word" >&5
2261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2262 if test "${ac_cv_prog_CC+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2264 else
2265 if test -n "$CC"; then
2266 ac_cv_prog_CC="$CC" # Let the user override the test.
2267 else
2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 for as_dir in $PATH
2270 do
2271 IFS=$as_save_IFS
2272 test -z "$as_dir" && as_dir=.
2273 for ac_exec_ext in '' $ac_executable_extensions; do
2274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2275 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2277 break 2
2278 fi
2279 done
2280 done
2281
2282 fi
2283 fi
2284 CC=$ac_cv_prog_CC
2285 if test -n "$CC"; then
2286 echo "$as_me:$LINENO: result: $CC" >&5
2287 echo "${ECHO_T}$CC" >&6
2288 else
2289 echo "$as_me:$LINENO: result: no" >&5
2290 echo "${ECHO_T}no" >&6
2291 fi
2292
2293 test -n "$CC" && break
2294 done
2295 fi
2296 if test -z "$CC"; then
2297 ac_ct_CC=$CC
2298 for ac_prog in cl
2299 do
2300 # Extract the first word of "$ac_prog", so it can be a program name with args.
2301 set dummy $ac_prog; ac_word=$2
2302 echo "$as_me:$LINENO: checking for $ac_word" >&5
2303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2304 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307 if test -n "$ac_ct_CC"; then
2308 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2309 else
2310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311 for as_dir in $PATH
2312 do
2313 IFS=$as_save_IFS
2314 test -z "$as_dir" && as_dir=.
2315 for ac_exec_ext in '' $ac_executable_extensions; do
2316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2317 ac_cv_prog_ac_ct_CC="$ac_prog"
2318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2319 break 2
2320 fi
2321 done
2322 done
2323
2324 fi
2325 fi
2326 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2327 if test -n "$ac_ct_CC"; then
2328 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2329 echo "${ECHO_T}$ac_ct_CC" >&6
2330 else
2331 echo "$as_me:$LINENO: result: no" >&5
2332 echo "${ECHO_T}no" >&6
2333 fi
2334
2335 test -n "$ac_ct_CC" && break
2336 done
2337
2338 CC=$ac_ct_CC
2339 fi
2340
2341 fi
2342
2343
2344 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2345 See \`config.log' for more details." >&5
2346 echo "$as_me: error: no acceptable C compiler found in \$PATH
2347 See \`config.log' for more details." >&2;}
2348 { (exit 1); exit 1; }; }
2349
2350 # Provide some information about the compiler.
2351 echo "$as_me:$LINENO:" \
2352 "checking for C compiler version" >&5
2353 ac_compiler=`set X $ac_compile; echo $2`
2354 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2355 (eval $ac_compiler --version </dev/null >&5) 2>&5
2356 ac_status=$?
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }
2359 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2360 (eval $ac_compiler -v </dev/null >&5) 2>&5
2361 ac_status=$?
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }
2364 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2365 (eval $ac_compiler -V </dev/null >&5) 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }
2369
2370 cat >conftest.$ac_ext <<_ACEOF
2371 /* confdefs.h. */
2372 _ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h. */
2376
2377 int
2378 main ()
2379 {
2380
2381 ;
2382 return 0;
2383 }
2384 _ACEOF
2385 ac_clean_files_save=$ac_clean_files
2386 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2387 # Try to create an executable without -o first, disregard a.out.
2388 # It will help us diagnose broken compilers, and finding out an intuition
2389 # of exeext.
2390 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2391 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2392 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2393 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2394 (eval $ac_link_default) 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; then
2398 # Find the output, starting from the most likely. This scheme is
2399 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2400 # resort.
2401
2402 # Be careful to initialize this variable, since it used to be cached.
2403 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2404 ac_cv_exeext=
2405 # b.out is created by i960 compilers.
2406 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2407 do
2408 test -f "$ac_file" || continue
2409 case $ac_file in
2410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2411 ;;
2412 conftest.$ac_ext )
2413 # This is the source file.
2414 ;;
2415 [ab].out )
2416 # We found the default executable, but exeext='' is most
2417 # certainly right.
2418 break;;
2419 *.* )
2420 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2421 # FIXME: I believe we export ac_cv_exeext for Libtool,
2422 # but it would be cool to find out if it's true. Does anybody
2423 # maintain Libtool? --akim.
2424 export ac_cv_exeext
2425 break;;
2426 * )
2427 break;;
2428 esac
2429 done
2430 else
2431 echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.$ac_ext >&5
2433
2434 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2435 See \`config.log' for more details." >&5
2436 echo "$as_me: error: C compiler cannot create executables
2437 See \`config.log' for more details." >&2;}
2438 { (exit 77); exit 77; }; }
2439 fi
2440
2441 ac_exeext=$ac_cv_exeext
2442 echo "$as_me:$LINENO: result: $ac_file" >&5
2443 echo "${ECHO_T}$ac_file" >&6
2444
2445 # Check the compiler produces executables we can run. If not, either
2446 # the compiler is broken, or we cross compile.
2447 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2448 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2449 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2450 # If not cross compiling, check that we can run a simple program.
2451 if test "$cross_compiling" != yes; then
2452 if { ac_try='./$ac_file'
2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 (eval $ac_try) 2>&5
2455 ac_status=$?
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; }; then
2458 cross_compiling=no
2459 else
2460 if test "$cross_compiling" = maybe; then
2461 cross_compiling=yes
2462 else
2463 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2464 If you meant to cross compile, use \`--host'.
2465 See \`config.log' for more details." >&5
2466 echo "$as_me: error: cannot run C compiled programs.
2467 If you meant to cross compile, use \`--host'.
2468 See \`config.log' for more details." >&2;}
2469 { (exit 1); exit 1; }; }
2470 fi
2471 fi
2472 fi
2473 echo "$as_me:$LINENO: result: yes" >&5
2474 echo "${ECHO_T}yes" >&6
2475
2476 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2477 ac_clean_files=$ac_clean_files_save
2478 # Check the compiler produces executables we can run. If not, either
2479 # the compiler is broken, or we cross compile.
2480 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2481 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2482 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2483 echo "${ECHO_T}$cross_compiling" >&6
2484
2485 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2486 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2488 (eval $ac_link) 2>&5
2489 ac_status=$?
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; then
2492 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2493 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2494 # work properly (i.e., refer to `conftest.exe'), while it won't with
2495 # `rm'.
2496 for ac_file in conftest.exe conftest conftest.*; do
2497 test -f "$ac_file" || continue
2498 case $ac_file in
2499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2500 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2501 export ac_cv_exeext
2502 break;;
2503 * ) break;;
2504 esac
2505 done
2506 else
2507 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2508 See \`config.log' for more details." >&5
2509 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2510 See \`config.log' for more details." >&2;}
2511 { (exit 1); exit 1; }; }
2512 fi
2513
2514 rm -f conftest$ac_cv_exeext
2515 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2516 echo "${ECHO_T}$ac_cv_exeext" >&6
2517
2518 rm -f conftest.$ac_ext
2519 EXEEXT=$ac_cv_exeext
2520 ac_exeext=$EXEEXT
2521 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2522 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2523 if test "${ac_cv_objext+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2525 else
2526 cat >conftest.$ac_ext <<_ACEOF
2527 /* confdefs.h. */
2528 _ACEOF
2529 cat confdefs.h >>conftest.$ac_ext
2530 cat >>conftest.$ac_ext <<_ACEOF
2531 /* end confdefs.h. */
2532
2533 int
2534 main ()
2535 {
2536
2537 ;
2538 return 0;
2539 }
2540 _ACEOF
2541 rm -f conftest.o conftest.obj
2542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2543 (eval $ac_compile) 2>&5
2544 ac_status=$?
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; then
2547 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2548 case $ac_file in
2549 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2550 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2551 break;;
2552 esac
2553 done
2554 else
2555 echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.$ac_ext >&5
2557
2558 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2559 See \`config.log' for more details." >&5
2560 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2561 See \`config.log' for more details." >&2;}
2562 { (exit 1); exit 1; }; }
2563 fi
2564
2565 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2566 fi
2567 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2568 echo "${ECHO_T}$ac_cv_objext" >&6
2569 OBJEXT=$ac_cv_objext
2570 ac_objext=$OBJEXT
2571 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2572 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2573 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2574 echo $ECHO_N "(cached) $ECHO_C" >&6
2575 else
2576 cat >conftest.$ac_ext <<_ACEOF
2577 /* confdefs.h. */
2578 _ACEOF
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h. */
2582
2583 int
2584 main ()
2585 {
2586 #ifndef __GNUC__
2587 choke me
2588 #endif
2589
2590 ;
2591 return 0;
2592 }
2593 _ACEOF
2594 rm -f conftest.$ac_objext
2595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2596 (eval $ac_compile) 2>conftest.er1
2597 ac_status=$?
2598 grep -v '^ *+' conftest.er1 >conftest.err
2599 rm -f conftest.er1
2600 cat conftest.err >&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); } &&
2603 { ac_try='test -z "$ac_c_werror_flag"
2604 || test ! -s conftest.err'
2605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606 (eval $ac_try) 2>&5
2607 ac_status=$?
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; } &&
2610 { ac_try='test -s conftest.$ac_objext'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 (eval $ac_try) 2>&5
2613 ac_status=$?
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; }; then
2616 ac_compiler_gnu=yes
2617 else
2618 echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2620
2621 ac_compiler_gnu=no
2622 fi
2623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2624 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2625
2626 fi
2627 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2628 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2629 GCC=`test $ac_compiler_gnu = yes && echo yes`
2630 ac_test_CFLAGS=${CFLAGS+set}
2631 ac_save_CFLAGS=$CFLAGS
2632 CFLAGS="-g"
2633 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2634 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2635 if test "${ac_cv_prog_cc_g+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2637 else
2638 cat >conftest.$ac_ext <<_ACEOF
2639 /* confdefs.h. */
2640 _ACEOF
2641 cat confdefs.h >>conftest.$ac_ext
2642 cat >>conftest.$ac_ext <<_ACEOF
2643 /* end confdefs.h. */
2644
2645 int
2646 main ()
2647 {
2648
2649 ;
2650 return 0;
2651 }
2652 _ACEOF
2653 rm -f conftest.$ac_objext
2654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2655 (eval $ac_compile) 2>conftest.er1
2656 ac_status=$?
2657 grep -v '^ *+' conftest.er1 >conftest.err
2658 rm -f conftest.er1
2659 cat conftest.err >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); } &&
2662 { ac_try='test -z "$ac_c_werror_flag"
2663 || test ! -s conftest.err'
2664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665 (eval $ac_try) 2>&5
2666 ac_status=$?
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; } &&
2669 { ac_try='test -s conftest.$ac_objext'
2670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671 (eval $ac_try) 2>&5
2672 ac_status=$?
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }; }; then
2675 ac_cv_prog_cc_g=yes
2676 else
2677 echo "$as_me: failed program was:" >&5
2678 sed 's/^/| /' conftest.$ac_ext >&5
2679
2680 ac_cv_prog_cc_g=no
2681 fi
2682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2683 fi
2684 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2685 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2686 if test "$ac_test_CFLAGS" = set; then
2687 CFLAGS=$ac_save_CFLAGS
2688 elif test $ac_cv_prog_cc_g = yes; then
2689 if test "$GCC" = yes; then
2690 CFLAGS="-g -O2"
2691 else
2692 CFLAGS="-g"
2693 fi
2694 else
2695 if test "$GCC" = yes; then
2696 CFLAGS="-O2"
2697 else
2698 CFLAGS=
2699 fi
2700 fi
2701 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2702 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2703 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
2705 else
2706 ac_cv_prog_cc_stdc=no
2707 ac_save_CC=$CC
2708 cat >conftest.$ac_ext <<_ACEOF
2709 /* confdefs.h. */
2710 _ACEOF
2711 cat confdefs.h >>conftest.$ac_ext
2712 cat >>conftest.$ac_ext <<_ACEOF
2713 /* end confdefs.h. */
2714 #include <stdarg.h>
2715 #include <stdio.h>
2716 #include <sys/types.h>
2717 #include <sys/stat.h>
2718 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2719 struct buf { int x; };
2720 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2721 static char *e (p, i)
2722 char **p;
2723 int i;
2724 {
2725 return p[i];
2726 }
2727 static char *f (char * (*g) (char **, int), char **p, ...)
2728 {
2729 char *s;
2730 va_list v;
2731 va_start (v,p);
2732 s = g (p, va_arg (v,int));
2733 va_end (v);
2734 return s;
2735 }
2736
2737 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2738 function prototypes and stuff, but not '\xHH' hex character constants.
2739 These don't provoke an error unfortunately, instead are silently treated
2740 as 'x'. The following induces an error, until -std1 is added to get
2741 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2742 array size at least. It's necessary to write '\x00'==0 to get something
2743 that's true only with -std1. */
2744 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2745
2746 int test (int i, double x);
2747 struct s1 {int (*f) (int a);};
2748 struct s2 {int (*f) (double a);};
2749 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2750 int argc;
2751 char **argv;
2752 int
2753 main ()
2754 {
2755 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2756 ;
2757 return 0;
2758 }
2759 _ACEOF
2760 # Don't try gcc -ansi; that turns off useful extensions and
2761 # breaks some systems' header files.
2762 # AIX -qlanglvl=ansi
2763 # Ultrix and OSF/1 -std1
2764 # HP-UX 10.20 and later -Ae
2765 # HP-UX older versions -Aa -D_HPUX_SOURCE
2766 # SVR4 -Xc -D__EXTENSIONS__
2767 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2768 do
2769 CC="$ac_save_CC $ac_arg"
2770 rm -f conftest.$ac_objext
2771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2772 (eval $ac_compile) 2>conftest.er1
2773 ac_status=$?
2774 grep -v '^ *+' conftest.er1 >conftest.err
2775 rm -f conftest.er1
2776 cat conftest.err >&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); } &&
2779 { ac_try='test -z "$ac_c_werror_flag"
2780 || test ! -s conftest.err'
2781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782 (eval $ac_try) 2>&5
2783 ac_status=$?
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); }; } &&
2786 { ac_try='test -s conftest.$ac_objext'
2787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788 (eval $ac_try) 2>&5
2789 ac_status=$?
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; }; then
2792 ac_cv_prog_cc_stdc=$ac_arg
2793 break
2794 else
2795 echo "$as_me: failed program was:" >&5
2796 sed 's/^/| /' conftest.$ac_ext >&5
2797
2798 fi
2799 rm -f conftest.err conftest.$ac_objext
2800 done
2801 rm -f conftest.$ac_ext conftest.$ac_objext
2802 CC=$ac_save_CC
2803
2804 fi
2805
2806 case "x$ac_cv_prog_cc_stdc" in
2807 x|xno)
2808 echo "$as_me:$LINENO: result: none needed" >&5
2809 echo "${ECHO_T}none needed" >&6 ;;
2810 *)
2811 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2812 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2813 CC="$CC $ac_cv_prog_cc_stdc" ;;
2814 esac
2815
2816 # Some people use a C++ compiler to compile C. Since we use `exit',
2817 # in C++ we need to declare it. In case someone uses the same compiler
2818 # for both compiling C and C++ we need to have the C++ compiler decide
2819 # the declaration of exit, since it's the most demanding environment.
2820 cat >conftest.$ac_ext <<_ACEOF
2821 #ifndef __cplusplus
2822 choke me
2823 #endif
2824 _ACEOF
2825 rm -f conftest.$ac_objext
2826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2827 (eval $ac_compile) 2>conftest.er1
2828 ac_status=$?
2829 grep -v '^ *+' conftest.er1 >conftest.err
2830 rm -f conftest.er1
2831 cat conftest.err >&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } &&
2834 { ac_try='test -z "$ac_c_werror_flag"
2835 || test ! -s conftest.err'
2836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837 (eval $ac_try) 2>&5
2838 ac_status=$?
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; } &&
2841 { ac_try='test -s conftest.$ac_objext'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843 (eval $ac_try) 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; }; then
2847 for ac_declaration in \
2848 '' \
2849 'extern "C" void std::exit (int) throw (); using std::exit;' \
2850 'extern "C" void std::exit (int); using std::exit;' \
2851 'extern "C" void exit (int) throw ();' \
2852 'extern "C" void exit (int);' \
2853 'void exit (int);'
2854 do
2855 cat >conftest.$ac_ext <<_ACEOF
2856 /* confdefs.h. */
2857 _ACEOF
2858 cat confdefs.h >>conftest.$ac_ext
2859 cat >>conftest.$ac_ext <<_ACEOF
2860 /* end confdefs.h. */
2861 $ac_declaration
2862 #include <stdlib.h>
2863 int
2864 main ()
2865 {
2866 exit (42);
2867 ;
2868 return 0;
2869 }
2870 _ACEOF
2871 rm -f conftest.$ac_objext
2872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2873 (eval $ac_compile) 2>conftest.er1
2874 ac_status=$?
2875 grep -v '^ *+' conftest.er1 >conftest.err
2876 rm -f conftest.er1
2877 cat conftest.err >&5
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); } &&
2880 { ac_try='test -z "$ac_c_werror_flag"
2881 || test ! -s conftest.err'
2882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883 (eval $ac_try) 2>&5
2884 ac_status=$?
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; } &&
2887 { ac_try='test -s conftest.$ac_objext'
2888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889 (eval $ac_try) 2>&5
2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; }; then
2893 :
2894 else
2895 echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2897
2898 continue
2899 fi
2900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2901 cat >conftest.$ac_ext <<_ACEOF
2902 /* confdefs.h. */
2903 _ACEOF
2904 cat confdefs.h >>conftest.$ac_ext
2905 cat >>conftest.$ac_ext <<_ACEOF
2906 /* end confdefs.h. */
2907 $ac_declaration
2908 int
2909 main ()
2910 {
2911 exit (42);
2912 ;
2913 return 0;
2914 }
2915 _ACEOF
2916 rm -f conftest.$ac_objext
2917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2918 (eval $ac_compile) 2>conftest.er1
2919 ac_status=$?
2920 grep -v '^ *+' conftest.er1 >conftest.err
2921 rm -f conftest.er1
2922 cat conftest.err >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); } &&
2925 { ac_try='test -z "$ac_c_werror_flag"
2926 || test ! -s conftest.err'
2927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928 (eval $ac_try) 2>&5
2929 ac_status=$?
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }; } &&
2932 { ac_try='test -s conftest.$ac_objext'
2933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934 (eval $ac_try) 2>&5
2935 ac_status=$?
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }; }; then
2938 break
2939 else
2940 echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2942
2943 fi
2944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2945 done
2946 rm -f conftest*
2947 if test -n "$ac_declaration"; then
2948 echo '#ifdef __cplusplus' >>confdefs.h
2949 echo $ac_declaration >>confdefs.h
2950 echo '#endif' >>confdefs.h
2951 fi
2952
2953 else
2954 echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2956
2957 fi
2958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2959 ac_ext=c
2960 ac_cpp='$CPP $CPPFLAGS'
2961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2964 DEPDIR="${am__leading_dot}deps"
2965
2966 ac_config_commands="$ac_config_commands depfiles"
2967
2968
2969 am_make=${MAKE-make}
2970 cat > confinc << 'END'
2971 am__doit:
2972 @echo done
2973 .PHONY: am__doit
2974 END
2975 # If we don't find an include directive, just comment out the code.
2976 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2977 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2978 am__include="#"
2979 am__quote=
2980 _am_result=none
2981 # First try GNU make style include.
2982 echo "include confinc" > confmf
2983 # We grep out `Entering directory' and `Leaving directory'
2984 # messages which can occur if `w' ends up in MAKEFLAGS.
2985 # In particular we don't look at `^make:' because GNU make might
2986 # be invoked under some other name (usually "gmake"), in which
2987 # case it prints its new name instead of `make'.
2988 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2989 am__include=include
2990 am__quote=
2991 _am_result=GNU
2992 fi
2993 # Now try BSD make style include.
2994 if test "$am__include" = "#"; then
2995 echo '.include "confinc"' > confmf
2996 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2997 am__include=.include
2998 am__quote="\""
2999 _am_result=BSD
3000 fi
3001 fi
3002
3003
3004 echo "$as_me:$LINENO: result: $_am_result" >&5
3005 echo "${ECHO_T}$_am_result" >&6
3006 rm -f confinc confmf
3007
3008 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3009 if test "${enable_dependency_tracking+set}" = set; then
3010 enableval="$enable_dependency_tracking"
3011
3012 fi;
3013 if test "x$enable_dependency_tracking" != xno; then
3014 am_depcomp="$ac_aux_dir/depcomp"
3015 AMDEPBACKSLASH='\'
3016 fi
3017
3018
3019 if test "x$enable_dependency_tracking" != xno; then
3020 AMDEP_TRUE=
3021 AMDEP_FALSE='#'
3022 else
3023 AMDEP_TRUE='#'
3024 AMDEP_FALSE=
3025 fi
3026
3027
3028
3029
3030 depcc="$CC" am_compiler_list=
3031
3032 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3033 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3034 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3036 else
3037 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3038 # We make a subdir and do the tests there. Otherwise we can end up
3039 # making bogus files that we don't know about and never remove. For
3040 # instance it was reported that on HP-UX the gcc test will end up
3041 # making a dummy file named `D' -- because `-MD' means `put the output
3042 # in D'.
3043 mkdir conftest.dir
3044 # Copy depcomp to subdir because otherwise we won't find it if we're
3045 # using a relative directory.
3046 cp "$am_depcomp" conftest.dir
3047 cd conftest.dir
3048 # We will build objects and dependencies in a subdirectory because
3049 # it helps to detect inapplicable dependency modes. For instance
3050 # both Tru64's cc and ICC support -MD to output dependencies as a
3051 # side effect of compilation, but ICC will put the dependencies in
3052 # the current directory while Tru64 will put them in the object
3053 # directory.
3054 mkdir sub
3055
3056 am_cv_CC_dependencies_compiler_type=none
3057 if test "$am_compiler_list" = ""; then
3058 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3059 fi
3060 for depmode in $am_compiler_list; do
3061 # Setup a source with many dependencies, because some compilers
3062 # like to wrap large dependency lists on column 80 (with \), and
3063 # we should not choose a depcomp mode which is confused by this.
3064 #
3065 # We need to recreate these files for each test, as the compiler may
3066 # overwrite some of them when testing with obscure command lines.
3067 # This happens at least with the AIX C compiler.
3068 : > sub/conftest.c
3069 for i in 1 2 3 4 5 6; do
3070 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3071 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3072 # Solaris 8's {/usr,}/bin/sh.
3073 touch sub/conftst$i.h
3074 done
3075 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3076
3077 case $depmode in
3078 nosideeffect)
3079 # after this tag, mechanisms are not by side-effect, so they'll
3080 # only be used when explicitly requested
3081 if test "x$enable_dependency_tracking" = xyes; then
3082 continue
3083 else
3084 break
3085 fi
3086 ;;
3087 none) break ;;
3088 esac
3089 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3090 # mode. It turns out that the SunPro C++ compiler does not properly
3091 # handle `-M -o', and we need to detect this.
3092 if depmode=$depmode \
3093 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3094 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3095 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3096 >/dev/null 2>conftest.err &&
3097 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3098 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3099 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3100 # icc doesn't choke on unknown options, it will just issue warnings
3101 # or remarks (even with -Werror). So we grep stderr for any message
3102 # that says an option was ignored or not supported.
3103 # When given -MP, icc 7.0 and 7.1 complain thusly:
3104 # icc: Command line warning: ignoring option '-M'; no argument required
3105 # The diagnosis changed in icc 8.0:
3106 # icc: Command line remark: option '-MP' not supported
3107 if (grep 'ignoring option' conftest.err ||
3108 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3109 am_cv_CC_dependencies_compiler_type=$depmode
3110 break
3111 fi
3112 fi
3113 done
3114
3115 cd ..
3116 rm -rf conftest.dir
3117 else
3118 am_cv_CC_dependencies_compiler_type=none
3119 fi
3120
3121 fi
3122 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3123 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3124 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3125
3126
3127
3128 if
3129 test "x$enable_dependency_tracking" != xno \
3130 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3131 am__fastdepCC_TRUE=
3132 am__fastdepCC_FALSE='#'
3133 else
3134 am__fastdepCC_TRUE='#'
3135 am__fastdepCC_FALSE=
3136 fi
3137
3138
3139
3140 echo "$as_me:$LINENO: checking for library containing strerror" >&5
3141 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3142 if test "${ac_cv_search_strerror+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3144 else
3145 ac_func_search_save_LIBS=$LIBS
3146 ac_cv_search_strerror=no
3147 cat >conftest.$ac_ext <<_ACEOF
3148 /* confdefs.h. */
3149 _ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h. */
3153
3154 /* Override any gcc2 internal prototype to avoid an error. */
3155 #ifdef __cplusplus
3156 extern "C"
3157 #endif
3158 /* We use char because int might match the return type of a gcc2
3159 builtin and then its argument prototype would still apply. */
3160 char strerror ();
3161 int
3162 main ()
3163 {
3164 strerror ();
3165 ;
3166 return 0;
3167 }
3168 _ACEOF
3169 rm -f conftest.$ac_objext conftest$ac_exeext
3170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3171 (eval $ac_link) 2>conftest.er1
3172 ac_status=$?
3173 grep -v '^ *+' conftest.er1 >conftest.err
3174 rm -f conftest.er1
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } &&
3178 { ac_try='test -z "$ac_c_werror_flag"
3179 || test ! -s conftest.err'
3180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181 (eval $ac_try) 2>&5
3182 ac_status=$?
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; } &&
3185 { ac_try='test -s conftest$ac_exeext'
3186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187 (eval $ac_try) 2>&5
3188 ac_status=$?
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; }; then
3191 ac_cv_search_strerror="none required"
3192 else
3193 echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3195
3196 fi
3197 rm -f conftest.err conftest.$ac_objext \
3198 conftest$ac_exeext conftest.$ac_ext
3199 if test "$ac_cv_search_strerror" = no; then
3200 for ac_lib in cposix; do
3201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3202 cat >conftest.$ac_ext <<_ACEOF
3203 /* confdefs.h. */
3204 _ACEOF
3205 cat confdefs.h >>conftest.$ac_ext
3206 cat >>conftest.$ac_ext <<_ACEOF
3207 /* end confdefs.h. */
3208
3209 /* Override any gcc2 internal prototype to avoid an error. */
3210 #ifdef __cplusplus
3211 extern "C"
3212 #endif
3213 /* We use char because int might match the return type of a gcc2
3214 builtin and then its argument prototype would still apply. */
3215 char strerror ();
3216 int
3217 main ()
3218 {
3219 strerror ();
3220 ;
3221 return 0;
3222 }
3223 _ACEOF
3224 rm -f conftest.$ac_objext conftest$ac_exeext
3225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3226 (eval $ac_link) 2>conftest.er1
3227 ac_status=$?
3228 grep -v '^ *+' conftest.er1 >conftest.err
3229 rm -f conftest.er1
3230 cat conftest.err >&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); } &&
3233 { ac_try='test -z "$ac_c_werror_flag"
3234 || test ! -s conftest.err'
3235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3236 (eval $ac_try) 2>&5
3237 ac_status=$?
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }; } &&
3240 { ac_try='test -s conftest$ac_exeext'
3241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3242 (eval $ac_try) 2>&5
3243 ac_status=$?
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); }; }; then
3246 ac_cv_search_strerror="-l$ac_lib"
3247 break
3248 else
3249 echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3251
3252 fi
3253 rm -f conftest.err conftest.$ac_objext \
3254 conftest$ac_exeext conftest.$ac_ext
3255 done
3256 fi
3257 LIBS=$ac_func_search_save_LIBS
3258 fi
3259 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3260 echo "${ECHO_T}$ac_cv_search_strerror" >&6
3261 if test "$ac_cv_search_strerror" != no; then
3262 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3263
3264 fi
3265
3266 # Find a good install program. We prefer a C program (faster),
3267 # so one script is as good as another. But avoid the broken or
3268 # incompatible versions:
3269 # SysV /etc/install, /usr/sbin/install
3270 # SunOS /usr/etc/install
3271 # IRIX /sbin/install
3272 # AIX /bin/install
3273 # AmigaOS /C/install, which installs bootblocks on floppy discs
3274 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3275 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3276 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3277 # OS/2's system install, which has a completely different semantic
3278 # ./install, which can be erroneously created by make from ./install.sh.
3279 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3280 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3281 if test -z "$INSTALL"; then
3282 if test "${ac_cv_path_install+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3284 else
3285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286 for as_dir in $PATH
3287 do
3288 IFS=$as_save_IFS
3289 test -z "$as_dir" && as_dir=.
3290 # Account for people who put trailing slashes in PATH elements.
3291 case $as_dir/ in
3292 ./ | .// | /cC/* | \
3293 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3294 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3295 /usr/ucb/* ) ;;
3296 *)
3297 # OSF1 and SCO ODT 3.0 have their own names for install.
3298 # Don't use installbsd from OSF since it installs stuff as root
3299 # by default.
3300 for ac_prog in ginstall scoinst install; do
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3303 if test $ac_prog = install &&
3304 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3305 # AIX install. It has an incompatible calling convention.
3306 :
3307 elif test $ac_prog = install &&
3308 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3309 # program-specific install script used by HP pwplus--don't use.
3310 :
3311 else
3312 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3313 break 3
3314 fi
3315 fi
3316 done
3317 done
3318 ;;
3319 esac
3320 done
3321
3322
3323 fi
3324 if test "${ac_cv_path_install+set}" = set; then
3325 INSTALL=$ac_cv_path_install
3326 else
3327 # As a last resort, use the slow shell script. We don't cache a
3328 # path for INSTALL within a source directory, because that will
3329 # break other packages using the cache if that directory is
3330 # removed, or if the path is relative.
3331 INSTALL=$ac_install_sh
3332 fi
3333 fi
3334 echo "$as_me:$LINENO: result: $INSTALL" >&5
3335 echo "${ECHO_T}$INSTALL" >&6
3336
3337 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3338 # It thinks the first close brace ends the variable substitution.
3339 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3340
3341 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3342
3343 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3344
3345 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3346 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3347 LN_S=$as_ln_s
3348 if test "$LN_S" = "ln -s"; then
3349 echo "$as_me:$LINENO: result: yes" >&5
3350 echo "${ECHO_T}yes" >&6
3351 else
3352 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3353 echo "${ECHO_T}no, using $LN_S" >&6
3354 fi
3355
3356
3357
3358 echo "$as_me:$LINENO: checking for dos file convention" >&5
3359 echo $ECHO_N "checking for dos file convention... $ECHO_C" >&6
3360 if test "${ac_cv_dosfile+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363 if test -d ".\."; then
3364 ac_cv_dosfile=yes
3365 else
3366 ac_cv_dosfile=no
3367 fi
3368
3369 fi
3370 echo "$as_me:$LINENO: result: $ac_cv_dosfile" >&5
3371 echo "${ECHO_T}$ac_cv_dosfile" >&6
3372
3373 if test $ac_cv_dosfile = yes; then
3374
3375 cat >>confdefs.h <<\_ACEOF
3376 #define HAVE_DOS_FILE_NAMES 1
3377 _ACEOF
3378
3379
3380 cat >>confdefs.h <<\_ACEOF
3381 #define HAVE_DOS_FILE_CONTENTS 1
3382 _ACEOF
3383
3384 fi
3385
3386
3387 ac_ext=c
3388 ac_cpp='$CPP $CPPFLAGS'
3389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3393 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3394 # On Suns, sometimes $CPP names a directory.
3395 if test -n "$CPP" && test -d "$CPP"; then
3396 CPP=
3397 fi
3398 if test -z "$CPP"; then
3399 if test "${ac_cv_prog_CPP+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3401 else
3402 # Double quotes because CPP needs to be expanded
3403 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3404 do
3405 ac_preproc_ok=false
3406 for ac_c_preproc_warn_flag in '' yes
3407 do
3408 # Use a header file that comes with gcc, so configuring glibc
3409 # with a fresh cross-compiler works.
3410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3411 # <limits.h> exists even on freestanding compilers.
3412 # On the NeXT, cc -E runs the code through the compiler's parser,
3413 # not just through cpp. "Syntax error" is here to catch this case.
3414 cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h. */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3420 #ifdef __STDC__
3421 # include <limits.h>
3422 #else
3423 # include <assert.h>
3424 #endif
3425 Syntax error
3426 _ACEOF
3427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3429 ac_status=$?
3430 grep -v '^ *+' conftest.er1 >conftest.err
3431 rm -f conftest.er1
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } >/dev/null; then
3435 if test -s conftest.err; then
3436 ac_cpp_err=$ac_c_preproc_warn_flag
3437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3438 else
3439 ac_cpp_err=
3440 fi
3441 else
3442 ac_cpp_err=yes
3443 fi
3444 if test -z "$ac_cpp_err"; then
3445 :
3446 else
3447 echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3449
3450 # Broken: fails on valid input.
3451 continue
3452 fi
3453 rm -f conftest.err conftest.$ac_ext
3454
3455 # OK, works on sane cases. Now check whether non-existent headers
3456 # can be detected and how.
3457 cat >conftest.$ac_ext <<_ACEOF
3458 /* confdefs.h. */
3459 _ACEOF
3460 cat confdefs.h >>conftest.$ac_ext
3461 cat >>conftest.$ac_ext <<_ACEOF
3462 /* end confdefs.h. */
3463 #include <ac_nonexistent.h>
3464 _ACEOF
3465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3467 ac_status=$?
3468 grep -v '^ *+' conftest.er1 >conftest.err
3469 rm -f conftest.er1
3470 cat conftest.err >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } >/dev/null; then
3473 if test -s conftest.err; then
3474 ac_cpp_err=$ac_c_preproc_warn_flag
3475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3476 else
3477 ac_cpp_err=
3478 fi
3479 else
3480 ac_cpp_err=yes
3481 fi
3482 if test -z "$ac_cpp_err"; then
3483 # Broken: success on invalid input.
3484 continue
3485 else
3486 echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3488
3489 # Passes both tests.
3490 ac_preproc_ok=:
3491 break
3492 fi
3493 rm -f conftest.err conftest.$ac_ext
3494
3495 done
3496 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3497 rm -f conftest.err conftest.$ac_ext
3498 if $ac_preproc_ok; then
3499 break
3500 fi
3501
3502 done
3503 ac_cv_prog_CPP=$CPP
3504
3505 fi
3506 CPP=$ac_cv_prog_CPP
3507 else
3508 ac_cv_prog_CPP=$CPP
3509 fi
3510 echo "$as_me:$LINENO: result: $CPP" >&5
3511 echo "${ECHO_T}$CPP" >&6
3512 ac_preproc_ok=false
3513 for ac_c_preproc_warn_flag in '' yes
3514 do
3515 # Use a header file that comes with gcc, so configuring glibc
3516 # with a fresh cross-compiler works.
3517 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3518 # <limits.h> exists even on freestanding compilers.
3519 # On the NeXT, cc -E runs the code through the compiler's parser,
3520 # not just through cpp. "Syntax error" is here to catch this case.
3521 cat >conftest.$ac_ext <<_ACEOF
3522 /* confdefs.h. */
3523 _ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3527 #ifdef __STDC__
3528 # include <limits.h>
3529 #else
3530 # include <assert.h>
3531 #endif
3532 Syntax error
3533 _ACEOF
3534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3536 ac_status=$?
3537 grep -v '^ *+' conftest.er1 >conftest.err
3538 rm -f conftest.er1
3539 cat conftest.err >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); } >/dev/null; then
3542 if test -s conftest.err; then
3543 ac_cpp_err=$ac_c_preproc_warn_flag
3544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3545 else
3546 ac_cpp_err=
3547 fi
3548 else
3549 ac_cpp_err=yes
3550 fi
3551 if test -z "$ac_cpp_err"; then
3552 :
3553 else
3554 echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3556
3557 # Broken: fails on valid input.
3558 continue
3559 fi
3560 rm -f conftest.err conftest.$ac_ext
3561
3562 # OK, works on sane cases. Now check whether non-existent headers
3563 # can be detected and how.
3564 cat >conftest.$ac_ext <<_ACEOF
3565 /* confdefs.h. */
3566 _ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3570 #include <ac_nonexistent.h>
3571 _ACEOF
3572 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3574 ac_status=$?
3575 grep -v '^ *+' conftest.er1 >conftest.err
3576 rm -f conftest.er1
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } >/dev/null; then
3580 if test -s conftest.err; then
3581 ac_cpp_err=$ac_c_preproc_warn_flag
3582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3583 else
3584 ac_cpp_err=
3585 fi
3586 else
3587 ac_cpp_err=yes
3588 fi
3589 if test -z "$ac_cpp_err"; then
3590 # Broken: success on invalid input.
3591 continue
3592 else
3593 echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3595
3596 # Passes both tests.
3597 ac_preproc_ok=:
3598 break
3599 fi
3600 rm -f conftest.err conftest.$ac_ext
3601
3602 done
3603 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3604 rm -f conftest.err conftest.$ac_ext
3605 if $ac_preproc_ok; then
3606 :
3607 else
3608 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3609 See \`config.log' for more details." >&5
3610 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3611 See \`config.log' for more details." >&2;}
3612 { (exit 1); exit 1; }; }
3613 fi
3614
3615 ac_ext=c
3616 ac_cpp='$CPP $CPPFLAGS'
3617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3620
3621
3622 echo "$as_me:$LINENO: checking for egrep" >&5
3623 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3624 if test "${ac_cv_prog_egrep+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 else
3627 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3628 then ac_cv_prog_egrep='grep -E'
3629 else ac_cv_prog_egrep='egrep'
3630 fi
3631 fi
3632 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3633 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3634 EGREP=$ac_cv_prog_egrep
3635
3636
3637 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3638 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3639 if test "${ac_cv_header_stdc+set}" = set; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3641 else
3642 cat >conftest.$ac_ext <<_ACEOF
3643 /* confdefs.h. */
3644 _ACEOF
3645 cat confdefs.h >>conftest.$ac_ext
3646 cat >>conftest.$ac_ext <<_ACEOF
3647 /* end confdefs.h. */
3648 #include <stdlib.h>
3649 #include <stdarg.h>
3650 #include <string.h>
3651 #include <float.h>
3652
3653 int
3654 main ()
3655 {
3656
3657 ;
3658 return 0;
3659 }
3660 _ACEOF
3661 rm -f conftest.$ac_objext
3662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3663 (eval $ac_compile) 2>conftest.er1
3664 ac_status=$?
3665 grep -v '^ *+' conftest.er1 >conftest.err
3666 rm -f conftest.er1
3667 cat conftest.err >&5
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } &&
3670 { ac_try='test -z "$ac_c_werror_flag"
3671 || test ! -s conftest.err'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 (eval $ac_try) 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; } &&
3677 { ac_try='test -s conftest.$ac_objext'
3678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679 (eval $ac_try) 2>&5
3680 ac_status=$?
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }; }; then
3683 ac_cv_header_stdc=yes
3684 else
3685 echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.$ac_ext >&5
3687
3688 ac_cv_header_stdc=no
3689 fi
3690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3691
3692 if test $ac_cv_header_stdc = yes; then
3693 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3694 cat >conftest.$ac_ext <<_ACEOF
3695 /* confdefs.h. */
3696 _ACEOF
3697 cat confdefs.h >>conftest.$ac_ext
3698 cat >>conftest.$ac_ext <<_ACEOF
3699 /* end confdefs.h. */
3700 #include <string.h>
3701
3702 _ACEOF
3703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3704 $EGREP "memchr" >/dev/null 2>&1; then
3705 :
3706 else
3707 ac_cv_header_stdc=no
3708 fi
3709 rm -f conftest*
3710
3711 fi
3712
3713 if test $ac_cv_header_stdc = yes; then
3714 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3715 cat >conftest.$ac_ext <<_ACEOF
3716 /* confdefs.h. */
3717 _ACEOF
3718 cat confdefs.h >>conftest.$ac_ext
3719 cat >>conftest.$ac_ext <<_ACEOF
3720 /* end confdefs.h. */
3721 #include <stdlib.h>
3722
3723 _ACEOF
3724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3725 $EGREP "free" >/dev/null 2>&1; then
3726 :
3727 else
3728 ac_cv_header_stdc=no
3729 fi
3730 rm -f conftest*
3731
3732 fi
3733
3734 if test $ac_cv_header_stdc = yes; then
3735 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3736 if test "$cross_compiling" = yes; then
3737 :
3738 else
3739 cat >conftest.$ac_ext <<_ACEOF
3740 /* confdefs.h. */
3741 _ACEOF
3742 cat confdefs.h >>conftest.$ac_ext
3743 cat >>conftest.$ac_ext <<_ACEOF
3744 /* end confdefs.h. */
3745 #include <ctype.h>
3746 #if ((' ' & 0x0FF) == 0x020)
3747 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3748 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3749 #else
3750 # define ISLOWER(c) \
3751 (('a' <= (c) && (c) <= 'i') \
3752 || ('j' <= (c) && (c) <= 'r') \
3753 || ('s' <= (c) && (c) <= 'z'))
3754 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3755 #endif
3756
3757 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3758 int
3759 main ()
3760 {
3761 int i;
3762 for (i = 0; i < 256; i++)
3763 if (XOR (islower (i), ISLOWER (i))
3764 || toupper (i) != TOUPPER (i))
3765 exit(2);
3766 exit (0);
3767 }
3768 _ACEOF
3769 rm -f conftest$ac_exeext
3770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3771 (eval $ac_link) 2>&5
3772 ac_status=$?
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776 (eval $ac_try) 2>&5
3777 ac_status=$?
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }; }; then
3780 :
3781 else
3782 echo "$as_me: program exited with status $ac_status" >&5
3783 echo "$as_me: failed program was:" >&5
3784 sed 's/^/| /' conftest.$ac_ext >&5
3785
3786 ( exit $ac_status )
3787 ac_cv_header_stdc=no
3788 fi
3789 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3790 fi
3791 fi
3792 fi
3793 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3794 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3795 if test $ac_cv_header_stdc = yes; then
3796
3797 cat >>confdefs.h <<\_ACEOF
3798 #define STDC_HEADERS 1
3799 _ACEOF
3800
3801 fi
3802
3803 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3814 inttypes.h stdint.h unistd.h
3815 do
3816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3817 echo "$as_me:$LINENO: checking for $ac_header" >&5
3818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3821 else
3822 cat >conftest.$ac_ext <<_ACEOF
3823 /* confdefs.h. */
3824 _ACEOF
3825 cat confdefs.h >>conftest.$ac_ext
3826 cat >>conftest.$ac_ext <<_ACEOF
3827 /* end confdefs.h. */
3828 $ac_includes_default
3829
3830 #include <$ac_header>
3831 _ACEOF
3832 rm -f conftest.$ac_objext
3833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3834 (eval $ac_compile) 2>conftest.er1
3835 ac_status=$?
3836 grep -v '^ *+' conftest.er1 >conftest.err
3837 rm -f conftest.er1
3838 cat conftest.err >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } &&
3841 { ac_try='test -z "$ac_c_werror_flag"
3842 || test ! -s conftest.err'
3843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3844 (eval $ac_try) 2>&5
3845 ac_status=$?
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); }; } &&
3848 { ac_try='test -s conftest.$ac_objext'
3849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3850 (eval $ac_try) 2>&5
3851 ac_status=$?
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); }; }; then
3854 eval "$as_ac_Header=yes"
3855 else
3856 echo "$as_me: failed program was:" >&5
3857 sed 's/^/| /' conftest.$ac_ext >&5
3858
3859 eval "$as_ac_Header=no"
3860 fi
3861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862 fi
3863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3866 cat >>confdefs.h <<_ACEOF
3867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3868 _ACEOF
3869
3870 fi
3871
3872 done
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888 for ac_header in string.h math.h ctype.h fcntl.h unistd.h byteswap.h sys/types.h sys/stat.h sys/mman.h locale.h stdint.h inttypes.h errno.h
3889 do
3890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3892 echo "$as_me:$LINENO: checking for $ac_header" >&5
3893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3896 fi
3897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3899 else
3900 # Is the header compilable?
3901 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3902 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3903 cat >conftest.$ac_ext <<_ACEOF
3904 /* confdefs.h. */
3905 _ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3909 $ac_includes_default
3910 #include <$ac_header>
3911 _ACEOF
3912 rm -f conftest.$ac_objext
3913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3914 (eval $ac_compile) 2>conftest.er1
3915 ac_status=$?
3916 grep -v '^ *+' conftest.er1 >conftest.err
3917 rm -f conftest.er1
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } &&
3921 { ac_try='test -z "$ac_c_werror_flag"
3922 || test ! -s conftest.err'
3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 (eval $ac_try) 2>&5
3925 ac_status=$?
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }; } &&
3928 { ac_try='test -s conftest.$ac_objext'
3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930 (eval $ac_try) 2>&5
3931 ac_status=$?
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; }; then
3934 ac_header_compiler=yes
3935 else
3936 echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3938
3939 ac_header_compiler=no
3940 fi
3941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3942 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3943 echo "${ECHO_T}$ac_header_compiler" >&6
3944
3945 # Is the header present?
3946 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3948 cat >conftest.$ac_ext <<_ACEOF
3949 /* confdefs.h. */
3950 _ACEOF
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h. */
3954 #include <$ac_header>
3955 _ACEOF
3956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3958 ac_status=$?
3959 grep -v '^ *+' conftest.er1 >conftest.err
3960 rm -f conftest.er1
3961 cat conftest.err >&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } >/dev/null; then
3964 if test -s conftest.err; then
3965 ac_cpp_err=$ac_c_preproc_warn_flag
3966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3967 else
3968 ac_cpp_err=
3969 fi
3970 else
3971 ac_cpp_err=yes
3972 fi
3973 if test -z "$ac_cpp_err"; then
3974 ac_header_preproc=yes
3975 else
3976 echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3978
3979 ac_header_preproc=no
3980 fi
3981 rm -f conftest.err conftest.$ac_ext
3982 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3983 echo "${ECHO_T}$ac_header_preproc" >&6
3984
3985 # So? What about this header?
3986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3987 yes:no: )
3988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3992 ac_header_preproc=yes
3993 ;;
3994 no:yes:* )
3995 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3997 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3998 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3999 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4000 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4001 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4002 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4005 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4006 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4007 (
4008 cat <<\_ASBOX
4009 ## ------------------------------------ ##
4010 ## Report this to the normalize lists. ##
4011 ## ------------------------------------ ##
4012 _ASBOX
4013 ) |
4014 sed "s/^/$as_me: WARNING: /" >&2
4015 ;;
4016 esac
4017 echo "$as_me:$LINENO: checking for $ac_header" >&5
4018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022 eval "$as_ac_Header=\$ac_header_preproc"
4023 fi
4024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4026
4027 fi
4028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4029 cat >>confdefs.h <<_ACEOF
4030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4031 _ACEOF
4032
4033 fi
4034
4035 done
4036
4037
4038 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4039 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4040 if test "${ac_cv_c_const+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 else
4043 cat >conftest.$ac_ext <<_ACEOF
4044 /* confdefs.h. */
4045 _ACEOF
4046 cat confdefs.h >>conftest.$ac_ext
4047 cat >>conftest.$ac_ext <<_ACEOF
4048 /* end confdefs.h. */
4049
4050 int
4051 main ()
4052 {
4053 /* FIXME: Include the comments suggested by Paul. */
4054 #ifndef __cplusplus
4055 /* Ultrix mips cc rejects this. */
4056 typedef int charset[2];
4057 const charset x;
4058 /* SunOS 4.1.1 cc rejects this. */
4059 char const *const *ccp;
4060 char **p;
4061 /* NEC SVR4.0.2 mips cc rejects this. */
4062 struct point {int x, y;};
4063 static struct point const zero = {0,0};
4064 /* AIX XL C 1.02.0.0 rejects this.
4065 It does not let you subtract one const X* pointer from another in
4066 an arm of an if-expression whose if-part is not a constant
4067 expression */
4068 const char *g = "string";
4069 ccp = &g + (g ? g-g : 0);
4070 /* HPUX 7.0 cc rejects these. */
4071 ++ccp;
4072 p = (char**) ccp;
4073 ccp = (char const *const *) p;
4074 { /* SCO 3.2v4 cc rejects this. */
4075 char *t;
4076 char const *s = 0 ? (char *) 0 : (char const *) 0;
4077
4078 *t++ = 0;
4079 }
4080 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4081 int x[] = {25, 17};
4082 const int *foo = &x[0];
4083 ++foo;
4084 }
4085 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4086 typedef const int *iptr;
4087 iptr p = 0;
4088 ++p;
4089 }
4090 { /* AIX XL C 1.02.0.0 rejects this saying
4091 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4092 struct s { int j; const int *ap[3]; };
4093 struct s *b; b->j = 5;
4094 }
4095 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4096 const int foo = 10;
4097 }
4098 #endif
4099
4100 ;
4101 return 0;
4102 }
4103 _ACEOF
4104 rm -f conftest.$ac_objext
4105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4106 (eval $ac_compile) 2>conftest.er1
4107 ac_status=$?
4108 grep -v '^ *+' conftest.er1 >conftest.err
4109 rm -f conftest.er1
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } &&
4113 { ac_try='test -z "$ac_c_werror_flag"
4114 || test ! -s conftest.err'
4115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116 (eval $ac_try) 2>&5
4117 ac_status=$?
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; } &&
4120 { ac_try='test -s conftest.$ac_objext'
4121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 (eval $ac_try) 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; }; then
4126 ac_cv_c_const=yes
4127 else
4128 echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.$ac_ext >&5
4130
4131 ac_cv_c_const=no
4132 fi
4133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4134 fi
4135 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4136 echo "${ECHO_T}$ac_cv_c_const" >&6
4137 if test $ac_cv_c_const = no; then
4138
4139 cat >>confdefs.h <<\_ACEOF
4140 #define const
4141 _ACEOF
4142
4143 fi
4144
4145 echo "$as_me:$LINENO: checking for inline" >&5
4146 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4147 if test "${ac_cv_c_inline+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 else
4150 ac_cv_c_inline=no
4151 for ac_kw in inline __inline__ __inline; do
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 #ifndef __cplusplus
4159 typedef int foo_t;
4160 static $ac_kw foo_t static_foo () {return 0; }
4161 $ac_kw foo_t foo () {return 0; }
4162 #endif
4163
4164 _ACEOF
4165 rm -f conftest.$ac_objext
4166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4167 (eval $ac_compile) 2>conftest.er1
4168 ac_status=$?
4169 grep -v '^ *+' conftest.er1 >conftest.err
4170 rm -f conftest.er1
4171 cat conftest.err >&5
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); } &&
4174 { ac_try='test -z "$ac_c_werror_flag"
4175 || test ! -s conftest.err'
4176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4177 (eval $ac_try) 2>&5
4178 ac_status=$?
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; } &&
4181 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4187 ac_cv_c_inline=$ac_kw; break
4188 else
4189 echo "$as_me: failed program was:" >&5
4190 sed 's/^/| /' conftest.$ac_ext >&5
4191
4192 fi
4193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4194 done
4195
4196 fi
4197 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4198 echo "${ECHO_T}$ac_cv_c_inline" >&6
4199
4200
4201 case $ac_cv_c_inline in
4202 inline | yes) ;;
4203 *)
4204 case $ac_cv_c_inline in
4205 no) ac_val=;;
4206 *) ac_val=$ac_cv_c_inline;;
4207 esac
4208 cat >>confdefs.h <<_ACEOF
4209 #ifndef __cplusplus
4210 #define inline $ac_val
4211 #endif
4212 _ACEOF
4213 ;;
4214 esac
4215
4216 echo "$as_me:$LINENO: checking for off_t" >&5
4217 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4218 if test "${ac_cv_type_off_t+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221 cat >conftest.$ac_ext <<_ACEOF
4222 /* confdefs.h. */
4223 _ACEOF
4224 cat confdefs.h >>conftest.$ac_ext
4225 cat >>conftest.$ac_ext <<_ACEOF
4226 /* end confdefs.h. */
4227 $ac_includes_default
4228 int
4229 main ()
4230 {
4231 if ((off_t *) 0)
4232 return 0;
4233 if (sizeof (off_t))
4234 return 0;
4235 ;
4236 return 0;
4237 }
4238 _ACEOF
4239 rm -f conftest.$ac_objext
4240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4241 (eval $ac_compile) 2>conftest.er1
4242 ac_status=$?
4243 grep -v '^ *+' conftest.er1 >conftest.err
4244 rm -f conftest.er1
4245 cat conftest.err >&5
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); } &&
4248 { ac_try='test -z "$ac_c_werror_flag"
4249 || test ! -s conftest.err'
4250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4251 (eval $ac_try) 2>&5
4252 ac_status=$?
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; } &&
4255 { ac_try='test -s conftest.$ac_objext'
4256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257 (eval $ac_try) 2>&5
4258 ac_status=$?
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }; }; then
4261 ac_cv_type_off_t=yes
4262 else
4263 echo "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4265
4266 ac_cv_type_off_t=no
4267 fi
4268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4269 fi
4270 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4271 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4272 if test $ac_cv_type_off_t = yes; then
4273 :
4274 else
4275
4276 cat >>confdefs.h <<_ACEOF
4277 #define off_t long
4278 _ACEOF
4279
4280 fi
4281
4282 echo "$as_me:$LINENO: checking for size_t" >&5
4283 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4284 if test "${ac_cv_type_size_t+set}" = set; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 else
4287 cat >conftest.$ac_ext <<_ACEOF
4288 /* confdefs.h. */
4289 _ACEOF
4290 cat confdefs.h >>conftest.$ac_ext
4291 cat >>conftest.$ac_ext <<_ACEOF
4292 /* end confdefs.h. */
4293 $ac_includes_default
4294 int
4295 main ()
4296 {
4297 if ((size_t *) 0)
4298 return 0;
4299 if (sizeof (size_t))
4300 return 0;
4301 ;
4302 return 0;
4303 }
4304 _ACEOF
4305 rm -f conftest.$ac_objext
4306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4307 (eval $ac_compile) 2>conftest.er1
4308 ac_status=$?
4309 grep -v '^ *+' conftest.er1 >conftest.err
4310 rm -f conftest.er1
4311 cat conftest.err >&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } &&
4314 { ac_try='test -z "$ac_c_werror_flag"
4315 || test ! -s conftest.err'
4316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317 (eval $ac_try) 2>&5
4318 ac_status=$?
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); }; } &&
4321 { ac_try='test -s conftest.$ac_objext'
4322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323 (eval $ac_try) 2>&5
4324 ac_status=$?
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }; }; then
4327 ac_cv_type_size_t=yes
4328 else
4329 echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.$ac_ext >&5
4331
4332 ac_cv_type_size_t=no
4333 fi
4334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4335 fi
4336 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4337 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4338 if test $ac_cv_type_size_t = yes; then
4339 :
4340 else
4341
4342 cat >>confdefs.h <<_ACEOF
4343 #define size_t unsigned
4344 _ACEOF
4345
4346 fi
4347
4348 if test "$cross_compiling" = "yes"; then
4349 case "$host_cpu" in
4350 i?86 | alpha ) ENDIAN=little;;
4351 *) ENDIAN=big; cat >>confdefs.h <<\_ACEOF
4352 #define WORDS_BIGENDIAN 1
4353 _ACEOF
4354 ;;
4355 esac
4356 { echo "$as_me:$LINENO: WARNING: I'm guessing that the target machine is $ENDIAN-endian" >&5
4357 echo "$as_me: WARNING: I'm guessing that the target machine is $ENDIAN-endian" >&2;}
4358 else
4359 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4360 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4361 if test "${ac_cv_c_bigendian+set}" = set; then
4362 echo $ECHO_N "(cached) $ECHO_C" >&6
4363 else
4364 # See if sys/param.h defines the BYTE_ORDER macro.
4365 cat >conftest.$ac_ext <<_ACEOF
4366 /* confdefs.h. */
4367 _ACEOF
4368 cat confdefs.h >>conftest.$ac_ext
4369 cat >>conftest.$ac_ext <<_ACEOF
4370 /* end confdefs.h. */
4371 #include <sys/types.h>
4372 #include <sys/param.h>
4373
4374 int
4375 main ()
4376 {
4377 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4378 bogus endian macros
4379 #endif
4380
4381 ;
4382 return 0;
4383 }
4384 _ACEOF
4385 rm -f conftest.$ac_objext
4386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4387 (eval $ac_compile) 2>conftest.er1
4388 ac_status=$?
4389 grep -v '^ *+' conftest.er1 >conftest.err
4390 rm -f conftest.er1
4391 cat conftest.err >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } &&
4394 { ac_try='test -z "$ac_c_werror_flag"
4395 || test ! -s conftest.err'
4396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397 (eval $ac_try) 2>&5
4398 ac_status=$?
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; } &&
4401 { ac_try='test -s conftest.$ac_objext'
4402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403 (eval $ac_try) 2>&5
4404 ac_status=$?
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; }; then
4407 # It does; now see whether it defined to BIG_ENDIAN or not.
4408 cat >conftest.$ac_ext <<_ACEOF
4409 /* confdefs.h. */
4410 _ACEOF
4411 cat confdefs.h >>conftest.$ac_ext
4412 cat >>conftest.$ac_ext <<_ACEOF
4413 /* end confdefs.h. */
4414 #include <sys/types.h>
4415 #include <sys/param.h>
4416
4417 int
4418 main ()
4419 {
4420 #if BYTE_ORDER != BIG_ENDIAN
4421 not big endian
4422 #endif
4423
4424 ;
4425 return 0;
4426 }
4427 _ACEOF
4428 rm -f conftest.$ac_objext
4429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4430 (eval $ac_compile) 2>conftest.er1
4431 ac_status=$?
4432 grep -v '^ *+' conftest.er1 >conftest.err
4433 rm -f conftest.er1
4434 cat conftest.err >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); } &&
4437 { ac_try='test -z "$ac_c_werror_flag"
4438 || test ! -s conftest.err'
4439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440 (eval $ac_try) 2>&5
4441 ac_status=$?
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); }; } &&
4444 { ac_try='test -s conftest.$ac_objext'
4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446 (eval $ac_try) 2>&5
4447 ac_status=$?
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); }; }; then
4450 ac_cv_c_bigendian=yes
4451 else
4452 echo "$as_me: failed program was:" >&5
4453 sed 's/^/| /' conftest.$ac_ext >&5
4454
4455 ac_cv_c_bigendian=no
4456 fi
4457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4458 else
4459 echo "$as_me: failed program was:" >&5
4460 sed 's/^/| /' conftest.$ac_ext >&5
4461
4462 # It does not; compile a test program.
4463 if test "$cross_compiling" = yes; then
4464 # try to guess the endianness by grepping values into an object file
4465 ac_cv_c_bigendian=unknown
4466 cat >conftest.$ac_ext <<_ACEOF
4467 /* confdefs.h. */
4468 _ACEOF
4469 cat confdefs.h >>conftest.$ac_ext
4470 cat >>conftest.$ac_ext <<_ACEOF
4471 /* end confdefs.h. */
4472 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4473 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4474 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4475 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4476 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4477 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4478 int
4479 main ()
4480 {
4481 _ascii (); _ebcdic ();
4482 ;
4483 return 0;
4484 }
4485 _ACEOF
4486 rm -f conftest.$ac_objext
4487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4488 (eval $ac_compile) 2>conftest.er1
4489 ac_status=$?
4490 grep -v '^ *+' conftest.er1 >conftest.err
4491 rm -f conftest.er1
4492 cat conftest.err >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } &&
4495 { ac_try='test -z "$ac_c_werror_flag"
4496 || test ! -s conftest.err'
4497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498 (eval $ac_try) 2>&5
4499 ac_status=$?
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; } &&
4502 { ac_try='test -s conftest.$ac_objext'
4503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4504 (eval $ac_try) 2>&5
4505 ac_status=$?
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; }; then
4508 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4509 ac_cv_c_bigendian=yes
4510 fi
4511 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4512 if test "$ac_cv_c_bigendian" = unknown; then
4513 ac_cv_c_bigendian=no
4514 else
4515 # finding both strings is unlikely to happen, but who knows?
4516 ac_cv_c_bigendian=unknown
4517 fi
4518 fi
4519 else
4520 echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.$ac_ext >&5
4522
4523 fi
4524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4525 else
4526 cat >conftest.$ac_ext <<_ACEOF
4527 /* confdefs.h. */
4528 _ACEOF
4529 cat confdefs.h >>conftest.$ac_ext
4530 cat >>conftest.$ac_ext <<_ACEOF
4531 /* end confdefs.h. */
4532 int
4533 main ()
4534 {
4535 /* Are we little or big endian? From Harbison&Steele. */
4536 union
4537 {
4538 long l;
4539 char c[sizeof (long)];
4540 } u;
4541 u.l = 1;
4542 exit (u.c[sizeof (long) - 1] == 1);
4543 }
4544 _ACEOF
4545 rm -f conftest$ac_exeext
4546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4547 (eval $ac_link) 2>&5
4548 ac_status=$?
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552 (eval $ac_try) 2>&5
4553 ac_status=$?
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); }; }; then
4556 ac_cv_c_bigendian=no
4557 else
4558 echo "$as_me: program exited with status $ac_status" >&5
4559 echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4561
4562 ( exit $ac_status )
4563 ac_cv_c_bigendian=yes
4564 fi
4565 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4566 fi
4567 fi
4568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4569 fi
4570 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4571 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4572 case $ac_cv_c_bigendian in
4573 yes)
4574
4575 cat >>confdefs.h <<\_ACEOF
4576 #define WORDS_BIGENDIAN 1
4577 _ACEOF
4578 ;;
4579 no)
4580 ;;
4581 *)
4582 { { echo "$as_me:$LINENO: error: unknown endianness
4583 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4584 echo "$as_me: error: unknown endianness
4585 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4586 { (exit 1); exit 1; }; } ;;
4587 esac
4588
4589 fi
4590
4591
4592 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4593 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4594 if test "${ac_cv_lib_m_sqrt+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 else
4597 ac_check_lib_save_LIBS=$LIBS
4598 LIBS="-lm $LIBS"
4599 cat >conftest.$ac_ext <<_ACEOF
4600 /* confdefs.h. */
4601 _ACEOF
4602 cat confdefs.h >>conftest.$ac_ext
4603 cat >>conftest.$ac_ext <<_ACEOF
4604 /* end confdefs.h. */
4605
4606 /* Override any gcc2 internal prototype to avoid an error. */
4607 #ifdef __cplusplus
4608 extern "C"
4609 #endif
4610 /* We use char because int might match the return type of a gcc2
4611 builtin and then its argument prototype would still apply. */
4612 char sqrt ();
4613 int
4614 main ()
4615 {
4616 sqrt ();
4617 ;
4618 return 0;
4619 }
4620 _ACEOF
4621 rm -f conftest.$ac_objext conftest$ac_exeext
4622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4623 (eval $ac_link) 2>conftest.er1
4624 ac_status=$?
4625 grep -v '^ *+' conftest.er1 >conftest.err
4626 rm -f conftest.er1
4627 cat conftest.err >&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } &&
4630 { ac_try='test -z "$ac_c_werror_flag"
4631 || test ! -s conftest.err'
4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633 (eval $ac_try) 2>&5
4634 ac_status=$?
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; } &&
4637 { ac_try='test -s conftest$ac_exeext'
4638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639 (eval $ac_try) 2>&5
4640 ac_status=$?
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }; }; then
4643 ac_cv_lib_m_sqrt=yes
4644 else
4645 echo "$as_me: failed program was:" >&5
4646 sed 's/^/| /' conftest.$ac_ext >&5
4647
4648 ac_cv_lib_m_sqrt=no
4649 fi
4650 rm -f conftest.err conftest.$ac_objext \
4651 conftest$ac_exeext conftest.$ac_ext
4652 LIBS=$ac_check_lib_save_LIBS
4653 fi
4654 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4655 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4656 if test $ac_cv_lib_m_sqrt = yes; then
4657 cat >>confdefs.h <<_ACEOF
4658 #define HAVE_LIBM 1
4659 _ACEOF
4660
4661 LIBS="-lm $LIBS"
4662
4663 else
4664 { { echo "$as_me:$LINENO: error: You don't seem to have a math library!" >&5
4665 echo "$as_me: error: You don't seem to have a math library!" >&2;}
4666 { (exit 1); exit 1; }; }
4667 fi
4668
4669
4670
4671
4672
4673
4674 for ac_func in strerror strtod strchr memcpy ftruncate
4675 do
4676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4677 echo "$as_me:$LINENO: checking for $ac_func" >&5
4678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4679 if eval "test \"\${$as_ac_var+set}\" = set"; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4681 else
4682 cat >conftest.$ac_ext <<_ACEOF
4683 /* confdefs.h. */
4684 _ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4690 #define $ac_func innocuous_$ac_func
4691
4692 /* System header to define __stub macros and hopefully few prototypes,
4693 which can conflict with char $ac_func (); below.
4694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4695 <limits.h> exists even on freestanding compilers. */
4696
4697 #ifdef __STDC__
4698 # include <limits.h>
4699 #else
4700 # include <assert.h>
4701 #endif
4702
4703 #undef $ac_func
4704
4705 /* Override any gcc2 internal prototype to avoid an error. */
4706 #ifdef __cplusplus
4707 extern "C"
4708 {
4709 #endif
4710 /* We use char because int might match the return type of a gcc2
4711 builtin and then its argument prototype would still apply. */
4712 char $ac_func ();
4713 /* The GNU C library defines this for functions which it implements
4714 to always fail with ENOSYS. Some functions are actually named
4715 something starting with __ and the normal name is an alias. */
4716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4717 choke me
4718 #else
4719 char (*f) () = $ac_func;
4720 #endif
4721 #ifdef __cplusplus
4722 }
4723 #endif
4724
4725 int
4726 main ()
4727 {
4728 return f != $ac_func;
4729 ;
4730 return 0;
4731 }
4732 _ACEOF
4733 rm -f conftest.$ac_objext conftest$ac_exeext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4735 (eval $ac_link) 2>conftest.er1
4736 ac_status=$?
4737 grep -v '^ *+' conftest.er1 >conftest.err
4738 rm -f conftest.er1
4739 cat conftest.err >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
4742 { ac_try='test -z "$ac_c_werror_flag"
4743 || test ! -s conftest.err'
4744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745 (eval $ac_try) 2>&5
4746 ac_status=$?
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); }; } &&
4749 { ac_try='test -s conftest$ac_exeext'
4750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751 (eval $ac_try) 2>&5
4752 ac_status=$?
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }; }; then
4755 eval "$as_ac_var=yes"
4756 else
4757 echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4759
4760 eval "$as_ac_var=no"
4761 fi
4762 rm -f conftest.err conftest.$ac_objext \
4763 conftest$ac_exeext conftest.$ac_ext
4764 fi
4765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4766 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4767 if test `eval echo '${'$as_ac_var'}'` = yes; then
4768 cat >>confdefs.h <<_ACEOF
4769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4770 _ACEOF
4771
4772 fi
4773 done
4774
4775
4776 if test x"$cross_compiling" = xyes -a x"$ac_cv_sizeof_long" = x; then
4777 # if cross-compiling, with no cached values, just assume something common.
4778 ac_cv_sizeof_char=1
4779 ac_cv_sizeof_short=2
4780 ac_cv_sizeof_int=4
4781 ac_cv_sizeof_long=4
4782 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4" >&5
4783 echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4" >&2;}
4784 fi
4785 echo "$as_me:$LINENO: checking for char" >&5
4786 echo $ECHO_N "checking for char... $ECHO_C" >&6
4787 if test "${ac_cv_type_char+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 else
4790 cat >conftest.$ac_ext <<_ACEOF
4791 /* confdefs.h. */
4792 _ACEOF
4793 cat confdefs.h >>conftest.$ac_ext
4794 cat >>conftest.$ac_ext <<_ACEOF
4795 /* end confdefs.h. */
4796 $ac_includes_default
4797 int
4798 main ()
4799 {
4800 if ((char *) 0)
4801 return 0;
4802 if (sizeof (char))
4803 return 0;
4804 ;
4805 return 0;
4806 }
4807 _ACEOF
4808 rm -f conftest.$ac_objext
4809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4810 (eval $ac_compile) 2>conftest.er1
4811 ac_status=$?
4812 grep -v '^ *+' conftest.er1 >conftest.err
4813 rm -f conftest.er1
4814 cat conftest.err >&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } &&
4817 { ac_try='test -z "$ac_c_werror_flag"
4818 || test ! -s conftest.err'
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); }; } &&
4824 { ac_try='test -s conftest.$ac_objext'
4825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826 (eval $ac_try) 2>&5
4827 ac_status=$?
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; }; then
4830 ac_cv_type_char=yes
4831 else
4832 echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4834
4835 ac_cv_type_char=no
4836 fi
4837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4838 fi
4839 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4840 echo "${ECHO_T}$ac_cv_type_char" >&6
4841
4842 echo "$as_me:$LINENO: checking size of char" >&5
4843 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4844 if test "${ac_cv_sizeof_char+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 else
4847 if test "$ac_cv_type_char" = yes; then
4848 # The cast to unsigned long works around a bug in the HP C Compiler
4849 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4850 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4851 # This bug is HP SR number 8606223364.
4852 if test "$cross_compiling" = yes; then
4853 # Depending upon the size, compute the lo and hi bounds.
4854 cat >conftest.$ac_ext <<_ACEOF
4855 /* confdefs.h. */
4856 _ACEOF
4857 cat confdefs.h >>conftest.$ac_ext
4858 cat >>conftest.$ac_ext <<_ACEOF
4859 /* end confdefs.h. */
4860 $ac_includes_default
4861 int
4862 main ()
4863 {
4864 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4865 test_array [0] = 0
4866
4867 ;
4868 return 0;
4869 }
4870 _ACEOF
4871 rm -f conftest.$ac_objext
4872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4873 (eval $ac_compile) 2>conftest.er1
4874 ac_status=$?
4875 grep -v '^ *+' conftest.er1 >conftest.err
4876 rm -f conftest.er1
4877 cat conftest.err >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); } &&
4880 { ac_try='test -z "$ac_c_werror_flag"
4881 || test ! -s conftest.err'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883 (eval $ac_try) 2>&5
4884 ac_status=$?
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; } &&
4887 { ac_try='test -s conftest.$ac_objext'
4888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889 (eval $ac_try) 2>&5
4890 ac_status=$?
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }; }; then
4893 ac_lo=0 ac_mid=0
4894 while :; do
4895 cat >conftest.$ac_ext <<_ACEOF
4896 /* confdefs.h. */
4897 _ACEOF
4898 cat confdefs.h >>conftest.$ac_ext
4899 cat >>conftest.$ac_ext <<_ACEOF
4900 /* end confdefs.h. */
4901 $ac_includes_default
4902 int
4903 main ()
4904 {
4905 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4906 test_array [0] = 0
4907
4908 ;
4909 return 0;
4910 }
4911 _ACEOF
4912 rm -f conftest.$ac_objext
4913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4914 (eval $ac_compile) 2>conftest.er1
4915 ac_status=$?
4916 grep -v '^ *+' conftest.er1 >conftest.err
4917 rm -f conftest.er1
4918 cat conftest.err >&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); } &&
4921 { ac_try='test -z "$ac_c_werror_flag"
4922 || test ! -s conftest.err'
4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924 (eval $ac_try) 2>&5
4925 ac_status=$?
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; } &&
4928 { ac_try='test -s conftest.$ac_objext'
4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930 (eval $ac_try) 2>&5
4931 ac_status=$?
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); }; }; then
4934 ac_hi=$ac_mid; break
4935 else
4936 echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.$ac_ext >&5
4938
4939 ac_lo=`expr $ac_mid + 1`
4940 if test $ac_lo -le $ac_mid; then
4941 ac_lo= ac_hi=
4942 break
4943 fi
4944 ac_mid=`expr 2 '*' $ac_mid + 1`
4945 fi
4946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4947 done
4948 else
4949 echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4951
4952 cat >conftest.$ac_ext <<_ACEOF
4953 /* confdefs.h. */
4954 _ACEOF
4955 cat confdefs.h >>conftest.$ac_ext
4956 cat >>conftest.$ac_ext <<_ACEOF
4957 /* end confdefs.h. */
4958 $ac_includes_default
4959 int
4960 main ()
4961 {
4962 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4963 test_array [0] = 0
4964
4965 ;
4966 return 0;
4967 }
4968 _ACEOF
4969 rm -f conftest.$ac_objext
4970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4971 (eval $ac_compile) 2>conftest.er1
4972 ac_status=$?
4973 grep -v '^ *+' conftest.er1 >conftest.err
4974 rm -f conftest.er1
4975 cat conftest.err >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } &&
4978 { ac_try='test -z "$ac_c_werror_flag"
4979 || test ! -s conftest.err'
4980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981 (eval $ac_try) 2>&5
4982 ac_status=$?
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); }; } &&
4985 { ac_try='test -s conftest.$ac_objext'
4986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987 (eval $ac_try) 2>&5
4988 ac_status=$?
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); }; }; then
4991 ac_hi=-1 ac_mid=-1
4992 while :; do
4993 cat >conftest.$ac_ext <<_ACEOF
4994 /* confdefs.h. */
4995 _ACEOF
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h. */
4999 $ac_includes_default
5000 int
5001 main ()
5002 {
5003 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
5004 test_array [0] = 0
5005
5006 ;
5007 return 0;
5008 }
5009 _ACEOF
5010 rm -f conftest.$ac_objext
5011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5012 (eval $ac_compile) 2>conftest.er1
5013 ac_status=$?
5014 grep -v '^ *+' conftest.er1 >conftest.err
5015 rm -f conftest.er1
5016 cat conftest.err >&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); } &&
5019 { ac_try='test -z "$ac_c_werror_flag"
5020 || test ! -s conftest.err'
5021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022 (eval $ac_try) 2>&5
5023 ac_status=$?
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); }; } &&
5026 { ac_try='test -s conftest.$ac_objext'
5027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028 (eval $ac_try) 2>&5
5029 ac_status=$?
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }; }; then
5032 ac_lo=$ac_mid; break
5033 else
5034 echo "$as_me: failed program was:" >&5
5035 sed 's/^/| /' conftest.$ac_ext >&5
5036
5037 ac_hi=`expr '(' $ac_mid ')' - 1`
5038 if test $ac_mid -le $ac_hi; then
5039 ac_lo= ac_hi=
5040 break
5041 fi
5042 ac_mid=`expr 2 '*' $ac_mid`
5043 fi
5044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5045 done
5046 else
5047 echo "$as_me: failed program was:" >&5
5048 sed 's/^/| /' conftest.$ac_ext >&5
5049
5050 ac_lo= ac_hi=
5051 fi
5052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5053 fi
5054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5055 # Binary search between lo and hi bounds.
5056 while test "x$ac_lo" != "x$ac_hi"; do
5057 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5058 cat >conftest.$ac_ext <<_ACEOF
5059 /* confdefs.h. */
5060 _ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h. */
5064 $ac_includes_default
5065 int
5066 main ()
5067 {
5068 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5069 test_array [0] = 0
5070
5071 ;
5072 return 0;
5073 }
5074 _ACEOF
5075 rm -f conftest.$ac_objext
5076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5077 (eval $ac_compile) 2>conftest.er1
5078 ac_status=$?
5079 grep -v '^ *+' conftest.er1 >conftest.err
5080 rm -f conftest.er1
5081 cat conftest.err >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); } &&
5084 { ac_try='test -z "$ac_c_werror_flag"
5085 || test ! -s conftest.err'
5086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087 (eval $ac_try) 2>&5
5088 ac_status=$?
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); }; } &&
5091 { ac_try='test -s conftest.$ac_objext'
5092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5093 (eval $ac_try) 2>&5
5094 ac_status=$?
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; }; then
5097 ac_hi=$ac_mid
5098 else
5099 echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5101
5102 ac_lo=`expr '(' $ac_mid ')' + 1`
5103 fi
5104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5105 done
5106 case $ac_lo in
5107 ?*) ac_cv_sizeof_char=$ac_lo;;
5108 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5109 See \`config.log' for more details." >&5
5110 echo "$as_me: error: cannot compute sizeof (char), 77
5111 See \`config.log' for more details." >&2;}
5112 { (exit 1); exit 1; }; } ;;
5113 esac
5114 else
5115 if test "$cross_compiling" = yes; then
5116 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5117 See \`config.log' for more details." >&5
5118 echo "$as_me: error: cannot run test program while cross compiling
5119 See \`config.log' for more details." >&2;}
5120 { (exit 1); exit 1; }; }
5121 else
5122 cat >conftest.$ac_ext <<_ACEOF
5123 /* confdefs.h. */
5124 _ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h. */
5128 $ac_includes_default
5129 long longval () { return (long) (sizeof (char)); }
5130 unsigned long ulongval () { return (long) (sizeof (char)); }
5131 #include <stdio.h>
5132 #include <stdlib.h>
5133 int
5134 main ()
5135 {
5136
5137 FILE *f = fopen ("conftest.val", "w");
5138 if (! f)
5139 exit (1);
5140 if (((long) (sizeof (char))) < 0)
5141 {
5142 long i = longval ();
5143 if (i != ((long) (sizeof (char))))
5144 exit (1);
5145 fprintf (f, "%ld\n", i);
5146 }
5147 else
5148 {
5149 unsigned long i = ulongval ();
5150 if (i != ((long) (sizeof (char))))
5151 exit (1);
5152 fprintf (f, "%lu\n", i);
5153 }
5154 exit (ferror (f) || fclose (f) != 0);
5155
5156 ;
5157 return 0;
5158 }
5159 _ACEOF
5160 rm -f conftest$ac_exeext
5161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5162 (eval $ac_link) 2>&5
5163 ac_status=$?
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167 (eval $ac_try) 2>&5
5168 ac_status=$?
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); }; }; then
5171 ac_cv_sizeof_char=`cat conftest.val`
5172 else
5173 echo "$as_me: program exited with status $ac_status" >&5
5174 echo "$as_me: failed program was:" >&5
5175 sed 's/^/| /' conftest.$ac_ext >&5
5176
5177 ( exit $ac_status )
5178 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5179 See \`config.log' for more details." >&5
5180 echo "$as_me: error: cannot compute sizeof (char), 77
5181 See \`config.log' for more details." >&2;}
5182 { (exit 1); exit 1; }; }
5183 fi
5184 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5185 fi
5186 fi
5187 rm -f conftest.val
5188 else
5189 ac_cv_sizeof_char=0
5190 fi
5191 fi
5192 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5193 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
5194 cat >>confdefs.h <<_ACEOF
5195 #define SIZEOF_CHAR $ac_cv_sizeof_char
5196 _ACEOF
5197
5198
5199 echo "$as_me:$LINENO: checking for short" >&5
5200 echo $ECHO_N "checking for short... $ECHO_C" >&6
5201 if test "${ac_cv_type_short+set}" = set; then
5202 echo $ECHO_N "(cached) $ECHO_C" >&6
5203 else
5204 cat >conftest.$ac_ext <<_ACEOF
5205 /* confdefs.h. */
5206 _ACEOF
5207 cat confdefs.h >>conftest.$ac_ext
5208 cat >>conftest.$ac_ext <<_ACEOF
5209 /* end confdefs.h. */
5210 $ac_includes_default
5211 int
5212 main ()
5213 {
5214 if ((short *) 0)
5215 return 0;
5216 if (sizeof (short))
5217 return 0;
5218 ;
5219 return 0;
5220 }
5221 _ACEOF
5222 rm -f conftest.$ac_objext
5223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5224 (eval $ac_compile) 2>conftest.er1
5225 ac_status=$?
5226 grep -v '^ *+' conftest.er1 >conftest.err
5227 rm -f conftest.er1
5228 cat conftest.err >&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } &&
5231 { ac_try='test -z "$ac_c_werror_flag"
5232 || test ! -s conftest.err'
5233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234 (eval $ac_try) 2>&5
5235 ac_status=$?
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); }; } &&
5238 { ac_try='test -s conftest.$ac_objext'
5239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240 (eval $ac_try) 2>&5
5241 ac_status=$?
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }; }; then
5244 ac_cv_type_short=yes
5245 else
5246 echo "$as_me: failed program was:" >&5
5247 sed 's/^/| /' conftest.$ac_ext >&5
5248
5249 ac_cv_type_short=no
5250 fi
5251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5252 fi
5253 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5254 echo "${ECHO_T}$ac_cv_type_short" >&6
5255
5256 echo "$as_me:$LINENO: checking size of short" >&5
5257 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5258 if test "${ac_cv_sizeof_short+set}" = set; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
5260 else
5261 if test "$ac_cv_type_short" = yes; then
5262 # The cast to unsigned long works around a bug in the HP C Compiler
5263 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5264 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5265 # This bug is HP SR number 8606223364.
5266 if test "$cross_compiling" = yes; then
5267 # Depending upon the size, compute the lo and hi bounds.
5268 cat >conftest.$ac_ext <<_ACEOF
5269 /* confdefs.h. */
5270 _ACEOF
5271 cat confdefs.h >>conftest.$ac_ext
5272 cat >>conftest.$ac_ext <<_ACEOF
5273 /* end confdefs.h. */
5274 $ac_includes_default
5275 int
5276 main ()
5277 {
5278 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5279 test_array [0] = 0
5280
5281 ;
5282 return 0;
5283 }
5284 _ACEOF
5285 rm -f conftest.$ac_objext
5286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5287 (eval $ac_compile) 2>conftest.er1
5288 ac_status=$?
5289 grep -v '^ *+' conftest.er1 >conftest.err
5290 rm -f conftest.er1
5291 cat conftest.err >&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); } &&
5294 { ac_try='test -z "$ac_c_werror_flag"
5295 || test ! -s conftest.err'
5296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297 (eval $ac_try) 2>&5
5298 ac_status=$?
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); }; } &&
5301 { ac_try='test -s conftest.$ac_objext'
5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 (eval $ac_try) 2>&5
5304 ac_status=$?
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; }; then
5307 ac_lo=0 ac_mid=0
5308 while :; do
5309 cat >conftest.$ac_ext <<_ACEOF
5310 /* confdefs.h. */
5311 _ACEOF
5312 cat confdefs.h >>conftest.$ac_ext
5313 cat >>conftest.$ac_ext <<_ACEOF
5314 /* end confdefs.h. */
5315 $ac_includes_default
5316 int
5317 main ()
5318 {
5319 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5320 test_array [0] = 0
5321
5322 ;
5323 return 0;
5324 }
5325 _ACEOF
5326 rm -f conftest.$ac_objext
5327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5328 (eval $ac_compile) 2>conftest.er1
5329 ac_status=$?
5330 grep -v '^ *+' conftest.er1 >conftest.err
5331 rm -f conftest.er1
5332 cat conftest.err >&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); } &&
5335 { ac_try='test -z "$ac_c_werror_flag"
5336 || test ! -s conftest.err'
5337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338 (eval $ac_try) 2>&5
5339 ac_status=$?
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); }; } &&
5342 { ac_try='test -s conftest.$ac_objext'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344 (eval $ac_try) 2>&5
5345 ac_status=$?
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; }; then
5348 ac_hi=$ac_mid; break
5349 else
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5352
5353 ac_lo=`expr $ac_mid + 1`
5354 if test $ac_lo -le $ac_mid; then
5355 ac_lo= ac_hi=
5356 break
5357 fi
5358 ac_mid=`expr 2 '*' $ac_mid + 1`
5359 fi
5360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5361 done
5362 else
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5365
5366 cat >conftest.$ac_ext <<_ACEOF
5367 /* confdefs.h. */
5368 _ACEOF
5369 cat confdefs.h >>conftest.$ac_ext
5370 cat >>conftest.$ac_ext <<_ACEOF
5371 /* end confdefs.h. */
5372 $ac_includes_default
5373 int
5374 main ()
5375 {
5376 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5377 test_array [0] = 0
5378
5379 ;
5380 return 0;
5381 }
5382 _ACEOF
5383 rm -f conftest.$ac_objext
5384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5385 (eval $ac_compile) 2>conftest.er1
5386 ac_status=$?
5387 grep -v '^ *+' conftest.er1 >conftest.err
5388 rm -f conftest.er1
5389 cat conftest.err >&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); } &&
5392 { ac_try='test -z "$ac_c_werror_flag"
5393 || test ! -s conftest.err'
5394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395 (eval $ac_try) 2>&5
5396 ac_status=$?
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); }; } &&
5399 { ac_try='test -s conftest.$ac_objext'
5400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401 (eval $ac_try) 2>&5
5402 ac_status=$?
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); }; }; then
5405 ac_hi=-1 ac_mid=-1
5406 while :; do
5407 cat >conftest.$ac_ext <<_ACEOF
5408 /* confdefs.h. */
5409 _ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h. */
5413 $ac_includes_default
5414 int
5415 main ()
5416 {
5417 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5418 test_array [0] = 0
5419
5420 ;
5421 return 0;
5422 }
5423 _ACEOF
5424 rm -f conftest.$ac_objext
5425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5426 (eval $ac_compile) 2>conftest.er1
5427 ac_status=$?
5428 grep -v '^ *+' conftest.er1 >conftest.err
5429 rm -f conftest.er1
5430 cat conftest.err >&5
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); } &&
5433 { ac_try='test -z "$ac_c_werror_flag"
5434 || test ! -s conftest.err'
5435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 (eval $ac_try) 2>&5
5437 ac_status=$?
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }; } &&
5440 { ac_try='test -s conftest.$ac_objext'
5441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442 (eval $ac_try) 2>&5
5443 ac_status=$?
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); }; }; then
5446 ac_lo=$ac_mid; break
5447 else
5448 echo "$as_me: failed program was:" >&5
5449 sed 's/^/| /' conftest.$ac_ext >&5
5450
5451 ac_hi=`expr '(' $ac_mid ')' - 1`
5452 if test $ac_mid -le $ac_hi; then
5453 ac_lo= ac_hi=
5454 break
5455 fi
5456 ac_mid=`expr 2 '*' $ac_mid`
5457 fi
5458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5459 done
5460 else
5461 echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5463
5464 ac_lo= ac_hi=
5465 fi
5466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5467 fi
5468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5469 # Binary search between lo and hi bounds.
5470 while test "x$ac_lo" != "x$ac_hi"; do
5471 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5472 cat >conftest.$ac_ext <<_ACEOF
5473 /* confdefs.h. */
5474 _ACEOF
5475 cat confdefs.h >>conftest.$ac_ext
5476 cat >>conftest.$ac_ext <<_ACEOF
5477 /* end confdefs.h. */
5478 $ac_includes_default
5479 int
5480 main ()
5481 {
5482 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5483 test_array [0] = 0
5484
5485 ;
5486 return 0;
5487 }
5488 _ACEOF
5489 rm -f conftest.$ac_objext
5490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5491 (eval $ac_compile) 2>conftest.er1
5492 ac_status=$?
5493 grep -v '^ *+' conftest.er1 >conftest.err
5494 rm -f conftest.er1
5495 cat conftest.err >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } &&
5498 { ac_try='test -z "$ac_c_werror_flag"
5499 || test ! -s conftest.err'
5500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501 (eval $ac_try) 2>&5
5502 ac_status=$?
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); }; } &&
5505 { ac_try='test -s conftest.$ac_objext'
5506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5507 (eval $ac_try) 2>&5
5508 ac_status=$?
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); }; }; then
5511 ac_hi=$ac_mid
5512 else
5513 echo "$as_me: failed program was:" >&5
5514 sed 's/^/| /' conftest.$ac_ext >&5
5515
5516 ac_lo=`expr '(' $ac_mid ')' + 1`
5517 fi
5518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5519 done
5520 case $ac_lo in
5521 ?*) ac_cv_sizeof_short=$ac_lo;;
5522 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5523 See \`config.log' for more details." >&5
5524 echo "$as_me: error: cannot compute sizeof (short), 77
5525 See \`config.log' for more details." >&2;}
5526 { (exit 1); exit 1; }; } ;;
5527 esac
5528 else
5529 if test "$cross_compiling" = yes; then
5530 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5531 See \`config.log' for more details." >&5
5532 echo "$as_me: error: cannot run test program while cross compiling
5533 See \`config.log' for more details." >&2;}
5534 { (exit 1); exit 1; }; }
5535 else
5536 cat >conftest.$ac_ext <<_ACEOF
5537 /* confdefs.h. */
5538 _ACEOF
5539 cat confdefs.h >>conftest.$ac_ext
5540 cat >>conftest.$ac_ext <<_ACEOF
5541 /* end confdefs.h. */
5542 $ac_includes_default
5543 long longval () { return (long) (sizeof (short)); }
5544 unsigned long ulongval () { return (long) (sizeof (short)); }
5545 #include <stdio.h>
5546 #include <stdlib.h>
5547 int
5548 main ()
5549 {
5550
5551 FILE *f = fopen ("conftest.val", "w");
5552 if (! f)
5553 exit (1);
5554 if (((long) (sizeof (short))) < 0)
5555 {
5556 long i = longval ();
5557 if (i != ((long) (sizeof (short))))
5558 exit (1);
5559 fprintf (f, "%ld\n", i);
5560 }
5561 else
5562 {
5563 unsigned long i = ulongval ();
5564 if (i != ((long) (sizeof (short))))
5565 exit (1);
5566 fprintf (f, "%lu\n", i);
5567 }
5568 exit (ferror (f) || fclose (f) != 0);
5569
5570 ;
5571 return 0;
5572 }
5573 _ACEOF
5574 rm -f conftest$ac_exeext
5575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5576 (eval $ac_link) 2>&5
5577 ac_status=$?
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581 (eval $ac_try) 2>&5
5582 ac_status=$?
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); }; }; then
5585 ac_cv_sizeof_short=`cat conftest.val`
5586 else
5587 echo "$as_me: program exited with status $ac_status" >&5
5588 echo "$as_me: failed program was:" >&5
5589 sed 's/^/| /' conftest.$ac_ext >&5
5590
5591 ( exit $ac_status )
5592 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5593 See \`config.log' for more details." >&5
5594 echo "$as_me: error: cannot compute sizeof (short), 77
5595 See \`config.log' for more details." >&2;}
5596 { (exit 1); exit 1; }; }
5597 fi
5598 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5599 fi
5600 fi
5601 rm -f conftest.val
5602 else
5603 ac_cv_sizeof_short=0
5604 fi
5605 fi
5606 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5607 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5608 cat >>confdefs.h <<_ACEOF
5609 #define SIZEOF_SHORT $ac_cv_sizeof_short
5610 _ACEOF
5611
5612
5613 echo "$as_me:$LINENO: checking for int" >&5
5614 echo $ECHO_N "checking for int... $ECHO_C" >&6
5615 if test "${ac_cv_type_int+set}" = set; then
5616 echo $ECHO_N "(cached) $ECHO_C" >&6
5617 else
5618 cat >conftest.$ac_ext <<_ACEOF
5619 /* confdefs.h. */
5620 _ACEOF
5621 cat confdefs.h >>conftest.$ac_ext
5622 cat >>conftest.$ac_ext <<_ACEOF
5623 /* end confdefs.h. */
5624 $ac_includes_default
5625 int
5626 main ()
5627 {
5628 if ((int *) 0)
5629 return 0;
5630 if (sizeof (int))
5631 return 0;
5632 ;
5633 return 0;
5634 }
5635 _ACEOF
5636 rm -f conftest.$ac_objext
5637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5638 (eval $ac_compile) 2>conftest.er1
5639 ac_status=$?
5640 grep -v '^ *+' conftest.er1 >conftest.err
5641 rm -f conftest.er1
5642 cat conftest.err >&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } &&
5645 { ac_try='test -z "$ac_c_werror_flag"
5646 || test ! -s conftest.err'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648 (eval $ac_try) 2>&5
5649 ac_status=$?
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; } &&
5652 { ac_try='test -s conftest.$ac_objext'
5653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5654 (eval $ac_try) 2>&5
5655 ac_status=$?
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); }; }; then
5658 ac_cv_type_int=yes
5659 else
5660 echo "$as_me: failed program was:" >&5
5661 sed 's/^/| /' conftest.$ac_ext >&5
5662
5663 ac_cv_type_int=no
5664 fi
5665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5666 fi
5667 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5668 echo "${ECHO_T}$ac_cv_type_int" >&6
5669
5670 echo "$as_me:$LINENO: checking size of int" >&5
5671 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5672 if test "${ac_cv_sizeof_int+set}" = set; then
5673 echo $ECHO_N "(cached) $ECHO_C" >&6
5674 else
5675 if test "$ac_cv_type_int" = yes; then
5676 # The cast to unsigned long works around a bug in the HP C Compiler
5677 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5678 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5679 # This bug is HP SR number 8606223364.
5680 if test "$cross_compiling" = yes; then
5681 # Depending upon the size, compute the lo and hi bounds.
5682 cat >conftest.$ac_ext <<_ACEOF
5683 /* confdefs.h. */
5684 _ACEOF
5685 cat confdefs.h >>conftest.$ac_ext
5686 cat >>conftest.$ac_ext <<_ACEOF
5687 /* end confdefs.h. */
5688 $ac_includes_default
5689 int
5690 main ()
5691 {
5692 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5693 test_array [0] = 0
5694
5695 ;
5696 return 0;
5697 }
5698 _ACEOF
5699 rm -f conftest.$ac_objext
5700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5701 (eval $ac_compile) 2>conftest.er1
5702 ac_status=$?
5703 grep -v '^ *+' conftest.er1 >conftest.err
5704 rm -f conftest.er1
5705 cat conftest.err >&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); } &&
5708 { ac_try='test -z "$ac_c_werror_flag"
5709 || test ! -s conftest.err'
5710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711 (eval $ac_try) 2>&5
5712 ac_status=$?
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); }; } &&
5715 { ac_try='test -s conftest.$ac_objext'
5716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717 (eval $ac_try) 2>&5
5718 ac_status=$?
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; }; then
5721 ac_lo=0 ac_mid=0
5722 while :; do
5723 cat >conftest.$ac_ext <<_ACEOF
5724 /* confdefs.h. */
5725 _ACEOF
5726 cat confdefs.h >>conftest.$ac_ext
5727 cat >>conftest.$ac_ext <<_ACEOF
5728 /* end confdefs.h. */
5729 $ac_includes_default
5730 int
5731 main ()
5732 {
5733 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5734 test_array [0] = 0
5735
5736 ;
5737 return 0;
5738 }
5739 _ACEOF
5740 rm -f conftest.$ac_objext
5741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5742 (eval $ac_compile) 2>conftest.er1
5743 ac_status=$?
5744 grep -v '^ *+' conftest.er1 >conftest.err
5745 rm -f conftest.er1
5746 cat conftest.err >&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); } &&
5749 { ac_try='test -z "$ac_c_werror_flag"
5750 || test ! -s conftest.err'
5751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5752 (eval $ac_try) 2>&5
5753 ac_status=$?
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); }; } &&
5756 { ac_try='test -s conftest.$ac_objext'
5757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5758 (eval $ac_try) 2>&5
5759 ac_status=$?
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); }; }; then
5762 ac_hi=$ac_mid; break
5763 else
5764 echo "$as_me: failed program was:" >&5
5765 sed 's/^/| /' conftest.$ac_ext >&5
5766
5767 ac_lo=`expr $ac_mid + 1`
5768 if test $ac_lo -le $ac_mid; then
5769 ac_lo= ac_hi=
5770 break
5771 fi
5772 ac_mid=`expr 2 '*' $ac_mid + 1`
5773 fi
5774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5775 done
5776 else
5777 echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.$ac_ext >&5
5779
5780 cat >conftest.$ac_ext <<_ACEOF
5781 /* confdefs.h. */
5782 _ACEOF
5783 cat confdefs.h >>conftest.$ac_ext
5784 cat >>conftest.$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5786 $ac_includes_default
5787 int
5788 main ()
5789 {
5790 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5791 test_array [0] = 0
5792
5793 ;
5794 return 0;
5795 }
5796 _ACEOF
5797 rm -f conftest.$ac_objext
5798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5799 (eval $ac_compile) 2>conftest.er1
5800 ac_status=$?
5801 grep -v '^ *+' conftest.er1 >conftest.err
5802 rm -f conftest.er1
5803 cat conftest.err >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); } &&
5806 { ac_try='test -z "$ac_c_werror_flag"
5807 || test ! -s conftest.err'
5808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809 (eval $ac_try) 2>&5
5810 ac_status=$?
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; } &&
5813 { ac_try='test -s conftest.$ac_objext'
5814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815 (eval $ac_try) 2>&5
5816 ac_status=$?
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }; }; then
5819 ac_hi=-1 ac_mid=-1
5820 while :; do
5821 cat >conftest.$ac_ext <<_ACEOF
5822 /* confdefs.h. */
5823 _ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h. */
5827 $ac_includes_default
5828 int
5829 main ()
5830 {
5831 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5832 test_array [0] = 0
5833
5834 ;
5835 return 0;
5836 }
5837 _ACEOF
5838 rm -f conftest.$ac_objext
5839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5840 (eval $ac_compile) 2>conftest.er1
5841 ac_status=$?
5842 grep -v '^ *+' conftest.er1 >conftest.err
5843 rm -f conftest.er1
5844 cat conftest.err >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); } &&
5847 { ac_try='test -z "$ac_c_werror_flag"
5848 || test ! -s conftest.err'
5849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 (eval $ac_try) 2>&5
5851 ac_status=$?
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; } &&
5854 { ac_try='test -s conftest.$ac_objext'
5855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 (eval $ac_try) 2>&5
5857 ac_status=$?
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; }; then
5860 ac_lo=$ac_mid; break
5861 else
5862 echo "$as_me: failed program was:" >&5
5863 sed 's/^/| /' conftest.$ac_ext >&5
5864
5865 ac_hi=`expr '(' $ac_mid ')' - 1`
5866 if test $ac_mid -le $ac_hi; then
5867 ac_lo= ac_hi=
5868 break
5869 fi
5870 ac_mid=`expr 2 '*' $ac_mid`
5871 fi
5872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5873 done
5874 else
5875 echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5877
5878 ac_lo= ac_hi=
5879 fi
5880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5881 fi
5882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5883 # Binary search between lo and hi bounds.
5884 while test "x$ac_lo" != "x$ac_hi"; do
5885 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5886 cat >conftest.$ac_ext <<_ACEOF
5887 /* confdefs.h. */
5888 _ACEOF
5889 cat confdefs.h >>conftest.$ac_ext
5890 cat >>conftest.$ac_ext <<_ACEOF
5891 /* end confdefs.h. */
5892 $ac_includes_default
5893 int
5894 main ()
5895 {
5896 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5897 test_array [0] = 0
5898
5899 ;
5900 return 0;
5901 }
5902 _ACEOF
5903 rm -f conftest.$ac_objext
5904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5905 (eval $ac_compile) 2>conftest.er1
5906 ac_status=$?
5907 grep -v '^ *+' conftest.er1 >conftest.err
5908 rm -f conftest.er1
5909 cat conftest.err >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } &&
5912 { ac_try='test -z "$ac_c_werror_flag"
5913 || test ! -s conftest.err'
5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5915 (eval $ac_try) 2>&5
5916 ac_status=$?
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; } &&
5919 { ac_try='test -s conftest.$ac_objext'
5920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5921 (eval $ac_try) 2>&5
5922 ac_status=$?
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; }; then
5925 ac_hi=$ac_mid
5926 else
5927 echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5929
5930 ac_lo=`expr '(' $ac_mid ')' + 1`
5931 fi
5932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5933 done
5934 case $ac_lo in
5935 ?*) ac_cv_sizeof_int=$ac_lo;;
5936 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5937 See \`config.log' for more details." >&5
5938 echo "$as_me: error: cannot compute sizeof (int), 77
5939 See \`config.log' for more details." >&2;}
5940 { (exit 1); exit 1; }; } ;;
5941 esac
5942 else
5943 if test "$cross_compiling" = yes; then
5944 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5945 See \`config.log' for more details." >&5
5946 echo "$as_me: error: cannot run test program while cross compiling
5947 See \`config.log' for more details." >&2;}
5948 { (exit 1); exit 1; }; }
5949 else
5950 cat >conftest.$ac_ext <<_ACEOF
5951 /* confdefs.h. */
5952 _ACEOF
5953 cat confdefs.h >>conftest.$ac_ext
5954 cat >>conftest.$ac_ext <<_ACEOF
5955 /* end confdefs.h. */
5956 $ac_includes_default
5957 long longval () { return (long) (sizeof (int)); }
5958 unsigned long ulongval () { return (long) (sizeof (int)); }
5959 #include <stdio.h>
5960 #include <stdlib.h>
5961 int
5962 main ()
5963 {
5964
5965 FILE *f = fopen ("conftest.val", "w");
5966 if (! f)
5967 exit (1);
5968 if (((long) (sizeof (int))) < 0)
5969 {
5970 long i = longval ();
5971 if (i != ((long) (sizeof (int))))
5972 exit (1);
5973 fprintf (f, "%ld\n", i);
5974 }
5975 else
5976 {
5977 unsigned long i = ulongval ();
5978 if (i != ((long) (sizeof (int))))
5979 exit (1);
5980 fprintf (f, "%lu\n", i);
5981 }
5982 exit (ferror (f) || fclose (f) != 0);
5983
5984 ;
5985 return 0;
5986 }
5987 _ACEOF
5988 rm -f conftest$ac_exeext
5989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5990 (eval $ac_link) 2>&5
5991 ac_status=$?
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995 (eval $ac_try) 2>&5
5996 ac_status=$?
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; }; then
5999 ac_cv_sizeof_int=`cat conftest.val`
6000 else
6001 echo "$as_me: program exited with status $ac_status" >&5
6002 echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.$ac_ext >&5
6004
6005 ( exit $ac_status )
6006 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6007 See \`config.log' for more details." >&5
6008 echo "$as_me: error: cannot compute sizeof (int), 77
6009 See \`config.log' for more details." >&2;}
6010 { (exit 1); exit 1; }; }
6011 fi
6012 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6013 fi
6014 fi
6015 rm -f conftest.val
6016 else
6017 ac_cv_sizeof_int=0
6018 fi
6019 fi
6020 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6021 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6022 cat >>confdefs.h <<_ACEOF
6023 #define SIZEOF_INT $ac_cv_sizeof_int
6024 _ACEOF
6025
6026
6027 echo "$as_me:$LINENO: checking for long" >&5
6028 echo $ECHO_N "checking for long... $ECHO_C" >&6
6029 if test "${ac_cv_type_long+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6031 else
6032 cat >conftest.$ac_ext <<_ACEOF
6033 /* confdefs.h. */
6034 _ACEOF
6035 cat confdefs.h >>conftest.$ac_ext
6036 cat >>conftest.$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6038 $ac_includes_default
6039 int
6040 main ()
6041 {
6042 if ((long *) 0)
6043 return 0;
6044 if (sizeof (long))
6045 return 0;
6046 ;
6047 return 0;
6048 }
6049 _ACEOF
6050 rm -f conftest.$ac_objext
6051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6052 (eval $ac_compile) 2>conftest.er1
6053 ac_status=$?
6054 grep -v '^ *+' conftest.er1 >conftest.err
6055 rm -f conftest.er1
6056 cat conftest.err >&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } &&
6059 { ac_try='test -z "$ac_c_werror_flag"
6060 || test ! -s conftest.err'
6061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6062 (eval $ac_try) 2>&5
6063 ac_status=$?
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); }; } &&
6066 { ac_try='test -s conftest.$ac_objext'
6067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068 (eval $ac_try) 2>&5
6069 ac_status=$?
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; }; then
6072 ac_cv_type_long=yes
6073 else
6074 echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.$ac_ext >&5
6076
6077 ac_cv_type_long=no
6078 fi
6079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6080 fi
6081 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6082 echo "${ECHO_T}$ac_cv_type_long" >&6
6083
6084 echo "$as_me:$LINENO: checking size of long" >&5
6085 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6086 if test "${ac_cv_sizeof_long+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 else
6089 if test "$ac_cv_type_long" = yes; then
6090 # The cast to unsigned long works around a bug in the HP C Compiler
6091 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6092 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6093 # This bug is HP SR number 8606223364.
6094 if test "$cross_compiling" = yes; then
6095 # Depending upon the size, compute the lo and hi bounds.
6096 cat >conftest.$ac_ext <<_ACEOF
6097 /* confdefs.h. */
6098 _ACEOF
6099 cat confdefs.h >>conftest.$ac_ext
6100 cat >>conftest.$ac_ext <<_ACEOF
6101 /* end confdefs.h. */
6102 $ac_includes_default
6103 int
6104 main ()
6105 {
6106 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6107 test_array [0] = 0
6108
6109 ;
6110 return 0;
6111 }
6112 _ACEOF
6113 rm -f conftest.$ac_objext
6114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6115 (eval $ac_compile) 2>conftest.er1
6116 ac_status=$?
6117 grep -v '^ *+' conftest.er1 >conftest.err
6118 rm -f conftest.er1
6119 cat conftest.err >&5
6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); } &&
6122 { ac_try='test -z "$ac_c_werror_flag"
6123 || test ! -s conftest.err'
6124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125 (eval $ac_try) 2>&5
6126 ac_status=$?
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; } &&
6129 { ac_try='test -s conftest.$ac_objext'
6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 (eval $ac_try) 2>&5
6132 ac_status=$?
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; }; then
6135 ac_lo=0 ac_mid=0
6136 while :; do
6137 cat >conftest.$ac_ext <<_ACEOF
6138 /* confdefs.h. */
6139 _ACEOF
6140 cat confdefs.h >>conftest.$ac_ext
6141 cat >>conftest.$ac_ext <<_ACEOF
6142 /* end confdefs.h. */
6143 $ac_includes_default
6144 int
6145 main ()
6146 {
6147 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6148 test_array [0] = 0
6149
6150 ;
6151 return 0;
6152 }
6153 _ACEOF
6154 rm -f conftest.$ac_objext
6155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6156 (eval $ac_compile) 2>conftest.er1
6157 ac_status=$?
6158 grep -v '^ *+' conftest.er1 >conftest.err
6159 rm -f conftest.er1
6160 cat conftest.err >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } &&
6163 { ac_try='test -z "$ac_c_werror_flag"
6164 || test ! -s conftest.err'
6165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166 (eval $ac_try) 2>&5
6167 ac_status=$?
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; } &&
6170 { ac_try='test -s conftest.$ac_objext'
6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172 (eval $ac_try) 2>&5
6173 ac_status=$?
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; }; then
6176 ac_hi=$ac_mid; break
6177 else
6178 echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.$ac_ext >&5
6180
6181 ac_lo=`expr $ac_mid + 1`
6182 if test $ac_lo -le $ac_mid; then
6183 ac_lo= ac_hi=
6184 break
6185 fi
6186 ac_mid=`expr 2 '*' $ac_mid + 1`
6187 fi
6188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6189 done
6190 else
6191 echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6193
6194 cat >conftest.$ac_ext <<_ACEOF
6195 /* confdefs.h. */
6196 _ACEOF
6197 cat confdefs.h >>conftest.$ac_ext
6198 cat >>conftest.$ac_ext <<_ACEOF
6199 /* end confdefs.h. */
6200 $ac_includes_default
6201 int
6202 main ()
6203 {
6204 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6205 test_array [0] = 0
6206
6207 ;
6208 return 0;
6209 }
6210 _ACEOF
6211 rm -f conftest.$ac_objext
6212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6213 (eval $ac_compile) 2>conftest.er1
6214 ac_status=$?
6215 grep -v '^ *+' conftest.er1 >conftest.err
6216 rm -f conftest.er1
6217 cat conftest.err >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } &&
6220 { ac_try='test -z "$ac_c_werror_flag"
6221 || test ! -s conftest.err'
6222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223 (eval $ac_try) 2>&5
6224 ac_status=$?
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); }; } &&
6227 { ac_try='test -s conftest.$ac_objext'
6228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229 (eval $ac_try) 2>&5
6230 ac_status=$?
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); }; }; then
6233 ac_hi=-1 ac_mid=-1
6234 while :; do
6235 cat >conftest.$ac_ext <<_ACEOF
6236 /* confdefs.h. */
6237 _ACEOF
6238 cat confdefs.h >>conftest.$ac_ext
6239 cat >>conftest.$ac_ext <<_ACEOF
6240 /* end confdefs.h. */
6241 $ac_includes_default
6242 int
6243 main ()
6244 {
6245 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6246 test_array [0] = 0
6247
6248 ;
6249 return 0;
6250 }
6251 _ACEOF
6252 rm -f conftest.$ac_objext
6253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6254 (eval $ac_compile) 2>conftest.er1
6255 ac_status=$?
6256 grep -v '^ *+' conftest.er1 >conftest.err
6257 rm -f conftest.er1
6258 cat conftest.err >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } &&
6261 { ac_try='test -z "$ac_c_werror_flag"
6262 || test ! -s conftest.err'
6263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6264 (eval $ac_try) 2>&5
6265 ac_status=$?
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); }; } &&
6268 { ac_try='test -s conftest.$ac_objext'
6269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270 (eval $ac_try) 2>&5
6271 ac_status=$?
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; }; then
6274 ac_lo=$ac_mid; break
6275 else
6276 echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.$ac_ext >&5
6278
6279 ac_hi=`expr '(' $ac_mid ')' - 1`
6280 if test $ac_mid -le $ac_hi; then
6281 ac_lo= ac_hi=
6282 break
6283 fi
6284 ac_mid=`expr 2 '*' $ac_mid`
6285 fi
6286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6287 done
6288 else
6289 echo "$as_me: failed program was:" >&5
6290 sed 's/^/| /' conftest.$ac_ext >&5
6291
6292 ac_lo= ac_hi=
6293 fi
6294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6295 fi
6296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6297 # Binary search between lo and hi bounds.
6298 while test "x$ac_lo" != "x$ac_hi"; do
6299 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6300 cat >conftest.$ac_ext <<_ACEOF
6301 /* confdefs.h. */
6302 _ACEOF
6303 cat confdefs.h >>conftest.$ac_ext
6304 cat >>conftest.$ac_ext <<_ACEOF
6305 /* end confdefs.h. */
6306 $ac_includes_default
6307 int
6308 main ()
6309 {
6310 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6311 test_array [0] = 0
6312
6313 ;
6314 return 0;
6315 }
6316 _ACEOF
6317 rm -f conftest.$ac_objext
6318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6319 (eval $ac_compile) 2>conftest.er1
6320 ac_status=$?
6321 grep -v '^ *+' conftest.er1 >conftest.err
6322 rm -f conftest.er1
6323 cat conftest.err >&5
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); } &&
6326 { ac_try='test -z "$ac_c_werror_flag"
6327 || test ! -s conftest.err'
6328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6329 (eval $ac_try) 2>&5
6330 ac_status=$?
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); }; } &&
6333 { ac_try='test -s conftest.$ac_objext'
6334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335 (eval $ac_try) 2>&5
6336 ac_status=$?
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; }; then
6339 ac_hi=$ac_mid
6340 else
6341 echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6343
6344 ac_lo=`expr '(' $ac_mid ')' + 1`
6345 fi
6346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6347 done
6348 case $ac_lo in
6349 ?*) ac_cv_sizeof_long=$ac_lo;;
6350 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6351 See \`config.log' for more details." >&5
6352 echo "$as_me: error: cannot compute sizeof (long), 77
6353 See \`config.log' for more details." >&2;}
6354 { (exit 1); exit 1; }; } ;;
6355 esac
6356 else
6357 if test "$cross_compiling" = yes; then
6358 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6359 See \`config.log' for more details." >&5
6360 echo "$as_me: error: cannot run test program while cross compiling
6361 See \`config.log' for more details." >&2;}
6362 { (exit 1); exit 1; }; }
6363 else
6364 cat >conftest.$ac_ext <<_ACEOF
6365 /* confdefs.h. */
6366 _ACEOF
6367 cat confdefs.h >>conftest.$ac_ext
6368 cat >>conftest.$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6370 $ac_includes_default
6371 long longval () { return (long) (sizeof (long)); }
6372 unsigned long ulongval () { return (long) (sizeof (long)); }
6373 #include <stdio.h>
6374 #include <stdlib.h>
6375 int
6376 main ()
6377 {
6378
6379 FILE *f = fopen ("conftest.val", "w");
6380 if (! f)
6381 exit (1);
6382 if (((long) (sizeof (long))) < 0)
6383 {
6384 long i = longval ();
6385 if (i != ((long) (sizeof (long))))
6386 exit (1);
6387 fprintf (f, "%ld\n", i);
6388 }
6389 else
6390 {
6391 unsigned long i = ulongval ();
6392 if (i != ((long) (sizeof (long))))
6393 exit (1);
6394 fprintf (f, "%lu\n", i);
6395 }
6396 exit (ferror (f) || fclose (f) != 0);
6397
6398 ;
6399 return 0;
6400 }
6401 _ACEOF
6402 rm -f conftest$ac_exeext
6403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6404 (eval $ac_link) 2>&5
6405 ac_status=$?
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6409 (eval $ac_try) 2>&5
6410 ac_status=$?
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); }; }; then
6413 ac_cv_sizeof_long=`cat conftest.val`
6414 else
6415 echo "$as_me: program exited with status $ac_status" >&5
6416 echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6418
6419 ( exit $ac_status )
6420 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6421 See \`config.log' for more details." >&5
6422 echo "$as_me: error: cannot compute sizeof (long), 77
6423 See \`config.log' for more details." >&2;}
6424 { (exit 1); exit 1; }; }
6425 fi
6426 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6427 fi
6428 fi
6429 rm -f conftest.val
6430 else
6431 ac_cv_sizeof_long=0
6432 fi
6433 fi
6434 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6435 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6436 cat >>confdefs.h <<_ACEOF
6437 #define SIZEOF_LONG $ac_cv_sizeof_long
6438 _ACEOF
6439
6440
6441 SIZEOF_CHAR=$ac_cv_sizeof_char
6442 SIZEOF_SHORT=$ac_cv_sizeof_short
6443 SIZEOF_INT=$ac_cv_sizeof_int
6444 SIZEOF_LONG=$ac_cv_sizeof_long
6445
6446
6447
6448
6449
6450
6451
6452
6453 echo "$as_me:$LINENO: checking for an 8-bit type" >&5
6454 echo $ECHO_N "checking for an 8-bit type... $ECHO_C" >&6
6455 if test $SIZEOF_CHAR -eq 1; then
6456 cat >>confdefs.h <<\_ACEOF
6457 #define __TYPE8__ char
6458 _ACEOF
6459
6460 TYPE8=char
6461 elif test $SIZEOF_SHORT -eq 1; then
6462 cat >>confdefs.h <<\_ACEOF
6463 #define __TYPE8__ short
6464 _ACEOF
6465
6466 TYPE8=short
6467 elif test $SIZEOF_INT -eq 1; then
6468 cat >>confdefs.h <<\_ACEOF
6469 #define __TYPE8__ int
6470 _ACEOF
6471
6472 TYPE8=int
6473 elif test $SIZEOF_LONG -eq 1; then
6474 cat >>confdefs.h <<\_ACEOF
6475 #define __TYPE8__ long
6476 _ACEOF
6477
6478 TYPE8=long
6479 else
6480 echo "$as_me:$LINENO: result: not found" >&5
6481 echo "${ECHO_T}not found" >&6
6482 { { echo "$as_me:$LINENO: error: I can't seem to find an 8-bit integer type!" >&5
6483 echo "$as_me: error: I can't seem to find an 8-bit integer type!" >&2;}
6484 { (exit 1); exit 1; }; }
6485 fi
6486 echo "$as_me:$LINENO: result: $TYPE8" >&5
6487 echo "${ECHO_T}$TYPE8" >&6
6488
6489 echo "$as_me:$LINENO: checking for a 16-bit type" >&5
6490 echo $ECHO_N "checking for a 16-bit type... $ECHO_C" >&6
6491 if test $SIZEOF_CHAR -eq 2; then
6492 cat >>confdefs.h <<\_ACEOF
6493 #define __TYPE16__ char
6494 _ACEOF
6495
6496 TYPE16=char
6497 elif test $SIZEOF_SHORT -eq 2; then
6498 cat >>confdefs.h <<\_ACEOF
6499 #define __TYPE16__ short
6500 _ACEOF
6501
6502 TYPE16=short
6503 elif test $SIZEOF_INT -eq 2; then
6504 cat >>confdefs.h <<\_ACEOF
6505 #define __TYPE16__ int
6506 _ACEOF
6507
6508 TYPE16=int
6509 elif test $SIZEOF_LONG -eq 2; then
6510 cat >>confdefs.h <<\_ACEOF
6511 #define __TYPE16__ long
6512 _ACEOF
6513
6514 TYPE16=long
6515 else
6516 echo "$as_me:$LINENO: result: not found" >&5
6517 echo "${ECHO_T}not found" >&6
6518 { { echo "$as_me:$LINENO: error: I can't seem to find a 16-bit integer type!" >&5
6519 echo "$as_me: error: I can't seem to find a 16-bit integer type!" >&2;}
6520 { (exit 1); exit 1; }; }
6521 fi
6522 echo "$as_me:$LINENO: result: $TYPE16" >&5
6523 echo "${ECHO_T}$TYPE16" >&6
6524
6525 echo "$as_me:$LINENO: checking for a 32-bit type" >&5
6526 echo $ECHO_N "checking for a 32-bit type... $ECHO_C" >&6
6527 if test $SIZEOF_CHAR -eq 4; then
6528 cat >>confdefs.h <<\_ACEOF
6529 #define __TYPE32__ char
6530 _ACEOF
6531
6532 TYPE32=char
6533 elif test $SIZEOF_SHORT -eq 4; then
6534 cat >>confdefs.h <<\_ACEOF
6535 #define __TYPE32__ short
6536 _ACEOF
6537
6538 TYPE32=short
6539 elif test $SIZEOF_INT -eq 4; then
6540 cat >>confdefs.h <<\_ACEOF
6541 #define __TYPE32__ int
6542 _ACEOF
6543
6544 TYPE32=int
6545 elif test $SIZEOF_LONG -eq 4; then
6546 cat >>confdefs.h <<\_ACEOF
6547 #define __TYPE32__ long
6548 _ACEOF
6549
6550 TYPE32=long
6551 else
6552 echo "$as_me:$LINENO: result: not found" >&5
6553 echo "${ECHO_T}not found" >&6
6554 { { echo "$as_me:$LINENO: error: I can't seem to find a 32-bit integer type!" >&5
6555 echo "$as_me: error: I can't seem to find a 32-bit integer type!" >&2;}
6556 { (exit 1); exit 1; }; }
6557 fi
6558 echo "$as_me:$LINENO: result: $TYPE32" >&5
6559 echo "${ECHO_T}$TYPE32" >&6
6560
6561 echo "$as_me:$LINENO: checking for int8_t" >&5
6562 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
6563 if test "${ac_cv_type_int8_t+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6565 else
6566 cat >conftest.$ac_ext <<_ACEOF
6567 /* confdefs.h. */
6568 _ACEOF
6569 cat confdefs.h >>conftest.$ac_ext
6570 cat >>conftest.$ac_ext <<_ACEOF
6571 /* end confdefs.h. */
6572 #if HAVE_STDINT_H
6573 # include <stdint.h>
6574 #endif
6575 #if HAVE_INTTYPES_H
6576 # include <inttypes.h>
6577 #endif
6578 #if HAVE_SYS_TYPES_H
6579 # include <sys/types.h>
6580 #endif
6581
6582
6583 int
6584 main ()
6585 {
6586 if ((int8_t *) 0)
6587 return 0;
6588 if (sizeof (int8_t))
6589 return 0;
6590 ;
6591 return 0;
6592 }
6593 _ACEOF
6594 rm -f conftest.$ac_objext
6595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6596 (eval $ac_compile) 2>conftest.er1
6597 ac_status=$?
6598 grep -v '^ *+' conftest.er1 >conftest.err
6599 rm -f conftest.er1
6600 cat conftest.err >&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } &&
6603 { ac_try='test -z "$ac_c_werror_flag"
6604 || test ! -s conftest.err'
6605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606 (eval $ac_try) 2>&5
6607 ac_status=$?
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); }; } &&
6610 { ac_try='test -s conftest.$ac_objext'
6611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6612 (eval $ac_try) 2>&5
6613 ac_status=$?
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); }; }; then
6616 ac_cv_type_int8_t=yes
6617 else
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6620
6621 ac_cv_type_int8_t=no
6622 fi
6623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6624 fi
6625 echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
6626 echo "${ECHO_T}$ac_cv_type_int8_t" >&6
6627 if test $ac_cv_type_int8_t = yes; then
6628
6629 cat >>confdefs.h <<_ACEOF
6630 #define HAVE_INT8_T 1
6631 _ACEOF
6632
6633
6634 fi
6635 echo "$as_me:$LINENO: checking for int16_t" >&5
6636 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
6637 if test "${ac_cv_type_int16_t+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6639 else
6640 cat >conftest.$ac_ext <<_ACEOF
6641 /* confdefs.h. */
6642 _ACEOF
6643 cat confdefs.h >>conftest.$ac_ext
6644 cat >>conftest.$ac_ext <<_ACEOF
6645 /* end confdefs.h. */
6646 #if HAVE_STDINT_H
6647 # include <stdint.h>
6648 #endif
6649 #if HAVE_INTTYPES_H
6650 # include <inttypes.h>
6651 #endif
6652 #if HAVE_SYS_TYPES_H
6653 # include <sys/types.h>
6654 #endif
6655
6656
6657 int
6658 main ()
6659 {
6660 if ((int16_t *) 0)
6661 return 0;
6662 if (sizeof (int16_t))
6663 return 0;
6664 ;
6665 return 0;
6666 }
6667 _ACEOF
6668 rm -f conftest.$ac_objext
6669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6670 (eval $ac_compile) 2>conftest.er1
6671 ac_status=$?
6672 grep -v '^ *+' conftest.er1 >conftest.err
6673 rm -f conftest.er1
6674 cat conftest.err >&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } &&
6677 { ac_try='test -z "$ac_c_werror_flag"
6678 || test ! -s conftest.err'
6679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6680 (eval $ac_try) 2>&5
6681 ac_status=$?
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); }; } &&
6684 { ac_try='test -s conftest.$ac_objext'
6685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6686 (eval $ac_try) 2>&5
6687 ac_status=$?
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); }; }; then
6690 ac_cv_type_int16_t=yes
6691 else
6692 echo "$as_me: failed program was:" >&5
6693 sed 's/^/| /' conftest.$ac_ext >&5
6694
6695 ac_cv_type_int16_t=no
6696 fi
6697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6698 fi
6699 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
6700 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
6701 if test $ac_cv_type_int16_t = yes; then
6702
6703 cat >>confdefs.h <<_ACEOF
6704 #define HAVE_INT16_T 1
6705 _ACEOF
6706
6707
6708 fi
6709 echo "$as_me:$LINENO: checking for int32_t" >&5
6710 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
6711 if test "${ac_cv_type_int32_t+set}" = set; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
6713 else
6714 cat >conftest.$ac_ext <<_ACEOF
6715 /* confdefs.h. */
6716 _ACEOF
6717 cat confdefs.h >>conftest.$ac_ext
6718 cat >>conftest.$ac_ext <<_ACEOF
6719 /* end confdefs.h. */
6720 #if HAVE_STDINT_H
6721 # include <stdint.h>
6722 #endif
6723 #if HAVE_INTTYPES_H
6724 # include <inttypes.h>
6725 #endif
6726 #if HAVE_SYS_TYPES_H
6727 # include <sys/types.h>
6728 #endif
6729
6730
6731 int
6732 main ()
6733 {
6734 if ((int32_t *) 0)
6735 return 0;
6736 if (sizeof (int32_t))
6737 return 0;
6738 ;
6739 return 0;
6740 }
6741 _ACEOF
6742 rm -f conftest.$ac_objext
6743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6744 (eval $ac_compile) 2>conftest.er1
6745 ac_status=$?
6746 grep -v '^ *+' conftest.er1 >conftest.err
6747 rm -f conftest.er1
6748 cat conftest.err >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); } &&
6751 { ac_try='test -z "$ac_c_werror_flag"
6752 || test ! -s conftest.err'
6753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6754 (eval $ac_try) 2>&5
6755 ac_status=$?
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); }; } &&
6758 { ac_try='test -s conftest.$ac_objext'
6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760 (eval $ac_try) 2>&5
6761 ac_status=$?
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; }; then
6764 ac_cv_type_int32_t=yes
6765 else
6766 echo "$as_me: failed program was:" >&5
6767 sed 's/^/| /' conftest.$ac_ext >&5
6768
6769 ac_cv_type_int32_t=no
6770 fi
6771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6772 fi
6773 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
6774 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
6775 if test $ac_cv_type_int32_t = yes; then
6776
6777 cat >>confdefs.h <<_ACEOF
6778 #define HAVE_INT32_T 1
6779 _ACEOF
6780
6781
6782 fi
6783 echo "$as_me:$LINENO: checking for uint8_t" >&5
6784 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
6785 if test "${ac_cv_type_uint8_t+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6787 else
6788 cat >conftest.$ac_ext <<_ACEOF
6789 /* confdefs.h. */
6790 _ACEOF
6791 cat confdefs.h >>conftest.$ac_ext
6792 cat >>conftest.$ac_ext <<_ACEOF
6793 /* end confdefs.h. */
6794 #if HAVE_STDINT_H
6795 # include <stdint.h>
6796 #endif
6797 #if HAVE_INTTYPES_H
6798 # include <inttypes.h>
6799 #endif
6800 #if HAVE_SYS_TYPES_H
6801 # include <sys/types.h>
6802 #endif
6803
6804
6805 int
6806 main ()
6807 {
6808 if ((uint8_t *) 0)
6809 return 0;
6810 if (sizeof (uint8_t))
6811 return 0;
6812 ;
6813 return 0;
6814 }
6815 _ACEOF
6816 rm -f conftest.$ac_objext
6817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6818 (eval $ac_compile) 2>conftest.er1
6819 ac_status=$?
6820 grep -v '^ *+' conftest.er1 >conftest.err
6821 rm -f conftest.er1
6822 cat conftest.err >&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); } &&
6825 { ac_try='test -z "$ac_c_werror_flag"
6826 || test ! -s conftest.err'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 (eval $ac_try) 2>&5
6829 ac_status=$?
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; } &&
6832 { ac_try='test -s conftest.$ac_objext'
6833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834 (eval $ac_try) 2>&5
6835 ac_status=$?
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); }; }; then
6838 ac_cv_type_uint8_t=yes
6839 else
6840 echo "$as_me: failed program was:" >&5
6841 sed 's/^/| /' conftest.$ac_ext >&5
6842
6843 ac_cv_type_uint8_t=no
6844 fi
6845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6846 fi
6847 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
6848 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
6849 if test $ac_cv_type_uint8_t = yes; then
6850
6851 cat >>confdefs.h <<_ACEOF
6852 #define HAVE_UINT8_T 1
6853 _ACEOF
6854
6855
6856 fi
6857 echo "$as_me:$LINENO: checking for uint16_t" >&5
6858 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
6859 if test "${ac_cv_type_uint16_t+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 else
6862 cat >conftest.$ac_ext <<_ACEOF
6863 /* confdefs.h. */
6864 _ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h. */
6868 #if HAVE_STDINT_H
6869 # include <stdint.h>
6870 #endif
6871 #if HAVE_INTTYPES_H
6872 # include <inttypes.h>
6873 #endif
6874 #if HAVE_SYS_TYPES_H
6875 # include <sys/types.h>
6876 #endif
6877
6878
6879 int
6880 main ()
6881 {
6882 if ((uint16_t *) 0)
6883 return 0;
6884 if (sizeof (uint16_t))
6885 return 0;
6886 ;
6887 return 0;
6888 }
6889 _ACEOF
6890 rm -f conftest.$ac_objext
6891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6892 (eval $ac_compile) 2>conftest.er1
6893 ac_status=$?
6894 grep -v '^ *+' conftest.er1 >conftest.err
6895 rm -f conftest.er1
6896 cat conftest.err >&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); } &&
6899 { ac_try='test -z "$ac_c_werror_flag"
6900 || test ! -s conftest.err'
6901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902 (eval $ac_try) 2>&5
6903 ac_status=$?
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); }; } &&
6906 { ac_try='test -s conftest.$ac_objext'
6907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908 (eval $ac_try) 2>&5
6909 ac_status=$?
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); }; }; then
6912 ac_cv_type_uint16_t=yes
6913 else
6914 echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6916
6917 ac_cv_type_uint16_t=no
6918 fi
6919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6920 fi
6921 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
6922 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
6923 if test $ac_cv_type_uint16_t = yes; then
6924
6925 cat >>confdefs.h <<_ACEOF
6926 #define HAVE_UINT16_T 1
6927 _ACEOF
6928
6929
6930 fi
6931 echo "$as_me:$LINENO: checking for uint32_t" >&5
6932 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
6933 if test "${ac_cv_type_uint32_t+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
6935 else
6936 cat >conftest.$ac_ext <<_ACEOF
6937 /* confdefs.h. */
6938 _ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h. */
6942 #if HAVE_STDINT_H
6943 # include <stdint.h>
6944 #endif
6945 #if HAVE_INTTYPES_H
6946 # include <inttypes.h>
6947 #endif
6948 #if HAVE_SYS_TYPES_H
6949 # include <sys/types.h>
6950 #endif
6951
6952
6953 int
6954 main ()
6955 {
6956 if ((uint32_t *) 0)
6957 return 0;
6958 if (sizeof (uint32_t))
6959 return 0;
6960 ;
6961 return 0;
6962 }
6963 _ACEOF
6964 rm -f conftest.$ac_objext
6965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6966 (eval $ac_compile) 2>conftest.er1
6967 ac_status=$?
6968 grep -v '^ *+' conftest.er1 >conftest.err
6969 rm -f conftest.er1
6970 cat conftest.err >&5
6971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972 (exit $ac_status); } &&
6973 { ac_try='test -z "$ac_c_werror_flag"
6974 || test ! -s conftest.err'
6975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976 (eval $ac_try) 2>&5
6977 ac_status=$?
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; } &&
6980 { ac_try='test -s conftest.$ac_objext'
6981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982 (eval $ac_try) 2>&5
6983 ac_status=$?
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); }; }; then
6986 ac_cv_type_uint32_t=yes
6987 else
6988 echo "$as_me: failed program was:" >&5
6989 sed 's/^/| /' conftest.$ac_ext >&5
6990
6991 ac_cv_type_uint32_t=no
6992 fi
6993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6994 fi
6995 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6996 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
6997 if test $ac_cv_type_uint32_t = yes; then
6998
6999 cat >>confdefs.h <<_ACEOF
7000 #define HAVE_UINT32_T 1
7001 _ACEOF
7002
7003
7004 fi
7005
7006
7007
7008
7009
7010 cat >confcache <<\_ACEOF
7011 # This file is a shell script that caches the results of configure
7012 # tests run on this system so they can be shared between configure
7013 # scripts and configure runs, see configure's option --config-cache.
7014 # It is not useful on other systems. If it contains results you don't
7015 # want to keep, you may remove or edit it.
7016 #
7017 # config.status only pays attention to the cache file if you give it
7018 # the --recheck option to rerun configure.
7019 #
7020 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7021 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7022 # following values.
7023
7024 _ACEOF
7025
7026 # The following way of writing the cache mishandles newlines in values,
7027 # but we know of no workaround that is simple, portable, and efficient.
7028 # So, don't put newlines in cache variables' values.
7029 # Ultrix sh set writes to stderr and can't be redirected directly,
7030 # and sets the high bit in the cache file unless we assign to the vars.
7031 {
7032 (set) 2>&1 |
7033 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7034 *ac_space=\ *)
7035 # `set' does not quote correctly, so add quotes (double-quote
7036 # substitution turns \\\\ into \\, and sed turns \\ into \).
7037 sed -n \
7038 "s/'/'\\\\''/g;
7039 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7040 ;;
7041 *)
7042 # `set' quotes correctly as required by POSIX, so do not add quotes.
7043 sed -n \
7044 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7045 ;;
7046 esac;
7047 } |
7048 sed '
7049 t clear
7050 : clear
7051 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7052 t end
7053 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7054 : end' >>confcache
7055 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7056 if test -w $cache_file; then
7057 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7058 cat confcache >$cache_file
7059 else
7060 echo "not updating unwritable cache $cache_file"
7061 fi
7062 fi
7063 rm -f confcache
7064
7065 # Check whether --enable-helper-search or --disable-helper-search was given.
7066 if test "${enable_helper_search+set}" = set; then
7067 enableval="$enable_helper_search"
7068 case "$enableval" in
7069 yes) do_helper_search=true ;;
7070 no) do_helper_search=false ;;
7071 *) { { echo "$as_me:$LINENO: error: bad value $withval for --enable-helper-search" >&5
7072 echo "$as_me: error: bad value $withval for --enable-helper-search" >&2;}
7073 { (exit 1); exit 1; }; } ;;
7074 esac
7075 else
7076 do_helper_search=true
7077 fi;
7078
7079 # Extract the first word of "perl", so it can be a program name with args.
7080 set dummy perl; ac_word=$2
7081 echo "$as_me:$LINENO: checking for $ac_word" >&5
7082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7083 if test "${ac_cv_path_PERL+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 else
7086 case $PERL in
7087 [\\/]* | ?:[\\/]*)
7088 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7089 ;;
7090 *)
7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 for as_dir in $PATH
7093 do
7094 IFS=$as_save_IFS
7095 test -z "$as_dir" && as_dir=.
7096 for ac_exec_ext in '' $ac_executable_extensions; do
7097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7098 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7100 break 2
7101 fi
7102 done
7103 done
7104
7105 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/bin/perl"
7106 ;;
7107 esac
7108 fi
7109 PERL=$ac_cv_path_PERL
7110
7111 if test -n "$PERL"; then
7112 echo "$as_me:$LINENO: result: $PERL" >&5
7113 echo "${ECHO_T}$PERL" >&6
7114 else
7115 echo "$as_me:$LINENO: result: no" >&5
7116 echo "${ECHO_T}no" >&6
7117 fi
7118
7119 if test x$do_helper_search = xtrue; then
7120 for ac_prog in madplay mpg123
7121 do
7122 # Extract the first word of "$ac_prog", so it can be a program name with args.
7123 set dummy $ac_prog; ac_word=$2
7124 echo "$as_me:$LINENO: checking for $ac_word" >&5
7125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7126 if test "${ac_cv_prog_MP3DECODE+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7128 else
7129 if test -n "$MP3DECODE"; then
7130 ac_cv_prog_MP3DECODE="$MP3DECODE" # Let the user override the test.
7131 else
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 for as_dir in $PATH
7134 do
7135 IFS=$as_save_IFS
7136 test -z "$as_dir" && as_dir=.
7137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7139 ac_cv_prog_MP3DECODE="$ac_prog"
7140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7141 break 2
7142 fi
7143 done
7144 done
7145
7146 fi
7147 fi
7148 MP3DECODE=$ac_cv_prog_MP3DECODE
7149 if test -n "$MP3DECODE"; then
7150 echo "$as_me:$LINENO: result: $MP3DECODE" >&5
7151 echo "${ECHO_T}$MP3DECODE" >&6
7152 else
7153 echo "$as_me:$LINENO: result: no" >&5
7154 echo "${ECHO_T}no" >&6
7155 fi
7156
7157 test -n "$MP3DECODE" && break
7158 done
7159
7160 for ac_prog in lame notlame bladeenc
7161 do
7162 # Extract the first word of "$ac_prog", so it can be a program name with args.
7163 set dummy $ac_prog; ac_word=$2
7164 echo "$as_me:$LINENO: checking for $ac_word" >&5
7165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7166 if test "${ac_cv_prog_MP3ENCODE+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7168 else
7169 if test -n "$MP3ENCODE"; then
7170 ac_cv_prog_MP3ENCODE="$MP3ENCODE" # Let the user override the test.
7171 else
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH
7174 do
7175 IFS=$as_save_IFS
7176 test -z "$as_dir" && as_dir=.
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7179 ac_cv_prog_MP3ENCODE="$ac_prog"
7180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7181 break 2
7182 fi
7183 done
7184 done
7185
7186 fi
7187 fi
7188 MP3ENCODE=$ac_cv_prog_MP3ENCODE
7189 if test -n "$MP3ENCODE"; then
7190 echo "$as_me:$LINENO: result: $MP3ENCODE" >&5
7191 echo "${ECHO_T}$MP3ENCODE" >&6
7192 else
7193 echo "$as_me:$LINENO: result: no" >&5
7194 echo "${ECHO_T}no" >&6
7195 fi
7196
7197 test -n "$MP3ENCODE" && break
7198 done
7199
7200 for ac_prog in oggdec ogg123
7201 do
7202 # Extract the first word of "$ac_prog", so it can be a program name with args.
7203 set dummy $ac_prog; ac_word=$2
7204 echo "$as_me:$LINENO: checking for $ac_word" >&5
7205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7206 if test "${ac_cv_prog_OGGDECODE+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7208 else
7209 if test -n "$OGGDECODE"; then
7210 ac_cv_prog_OGGDECODE="$OGGDECODE" # Let the user override the test.
7211 else
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7214 do
7215 IFS=$as_save_IFS
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7219 ac_cv_prog_OGGDECODE="$ac_prog"
7220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 break 2
7222 fi
7223 done
7224 done
7225
7226 fi
7227 fi
7228 OGGDECODE=$ac_cv_prog_OGGDECODE
7229 if test -n "$OGGDECODE"; then
7230 echo "$as_me:$LINENO: result: $OGGDECODE" >&5
7231 echo "${ECHO_T}$OGGDECODE" >&6
7232 else
7233 echo "$as_me:$LINENO: result: no" >&5
7234 echo "${ECHO_T}no" >&6
7235 fi
7236
7237 test -n "$OGGDECODE" && break
7238 done
7239
7240 for ac_prog in oggenc
7241 do
7242 # Extract the first word of "$ac_prog", so it can be a program name with args.
7243 set dummy $ac_prog; ac_word=$2
7244 echo "$as_me:$LINENO: checking for $ac_word" >&5
7245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7246 if test "${ac_cv_prog_OGGENCODE+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7248 else
7249 if test -n "$OGGENCODE"; then
7250 ac_cv_prog_OGGENCODE="$OGGENCODE" # Let the user override the test.
7251 else
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 for as_dir in $PATH
7254 do
7255 IFS=$as_save_IFS
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7259 ac_cv_prog_OGGENCODE="$ac_prog"
7260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7261 break 2
7262 fi
7263 done
7264 done
7265
7266 fi
7267 fi
7268 OGGENCODE=$ac_cv_prog_OGGENCODE
7269 if test -n "$OGGENCODE"; then
7270 echo "$as_me:$LINENO: result: $OGGENCODE" >&5
7271 echo "${ECHO_T}$OGGENCODE" >&6
7272 else
7273 echo "$as_me:$LINENO: result: no" >&5
7274 echo "${ECHO_T}no" >&6
7275 fi
7276
7277 test -n "$OGGENCODE" && break
7278 done
7279
7280 for ac_prog in vorbiscomment
7281 do
7282 # Extract the first word of "$ac_prog", so it can be a program name with args.
7283 set dummy $ac_prog; ac_word=$2
7284 echo "$as_me:$LINENO: checking for $ac_word" >&5
7285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7286 if test "${ac_cv_prog_VORBISCOMMENT+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7288 else
7289 if test -n "$VORBISCOMMENT"; then
7290 ac_cv_prog_VORBISCOMMENT="$VORBISCOMMENT" # Let the user override the test.
7291 else
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293 for as_dir in $PATH
7294 do
7295 IFS=$as_save_IFS
7296 test -z "$as_dir" && as_dir=.
7297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7299 ac_cv_prog_VORBISCOMMENT="$ac_prog"
7300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7301 break 2
7302 fi
7303 done
7304 done
7305
7306 fi
7307 fi
7308 VORBISCOMMENT=$ac_cv_prog_VORBISCOMMENT
7309 if test -n "$VORBISCOMMENT"; then
7310 echo "$as_me:$LINENO: result: $VORBISCOMMENT" >&5
7311 echo "${ECHO_T}$VORBISCOMMENT" >&6
7312 else
7313 echo "$as_me:$LINENO: result: no" >&5
7314 echo "${ECHO_T}no" >&6
7315 fi
7316
7317 test -n "$VORBISCOMMENT" && break
7318 done
7319
7320 for ac_prog in flac
7321 do
7322 # Extract the first word of "$ac_prog", so it can be a program name with args.
7323 set dummy $ac_prog; ac_word=$2
7324 echo "$as_me:$LINENO: checking for $ac_word" >&5
7325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7326 if test "${ac_cv_prog_FLACDECODE+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7328 else
7329 if test -n "$FLACDECODE"; then
7330 ac_cv_prog_FLACDECODE="$FLACDECODE" # Let the user override the test.
7331 else
7332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333 for as_dir in $PATH
7334 do
7335 IFS=$as_save_IFS
7336 test -z "$as_dir" && as_dir=.
7337 for ac_exec_ext in '' $ac_executable_extensions; do
7338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7339 ac_cv_prog_FLACDECODE="$ac_prog"
7340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7341 break 2
7342 fi
7343 done
7344 done
7345
7346 fi
7347 fi
7348 FLACDECODE=$ac_cv_prog_FLACDECODE
7349 if test -n "$FLACDECODE"; then
7350 echo "$as_me:$LINENO: result: $FLACDECODE" >&5
7351 echo "${ECHO_T}$FLACDECODE" >&6
7352 else
7353 echo "$as_me:$LINENO: result: no" >&5
7354 echo "${ECHO_T}no" >&6
7355 fi
7356
7357 test -n "$FLACDECODE" && break
7358 done
7359
7360 for ac_prog in flac
7361 do
7362 # Extract the first word of "$ac_prog", so it can be a program name with args.
7363 set dummy $ac_prog; ac_word=$2
7364 echo "$as_me:$LINENO: checking for $ac_word" >&5
7365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7366 if test "${ac_cv_prog_FLACENCODE+set}" = set; then
7367 echo $ECHO_N "(cached) $ECHO_C" >&6
7368 else
7369 if test -n "$FLACENCODE"; then
7370 ac_cv_prog_FLACENCODE="$FLACENCODE" # Let the user override the test.
7371 else
7372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 for as_dir in $PATH
7374 do
7375 IFS=$as_save_IFS
7376 test -z "$as_dir" && as_dir=.
7377 for ac_exec_ext in '' $ac_executable_extensions; do
7378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7379 ac_cv_prog_FLACENCODE="$ac_prog"
7380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7381 break 2
7382 fi
7383 done
7384 done
7385
7386 fi
7387 fi
7388 FLACENCODE=$ac_cv_prog_FLACENCODE
7389 if test -n "$FLACENCODE"; then
7390 echo "$as_me:$LINENO: result: $FLACENCODE" >&5
7391 echo "${ECHO_T}$FLACENCODE" >&6
7392 else
7393 echo "$as_me:$LINENO: result: no" >&5
7394 echo "${ECHO_T}no" >&6
7395 fi
7396
7397 test -n "$FLACENCODE" && break
7398 done
7399
7400 for ac_prog in metaflac
7401 do
7402 # Extract the first word of "$ac_prog", so it can be a program name with args.
7403 set dummy $ac_prog; ac_word=$2
7404 echo "$as_me:$LINENO: checking for $ac_word" >&5
7405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7406 if test "${ac_cv_prog_METAFLAC+set}" = set; then
7407 echo $ECHO_N "(cached) $ECHO_C" >&6
7408 else
7409 if test -n "$METAFLAC"; then
7410 ac_cv_prog_METAFLAC="$METAFLAC" # Let the user override the test.
7411 else
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 for as_dir in $PATH
7414 do
7415 IFS=$as_save_IFS
7416 test -z "$as_dir" && as_dir=.
7417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7419 ac_cv_prog_METAFLAC="$ac_prog"
7420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7421 break 2
7422 fi
7423 done
7424 done
7425
7426 fi
7427 fi
7428 METAFLAC=$ac_cv_prog_METAFLAC
7429 if test -n "$METAFLAC"; then
7430 echo "$as_me:$LINENO: result: $METAFLAC" >&5
7431 echo "${ECHO_T}$METAFLAC" >&6
7432 else
7433 echo "$as_me:$LINENO: result: no" >&5
7434 echo "${ECHO_T}no" >&6
7435 fi
7436
7437 test -n "$METAFLAC" && break
7438 done
7439
7440 if test x$MP3DECODE = xmpg123; then
7441 MP3DECODE="$MP3DECODE -q -w %w %m"
7442 else
7443 MP3DECODE="$MP3DECODE -q -o %w %m"
7444 fi
7445 if test x$MP3ENCODE = xlame -o x$MP3ENCODE = xnotlame; then
7446 MP3ENCODE="$MP3ENCODE --quiet -h -b %b %w %m"
7447 else
7448 MP3ENCODE="$MP3ENCODE -quiet %w %m"
7449 fi
7450 if test x$OGGDECODE = xoggdec; then
7451 OGGDECODE="$OGGDECODE -Q -o %w %m"
7452 else
7453 OGGDECODE="$OGGDECODE -q -d wav -f %w %m"
7454 fi
7455 if test x$OGGENCODE != x; then
7456 OGGENCODE="$OGGENCODE -Q -b %b -o %m %w"
7457 fi
7458 if test x$FLACDECODE != x; then
7459 FLACDECODE="$FLACDECODE -s -d -o %w %m"
7460 fi
7461 if test x$FLACENCODE != x; then
7462 FLACENCODE="$FLACENCODE -s -o %m %w"
7463 fi
7464 fi
7465
7466
7467
7468 # Check whether --enable-lookup-table or --disable-lookup-table was given.
7469 if test "${enable_lookup_table+set}" = set; then
7470 enableval="$enable_lookup_table"
7471 case "$enableval" in
7472 yes) cat >>confdefs.h <<\_ACEOF
7473 #define USE_LOOKUPTABLE 1
7474 _ACEOF
7475 ;;
7476 no) ;;
7477 *) { { echo "$as_me:$LINENO: error: bad value $withval for --with-lookuptable" >&5
7478 echo "$as_me: error: bad value $withval for --with-lookuptable" >&2;}
7479 { (exit 1); exit 1; }; } ;;
7480 esac
7481 else
7482 cat >>confdefs.h <<\_ACEOF
7483 #define USE_LOOKUPTABLE 1
7484 _ACEOF
7485
7486 fi;
7487
7488 have_xmms=true
7489
7490 # Check whether --with-glib-prefix or --without-glib-prefix was given.
7491 if test "${with_glib_prefix+set}" = set; then
7492 withval="$with_glib_prefix"
7493 glib_config_prefix="$withval"
7494 else
7495 glib_config_prefix=""
7496 fi;
7497
7498 # Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given.
7499 if test "${with_glib_exec_prefix+set}" = set; then
7500 withval="$with_glib_exec_prefix"
7501 glib_config_exec_prefix="$withval"
7502 else
7503 glib_config_exec_prefix=""
7504 fi;
7505 # Check whether --enable-glibtest or --disable-glibtest was given.
7506 if test "${enable_glibtest+set}" = set; then
7507 enableval="$enable_glibtest"
7508
7509 else
7510 enable_glibtest=yes
7511 fi;
7512
7513 if test x$glib_config_exec_prefix != x ; then
7514 glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
7515 if test x${GLIB_CONFIG+set} != xset ; then
7516 GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
7517 fi
7518 fi
7519 if test x$glib_config_prefix != x ; then
7520 glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
7521 if test x${GLIB_CONFIG+set} != xset ; then
7522 GLIB_CONFIG=$glib_config_prefix/bin/glib-config
7523 fi
7524 fi
7525
7526 for module in .
7527 do
7528 case "$module" in
7529 gmodule)
7530 glib_config_args="$glib_config_args gmodule"
7531 ;;
7532 gthread)
7533 glib_config_args="$glib_config_args gthread"
7534 ;;
7535 esac
7536 done
7537
7538 # Extract the first word of "glib-config", so it can be a program name with args.
7539 set dummy glib-config; ac_word=$2
7540 echo "$as_me:$LINENO: checking for $ac_word" >&5
7541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7542 if test "${ac_cv_path_GLIB_CONFIG+set}" = set; then
7543 echo $ECHO_N "(cached) $ECHO_C" >&6
7544 else
7545 case $GLIB_CONFIG in
7546 [\\/]* | ?:[\\/]*)
7547 ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
7548 ;;
7549 *)
7550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 for as_dir in $PATH
7552 do
7553 IFS=$as_save_IFS
7554 test -z "$as_dir" && as_dir=.
7555 for ac_exec_ext in '' $ac_executable_extensions; do
7556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7557 ac_cv_path_GLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7559 break 2
7560 fi
7561 done
7562 done
7563
7564 test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
7565 ;;
7566 esac
7567 fi
7568 GLIB_CONFIG=$ac_cv_path_GLIB_CONFIG
7569
7570 if test -n "$GLIB_CONFIG"; then
7571 echo "$as_me:$LINENO: result: $GLIB_CONFIG" >&5
7572 echo "${ECHO_T}$GLIB_CONFIG" >&6
7573 else
7574 echo "$as_me:$LINENO: result: no" >&5
7575 echo "${ECHO_T}no" >&6
7576 fi
7577
7578 min_glib_version=1.2.2
7579 echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
7580 echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6
7581 no_glib=""
7582 if test "$GLIB_CONFIG" = "no" ; then
7583 no_glib=yes
7584 else
7585 GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
7586 GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
7587 glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
7588 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7589 glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
7590 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7591 glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
7592 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7593 if test "x$enable_glibtest" = "xyes" ; then
7594 ac_save_CFLAGS="$CFLAGS"
7595 ac_save_LIBS="$LIBS"
7596 CFLAGS="$CFLAGS $GLIB_CFLAGS"
7597 LIBS="$GLIB_LIBS $LIBS"
7598 rm -f conf.glibtest
7599 if test "$cross_compiling" = yes; then
7600 echo $ac_n "cross compiling; assumed OK... $ac_c"
7601 else
7602 cat >conftest.$ac_ext <<_ACEOF
7603 /* confdefs.h. */
7604 _ACEOF
7605 cat confdefs.h >>conftest.$ac_ext
7606 cat >>conftest.$ac_ext <<_ACEOF
7607 /* end confdefs.h. */
7608
7609 #include <glib.h>
7610 #include <stdio.h>
7611 #include <stdlib.h>
7612
7613 int
7614 main ()
7615 {
7616 int major, minor, micro;
7617 char *tmp_version;
7618
7619 system ("touch conf.glibtest");
7620
7621 /* HP/UX 9 (%@#!) writes to sscanf strings */
7622 tmp_version = g_strdup("$min_glib_version");
7623 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7624 printf("%s, bad version string\n", "$min_glib_version");
7625 exit(1);
7626 }
7627
7628 if ((glib_major_version != $glib_config_major_version) ||
7629 (glib_minor_version != $glib_config_minor_version) ||
7630 (glib_micro_version != $glib_config_micro_version))
7631 {
7632 printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
7633 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
7634 glib_major_version, glib_minor_version, glib_micro_version);
7635 printf ("*** was found! If glib-config was correct, then it is best\n");
7636 printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
7637 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7638 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7639 printf("*** required on your system.\n");
7640 printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
7641 printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
7642 printf("*** before re-running configure\n");
7643 }
7644 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
7645 (glib_minor_version != GLIB_MINOR_VERSION) ||
7646 (glib_micro_version != GLIB_MICRO_VERSION))
7647 {
7648 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
7649 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
7650 printf("*** library (version %d.%d.%d)\n",
7651 glib_major_version, glib_minor_version, glib_micro_version);
7652 }
7653 else
7654 {
7655 if ((glib_major_version > major) ||
7656 ((glib_major_version == major) && (glib_minor_version > minor)) ||
7657 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
7658 {
7659 return 0;
7660 }
7661 else
7662 {
7663 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
7664 glib_major_version, glib_minor_version, glib_micro_version);
7665 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
7666 major, minor, micro);
7667 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
7668 printf("***\n");
7669 printf("*** If you have already installed a sufficiently new version, this error\n");
7670 printf("*** probably means that the wrong copy of the glib-config shell script is\n");
7671 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7672 printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
7673 printf("*** correct copy of glib-config. (In this case, you will have to\n");
7674 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7675 printf("*** so that the correct libraries are found at run-time))\n");
7676 }
7677 }
7678 return 1;
7679 }
7680
7681 _ACEOF
7682 rm -f conftest$ac_exeext
7683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7684 (eval $ac_link) 2>&5
7685 ac_status=$?
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7689 (eval $ac_try) 2>&5
7690 ac_status=$?
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); }; }; then
7693 :
7694 else
7695 echo "$as_me: program exited with status $ac_status" >&5
7696 echo "$as_me: failed program was:" >&5
7697 sed 's/^/| /' conftest.$ac_ext >&5
7698
7699 ( exit $ac_status )
7700 no_glib=yes
7701 fi
7702 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7703 fi
7704 CFLAGS="$ac_save_CFLAGS"
7705 LIBS="$ac_save_LIBS"
7706 fi
7707 fi
7708 if test "x$no_glib" = x ; then
7709 echo "$as_me:$LINENO: result: yes" >&5
7710 echo "${ECHO_T}yes" >&6
7711 :
7712 else
7713 echo "$as_me:$LINENO: result: no" >&5
7714 echo "${ECHO_T}no" >&6
7715 if test "$GLIB_CONFIG" = "no" ; then
7716 echo "*** The glib-config script installed by GLIB could not be found"
7717 echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
7718 echo "*** your path, or set the GLIB_CONFIG environment variable to the"
7719 echo "*** full path to glib-config."
7720 else
7721 if test -f conf.glibtest ; then
7722 :
7723 else
7724 echo "*** Could not run GLIB test program, checking why..."
7725 CFLAGS="$CFLAGS $GLIB_CFLAGS"
7726 LIBS="$LIBS $GLIB_LIBS"
7727 cat >conftest.$ac_ext <<_ACEOF
7728 /* confdefs.h. */
7729 _ACEOF
7730 cat confdefs.h >>conftest.$ac_ext
7731 cat >>conftest.$ac_ext <<_ACEOF
7732 /* end confdefs.h. */
7733
7734 #include <glib.h>
7735 #include <stdio.h>
7736
7737 int
7738 main ()
7739 {
7740 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
7741 ;
7742 return 0;
7743 }
7744 _ACEOF
7745 rm -f conftest.$ac_objext conftest$ac_exeext
7746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7747 (eval $ac_link) 2>conftest.er1
7748 ac_status=$?
7749 grep -v '^ *+' conftest.er1 >conftest.err
7750 rm -f conftest.er1
7751 cat conftest.err >&5
7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); } &&
7754 { ac_try='test -z "$ac_c_werror_flag"
7755 || test ! -s conftest.err'
7756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7757 (eval $ac_try) 2>&5
7758 ac_status=$?
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); }; } &&
7761 { ac_try='test -s conftest$ac_exeext'
7762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7763 (eval $ac_try) 2>&5
7764 ac_status=$?
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); }; }; then
7767 echo "*** The test program compiled, but did not run. This usually means"
7768 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
7769 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
7770 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7771 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7772 echo "*** is required on your system"
7773 echo "***"
7774 echo "*** If you have an old version installed, it is best to remove it, although"
7775 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7776 echo "***"
7777 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
7778 echo "*** came with the system with the command"
7779 echo "***"
7780 echo "*** rpm --erase --nodeps gtk gtk-devel"
7781 else
7782 echo "$as_me: failed program was:" >&5
7783 sed 's/^/| /' conftest.$ac_ext >&5
7784
7785 echo "*** The test program failed to compile or link. See the file config.log for the"
7786 echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
7787 echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
7788 echo "*** may want to edit the glib-config script: $GLIB_CONFIG"
7789 fi
7790 rm -f conftest.err conftest.$ac_objext \
7791 conftest$ac_exeext conftest.$ac_ext
7792 CFLAGS="$ac_save_CFLAGS"
7793 LIBS="$ac_save_LIBS"
7794 fi
7795 fi
7796 GLIB_CFLAGS=""
7797 GLIB_LIBS=""
7798 have_xmms=false
7799 fi
7800
7801
7802 rm -f conf.glibtest
7803
7804
7805 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
7806 if test "${with_gtk_prefix+set}" = set; then
7807 withval="$with_gtk_prefix"
7808 gtk_config_prefix="$withval"
7809 else
7810 gtk_config_prefix=""
7811 fi;
7812
7813 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
7814 if test "${with_gtk_exec_prefix+set}" = set; then
7815 withval="$with_gtk_exec_prefix"
7816 gtk_config_exec_prefix="$withval"
7817 else
7818 gtk_config_exec_prefix=""
7819 fi;
7820 # Check whether --enable-gtktest or --disable-gtktest was given.
7821 if test "${enable_gtktest+set}" = set; then
7822 enableval="$enable_gtktest"
7823
7824 else
7825 enable_gtktest=yes
7826 fi;
7827
7828 for module in . gthread
7829 do
7830 case "$module" in
7831 gthread)
7832 gtk_config_args="$gtk_config_args gthread"
7833 ;;
7834 esac
7835 done
7836
7837 if test x$gtk_config_exec_prefix != x ; then
7838 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7839 if test x${GTK_CONFIG+set} != xset ; then
7840 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7841 fi
7842 fi
7843 if test x$gtk_config_prefix != x ; then
7844 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7845 if test x${GTK_CONFIG+set} != xset ; then
7846 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7847 fi
7848 fi
7849
7850 # Extract the first word of "gtk-config", so it can be a program name with args.
7851 set dummy gtk-config; ac_word=$2
7852 echo "$as_me:$LINENO: checking for $ac_word" >&5
7853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7854 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
7855 echo $ECHO_N "(cached) $ECHO_C" >&6
7856 else
7857 case $GTK_CONFIG in
7858 [\\/]* | ?:[\\/]*)
7859 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7860 ;;
7861 *)
7862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863 for as_dir in $PATH
7864 do
7865 IFS=$as_save_IFS
7866 test -z "$as_dir" && as_dir=.
7867 for ac_exec_ext in '' $ac_executable_extensions; do
7868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7869 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7871 break 2
7872 fi
7873 done
7874 done
7875
7876 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7877 ;;
7878 esac
7879 fi
7880 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
7881
7882 if test -n "$GTK_CONFIG"; then
7883 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
7884 echo "${ECHO_T}$GTK_CONFIG" >&6
7885 else
7886 echo "$as_me:$LINENO: result: no" >&5
7887 echo "${ECHO_T}no" >&6
7888 fi
7889
7890 min_gtk_version=1.2.2
7891 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7892 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
7893 no_gtk=""
7894 if test "$GTK_CONFIG" = "no" ; then
7895 no_gtk=yes
7896 else
7897 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
7898 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7899 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7900 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7901 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7902 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7903 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7904 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7905 if test "x$enable_gtktest" = "xyes" ; then
7906 ac_save_CFLAGS="$CFLAGS"
7907 ac_save_LIBS="$LIBS"
7908 CFLAGS="$CFLAGS $GTK_CFLAGS"
7909 LIBS="$GTK_LIBS $LIBS"
7910 rm -f conf.gtktest
7911 if test "$cross_compiling" = yes; then
7912 echo $ac_n "cross compiling; assumed OK... $ac_c"
7913 else
7914 cat >conftest.$ac_ext <<_ACEOF
7915 /* confdefs.h. */
7916 _ACEOF
7917 cat confdefs.h >>conftest.$ac_ext
7918 cat >>conftest.$ac_ext <<_ACEOF
7919 /* end confdefs.h. */
7920
7921 #include <gtk/gtk.h>
7922 #include <stdio.h>
7923 #include <stdlib.h>
7924
7925 int
7926 main ()
7927 {
7928 int major, minor, micro;
7929 char *tmp_version;
7930
7931 system ("touch conf.gtktest");
7932
7933 /* HP/UX 9 (%@#!) writes to sscanf strings */
7934 tmp_version = g_strdup("$min_gtk_version");
7935 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7936 printf("%s, bad version string\n", "$min_gtk_version");
7937 exit(1);
7938 }
7939
7940 if ((gtk_major_version != $gtk_config_major_version) ||
7941 (gtk_minor_version != $gtk_config_minor_version) ||
7942 (gtk_micro_version != $gtk_config_micro_version))
7943 {
7944 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
7945 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
7946 gtk_major_version, gtk_minor_version, gtk_micro_version);
7947 printf ("*** was found! If gtk-config was correct, then it is best\n");
7948 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
7949 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7950 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7951 printf("*** required on your system.\n");
7952 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
7953 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
7954 printf("*** before re-running configure\n");
7955 }
7956 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
7957 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
7958 (gtk_minor_version != GTK_MINOR_VERSION) ||
7959 (gtk_micro_version != GTK_MICRO_VERSION))
7960 {
7961 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
7962 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
7963 printf("*** library (version %d.%d.%d)\n",
7964 gtk_major_version, gtk_minor_version, gtk_micro_version);
7965 }
7966 #endif /* defined (GTK_MAJOR_VERSION) ... */
7967 else
7968 {
7969 if ((gtk_major_version > major) ||
7970 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7971 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
7972 {
7973 return 0;
7974 }
7975 else
7976 {
7977 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
7978 gtk_major_version, gtk_minor_version, gtk_micro_version);
7979 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
7980 major, minor, micro);
7981 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
7982 printf("***\n");
7983 printf("*** If you have already installed a sufficiently new version, this error\n");
7984 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
7985 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7986 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
7987 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
7988 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7989 printf("*** so that the correct libraries are found at run-time))\n");
7990 }
7991 }
7992 return 1;
7993 }
7994
7995 _ACEOF
7996 rm -f conftest$ac_exeext
7997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7998 (eval $ac_link) 2>&5
7999 ac_status=$?
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8003 (eval $ac_try) 2>&5
8004 ac_status=$?
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); }; }; then
8007 :
8008 else
8009 echo "$as_me: program exited with status $ac_status" >&5
8010 echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.$ac_ext >&5
8012
8013 ( exit $ac_status )
8014 no_gtk=yes
8015 fi
8016 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8017 fi
8018 CFLAGS="$ac_save_CFLAGS"
8019 LIBS="$ac_save_LIBS"
8020 fi
8021 fi
8022 if test "x$no_gtk" = x ; then
8023 echo "$as_me:$LINENO: result: yes" >&5
8024 echo "${ECHO_T}yes" >&6
8025 :
8026 else
8027 echo "$as_me:$LINENO: result: no" >&5
8028 echo "${ECHO_T}no" >&6
8029 if test "$GTK_CONFIG" = "no" ; then
8030 echo "*** The gtk-config script installed by GTK could not be found"
8031 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
8032 echo "*** your path, or set the GTK_CONFIG environment variable to the"
8033 echo "*** full path to gtk-config."
8034 else
8035 if test -f conf.gtktest ; then
8036 :
8037 else
8038 echo "*** Could not run GTK test program, checking why..."
8039 CFLAGS="$CFLAGS $GTK_CFLAGS"
8040 LIBS="$LIBS $GTK_LIBS"
8041 cat >conftest.$ac_ext <<_ACEOF
8042 /* confdefs.h. */
8043 _ACEOF
8044 cat confdefs.h >>conftest.$ac_ext
8045 cat >>conftest.$ac_ext <<_ACEOF
8046 /* end confdefs.h. */
8047
8048 #include <gtk/gtk.h>
8049 #include <stdio.h>
8050
8051 int
8052 main ()
8053 {
8054 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
8055 ;
8056 return 0;
8057 }
8058 _ACEOF
8059 rm -f conftest.$ac_objext conftest$ac_exeext
8060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8061 (eval $ac_link) 2>conftest.er1
8062 ac_status=$?
8063 grep -v '^ *+' conftest.er1 >conftest.err
8064 rm -f conftest.er1
8065 cat conftest.err >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); } &&
8068 { ac_try='test -z "$ac_c_werror_flag"
8069 || test ! -s conftest.err'
8070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8071 (eval $ac_try) 2>&5
8072 ac_status=$?
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); }; } &&
8075 { ac_try='test -s conftest$ac_exeext'
8076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8077 (eval $ac_try) 2>&5
8078 ac_status=$?
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); }; }; then
8081 echo "*** The test program compiled, but did not run. This usually means"
8082 echo "*** that the run-time linker is not finding GTK or finding the wrong"
8083 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
8084 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8085 echo "*** to the installed location Also, make sure you have run ldconfig if that"
8086 echo "*** is required on your system"
8087 echo "***"
8088 echo "*** If you have an old version installed, it is best to remove it, although"
8089 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8090 echo "***"
8091 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
8092 echo "*** came with the system with the command"
8093 echo "***"
8094 echo "*** rpm --erase --nodeps gtk gtk-devel"
8095 else
8096 echo "$as_me: failed program was:" >&5
8097 sed 's/^/| /' conftest.$ac_ext >&5
8098
8099 echo "*** The test program failed to compile or link. See the file config.log for the"
8100 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
8101 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
8102 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
8103 fi
8104 rm -f conftest.err conftest.$ac_objext \
8105 conftest$ac_exeext conftest.$ac_ext
8106 CFLAGS="$ac_save_CFLAGS"
8107 LIBS="$ac_save_LIBS"
8108 fi
8109 fi
8110 GTK_CFLAGS=""
8111 GTK_LIBS=""
8112 have_xmms=false
8113 fi
8114
8115
8116 rm -f conf.gtktest
8117
8118
8119
8120 # Check whether --with-xmms-prefix or --without-xmms-prefix was given.
8121 if test "${with_xmms_prefix+set}" = set; then
8122 withval="$with_xmms_prefix"
8123 xmms_config_prefix="$withval"
8124 else
8125 xmms_config_prefix=""
8126 fi;
8127
8128 # Check whether --with-xmms-exec-prefix or --without-xmms-exec-prefix was given.
8129 if test "${with_xmms_exec_prefix+set}" = set; then
8130 withval="$with_xmms_exec_prefix"
8131 xmms_config_exec_prefix="$withval"
8132 else
8133 xmms_config_exec_prefix=""
8134 fi;
8135
8136 if test x$xmms_config_exec_prefix != x; then
8137 xmms_config_args="$xmms_config_args --exec-prefix=$xmms_config_exec_prefix"
8138 if test x${XMMS_CONFIG+set} != xset; then
8139 XMMS_CONFIG=$xmms_config_exec_prefix/bin/xmms-config
8140 fi
8141 fi
8142
8143 if test x$xmms_config_prefix != x; then
8144 xmms_config_args="$xmms_config_args --prefix=$xmms_config_prefix"
8145 if test x${XMMS_CONFIG+set} != xset; then
8146 XMMS_CONFIG=$xmms_config_prefix/bin/xmms-config
8147 fi
8148 fi
8149
8150 # Extract the first word of "xmms-config", so it can be a program name with args.
8151 set dummy xmms-config; ac_word=$2
8152 echo "$as_me:$LINENO: checking for $ac_word" >&5
8153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8154 if test "${ac_cv_path_XMMS_CONFIG+set}" = set; then
8155 echo $ECHO_N "(cached) $ECHO_C" >&6
8156 else
8157 case $XMMS_CONFIG in
8158 [\\/]* | ?:[\\/]*)
8159 ac_cv_path_XMMS_CONFIG="$XMMS_CONFIG" # Let the user override the test with a path.
8160 ;;
8161 *)
8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163 for as_dir in $PATH
8164 do
8165 IFS=$as_save_IFS
8166 test -z "$as_dir" && as_dir=.
8167 for ac_exec_ext in '' $ac_executable_extensions; do
8168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8169 ac_cv_path_XMMS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8171 break 2
8172 fi
8173 done
8174 done
8175
8176 test -z "$ac_cv_path_XMMS_CONFIG" && ac_cv_path_XMMS_CONFIG="no"
8177 ;;
8178 esac
8179 fi
8180 XMMS_CONFIG=$ac_cv_path_XMMS_CONFIG
8181
8182 if test -n "$XMMS_CONFIG"; then
8183 echo "$as_me:$LINENO: result: $XMMS_CONFIG" >&5
8184 echo "${ECHO_T}$XMMS_CONFIG" >&6
8185 else
8186 echo "$as_me:$LINENO: result: no" >&5
8187 echo "${ECHO_T}no" >&6
8188 fi
8189
8190 min_xmms_version=1.0.0
8191
8192 if test "$XMMS_CONFIG" = "no"; then
8193 no_xmms=yes
8194 else
8195 XMMS_CFLAGS=`$XMMS_CONFIG $xmms_config_args --cflags`
8196 XMMS_LIBS=`$XMMS_CONFIG $xmms_config_args --libs`
8197 XMMS_VERSION=`$XMMS_CONFIG $xmms_config_args --version`
8198 XMMS_DATA_DIR=`$XMMS_CONFIG $xmms_config_args --data-dir`
8199 XMMS_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --plugin-dir`
8200 XMMS_VISUALIZATION_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args \
8201 --visualization-plugin-dir`
8202 XMMS_INPUT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --input-plugin-dir`
8203 XMMS_OUTPUT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --output-plugin-dir`
8204 XMMS_EFFECT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --effect-plugin-dir`
8205 XMMS_GENERAL_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --general-plugin-dir`
8206
8207
8208
8209 # Determine which version number is greater. Prints 2 to stdout if
8210 # the second number is greater, 1 if the first number is greater,
8211 # 0 if the numbers are equal.
8212
8213 # Written 15 December 1999 by Ben Gertzfield <[email protected]>
8214 # Revised 15 December 1999 by Jim Monty <[email protected]>
8215
8216 for ac_prog in gawk mawk nawk awk
8217 do
8218 # Extract the first word of "$ac_prog", so it can be a program name with args.
8219 set dummy $ac_prog; ac_word=$2
8220 echo "$as_me:$LINENO: checking for $ac_word" >&5
8221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8222 if test "${ac_cv_prog_AWK+set}" = set; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
8224 else
8225 if test -n "$AWK"; then
8226 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8227 else
8228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229 for as_dir in $PATH
8230 do
8231 IFS=$as_save_IFS
8232 test -z "$as_dir" && as_dir=.
8233 for ac_exec_ext in '' $ac_executable_extensions; do
8234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8235 ac_cv_prog_AWK="$ac_prog"
8236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8237 break 2
8238 fi
8239 done
8240 done
8241
8242 fi
8243 fi
8244 AWK=$ac_cv_prog_AWK
8245 if test -n "$AWK"; then
8246 echo "$as_me:$LINENO: result: $AWK" >&5
8247 echo "${ECHO_T}$AWK" >&6
8248 else
8249 echo "$as_me:$LINENO: result: no" >&5
8250 echo "${ECHO_T}no" >&6
8251 fi
8252
8253 test -n "$AWK" && break
8254 done
8255
8256 xmms_got_version=` $AWK ' \
8257 BEGIN { \
8258 print vercmp(ARGV[1], ARGV[2]); \
8259 } \
8260 \
8261 function vercmp(ver1, ver2, ver1arr, ver2arr, \
8262 ver1len, ver2len, \
8263 ver1int, ver2int, len, i, p) { \
8264 \
8265 ver1len = split(ver1, ver1arr, /\./); \
8266 ver2len = split(ver2, ver2arr, /\./); \
8267 \
8268 len = ver1len > ver2len ? ver1len : ver2len; \
8269 \
8270 for (i = 1; i <= len; i++) { \
8271 p = 1000 ^ (len - i); \
8272 ver1int += ver1arr[i] * p; \
8273 ver2int += ver2arr[i] * p; \
8274 } \
8275 \
8276 if (ver1int < ver2int) \
8277 return 2; \
8278 else if (ver1int > ver2int) \
8279 return 1; \
8280 else \
8281 return 0; \
8282 }' $XMMS_VERSION $min_xmms_version`
8283
8284 if test $xmms_got_version -eq 2; then # failure
8285 no_xmms=version
8286 else # success!
8287 :
8288 fi
8289
8290 fi
8291
8292 echo "$as_me:$LINENO: checking for XMMS - version >= $min_xmms_version" >&5
8293 echo $ECHO_N "checking for XMMS - version >= $min_xmms_version... $ECHO_C" >&6
8294
8295 if test "x$no_xmms" = x; then
8296 echo "$as_me:$LINENO: result: yes" >&5
8297 echo "${ECHO_T}yes" >&6
8298 :
8299 else
8300 echo "$as_me:$LINENO: result: no" >&5
8301 echo "${ECHO_T}no" >&6
8302
8303 if test "$XMMS_CONFIG" = "no" ; then
8304 echo "*** The xmms-config script installed by XMMS could not be found."
8305 echo "*** If XMMS was installed in PREFIX, make sure PREFIX/bin is in"
8306 echo "*** your path, or set the XMMS_CONFIG environment variable to the"
8307 echo "*** full path to xmms-config."
8308 else
8309 if test "$no_xmms" = "version"; then
8310 echo "*** An old version of XMMS, $XMMS_VERSION, was found."
8311 echo "*** You need a version of XMMS newer than $min_xmms_version."
8312 echo "*** The latest version of XMMS is always available from"
8313 echo "*** http://www.xmms.org/"
8314 echo "***"
8315
8316 echo "*** If you have already installed a sufficiently new version, this error"
8317 echo "*** probably means that the wrong copy of the xmms-config shell script is"
8318 echo "*** being found. The easiest way to fix this is to remove the old version"
8319 echo "*** of XMMS, but you can also set the XMMS_CONFIG environment to point to the"
8320 echo "*** correct copy of xmms-config. (In this case, you will have to"
8321 echo "*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf"
8322 echo "*** so that the correct libraries are found at run-time)"
8323 fi
8324 fi
8325 XMMS_CFLAGS=""
8326 XMMS_LIBS=""
8327 have_xmms=false
8328 fi
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340 # Check whether --enable-static or --disable-static was given.
8341 if test "${enable_static+set}" = set; then
8342 enableval="$enable_static"
8343 p=${PACKAGE-default}
8344 case $enableval in
8345 yes) enable_static=yes ;;
8346 no) enable_static=no ;;
8347 *)
8348 enable_static=no
8349 # Look at the argument we got. We use all the common list separators.
8350 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8351 for pkg in $enableval; do
8352 IFS="$lt_save_ifs"
8353 if test "X$pkg" = "X$p"; then
8354 enable_static=yes
8355 fi
8356 done
8357 IFS="$lt_save_ifs"
8358 ;;
8359 esac
8360 else
8361 enable_static=no
8362 fi;
8363
8364
8365 # Check whether --enable-shared or --disable-shared was given.
8366 if test "${enable_shared+set}" = set; then
8367 enableval="$enable_shared"
8368 p=${PACKAGE-default}
8369 case $enableval in
8370 yes) enable_shared=yes ;;
8371 no) enable_shared=no ;;
8372 *)
8373 enable_shared=no
8374 # Look at the argument we got. We use all the common list separators.
8375 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8376 for pkg in $enableval; do
8377 IFS="$lt_save_ifs"
8378 if test "X$pkg" = "X$p"; then
8379 enable_shared=yes
8380 fi
8381 done
8382 IFS="$lt_save_ifs"
8383 ;;
8384 esac
8385 else
8386 enable_shared=yes
8387 fi;
8388
8389 # Check whether --enable-fast-install or --disable-fast-install was given.
8390 if test "${enable_fast_install+set}" = set; then
8391 enableval="$enable_fast_install"
8392 p=${PACKAGE-default}
8393 case $enableval in
8394 yes) enable_fast_install=yes ;;
8395 no) enable_fast_install=no ;;
8396 *)
8397 enable_fast_install=no
8398 # Look at the argument we got. We use all the common list separators.
8399 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8400 for pkg in $enableval; do
8401 IFS="$lt_save_ifs"
8402 if test "X$pkg" = "X$p"; then
8403 enable_fast_install=yes
8404 fi
8405 done
8406 IFS="$lt_save_ifs"
8407 ;;
8408 esac
8409 else
8410 enable_fast_install=yes
8411 fi;
8412
8413 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
8414 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
8415 if test "${lt_cv_path_SED+set}" = set; then
8416 echo $ECHO_N "(cached) $ECHO_C" >&6
8417 else
8418 # Loop through the user's path and test for sed and gsed.
8419 # Then use that list of sed's as ones to test for truncation.
8420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8421 for as_dir in $PATH
8422 do
8423 IFS=$as_save_IFS
8424 test -z "$as_dir" && as_dir=.
8425 for lt_ac_prog in sed gsed; do
8426 for ac_exec_ext in '' $ac_executable_extensions; do
8427 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
8428 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8429 fi
8430 done
8431 done
8432 done
8433 lt_ac_max=0
8434 lt_ac_count=0
8435 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
8436 # along with /bin/sed that truncates output.
8437 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8438 test ! -f $lt_ac_sed && continue
8439 cat /dev/null > conftest.in
8440 lt_ac_count=0
8441 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8442 # Check for GNU sed and select it if it is found.
8443 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8444 lt_cv_path_SED=$lt_ac_sed
8445 break
8446 fi
8447 while true; do
8448 cat conftest.in conftest.in >conftest.tmp
8449 mv conftest.tmp conftest.in
8450 cp conftest.in conftest.nl
8451 echo >>conftest.nl
8452 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8453 cmp -s conftest.out conftest.nl || break
8454 # 10000 chars as input seems more than enough
8455 test $lt_ac_count -gt 10 && break
8456 lt_ac_count=`expr $lt_ac_count + 1`
8457 if test $lt_ac_count -gt $lt_ac_max; then
8458 lt_ac_max=$lt_ac_count
8459 lt_cv_path_SED=$lt_ac_sed
8460 fi
8461 done
8462 done
8463
8464 fi
8465
8466 SED=$lt_cv_path_SED
8467 echo "$as_me:$LINENO: result: $SED" >&5
8468 echo "${ECHO_T}$SED" >&6
8469
8470
8471 # Check whether --with-gnu-ld or --without-gnu-ld was given.
8472 if test "${with_gnu_ld+set}" = set; then
8473 withval="$with_gnu_ld"
8474 test "$withval" = no || with_gnu_ld=yes
8475 else
8476 with_gnu_ld=no
8477 fi;
8478 ac_prog=ld
8479 if test "$GCC" = yes; then
8480 # Check if gcc -print-prog-name=ld gives a path.
8481 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8482 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
8483 case $host in
8484 *-*-mingw*)
8485 # gcc leaves a trailing carriage return which upsets mingw
8486 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8487 *)
8488 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8489 esac
8490 case $ac_prog in
8491 # Accept absolute paths.
8492 [\\/]* | ?:[\\/]*)
8493 re_direlt='/[^/][^/]*/\.\./'
8494 # Canonicalize the pathname of ld
8495 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8496 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8497 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8498 done
8499 test -z "$LD" && LD="$ac_prog"
8500 ;;
8501 "")
8502 # If it fails, then pretend we aren't using GCC.
8503 ac_prog=ld
8504 ;;
8505 *)
8506 # If it is relative, then search for the first ld in PATH.
8507 with_gnu_ld=unknown
8508 ;;
8509 esac
8510 elif test "$with_gnu_ld" = yes; then
8511 echo "$as_me:$LINENO: checking for GNU ld" >&5
8512 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8513 else
8514 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8515 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8516 fi
8517 if test "${lt_cv_path_LD+set}" = set; then
8518 echo $ECHO_N "(cached) $ECHO_C" >&6
8519 else
8520 if test -z "$LD"; then
8521 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8522 for ac_dir in $PATH; do
8523 IFS="$lt_save_ifs"
8524 test -z "$ac_dir" && ac_dir=.
8525 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8526 lt_cv_path_LD="$ac_dir/$ac_prog"
8527 # Check to see if the program is GNU ld. I'd rather use --version,
8528 # but apparently some variants of GNU ld only accept -v.
8529 # Break only if it was the GNU/non-GNU ld that we prefer.
8530 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8531 *GNU* | *'with BFD'*)
8532 test "$with_gnu_ld" != no && break
8533 ;;
8534 *)
8535 test "$with_gnu_ld" != yes && break
8536 ;;
8537 esac
8538 fi
8539 done
8540 IFS="$lt_save_ifs"
8541 else
8542 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8543 fi
8544 fi
8545
8546 LD="$lt_cv_path_LD"
8547 if test -n "$LD"; then
8548 echo "$as_me:$LINENO: result: $LD" >&5
8549 echo "${ECHO_T}$LD" >&6
8550 else
8551 echo "$as_me:$LINENO: result: no" >&5
8552 echo "${ECHO_T}no" >&6
8553 fi
8554 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8555 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8556 { (exit 1); exit 1; }; }
8557 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8558 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
8559 if test "${lt_cv_prog_gnu_ld+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8561 else
8562 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8563 case `$LD -v 2>&1 </dev/null` in
8564 *GNU* | *'with BFD'*)
8565 lt_cv_prog_gnu_ld=yes
8566 ;;
8567 *)
8568 lt_cv_prog_gnu_ld=no
8569 ;;
8570 esac
8571 fi
8572 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
8573 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
8574 with_gnu_ld=$lt_cv_prog_gnu_ld
8575
8576
8577 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
8578 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
8579 if test "${lt_cv_ld_reload_flag+set}" = set; then
8580 echo $ECHO_N "(cached) $ECHO_C" >&6
8581 else
8582 lt_cv_ld_reload_flag='-r'
8583 fi
8584 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
8585 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
8586 reload_flag=$lt_cv_ld_reload_flag
8587 case $reload_flag in
8588 "" | " "*) ;;
8589 *) reload_flag=" $reload_flag" ;;
8590 esac
8591 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8592 case $host_os in
8593 darwin*)
8594 if test "$GCC" = yes; then
8595 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
8596 else
8597 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8598 fi
8599 ;;
8600 esac
8601
8602 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
8603 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
8604 if test "${lt_cv_path_NM+set}" = set; then
8605 echo $ECHO_N "(cached) $ECHO_C" >&6
8606 else
8607 if test -n "$NM"; then
8608 # Let the user override the test.
8609 lt_cv_path_NM="$NM"
8610 else
8611 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8612 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
8613 IFS="$lt_save_ifs"
8614 test -z "$ac_dir" && ac_dir=.
8615 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
8616 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8617 # Check to see if the nm accepts a BSD-compat flag.
8618 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8619 # nm: unknown option "B" ignored
8620 # Tru64's nm complains that /dev/null is an invalid object file
8621 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8622 */dev/null* | *'Invalid file or object type'*)
8623 lt_cv_path_NM="$tmp_nm -B"
8624 break
8625 ;;
8626 *)
8627 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8628 */dev/null*)
8629 lt_cv_path_NM="$tmp_nm -p"
8630 break
8631 ;;
8632 *)
8633 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8634 continue # so that we can try to find one that supports BSD flags
8635 ;;
8636 esac
8637 esac
8638 fi
8639 done
8640 IFS="$lt_save_ifs"
8641 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
8642 fi
8643 fi
8644 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
8645 echo "${ECHO_T}$lt_cv_path_NM" >&6
8646 NM="$lt_cv_path_NM"
8647
8648 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
8649 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
8650 if test "${lt_cv_deplibs_check_method+set}" = set; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8652 else
8653 lt_cv_file_magic_cmd='$MAGIC_CMD'
8654 lt_cv_file_magic_test_file=
8655 lt_cv_deplibs_check_method='unknown'
8656 # Need to set the preceding variable on all platforms that support
8657 # interlibrary dependencies.
8658 # 'none' -- dependencies not supported.
8659 # `unknown' -- same as none, but documents that we really don't know.
8660 # 'pass_all' -- all dependencies passed with no checks.
8661 # 'test_compile' -- check by making test program.
8662 # 'file_magic [[regex]]' -- check by looking for files in library path
8663 # which responds to the $file_magic_cmd with a given extended regex.
8664 # If you have `file' or equivalent on your system and you're not sure
8665 # whether `pass_all' will *always* work, you probably want this one.
8666
8667 case $host_os in
8668 aix4* | aix5*)
8669 lt_cv_deplibs_check_method=pass_all
8670 ;;
8671
8672 beos*)
8673 lt_cv_deplibs_check_method=pass_all
8674 ;;
8675
8676 bsdi[45]*)
8677 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8678 lt_cv_file_magic_cmd='/usr/bin/file -L'
8679 lt_cv_file_magic_test_file=/shlib/libc.so
8680 ;;
8681
8682 cygwin*)
8683 # func_win32_libid is a shell function defined in ltmain.sh
8684 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8685 lt_cv_file_magic_cmd='func_win32_libid'
8686 ;;
8687
8688 mingw* | pw32*)
8689 # Base MSYS/MinGW do not provide the 'file' command needed by
8690 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
8691 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8692 lt_cv_file_magic_cmd='$OBJDUMP -f'
8693 ;;
8694
8695 darwin* | rhapsody*)
8696 lt_cv_deplibs_check_method=pass_all
8697 ;;
8698
8699 freebsd* | kfreebsd*-gnu | dragonfly*)
8700 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8701 case $host_cpu in
8702 i*86 )
8703 # Not sure whether the presence of OpenBSD here was a mistake.
8704 # Let's accept both of them until this is cleared up.
8705 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8706 lt_cv_file_magic_cmd=/usr/bin/file
8707 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8708 ;;
8709 esac
8710 else
8711 lt_cv_deplibs_check_method=pass_all
8712 fi
8713 ;;
8714
8715 gnu*)
8716 lt_cv_deplibs_check_method=pass_all
8717 ;;
8718
8719 hpux10.20* | hpux11*)
8720 lt_cv_file_magic_cmd=/usr/bin/file
8721 case $host_cpu in
8722 ia64*)
8723 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8724 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8725 ;;
8726 hppa*64*)
8727 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]'
8728 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8729 ;;
8730 *)
8731 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8732 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8733 ;;
8734 esac
8735 ;;
8736
8737 irix5* | irix6* | nonstopux*)
8738 case $LD in
8739 *-32|*"-32 ") libmagic=32-bit;;
8740 *-n32|*"-n32 ") libmagic=N32;;
8741 *-64|*"-64 ") libmagic=64-bit;;
8742 *) libmagic=never-match;;
8743 esac
8744 lt_cv_deplibs_check_method=pass_all
8745 ;;
8746
8747 # This must be Linux ELF.
8748 linux*)
8749 lt_cv_deplibs_check_method=pass_all
8750 ;;
8751
8752 netbsd*)
8753 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8754 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8755 else
8756 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8757 fi
8758 ;;
8759
8760 newos6*)
8761 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8762 lt_cv_file_magic_cmd=/usr/bin/file
8763 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8764 ;;
8765
8766 nto-qnx*)
8767 lt_cv_deplibs_check_method=unknown
8768 ;;
8769
8770 openbsd*)
8771 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8772 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8773 else
8774 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8775 fi
8776 ;;
8777
8778 osf3* | osf4* | osf5*)
8779 lt_cv_deplibs_check_method=pass_all
8780 ;;
8781
8782 sco3.2v5*)
8783 lt_cv_deplibs_check_method=pass_all
8784 ;;
8785
8786 solaris*)
8787 lt_cv_deplibs_check_method=pass_all
8788 ;;
8789
8790 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8791 case $host_vendor in
8792 motorola)
8793 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]'
8794 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8795 ;;
8796 ncr)
8797 lt_cv_deplibs_check_method=pass_all
8798 ;;
8799 sequent)
8800 lt_cv_file_magic_cmd='/bin/file'
8801 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8802 ;;
8803 sni)
8804 lt_cv_file_magic_cmd='/bin/file'
8805 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8806 lt_cv_file_magic_test_file=/lib/libc.so
8807 ;;
8808 siemens)
8809 lt_cv_deplibs_check_method=pass_all
8810 ;;
8811 esac
8812 ;;
8813
8814 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
8815 lt_cv_deplibs_check_method=pass_all
8816 ;;
8817 esac
8818
8819 fi
8820 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
8821 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
8822 file_magic_cmd=$lt_cv_file_magic_cmd
8823 deplibs_check_method=$lt_cv_deplibs_check_method
8824 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8825
8826
8827
8828
8829 # If no C compiler was specified, use CC.
8830 LTCC=${LTCC-"$CC"}
8831
8832 # Allow CC to be a program name with arguments.
8833 compiler=$CC
8834
8835 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8836 if test "${enable_libtool_lock+set}" = set; then
8837 enableval="$enable_libtool_lock"
8838
8839 fi;
8840 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8841
8842 # Some flags need to be propagated to the compiler or linker for good
8843 # libtool support.
8844 case $host in
8845 ia64-*-hpux*)
8846 # Find out which ABI we are using.
8847 echo 'int i;' > conftest.$ac_ext
8848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8849 (eval $ac_compile) 2>&5
8850 ac_status=$?
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); }; then
8853 case `/usr/bin/file conftest.$ac_objext` in
8854 *ELF-32*)
8855 HPUX_IA64_MODE="32"
8856 ;;
8857 *ELF-64*)
8858 HPUX_IA64_MODE="64"
8859 ;;
8860 esac
8861 fi
8862 rm -rf conftest*
8863 ;;
8864 *-*-irix6*)
8865 # Find out which ABI we are using.
8866 echo '#line 8866 "configure"' > conftest.$ac_ext
8867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8868 (eval $ac_compile) 2>&5
8869 ac_status=$?
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; then
8872 if test "$lt_cv_prog_gnu_ld" = yes; then
8873 case `/usr/bin/file conftest.$ac_objext` in
8874 *32-bit*)
8875 LD="${LD-ld} -melf32bsmip"
8876 ;;
8877 *N32*)
8878 LD="${LD-ld} -melf32bmipn32"
8879 ;;
8880 *64-bit*)
8881 LD="${LD-ld} -melf64bmip"
8882 ;;
8883 esac
8884 else
8885 case `/usr/bin/file conftest.$ac_objext` in
8886 *32-bit*)
8887 LD="${LD-ld} -32"
8888 ;;
8889 *N32*)
8890 LD="${LD-ld} -n32"
8891 ;;
8892 *64-bit*)
8893 LD="${LD-ld} -64"
8894 ;;
8895 esac
8896 fi
8897 fi
8898 rm -rf conftest*
8899 ;;
8900
8901 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
8902 # Find out which ABI we are using.
8903 echo 'int i;' > conftest.$ac_ext
8904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8905 (eval $ac_compile) 2>&5
8906 ac_status=$?
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); }; then
8909 case `/usr/bin/file conftest.o` in
8910 *32-bit*)
8911 case $host in
8912 x86_64-*linux*)
8913 LD="${LD-ld} -m elf_i386"
8914 ;;
8915 ppc64-*linux*|powerpc64-*linux*)
8916 LD="${LD-ld} -m elf32ppclinux"
8917 ;;
8918 s390x-*linux*)
8919 LD="${LD-ld} -m elf_s390"
8920 ;;
8921 sparc64-*linux*)
8922 LD="${LD-ld} -m elf32_sparc"
8923 ;;
8924 esac
8925 ;;
8926 *64-bit*)
8927 case $host in
8928 x86_64-*linux*)
8929 LD="${LD-ld} -m elf_x86_64"
8930 ;;
8931 ppc*-*linux*|powerpc*-*linux*)
8932 LD="${LD-ld} -m elf64ppc"
8933 ;;
8934 s390*-*linux*)
8935 LD="${LD-ld} -m elf64_s390"
8936 ;;
8937 sparc*-*linux*)
8938 LD="${LD-ld} -m elf64_sparc"
8939 ;;
8940 esac
8941 ;;
8942 esac
8943 fi
8944 rm -rf conftest*
8945 ;;
8946
8947 *-*-sco3.2v5*)
8948 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8949 SAVE_CFLAGS="$CFLAGS"
8950 CFLAGS="$CFLAGS -belf"
8951 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8952 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
8953 if test "${lt_cv_cc_needs_belf+set}" = set; then
8954 echo $ECHO_N "(cached) $ECHO_C" >&6
8955 else
8956 ac_ext=c
8957 ac_cpp='$CPP $CPPFLAGS'
8958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8961
8962 cat >conftest.$ac_ext <<_ACEOF
8963 /* confdefs.h. */
8964 _ACEOF
8965 cat confdefs.h >>conftest.$ac_ext
8966 cat >>conftest.$ac_ext <<_ACEOF
8967 /* end confdefs.h. */
8968
8969 int
8970 main ()
8971 {
8972
8973 ;
8974 return 0;
8975 }
8976 _ACEOF
8977 rm -f conftest.$ac_objext conftest$ac_exeext
8978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8979 (eval $ac_link) 2>conftest.er1
8980 ac_status=$?
8981 grep -v '^ *+' conftest.er1 >conftest.err
8982 rm -f conftest.er1
8983 cat conftest.err >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } &&
8986 { ac_try='test -z "$ac_c_werror_flag"
8987 || test ! -s conftest.err'
8988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8989 (eval $ac_try) 2>&5
8990 ac_status=$?
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); }; } &&
8993 { ac_try='test -s conftest$ac_exeext'
8994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995 (eval $ac_try) 2>&5
8996 ac_status=$?
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; }; then
8999 lt_cv_cc_needs_belf=yes
9000 else
9001 echo "$as_me: failed program was:" >&5
9002 sed 's/^/| /' conftest.$ac_ext >&5
9003
9004 lt_cv_cc_needs_belf=no
9005 fi
9006 rm -f conftest.err conftest.$ac_objext \
9007 conftest$ac_exeext conftest.$ac_ext
9008 ac_ext=c
9009 ac_cpp='$CPP $CPPFLAGS'
9010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9013
9014 fi
9015 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
9016 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
9017 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9018 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9019 CFLAGS="$SAVE_CFLAGS"
9020 fi
9021 ;;
9022
9023 esac
9024
9025 need_locks="$enable_libtool_lock"
9026
9027
9028
9029 for ac_header in dlfcn.h
9030 do
9031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9033 echo "$as_me:$LINENO: checking for $ac_header" >&5
9034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9036 echo $ECHO_N "(cached) $ECHO_C" >&6
9037 fi
9038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9040 else
9041 # Is the header compilable?
9042 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9043 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9044 cat >conftest.$ac_ext <<_ACEOF
9045 /* confdefs.h. */
9046 _ACEOF
9047 cat confdefs.h >>conftest.$ac_ext
9048 cat >>conftest.$ac_ext <<_ACEOF
9049 /* end confdefs.h. */
9050 $ac_includes_default
9051 #include <$ac_header>
9052 _ACEOF
9053 rm -f conftest.$ac_objext
9054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9055 (eval $ac_compile) 2>conftest.er1
9056 ac_status=$?
9057 grep -v '^ *+' conftest.er1 >conftest.err
9058 rm -f conftest.er1
9059 cat conftest.err >&5
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); } &&
9062 { ac_try='test -z "$ac_c_werror_flag"
9063 || test ! -s conftest.err'
9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065 (eval $ac_try) 2>&5
9066 ac_status=$?
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; } &&
9069 { ac_try='test -s conftest.$ac_objext'
9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071 (eval $ac_try) 2>&5
9072 ac_status=$?
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; }; then
9075 ac_header_compiler=yes
9076 else
9077 echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.$ac_ext >&5
9079
9080 ac_header_compiler=no
9081 fi
9082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9083 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9084 echo "${ECHO_T}$ac_header_compiler" >&6
9085
9086 # Is the header present?
9087 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9088 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9089 cat >conftest.$ac_ext <<_ACEOF
9090 /* confdefs.h. */
9091 _ACEOF
9092 cat confdefs.h >>conftest.$ac_ext
9093 cat >>conftest.$ac_ext <<_ACEOF
9094 /* end confdefs.h. */
9095 #include <$ac_header>
9096 _ACEOF
9097 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9098 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9099 ac_status=$?
9100 grep -v '^ *+' conftest.er1 >conftest.err
9101 rm -f conftest.er1
9102 cat conftest.err >&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); } >/dev/null; then
9105 if test -s conftest.err; then
9106 ac_cpp_err=$ac_c_preproc_warn_flag
9107 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9108 else
9109 ac_cpp_err=
9110 fi
9111 else
9112 ac_cpp_err=yes
9113 fi
9114 if test -z "$ac_cpp_err"; then
9115 ac_header_preproc=yes
9116 else
9117 echo "$as_me: failed program was:" >&5
9118 sed 's/^/| /' conftest.$ac_ext >&5
9119
9120 ac_header_preproc=no
9121 fi
9122 rm -f conftest.err conftest.$ac_ext
9123 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9124 echo "${ECHO_T}$ac_header_preproc" >&6
9125
9126 # So? What about this header?
9127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9128 yes:no: )
9129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9130 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9132 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9133 ac_header_preproc=yes
9134 ;;
9135 no:yes:* )
9136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9139 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9140 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9141 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9142 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9143 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9145 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9146 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9147 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9148 (
9149 cat <<\_ASBOX
9150 ## ------------------------------------ ##
9151 ## Report this to the normalize lists. ##
9152 ## ------------------------------------ ##
9153 _ASBOX
9154 ) |
9155 sed "s/^/$as_me: WARNING: /" >&2
9156 ;;
9157 esac
9158 echo "$as_me:$LINENO: checking for $ac_header" >&5
9159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9162 else
9163 eval "$as_ac_Header=\$ac_header_preproc"
9164 fi
9165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9167
9168 fi
9169 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9170 cat >>confdefs.h <<_ACEOF
9171 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9172 _ACEOF
9173
9174 fi
9175
9176 done
9177
9178 ac_ext=cc
9179 ac_cpp='$CXXCPP $CPPFLAGS'
9180 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9181 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9182 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9183 if test -n "$ac_tool_prefix"; then
9184 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
9185 do
9186 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9187 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9188 echo "$as_me:$LINENO: checking for $ac_word" >&5
9189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9190 if test "${ac_cv_prog_CXX+set}" = set; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
9192 else
9193 if test -n "$CXX"; then
9194 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9195 else
9196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9197 for as_dir in $PATH
9198 do
9199 IFS=$as_save_IFS
9200 test -z "$as_dir" && as_dir=.
9201 for ac_exec_ext in '' $ac_executable_extensions; do
9202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9203 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9205 break 2
9206 fi
9207 done
9208 done
9209
9210 fi
9211 fi
9212 CXX=$ac_cv_prog_CXX
9213 if test -n "$CXX"; then
9214 echo "$as_me:$LINENO: result: $CXX" >&5
9215 echo "${ECHO_T}$CXX" >&6
9216 else
9217 echo "$as_me:$LINENO: result: no" >&5
9218 echo "${ECHO_T}no" >&6
9219 fi
9220
9221 test -n "$CXX" && break
9222 done
9223 fi
9224 if test -z "$CXX"; then
9225 ac_ct_CXX=$CXX
9226 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
9227 do
9228 # Extract the first word of "$ac_prog", so it can be a program name with args.
9229 set dummy $ac_prog; ac_word=$2
9230 echo "$as_me:$LINENO: checking for $ac_word" >&5
9231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9232 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
9233 echo $ECHO_N "(cached) $ECHO_C" >&6
9234 else
9235 if test -n "$ac_ct_CXX"; then
9236 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9237 else
9238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9239 for as_dir in $PATH
9240 do
9241 IFS=$as_save_IFS
9242 test -z "$as_dir" && as_dir=.
9243 for ac_exec_ext in '' $ac_executable_extensions; do
9244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9245 ac_cv_prog_ac_ct_CXX="$ac_prog"
9246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9247 break 2
9248 fi
9249 done
9250 done
9251
9252 fi
9253 fi
9254 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9255 if test -n "$ac_ct_CXX"; then
9256 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
9257 echo "${ECHO_T}$ac_ct_CXX" >&6
9258 else
9259 echo "$as_me:$LINENO: result: no" >&5
9260 echo "${ECHO_T}no" >&6
9261 fi
9262
9263 test -n "$ac_ct_CXX" && break
9264 done
9265 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
9266
9267 CXX=$ac_ct_CXX
9268 fi
9269
9270
9271 # Provide some information about the compiler.
9272 echo "$as_me:$LINENO:" \
9273 "checking for C++ compiler version" >&5
9274 ac_compiler=`set X $ac_compile; echo $2`
9275 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
9276 (eval $ac_compiler --version </dev/null >&5) 2>&5
9277 ac_status=$?
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); }
9280 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
9281 (eval $ac_compiler -v </dev/null >&5) 2>&5
9282 ac_status=$?
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); }
9285 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
9286 (eval $ac_compiler -V </dev/null >&5) 2>&5
9287 ac_status=$?
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); }
9290
9291 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
9292 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
9293 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
9294 echo $ECHO_N "(cached) $ECHO_C" >&6
9295 else
9296 cat >conftest.$ac_ext <<_ACEOF
9297 /* confdefs.h. */
9298 _ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h. */
9302
9303 int
9304 main ()
9305 {
9306 #ifndef __GNUC__
9307 choke me
9308 #endif
9309
9310 ;
9311 return 0;
9312 }
9313 _ACEOF
9314 rm -f conftest.$ac_objext
9315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9316 (eval $ac_compile) 2>conftest.er1
9317 ac_status=$?
9318 grep -v '^ *+' conftest.er1 >conftest.err
9319 rm -f conftest.er1
9320 cat conftest.err >&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); } &&
9323 { ac_try='test -z "$ac_cxx_werror_flag"
9324 || test ! -s conftest.err'
9325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9326 (eval $ac_try) 2>&5
9327 ac_status=$?
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); }; } &&
9330 { ac_try='test -s conftest.$ac_objext'
9331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332 (eval $ac_try) 2>&5
9333 ac_status=$?
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); }; }; then
9336 ac_compiler_gnu=yes
9337 else
9338 echo "$as_me: failed program was:" >&5
9339 sed 's/^/| /' conftest.$ac_ext >&5
9340
9341 ac_compiler_gnu=no
9342 fi
9343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9344 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9345
9346 fi
9347 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
9348 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
9349 GXX=`test $ac_compiler_gnu = yes && echo yes`
9350 ac_test_CXXFLAGS=${CXXFLAGS+set}
9351 ac_save_CXXFLAGS=$CXXFLAGS
9352 CXXFLAGS="-g"
9353 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
9354 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
9355 if test "${ac_cv_prog_cxx_g+set}" = set; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
9357 else
9358 cat >conftest.$ac_ext <<_ACEOF
9359 /* confdefs.h. */
9360 _ACEOF
9361 cat confdefs.h >>conftest.$ac_ext
9362 cat >>conftest.$ac_ext <<_ACEOF
9363 /* end confdefs.h. */
9364
9365 int
9366 main ()
9367 {
9368
9369 ;
9370 return 0;
9371 }
9372 _ACEOF
9373 rm -f conftest.$ac_objext
9374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9375 (eval $ac_compile) 2>conftest.er1
9376 ac_status=$?
9377 grep -v '^ *+' conftest.er1 >conftest.err
9378 rm -f conftest.er1
9379 cat conftest.err >&5
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); } &&
9382 { ac_try='test -z "$ac_cxx_werror_flag"
9383 || test ! -s conftest.err'
9384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385 (eval $ac_try) 2>&5
9386 ac_status=$?
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); }; } &&
9389 { ac_try='test -s conftest.$ac_objext'
9390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391 (eval $ac_try) 2>&5
9392 ac_status=$?
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); }; }; then
9395 ac_cv_prog_cxx_g=yes
9396 else
9397 echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.$ac_ext >&5
9399
9400 ac_cv_prog_cxx_g=no
9401 fi
9402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9403 fi
9404 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
9405 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
9406 if test "$ac_test_CXXFLAGS" = set; then
9407 CXXFLAGS=$ac_save_CXXFLAGS
9408 elif test $ac_cv_prog_cxx_g = yes; then
9409 if test "$GXX" = yes; then
9410 CXXFLAGS="-g -O2"
9411 else
9412 CXXFLAGS="-g"
9413 fi
9414 else
9415 if test "$GXX" = yes; then
9416 CXXFLAGS="-O2"
9417 else
9418 CXXFLAGS=
9419 fi
9420 fi
9421 for ac_declaration in \
9422 '' \
9423 'extern "C" void std::exit (int) throw (); using std::exit;' \
9424 'extern "C" void std::exit (int); using std::exit;' \
9425 'extern "C" void exit (int) throw ();' \
9426 'extern "C" void exit (int);' \
9427 'void exit (int);'
9428 do
9429 cat >conftest.$ac_ext <<_ACEOF
9430 /* confdefs.h. */
9431 _ACEOF
9432 cat confdefs.h >>conftest.$ac_ext
9433 cat >>conftest.$ac_ext <<_ACEOF
9434 /* end confdefs.h. */
9435 $ac_declaration
9436 #include <stdlib.h>
9437 int
9438 main ()
9439 {
9440 exit (42);
9441 ;
9442 return 0;
9443 }
9444 _ACEOF
9445 rm -f conftest.$ac_objext
9446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9447 (eval $ac_compile) 2>conftest.er1
9448 ac_status=$?
9449 grep -v '^ *+' conftest.er1 >conftest.err
9450 rm -f conftest.er1
9451 cat conftest.err >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } &&
9454 { ac_try='test -z "$ac_cxx_werror_flag"
9455 || test ! -s conftest.err'
9456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9457 (eval $ac_try) 2>&5
9458 ac_status=$?
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); }; } &&
9461 { ac_try='test -s conftest.$ac_objext'
9462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463 (eval $ac_try) 2>&5
9464 ac_status=$?
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); }; }; then
9467 :
9468 else
9469 echo "$as_me: failed program was:" >&5
9470 sed 's/^/| /' conftest.$ac_ext >&5
9471
9472 continue
9473 fi
9474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9475 cat >conftest.$ac_ext <<_ACEOF
9476 /* confdefs.h. */
9477 _ACEOF
9478 cat confdefs.h >>conftest.$ac_ext
9479 cat >>conftest.$ac_ext <<_ACEOF
9480 /* end confdefs.h. */
9481 $ac_declaration
9482 int
9483 main ()
9484 {
9485 exit (42);
9486 ;
9487 return 0;
9488 }
9489 _ACEOF
9490 rm -f conftest.$ac_objext
9491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9492 (eval $ac_compile) 2>conftest.er1
9493 ac_status=$?
9494 grep -v '^ *+' conftest.er1 >conftest.err
9495 rm -f conftest.er1
9496 cat conftest.err >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); } &&
9499 { ac_try='test -z "$ac_cxx_werror_flag"
9500 || test ! -s conftest.err'
9501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502 (eval $ac_try) 2>&5
9503 ac_status=$?
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); }; } &&
9506 { ac_try='test -s conftest.$ac_objext'
9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508 (eval $ac_try) 2>&5
9509 ac_status=$?
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; }; then
9512 break
9513 else
9514 echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.$ac_ext >&5
9516
9517 fi
9518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9519 done
9520 rm -f conftest*
9521 if test -n "$ac_declaration"; then
9522 echo '#ifdef __cplusplus' >>confdefs.h
9523 echo $ac_declaration >>confdefs.h
9524 echo '#endif' >>confdefs.h
9525 fi
9526
9527 ac_ext=cc
9528 ac_cpp='$CXXCPP $CPPFLAGS'
9529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9532
9533 depcc="$CXX" am_compiler_list=
9534
9535 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
9536 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
9537 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
9538 echo $ECHO_N "(cached) $ECHO_C" >&6
9539 else
9540 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9541 # We make a subdir and do the tests there. Otherwise we can end up
9542 # making bogus files that we don't know about and never remove. For
9543 # instance it was reported that on HP-UX the gcc test will end up
9544 # making a dummy file named `D' -- because `-MD' means `put the output
9545 # in D'.
9546 mkdir conftest.dir
9547 # Copy depcomp to subdir because otherwise we won't find it if we're
9548 # using a relative directory.
9549 cp "$am_depcomp" conftest.dir
9550 cd conftest.dir
9551 # We will build objects and dependencies in a subdirectory because
9552 # it helps to detect inapplicable dependency modes. For instance
9553 # both Tru64's cc and ICC support -MD to output dependencies as a
9554 # side effect of compilation, but ICC will put the dependencies in
9555 # the current directory while Tru64 will put them in the object
9556 # directory.
9557 mkdir sub
9558
9559 am_cv_CXX_dependencies_compiler_type=none
9560 if test "$am_compiler_list" = ""; then
9561 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9562 fi
9563 for depmode in $am_compiler_list; do
9564 # Setup a source with many dependencies, because some compilers
9565 # like to wrap large dependency lists on column 80 (with \), and
9566 # we should not choose a depcomp mode which is confused by this.
9567 #
9568 # We need to recreate these files for each test, as the compiler may
9569 # overwrite some of them when testing with obscure command lines.
9570 # This happens at least with the AIX C compiler.
9571 : > sub/conftest.c
9572 for i in 1 2 3 4 5 6; do
9573 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9574 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9575 # Solaris 8's {/usr,}/bin/sh.
9576 touch sub/conftst$i.h
9577 done
9578 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9579
9580 case $depmode in
9581 nosideeffect)
9582 # after this tag, mechanisms are not by side-effect, so they'll
9583 # only be used when explicitly requested
9584 if test "x$enable_dependency_tracking" = xyes; then
9585 continue
9586 else
9587 break
9588 fi
9589 ;;
9590 none) break ;;
9591 esac
9592 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9593 # mode. It turns out that the SunPro C++ compiler does not properly
9594 # handle `-M -o', and we need to detect this.
9595 if depmode=$depmode \
9596 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9597 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9598 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
9599 >/dev/null 2>conftest.err &&
9600 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9601 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
9602 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9603 # icc doesn't choke on unknown options, it will just issue warnings
9604 # or remarks (even with -Werror). So we grep stderr for any message
9605 # that says an option was ignored or not supported.
9606 # When given -MP, icc 7.0 and 7.1 complain thusly:
9607 # icc: Command line warning: ignoring option '-M'; no argument required
9608 # The diagnosis changed in icc 8.0:
9609 # icc: Command line remark: option '-MP' not supported
9610 if (grep 'ignoring option' conftest.err ||
9611 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9612 am_cv_CXX_dependencies_compiler_type=$depmode
9613 break
9614 fi
9615 fi
9616 done
9617
9618 cd ..
9619 rm -rf conftest.dir
9620 else
9621 am_cv_CXX_dependencies_compiler_type=none
9622 fi
9623
9624 fi
9625 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
9626 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
9627 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9628
9629
9630
9631 if
9632 test "x$enable_dependency_tracking" != xno \
9633 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
9634 am__fastdepCXX_TRUE=
9635 am__fastdepCXX_FALSE='#'
9636 else
9637 am__fastdepCXX_TRUE='#'
9638 am__fastdepCXX_FALSE=
9639 fi
9640
9641
9642
9643
9644 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9645 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9646 (test "X$CXX" != "Xg++"))) ; then
9647 ac_ext=cc
9648 ac_cpp='$CXXCPP $CPPFLAGS'
9649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9652 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
9653 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
9654 if test -z "$CXXCPP"; then
9655 if test "${ac_cv_prog_CXXCPP+set}" = set; then
9656 echo $ECHO_N "(cached) $ECHO_C" >&6
9657 else
9658 # Double quotes because CXXCPP needs to be expanded
9659 for CXXCPP in "$CXX -E" "/lib/cpp"
9660 do
9661 ac_preproc_ok=false
9662 for ac_cxx_preproc_warn_flag in '' yes
9663 do
9664 # Use a header file that comes with gcc, so configuring glibc
9665 # with a fresh cross-compiler works.
9666 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9667 # <limits.h> exists even on freestanding compilers.
9668 # On the NeXT, cc -E runs the code through the compiler's parser,
9669 # not just through cpp. "Syntax error" is here to catch this case.
9670 cat >conftest.$ac_ext <<_ACEOF
9671 /* confdefs.h. */
9672 _ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9676 #ifdef __STDC__
9677 # include <limits.h>
9678 #else
9679 # include <assert.h>
9680 #endif
9681 Syntax error
9682 _ACEOF
9683 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9684 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9685 ac_status=$?
9686 grep -v '^ *+' conftest.er1 >conftest.err
9687 rm -f conftest.er1
9688 cat conftest.err >&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); } >/dev/null; then
9691 if test -s conftest.err; then
9692 ac_cpp_err=$ac_cxx_preproc_warn_flag
9693 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9694 else
9695 ac_cpp_err=
9696 fi
9697 else
9698 ac_cpp_err=yes
9699 fi
9700 if test -z "$ac_cpp_err"; then
9701 :
9702 else
9703 echo "$as_me: failed program was:" >&5
9704 sed 's/^/| /' conftest.$ac_ext >&5
9705
9706 # Broken: fails on valid input.
9707 continue
9708 fi
9709 rm -f conftest.err conftest.$ac_ext
9710
9711 # OK, works on sane cases. Now check whether non-existent headers
9712 # can be detected and how.
9713 cat >conftest.$ac_ext <<_ACEOF
9714 /* confdefs.h. */
9715 _ACEOF
9716 cat confdefs.h >>conftest.$ac_ext
9717 cat >>conftest.$ac_ext <<_ACEOF
9718 /* end confdefs.h. */
9719 #include <ac_nonexistent.h>
9720 _ACEOF
9721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9723 ac_status=$?
9724 grep -v '^ *+' conftest.er1 >conftest.err
9725 rm -f conftest.er1
9726 cat conftest.err >&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); } >/dev/null; then
9729 if test -s conftest.err; then
9730 ac_cpp_err=$ac_cxx_preproc_warn_flag
9731 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9732 else
9733 ac_cpp_err=
9734 fi
9735 else
9736 ac_cpp_err=yes
9737 fi
9738 if test -z "$ac_cpp_err"; then
9739 # Broken: success on invalid input.
9740 continue
9741 else
9742 echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.$ac_ext >&5
9744
9745 # Passes both tests.
9746 ac_preproc_ok=:
9747 break
9748 fi
9749 rm -f conftest.err conftest.$ac_ext
9750
9751 done
9752 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9753 rm -f conftest.err conftest.$ac_ext
9754 if $ac_preproc_ok; then
9755 break
9756 fi
9757
9758 done
9759 ac_cv_prog_CXXCPP=$CXXCPP
9760
9761 fi
9762 CXXCPP=$ac_cv_prog_CXXCPP
9763 else
9764 ac_cv_prog_CXXCPP=$CXXCPP
9765 fi
9766 echo "$as_me:$LINENO: result: $CXXCPP" >&5
9767 echo "${ECHO_T}$CXXCPP" >&6
9768 ac_preproc_ok=false
9769 for ac_cxx_preproc_warn_flag in '' yes
9770 do
9771 # Use a header file that comes with gcc, so configuring glibc
9772 # with a fresh cross-compiler works.
9773 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9774 # <limits.h> exists even on freestanding compilers.
9775 # On the NeXT, cc -E runs the code through the compiler's parser,
9776 # not just through cpp. "Syntax error" is here to catch this case.
9777 cat >conftest.$ac_ext <<_ACEOF
9778 /* confdefs.h. */
9779 _ACEOF
9780 cat confdefs.h >>conftest.$ac_ext
9781 cat >>conftest.$ac_ext <<_ACEOF
9782 /* end confdefs.h. */
9783 #ifdef __STDC__
9784 # include <limits.h>
9785 #else
9786 # include <assert.h>
9787 #endif
9788 Syntax error
9789 _ACEOF
9790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9792 ac_status=$?
9793 grep -v '^ *+' conftest.er1 >conftest.err
9794 rm -f conftest.er1
9795 cat conftest.err >&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); } >/dev/null; then
9798 if test -s conftest.err; then
9799 ac_cpp_err=$ac_cxx_preproc_warn_flag
9800 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9801 else
9802 ac_cpp_err=
9803 fi
9804 else
9805 ac_cpp_err=yes
9806 fi
9807 if test -z "$ac_cpp_err"; then
9808 :
9809 else
9810 echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9812
9813 # Broken: fails on valid input.
9814 continue
9815 fi
9816 rm -f conftest.err conftest.$ac_ext
9817
9818 # OK, works on sane cases. Now check whether non-existent headers
9819 # can be detected and how.
9820 cat >conftest.$ac_ext <<_ACEOF
9821 /* confdefs.h. */
9822 _ACEOF
9823 cat confdefs.h >>conftest.$ac_ext
9824 cat >>conftest.$ac_ext <<_ACEOF
9825 /* end confdefs.h. */
9826 #include <ac_nonexistent.h>
9827 _ACEOF
9828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9830 ac_status=$?
9831 grep -v '^ *+' conftest.er1 >conftest.err
9832 rm -f conftest.er1
9833 cat conftest.err >&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); } >/dev/null; then
9836 if test -s conftest.err; then
9837 ac_cpp_err=$ac_cxx_preproc_warn_flag
9838 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9839 else
9840 ac_cpp_err=
9841 fi
9842 else
9843 ac_cpp_err=yes
9844 fi
9845 if test -z "$ac_cpp_err"; then
9846 # Broken: success on invalid input.
9847 continue
9848 else
9849 echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9851
9852 # Passes both tests.
9853 ac_preproc_ok=:
9854 break
9855 fi
9856 rm -f conftest.err conftest.$ac_ext
9857
9858 done
9859 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9860 rm -f conftest.err conftest.$ac_ext
9861 if $ac_preproc_ok; then
9862 :
9863 else
9864 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9865 See \`config.log' for more details." >&5
9866 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9867 See \`config.log' for more details." >&2;}
9868 { (exit 1); exit 1; }; }
9869 fi
9870
9871 ac_ext=cc
9872 ac_cpp='$CXXCPP $CPPFLAGS'
9873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9876
9877 fi
9878
9879
9880 ac_ext=f
9881 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9882 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9883 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9884 if test -n "$ac_tool_prefix"; then
9885 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
9886 do
9887 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9888 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9889 echo "$as_me:$LINENO: checking for $ac_word" >&5
9890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9891 if test "${ac_cv_prog_F77+set}" = set; then
9892 echo $ECHO_N "(cached) $ECHO_C" >&6
9893 else
9894 if test -n "$F77"; then
9895 ac_cv_prog_F77="$F77" # Let the user override the test.
9896 else
9897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9898 for as_dir in $PATH
9899 do
9900 IFS=$as_save_IFS
9901 test -z "$as_dir" && as_dir=.
9902 for ac_exec_ext in '' $ac_executable_extensions; do
9903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9904 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
9905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9906 break 2
9907 fi
9908 done
9909 done
9910
9911 fi
9912 fi
9913 F77=$ac_cv_prog_F77
9914 if test -n "$F77"; then
9915 echo "$as_me:$LINENO: result: $F77" >&5
9916 echo "${ECHO_T}$F77" >&6
9917 else
9918 echo "$as_me:$LINENO: result: no" >&5
9919 echo "${ECHO_T}no" >&6
9920 fi
9921
9922 test -n "$F77" && break
9923 done
9924 fi
9925 if test -z "$F77"; then
9926 ac_ct_F77=$F77
9927 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
9928 do
9929 # Extract the first word of "$ac_prog", so it can be a program name with args.
9930 set dummy $ac_prog; ac_word=$2
9931 echo "$as_me:$LINENO: checking for $ac_word" >&5
9932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9933 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
9934 echo $ECHO_N "(cached) $ECHO_C" >&6
9935 else
9936 if test -n "$ac_ct_F77"; then
9937 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
9938 else
9939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9940 for as_dir in $PATH
9941 do
9942 IFS=$as_save_IFS
9943 test -z "$as_dir" && as_dir=.
9944 for ac_exec_ext in '' $ac_executable_extensions; do
9945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9946 ac_cv_prog_ac_ct_F77="$ac_prog"
9947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9948 break 2
9949 fi
9950 done
9951 done
9952
9953 fi
9954 fi
9955 ac_ct_F77=$ac_cv_prog_ac_ct_F77
9956 if test -n "$ac_ct_F77"; then
9957 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
9958 echo "${ECHO_T}$ac_ct_F77" >&6
9959 else
9960 echo "$as_me:$LINENO: result: no" >&5
9961 echo "${ECHO_T}no" >&6
9962 fi
9963
9964 test -n "$ac_ct_F77" && break
9965 done
9966
9967 F77=$ac_ct_F77
9968 fi
9969
9970
9971 # Provide some information about the compiler.
9972 echo "$as_me:9972:" \
9973 "checking for Fortran 77 compiler version" >&5
9974 ac_compiler=`set X $ac_compile; echo $2`
9975 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
9976 (eval $ac_compiler --version </dev/null >&5) 2>&5
9977 ac_status=$?
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }
9980 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
9981 (eval $ac_compiler -v </dev/null >&5) 2>&5
9982 ac_status=$?
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }
9985 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
9986 (eval $ac_compiler -V </dev/null >&5) 2>&5
9987 ac_status=$?
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); }
9990 rm -f a.out
9991
9992 # If we don't use `.F' as extension, the preprocessor is not run on the
9993 # input file. (Note that this only needs to work for GNU compilers.)
9994 ac_save_ext=$ac_ext
9995 ac_ext=F
9996 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
9997 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
9998 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
9999 echo $ECHO_N "(cached) $ECHO_C" >&6
10000 else
10001 cat >conftest.$ac_ext <<_ACEOF
10002 program main
10003 #ifndef __GNUC__
10004 choke me
10005 #endif
10006
10007 end
10008 _ACEOF
10009 rm -f conftest.$ac_objext
10010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10011 (eval $ac_compile) 2>conftest.er1
10012 ac_status=$?
10013 grep -v '^ *+' conftest.er1 >conftest.err
10014 rm -f conftest.er1
10015 cat conftest.err >&5
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); } &&
10018 { ac_try='test -z "$ac_f77_werror_flag"
10019 || test ! -s conftest.err'
10020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021 (eval $ac_try) 2>&5
10022 ac_status=$?
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); }; } &&
10025 { ac_try='test -s conftest.$ac_objext'
10026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027 (eval $ac_try) 2>&5
10028 ac_status=$?
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); }; }; then
10031 ac_compiler_gnu=yes
10032 else
10033 echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.$ac_ext >&5
10035
10036 ac_compiler_gnu=no
10037 fi
10038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10039 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10040
10041 fi
10042 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10043 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10044 ac_ext=$ac_save_ext
10045 ac_test_FFLAGS=${FFLAGS+set}
10046 ac_save_FFLAGS=$FFLAGS
10047 FFLAGS=
10048 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10049 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10050 if test "${ac_cv_prog_f77_g+set}" = set; then
10051 echo $ECHO_N "(cached) $ECHO_C" >&6
10052 else
10053 FFLAGS=-g
10054 cat >conftest.$ac_ext <<_ACEOF
10055 program main
10056
10057 end
10058 _ACEOF
10059 rm -f conftest.$ac_objext
10060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10061 (eval $ac_compile) 2>conftest.er1
10062 ac_status=$?
10063 grep -v '^ *+' conftest.er1 >conftest.err
10064 rm -f conftest.er1
10065 cat conftest.err >&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); } &&
10068 { ac_try='test -z "$ac_f77_werror_flag"
10069 || test ! -s conftest.err'
10070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071 (eval $ac_try) 2>&5
10072 ac_status=$?
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); }; } &&
10075 { ac_try='test -s conftest.$ac_objext'
10076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077 (eval $ac_try) 2>&5
10078 ac_status=$?
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }; }; then
10081 ac_cv_prog_f77_g=yes
10082 else
10083 echo "$as_me: failed program was:" >&5
10084 sed 's/^/| /' conftest.$ac_ext >&5
10085
10086 ac_cv_prog_f77_g=no
10087 fi
10088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10089
10090 fi
10091 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10092 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10093 if test "$ac_test_FFLAGS" = set; then
10094 FFLAGS=$ac_save_FFLAGS
10095 elif test $ac_cv_prog_f77_g = yes; then
10096 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10097 FFLAGS="-g -O2"
10098 else
10099 FFLAGS="-g"
10100 fi
10101 else
10102 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10103 FFLAGS="-O2"
10104 else
10105 FFLAGS=
10106 fi
10107 fi
10108
10109 G77=`test $ac_compiler_gnu = yes && echo yes`
10110 ac_ext=c
10111 ac_cpp='$CPP $CPPFLAGS'
10112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10115
10116
10117
10118 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10119
10120 # find the maximum length of command line arguments
10121 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10122 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10123 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10125 else
10126 i=0
10127 teststring="ABCD"
10128
10129 case $build_os in
10130 msdosdjgpp*)
10131 # On DJGPP, this test can blow up pretty badly due to problems in libc
10132 # (any single argument exceeding 2000 bytes causes a buffer overrun
10133 # during glob expansion). Even if it were fixed, the result of this
10134 # check would be larger than it should be.
10135 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10136 ;;
10137
10138 gnu*)
10139 # Under GNU Hurd, this test is not required because there is
10140 # no limit to the length of command line arguments.
10141 # Libtool will interpret -1 as no limit whatsoever
10142 lt_cv_sys_max_cmd_len=-1;
10143 ;;
10144
10145 cygwin* | mingw*)
10146 # On Win9x/ME, this test blows up -- it succeeds, but takes
10147 # about 5 minutes as the teststring grows exponentially.
10148 # Worse, since 9x/ME are not pre-emptively multitasking,
10149 # you end up with a "frozen" computer, even though with patience
10150 # the test eventually succeeds (with a max line length of 256k).
10151 # Instead, let's just punt: use the minimum linelength reported by
10152 # all of the supported platforms: 8192 (on NT/2K/XP).
10153 lt_cv_sys_max_cmd_len=8192;
10154 ;;
10155
10156 amigaos*)
10157 # On AmigaOS with pdksh, this test takes hours, literally.
10158 # So we just punt and use a minimum line length of 8192.
10159 lt_cv_sys_max_cmd_len=8192;
10160 ;;
10161
10162 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10163 # This has been around since 386BSD, at least. Likely further.
10164 if test -x /sbin/sysctl; then
10165 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10166 elif test -x /usr/sbin/sysctl; then
10167 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10168 else
10169 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10170 fi
10171 # And add a safety zone
10172 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10173 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10174 ;;
10175 osf*)
10176 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10177 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10178 # nice to cause kernel panics so lets avoid the loop below.
10179 # First set a reasonable default.
10180 lt_cv_sys_max_cmd_len=16384
10181 #
10182 if test -x /sbin/sysconfig; then
10183 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10184 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10185 esac
10186 fi
10187 ;;
10188 *)
10189 # If test is not a shell built-in, we'll probably end up computing a
10190 # maximum length that is only half of the actual maximum length, but
10191 # we can't tell.
10192 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10193 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10194 = "XX$teststring") >/dev/null 2>&1 &&
10195 new_result=`expr "X$teststring" : ".*" 2>&1` &&
10196 lt_cv_sys_max_cmd_len=$new_result &&
10197 test $i != 17 # 1/2 MB should be enough
10198 do
10199 i=`expr $i + 1`
10200 teststring=$teststring$teststring
10201 done
10202 teststring=
10203 # Add a significant safety factor because C++ compilers can tack on massive
10204 # amounts of additional arguments before passing them to the linker.
10205 # It appears as though 1/2 is a usable value.
10206 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10207 ;;
10208 esac
10209
10210 fi
10211
10212 if test -n $lt_cv_sys_max_cmd_len ; then
10213 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10214 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10215 else
10216 echo "$as_me:$LINENO: result: none" >&5
10217 echo "${ECHO_T}none" >&6
10218 fi
10219
10220
10221
10222
10223 # Check for command to grab the raw symbol name followed by C symbol from nm.
10224 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10225 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10226 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10227 echo $ECHO_N "(cached) $ECHO_C" >&6
10228 else
10229
10230 # These are sane defaults that work on at least a few old systems.
10231 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10232
10233 # Character class describing NM global symbol codes.
10234 symcode='[BCDEGRST]'
10235
10236 # Regexp to match symbols that can be accessed directly from C.
10237 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10238
10239 # Transform an extracted symbol line into a proper C declaration
10240 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10241
10242 # Transform an extracted symbol line into symbol name and symbol address
10243 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'"
10244
10245 # Define system-specific variables.
10246 case $host_os in
10247 aix*)
10248 symcode='[BCDT]'
10249 ;;
10250 cygwin* | mingw* | pw32*)
10251 symcode='[ABCDGISTW]'
10252 ;;
10253 hpux*) # Its linker distinguishes data from code symbols
10254 if test "$host_cpu" = ia64; then
10255 symcode='[ABCDEGRST]'
10256 fi
10257 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10258 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'"
10259 ;;
10260 linux*)
10261 if test "$host_cpu" = ia64; then
10262 symcode='[ABCDGIRSTW]'
10263 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10264 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'"
10265 fi
10266 ;;
10267 irix* | nonstopux*)
10268 symcode='[BCDEGRST]'
10269 ;;
10270 osf*)
10271 symcode='[BCDEGQRST]'
10272 ;;
10273 solaris* | sysv5*)
10274 symcode='[BDRT]'
10275 ;;
10276 sysv4)
10277 symcode='[DFNSTU]'
10278 ;;
10279 esac
10280
10281 # Handle CRLF in mingw tool chain
10282 opt_cr=
10283 case $build_os in
10284 mingw*)
10285 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10286 ;;
10287 esac
10288
10289 # If we're using GNU nm, then use its standard symbol codes.
10290 case `$NM -V 2>&1` in
10291 *GNU* | *'with BFD'*)
10292 symcode='[ABCDGIRSTW]' ;;
10293 esac
10294
10295 # Try without a prefix undercore, then with it.
10296 for ac_symprfx in "" "_"; do
10297
10298 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10299 symxfrm="\\1 $ac_symprfx\\2 \\2"
10300
10301 # Write the raw and C identifiers.
10302 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10303
10304 # Check to see that the pipe works correctly.
10305 pipe_works=no
10306
10307 rm -f conftest*
10308 cat > conftest.$ac_ext <<EOF
10309 #ifdef __cplusplus
10310 extern "C" {
10311 #endif
10312 char nm_test_var;
10313 void nm_test_func(){}
10314 #ifdef __cplusplus
10315 }
10316 #endif
10317 int main(){nm_test_var='a';nm_test_func();return(0);}
10318 EOF
10319
10320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10321 (eval $ac_compile) 2>&5
10322 ac_status=$?
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; then
10325 # Now try to grab the symbols.
10326 nlist=conftest.nm
10327 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10328 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10329 ac_status=$?
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); } && test -s "$nlist"; then
10332 # Try sorting and uniquifying the output.
10333 if sort "$nlist" | uniq > "$nlist"T; then
10334 mv -f "$nlist"T "$nlist"
10335 else
10336 rm -f "$nlist"T
10337 fi
10338
10339 # Make sure that we snagged all the symbols we need.
10340 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10341 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10342 cat <<EOF > conftest.$ac_ext
10343 #ifdef __cplusplus
10344 extern "C" {
10345 #endif
10346
10347 EOF
10348 # Now generate the symbol file.
10349 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10350
10351 cat <<EOF >> conftest.$ac_ext
10352 #if defined (__STDC__) && __STDC__
10353 # define lt_ptr_t void *
10354 #else
10355 # define lt_ptr_t char *
10356 # define const
10357 #endif
10358
10359 /* The mapping between symbol names and symbols. */
10360 const struct {
10361 const char *name;
10362 lt_ptr_t address;
10363 }
10364 lt_preloaded_symbols[] =
10365 {
10366 EOF
10367 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10368 cat <<\EOF >> conftest.$ac_ext
10369 {0, (lt_ptr_t) 0}
10370 };
10371
10372 #ifdef __cplusplus
10373 }
10374 #endif
10375 EOF
10376 # Now try linking the two files.
10377 mv conftest.$ac_objext conftstm.$ac_objext
10378 lt_save_LIBS="$LIBS"
10379 lt_save_CFLAGS="$CFLAGS"
10380 LIBS="conftstm.$ac_objext"
10381 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10383 (eval $ac_link) 2>&5
10384 ac_status=$?
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10387 pipe_works=yes
10388 fi
10389 LIBS="$lt_save_LIBS"
10390 CFLAGS="$lt_save_CFLAGS"
10391 else
10392 echo "cannot find nm_test_func in $nlist" >&5
10393 fi
10394 else
10395 echo "cannot find nm_test_var in $nlist" >&5
10396 fi
10397 else
10398 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10399 fi
10400 else
10401 echo "$progname: failed program was:" >&5
10402 cat conftest.$ac_ext >&5
10403 fi
10404 rm -f conftest* conftst*
10405
10406 # Do not use the global_symbol_pipe unless it works.
10407 if test "$pipe_works" = yes; then
10408 break
10409 else
10410 lt_cv_sys_global_symbol_pipe=
10411 fi
10412 done
10413
10414 fi
10415
10416 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10417 lt_cv_sys_global_symbol_to_cdecl=
10418 fi
10419 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10420 echo "$as_me:$LINENO: result: failed" >&5
10421 echo "${ECHO_T}failed" >&6
10422 else
10423 echo "$as_me:$LINENO: result: ok" >&5
10424 echo "${ECHO_T}ok" >&6
10425 fi
10426
10427 echo "$as_me:$LINENO: checking for objdir" >&5
10428 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
10429 if test "${lt_cv_objdir+set}" = set; then
10430 echo $ECHO_N "(cached) $ECHO_C" >&6
10431 else
10432 rm -f .libs 2>/dev/null
10433 mkdir .libs 2>/dev/null
10434 if test -d .libs; then
10435 lt_cv_objdir=.libs
10436 else
10437 # MS-DOS does not allow filenames that begin with a dot.
10438 lt_cv_objdir=_libs
10439 fi
10440 rmdir .libs 2>/dev/null
10441 fi
10442 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
10443 echo "${ECHO_T}$lt_cv_objdir" >&6
10444 objdir=$lt_cv_objdir
10445
10446
10447
10448
10449
10450 case $host_os in
10451 aix3*)
10452 # AIX sometimes has problems with the GCC collect2 program. For some
10453 # reason, if we set the COLLECT_NAMES environment variable, the problems
10454 # vanish in a puff of smoke.
10455 if test "X${COLLECT_NAMES+set}" != Xset; then
10456 COLLECT_NAMES=
10457 export COLLECT_NAMES
10458 fi
10459 ;;
10460 esac
10461
10462 # Sed substitution that helps us do robust quoting. It backslashifies
10463 # metacharacters that are still active within double-quoted strings.
10464 Xsed='sed -e 1s/^X//'
10465 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
10466
10467 # Same as above, but do not quote variable references.
10468 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
10469
10470 # Sed substitution to delay expansion of an escaped shell variable in a
10471 # double_quote_subst'ed string.
10472 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10473
10474 # Sed substitution to avoid accidental globbing in evaled expressions
10475 no_glob_subst='s/\*/\\\*/g'
10476
10477 # Constants:
10478 rm="rm -f"
10479
10480 # Global variables:
10481 default_ofile=libtool
10482 can_build_shared=yes
10483
10484 # All known linkers require a `.a' archive for static linking (except MSVC,
10485 # which needs '.lib').
10486 libext=a
10487 ltmain="$ac_aux_dir/ltmain.sh"
10488 ofile="$default_ofile"
10489 with_gnu_ld="$lt_cv_prog_gnu_ld"
10490
10491 if test -n "$ac_tool_prefix"; then
10492 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10493 set dummy ${ac_tool_prefix}ar; ac_word=$2
10494 echo "$as_me:$LINENO: checking for $ac_word" >&5
10495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10496 if test "${ac_cv_prog_AR+set}" = set; then
10497 echo $ECHO_N "(cached) $ECHO_C" >&6
10498 else
10499 if test -n "$AR"; then
10500 ac_cv_prog_AR="$AR" # Let the user override the test.
10501 else
10502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10503 for as_dir in $PATH
10504 do
10505 IFS=$as_save_IFS
10506 test -z "$as_dir" && as_dir=.
10507 for ac_exec_ext in '' $ac_executable_extensions; do
10508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10509 ac_cv_prog_AR="${ac_tool_prefix}ar"
10510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10511 break 2
10512 fi
10513 done
10514 done
10515
10516 fi
10517 fi
10518 AR=$ac_cv_prog_AR
10519 if test -n "$AR"; then
10520 echo "$as_me:$LINENO: result: $AR" >&5
10521 echo "${ECHO_T}$AR" >&6
10522 else
10523 echo "$as_me:$LINENO: result: no" >&5
10524 echo "${ECHO_T}no" >&6
10525 fi
10526
10527 fi
10528 if test -z "$ac_cv_prog_AR"; then
10529 ac_ct_AR=$AR
10530 # Extract the first word of "ar", so it can be a program name with args.
10531 set dummy ar; ac_word=$2
10532 echo "$as_me:$LINENO: checking for $ac_word" >&5
10533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10534 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
10535 echo $ECHO_N "(cached) $ECHO_C" >&6
10536 else
10537 if test -n "$ac_ct_AR"; then
10538 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10539 else
10540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10541 for as_dir in $PATH
10542 do
10543 IFS=$as_save_IFS
10544 test -z "$as_dir" && as_dir=.
10545 for ac_exec_ext in '' $ac_executable_extensions; do
10546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10547 ac_cv_prog_ac_ct_AR="ar"
10548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10549 break 2
10550 fi
10551 done
10552 done
10553
10554 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
10555 fi
10556 fi
10557 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10558 if test -n "$ac_ct_AR"; then
10559 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
10560 echo "${ECHO_T}$ac_ct_AR" >&6
10561 else
10562 echo "$as_me:$LINENO: result: no" >&5
10563 echo "${ECHO_T}no" >&6
10564 fi
10565
10566 AR=$ac_ct_AR
10567 else
10568 AR="$ac_cv_prog_AR"
10569 fi
10570
10571 if test -n "$ac_tool_prefix"; then
10572 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10573 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10574 echo "$as_me:$LINENO: checking for $ac_word" >&5
10575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10576 if test "${ac_cv_prog_RANLIB+set}" = set; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
10578 else
10579 if test -n "$RANLIB"; then
10580 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10581 else
10582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10583 for as_dir in $PATH
10584 do
10585 IFS=$as_save_IFS
10586 test -z "$as_dir" && as_dir=.
10587 for ac_exec_ext in '' $ac_executable_extensions; do
10588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10589 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10591 break 2
10592 fi
10593 done
10594 done
10595
10596 fi
10597 fi
10598 RANLIB=$ac_cv_prog_RANLIB
10599 if test -n "$RANLIB"; then
10600 echo "$as_me:$LINENO: result: $RANLIB" >&5
10601 echo "${ECHO_T}$RANLIB" >&6
10602 else
10603 echo "$as_me:$LINENO: result: no" >&5
10604 echo "${ECHO_T}no" >&6
10605 fi
10606
10607 fi
10608 if test -z "$ac_cv_prog_RANLIB"; then
10609 ac_ct_RANLIB=$RANLIB
10610 # Extract the first word of "ranlib", so it can be a program name with args.
10611 set dummy ranlib; ac_word=$2
10612 echo "$as_me:$LINENO: checking for $ac_word" >&5
10613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10614 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10615 echo $ECHO_N "(cached) $ECHO_C" >&6
10616 else
10617 if test -n "$ac_ct_RANLIB"; then
10618 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10619 else
10620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10621 for as_dir in $PATH
10622 do
10623 IFS=$as_save_IFS
10624 test -z "$as_dir" && as_dir=.
10625 for ac_exec_ext in '' $ac_executable_extensions; do
10626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10627 ac_cv_prog_ac_ct_RANLIB="ranlib"
10628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10629 break 2
10630 fi
10631 done
10632 done
10633
10634 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
10635 fi
10636 fi
10637 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10638 if test -n "$ac_ct_RANLIB"; then
10639 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10640 echo "${ECHO_T}$ac_ct_RANLIB" >&6
10641 else
10642 echo "$as_me:$LINENO: result: no" >&5
10643 echo "${ECHO_T}no" >&6
10644 fi
10645
10646 RANLIB=$ac_ct_RANLIB
10647 else
10648 RANLIB="$ac_cv_prog_RANLIB"
10649 fi
10650
10651 if test -n "$ac_tool_prefix"; then
10652 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10653 set dummy ${ac_tool_prefix}strip; ac_word=$2
10654 echo "$as_me:$LINENO: checking for $ac_word" >&5
10655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10656 if test "${ac_cv_prog_STRIP+set}" = set; then
10657 echo $ECHO_N "(cached) $ECHO_C" >&6
10658 else
10659 if test -n "$STRIP"; then
10660 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10661 else
10662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10663 for as_dir in $PATH
10664 do
10665 IFS=$as_save_IFS
10666 test -z "$as_dir" && as_dir=.
10667 for ac_exec_ext in '' $ac_executable_extensions; do
10668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10669 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10671 break 2
10672 fi
10673 done
10674 done
10675
10676 fi
10677 fi
10678 STRIP=$ac_cv_prog_STRIP
10679 if test -n "$STRIP"; then
10680 echo "$as_me:$LINENO: result: $STRIP" >&5
10681 echo "${ECHO_T}$STRIP" >&6
10682 else
10683 echo "$as_me:$LINENO: result: no" >&5
10684 echo "${ECHO_T}no" >&6
10685 fi
10686
10687 fi
10688 if test -z "$ac_cv_prog_STRIP"; then
10689 ac_ct_STRIP=$STRIP
10690 # Extract the first word of "strip", so it can be a program name with args.
10691 set dummy strip; ac_word=$2
10692 echo "$as_me:$LINENO: checking for $ac_word" >&5
10693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10694 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
10695 echo $ECHO_N "(cached) $ECHO_C" >&6
10696 else
10697 if test -n "$ac_ct_STRIP"; then
10698 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10699 else
10700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10701 for as_dir in $PATH
10702 do
10703 IFS=$as_save_IFS
10704 test -z "$as_dir" && as_dir=.
10705 for ac_exec_ext in '' $ac_executable_extensions; do
10706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10707 ac_cv_prog_ac_ct_STRIP="strip"
10708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10709 break 2
10710 fi
10711 done
10712 done
10713
10714 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
10715 fi
10716 fi
10717 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10718 if test -n "$ac_ct_STRIP"; then
10719 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
10720 echo "${ECHO_T}$ac_ct_STRIP" >&6
10721 else
10722 echo "$as_me:$LINENO: result: no" >&5
10723 echo "${ECHO_T}no" >&6
10724 fi
10725
10726 STRIP=$ac_ct_STRIP
10727 else
10728 STRIP="$ac_cv_prog_STRIP"
10729 fi
10730
10731
10732 old_CC="$CC"
10733 old_CFLAGS="$CFLAGS"
10734
10735 # Set sane defaults for various variables
10736 test -z "$AR" && AR=ar
10737 test -z "$AR_FLAGS" && AR_FLAGS=cru
10738 test -z "$AS" && AS=as
10739 test -z "$CC" && CC=cc
10740 test -z "$LTCC" && LTCC=$CC
10741 test -z "$DLLTOOL" && DLLTOOL=dlltool
10742 test -z "$LD" && LD=ld
10743 test -z "$LN_S" && LN_S="ln -s"
10744 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10745 test -z "$NM" && NM=nm
10746 test -z "$SED" && SED=sed
10747 test -z "$OBJDUMP" && OBJDUMP=objdump
10748 test -z "$RANLIB" && RANLIB=:
10749 test -z "$STRIP" && STRIP=:
10750 test -z "$ac_objext" && ac_objext=o
10751
10752 # Determine commands to create old-style static archives.
10753 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
10754 old_postinstall_cmds='chmod 644 $oldlib'
10755 old_postuninstall_cmds=
10756
10757 if test -n "$RANLIB"; then
10758 case $host_os in
10759 openbsd*)
10760 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
10761 ;;
10762 *)
10763 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
10764 ;;
10765 esac
10766 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10767 fi
10768
10769 for cc_temp in $compiler""; do
10770 case $cc_temp in
10771 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10772 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10773 \-*) ;;
10774 *) break;;
10775 esac
10776 done
10777 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10778
10779
10780 # Only perform the check for file, if the check method requires it
10781 case $deplibs_check_method in
10782 file_magic*)
10783 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10784 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
10785 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
10786 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10788 else
10789 case $MAGIC_CMD in
10790 [\\/*] | ?:[\\/]*)
10791 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10792 ;;
10793 *)
10794 lt_save_MAGIC_CMD="$MAGIC_CMD"
10795 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10796 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10797 for ac_dir in $ac_dummy; do
10798 IFS="$lt_save_ifs"
10799 test -z "$ac_dir" && ac_dir=.
10800 if test -f $ac_dir/${ac_tool_prefix}file; then
10801 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10802 if test -n "$file_magic_test_file"; then
10803 case $deplibs_check_method in
10804 "file_magic "*)
10805 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10806 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10807 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10808 $EGREP "$file_magic_regex" > /dev/null; then
10809 :
10810 else
10811 cat <<EOF 1>&2
10812
10813 *** Warning: the command libtool uses to detect shared libraries,
10814 *** $file_magic_cmd, produces output that libtool cannot recognize.
10815 *** The result is that libtool may fail to recognize shared libraries
10816 *** as such. This will affect the creation of libtool libraries that
10817 *** depend on shared libraries, but programs linked with such libtool
10818 *** libraries will work regardless of this problem. Nevertheless, you
10819 *** may want to report the problem to your system manager and/or to
10820 *** [email protected]
10821
10822 EOF
10823 fi ;;
10824 esac
10825 fi
10826 break
10827 fi
10828 done
10829 IFS="$lt_save_ifs"
10830 MAGIC_CMD="$lt_save_MAGIC_CMD"
10831 ;;
10832 esac
10833 fi
10834
10835 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10836 if test -n "$MAGIC_CMD"; then
10837 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10838 echo "${ECHO_T}$MAGIC_CMD" >&6
10839 else
10840 echo "$as_me:$LINENO: result: no" >&5
10841 echo "${ECHO_T}no" >&6
10842 fi
10843
10844 if test -z "$lt_cv_path_MAGIC_CMD"; then
10845 if test -n "$ac_tool_prefix"; then
10846 echo "$as_me:$LINENO: checking for file" >&5
10847 echo $ECHO_N "checking for file... $ECHO_C" >&6
10848 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10849 echo $ECHO_N "(cached) $ECHO_C" >&6
10850 else
10851 case $MAGIC_CMD in
10852 [\\/*] | ?:[\\/]*)
10853 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10854 ;;
10855 *)
10856 lt_save_MAGIC_CMD="$MAGIC_CMD"
10857 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10858 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10859 for ac_dir in $ac_dummy; do
10860 IFS="$lt_save_ifs"
10861 test -z "$ac_dir" && ac_dir=.
10862 if test -f $ac_dir/file; then
10863 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10864 if test -n "$file_magic_test_file"; then
10865 case $deplibs_check_method in
10866 "file_magic "*)
10867 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10868 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10869 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10870 $EGREP "$file_magic_regex" > /dev/null; then
10871 :
10872 else
10873 cat <<EOF 1>&2
10874
10875 *** Warning: the command libtool uses to detect shared libraries,
10876 *** $file_magic_cmd, produces output that libtool cannot recognize.
10877 *** The result is that libtool may fail to recognize shared libraries
10878 *** as such. This will affect the creation of libtool libraries that
10879 *** depend on shared libraries, but programs linked with such libtool
10880 *** libraries will work regardless of this problem. Nevertheless, you
10881 *** may want to report the problem to your system manager and/or to
10882 *** [email protected]
10883
10884 EOF
10885 fi ;;
10886 esac
10887 fi
10888 break
10889 fi
10890 done
10891 IFS="$lt_save_ifs"
10892 MAGIC_CMD="$lt_save_MAGIC_CMD"
10893 ;;
10894 esac
10895 fi
10896
10897 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10898 if test -n "$MAGIC_CMD"; then
10899 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10900 echo "${ECHO_T}$MAGIC_CMD" >&6
10901 else
10902 echo "$as_me:$LINENO: result: no" >&5
10903 echo "${ECHO_T}no" >&6
10904 fi
10905
10906 else
10907 MAGIC_CMD=:
10908 fi
10909 fi
10910
10911 fi
10912 ;;
10913 esac
10914
10915 enable_dlopen=no
10916 enable_win32_dll=no
10917
10918 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10919 if test "${enable_libtool_lock+set}" = set; then
10920 enableval="$enable_libtool_lock"
10921
10922 fi;
10923 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10924
10925
10926 # Check whether --with-pic or --without-pic was given.
10927 if test "${with_pic+set}" = set; then
10928 withval="$with_pic"
10929 pic_mode="$withval"
10930 else
10931 pic_mode=default
10932 fi;
10933 test -z "$pic_mode" && pic_mode=default
10934
10935 # Use C for the default configuration in the libtool script
10936 tagname=
10937 lt_save_CC="$CC"
10938 ac_ext=c
10939 ac_cpp='$CPP $CPPFLAGS'
10940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10943
10944
10945 # Source file extension for C test sources.
10946 ac_ext=c
10947
10948 # Object file extension for compiled C test sources.
10949 objext=o
10950 objext=$objext
10951
10952 # Code to be used in simple compile tests
10953 lt_simple_compile_test_code="int some_variable = 0;\n"
10954
10955 # Code to be used in simple link tests
10956 lt_simple_link_test_code='int main(){return(0);}\n'
10957
10958
10959 # If no C compiler was specified, use CC.
10960 LTCC=${LTCC-"$CC"}
10961
10962 # Allow CC to be a program name with arguments.
10963 compiler=$CC
10964
10965
10966 # save warnings/boilerplate of simple test code
10967 ac_outfile=conftest.$ac_objext
10968 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10969 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10970 _lt_compiler_boilerplate=`cat conftest.err`
10971 $rm conftest*
10972
10973 ac_outfile=conftest.$ac_objext
10974 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10975 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10976 _lt_linker_boilerplate=`cat conftest.err`
10977 $rm conftest*
10978
10979
10980 #
10981 # Check for any special shared library compilation flags.
10982 #
10983 lt_prog_cc_shlib=
10984 if test "$GCC" = no; then
10985 case $host_os in
10986 sco3.2v5*)
10987 lt_prog_cc_shlib='-belf'
10988 ;;
10989 esac
10990 fi
10991 if test -n "$lt_prog_cc_shlib"; then
10992 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
10993 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
10994 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
10995 else
10996 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
10997 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
10998 lt_cv_prog_cc_can_build_shared=no
10999 fi
11000 fi
11001
11002
11003 #
11004 # Check to make sure the static flag actually works.
11005 #
11006 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11007 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11008 if test "${lt_prog_compiler_static_works+set}" = set; then
11009 echo $ECHO_N "(cached) $ECHO_C" >&6
11010 else
11011 lt_prog_compiler_static_works=no
11012 save_LDFLAGS="$LDFLAGS"
11013 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11014 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11015 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11016 # The linker can only warn and ignore the option if not recognized
11017 # So say no if there are warnings
11018 if test -s conftest.err; then
11019 # Append any errors to the config.log.
11020 cat conftest.err 1>&5
11021 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
11022 $SED '/^$/d' conftest.err >conftest.er2
11023 if diff conftest.exp conftest.er2 >/dev/null; then
11024 lt_prog_compiler_static_works=yes
11025 fi
11026 else
11027 lt_prog_compiler_static_works=yes
11028 fi
11029 fi
11030 $rm conftest*
11031 LDFLAGS="$save_LDFLAGS"
11032
11033 fi
11034 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11035 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11036
11037 if test x"$lt_prog_compiler_static_works" = xyes; then
11038 :
11039 else
11040 lt_prog_compiler_static=
11041 fi
11042
11043
11044
11045
11046 lt_prog_compiler_no_builtin_flag=
11047
11048 if test "$GCC" = yes; then
11049 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11050
11051
11052 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11053 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11054 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11055 echo $ECHO_N "(cached) $ECHO_C" >&6
11056 else
11057 lt_cv_prog_compiler_rtti_exceptions=no
11058 ac_outfile=conftest.$ac_objext
11059 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11060 lt_compiler_flag="-fno-rtti -fno-exceptions"
11061 # Insert the option either (1) after the last *FLAGS variable, or
11062 # (2) before a word containing "conftest.", or (3) at the end.
11063 # Note that $ac_compile itself does not contain backslashes and begins
11064 # with a dollar sign (not a hyphen), so the echo should work correctly.
11065 # The option is referenced via a variable to avoid confusing sed.
11066 lt_compile=`echo "$ac_compile" | $SED \
11067 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11069 -e 's:$: $lt_compiler_flag:'`
11070 (eval echo "\"\$as_me:11070: $lt_compile\"" >&5)
11071 (eval "$lt_compile" 2>conftest.err)
11072 ac_status=$?
11073 cat conftest.err >&5
11074 echo "$as_me:11074: \$? = $ac_status" >&5
11075 if (exit $ac_status) && test -s "$ac_outfile"; then
11076 # The compiler can only warn and ignore the option if not recognized
11077 # So say no if there are warnings other than the usual output.
11078 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11079 $SED '/^$/d' conftest.err >conftest.er2
11080 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11081 lt_cv_prog_compiler_rtti_exceptions=yes
11082 fi
11083 fi
11084 $rm conftest*
11085
11086 fi
11087 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11088 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11089
11090 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11091 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11092 else
11093 :
11094 fi
11095
11096 fi
11097
11098 lt_prog_compiler_wl=
11099 lt_prog_compiler_pic=
11100 lt_prog_compiler_static=
11101
11102 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11103 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11104
11105 if test "$GCC" = yes; then
11106 lt_prog_compiler_wl='-Wl,'
11107 lt_prog_compiler_static='-static'
11108
11109 case $host_os in
11110 aix*)
11111 # All AIX code is PIC.
11112 if test "$host_cpu" = ia64; then
11113 # AIX 5 now supports IA64 processor
11114 lt_prog_compiler_static='-Bstatic'
11115 fi
11116 ;;
11117
11118 amigaos*)
11119 # FIXME: we need at least 68020 code to build shared libraries, but
11120 # adding the `-m68020' flag to GCC prevents building anything better,
11121 # like `-m68040'.
11122 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11123 ;;
11124
11125 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11126 # PIC is the default for these OSes.
11127 ;;
11128
11129 mingw* | pw32* | os2*)
11130 # This hack is so that the source file can tell whether it is being
11131 # built for inclusion in a dll (and should export symbols for example).
11132 lt_prog_compiler_pic='-DDLL_EXPORT'
11133 ;;
11134
11135 darwin* | rhapsody*)
11136 # PIC is the default on this platform
11137 # Common symbols not allowed in MH_DYLIB files
11138 lt_prog_compiler_pic='-fno-common'
11139 ;;
11140
11141 msdosdjgpp*)
11142 # Just because we use GCC doesn't mean we suddenly get shared libraries
11143 # on systems that don't support them.
11144 lt_prog_compiler_can_build_shared=no
11145 enable_shared=no
11146 ;;
11147
11148 sysv4*MP*)
11149 if test -d /usr/nec; then
11150 lt_prog_compiler_pic=-Kconform_pic
11151 fi
11152 ;;
11153
11154 hpux*)
11155 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11156 # not for PA HP-UX.
11157 case $host_cpu in
11158 hppa*64*|ia64*)
11159 # +Z the default
11160 ;;
11161 *)
11162 lt_prog_compiler_pic='-fPIC'
11163 ;;
11164 esac
11165 ;;
11166
11167 *)
11168 lt_prog_compiler_pic='-fPIC'
11169 ;;
11170 esac
11171 else
11172 # PORTME Check for flag to pass linker flags through the system compiler.
11173 case $host_os in
11174 aix*)
11175 lt_prog_compiler_wl='-Wl,'
11176 if test "$host_cpu" = ia64; then
11177 # AIX 5 now supports IA64 processor
11178 lt_prog_compiler_static='-Bstatic'
11179 else
11180 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11181 fi
11182 ;;
11183 darwin*)
11184 # PIC is the default on this platform
11185 # Common symbols not allowed in MH_DYLIB files
11186 case $cc_basename in
11187 xlc*)
11188 lt_prog_compiler_pic='-qnocommon'
11189 lt_prog_compiler_wl='-Wl,'
11190 ;;
11191 esac
11192 ;;
11193
11194 mingw* | pw32* | os2*)
11195 # This hack is so that the source file can tell whether it is being
11196 # built for inclusion in a dll (and should export symbols for example).
11197 lt_prog_compiler_pic='-DDLL_EXPORT'
11198 ;;
11199
11200 hpux9* | hpux10* | hpux11*)
11201 lt_prog_compiler_wl='-Wl,'
11202 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11203 # not for PA HP-UX.
11204 case $host_cpu in
11205 hppa*64*|ia64*)
11206 # +Z the default
11207 ;;
11208 *)
11209 lt_prog_compiler_pic='+Z'
11210 ;;
11211 esac
11212 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11213 lt_prog_compiler_static='${wl}-a ${wl}archive'
11214 ;;
11215
11216 irix5* | irix6* | nonstopux*)
11217 lt_prog_compiler_wl='-Wl,'
11218 # PIC (with -KPIC) is the default.
11219 lt_prog_compiler_static='-non_shared'
11220 ;;
11221
11222 newsos6)
11223 lt_prog_compiler_pic='-KPIC'
11224 lt_prog_compiler_static='-Bstatic'
11225 ;;
11226
11227 linux*)
11228 case $cc_basename in
11229 icc* | ecc*)
11230 lt_prog_compiler_wl='-Wl,'
11231 lt_prog_compiler_pic='-KPIC'
11232 lt_prog_compiler_static='-static'
11233 ;;
11234 pgcc* | pgf77* | pgf90* | pgf95*)
11235 # Portland Group compilers (*not* the Pentium gcc compiler,
11236 # which looks to be a dead project)
11237 lt_prog_compiler_wl='-Wl,'
11238 lt_prog_compiler_pic='-fpic'
11239 lt_prog_compiler_static='-Bstatic'
11240 ;;
11241 ccc*)
11242 lt_prog_compiler_wl='-Wl,'
11243 # All Alpha code is PIC.
11244 lt_prog_compiler_static='-non_shared'
11245 ;;
11246 esac
11247 ;;
11248
11249 osf3* | osf4* | osf5*)
11250 lt_prog_compiler_wl='-Wl,'
11251 # All OSF/1 code is PIC.
11252 lt_prog_compiler_static='-non_shared'
11253 ;;
11254
11255 sco3.2v5*)
11256 lt_prog_compiler_pic='-Kpic'
11257 lt_prog_compiler_static='-dn'
11258 ;;
11259
11260 solaris*)
11261 lt_prog_compiler_pic='-KPIC'
11262 lt_prog_compiler_static='-Bstatic'
11263 case $cc_basename in
11264 f77* | f90* | f95*)
11265 lt_prog_compiler_wl='-Qoption ld ';;
11266 *)
11267 lt_prog_compiler_wl='-Wl,';;
11268 esac
11269 ;;
11270
11271 sunos4*)
11272 lt_prog_compiler_wl='-Qoption ld '
11273 lt_prog_compiler_pic='-PIC'
11274 lt_prog_compiler_static='-Bstatic'
11275 ;;
11276
11277 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11278 lt_prog_compiler_wl='-Wl,'
11279 lt_prog_compiler_pic='-KPIC'
11280 lt_prog_compiler_static='-Bstatic'
11281 ;;
11282
11283 sysv4*MP*)
11284 if test -d /usr/nec ;then
11285 lt_prog_compiler_pic='-Kconform_pic'
11286 lt_prog_compiler_static='-Bstatic'
11287 fi
11288 ;;
11289
11290 unicos*)
11291 lt_prog_compiler_wl='-Wl,'
11292 lt_prog_compiler_can_build_shared=no
11293 ;;
11294
11295 uts4*)
11296 lt_prog_compiler_pic='-pic'
11297 lt_prog_compiler_static='-Bstatic'
11298 ;;
11299
11300 *)
11301 lt_prog_compiler_can_build_shared=no
11302 ;;
11303 esac
11304 fi
11305
11306 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11307 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11308
11309 #
11310 # Check to make sure the PIC flag actually works.
11311 #
11312 if test -n "$lt_prog_compiler_pic"; then
11313
11314 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11315 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11316 if test "${lt_prog_compiler_pic_works+set}" = set; then
11317 echo $ECHO_N "(cached) $ECHO_C" >&6
11318 else
11319 lt_prog_compiler_pic_works=no
11320 ac_outfile=conftest.$ac_objext
11321 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11322 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11323 # Insert the option either (1) after the last *FLAGS variable, or
11324 # (2) before a word containing "conftest.", or (3) at the end.
11325 # Note that $ac_compile itself does not contain backslashes and begins
11326 # with a dollar sign (not a hyphen), so the echo should work correctly.
11327 # The option is referenced via a variable to avoid confusing sed.
11328 lt_compile=`echo "$ac_compile" | $SED \
11329 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11330 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11331 -e 's:$: $lt_compiler_flag:'`
11332 (eval echo "\"\$as_me:11332: $lt_compile\"" >&5)
11333 (eval "$lt_compile" 2>conftest.err)
11334 ac_status=$?
11335 cat conftest.err >&5
11336 echo "$as_me:11336: \$? = $ac_status" >&5
11337 if (exit $ac_status) && test -s "$ac_outfile"; then
11338 # The compiler can only warn and ignore the option if not recognized
11339 # So say no if there are warnings other than the usual output.
11340 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11341 $SED '/^$/d' conftest.err >conftest.er2
11342 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11343 lt_prog_compiler_pic_works=yes
11344 fi
11345 fi
11346 $rm conftest*
11347
11348 fi
11349 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
11350 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
11351
11352 if test x"$lt_prog_compiler_pic_works" = xyes; then
11353 case $lt_prog_compiler_pic in
11354 "" | " "*) ;;
11355 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11356 esac
11357 else
11358 lt_prog_compiler_pic=
11359 lt_prog_compiler_can_build_shared=no
11360 fi
11361
11362 fi
11363 case $host_os in
11364 # For platforms which do not support PIC, -DPIC is meaningless:
11365 *djgpp*)
11366 lt_prog_compiler_pic=
11367 ;;
11368 *)
11369 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11370 ;;
11371 esac
11372
11373 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11374 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11375 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11377 else
11378 lt_cv_prog_compiler_c_o=no
11379 $rm -r conftest 2>/dev/null
11380 mkdir conftest
11381 cd conftest
11382 mkdir out
11383 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11384
11385 lt_compiler_flag="-o out/conftest2.$ac_objext"
11386 # Insert the option either (1) after the last *FLAGS variable, or
11387 # (2) before a word containing "conftest.", or (3) at the end.
11388 # Note that $ac_compile itself does not contain backslashes and begins
11389 # with a dollar sign (not a hyphen), so the echo should work correctly.
11390 lt_compile=`echo "$ac_compile" | $SED \
11391 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11393 -e 's:$: $lt_compiler_flag:'`
11394 (eval echo "\"\$as_me:11394: $lt_compile\"" >&5)
11395 (eval "$lt_compile" 2>out/conftest.err)
11396 ac_status=$?
11397 cat out/conftest.err >&5
11398 echo "$as_me:11398: \$? = $ac_status" >&5
11399 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11400 then
11401 # The compiler can only warn and ignore the option if not recognized
11402 # So say no if there are warnings
11403 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11404 $SED '/^$/d' out/conftest.err >out/conftest.er2
11405 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11406 lt_cv_prog_compiler_c_o=yes
11407 fi
11408 fi
11409 chmod u+w . 2>&5
11410 $rm conftest*
11411 # SGI C++ compiler will create directory out/ii_files/ for
11412 # template instantiation
11413 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11414 $rm out/* && rmdir out
11415 cd ..
11416 rmdir conftest
11417 $rm conftest*
11418
11419 fi
11420 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11421 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
11422
11423
11424 hard_links="nottested"
11425 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11426 # do not overwrite the value of need_locks provided by the user
11427 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11428 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11429 hard_links=yes
11430 $rm conftest*
11431 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11432 touch conftest.a
11433 ln conftest.a conftest.b 2>&5 || hard_links=no
11434 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11435 echo "$as_me:$LINENO: result: $hard_links" >&5
11436 echo "${ECHO_T}$hard_links" >&6
11437 if test "$hard_links" = no; then
11438 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11439 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11440 need_locks=warn
11441 fi
11442 else
11443 need_locks=no
11444 fi
11445
11446 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11447 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11448
11449 runpath_var=
11450 allow_undefined_flag=
11451 enable_shared_with_static_runtimes=no
11452 archive_cmds=
11453 archive_expsym_cmds=
11454 old_archive_From_new_cmds=
11455 old_archive_from_expsyms_cmds=
11456 export_dynamic_flag_spec=
11457 whole_archive_flag_spec=
11458 thread_safe_flag_spec=
11459 hardcode_libdir_flag_spec=
11460 hardcode_libdir_flag_spec_ld=
11461 hardcode_libdir_separator=
11462 hardcode_direct=no
11463 hardcode_minus_L=no
11464 hardcode_shlibpath_var=unsupported
11465 link_all_deplibs=unknown
11466 hardcode_automatic=no
11467 module_cmds=
11468 module_expsym_cmds=
11469 always_export_symbols=no
11470 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11471 # include_expsyms should be a list of space-separated symbols to be *always*
11472 # included in the symbol list
11473 include_expsyms=
11474 # exclude_expsyms can be an extended regexp of symbols to exclude
11475 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11476 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11477 # as well as any symbol that contains `d'.
11478 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
11479 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11480 # platforms (ab)use it in PIC code, but their linkers get confused if
11481 # the symbol is explicitly referenced. Since portable code cannot
11482 # rely on this symbol name, it's probably fine to never include it in
11483 # preloaded symbol tables.
11484 extract_expsyms_cmds=
11485 # Just being paranoid about ensuring that cc_basename is set.
11486 for cc_temp in $compiler""; do
11487 case $cc_temp in
11488 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11489 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11490 \-*) ;;
11491 *) break;;
11492 esac
11493 done
11494 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11495
11496 case $host_os in
11497 cygwin* | mingw* | pw32*)
11498 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11499 # When not using gcc, we currently assume that we are using
11500 # Microsoft Visual C++.
11501 if test "$GCC" != yes; then
11502 with_gnu_ld=no
11503 fi
11504 ;;
11505 openbsd*)
11506 with_gnu_ld=no
11507 ;;
11508 esac
11509
11510 ld_shlibs=yes
11511 if test "$with_gnu_ld" = yes; then
11512 # If archive_cmds runs LD, not CC, wlarc should be empty
11513 wlarc='${wl}'
11514
11515 # Set some defaults for GNU ld with shared library support. These
11516 # are reset later if shared libraries are not supported. Putting them
11517 # here allows them to be overridden if necessary.
11518 runpath_var=LD_RUN_PATH
11519 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
11520 export_dynamic_flag_spec='${wl}--export-dynamic'
11521 # ancient GNU ld didn't support --whole-archive et. al.
11522 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
11523 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11524 else
11525 whole_archive_flag_spec=
11526 fi
11527 supports_anon_versioning=no
11528 case `$LD -v 2>/dev/null` in
11529 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11530 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11531 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11532 *\ 2.11.*) ;; # other 2.11 versions
11533 *) supports_anon_versioning=yes ;;
11534 esac
11535
11536 # See if GNU ld supports shared libraries.
11537 case $host_os in
11538 aix3* | aix4* | aix5*)
11539 # On AIX/PPC, the GNU linker is very broken
11540 if test "$host_cpu" != ia64; then
11541 ld_shlibs=no
11542 cat <<EOF 1>&2
11543
11544 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11545 *** to be unable to reliably create shared libraries on AIX.
11546 *** Therefore, libtool is disabling shared libraries support. If you
11547 *** really care for shared libraries, you may want to modify your PATH
11548 *** so that a non-GNU linker is found, and then restart.
11549
11550 EOF
11551 fi
11552 ;;
11553
11554 amigaos*)
11555 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)'
11556 hardcode_libdir_flag_spec='-L$libdir'
11557 hardcode_minus_L=yes
11558
11559 # Samuel A. Falvo II <[email protected]> reports
11560 # that the semantics of dynamic libraries on AmigaOS, at least up
11561 # to version 4, is to share data among multiple programs linked
11562 # with the same dynamic library. Since this doesn't match the
11563 # behavior of shared libraries on other platforms, we can't use
11564 # them.
11565 ld_shlibs=no
11566 ;;
11567
11568 beos*)
11569 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11570 allow_undefined_flag=unsupported
11571 # Joseph Beckenbach <[email protected]> says some releases of gcc
11572 # support --undefined. This deserves some investigation. FIXME
11573 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11574 else
11575 ld_shlibs=no
11576 fi
11577 ;;
11578
11579 cygwin* | mingw* | pw32*)
11580 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11581 # as there is no search path for DLLs.
11582 hardcode_libdir_flag_spec='-L$libdir'
11583 allow_undefined_flag=unsupported
11584 always_export_symbols=no
11585 enable_shared_with_static_runtimes=yes
11586 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11587
11588 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11589 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11590 # If the export-symbols file already is a .def file (1st line
11591 # is EXPORTS), use it as is; otherwise, prepend...
11592 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11593 cp $export_symbols $output_objdir/$soname.def;
11594 else
11595 echo EXPORTS > $output_objdir/$soname.def;
11596 cat $export_symbols >> $output_objdir/$soname.def;
11597 fi~
11598 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11599 else
11600 ld_shlibs=no
11601 fi
11602 ;;
11603
11604 linux*)
11605 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11606 tmp_addflag=
11607 case $cc_basename,$host_cpu in
11608 pgcc*) # Portland Group C compiler
11609 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'
11610 tmp_addflag=' $pic_flag'
11611 ;;
11612 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
11613 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'
11614 tmp_addflag=' $pic_flag -Mnomain' ;;
11615 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11616 tmp_addflag=' -i_dynamic' ;;
11617 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11618 tmp_addflag=' -i_dynamic -nofor_main' ;;
11619 ifc* | ifort*) # Intel Fortran compiler
11620 tmp_addflag=' -nofor_main' ;;
11621 esac
11622 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11623
11624 if test $supports_anon_versioning = yes; then
11625 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
11626 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11627 $echo "local: *; };" >> $output_objdir/$libname.ver~
11628 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11629 fi
11630 else
11631 ld_shlibs=no
11632 fi
11633 ;;
11634
11635 netbsd*)
11636 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11637 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11638 wlarc=
11639 else
11640 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11641 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11642 fi
11643 ;;
11644
11645 solaris* | sysv5*)
11646 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
11647 ld_shlibs=no
11648 cat <<EOF 1>&2
11649
11650 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11651 *** create shared libraries on Solaris systems. Therefore, libtool
11652 *** is disabling shared libraries support. We urge you to upgrade GNU
11653 *** binutils to release 2.9.1 or newer. Another option is to modify
11654 *** your PATH or compiler configuration so that the native linker is
11655 *** used, and then restart.
11656
11657 EOF
11658 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11660 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11661 else
11662 ld_shlibs=no
11663 fi
11664 ;;
11665
11666 sunos4*)
11667 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11668 wlarc=
11669 hardcode_direct=yes
11670 hardcode_shlibpath_var=no
11671 ;;
11672
11673 *)
11674 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11676 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11677 else
11678 ld_shlibs=no
11679 fi
11680 ;;
11681 esac
11682
11683 if test "$ld_shlibs" = no; then
11684 runpath_var=
11685 hardcode_libdir_flag_spec=
11686 export_dynamic_flag_spec=
11687 whole_archive_flag_spec=
11688 fi
11689 else
11690 # PORTME fill in a description of your system's linker (not GNU ld)
11691 case $host_os in
11692 aix3*)
11693 allow_undefined_flag=unsupported
11694 always_export_symbols=yes
11695 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'
11696 # Note: this linker hardcodes the directories in LIBPATH if there
11697 # are no directories specified by -L.
11698 hardcode_minus_L=yes
11699 if test "$GCC" = yes && test -z "$link_static_flag"; then
11700 # Neither direct hardcoding nor static linking is supported with a
11701 # broken collect2.
11702 hardcode_direct=unsupported
11703 fi
11704 ;;
11705
11706 aix4* | aix5*)
11707 if test "$host_cpu" = ia64; then
11708 # On IA64, the linker does run time linking by default, so we don't
11709 # have to do anything special.
11710 aix_use_runtimelinking=no
11711 exp_sym_flag='-Bexport'
11712 no_entry_flag=""
11713 else
11714 # If we're using GNU nm, then we don't want the "-C" option.
11715 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11716 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11717 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'
11718 else
11719 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'
11720 fi
11721 aix_use_runtimelinking=no
11722
11723 # Test if we are trying to use run time linking or normal
11724 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11725 # need to do runtime linking.
11726 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11727 for ld_flag in $LDFLAGS; do
11728 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11729 aix_use_runtimelinking=yes
11730 break
11731 fi
11732 done
11733 esac
11734
11735 exp_sym_flag='-bexport'
11736 no_entry_flag='-bnoentry'
11737 fi
11738
11739 # When large executables or shared objects are built, AIX ld can
11740 # have problems creating the table of contents. If linking a library
11741 # or program results in "error TOC overflow" add -mminimal-toc to
11742 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11743 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11744
11745 archive_cmds=''
11746 hardcode_direct=yes
11747 hardcode_libdir_separator=':'
11748 link_all_deplibs=yes
11749
11750 if test "$GCC" = yes; then
11751 case $host_os in aix4.[012]|aix4.[012].*)
11752 # We only want to do this on AIX 4.2 and lower, the check
11753 # below for broken collect2 doesn't work under 4.3+
11754 collect2name=`${CC} -print-prog-name=collect2`
11755 if test -f "$collect2name" && \
11756 strings "$collect2name" | grep resolve_lib_name >/dev/null
11757 then
11758 # We have reworked collect2
11759 hardcode_direct=yes
11760 else
11761 # We have old collect2
11762 hardcode_direct=unsupported
11763 # It fails to find uninstalled libraries when the uninstalled
11764 # path is not listed in the libpath. Setting hardcode_minus_L
11765 # to unsupported forces relinking
11766 hardcode_minus_L=yes
11767 hardcode_libdir_flag_spec='-L$libdir'
11768 hardcode_libdir_separator=
11769 fi
11770 esac
11771 shared_flag='-shared'
11772 if test "$aix_use_runtimelinking" = yes; then
11773 shared_flag="$shared_flag "'${wl}-G'
11774 fi
11775 else
11776 # not using gcc
11777 if test "$host_cpu" = ia64; then
11778 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11779 # chokes on -Wl,-G. The following line is correct:
11780 shared_flag='-G'
11781 else
11782 if test "$aix_use_runtimelinking" = yes; then
11783 shared_flag='${wl}-G'
11784 else
11785 shared_flag='${wl}-bM:SRE'
11786 fi
11787 fi
11788 fi
11789
11790 # It seems that -bexpall does not export symbols beginning with
11791 # underscore (_), so it is better to generate a list of symbols to export.
11792 always_export_symbols=yes
11793 if test "$aix_use_runtimelinking" = yes; then
11794 # Warning - without using the other runtime loading flags (-brtl),
11795 # -berok will link without error, but may produce a broken library.
11796 allow_undefined_flag='-berok'
11797 # Determine the default libpath from the value encoded in an empty executable.
11798 cat >conftest.$ac_ext <<_ACEOF
11799 /* confdefs.h. */
11800 _ACEOF
11801 cat confdefs.h >>conftest.$ac_ext
11802 cat >>conftest.$ac_ext <<_ACEOF
11803 /* end confdefs.h. */
11804
11805 int
11806 main ()
11807 {
11808
11809 ;
11810 return 0;
11811 }
11812 _ACEOF
11813 rm -f conftest.$ac_objext conftest$ac_exeext
11814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11815 (eval $ac_link) 2>conftest.er1
11816 ac_status=$?
11817 grep -v '^ *+' conftest.er1 >conftest.err
11818 rm -f conftest.er1
11819 cat conftest.err >&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); } &&
11822 { ac_try='test -z "$ac_c_werror_flag"
11823 || test ! -s conftest.err'
11824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825 (eval $ac_try) 2>&5
11826 ac_status=$?
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); }; } &&
11829 { ac_try='test -s conftest$ac_exeext'
11830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11831 (eval $ac_try) 2>&5
11832 ac_status=$?
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; }; then
11835
11836 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11837 }'`
11838 # Check for a 64-bit object if we didn't find anything.
11839 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; }
11840 }'`; fi
11841 else
11842 echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11844
11845 fi
11846 rm -f conftest.err conftest.$ac_objext \
11847 conftest$ac_exeext conftest.$ac_ext
11848 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11849
11850 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11851 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11852 else
11853 if test "$host_cpu" = ia64; then
11854 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11855 allow_undefined_flag="-z nodefs"
11856 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11857 else
11858 # Determine the default libpath from the value encoded in an empty executable.
11859 cat >conftest.$ac_ext <<_ACEOF
11860 /* confdefs.h. */
11861 _ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11865
11866 int
11867 main ()
11868 {
11869
11870 ;
11871 return 0;
11872 }
11873 _ACEOF
11874 rm -f conftest.$ac_objext conftest$ac_exeext
11875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11876 (eval $ac_link) 2>conftest.er1
11877 ac_status=$?
11878 grep -v '^ *+' conftest.er1 >conftest.err
11879 rm -f conftest.er1
11880 cat conftest.err >&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); } &&
11883 { ac_try='test -z "$ac_c_werror_flag"
11884 || test ! -s conftest.err'
11885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11886 (eval $ac_try) 2>&5
11887 ac_status=$?
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); }; } &&
11890 { ac_try='test -s conftest$ac_exeext'
11891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11892 (eval $ac_try) 2>&5
11893 ac_status=$?
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); }; }; then
11896
11897 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11898 }'`
11899 # Check for a 64-bit object if we didn't find anything.
11900 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; }
11901 }'`; fi
11902 else
11903 echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11905
11906 fi
11907 rm -f conftest.err conftest.$ac_objext \
11908 conftest$ac_exeext conftest.$ac_ext
11909 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11910
11911 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11912 # Warning - without using the other run time loading flags,
11913 # -berok will link without error, but may produce a broken library.
11914 no_undefined_flag=' ${wl}-bernotok'
11915 allow_undefined_flag=' ${wl}-berok'
11916 # -bexpall does not export symbols beginning with underscore (_)
11917 always_export_symbols=yes
11918 # Exported symbols can be pulled into shared objects from archives
11919 whole_archive_flag_spec=' '
11920 archive_cmds_need_lc=yes
11921 # This is similar to how AIX traditionally builds its shared libraries.
11922 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11923 fi
11924 fi
11925 ;;
11926
11927 amigaos*)
11928 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)'
11929 hardcode_libdir_flag_spec='-L$libdir'
11930 hardcode_minus_L=yes
11931 # see comment about different semantics on the GNU ld section
11932 ld_shlibs=no
11933 ;;
11934
11935 bsdi[45]*)
11936 export_dynamic_flag_spec=-rdynamic
11937 ;;
11938
11939 cygwin* | mingw* | pw32*)
11940 # When not using gcc, we currently assume that we are using
11941 # Microsoft Visual C++.
11942 # hardcode_libdir_flag_spec is actually meaningless, as there is
11943 # no search path for DLLs.
11944 hardcode_libdir_flag_spec=' '
11945 allow_undefined_flag=unsupported
11946 # Tell ltmain to make .lib files, not .a files.
11947 libext=lib
11948 # Tell ltmain to make .dll files, not .so files.
11949 shrext_cmds=".dll"
11950 # FIXME: Setting linknames here is a bad hack.
11951 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
11952 # The linker will automatically build a .lib file if we build a DLL.
11953 old_archive_From_new_cmds='true'
11954 # FIXME: Should let the user specify the lib program.
11955 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
11956 fix_srcfile_path='`cygpath -w "$srcfile"`'
11957 enable_shared_with_static_runtimes=yes
11958 ;;
11959
11960 darwin* | rhapsody*)
11961 case $host_os in
11962 rhapsody* | darwin1.[012])
11963 allow_undefined_flag='${wl}-undefined ${wl}suppress'
11964 ;;
11965 *) # Darwin 1.3 on
11966 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11967 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11968 else
11969 case ${MACOSX_DEPLOYMENT_TARGET} in
11970 10.[012])
11971 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11972 ;;
11973 10.*)
11974 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
11975 ;;
11976 esac
11977 fi
11978 ;;
11979 esac
11980 archive_cmds_need_lc=no
11981 hardcode_direct=no
11982 hardcode_automatic=yes
11983 hardcode_shlibpath_var=unsupported
11984 whole_archive_flag_spec=''
11985 link_all_deplibs=yes
11986 if test "$GCC" = yes ; then
11987 output_verbose_link_cmd='echo'
11988 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11989 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11990 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11991 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}'
11992 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}'
11993 else
11994 case $cc_basename in
11995 xlc*)
11996 output_verbose_link_cmd='echo'
11997 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11998 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11999 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12000 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}'
12001 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}'
12002 ;;
12003 *)
12004 ld_shlibs=no
12005 ;;
12006 esac
12007 fi
12008 ;;
12009
12010 dgux*)
12011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12012 hardcode_libdir_flag_spec='-L$libdir'
12013 hardcode_shlibpath_var=no
12014 ;;
12015
12016 freebsd1*)
12017 ld_shlibs=no
12018 ;;
12019
12020 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12021 # support. Future versions do this automatically, but an explicit c++rt0.o
12022 # does not break anything, and helps significantly (at the cost of a little
12023 # extra space).
12024 freebsd2.2*)
12025 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12026 hardcode_libdir_flag_spec='-R$libdir'
12027 hardcode_direct=yes
12028 hardcode_shlibpath_var=no
12029 ;;
12030
12031 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12032 freebsd2*)
12033 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12034 hardcode_direct=yes
12035 hardcode_minus_L=yes
12036 hardcode_shlibpath_var=no
12037 ;;
12038
12039 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12040 freebsd* | kfreebsd*-gnu | dragonfly*)
12041 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12042 hardcode_libdir_flag_spec='-R$libdir'
12043 hardcode_direct=yes
12044 hardcode_shlibpath_var=no
12045 ;;
12046
12047 hpux9*)
12048 if test "$GCC" = yes; then
12049 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'
12050 else
12051 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'
12052 fi
12053 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12054 hardcode_libdir_separator=:
12055 hardcode_direct=yes
12056
12057 # hardcode_minus_L: Not really in the search PATH,
12058 # but as the default location of the library.
12059 hardcode_minus_L=yes
12060 export_dynamic_flag_spec='${wl}-E'
12061 ;;
12062
12063 hpux10* | hpux11*)
12064 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12065 case $host_cpu in
12066 hppa*64*|ia64*)
12067 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12068 ;;
12069 *)
12070 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12071 ;;
12072 esac
12073 else
12074 case $host_cpu in
12075 hppa*64*|ia64*)
12076 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12077 ;;
12078 *)
12079 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12080 ;;
12081 esac
12082 fi
12083 if test "$with_gnu_ld" = no; then
12084 case $host_cpu in
12085 hppa*64*)
12086 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12087 hardcode_libdir_flag_spec_ld='+b $libdir'
12088 hardcode_libdir_separator=:
12089 hardcode_direct=no
12090 hardcode_shlibpath_var=no
12091 ;;
12092 ia64*)
12093 hardcode_libdir_flag_spec='-L$libdir'
12094 hardcode_direct=no
12095 hardcode_shlibpath_var=no
12096
12097 # hardcode_minus_L: Not really in the search PATH,
12098 # but as the default location of the library.
12099 hardcode_minus_L=yes
12100 ;;
12101 *)
12102 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12103 hardcode_libdir_separator=:
12104 hardcode_direct=yes
12105 export_dynamic_flag_spec='${wl}-E'
12106
12107 # hardcode_minus_L: Not really in the search PATH,
12108 # but as the default location of the library.
12109 hardcode_minus_L=yes
12110 ;;
12111 esac
12112 fi
12113 ;;
12114
12115 irix5* | irix6* | nonstopux*)
12116 if test "$GCC" = yes; then
12117 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'
12118 else
12119 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'
12120 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12121 fi
12122 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12123 hardcode_libdir_separator=:
12124 link_all_deplibs=yes
12125 ;;
12126
12127 netbsd*)
12128 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12129 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12130 else
12131 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12132 fi
12133 hardcode_libdir_flag_spec='-R$libdir'
12134 hardcode_direct=yes
12135 hardcode_shlibpath_var=no
12136 ;;
12137
12138 newsos6)
12139 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12140 hardcode_direct=yes
12141 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12142 hardcode_libdir_separator=:
12143 hardcode_shlibpath_var=no
12144 ;;
12145
12146 openbsd*)
12147 hardcode_direct=yes
12148 hardcode_shlibpath_var=no
12149 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12150 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12151 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12152 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12153 export_dynamic_flag_spec='${wl}-E'
12154 else
12155 case $host_os in
12156 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12157 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12158 hardcode_libdir_flag_spec='-R$libdir'
12159 ;;
12160 *)
12161 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12162 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12163 ;;
12164 esac
12165 fi
12166 ;;
12167
12168 os2*)
12169 hardcode_libdir_flag_spec='-L$libdir'
12170 hardcode_minus_L=yes
12171 allow_undefined_flag=unsupported
12172 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'
12173 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12174 ;;
12175
12176 osf3*)
12177 if test "$GCC" = yes; then
12178 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12179 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'
12180 else
12181 allow_undefined_flag=' -expect_unresolved \*'
12182 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'
12183 fi
12184 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12185 hardcode_libdir_separator=:
12186 ;;
12187
12188 osf4* | osf5*) # as osf3* with the addition of -msym flag
12189 if test "$GCC" = yes; then
12190 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12191 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'
12192 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12193 else
12194 allow_undefined_flag=' -expect_unresolved \*'
12195 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'
12196 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12197 $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'
12198
12199 # Both c and cxx compiler support -rpath directly
12200 hardcode_libdir_flag_spec='-rpath $libdir'
12201 fi
12202 hardcode_libdir_separator=:
12203 ;;
12204
12205 sco3.2v5*)
12206 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12207 hardcode_shlibpath_var=no
12208 export_dynamic_flag_spec='${wl}-Bexport'
12209 runpath_var=LD_RUN_PATH
12210 hardcode_runpath_var=yes
12211 ;;
12212
12213 solaris*)
12214 no_undefined_flag=' -z text'
12215 if test "$GCC" = yes; then
12216 wlarc='${wl}'
12217 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12218 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12219 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12220 else
12221 wlarc=''
12222 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12223 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12224 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12225 fi
12226 hardcode_libdir_flag_spec='-R$libdir'
12227 hardcode_shlibpath_var=no
12228 case $host_os in
12229 solaris2.[0-5] | solaris2.[0-5].*) ;;
12230 *)
12231 # The compiler driver will combine linker options so we
12232 # cannot just pass the convience library names through
12233 # without $wl, iff we do not link with $LD.
12234 # Luckily, gcc supports the same syntax we need for Sun Studio.
12235 # Supported since Solaris 2.6 (maybe 2.5.1?)
12236 case $wlarc in
12237 '')
12238 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12239 *)
12240 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' ;;
12241 esac ;;
12242 esac
12243 link_all_deplibs=yes
12244 ;;
12245
12246 sunos4*)
12247 if test "x$host_vendor" = xsequent; then
12248 # Use $CC to link under sequent, because it throws in some extra .o
12249 # files that make .init and .fini sections work.
12250 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12251 else
12252 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12253 fi
12254 hardcode_libdir_flag_spec='-L$libdir'
12255 hardcode_direct=yes
12256 hardcode_minus_L=yes
12257 hardcode_shlibpath_var=no
12258 ;;
12259
12260 sysv4)
12261 case $host_vendor in
12262 sni)
12263 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12264 hardcode_direct=yes # is this really true???
12265 ;;
12266 siemens)
12267 ## LD is ld it makes a PLAMLIB
12268 ## CC just makes a GrossModule.
12269 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12270 reload_cmds='$CC -r -o $output$reload_objs'
12271 hardcode_direct=no
12272 ;;
12273 motorola)
12274 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12275 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12276 ;;
12277 esac
12278 runpath_var='LD_RUN_PATH'
12279 hardcode_shlibpath_var=no
12280 ;;
12281
12282 sysv4.3*)
12283 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12284 hardcode_shlibpath_var=no
12285 export_dynamic_flag_spec='-Bexport'
12286 ;;
12287
12288 sysv4*MP*)
12289 if test -d /usr/nec; then
12290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12291 hardcode_shlibpath_var=no
12292 runpath_var=LD_RUN_PATH
12293 hardcode_runpath_var=yes
12294 ld_shlibs=yes
12295 fi
12296 ;;
12297
12298 sysv4.2uw2*)
12299 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12300 hardcode_direct=yes
12301 hardcode_minus_L=no
12302 hardcode_shlibpath_var=no
12303 hardcode_runpath_var=yes
12304 runpath_var=LD_RUN_PATH
12305 ;;
12306
12307 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12308 no_undefined_flag='${wl}-z ${wl}text'
12309 if test "$GCC" = yes; then
12310 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12311 else
12312 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12313 fi
12314 runpath_var='LD_RUN_PATH'
12315 hardcode_shlibpath_var=no
12316 ;;
12317
12318 sysv5*)
12319 no_undefined_flag=' -z text'
12320 # $CC -shared without GNU ld will not create a library from C++
12321 # object files and a static libstdc++, better avoid it by now
12322 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12323 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12324 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12325 hardcode_libdir_flag_spec=
12326 hardcode_shlibpath_var=no
12327 runpath_var='LD_RUN_PATH'
12328 ;;
12329
12330 uts4*)
12331 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12332 hardcode_libdir_flag_spec='-L$libdir'
12333 hardcode_shlibpath_var=no
12334 ;;
12335
12336 *)
12337 ld_shlibs=no
12338 ;;
12339 esac
12340 fi
12341
12342 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12343 echo "${ECHO_T}$ld_shlibs" >&6
12344 test "$ld_shlibs" = no && can_build_shared=no
12345
12346 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12347 if test "$GCC" = yes; then
12348 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12349 fi
12350
12351 #
12352 # Do we need to explicitly link libc?
12353 #
12354 case "x$archive_cmds_need_lc" in
12355 x|xyes)
12356 # Assume -lc should be added
12357 archive_cmds_need_lc=yes
12358
12359 if test "$enable_shared" = yes && test "$GCC" = yes; then
12360 case $archive_cmds in
12361 *'~'*)
12362 # FIXME: we may have to deal with multi-command sequences.
12363 ;;
12364 '$CC '*)
12365 # Test whether the compiler implicitly links with -lc since on some
12366 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12367 # to ld, don't add -lc before -lgcc.
12368 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12369 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12370 $rm conftest*
12371 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12372
12373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12374 (eval $ac_compile) 2>&5
12375 ac_status=$?
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); } 2>conftest.err; then
12378 soname=conftest
12379 lib=conftest
12380 libobjs=conftest.$ac_objext
12381 deplibs=
12382 wl=$lt_prog_compiler_wl
12383 compiler_flags=-v
12384 linker_flags=-v
12385 verstring=
12386 output_objdir=.
12387 libname=conftest
12388 lt_save_allow_undefined_flag=$allow_undefined_flag
12389 allow_undefined_flag=
12390 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12391 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12392 ac_status=$?
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); }
12395 then
12396 archive_cmds_need_lc=no
12397 else
12398 archive_cmds_need_lc=yes
12399 fi
12400 allow_undefined_flag=$lt_save_allow_undefined_flag
12401 else
12402 cat conftest.err 1>&5
12403 fi
12404 $rm conftest*
12405 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12406 echo "${ECHO_T}$archive_cmds_need_lc" >&6
12407 ;;
12408 esac
12409 fi
12410 ;;
12411 esac
12412
12413 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12414 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12415 library_names_spec=
12416 libname_spec='lib$name'
12417 soname_spec=
12418 shrext_cmds=".so"
12419 postinstall_cmds=
12420 postuninstall_cmds=
12421 finish_cmds=
12422 finish_eval=
12423 shlibpath_var=
12424 shlibpath_overrides_runpath=unknown
12425 version_type=none
12426 dynamic_linker="$host_os ld.so"
12427 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12428 if test "$GCC" = yes; then
12429 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12430 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12431 # if the path contains ";" then we assume it to be the separator
12432 # otherwise default to the standard path separator (i.e. ":") - it is
12433 # assumed that no part of a normal pathname contains ";" but that should
12434 # okay in the real world where ";" in dirpaths is itself problematic.
12435 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12436 else
12437 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12438 fi
12439 else
12440 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12441 fi
12442 need_lib_prefix=unknown
12443 hardcode_into_libs=no
12444
12445 # when you set need_version to no, make sure it does not cause -set_version
12446 # flags to be left without arguments
12447 need_version=unknown
12448
12449 case $host_os in
12450 aix3*)
12451 version_type=linux
12452 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12453 shlibpath_var=LIBPATH
12454
12455 # AIX 3 has no versioning support, so we append a major version to the name.
12456 soname_spec='${libname}${release}${shared_ext}$major'
12457 ;;
12458
12459 aix4* | aix5*)
12460 version_type=linux
12461 need_lib_prefix=no
12462 need_version=no
12463 hardcode_into_libs=yes
12464 if test "$host_cpu" = ia64; then
12465 # AIX 5 supports IA64
12466 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12467 shlibpath_var=LD_LIBRARY_PATH
12468 else
12469 # With GCC up to 2.95.x, collect2 would create an import file
12470 # for dependence libraries. The import file would start with
12471 # the line `#! .'. This would cause the generated library to
12472 # depend on `.', always an invalid library. This was fixed in
12473 # development snapshots of GCC prior to 3.0.
12474 case $host_os in
12475 aix4 | aix4.[01] | aix4.[01].*)
12476 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12477 echo ' yes '
12478 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12479 :
12480 else
12481 can_build_shared=no
12482 fi
12483 ;;
12484 esac
12485 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12486 # soname into executable. Probably we can add versioning support to
12487 # collect2, so additional links can be useful in future.
12488 if test "$aix_use_runtimelinking" = yes; then
12489 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12490 # instead of lib<name>.a to let people know that these are not
12491 # typical AIX shared libraries.
12492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12493 else
12494 # We preserve .a as extension for shared libraries through AIX4.2
12495 # and later when we are not doing run time linking.
12496 library_names_spec='${libname}${release}.a $libname.a'
12497 soname_spec='${libname}${release}${shared_ext}$major'
12498 fi
12499 shlibpath_var=LIBPATH
12500 fi
12501 ;;
12502
12503 amigaos*)
12504 library_names_spec='$libname.ixlibrary $libname.a'
12505 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12506 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'
12507 ;;
12508
12509 beos*)
12510 library_names_spec='${libname}${shared_ext}'
12511 dynamic_linker="$host_os ld.so"
12512 shlibpath_var=LIBRARY_PATH
12513 ;;
12514
12515 bsdi[45]*)
12516 version_type=linux
12517 need_version=no
12518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12519 soname_spec='${libname}${release}${shared_ext}$major'
12520 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12521 shlibpath_var=LD_LIBRARY_PATH
12522 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12523 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12524 # the default ld.so.conf also contains /usr/contrib/lib and
12525 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12526 # libtool to hard-code these into programs
12527 ;;
12528
12529 cygwin* | mingw* | pw32*)
12530 version_type=windows
12531 shrext_cmds=".dll"
12532 need_version=no
12533 need_lib_prefix=no
12534
12535 case $GCC,$host_os in
12536 yes,cygwin* | yes,mingw* | yes,pw32*)
12537 library_names_spec='$libname.dll.a'
12538 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12539 postinstall_cmds='base_file=`basename \${file}`~
12540 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12541 dldir=$destdir/`dirname \$dlpath`~
12542 test -d \$dldir || mkdir -p \$dldir~
12543 $install_prog $dir/$dlname \$dldir/$dlname~
12544 chmod a+x \$dldir/$dlname'
12545 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12546 dlpath=$dir/\$dldll~
12547 $rm \$dlpath'
12548 shlibpath_overrides_runpath=yes
12549
12550 case $host_os in
12551 cygwin*)
12552 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12553 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12554 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12555 ;;
12556 mingw*)
12557 # MinGW DLLs use traditional 'lib' prefix
12558 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12559 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12560 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12561 # It is most probably a Windows format PATH printed by
12562 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12563 # path with ; separators, and with drive letters. We can handle the
12564 # drive letters (cygwin fileutils understands them), so leave them,
12565 # especially as we might pass files found there to a mingw objdump,
12566 # which wouldn't understand a cygwinified path. Ahh.
12567 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12568 else
12569 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12570 fi
12571 ;;
12572 pw32*)
12573 # pw32 DLLs use 'pw' prefix rather than 'lib'
12574 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12575 ;;
12576 esac
12577 ;;
12578
12579 *)
12580 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12581 ;;
12582 esac
12583 dynamic_linker='Win32 ld.exe'
12584 # FIXME: first we should search . and the directory the executable is in
12585 shlibpath_var=PATH
12586 ;;
12587
12588 darwin* | rhapsody*)
12589 dynamic_linker="$host_os dyld"
12590 version_type=darwin
12591 need_lib_prefix=no
12592 need_version=no
12593 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12594 soname_spec='${libname}${release}${major}$shared_ext'
12595 shlibpath_overrides_runpath=yes
12596 shlibpath_var=DYLD_LIBRARY_PATH
12597 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12598 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12599 if test "$GCC" = yes; then
12600 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"`
12601 else
12602 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12603 fi
12604 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12605 ;;
12606
12607 dgux*)
12608 version_type=linux
12609 need_lib_prefix=no
12610 need_version=no
12611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12612 soname_spec='${libname}${release}${shared_ext}$major'
12613 shlibpath_var=LD_LIBRARY_PATH
12614 ;;
12615
12616 freebsd1*)
12617 dynamic_linker=no
12618 ;;
12619
12620 kfreebsd*-gnu)
12621 version_type=linux
12622 need_lib_prefix=no
12623 need_version=no
12624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12625 soname_spec='${libname}${release}${shared_ext}$major'
12626 shlibpath_var=LD_LIBRARY_PATH
12627 shlibpath_overrides_runpath=no
12628 hardcode_into_libs=yes
12629 dynamic_linker='GNU ld.so'
12630 ;;
12631
12632 freebsd* | dragonfly*)
12633 # DragonFly does not have aout. When/if they implement a new
12634 # versioning mechanism, adjust this.
12635 if test -x /usr/bin/objformat; then
12636 objformat=`/usr/bin/objformat`
12637 else
12638 case $host_os in
12639 freebsd[123]*) objformat=aout ;;
12640 *) objformat=elf ;;
12641 esac
12642 fi
12643 version_type=freebsd-$objformat
12644 case $version_type in
12645 freebsd-elf*)
12646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12647 need_version=no
12648 need_lib_prefix=no
12649 ;;
12650 freebsd-*)
12651 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12652 need_version=yes
12653 ;;
12654 esac
12655 shlibpath_var=LD_LIBRARY_PATH
12656 case $host_os in
12657 freebsd2*)
12658 shlibpath_overrides_runpath=yes
12659 ;;
12660 freebsd3.[01]* | freebsdelf3.[01]*)
12661 shlibpath_overrides_runpath=yes
12662 hardcode_into_libs=yes
12663 ;;
12664 *) # from 3.2 on
12665 shlibpath_overrides_runpath=no
12666 hardcode_into_libs=yes
12667 ;;
12668 esac
12669 ;;
12670
12671 gnu*)
12672 version_type=linux
12673 need_lib_prefix=no
12674 need_version=no
12675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12676 soname_spec='${libname}${release}${shared_ext}$major'
12677 shlibpath_var=LD_LIBRARY_PATH
12678 hardcode_into_libs=yes
12679 ;;
12680
12681 hpux9* | hpux10* | hpux11*)
12682 # Give a soname corresponding to the major version so that dld.sl refuses to
12683 # link against other versions.
12684 version_type=sunos
12685 need_lib_prefix=no
12686 need_version=no
12687 case $host_cpu in
12688 ia64*)
12689 shrext_cmds='.so'
12690 hardcode_into_libs=yes
12691 dynamic_linker="$host_os dld.so"
12692 shlibpath_var=LD_LIBRARY_PATH
12693 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12695 soname_spec='${libname}${release}${shared_ext}$major'
12696 if test "X$HPUX_IA64_MODE" = X32; then
12697 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12698 else
12699 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12700 fi
12701 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12702 ;;
12703 hppa*64*)
12704 shrext_cmds='.sl'
12705 hardcode_into_libs=yes
12706 dynamic_linker="$host_os dld.sl"
12707 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12708 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12710 soname_spec='${libname}${release}${shared_ext}$major'
12711 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12712 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12713 ;;
12714 *)
12715 shrext_cmds='.sl'
12716 dynamic_linker="$host_os dld.sl"
12717 shlibpath_var=SHLIB_PATH
12718 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12720 soname_spec='${libname}${release}${shared_ext}$major'
12721 ;;
12722 esac
12723 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12724 postinstall_cmds='chmod 555 $lib'
12725 ;;
12726
12727 irix5* | irix6* | nonstopux*)
12728 case $host_os in
12729 nonstopux*) version_type=nonstopux ;;
12730 *)
12731 if test "$lt_cv_prog_gnu_ld" = yes; then
12732 version_type=linux
12733 else
12734 version_type=irix
12735 fi ;;
12736 esac
12737 need_lib_prefix=no
12738 need_version=no
12739 soname_spec='${libname}${release}${shared_ext}$major'
12740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12741 case $host_os in
12742 irix5* | nonstopux*)
12743 libsuff= shlibsuff=
12744 ;;
12745 *)
12746 case $LD in # libtool.m4 will add one of these switches to LD
12747 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12748 libsuff= shlibsuff= libmagic=32-bit;;
12749 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12750 libsuff=32 shlibsuff=N32 libmagic=N32;;
12751 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12752 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12753 *) libsuff= shlibsuff= libmagic=never-match;;
12754 esac
12755 ;;
12756 esac
12757 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12758 shlibpath_overrides_runpath=no
12759 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12760 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12761 hardcode_into_libs=yes
12762 ;;
12763
12764 # No shared lib support for Linux oldld, aout, or coff.
12765 linux*oldld* | linux*aout* | linux*coff*)
12766 dynamic_linker=no
12767 ;;
12768
12769 # This must be Linux ELF.
12770 linux*)
12771 version_type=linux
12772 need_lib_prefix=no
12773 need_version=no
12774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12775 soname_spec='${libname}${release}${shared_ext}$major'
12776 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12777 shlibpath_var=LD_LIBRARY_PATH
12778 shlibpath_overrides_runpath=no
12779 # This implies no fast_install, which is unacceptable.
12780 # Some rework will be needed to allow for fast_install
12781 # before this can be enabled.
12782 hardcode_into_libs=yes
12783
12784 # Append ld.so.conf contents to the search path
12785 if test -f /etc/ld.so.conf; then
12786 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12787 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12788 fi
12789
12790 # We used to test for /lib/ld.so.1 and disable shared libraries on
12791 # powerpc, because MkLinux only supported shared libraries with the
12792 # GNU dynamic linker. Since this was broken with cross compilers,
12793 # most powerpc-linux boxes support dynamic linking these days and
12794 # people can always --disable-shared, the test was removed, and we
12795 # assume the GNU/Linux dynamic linker is in use.
12796 dynamic_linker='GNU/Linux ld.so'
12797 ;;
12798
12799 knetbsd*-gnu)
12800 version_type=linux
12801 need_lib_prefix=no
12802 need_version=no
12803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12804 soname_spec='${libname}${release}${shared_ext}$major'
12805 shlibpath_var=LD_LIBRARY_PATH
12806 shlibpath_overrides_runpath=no
12807 hardcode_into_libs=yes
12808 dynamic_linker='GNU ld.so'
12809 ;;
12810
12811 netbsd*)
12812 version_type=sunos
12813 need_lib_prefix=no
12814 need_version=no
12815 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12817 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12818 dynamic_linker='NetBSD (a.out) ld.so'
12819 else
12820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12821 soname_spec='${libname}${release}${shared_ext}$major'
12822 dynamic_linker='NetBSD ld.elf_so'
12823 fi
12824 shlibpath_var=LD_LIBRARY_PATH
12825 shlibpath_overrides_runpath=yes
12826 hardcode_into_libs=yes
12827 ;;
12828
12829 newsos6)
12830 version_type=linux
12831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12832 shlibpath_var=LD_LIBRARY_PATH
12833 shlibpath_overrides_runpath=yes
12834 ;;
12835
12836 nto-qnx*)
12837 version_type=linux
12838 need_lib_prefix=no
12839 need_version=no
12840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12841 soname_spec='${libname}${release}${shared_ext}$major'
12842 shlibpath_var=LD_LIBRARY_PATH
12843 shlibpath_overrides_runpath=yes
12844 ;;
12845
12846 openbsd*)
12847 version_type=sunos
12848 need_lib_prefix=no
12849 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12850 case $host_os in
12851 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12852 *) need_version=no ;;
12853 esac
12854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12855 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12856 shlibpath_var=LD_LIBRARY_PATH
12857 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12858 case $host_os in
12859 openbsd2.[89] | openbsd2.[89].*)
12860 shlibpath_overrides_runpath=no
12861 ;;
12862 *)
12863 shlibpath_overrides_runpath=yes
12864 ;;
12865 esac
12866 else
12867 shlibpath_overrides_runpath=yes
12868 fi
12869 ;;
12870
12871 os2*)
12872 libname_spec='$name'
12873 shrext_cmds=".dll"
12874 need_lib_prefix=no
12875 library_names_spec='$libname${shared_ext} $libname.a'
12876 dynamic_linker='OS/2 ld.exe'
12877 shlibpath_var=LIBPATH
12878 ;;
12879
12880 osf3* | osf4* | osf5*)
12881 version_type=osf
12882 need_lib_prefix=no
12883 need_version=no
12884 soname_spec='${libname}${release}${shared_ext}$major'
12885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12886 shlibpath_var=LD_LIBRARY_PATH
12887 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12888 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12889 ;;
12890
12891 sco3.2v5*)
12892 version_type=osf
12893 soname_spec='${libname}${release}${shared_ext}$major'
12894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12895 shlibpath_var=LD_LIBRARY_PATH
12896 ;;
12897
12898 solaris*)
12899 version_type=linux
12900 need_lib_prefix=no
12901 need_version=no
12902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12903 soname_spec='${libname}${release}${shared_ext}$major'
12904 shlibpath_var=LD_LIBRARY_PATH
12905 shlibpath_overrides_runpath=yes
12906 hardcode_into_libs=yes
12907 # ldd complains unless libraries are executable
12908 postinstall_cmds='chmod +x $lib'
12909 ;;
12910
12911 sunos4*)
12912 version_type=sunos
12913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12914 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12915 shlibpath_var=LD_LIBRARY_PATH
12916 shlibpath_overrides_runpath=yes
12917 if test "$with_gnu_ld" = yes; then
12918 need_lib_prefix=no
12919 fi
12920 need_version=yes
12921 ;;
12922
12923 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12924 version_type=linux
12925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12926 soname_spec='${libname}${release}${shared_ext}$major'
12927 shlibpath_var=LD_LIBRARY_PATH
12928 case $host_vendor in
12929 sni)
12930 shlibpath_overrides_runpath=no
12931 need_lib_prefix=no
12932 export_dynamic_flag_spec='${wl}-Blargedynsym'
12933 runpath_var=LD_RUN_PATH
12934 ;;
12935 siemens)
12936 need_lib_prefix=no
12937 ;;
12938 motorola)
12939 need_lib_prefix=no
12940 need_version=no
12941 shlibpath_overrides_runpath=no
12942 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12943 ;;
12944 esac
12945 ;;
12946
12947 sysv4*MP*)
12948 if test -d /usr/nec ;then
12949 version_type=linux
12950 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12951 soname_spec='$libname${shared_ext}.$major'
12952 shlibpath_var=LD_LIBRARY_PATH
12953 fi
12954 ;;
12955
12956 uts4*)
12957 version_type=linux
12958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12959 soname_spec='${libname}${release}${shared_ext}$major'
12960 shlibpath_var=LD_LIBRARY_PATH
12961 ;;
12962
12963 *)
12964 dynamic_linker=no
12965 ;;
12966 esac
12967 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12968 echo "${ECHO_T}$dynamic_linker" >&6
12969 test "$dynamic_linker" = no && can_build_shared=no
12970
12971 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12972 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12973 hardcode_action=
12974 if test -n "$hardcode_libdir_flag_spec" || \
12975 test -n "$runpath_var" || \
12976 test "X$hardcode_automatic" = "Xyes" ; then
12977
12978 # We can hardcode non-existant directories.
12979 if test "$hardcode_direct" != no &&
12980 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12981 # have to relink, otherwise we might link with an installed library
12982 # when we should be linking with a yet-to-be-installed one
12983 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
12984 test "$hardcode_minus_L" != no; then
12985 # Linking always hardcodes the temporary library directory.
12986 hardcode_action=relink
12987 else
12988 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12989 hardcode_action=immediate
12990 fi
12991 else
12992 # We cannot hardcode anything, or else we can only hardcode existing
12993 # directories.
12994 hardcode_action=unsupported
12995 fi
12996 echo "$as_me:$LINENO: result: $hardcode_action" >&5
12997 echo "${ECHO_T}$hardcode_action" >&6
12998
12999 if test "$hardcode_action" = relink; then
13000 # Fast installation is not supported
13001 enable_fast_install=no
13002 elif test "$shlibpath_overrides_runpath" = yes ||
13003 test "$enable_shared" = no; then
13004 # Fast installation is not necessary
13005 enable_fast_install=needless
13006 fi
13007
13008 striplib=
13009 old_striplib=
13010 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13011 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13012 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13013 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13014 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13015 echo "$as_me:$LINENO: result: yes" >&5
13016 echo "${ECHO_T}yes" >&6
13017 else
13018 # FIXME - insert some real tests, host_os isn't really good enough
13019 case $host_os in
13020 darwin*)
13021 if test -n "$STRIP" ; then
13022 striplib="$STRIP -x"
13023 echo "$as_me:$LINENO: result: yes" >&5
13024 echo "${ECHO_T}yes" >&6
13025 else
13026 echo "$as_me:$LINENO: result: no" >&5
13027 echo "${ECHO_T}no" >&6
13028 fi
13029 ;;
13030 *)
13031 echo "$as_me:$LINENO: result: no" >&5
13032 echo "${ECHO_T}no" >&6
13033 ;;
13034 esac
13035 fi
13036
13037 if test "x$enable_dlopen" != xyes; then
13038 enable_dlopen=unknown
13039 enable_dlopen_self=unknown
13040 enable_dlopen_self_static=unknown
13041 else
13042 lt_cv_dlopen=no
13043 lt_cv_dlopen_libs=
13044
13045 case $host_os in
13046 beos*)
13047 lt_cv_dlopen="load_add_on"
13048 lt_cv_dlopen_libs=
13049 lt_cv_dlopen_self=yes
13050 ;;
13051
13052 mingw* | pw32*)
13053 lt_cv_dlopen="LoadLibrary"
13054 lt_cv_dlopen_libs=
13055 ;;
13056
13057 cygwin*)
13058 lt_cv_dlopen="dlopen"
13059 lt_cv_dlopen_libs=
13060 ;;
13061
13062 darwin*)
13063 # if libdl is installed we need to link against it
13064 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13065 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13066 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13067 echo $ECHO_N "(cached) $ECHO_C" >&6
13068 else
13069 ac_check_lib_save_LIBS=$LIBS
13070 LIBS="-ldl $LIBS"
13071 cat >conftest.$ac_ext <<_ACEOF
13072 /* confdefs.h. */
13073 _ACEOF
13074 cat confdefs.h >>conftest.$ac_ext
13075 cat >>conftest.$ac_ext <<_ACEOF
13076 /* end confdefs.h. */
13077
13078 /* Override any gcc2 internal prototype to avoid an error. */
13079 #ifdef __cplusplus
13080 extern "C"
13081 #endif
13082 /* We use char because int might match the return type of a gcc2
13083 builtin and then its argument prototype would still apply. */
13084 char dlopen ();
13085 int
13086 main ()
13087 {
13088 dlopen ();
13089 ;
13090 return 0;
13091 }
13092 _ACEOF
13093 rm -f conftest.$ac_objext conftest$ac_exeext
13094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13095 (eval $ac_link) 2>conftest.er1
13096 ac_status=$?
13097 grep -v '^ *+' conftest.er1 >conftest.err
13098 rm -f conftest.er1
13099 cat conftest.err >&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); } &&
13102 { ac_try='test -z "$ac_c_werror_flag"
13103 || test ! -s conftest.err'
13104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105 (eval $ac_try) 2>&5
13106 ac_status=$?
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; } &&
13109 { ac_try='test -s conftest$ac_exeext'
13110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111 (eval $ac_try) 2>&5
13112 ac_status=$?
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; }; then
13115 ac_cv_lib_dl_dlopen=yes
13116 else
13117 echo "$as_me: failed program was:" >&5
13118 sed 's/^/| /' conftest.$ac_ext >&5
13119
13120 ac_cv_lib_dl_dlopen=no
13121 fi
13122 rm -f conftest.err conftest.$ac_objext \
13123 conftest$ac_exeext conftest.$ac_ext
13124 LIBS=$ac_check_lib_save_LIBS
13125 fi
13126 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13127 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13128 if test $ac_cv_lib_dl_dlopen = yes; then
13129 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13130 else
13131
13132 lt_cv_dlopen="dyld"
13133 lt_cv_dlopen_libs=
13134 lt_cv_dlopen_self=yes
13135
13136 fi
13137
13138 ;;
13139
13140 *)
13141 echo "$as_me:$LINENO: checking for shl_load" >&5
13142 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13143 if test "${ac_cv_func_shl_load+set}" = set; then
13144 echo $ECHO_N "(cached) $ECHO_C" >&6
13145 else
13146 cat >conftest.$ac_ext <<_ACEOF
13147 /* confdefs.h. */
13148 _ACEOF
13149 cat confdefs.h >>conftest.$ac_ext
13150 cat >>conftest.$ac_ext <<_ACEOF
13151 /* end confdefs.h. */
13152 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13154 #define shl_load innocuous_shl_load
13155
13156 /* System header to define __stub macros and hopefully few prototypes,
13157 which can conflict with char shl_load (); below.
13158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13159 <limits.h> exists even on freestanding compilers. */
13160
13161 #ifdef __STDC__
13162 # include <limits.h>
13163 #else
13164 # include <assert.h>
13165 #endif
13166
13167 #undef shl_load
13168
13169 /* Override any gcc2 internal prototype to avoid an error. */
13170 #ifdef __cplusplus
13171 extern "C"
13172 {
13173 #endif
13174 /* We use char because int might match the return type of a gcc2
13175 builtin and then its argument prototype would still apply. */
13176 char shl_load ();
13177 /* The GNU C library defines this for functions which it implements
13178 to always fail with ENOSYS. Some functions are actually named
13179 something starting with __ and the normal name is an alias. */
13180 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13181 choke me
13182 #else
13183 char (*f) () = shl_load;
13184 #endif
13185 #ifdef __cplusplus
13186 }
13187 #endif
13188
13189 int
13190 main ()
13191 {
13192 return f != shl_load;
13193 ;
13194 return 0;
13195 }
13196 _ACEOF
13197 rm -f conftest.$ac_objext conftest$ac_exeext
13198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13199 (eval $ac_link) 2>conftest.er1
13200 ac_status=$?
13201 grep -v '^ *+' conftest.er1 >conftest.err
13202 rm -f conftest.er1
13203 cat conftest.err >&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } &&
13206 { ac_try='test -z "$ac_c_werror_flag"
13207 || test ! -s conftest.err'
13208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209 (eval $ac_try) 2>&5
13210 ac_status=$?
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; } &&
13213 { ac_try='test -s conftest$ac_exeext'
13214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215 (eval $ac_try) 2>&5
13216 ac_status=$?
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; }; then
13219 ac_cv_func_shl_load=yes
13220 else
13221 echo "$as_me: failed program was:" >&5
13222 sed 's/^/| /' conftest.$ac_ext >&5
13223
13224 ac_cv_func_shl_load=no
13225 fi
13226 rm -f conftest.err conftest.$ac_objext \
13227 conftest$ac_exeext conftest.$ac_ext
13228 fi
13229 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13230 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13231 if test $ac_cv_func_shl_load = yes; then
13232 lt_cv_dlopen="shl_load"
13233 else
13234 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13235 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13236 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13237 echo $ECHO_N "(cached) $ECHO_C" >&6
13238 else
13239 ac_check_lib_save_LIBS=$LIBS
13240 LIBS="-ldld $LIBS"
13241 cat >conftest.$ac_ext <<_ACEOF
13242 /* confdefs.h. */
13243 _ACEOF
13244 cat confdefs.h >>conftest.$ac_ext
13245 cat >>conftest.$ac_ext <<_ACEOF
13246 /* end confdefs.h. */
13247
13248 /* Override any gcc2 internal prototype to avoid an error. */
13249 #ifdef __cplusplus
13250 extern "C"
13251 #endif
13252 /* We use char because int might match the return type of a gcc2
13253 builtin and then its argument prototype would still apply. */
13254 char shl_load ();
13255 int
13256 main ()
13257 {
13258 shl_load ();
13259 ;
13260 return 0;
13261 }
13262 _ACEOF
13263 rm -f conftest.$ac_objext conftest$ac_exeext
13264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13265 (eval $ac_link) 2>conftest.er1
13266 ac_status=$?
13267 grep -v '^ *+' conftest.er1 >conftest.err
13268 rm -f conftest.er1
13269 cat conftest.err >&5
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); } &&
13272 { ac_try='test -z "$ac_c_werror_flag"
13273 || test ! -s conftest.err'
13274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275 (eval $ac_try) 2>&5
13276 ac_status=$?
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; } &&
13279 { ac_try='test -s conftest$ac_exeext'
13280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13281 (eval $ac_try) 2>&5
13282 ac_status=$?
13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284 (exit $ac_status); }; }; then
13285 ac_cv_lib_dld_shl_load=yes
13286 else
13287 echo "$as_me: failed program was:" >&5
13288 sed 's/^/| /' conftest.$ac_ext >&5
13289
13290 ac_cv_lib_dld_shl_load=no
13291 fi
13292 rm -f conftest.err conftest.$ac_objext \
13293 conftest$ac_exeext conftest.$ac_ext
13294 LIBS=$ac_check_lib_save_LIBS
13295 fi
13296 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13297 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13298 if test $ac_cv_lib_dld_shl_load = yes; then
13299 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13300 else
13301 echo "$as_me:$LINENO: checking for dlopen" >&5
13302 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13303 if test "${ac_cv_func_dlopen+set}" = set; then
13304 echo $ECHO_N "(cached) $ECHO_C" >&6
13305 else
13306 cat >conftest.$ac_ext <<_ACEOF
13307 /* confdefs.h. */
13308 _ACEOF
13309 cat confdefs.h >>conftest.$ac_ext
13310 cat >>conftest.$ac_ext <<_ACEOF
13311 /* end confdefs.h. */
13312 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13314 #define dlopen innocuous_dlopen
13315
13316 /* System header to define __stub macros and hopefully few prototypes,
13317 which can conflict with char dlopen (); below.
13318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13319 <limits.h> exists even on freestanding compilers. */
13320
13321 #ifdef __STDC__
13322 # include <limits.h>
13323 #else
13324 # include <assert.h>
13325 #endif
13326
13327 #undef dlopen
13328
13329 /* Override any gcc2 internal prototype to avoid an error. */
13330 #ifdef __cplusplus
13331 extern "C"
13332 {
13333 #endif
13334 /* We use char because int might match the return type of a gcc2
13335 builtin and then its argument prototype would still apply. */
13336 char dlopen ();
13337 /* The GNU C library defines this for functions which it implements
13338 to always fail with ENOSYS. Some functions are actually named
13339 something starting with __ and the normal name is an alias. */
13340 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13341 choke me
13342 #else
13343 char (*f) () = dlopen;
13344 #endif
13345 #ifdef __cplusplus
13346 }
13347 #endif
13348
13349 int
13350 main ()
13351 {
13352 return f != dlopen;
13353 ;
13354 return 0;
13355 }
13356 _ACEOF
13357 rm -f conftest.$ac_objext conftest$ac_exeext
13358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13359 (eval $ac_link) 2>conftest.er1
13360 ac_status=$?
13361 grep -v '^ *+' conftest.er1 >conftest.err
13362 rm -f conftest.er1
13363 cat conftest.err >&5
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); } &&
13366 { ac_try='test -z "$ac_c_werror_flag"
13367 || test ! -s conftest.err'
13368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13369 (eval $ac_try) 2>&5
13370 ac_status=$?
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); }; } &&
13373 { ac_try='test -s conftest$ac_exeext'
13374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13375 (eval $ac_try) 2>&5
13376 ac_status=$?
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); }; }; then
13379 ac_cv_func_dlopen=yes
13380 else
13381 echo "$as_me: failed program was:" >&5
13382 sed 's/^/| /' conftest.$ac_ext >&5
13383
13384 ac_cv_func_dlopen=no
13385 fi
13386 rm -f conftest.err conftest.$ac_objext \
13387 conftest$ac_exeext conftest.$ac_ext
13388 fi
13389 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13390 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13391 if test $ac_cv_func_dlopen = yes; then
13392 lt_cv_dlopen="dlopen"
13393 else
13394 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13395 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13396 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13397 echo $ECHO_N "(cached) $ECHO_C" >&6
13398 else
13399 ac_check_lib_save_LIBS=$LIBS
13400 LIBS="-ldl $LIBS"
13401 cat >conftest.$ac_ext <<_ACEOF
13402 /* confdefs.h. */
13403 _ACEOF
13404 cat confdefs.h >>conftest.$ac_ext
13405 cat >>conftest.$ac_ext <<_ACEOF
13406 /* end confdefs.h. */
13407
13408 /* Override any gcc2 internal prototype to avoid an error. */
13409 #ifdef __cplusplus
13410 extern "C"
13411 #endif
13412 /* We use char because int might match the return type of a gcc2
13413 builtin and then its argument prototype would still apply. */
13414 char dlopen ();
13415 int
13416 main ()
13417 {
13418 dlopen ();
13419 ;
13420 return 0;
13421 }
13422 _ACEOF
13423 rm -f conftest.$ac_objext conftest$ac_exeext
13424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13425 (eval $ac_link) 2>conftest.er1
13426 ac_status=$?
13427 grep -v '^ *+' conftest.er1 >conftest.err
13428 rm -f conftest.er1
13429 cat conftest.err >&5
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); } &&
13432 { ac_try='test -z "$ac_c_werror_flag"
13433 || test ! -s conftest.err'
13434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13435 (eval $ac_try) 2>&5
13436 ac_status=$?
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); }; } &&
13439 { ac_try='test -s conftest$ac_exeext'
13440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13441 (eval $ac_try) 2>&5
13442 ac_status=$?
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); }; }; then
13445 ac_cv_lib_dl_dlopen=yes
13446 else
13447 echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13449
13450 ac_cv_lib_dl_dlopen=no
13451 fi
13452 rm -f conftest.err conftest.$ac_objext \
13453 conftest$ac_exeext conftest.$ac_ext
13454 LIBS=$ac_check_lib_save_LIBS
13455 fi
13456 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13457 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13458 if test $ac_cv_lib_dl_dlopen = yes; then
13459 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13460 else
13461 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13462 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13463 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13464 echo $ECHO_N "(cached) $ECHO_C" >&6
13465 else
13466 ac_check_lib_save_LIBS=$LIBS
13467 LIBS="-lsvld $LIBS"
13468 cat >conftest.$ac_ext <<_ACEOF
13469 /* confdefs.h. */
13470 _ACEOF
13471 cat confdefs.h >>conftest.$ac_ext
13472 cat >>conftest.$ac_ext <<_ACEOF
13473 /* end confdefs.h. */
13474
13475 /* Override any gcc2 internal prototype to avoid an error. */
13476 #ifdef __cplusplus
13477 extern "C"
13478 #endif
13479 /* We use char because int might match the return type of a gcc2
13480 builtin and then its argument prototype would still apply. */
13481 char dlopen ();
13482 int
13483 main ()
13484 {
13485 dlopen ();
13486 ;
13487 return 0;
13488 }
13489 _ACEOF
13490 rm -f conftest.$ac_objext conftest$ac_exeext
13491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13492 (eval $ac_link) 2>conftest.er1
13493 ac_status=$?
13494 grep -v '^ *+' conftest.er1 >conftest.err
13495 rm -f conftest.er1
13496 cat conftest.err >&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); } &&
13499 { ac_try='test -z "$ac_c_werror_flag"
13500 || test ! -s conftest.err'
13501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13502 (eval $ac_try) 2>&5
13503 ac_status=$?
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); }; } &&
13506 { ac_try='test -s conftest$ac_exeext'
13507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13508 (eval $ac_try) 2>&5
13509 ac_status=$?
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); }; }; then
13512 ac_cv_lib_svld_dlopen=yes
13513 else
13514 echo "$as_me: failed program was:" >&5
13515 sed 's/^/| /' conftest.$ac_ext >&5
13516
13517 ac_cv_lib_svld_dlopen=no
13518 fi
13519 rm -f conftest.err conftest.$ac_objext \
13520 conftest$ac_exeext conftest.$ac_ext
13521 LIBS=$ac_check_lib_save_LIBS
13522 fi
13523 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13524 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13525 if test $ac_cv_lib_svld_dlopen = yes; then
13526 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13527 else
13528 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13529 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13530 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13531 echo $ECHO_N "(cached) $ECHO_C" >&6
13532 else
13533 ac_check_lib_save_LIBS=$LIBS
13534 LIBS="-ldld $LIBS"
13535 cat >conftest.$ac_ext <<_ACEOF
13536 /* confdefs.h. */
13537 _ACEOF
13538 cat confdefs.h >>conftest.$ac_ext
13539 cat >>conftest.$ac_ext <<_ACEOF
13540 /* end confdefs.h. */
13541
13542 /* Override any gcc2 internal prototype to avoid an error. */
13543 #ifdef __cplusplus
13544 extern "C"
13545 #endif
13546 /* We use char because int might match the return type of a gcc2
13547 builtin and then its argument prototype would still apply. */
13548 char dld_link ();
13549 int
13550 main ()
13551 {
13552 dld_link ();
13553 ;
13554 return 0;
13555 }
13556 _ACEOF
13557 rm -f conftest.$ac_objext conftest$ac_exeext
13558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13559 (eval $ac_link) 2>conftest.er1
13560 ac_status=$?
13561 grep -v '^ *+' conftest.er1 >conftest.err
13562 rm -f conftest.er1
13563 cat conftest.err >&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); } &&
13566 { ac_try='test -z "$ac_c_werror_flag"
13567 || test ! -s conftest.err'
13568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569 (eval $ac_try) 2>&5
13570 ac_status=$?
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); }; } &&
13573 { ac_try='test -s conftest$ac_exeext'
13574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13575 (eval $ac_try) 2>&5
13576 ac_status=$?
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); }; }; then
13579 ac_cv_lib_dld_dld_link=yes
13580 else
13581 echo "$as_me: failed program was:" >&5
13582 sed 's/^/| /' conftest.$ac_ext >&5
13583
13584 ac_cv_lib_dld_dld_link=no
13585 fi
13586 rm -f conftest.err conftest.$ac_objext \
13587 conftest$ac_exeext conftest.$ac_ext
13588 LIBS=$ac_check_lib_save_LIBS
13589 fi
13590 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13591 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13592 if test $ac_cv_lib_dld_dld_link = yes; then
13593 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13594 fi
13595
13596
13597 fi
13598
13599
13600 fi
13601
13602
13603 fi
13604
13605
13606 fi
13607
13608
13609 fi
13610
13611 ;;
13612 esac
13613
13614 if test "x$lt_cv_dlopen" != xno; then
13615 enable_dlopen=yes
13616 else
13617 enable_dlopen=no
13618 fi
13619
13620 case $lt_cv_dlopen in
13621 dlopen)
13622 save_CPPFLAGS="$CPPFLAGS"
13623 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13624
13625 save_LDFLAGS="$LDFLAGS"
13626 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13627
13628 save_LIBS="$LIBS"
13629 LIBS="$lt_cv_dlopen_libs $LIBS"
13630
13631 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13632 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13633 if test "${lt_cv_dlopen_self+set}" = set; then
13634 echo $ECHO_N "(cached) $ECHO_C" >&6
13635 else
13636 if test "$cross_compiling" = yes; then :
13637 lt_cv_dlopen_self=cross
13638 else
13639 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13640 lt_status=$lt_dlunknown
13641 cat > conftest.$ac_ext <<EOF
13642 #line 13642 "configure"
13643 #include "confdefs.h"
13644
13645 #if HAVE_DLFCN_H
13646 #include <dlfcn.h>
13647 #endif
13648
13649 #include <stdio.h>
13650
13651 #ifdef RTLD_GLOBAL
13652 # define LT_DLGLOBAL RTLD_GLOBAL
13653 #else
13654 # ifdef DL_GLOBAL
13655 # define LT_DLGLOBAL DL_GLOBAL
13656 # else
13657 # define LT_DLGLOBAL 0
13658 # endif
13659 #endif
13660
13661 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13662 find out it does not work in some platform. */
13663 #ifndef LT_DLLAZY_OR_NOW
13664 # ifdef RTLD_LAZY
13665 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13666 # else
13667 # ifdef DL_LAZY
13668 # define LT_DLLAZY_OR_NOW DL_LAZY
13669 # else
13670 # ifdef RTLD_NOW
13671 # define LT_DLLAZY_OR_NOW RTLD_NOW
13672 # else
13673 # ifdef DL_NOW
13674 # define LT_DLLAZY_OR_NOW DL_NOW
13675 # else
13676 # define LT_DLLAZY_OR_NOW 0
13677 # endif
13678 # endif
13679 # endif
13680 # endif
13681 #endif
13682
13683 #ifdef __cplusplus
13684 extern "C" void exit (int);
13685 #endif
13686
13687 void fnord() { int i=42;}
13688 int main ()
13689 {
13690 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13691 int status = $lt_dlunknown;
13692
13693 if (self)
13694 {
13695 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13696 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13697 /* dlclose (self); */
13698 }
13699
13700 exit (status);
13701 }
13702 EOF
13703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13704 (eval $ac_link) 2>&5
13705 ac_status=$?
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13708 (./conftest; exit; ) >&5 2>/dev/null
13709 lt_status=$?
13710 case x$lt_status in
13711 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13712 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13713 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13714 esac
13715 else :
13716 # compilation failed
13717 lt_cv_dlopen_self=no
13718 fi
13719 fi
13720 rm -fr conftest*
13721
13722
13723 fi
13724 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13725 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13726
13727 if test "x$lt_cv_dlopen_self" = xyes; then
13728 LDFLAGS="$LDFLAGS $link_static_flag"
13729 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13730 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13731 if test "${lt_cv_dlopen_self_static+set}" = set; then
13732 echo $ECHO_N "(cached) $ECHO_C" >&6
13733 else
13734 if test "$cross_compiling" = yes; then :
13735 lt_cv_dlopen_self_static=cross
13736 else
13737 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13738 lt_status=$lt_dlunknown
13739 cat > conftest.$ac_ext <<EOF
13740 #line 13740 "configure"
13741 #include "confdefs.h"
13742
13743 #if HAVE_DLFCN_H
13744 #include <dlfcn.h>
13745 #endif
13746
13747 #include <stdio.h>
13748
13749 #ifdef RTLD_GLOBAL
13750 # define LT_DLGLOBAL RTLD_GLOBAL
13751 #else
13752 # ifdef DL_GLOBAL
13753 # define LT_DLGLOBAL DL_GLOBAL
13754 # else
13755 # define LT_DLGLOBAL 0
13756 # endif
13757 #endif
13758
13759 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13760 find out it does not work in some platform. */
13761 #ifndef LT_DLLAZY_OR_NOW
13762 # ifdef RTLD_LAZY
13763 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13764 # else
13765 # ifdef DL_LAZY
13766 # define LT_DLLAZY_OR_NOW DL_LAZY
13767 # else
13768 # ifdef RTLD_NOW
13769 # define LT_DLLAZY_OR_NOW RTLD_NOW
13770 # else
13771 # ifdef DL_NOW
13772 # define LT_DLLAZY_OR_NOW DL_NOW
13773 # else
13774 # define LT_DLLAZY_OR_NOW 0
13775 # endif
13776 # endif
13777 # endif
13778 # endif
13779 #endif
13780
13781 #ifdef __cplusplus
13782 extern "C" void exit (int);
13783 #endif
13784
13785 void fnord() { int i=42;}
13786 int main ()
13787 {
13788 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13789 int status = $lt_dlunknown;
13790
13791 if (self)
13792 {
13793 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13794 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13795 /* dlclose (self); */
13796 }
13797
13798 exit (status);
13799 }
13800 EOF
13801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13802 (eval $ac_link) 2>&5
13803 ac_status=$?
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13806 (./conftest; exit; ) >&5 2>/dev/null
13807 lt_status=$?
13808 case x$lt_status in
13809 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13810 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13811 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13812 esac
13813 else :
13814 # compilation failed
13815 lt_cv_dlopen_self_static=no
13816 fi
13817 fi
13818 rm -fr conftest*
13819
13820
13821 fi
13822 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13823 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13824 fi
13825
13826 CPPFLAGS="$save_CPPFLAGS"
13827 LDFLAGS="$save_LDFLAGS"
13828 LIBS="$save_LIBS"
13829 ;;
13830 esac
13831
13832 case $lt_cv_dlopen_self in
13833 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13834 *) enable_dlopen_self=unknown ;;
13835 esac
13836
13837 case $lt_cv_dlopen_self_static in
13838 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13839 *) enable_dlopen_self_static=unknown ;;
13840 esac
13841 fi
13842
13843
13844 # Report which librarie types wil actually be built
13845 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13846 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13847 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13848 echo "${ECHO_T}$can_build_shared" >&6
13849
13850 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13851 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13852 test "$can_build_shared" = "no" && enable_shared=no
13853
13854 # On AIX, shared libraries and static libraries use the same namespace, and
13855 # are all built from PIC.
13856 case $host_os in
13857 aix3*)
13858 test "$enable_shared" = yes && enable_static=no
13859 if test -n "$RANLIB"; then
13860 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13861 postinstall_cmds='$RANLIB $lib'
13862 fi
13863 ;;
13864
13865 aix4* | aix5*)
13866 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13867 test "$enable_shared" = yes && enable_static=no
13868 fi
13869 ;;
13870 esac
13871 echo "$as_me:$LINENO: result: $enable_shared" >&5
13872 echo "${ECHO_T}$enable_shared" >&6
13873
13874 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13875 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13876 # Make sure either enable_shared or enable_static is yes.
13877 test "$enable_shared" = yes || enable_static=yes
13878 echo "$as_me:$LINENO: result: $enable_static" >&5
13879 echo "${ECHO_T}$enable_static" >&6
13880
13881 # The else clause should only fire when bootstrapping the
13882 # libtool distribution, otherwise you forgot to ship ltmain.sh
13883 # with your package, and you will get complaints that there are
13884 # no rules to generate ltmain.sh.
13885 if test -f "$ltmain"; then
13886 # See if we are running on zsh, and set the options which allow our commands through
13887 # without removal of \ escapes.
13888 if test -n "${ZSH_VERSION+set}" ; then
13889 setopt NO_GLOB_SUBST
13890 fi
13891 # Now quote all the things that may contain metacharacters while being
13892 # careful not to overquote the AC_SUBSTed values. We take copies of the
13893 # variables and quote the copies for generation of the libtool script.
13894 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13895 SED SHELL STRIP \
13896 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13897 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13898 deplibs_check_method reload_flag reload_cmds need_locks \
13899 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13900 lt_cv_sys_global_symbol_to_c_name_address \
13901 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13902 old_postinstall_cmds old_postuninstall_cmds \
13903 compiler \
13904 CC \
13905 LD \
13906 lt_prog_compiler_wl \
13907 lt_prog_compiler_pic \
13908 lt_prog_compiler_static \
13909 lt_prog_compiler_no_builtin_flag \
13910 export_dynamic_flag_spec \
13911 thread_safe_flag_spec \
13912 whole_archive_flag_spec \
13913 enable_shared_with_static_runtimes \
13914 old_archive_cmds \
13915 old_archive_from_new_cmds \
13916 predep_objects \
13917 postdep_objects \
13918 predeps \
13919 postdeps \
13920 compiler_lib_search_path \
13921 archive_cmds \
13922 archive_expsym_cmds \
13923 postinstall_cmds \
13924 postuninstall_cmds \
13925 old_archive_from_expsyms_cmds \
13926 allow_undefined_flag \
13927 no_undefined_flag \
13928 export_symbols_cmds \
13929 hardcode_libdir_flag_spec \
13930 hardcode_libdir_flag_spec_ld \
13931 hardcode_libdir_separator \
13932 hardcode_automatic \
13933 module_cmds \
13934 module_expsym_cmds \
13935 lt_cv_prog_compiler_c_o \
13936 exclude_expsyms \
13937 include_expsyms; do
13938
13939 case $var in
13940 old_archive_cmds | \
13941 old_archive_from_new_cmds | \
13942 archive_cmds | \
13943 archive_expsym_cmds | \
13944 module_cmds | \
13945 module_expsym_cmds | \
13946 old_archive_from_expsyms_cmds | \
13947 export_symbols_cmds | \
13948 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13949 postinstall_cmds | postuninstall_cmds | \
13950 old_postinstall_cmds | old_postuninstall_cmds | \
13951 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13952 # Double-quote double-evaled strings.
13953 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13954 ;;
13955 *)
13956 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13957 ;;
13958 esac
13959 done
13960
13961 case $lt_echo in
13962 *'\$0 --fallback-echo"')
13963 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13964 ;;
13965 esac
13966
13967 cfgfile="${ofile}T"
13968 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
13969 $rm -f "$cfgfile"
13970 { echo "$as_me:$LINENO: creating $ofile" >&5
13971 echo "$as_me: creating $ofile" >&6;}
13972
13973 cat <<__EOF__ >> "$cfgfile"
13974 #! $SHELL
13975
13976 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13977 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
13978 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13979 #
13980 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
13981 # Free Software Foundation, Inc.
13982 #
13983 # This file is part of GNU Libtool:
13984 # Originally by Gordon Matzigkeit <[email protected]>, 1996
13985 #
13986 # This program is free software; you can redistribute it and/or modify
13987 # it under the terms of the GNU General Public License as published by
13988 # the Free Software Foundation; either version 2 of the License, or
13989 # (at your option) any later version.
13990 #
13991 # This program is distributed in the hope that it will be useful, but
13992 # WITHOUT ANY WARRANTY; without even the implied warranty of
13993 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13994 # General Public License for more details.
13995 #
13996 # You should have received a copy of the GNU General Public License
13997 # along with this program; if not, write to the Free Software
13998 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13999 #
14000 # As a special exception to the GNU General Public License, if you
14001 # distribute this file as part of a program that contains a
14002 # configuration script generated by Autoconf, you may include it under
14003 # the same distribution terms that you use for the rest of that program.
14004
14005 # A sed program that does not truncate output.
14006 SED=$lt_SED
14007
14008 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14009 Xsed="$SED -e 1s/^X//"
14010
14011 # The HP-UX ksh and POSIX shell print the target directory to stdout
14012 # if CDPATH is set.
14013 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14014
14015 # The names of the tagged configurations supported by this script.
14016 available_tags=
14017
14018 # ### BEGIN LIBTOOL CONFIG
14019
14020 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14021
14022 # Shell to use when invoking shell scripts.
14023 SHELL=$lt_SHELL
14024
14025 # Whether or not to build shared libraries.
14026 build_libtool_libs=$enable_shared
14027
14028 # Whether or not to build static libraries.
14029 build_old_libs=$enable_static
14030
14031 # Whether or not to add -lc for building shared libraries.
14032 build_libtool_need_lc=$archive_cmds_need_lc
14033
14034 # Whether or not to disallow shared libs when runtime libs are static
14035 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14036
14037 # Whether or not to optimize for fast installation.
14038 fast_install=$enable_fast_install
14039
14040 # The host system.
14041 host_alias=$host_alias
14042 host=$host
14043 host_os=$host_os
14044
14045 # The build system.
14046 build_alias=$build_alias
14047 build=$build
14048 build_os=$build_os
14049
14050 # An echo program that does not interpret backslashes.
14051 echo=$lt_echo
14052
14053 # The archiver.
14054 AR=$lt_AR
14055 AR_FLAGS=$lt_AR_FLAGS
14056
14057 # A C compiler.
14058 LTCC=$lt_LTCC
14059
14060 # A language-specific compiler.
14061 CC=$lt_compiler
14062
14063 # Is the compiler the GNU C compiler?
14064 with_gcc=$GCC
14065
14066 # An ERE matcher.
14067 EGREP=$lt_EGREP
14068
14069 # The linker used to build libraries.
14070 LD=$lt_LD
14071
14072 # Whether we need hard or soft links.
14073 LN_S=$lt_LN_S
14074
14075 # A BSD-compatible nm program.
14076 NM=$lt_NM
14077
14078 # A symbol stripping program
14079 STRIP=$lt_STRIP
14080
14081 # Used to examine libraries when file_magic_cmd begins "file"
14082 MAGIC_CMD=$MAGIC_CMD
14083
14084 # Used on cygwin: DLL creation program.
14085 DLLTOOL="$DLLTOOL"
14086
14087 # Used on cygwin: object dumper.
14088 OBJDUMP="$OBJDUMP"
14089
14090 # Used on cygwin: assembler.
14091 AS="$AS"
14092
14093 # The name of the directory that contains temporary libtool files.
14094 objdir=$objdir
14095
14096 # How to create reloadable object files.
14097 reload_flag=$lt_reload_flag
14098 reload_cmds=$lt_reload_cmds
14099
14100 # How to pass a linker flag through the compiler.
14101 wl=$lt_lt_prog_compiler_wl
14102
14103 # Object file suffix (normally "o").
14104 objext="$ac_objext"
14105
14106 # Old archive suffix (normally "a").
14107 libext="$libext"
14108
14109 # Shared library suffix (normally ".so").
14110 shrext_cmds='$shrext_cmds'
14111
14112 # Executable file suffix (normally "").
14113 exeext="$exeext"
14114
14115 # Additional compiler flags for building library objects.
14116 pic_flag=$lt_lt_prog_compiler_pic
14117 pic_mode=$pic_mode
14118
14119 # What is the maximum length of a command?
14120 max_cmd_len=$lt_cv_sys_max_cmd_len
14121
14122 # Does compiler simultaneously support -c and -o options?
14123 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14124
14125 # Must we lock files when doing compilation?
14126 need_locks=$lt_need_locks
14127
14128 # Do we need the lib prefix for modules?
14129 need_lib_prefix=$need_lib_prefix
14130
14131 # Do we need a version for libraries?
14132 need_version=$need_version
14133
14134 # Whether dlopen is supported.
14135 dlopen_support=$enable_dlopen
14136
14137 # Whether dlopen of programs is supported.
14138 dlopen_self=$enable_dlopen_self
14139
14140 # Whether dlopen of statically linked programs is supported.
14141 dlopen_self_static=$enable_dlopen_self_static
14142
14143 # Compiler flag to prevent dynamic linking.
14144 link_static_flag=$lt_lt_prog_compiler_static
14145
14146 # Compiler flag to turn off builtin functions.
14147 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14148
14149 # Compiler flag to allow reflexive dlopens.
14150 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14151
14152 # Compiler flag to generate shared objects directly from archives.
14153 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14154
14155 # Compiler flag to generate thread-safe objects.
14156 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14157
14158 # Library versioning type.
14159 version_type=$version_type
14160
14161 # Format of library name prefix.
14162 libname_spec=$lt_libname_spec
14163
14164 # List of archive names. First name is the real one, the rest are links.
14165 # The last name is the one that the linker finds with -lNAME.
14166 library_names_spec=$lt_library_names_spec
14167
14168 # The coded name of the library, if different from the real name.
14169 soname_spec=$lt_soname_spec
14170
14171 # Commands used to build and install an old-style archive.
14172 RANLIB=$lt_RANLIB
14173 old_archive_cmds=$lt_old_archive_cmds
14174 old_postinstall_cmds=$lt_old_postinstall_cmds
14175 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14176
14177 # Create an old-style archive from a shared archive.
14178 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14179
14180 # Create a temporary old-style archive to link instead of a shared archive.
14181 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14182
14183 # Commands used to build and install a shared archive.
14184 archive_cmds=$lt_archive_cmds
14185 archive_expsym_cmds=$lt_archive_expsym_cmds
14186 postinstall_cmds=$lt_postinstall_cmds
14187 postuninstall_cmds=$lt_postuninstall_cmds
14188
14189 # Commands used to build a loadable module (assumed same as above if empty)
14190 module_cmds=$lt_module_cmds
14191 module_expsym_cmds=$lt_module_expsym_cmds
14192
14193 # Commands to strip libraries.
14194 old_striplib=$lt_old_striplib
14195 striplib=$lt_striplib
14196
14197 # Dependencies to place before the objects being linked to create a
14198 # shared library.
14199 predep_objects=$lt_predep_objects
14200
14201 # Dependencies to place after the objects being linked to create a
14202 # shared library.
14203 postdep_objects=$lt_postdep_objects
14204
14205 # Dependencies to place before the objects being linked to create a
14206 # shared library.
14207 predeps=$lt_predeps
14208
14209 # Dependencies to place after the objects being linked to create a
14210 # shared library.
14211 postdeps=$lt_postdeps
14212
14213 # The library search path used internally by the compiler when linking
14214 # a shared library.
14215 compiler_lib_search_path=$lt_compiler_lib_search_path
14216
14217 # Method to check whether dependent libraries are shared objects.
14218 deplibs_check_method=$lt_deplibs_check_method
14219
14220 # Command to use when deplibs_check_method == file_magic.
14221 file_magic_cmd=$lt_file_magic_cmd
14222
14223 # Flag that allows shared libraries with undefined symbols to be built.
14224 allow_undefined_flag=$lt_allow_undefined_flag
14225
14226 # Flag that forces no undefined symbols.
14227 no_undefined_flag=$lt_no_undefined_flag
14228
14229 # Commands used to finish a libtool library installation in a directory.
14230 finish_cmds=$lt_finish_cmds
14231
14232 # Same as above, but a single script fragment to be evaled but not shown.
14233 finish_eval=$lt_finish_eval
14234
14235 # Take the output of nm and produce a listing of raw symbols and C names.
14236 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14237
14238 # Transform the output of nm in a proper C declaration
14239 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14240
14241 # Transform the output of nm in a C name address pair
14242 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14243
14244 # This is the shared library runtime path variable.
14245 runpath_var=$runpath_var
14246
14247 # This is the shared library path variable.
14248 shlibpath_var=$shlibpath_var
14249
14250 # Is shlibpath searched before the hard-coded library search path?
14251 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14252
14253 # How to hardcode a shared library path into an executable.
14254 hardcode_action=$hardcode_action
14255
14256 # Whether we should hardcode library paths into libraries.
14257 hardcode_into_libs=$hardcode_into_libs
14258
14259 # Flag to hardcode \$libdir into a binary during linking.
14260 # This must work even if \$libdir does not exist.
14261 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14262
14263 # If ld is used when linking, flag to hardcode \$libdir into
14264 # a binary during linking. This must work even if \$libdir does
14265 # not exist.
14266 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14267
14268 # Whether we need a single -rpath flag with a separated argument.
14269 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14270
14271 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14272 # resulting binary.
14273 hardcode_direct=$hardcode_direct
14274
14275 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14276 # resulting binary.
14277 hardcode_minus_L=$hardcode_minus_L
14278
14279 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14280 # the resulting binary.
14281 hardcode_shlibpath_var=$hardcode_shlibpath_var
14282
14283 # Set to yes if building a shared library automatically hardcodes DIR into the library
14284 # and all subsequent libraries and executables linked against it.
14285 hardcode_automatic=$hardcode_automatic
14286
14287 # Variables whose values should be saved in libtool wrapper scripts and
14288 # restored at relink time.
14289 variables_saved_for_relink="$variables_saved_for_relink"
14290
14291 # Whether libtool must link a program against all its dependency libraries.
14292 link_all_deplibs=$link_all_deplibs
14293
14294 # Compile-time system search path for libraries
14295 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14296
14297 # Run-time system search path for libraries
14298 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14299
14300 # Fix the shell variable \$srcfile for the compiler.
14301 fix_srcfile_path="$fix_srcfile_path"
14302
14303 # Set to yes if exported symbols are required.
14304 always_export_symbols=$always_export_symbols
14305
14306 # The commands to list exported symbols.
14307 export_symbols_cmds=$lt_export_symbols_cmds
14308
14309 # The commands to extract the exported symbol list from a shared archive.
14310 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14311
14312 # Symbols that should not be listed in the preloaded symbols.
14313 exclude_expsyms=$lt_exclude_expsyms
14314
14315 # Symbols that must always be exported.
14316 include_expsyms=$lt_include_expsyms
14317
14318 # ### END LIBTOOL CONFIG
14319
14320 __EOF__
14321
14322
14323 case $host_os in
14324 aix3*)
14325 cat <<\EOF >> "$cfgfile"
14326
14327 # AIX sometimes has problems with the GCC collect2 program. For some
14328 # reason, if we set the COLLECT_NAMES environment variable, the problems
14329 # vanish in a puff of smoke.
14330 if test "X${COLLECT_NAMES+set}" != Xset; then
14331 COLLECT_NAMES=
14332 export COLLECT_NAMES
14333 fi
14334 EOF
14335 ;;
14336 esac
14337
14338 # We use sed instead of cat because bash on DJGPP gets confused if
14339 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14340 # text mode, it properly converts lines to CR/LF. This bash problem
14341 # is reportedly fixed, but why not run on old versions too?
14342 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14343
14344 mv -f "$cfgfile" "$ofile" || \
14345 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14346 chmod +x "$ofile"
14347
14348 else
14349 # If there is no Makefile yet, we rely on a make rule to execute
14350 # `config.status --recheck' to rerun these tests and create the
14351 # libtool script then.
14352 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14353 if test -f "$ltmain_in"; then
14354 test -f Makefile && make "$ltmain"
14355 fi
14356 fi
14357
14358
14359 ac_ext=c
14360 ac_cpp='$CPP $CPPFLAGS'
14361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14364
14365 CC="$lt_save_CC"
14366
14367
14368 # Check whether --with-tags or --without-tags was given.
14369 if test "${with_tags+set}" = set; then
14370 withval="$with_tags"
14371 tagnames="$withval"
14372 fi;
14373
14374 if test -f "$ltmain" && test -n "$tagnames"; then
14375 if test ! -f "${ofile}"; then
14376 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14377 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14378 fi
14379
14380 if test -z "$LTCC"; then
14381 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14382 if test -z "$LTCC"; then
14383 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14384 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14385 else
14386 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14387 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14388 fi
14389 fi
14390
14391 # Extract list of available tagged configurations in $ofile.
14392 # Note that this assumes the entire list is on one line.
14393 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14394
14395 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14396 for tagname in $tagnames; do
14397 IFS="$lt_save_ifs"
14398 # Check whether tagname contains only valid characters
14399 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14400 "") ;;
14401 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14402 echo "$as_me: error: invalid tag name: $tagname" >&2;}
14403 { (exit 1); exit 1; }; }
14404 ;;
14405 esac
14406
14407 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
14408 then
14409 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
14410 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
14411 { (exit 1); exit 1; }; }
14412 fi
14413
14414 # Update the list of available tags.
14415 if test -n "$tagname"; then
14416 echo appending configuration tag \"$tagname\" to $ofile
14417
14418 case $tagname in
14419 CXX)
14420 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14421 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14422 (test "X$CXX" != "Xg++"))) ; then
14423 ac_ext=cc
14424 ac_cpp='$CXXCPP $CPPFLAGS'
14425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14428
14429
14430
14431
14432 archive_cmds_need_lc_CXX=no
14433 allow_undefined_flag_CXX=
14434 always_export_symbols_CXX=no
14435 archive_expsym_cmds_CXX=
14436 export_dynamic_flag_spec_CXX=
14437 hardcode_direct_CXX=no
14438 hardcode_libdir_flag_spec_CXX=
14439 hardcode_libdir_flag_spec_ld_CXX=
14440 hardcode_libdir_separator_CXX=
14441 hardcode_minus_L_CXX=no
14442 hardcode_automatic_CXX=no
14443 module_cmds_CXX=
14444 module_expsym_cmds_CXX=
14445 link_all_deplibs_CXX=unknown
14446 old_archive_cmds_CXX=$old_archive_cmds
14447 no_undefined_flag_CXX=
14448 whole_archive_flag_spec_CXX=
14449 enable_shared_with_static_runtimes_CXX=no
14450
14451 # Dependencies to place before and after the object being linked:
14452 predep_objects_CXX=
14453 postdep_objects_CXX=
14454 predeps_CXX=
14455 postdeps_CXX=
14456 compiler_lib_search_path_CXX=
14457
14458 # Source file extension for C++ test sources.
14459 ac_ext=cpp
14460
14461 # Object file extension for compiled C++ test sources.
14462 objext=o
14463 objext_CXX=$objext
14464
14465 # Code to be used in simple compile tests
14466 lt_simple_compile_test_code="int some_variable = 0;\n"
14467
14468 # Code to be used in simple link tests
14469 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
14470
14471 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14472
14473 # If no C compiler was specified, use CC.
14474 LTCC=${LTCC-"$CC"}
14475
14476 # Allow CC to be a program name with arguments.
14477 compiler=$CC
14478
14479
14480 # save warnings/boilerplate of simple test code
14481 ac_outfile=conftest.$ac_objext
14482 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14483 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14484 _lt_compiler_boilerplate=`cat conftest.err`
14485 $rm conftest*
14486
14487 ac_outfile=conftest.$ac_objext
14488 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14489 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14490 _lt_linker_boilerplate=`cat conftest.err`
14491 $rm conftest*
14492
14493
14494 # Allow CC to be a program name with arguments.
14495 lt_save_CC=$CC
14496 lt_save_LD=$LD
14497 lt_save_GCC=$GCC
14498 GCC=$GXX
14499 lt_save_with_gnu_ld=$with_gnu_ld
14500 lt_save_path_LD=$lt_cv_path_LD
14501 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14502 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14503 else
14504 unset lt_cv_prog_gnu_ld
14505 fi
14506 if test -n "${lt_cv_path_LDCXX+set}"; then
14507 lt_cv_path_LD=$lt_cv_path_LDCXX
14508 else
14509 unset lt_cv_path_LD
14510 fi
14511 test -z "${LDCXX+set}" || LD=$LDCXX
14512 CC=${CXX-"c++"}
14513 compiler=$CC
14514 compiler_CXX=$CC
14515 for cc_temp in $compiler""; do
14516 case $cc_temp in
14517 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14518 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14519 \-*) ;;
14520 *) break;;
14521 esac
14522 done
14523 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14524
14525
14526 # We don't want -fno-exception wen compiling C++ code, so set the
14527 # no_builtin_flag separately
14528 if test "$GXX" = yes; then
14529 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14530 else
14531 lt_prog_compiler_no_builtin_flag_CXX=
14532 fi
14533
14534 if test "$GXX" = yes; then
14535 # Set up default GNU C++ configuration
14536
14537
14538 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14539 if test "${with_gnu_ld+set}" = set; then
14540 withval="$with_gnu_ld"
14541 test "$withval" = no || with_gnu_ld=yes
14542 else
14543 with_gnu_ld=no
14544 fi;
14545 ac_prog=ld
14546 if test "$GCC" = yes; then
14547 # Check if gcc -print-prog-name=ld gives a path.
14548 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14549 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14550 case $host in
14551 *-*-mingw*)
14552 # gcc leaves a trailing carriage return which upsets mingw
14553 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14554 *)
14555 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14556 esac
14557 case $ac_prog in
14558 # Accept absolute paths.
14559 [\\/]* | ?:[\\/]*)
14560 re_direlt='/[^/][^/]*/\.\./'
14561 # Canonicalize the pathname of ld
14562 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
14563 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14564 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
14565 done
14566 test -z "$LD" && LD="$ac_prog"
14567 ;;
14568 "")
14569 # If it fails, then pretend we aren't using GCC.
14570 ac_prog=ld
14571 ;;
14572 *)
14573 # If it is relative, then search for the first ld in PATH.
14574 with_gnu_ld=unknown
14575 ;;
14576 esac
14577 elif test "$with_gnu_ld" = yes; then
14578 echo "$as_me:$LINENO: checking for GNU ld" >&5
14579 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14580 else
14581 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14582 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14583 fi
14584 if test "${lt_cv_path_LD+set}" = set; then
14585 echo $ECHO_N "(cached) $ECHO_C" >&6
14586 else
14587 if test -z "$LD"; then
14588 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14589 for ac_dir in $PATH; do
14590 IFS="$lt_save_ifs"
14591 test -z "$ac_dir" && ac_dir=.
14592 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14593 lt_cv_path_LD="$ac_dir/$ac_prog"
14594 # Check to see if the program is GNU ld. I'd rather use --version,
14595 # but apparently some variants of GNU ld only accept -v.
14596 # Break only if it was the GNU/non-GNU ld that we prefer.
14597 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14598 *GNU* | *'with BFD'*)
14599 test "$with_gnu_ld" != no && break
14600 ;;
14601 *)
14602 test "$with_gnu_ld" != yes && break
14603 ;;
14604 esac
14605 fi
14606 done
14607 IFS="$lt_save_ifs"
14608 else
14609 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14610 fi
14611 fi
14612
14613 LD="$lt_cv_path_LD"
14614 if test -n "$LD"; then
14615 echo "$as_me:$LINENO: result: $LD" >&5
14616 echo "${ECHO_T}$LD" >&6
14617 else
14618 echo "$as_me:$LINENO: result: no" >&5
14619 echo "${ECHO_T}no" >&6
14620 fi
14621 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14622 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14623 { (exit 1); exit 1; }; }
14624 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14625 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14626 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14627 echo $ECHO_N "(cached) $ECHO_C" >&6
14628 else
14629 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14630 case `$LD -v 2>&1 </dev/null` in
14631 *GNU* | *'with BFD'*)
14632 lt_cv_prog_gnu_ld=yes
14633 ;;
14634 *)
14635 lt_cv_prog_gnu_ld=no
14636 ;;
14637 esac
14638 fi
14639 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14640 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14641 with_gnu_ld=$lt_cv_prog_gnu_ld
14642
14643
14644
14645 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14646 # archiving commands below assume that GNU ld is being used.
14647 if test "$with_gnu_ld" = yes; then
14648 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14649 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'
14650
14651 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14652 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14653
14654 # If archive_cmds runs LD, not CC, wlarc should be empty
14655 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14656 # investigate it a little bit more. (MM)
14657 wlarc='${wl}'
14658
14659 # ancient GNU ld didn't support --whole-archive et. al.
14660 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
14661 grep 'no-whole-archive' > /dev/null; then
14662 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14663 else
14664 whole_archive_flag_spec_CXX=
14665 fi
14666 else
14667 with_gnu_ld=no
14668 wlarc=
14669
14670 # A generic and very simple default shared library creation
14671 # command for GNU C++ for the case where it uses the native
14672 # linker, instead of GNU ld. If possible, this setting should
14673 # overridden to take advantage of the native linker features on
14674 # the platform it is being used on.
14675 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14676 fi
14677
14678 # Commands to make compiler produce verbose output that lists
14679 # what "hidden" libraries, object files and flags are used when
14680 # linking a shared library.
14681 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14682
14683 else
14684 GXX=no
14685 with_gnu_ld=no
14686 wlarc=
14687 fi
14688
14689 # PORTME: fill in a description of your system's C++ link characteristics
14690 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14691 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14692 ld_shlibs_CXX=yes
14693 case $host_os in
14694 aix3*)
14695 # FIXME: insert proper C++ library support
14696 ld_shlibs_CXX=no
14697 ;;
14698 aix4* | aix5*)
14699 if test "$host_cpu" = ia64; then
14700 # On IA64, the linker does run time linking by default, so we don't
14701 # have to do anything special.
14702 aix_use_runtimelinking=no
14703 exp_sym_flag='-Bexport'
14704 no_entry_flag=""
14705 else
14706 aix_use_runtimelinking=no
14707
14708 # Test if we are trying to use run time linking or normal
14709 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14710 # need to do runtime linking.
14711 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14712 for ld_flag in $LDFLAGS; do
14713 case $ld_flag in
14714 *-brtl*)
14715 aix_use_runtimelinking=yes
14716 break
14717 ;;
14718 esac
14719 done
14720 esac
14721
14722 exp_sym_flag='-bexport'
14723 no_entry_flag='-bnoentry'
14724 fi
14725
14726 # When large executables or shared objects are built, AIX ld can
14727 # have problems creating the table of contents. If linking a library
14728 # or program results in "error TOC overflow" add -mminimal-toc to
14729 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14730 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14731
14732 archive_cmds_CXX=''
14733 hardcode_direct_CXX=yes
14734 hardcode_libdir_separator_CXX=':'
14735 link_all_deplibs_CXX=yes
14736
14737 if test "$GXX" = yes; then
14738 case $host_os in aix4.[012]|aix4.[012].*)
14739 # We only want to do this on AIX 4.2 and lower, the check
14740 # below for broken collect2 doesn't work under 4.3+
14741 collect2name=`${CC} -print-prog-name=collect2`
14742 if test -f "$collect2name" && \
14743 strings "$collect2name" | grep resolve_lib_name >/dev/null
14744 then
14745 # We have reworked collect2
14746 hardcode_direct_CXX=yes
14747 else
14748 # We have old collect2
14749 hardcode_direct_CXX=unsupported
14750 # It fails to find uninstalled libraries when the uninstalled
14751 # path is not listed in the libpath. Setting hardcode_minus_L
14752 # to unsupported forces relinking
14753 hardcode_minus_L_CXX=yes
14754 hardcode_libdir_flag_spec_CXX='-L$libdir'
14755 hardcode_libdir_separator_CXX=
14756 fi
14757 esac
14758 shared_flag='-shared'
14759 if test "$aix_use_runtimelinking" = yes; then
14760 shared_flag="$shared_flag "'${wl}-G'
14761 fi
14762 else
14763 # not using gcc
14764 if test "$host_cpu" = ia64; then
14765 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14766 # chokes on -Wl,-G. The following line is correct:
14767 shared_flag='-G'
14768 else
14769 if test "$aix_use_runtimelinking" = yes; then
14770 shared_flag='${wl}-G'
14771 else
14772 shared_flag='${wl}-bM:SRE'
14773 fi
14774 fi
14775 fi
14776
14777 # It seems that -bexpall does not export symbols beginning with
14778 # underscore (_), so it is better to generate a list of symbols to export.
14779 always_export_symbols_CXX=yes
14780 if test "$aix_use_runtimelinking" = yes; then
14781 # Warning - without using the other runtime loading flags (-brtl),
14782 # -berok will link without error, but may produce a broken library.
14783 allow_undefined_flag_CXX='-berok'
14784 # Determine the default libpath from the value encoded in an empty executable.
14785 cat >conftest.$ac_ext <<_ACEOF
14786 /* confdefs.h. */
14787 _ACEOF
14788 cat confdefs.h >>conftest.$ac_ext
14789 cat >>conftest.$ac_ext <<_ACEOF
14790 /* end confdefs.h. */
14791
14792 int
14793 main ()
14794 {
14795
14796 ;
14797 return 0;
14798 }
14799 _ACEOF
14800 rm -f conftest.$ac_objext conftest$ac_exeext
14801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14802 (eval $ac_link) 2>conftest.er1
14803 ac_status=$?
14804 grep -v '^ *+' conftest.er1 >conftest.err
14805 rm -f conftest.er1
14806 cat conftest.err >&5
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); } &&
14809 { ac_try='test -z "$ac_cxx_werror_flag"
14810 || test ! -s conftest.err'
14811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812 (eval $ac_try) 2>&5
14813 ac_status=$?
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); }; } &&
14816 { ac_try='test -s conftest$ac_exeext'
14817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14818 (eval $ac_try) 2>&5
14819 ac_status=$?
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); }; }; then
14822
14823 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14824 }'`
14825 # Check for a 64-bit object if we didn't find anything.
14826 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; }
14827 }'`; fi
14828 else
14829 echo "$as_me: failed program was:" >&5
14830 sed 's/^/| /' conftest.$ac_ext >&5
14831
14832 fi
14833 rm -f conftest.err conftest.$ac_objext \
14834 conftest$ac_exeext conftest.$ac_ext
14835 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14836
14837 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14838
14839 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14840 else
14841 if test "$host_cpu" = ia64; then
14842 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14843 allow_undefined_flag_CXX="-z nodefs"
14844 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14845 else
14846 # Determine the default libpath from the value encoded in an empty executable.
14847 cat >conftest.$ac_ext <<_ACEOF
14848 /* confdefs.h. */
14849 _ACEOF
14850 cat confdefs.h >>conftest.$ac_ext
14851 cat >>conftest.$ac_ext <<_ACEOF
14852 /* end confdefs.h. */
14853
14854 int
14855 main ()
14856 {
14857
14858 ;
14859 return 0;
14860 }
14861 _ACEOF
14862 rm -f conftest.$ac_objext conftest$ac_exeext
14863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14864 (eval $ac_link) 2>conftest.er1
14865 ac_status=$?
14866 grep -v '^ *+' conftest.er1 >conftest.err
14867 rm -f conftest.er1
14868 cat conftest.err >&5
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); } &&
14871 { ac_try='test -z "$ac_cxx_werror_flag"
14872 || test ! -s conftest.err'
14873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14874 (eval $ac_try) 2>&5
14875 ac_status=$?
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; } &&
14878 { ac_try='test -s conftest$ac_exeext'
14879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14880 (eval $ac_try) 2>&5
14881 ac_status=$?
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); }; }; then
14884
14885 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14886 }'`
14887 # Check for a 64-bit object if we didn't find anything.
14888 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; }
14889 }'`; fi
14890 else
14891 echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.$ac_ext >&5
14893
14894 fi
14895 rm -f conftest.err conftest.$ac_objext \
14896 conftest$ac_exeext conftest.$ac_ext
14897 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14898
14899 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14900 # Warning - without using the other run time loading flags,
14901 # -berok will link without error, but may produce a broken library.
14902 no_undefined_flag_CXX=' ${wl}-bernotok'
14903 allow_undefined_flag_CXX=' ${wl}-berok'
14904 # -bexpall does not export symbols beginning with underscore (_)
14905 always_export_symbols_CXX=yes
14906 # Exported symbols can be pulled into shared objects from archives
14907 whole_archive_flag_spec_CXX=' '
14908 archive_cmds_need_lc_CXX=yes
14909 # This is similar to how AIX traditionally builds its shared libraries.
14910 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14911 fi
14912 fi
14913 ;;
14914 chorus*)
14915 case $cc_basename in
14916 *)
14917 # FIXME: insert proper C++ library support
14918 ld_shlibs_CXX=no
14919 ;;
14920 esac
14921 ;;
14922
14923
14924 cygwin* | mingw* | pw32*)
14925 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14926 # as there is no search path for DLLs.
14927 hardcode_libdir_flag_spec_CXX='-L$libdir'
14928 allow_undefined_flag_CXX=unsupported
14929 always_export_symbols_CXX=no
14930 enable_shared_with_static_runtimes_CXX=yes
14931
14932 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14933 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14934 # If the export-symbols file already is a .def file (1st line
14935 # is EXPORTS), use it as is; otherwise, prepend...
14936 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14937 cp $export_symbols $output_objdir/$soname.def;
14938 else
14939 echo EXPORTS > $output_objdir/$soname.def;
14940 cat $export_symbols >> $output_objdir/$soname.def;
14941 fi~
14942 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14943 else
14944 ld_shlibs_CXX=no
14945 fi
14946 ;;
14947 darwin* | rhapsody*)
14948 case $host_os in
14949 rhapsody* | darwin1.[012])
14950 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
14951 ;;
14952 *) # Darwin 1.3 on
14953 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14954 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14955 else
14956 case ${MACOSX_DEPLOYMENT_TARGET} in
14957 10.[012])
14958 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14959 ;;
14960 10.*)
14961 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
14962 ;;
14963 esac
14964 fi
14965 ;;
14966 esac
14967 archive_cmds_need_lc_CXX=no
14968 hardcode_direct_CXX=no
14969 hardcode_automatic_CXX=yes
14970 hardcode_shlibpath_var_CXX=unsupported
14971 whole_archive_flag_spec_CXX=''
14972 link_all_deplibs_CXX=yes
14973
14974 if test "$GXX" = yes ; then
14975 lt_int_apple_cc_single_mod=no
14976 output_verbose_link_cmd='echo'
14977 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
14978 lt_int_apple_cc_single_mod=yes
14979 fi
14980 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14981 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14982 else
14983 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'
14984 fi
14985 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14986 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14987 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14988 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}'
14989 else
14990 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}'
14991 fi
14992 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}'
14993 else
14994 case $cc_basename in
14995 xlc*)
14996 output_verbose_link_cmd='echo'
14997 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'
14998 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14999 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15000 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}'
15001 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}'
15002 ;;
15003 *)
15004 ld_shlibs_CXX=no
15005 ;;
15006 esac
15007 fi
15008 ;;
15009
15010 dgux*)
15011 case $cc_basename in
15012 ec++*)
15013 # FIXME: insert proper C++ library support
15014 ld_shlibs_CXX=no
15015 ;;
15016 ghcx*)
15017 # Green Hills C++ Compiler
15018 # FIXME: insert proper C++ library support
15019 ld_shlibs_CXX=no
15020 ;;
15021 *)
15022 # FIXME: insert proper C++ library support
15023 ld_shlibs_CXX=no
15024 ;;
15025 esac
15026 ;;
15027 freebsd[12]*)
15028 # C++ shared libraries reported to be fairly broken before switch to ELF
15029 ld_shlibs_CXX=no
15030 ;;
15031 freebsd-elf*)
15032 archive_cmds_need_lc_CXX=no
15033 ;;
15034 freebsd* | kfreebsd*-gnu | dragonfly*)
15035 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15036 # conventions
15037 ld_shlibs_CXX=yes
15038 ;;
15039 gnu*)
15040 ;;
15041 hpux9*)
15042 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15043 hardcode_libdir_separator_CXX=:
15044 export_dynamic_flag_spec_CXX='${wl}-E'
15045 hardcode_direct_CXX=yes
15046 hardcode_minus_L_CXX=yes # Not in the search PATH,
15047 # but as the default
15048 # location of the library.
15049
15050 case $cc_basename in
15051 CC*)
15052 # FIXME: insert proper C++ library support
15053 ld_shlibs_CXX=no
15054 ;;
15055 aCC*)
15056 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'
15057 # Commands to make compiler produce verbose output that lists
15058 # what "hidden" libraries, object files and flags are used when
15059 # linking a shared library.
15060 #
15061 # There doesn't appear to be a way to prevent this compiler from
15062 # explicitly linking system object files so we need to strip them
15063 # from the output so that they don't get included in the library
15064 # dependencies.
15065 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'
15066 ;;
15067 *)
15068 if test "$GXX" = yes; then
15069 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'
15070 else
15071 # FIXME: insert proper C++ library support
15072 ld_shlibs_CXX=no
15073 fi
15074 ;;
15075 esac
15076 ;;
15077 hpux10*|hpux11*)
15078 if test $with_gnu_ld = no; then
15079 case $host_cpu in
15080 hppa*64*)
15081 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15082 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15083 hardcode_libdir_separator_CXX=:
15084 ;;
15085 ia64*)
15086 hardcode_libdir_flag_spec_CXX='-L$libdir'
15087 ;;
15088 *)
15089 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15090 hardcode_libdir_separator_CXX=:
15091 export_dynamic_flag_spec_CXX='${wl}-E'
15092 ;;
15093 esac
15094 fi
15095 case $host_cpu in
15096 hppa*64*)
15097 hardcode_direct_CXX=no
15098 hardcode_shlibpath_var_CXX=no
15099 ;;
15100 ia64*)
15101 hardcode_direct_CXX=no
15102 hardcode_shlibpath_var_CXX=no
15103 hardcode_minus_L_CXX=yes # Not in the search PATH,
15104 # but as the default
15105 # location of the library.
15106 ;;
15107 *)
15108 hardcode_direct_CXX=yes
15109 hardcode_minus_L_CXX=yes # Not in the search PATH,
15110 # but as the default
15111 # location of the library.
15112 ;;
15113 esac
15114
15115 case $cc_basename in
15116 CC*)
15117 # FIXME: insert proper C++ library support
15118 ld_shlibs_CXX=no
15119 ;;
15120 aCC*)
15121 case $host_cpu in
15122 hppa*64*|ia64*)
15123 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15124 ;;
15125 *)
15126 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15127 ;;
15128 esac
15129 # Commands to make compiler produce verbose output that lists
15130 # what "hidden" libraries, object files and flags are used when
15131 # linking a shared library.
15132 #
15133 # There doesn't appear to be a way to prevent this compiler from
15134 # explicitly linking system object files so we need to strip them
15135 # from the output so that they don't get included in the library
15136 # dependencies.
15137 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'
15138 ;;
15139 *)
15140 if test "$GXX" = yes; then
15141 if test $with_gnu_ld = no; then
15142 case $host_cpu in
15143 ia64*|hppa*64*)
15144 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15145 ;;
15146 *)
15147 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'
15148 ;;
15149 esac
15150 fi
15151 else
15152 # FIXME: insert proper C++ library support
15153 ld_shlibs_CXX=no
15154 fi
15155 ;;
15156 esac
15157 ;;
15158 irix5* | irix6*)
15159 case $cc_basename in
15160 CC*)
15161 # SGI C++
15162 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'
15163
15164 # Archives containing C++ object files must be created using
15165 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15166 # necessary to make sure instantiated templates are included
15167 # in the archive.
15168 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15169 ;;
15170 *)
15171 if test "$GXX" = yes; then
15172 if test "$with_gnu_ld" = no; then
15173 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'
15174 else
15175 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'
15176 fi
15177 fi
15178 link_all_deplibs_CXX=yes
15179 ;;
15180 esac
15181 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15182 hardcode_libdir_separator_CXX=:
15183 ;;
15184 linux*)
15185 case $cc_basename in
15186 KCC*)
15187 # Kuck and Associates, Inc. (KAI) C++ Compiler
15188
15189 # KCC will only create a shared library if the output file
15190 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15191 # to its proper name (with version) after linking.
15192 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'
15193 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'
15194 # Commands to make compiler produce verbose output that lists
15195 # what "hidden" libraries, object files and flags are used when
15196 # linking a shared library.
15197 #
15198 # There doesn't appear to be a way to prevent this compiler from
15199 # explicitly linking system object files so we need to strip them
15200 # from the output so that they don't get included in the library
15201 # dependencies.
15202 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'
15203
15204 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15205 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15206
15207 # Archives containing C++ object files must be created using
15208 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15209 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15210 ;;
15211 icpc*)
15212 # Intel C++
15213 with_gnu_ld=yes
15214 # version 8.0 and above of icpc choke on multiply defined symbols
15215 # if we add $predep_objects and $postdep_objects, however 7.1 and
15216 # earlier do not add the objects themselves.
15217 case `$CC -V 2>&1` in
15218 *"Version 7."*)
15219 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15220 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'
15221 ;;
15222 *) # Version 8.0 or newer
15223 tmp_idyn=
15224 case $host_cpu in
15225 ia64*) tmp_idyn=' -i_dynamic';;
15226 esac
15227 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15228 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'
15229 ;;
15230 esac
15231 archive_cmds_need_lc_CXX=no
15232 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15233 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15234 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15235 ;;
15236 pgCC*)
15237 # Portland Group C++ compiler
15238 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15239 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'
15240
15241 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15242 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15243 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'
15244 ;;
15245 cxx*)
15246 # Compaq C++
15247 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15248 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'
15249
15250 runpath_var=LD_RUN_PATH
15251 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15252 hardcode_libdir_separator_CXX=:
15253
15254 # Commands to make compiler produce verbose output that lists
15255 # what "hidden" libraries, object files and flags are used when
15256 # linking a shared library.
15257 #
15258 # There doesn't appear to be a way to prevent this compiler from
15259 # explicitly linking system object files so we need to strip them
15260 # from the output so that they don't get included in the library
15261 # dependencies.
15262 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'
15263 ;;
15264 esac
15265 ;;
15266 lynxos*)
15267 # FIXME: insert proper C++ library support
15268 ld_shlibs_CXX=no
15269 ;;
15270 m88k*)
15271 # FIXME: insert proper C++ library support
15272 ld_shlibs_CXX=no
15273 ;;
15274 mvs*)
15275 case $cc_basename in
15276 cxx*)
15277 # FIXME: insert proper C++ library support
15278 ld_shlibs_CXX=no
15279 ;;
15280 *)
15281 # FIXME: insert proper C++ library support
15282 ld_shlibs_CXX=no
15283 ;;
15284 esac
15285 ;;
15286 netbsd*)
15287 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15288 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15289 wlarc=
15290 hardcode_libdir_flag_spec_CXX='-R$libdir'
15291 hardcode_direct_CXX=yes
15292 hardcode_shlibpath_var_CXX=no
15293 fi
15294 # Workaround some broken pre-1.5 toolchains
15295 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15296 ;;
15297 openbsd2*)
15298 # C++ shared libraries are fairly broken
15299 ld_shlibs_CXX=no
15300 ;;
15301 openbsd*)
15302 hardcode_direct_CXX=yes
15303 hardcode_shlibpath_var_CXX=no
15304 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15305 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15306 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15307 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15308 export_dynamic_flag_spec_CXX='${wl}-E'
15309 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15310 fi
15311 output_verbose_link_cmd='echo'
15312 ;;
15313 osf3*)
15314 case $cc_basename in
15315 KCC*)
15316 # Kuck and Associates, Inc. (KAI) C++ Compiler
15317
15318 # KCC will only create a shared library if the output file
15319 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15320 # to its proper name (with version) after linking.
15321 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'
15322
15323 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15324 hardcode_libdir_separator_CXX=:
15325
15326 # Archives containing C++ object files must be created using
15327 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15328 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15329
15330 ;;
15331 RCC*)
15332 # Rational C++ 2.4.1
15333 # FIXME: insert proper C++ library support
15334 ld_shlibs_CXX=no
15335 ;;
15336 cxx*)
15337 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15338 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'
15339
15340 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15341 hardcode_libdir_separator_CXX=:
15342
15343 # Commands to make compiler produce verbose output that lists
15344 # what "hidden" libraries, object files and flags are used when
15345 # linking a shared library.
15346 #
15347 # There doesn't appear to be a way to prevent this compiler from
15348 # explicitly linking system object files so we need to strip them
15349 # from the output so that they don't get included in the library
15350 # dependencies.
15351 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'
15352 ;;
15353 *)
15354 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15355 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15356 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'
15357
15358 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15359 hardcode_libdir_separator_CXX=:
15360
15361 # Commands to make compiler produce verbose output that lists
15362 # what "hidden" libraries, object files and flags are used when
15363 # linking a shared library.
15364 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15365
15366 else
15367 # FIXME: insert proper C++ library support
15368 ld_shlibs_CXX=no
15369 fi
15370 ;;
15371 esac
15372 ;;
15373 osf4* | osf5*)
15374 case $cc_basename in
15375 KCC*)
15376 # Kuck and Associates, Inc. (KAI) C++ Compiler
15377
15378 # KCC will only create a shared library if the output file
15379 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15380 # to its proper name (with version) after linking.
15381 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'
15382
15383 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15384 hardcode_libdir_separator_CXX=:
15385
15386 # Archives containing C++ object files must be created using
15387 # the KAI C++ compiler.
15388 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15389 ;;
15390 RCC*)
15391 # Rational C++ 2.4.1
15392 # FIXME: insert proper C++ library support
15393 ld_shlibs_CXX=no
15394 ;;
15395 cxx*)
15396 allow_undefined_flag_CXX=' -expect_unresolved \*'
15397 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'
15398 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15399 echo "-hidden">> $lib.exp~
15400 $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~
15401 $rm $lib.exp'
15402
15403 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15404 hardcode_libdir_separator_CXX=:
15405
15406 # Commands to make compiler produce verbose output that lists
15407 # what "hidden" libraries, object files and flags are used when
15408 # linking a shared library.
15409 #
15410 # There doesn't appear to be a way to prevent this compiler from
15411 # explicitly linking system object files so we need to strip them
15412 # from the output so that they don't get included in the library
15413 # dependencies.
15414 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'
15415 ;;
15416 *)
15417 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15418 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15419 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'
15420
15421 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15422 hardcode_libdir_separator_CXX=:
15423
15424 # Commands to make compiler produce verbose output that lists
15425 # what "hidden" libraries, object files and flags are used when
15426 # linking a shared library.
15427 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15428
15429 else
15430 # FIXME: insert proper C++ library support
15431 ld_shlibs_CXX=no
15432 fi
15433 ;;
15434 esac
15435 ;;
15436 psos*)
15437 # FIXME: insert proper C++ library support
15438 ld_shlibs_CXX=no
15439 ;;
15440 sco*)
15441 archive_cmds_need_lc_CXX=no
15442 case $cc_basename in
15443 CC*)
15444 # FIXME: insert proper C++ library support
15445 ld_shlibs_CXX=no
15446 ;;
15447 *)
15448 # FIXME: insert proper C++ library support
15449 ld_shlibs_CXX=no
15450 ;;
15451 esac
15452 ;;
15453 sunos4*)
15454 case $cc_basename in
15455 CC*)
15456 # Sun C++ 4.x
15457 # FIXME: insert proper C++ library support
15458 ld_shlibs_CXX=no
15459 ;;
15460 lcc*)
15461 # Lucid
15462 # FIXME: insert proper C++ library support
15463 ld_shlibs_CXX=no
15464 ;;
15465 *)
15466 # FIXME: insert proper C++ library support
15467 ld_shlibs_CXX=no
15468 ;;
15469 esac
15470 ;;
15471 solaris*)
15472 case $cc_basename in
15473 CC*)
15474 # Sun C++ 4.2, 5.x and Centerline C++
15475 archive_cmds_need_lc_CXX=yes
15476 no_undefined_flag_CXX=' -zdefs'
15477 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15478 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15479 $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'
15480
15481 hardcode_libdir_flag_spec_CXX='-R$libdir'
15482 hardcode_shlibpath_var_CXX=no
15483 case $host_os in
15484 solaris2.[0-5] | solaris2.[0-5].*) ;;
15485 *)
15486 # The C++ compiler is used as linker so we must use $wl
15487 # flag to pass the commands to the underlying system
15488 # linker. We must also pass each convience library through
15489 # to the system linker between allextract/defaultextract.
15490 # The C++ compiler will combine linker options so we
15491 # cannot just pass the convience library names through
15492 # without $wl.
15493 # Supported since Solaris 2.6 (maybe 2.5.1?)
15494 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'
15495 ;;
15496 esac
15497 link_all_deplibs_CXX=yes
15498
15499 output_verbose_link_cmd='echo'
15500
15501 # Archives containing C++ object files must be created using
15502 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15503 # necessary to make sure instantiated templates are included
15504 # in the archive.
15505 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15506 ;;
15507 gcx*)
15508 # Green Hills C++ Compiler
15509 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15510
15511 # The C++ compiler must be used to create the archive.
15512 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15513 ;;
15514 *)
15515 # GNU C++ compiler with Solaris linker
15516 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15517 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15518 if $CC --version | grep -v '^2\.7' > /dev/null; then
15519 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15520 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15521 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15522
15523 # Commands to make compiler produce verbose output that lists
15524 # what "hidden" libraries, object files and flags are used when
15525 # linking a shared library.
15526 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15527 else
15528 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15529 # platform.
15530 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15531 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15532 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15533
15534 # Commands to make compiler produce verbose output that lists
15535 # what "hidden" libraries, object files and flags are used when
15536 # linking a shared library.
15537 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15538 fi
15539
15540 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15541 fi
15542 ;;
15543 esac
15544 ;;
15545 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15546 archive_cmds_need_lc_CXX=no
15547 ;;
15548 tandem*)
15549 case $cc_basename in
15550 NCC*)
15551 # NonStop-UX NCC 3.20
15552 # FIXME: insert proper C++ library support
15553 ld_shlibs_CXX=no
15554 ;;
15555 *)
15556 # FIXME: insert proper C++ library support
15557 ld_shlibs_CXX=no
15558 ;;
15559 esac
15560 ;;
15561 vxworks*)
15562 # FIXME: insert proper C++ library support
15563 ld_shlibs_CXX=no
15564 ;;
15565 *)
15566 # FIXME: insert proper C++ library support
15567 ld_shlibs_CXX=no
15568 ;;
15569 esac
15570 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15571 echo "${ECHO_T}$ld_shlibs_CXX" >&6
15572 test "$ld_shlibs_CXX" = no && can_build_shared=no
15573
15574 GCC_CXX="$GXX"
15575 LD_CXX="$LD"
15576
15577
15578 cat > conftest.$ac_ext <<EOF
15579 class Foo
15580 {
15581 public:
15582 Foo (void) { a = 0; }
15583 private:
15584 int a;
15585 };
15586 EOF
15587
15588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15589 (eval $ac_compile) 2>&5
15590 ac_status=$?
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; then
15593 # Parse the compiler output and extract the necessary
15594 # objects, libraries and library flags.
15595
15596 # Sentinel used to keep track of whether or not we are before
15597 # the conftest object file.
15598 pre_test_object_deps_done=no
15599
15600 # The `*' in the case matches for architectures that use `case' in
15601 # $output_verbose_cmd can trigger glob expansion during the loop
15602 # eval without this substitution.
15603 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
15604
15605 for p in `eval $output_verbose_link_cmd`; do
15606 case $p in
15607
15608 -L* | -R* | -l*)
15609 # Some compilers place space between "-{L,R}" and the path.
15610 # Remove the space.
15611 if test $p = "-L" \
15612 || test $p = "-R"; then
15613 prev=$p
15614 continue
15615 else
15616 prev=
15617 fi
15618
15619 if test "$pre_test_object_deps_done" = no; then
15620 case $p in
15621 -L* | -R*)
15622 # Internal compiler library paths should come after those
15623 # provided the user. The postdeps already come after the
15624 # user supplied libs so there is no need to process them.
15625 if test -z "$compiler_lib_search_path_CXX"; then
15626 compiler_lib_search_path_CXX="${prev}${p}"
15627 else
15628 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15629 fi
15630 ;;
15631 # The "-l" case would never come before the object being
15632 # linked, so don't bother handling this case.
15633 esac
15634 else
15635 if test -z "$postdeps_CXX"; then
15636 postdeps_CXX="${prev}${p}"
15637 else
15638 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15639 fi
15640 fi
15641 ;;
15642
15643 *.$objext)
15644 # This assumes that the test object file only shows up
15645 # once in the compiler output.
15646 if test "$p" = "conftest.$objext"; then
15647 pre_test_object_deps_done=yes
15648 continue
15649 fi
15650
15651 if test "$pre_test_object_deps_done" = no; then
15652 if test -z "$predep_objects_CXX"; then
15653 predep_objects_CXX="$p"
15654 else
15655 predep_objects_CXX="$predep_objects_CXX $p"
15656 fi
15657 else
15658 if test -z "$postdep_objects_CXX"; then
15659 postdep_objects_CXX="$p"
15660 else
15661 postdep_objects_CXX="$postdep_objects_CXX $p"
15662 fi
15663 fi
15664 ;;
15665
15666 *) ;; # Ignore the rest.
15667
15668 esac
15669 done
15670
15671 # Clean up.
15672 rm -f a.out a.exe
15673 else
15674 echo "libtool.m4: error: problem compiling CXX test program"
15675 fi
15676
15677 $rm -f confest.$objext
15678
15679 # PORTME: override above test on systems where it is broken
15680 case $host_os in
15681 solaris*)
15682 case $cc_basename in
15683 CC*)
15684 # Adding this requires a known-good setup of shared libraries for
15685 # Sun compiler versions before 5.6, else PIC objects from an old
15686 # archive will be linked into the output, leading to subtle bugs.
15687 postdeps_CXX='-lCstd -lCrun'
15688 ;;
15689 esac
15690 esac
15691
15692
15693 case " $postdeps_CXX " in
15694 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15695 esac
15696
15697 lt_prog_compiler_wl_CXX=
15698 lt_prog_compiler_pic_CXX=
15699 lt_prog_compiler_static_CXX=
15700
15701 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15702 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15703
15704 # C++ specific cases for pic, static, wl, etc.
15705 if test "$GXX" = yes; then
15706 lt_prog_compiler_wl_CXX='-Wl,'
15707 lt_prog_compiler_static_CXX='-static'
15708
15709 case $host_os in
15710 aix*)
15711 # All AIX code is PIC.
15712 if test "$host_cpu" = ia64; then
15713 # AIX 5 now supports IA64 processor
15714 lt_prog_compiler_static_CXX='-Bstatic'
15715 fi
15716 ;;
15717 amigaos*)
15718 # FIXME: we need at least 68020 code to build shared libraries, but
15719 # adding the `-m68020' flag to GCC prevents building anything better,
15720 # like `-m68040'.
15721 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15722 ;;
15723 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15724 # PIC is the default for these OSes.
15725 ;;
15726 mingw* | os2* | pw32*)
15727 # This hack is so that the source file can tell whether it is being
15728 # built for inclusion in a dll (and should export symbols for example).
15729 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15730 ;;
15731 darwin* | rhapsody*)
15732 # PIC is the default on this platform
15733 # Common symbols not allowed in MH_DYLIB files
15734 lt_prog_compiler_pic_CXX='-fno-common'
15735 ;;
15736 *djgpp*)
15737 # DJGPP does not support shared libraries at all
15738 lt_prog_compiler_pic_CXX=
15739 ;;
15740 sysv4*MP*)
15741 if test -d /usr/nec; then
15742 lt_prog_compiler_pic_CXX=-Kconform_pic
15743 fi
15744 ;;
15745 hpux*)
15746 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15747 # not for PA HP-UX.
15748 case $host_cpu in
15749 hppa*64*|ia64*)
15750 ;;
15751 *)
15752 lt_prog_compiler_pic_CXX='-fPIC'
15753 ;;
15754 esac
15755 ;;
15756 *)
15757 lt_prog_compiler_pic_CXX='-fPIC'
15758 ;;
15759 esac
15760 else
15761 case $host_os in
15762 aix4* | aix5*)
15763 # All AIX code is PIC.
15764 if test "$host_cpu" = ia64; then
15765 # AIX 5 now supports IA64 processor
15766 lt_prog_compiler_static_CXX='-Bstatic'
15767 else
15768 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15769 fi
15770 ;;
15771 chorus*)
15772 case $cc_basename in
15773 cxch68*)
15774 # Green Hills C++ Compiler
15775 # _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"
15776 ;;
15777 esac
15778 ;;
15779 darwin*)
15780 # PIC is the default on this platform
15781 # Common symbols not allowed in MH_DYLIB files
15782 case $cc_basename in
15783 xlc*)
15784 lt_prog_compiler_pic_CXX='-qnocommon'
15785 lt_prog_compiler_wl_CXX='-Wl,'
15786 ;;
15787 esac
15788 ;;
15789 dgux*)
15790 case $cc_basename in
15791 ec++*)
15792 lt_prog_compiler_pic_CXX='-KPIC'
15793 ;;
15794 ghcx*)
15795 # Green Hills C++ Compiler
15796 lt_prog_compiler_pic_CXX='-pic'
15797 ;;
15798 *)
15799 ;;
15800 esac
15801 ;;
15802 freebsd* | kfreebsd*-gnu | dragonfly*)
15803 # FreeBSD uses GNU C++
15804 ;;
15805 hpux9* | hpux10* | hpux11*)
15806 case $cc_basename in
15807 CC*)
15808 lt_prog_compiler_wl_CXX='-Wl,'
15809 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
15810 if test "$host_cpu" != ia64; then
15811 lt_prog_compiler_pic_CXX='+Z'
15812 fi
15813 ;;
15814 aCC*)
15815 lt_prog_compiler_wl_CXX='-Wl,'
15816 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
15817 case $host_cpu in
15818 hppa*64*|ia64*)
15819 # +Z the default
15820 ;;
15821 *)
15822 lt_prog_compiler_pic_CXX='+Z'
15823 ;;
15824 esac
15825 ;;
15826 *)
15827 ;;
15828 esac
15829 ;;
15830 irix5* | irix6* | nonstopux*)
15831 case $cc_basename in
15832 CC*)
15833 lt_prog_compiler_wl_CXX='-Wl,'
15834 lt_prog_compiler_static_CXX='-non_shared'
15835 # CC pic flag -KPIC is the default.
15836 ;;
15837 *)
15838 ;;
15839 esac
15840 ;;
15841 linux*)
15842 case $cc_basename in
15843 KCC*)
15844 # KAI C++ Compiler
15845 lt_prog_compiler_wl_CXX='--backend -Wl,'
15846 lt_prog_compiler_pic_CXX='-fPIC'
15847 ;;
15848 icpc* | ecpc*)
15849 # Intel C++
15850 lt_prog_compiler_wl_CXX='-Wl,'
15851 lt_prog_compiler_pic_CXX='-KPIC'
15852 lt_prog_compiler_static_CXX='-static'
15853 ;;
15854 pgCC*)
15855 # Portland Group C++ compiler.
15856 lt_prog_compiler_wl_CXX='-Wl,'
15857 lt_prog_compiler_pic_CXX='-fpic'
15858 lt_prog_compiler_static_CXX='-Bstatic'
15859 ;;
15860 cxx*)
15861 # Compaq C++
15862 # Make sure the PIC flag is empty. It appears that all Alpha
15863 # Linux and Compaq Tru64 Unix objects are PIC.
15864 lt_prog_compiler_pic_CXX=
15865 lt_prog_compiler_static_CXX='-non_shared'
15866 ;;
15867 *)
15868 ;;
15869 esac
15870 ;;
15871 lynxos*)
15872 ;;
15873 m88k*)
15874 ;;
15875 mvs*)
15876 case $cc_basename in
15877 cxx*)
15878 lt_prog_compiler_pic_CXX='-W c,exportall'
15879 ;;
15880 *)
15881 ;;
15882 esac
15883 ;;
15884 netbsd*)
15885 ;;
15886 osf3* | osf4* | osf5*)
15887 case $cc_basename in
15888 KCC*)
15889 lt_prog_compiler_wl_CXX='--backend -Wl,'
15890 ;;
15891 RCC*)
15892 # Rational C++ 2.4.1
15893 lt_prog_compiler_pic_CXX='-pic'
15894 ;;
15895 cxx*)
15896 # Digital/Compaq C++
15897 lt_prog_compiler_wl_CXX='-Wl,'
15898 # Make sure the PIC flag is empty. It appears that all Alpha
15899 # Linux and Compaq Tru64 Unix objects are PIC.
15900 lt_prog_compiler_pic_CXX=
15901 lt_prog_compiler_static_CXX='-non_shared'
15902 ;;
15903 *)
15904 ;;
15905 esac
15906 ;;
15907 psos*)
15908 ;;
15909 sco*)
15910 case $cc_basename in
15911 CC*)
15912 lt_prog_compiler_pic_CXX='-fPIC'
15913 ;;
15914 *)
15915 ;;
15916 esac
15917 ;;
15918 solaris*)
15919 case $cc_basename in
15920 CC*)
15921 # Sun C++ 4.2, 5.x and Centerline C++
15922 lt_prog_compiler_pic_CXX='-KPIC'
15923 lt_prog_compiler_static_CXX='-Bstatic'
15924 lt_prog_compiler_wl_CXX='-Qoption ld '
15925 ;;
15926 gcx*)
15927 # Green Hills C++ Compiler
15928 lt_prog_compiler_pic_CXX='-PIC'
15929 ;;
15930 *)
15931 ;;
15932 esac
15933 ;;
15934 sunos4*)
15935 case $cc_basename in
15936 CC*)
15937 # Sun C++ 4.x
15938 lt_prog_compiler_pic_CXX='-pic'
15939 lt_prog_compiler_static_CXX='-Bstatic'
15940 ;;
15941 lcc*)
15942 # Lucid
15943 lt_prog_compiler_pic_CXX='-pic'
15944 ;;
15945 *)
15946 ;;
15947 esac
15948 ;;
15949 tandem*)
15950 case $cc_basename in
15951 NCC*)
15952 # NonStop-UX NCC 3.20
15953 lt_prog_compiler_pic_CXX='-KPIC'
15954 ;;
15955 *)
15956 ;;
15957 esac
15958 ;;
15959 unixware*)
15960 ;;
15961 vxworks*)
15962 ;;
15963 *)
15964 lt_prog_compiler_can_build_shared_CXX=no
15965 ;;
15966 esac
15967 fi
15968
15969 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
15970 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
15971
15972 #
15973 # Check to make sure the PIC flag actually works.
15974 #
15975 if test -n "$lt_prog_compiler_pic_CXX"; then
15976
15977 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15978 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
15979 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
15980 echo $ECHO_N "(cached) $ECHO_C" >&6
15981 else
15982 lt_prog_compiler_pic_works_CXX=no
15983 ac_outfile=conftest.$ac_objext
15984 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15985 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15986 # Insert the option either (1) after the last *FLAGS variable, or
15987 # (2) before a word containing "conftest.", or (3) at the end.
15988 # Note that $ac_compile itself does not contain backslashes and begins
15989 # with a dollar sign (not a hyphen), so the echo should work correctly.
15990 # The option is referenced via a variable to avoid confusing sed.
15991 lt_compile=`echo "$ac_compile" | $SED \
15992 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15994 -e 's:$: $lt_compiler_flag:'`
15995 (eval echo "\"\$as_me:15995: $lt_compile\"" >&5)
15996 (eval "$lt_compile" 2>conftest.err)
15997 ac_status=$?
15998 cat conftest.err >&5
15999 echo "$as_me:15999: \$? = $ac_status" >&5
16000 if (exit $ac_status) && test -s "$ac_outfile"; then
16001 # The compiler can only warn and ignore the option if not recognized
16002 # So say no if there are warnings other than the usual output.
16003 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16004 $SED '/^$/d' conftest.err >conftest.er2
16005 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16006 lt_prog_compiler_pic_works_CXX=yes
16007 fi
16008 fi
16009 $rm conftest*
16010
16011 fi
16012 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16013 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16014
16015 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16016 case $lt_prog_compiler_pic_CXX in
16017 "" | " "*) ;;
16018 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16019 esac
16020 else
16021 lt_prog_compiler_pic_CXX=
16022 lt_prog_compiler_can_build_shared_CXX=no
16023 fi
16024
16025 fi
16026 case $host_os in
16027 # For platforms which do not support PIC, -DPIC is meaningless:
16028 *djgpp*)
16029 lt_prog_compiler_pic_CXX=
16030 ;;
16031 *)
16032 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16033 ;;
16034 esac
16035
16036 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16037 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16038 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16039 echo $ECHO_N "(cached) $ECHO_C" >&6
16040 else
16041 lt_cv_prog_compiler_c_o_CXX=no
16042 $rm -r conftest 2>/dev/null
16043 mkdir conftest
16044 cd conftest
16045 mkdir out
16046 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16047
16048 lt_compiler_flag="-o out/conftest2.$ac_objext"
16049 # Insert the option either (1) after the last *FLAGS variable, or
16050 # (2) before a word containing "conftest.", or (3) at the end.
16051 # Note that $ac_compile itself does not contain backslashes and begins
16052 # with a dollar sign (not a hyphen), so the echo should work correctly.
16053 lt_compile=`echo "$ac_compile" | $SED \
16054 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16056 -e 's:$: $lt_compiler_flag:'`
16057 (eval echo "\"\$as_me:16057: $lt_compile\"" >&5)
16058 (eval "$lt_compile" 2>out/conftest.err)
16059 ac_status=$?
16060 cat out/conftest.err >&5
16061 echo "$as_me:16061: \$? = $ac_status" >&5
16062 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16063 then
16064 # The compiler can only warn and ignore the option if not recognized
16065 # So say no if there are warnings
16066 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16067 $SED '/^$/d' out/conftest.err >out/conftest.er2
16068 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16069 lt_cv_prog_compiler_c_o_CXX=yes
16070 fi
16071 fi
16072 chmod u+w . 2>&5
16073 $rm conftest*
16074 # SGI C++ compiler will create directory out/ii_files/ for
16075 # template instantiation
16076 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16077 $rm out/* && rmdir out
16078 cd ..
16079 rmdir conftest
16080 $rm conftest*
16081
16082 fi
16083 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16084 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16085
16086
16087 hard_links="nottested"
16088 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16089 # do not overwrite the value of need_locks provided by the user
16090 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16091 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16092 hard_links=yes
16093 $rm conftest*
16094 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16095 touch conftest.a
16096 ln conftest.a conftest.b 2>&5 || hard_links=no
16097 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16098 echo "$as_me:$LINENO: result: $hard_links" >&5
16099 echo "${ECHO_T}$hard_links" >&6
16100 if test "$hard_links" = no; then
16101 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16102 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16103 need_locks=warn
16104 fi
16105 else
16106 need_locks=no
16107 fi
16108
16109 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16110 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16111
16112 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16113 case $host_os in
16114 aix4* | aix5*)
16115 # If we're using GNU nm, then we don't want the "-C" option.
16116 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16117 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16118 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'
16119 else
16120 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'
16121 fi
16122 ;;
16123 pw32*)
16124 export_symbols_cmds_CXX="$ltdll_cmds"
16125 ;;
16126 cygwin* | mingw*)
16127 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'
16128 ;;
16129 *)
16130 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16131 ;;
16132 esac
16133
16134 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16135 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16136 test "$ld_shlibs_CXX" = no && can_build_shared=no
16137
16138 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16139 if test "$GCC" = yes; then
16140 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16141 fi
16142
16143 #
16144 # Do we need to explicitly link libc?
16145 #
16146 case "x$archive_cmds_need_lc_CXX" in
16147 x|xyes)
16148 # Assume -lc should be added
16149 archive_cmds_need_lc_CXX=yes
16150
16151 if test "$enable_shared" = yes && test "$GCC" = yes; then
16152 case $archive_cmds_CXX in
16153 *'~'*)
16154 # FIXME: we may have to deal with multi-command sequences.
16155 ;;
16156 '$CC '*)
16157 # Test whether the compiler implicitly links with -lc since on some
16158 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16159 # to ld, don't add -lc before -lgcc.
16160 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16161 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16162 $rm conftest*
16163 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16164
16165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16166 (eval $ac_compile) 2>&5
16167 ac_status=$?
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); } 2>conftest.err; then
16170 soname=conftest
16171 lib=conftest
16172 libobjs=conftest.$ac_objext
16173 deplibs=
16174 wl=$lt_prog_compiler_wl_CXX
16175 compiler_flags=-v
16176 linker_flags=-v
16177 verstring=
16178 output_objdir=.
16179 libname=conftest
16180 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16181 allow_undefined_flag_CXX=
16182 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16183 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16184 ac_status=$?
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); }
16187 then
16188 archive_cmds_need_lc_CXX=no
16189 else
16190 archive_cmds_need_lc_CXX=yes
16191 fi
16192 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16193 else
16194 cat conftest.err 1>&5
16195 fi
16196 $rm conftest*
16197 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16198 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16199 ;;
16200 esac
16201 fi
16202 ;;
16203 esac
16204
16205 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16206 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16207 library_names_spec=
16208 libname_spec='lib$name'
16209 soname_spec=
16210 shrext_cmds=".so"
16211 postinstall_cmds=
16212 postuninstall_cmds=
16213 finish_cmds=
16214 finish_eval=
16215 shlibpath_var=
16216 shlibpath_overrides_runpath=unknown
16217 version_type=none
16218 dynamic_linker="$host_os ld.so"
16219 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16220 if test "$GCC" = yes; then
16221 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16222 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16223 # if the path contains ";" then we assume it to be the separator
16224 # otherwise default to the standard path separator (i.e. ":") - it is
16225 # assumed that no part of a normal pathname contains ";" but that should
16226 # okay in the real world where ";" in dirpaths is itself problematic.
16227 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16228 else
16229 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16230 fi
16231 else
16232 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16233 fi
16234 need_lib_prefix=unknown
16235 hardcode_into_libs=no
16236
16237 # when you set need_version to no, make sure it does not cause -set_version
16238 # flags to be left without arguments
16239 need_version=unknown
16240
16241 case $host_os in
16242 aix3*)
16243 version_type=linux
16244 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16245 shlibpath_var=LIBPATH
16246
16247 # AIX 3 has no versioning support, so we append a major version to the name.
16248 soname_spec='${libname}${release}${shared_ext}$major'
16249 ;;
16250
16251 aix4* | aix5*)
16252 version_type=linux
16253 need_lib_prefix=no
16254 need_version=no
16255 hardcode_into_libs=yes
16256 if test "$host_cpu" = ia64; then
16257 # AIX 5 supports IA64
16258 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16259 shlibpath_var=LD_LIBRARY_PATH
16260 else
16261 # With GCC up to 2.95.x, collect2 would create an import file
16262 # for dependence libraries. The import file would start with
16263 # the line `#! .'. This would cause the generated library to
16264 # depend on `.', always an invalid library. This was fixed in
16265 # development snapshots of GCC prior to 3.0.
16266 case $host_os in
16267 aix4 | aix4.[01] | aix4.[01].*)
16268 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16269 echo ' yes '
16270 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16271 :
16272 else
16273 can_build_shared=no
16274 fi
16275 ;;
16276 esac
16277 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16278 # soname into executable. Probably we can add versioning support to
16279 # collect2, so additional links can be useful in future.
16280 if test "$aix_use_runtimelinking" = yes; then
16281 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16282 # instead of lib<name>.a to let people know that these are not
16283 # typical AIX shared libraries.
16284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16285 else
16286 # We preserve .a as extension for shared libraries through AIX4.2
16287 # and later when we are not doing run time linking.
16288 library_names_spec='${libname}${release}.a $libname.a'
16289 soname_spec='${libname}${release}${shared_ext}$major'
16290 fi
16291 shlibpath_var=LIBPATH
16292 fi
16293 ;;
16294
16295 amigaos*)
16296 library_names_spec='$libname.ixlibrary $libname.a'
16297 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16298 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'
16299 ;;
16300
16301 beos*)
16302 library_names_spec='${libname}${shared_ext}'
16303 dynamic_linker="$host_os ld.so"
16304 shlibpath_var=LIBRARY_PATH
16305 ;;
16306
16307 bsdi[45]*)
16308 version_type=linux
16309 need_version=no
16310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16311 soname_spec='${libname}${release}${shared_ext}$major'
16312 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16313 shlibpath_var=LD_LIBRARY_PATH
16314 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16315 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16316 # the default ld.so.conf also contains /usr/contrib/lib and
16317 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16318 # libtool to hard-code these into programs
16319 ;;
16320
16321 cygwin* | mingw* | pw32*)
16322 version_type=windows
16323 shrext_cmds=".dll"
16324 need_version=no
16325 need_lib_prefix=no
16326
16327 case $GCC,$host_os in
16328 yes,cygwin* | yes,mingw* | yes,pw32*)
16329 library_names_spec='$libname.dll.a'
16330 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16331 postinstall_cmds='base_file=`basename \${file}`~
16332 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16333 dldir=$destdir/`dirname \$dlpath`~
16334 test -d \$dldir || mkdir -p \$dldir~
16335 $install_prog $dir/$dlname \$dldir/$dlname~
16336 chmod a+x \$dldir/$dlname'
16337 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16338 dlpath=$dir/\$dldll~
16339 $rm \$dlpath'
16340 shlibpath_overrides_runpath=yes
16341
16342 case $host_os in
16343 cygwin*)
16344 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16345 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16346 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16347 ;;
16348 mingw*)
16349 # MinGW DLLs use traditional 'lib' prefix
16350 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16351 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16352 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16353 # It is most probably a Windows format PATH printed by
16354 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16355 # path with ; separators, and with drive letters. We can handle the
16356 # drive letters (cygwin fileutils understands them), so leave them,
16357 # especially as we might pass files found there to a mingw objdump,
16358 # which wouldn't understand a cygwinified path. Ahh.
16359 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16360 else
16361 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16362 fi
16363 ;;
16364 pw32*)
16365 # pw32 DLLs use 'pw' prefix rather than 'lib'
16366 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16367 ;;
16368 esac
16369 ;;
16370
16371 *)
16372 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16373 ;;
16374 esac
16375 dynamic_linker='Win32 ld.exe'
16376 # FIXME: first we should search . and the directory the executable is in
16377 shlibpath_var=PATH
16378 ;;
16379
16380 darwin* | rhapsody*)
16381 dynamic_linker="$host_os dyld"
16382 version_type=darwin
16383 need_lib_prefix=no
16384 need_version=no
16385 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16386 soname_spec='${libname}${release}${major}$shared_ext'
16387 shlibpath_overrides_runpath=yes
16388 shlibpath_var=DYLD_LIBRARY_PATH
16389 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16390 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16391 if test "$GCC" = yes; then
16392 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"`
16393 else
16394 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16395 fi
16396 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16397 ;;
16398
16399 dgux*)
16400 version_type=linux
16401 need_lib_prefix=no
16402 need_version=no
16403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16404 soname_spec='${libname}${release}${shared_ext}$major'
16405 shlibpath_var=LD_LIBRARY_PATH
16406 ;;
16407
16408 freebsd1*)
16409 dynamic_linker=no
16410 ;;
16411
16412 kfreebsd*-gnu)
16413 version_type=linux
16414 need_lib_prefix=no
16415 need_version=no
16416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16417 soname_spec='${libname}${release}${shared_ext}$major'
16418 shlibpath_var=LD_LIBRARY_PATH
16419 shlibpath_overrides_runpath=no
16420 hardcode_into_libs=yes
16421 dynamic_linker='GNU ld.so'
16422 ;;
16423
16424 freebsd* | dragonfly*)
16425 # DragonFly does not have aout. When/if they implement a new
16426 # versioning mechanism, adjust this.
16427 if test -x /usr/bin/objformat; then
16428 objformat=`/usr/bin/objformat`
16429 else
16430 case $host_os in
16431 freebsd[123]*) objformat=aout ;;
16432 *) objformat=elf ;;
16433 esac
16434 fi
16435 version_type=freebsd-$objformat
16436 case $version_type in
16437 freebsd-elf*)
16438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16439 need_version=no
16440 need_lib_prefix=no
16441 ;;
16442 freebsd-*)
16443 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16444 need_version=yes
16445 ;;
16446 esac
16447 shlibpath_var=LD_LIBRARY_PATH
16448 case $host_os in
16449 freebsd2*)
16450 shlibpath_overrides_runpath=yes
16451 ;;
16452 freebsd3.[01]* | freebsdelf3.[01]*)
16453 shlibpath_overrides_runpath=yes
16454 hardcode_into_libs=yes
16455 ;;
16456 *) # from 3.2 on
16457 shlibpath_overrides_runpath=no
16458 hardcode_into_libs=yes
16459 ;;
16460 esac
16461 ;;
16462
16463 gnu*)
16464 version_type=linux
16465 need_lib_prefix=no
16466 need_version=no
16467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16468 soname_spec='${libname}${release}${shared_ext}$major'
16469 shlibpath_var=LD_LIBRARY_PATH
16470 hardcode_into_libs=yes
16471 ;;
16472
16473 hpux9* | hpux10* | hpux11*)
16474 # Give a soname corresponding to the major version so that dld.sl refuses to
16475 # link against other versions.
16476 version_type=sunos
16477 need_lib_prefix=no
16478 need_version=no
16479 case $host_cpu in
16480 ia64*)
16481 shrext_cmds='.so'
16482 hardcode_into_libs=yes
16483 dynamic_linker="$host_os dld.so"
16484 shlibpath_var=LD_LIBRARY_PATH
16485 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16487 soname_spec='${libname}${release}${shared_ext}$major'
16488 if test "X$HPUX_IA64_MODE" = X32; then
16489 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16490 else
16491 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16492 fi
16493 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16494 ;;
16495 hppa*64*)
16496 shrext_cmds='.sl'
16497 hardcode_into_libs=yes
16498 dynamic_linker="$host_os dld.sl"
16499 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16500 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16502 soname_spec='${libname}${release}${shared_ext}$major'
16503 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16504 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16505 ;;
16506 *)
16507 shrext_cmds='.sl'
16508 dynamic_linker="$host_os dld.sl"
16509 shlibpath_var=SHLIB_PATH
16510 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16512 soname_spec='${libname}${release}${shared_ext}$major'
16513 ;;
16514 esac
16515 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16516 postinstall_cmds='chmod 555 $lib'
16517 ;;
16518
16519 irix5* | irix6* | nonstopux*)
16520 case $host_os in
16521 nonstopux*) version_type=nonstopux ;;
16522 *)
16523 if test "$lt_cv_prog_gnu_ld" = yes; then
16524 version_type=linux
16525 else
16526 version_type=irix
16527 fi ;;
16528 esac
16529 need_lib_prefix=no
16530 need_version=no
16531 soname_spec='${libname}${release}${shared_ext}$major'
16532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16533 case $host_os in
16534 irix5* | nonstopux*)
16535 libsuff= shlibsuff=
16536 ;;
16537 *)
16538 case $LD in # libtool.m4 will add one of these switches to LD
16539 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16540 libsuff= shlibsuff= libmagic=32-bit;;
16541 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16542 libsuff=32 shlibsuff=N32 libmagic=N32;;
16543 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16544 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16545 *) libsuff= shlibsuff= libmagic=never-match;;
16546 esac
16547 ;;
16548 esac
16549 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16550 shlibpath_overrides_runpath=no
16551 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16552 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16553 hardcode_into_libs=yes
16554 ;;
16555
16556 # No shared lib support for Linux oldld, aout, or coff.
16557 linux*oldld* | linux*aout* | linux*coff*)
16558 dynamic_linker=no
16559 ;;
16560
16561 # This must be Linux ELF.
16562 linux*)
16563 version_type=linux
16564 need_lib_prefix=no
16565 need_version=no
16566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16567 soname_spec='${libname}${release}${shared_ext}$major'
16568 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16569 shlibpath_var=LD_LIBRARY_PATH
16570 shlibpath_overrides_runpath=no
16571 # This implies no fast_install, which is unacceptable.
16572 # Some rework will be needed to allow for fast_install
16573 # before this can be enabled.
16574 hardcode_into_libs=yes
16575
16576 # Append ld.so.conf contents to the search path
16577 if test -f /etc/ld.so.conf; then
16578 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16579 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16580 fi
16581
16582 # We used to test for /lib/ld.so.1 and disable shared libraries on
16583 # powerpc, because MkLinux only supported shared libraries with the
16584 # GNU dynamic linker. Since this was broken with cross compilers,
16585 # most powerpc-linux boxes support dynamic linking these days and
16586 # people can always --disable-shared, the test was removed, and we
16587 # assume the GNU/Linux dynamic linker is in use.
16588 dynamic_linker='GNU/Linux ld.so'
16589 ;;
16590
16591 knetbsd*-gnu)
16592 version_type=linux
16593 need_lib_prefix=no
16594 need_version=no
16595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16596 soname_spec='${libname}${release}${shared_ext}$major'
16597 shlibpath_var=LD_LIBRARY_PATH
16598 shlibpath_overrides_runpath=no
16599 hardcode_into_libs=yes
16600 dynamic_linker='GNU ld.so'
16601 ;;
16602
16603 netbsd*)
16604 version_type=sunos
16605 need_lib_prefix=no
16606 need_version=no
16607 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16609 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16610 dynamic_linker='NetBSD (a.out) ld.so'
16611 else
16612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16613 soname_spec='${libname}${release}${shared_ext}$major'
16614 dynamic_linker='NetBSD ld.elf_so'
16615 fi
16616 shlibpath_var=LD_LIBRARY_PATH
16617 shlibpath_overrides_runpath=yes
16618 hardcode_into_libs=yes
16619 ;;
16620
16621 newsos6)
16622 version_type=linux
16623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16624 shlibpath_var=LD_LIBRARY_PATH
16625 shlibpath_overrides_runpath=yes
16626 ;;
16627
16628 nto-qnx*)
16629 version_type=linux
16630 need_lib_prefix=no
16631 need_version=no
16632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16633 soname_spec='${libname}${release}${shared_ext}$major'
16634 shlibpath_var=LD_LIBRARY_PATH
16635 shlibpath_overrides_runpath=yes
16636 ;;
16637
16638 openbsd*)
16639 version_type=sunos
16640 need_lib_prefix=no
16641 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16642 case $host_os in
16643 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16644 *) need_version=no ;;
16645 esac
16646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16648 shlibpath_var=LD_LIBRARY_PATH
16649 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16650 case $host_os in
16651 openbsd2.[89] | openbsd2.[89].*)
16652 shlibpath_overrides_runpath=no
16653 ;;
16654 *)
16655 shlibpath_overrides_runpath=yes
16656 ;;
16657 esac
16658 else
16659 shlibpath_overrides_runpath=yes
16660 fi
16661 ;;
16662
16663 os2*)
16664 libname_spec='$name'
16665 shrext_cmds=".dll"
16666 need_lib_prefix=no
16667 library_names_spec='$libname${shared_ext} $libname.a'
16668 dynamic_linker='OS/2 ld.exe'
16669 shlibpath_var=LIBPATH
16670 ;;
16671
16672 osf3* | osf4* | osf5*)
16673 version_type=osf
16674 need_lib_prefix=no
16675 need_version=no
16676 soname_spec='${libname}${release}${shared_ext}$major'
16677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16678 shlibpath_var=LD_LIBRARY_PATH
16679 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16680 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16681 ;;
16682
16683 sco3.2v5*)
16684 version_type=osf
16685 soname_spec='${libname}${release}${shared_ext}$major'
16686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16687 shlibpath_var=LD_LIBRARY_PATH
16688 ;;
16689
16690 solaris*)
16691 version_type=linux
16692 need_lib_prefix=no
16693 need_version=no
16694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16695 soname_spec='${libname}${release}${shared_ext}$major'
16696 shlibpath_var=LD_LIBRARY_PATH
16697 shlibpath_overrides_runpath=yes
16698 hardcode_into_libs=yes
16699 # ldd complains unless libraries are executable
16700 postinstall_cmds='chmod +x $lib'
16701 ;;
16702
16703 sunos4*)
16704 version_type=sunos
16705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16706 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16707 shlibpath_var=LD_LIBRARY_PATH
16708 shlibpath_overrides_runpath=yes
16709 if test "$with_gnu_ld" = yes; then
16710 need_lib_prefix=no
16711 fi
16712 need_version=yes
16713 ;;
16714
16715 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16716 version_type=linux
16717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16718 soname_spec='${libname}${release}${shared_ext}$major'
16719 shlibpath_var=LD_LIBRARY_PATH
16720 case $host_vendor in
16721 sni)
16722 shlibpath_overrides_runpath=no
16723 need_lib_prefix=no
16724 export_dynamic_flag_spec='${wl}-Blargedynsym'
16725 runpath_var=LD_RUN_PATH
16726 ;;
16727 siemens)
16728 need_lib_prefix=no
16729 ;;
16730 motorola)
16731 need_lib_prefix=no
16732 need_version=no
16733 shlibpath_overrides_runpath=no
16734 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16735 ;;
16736 esac
16737 ;;
16738
16739 sysv4*MP*)
16740 if test -d /usr/nec ;then
16741 version_type=linux
16742 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16743 soname_spec='$libname${shared_ext}.$major'
16744 shlibpath_var=LD_LIBRARY_PATH
16745 fi
16746 ;;
16747
16748 uts4*)
16749 version_type=linux
16750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16751 soname_spec='${libname}${release}${shared_ext}$major'
16752 shlibpath_var=LD_LIBRARY_PATH
16753 ;;
16754
16755 *)
16756 dynamic_linker=no
16757 ;;
16758 esac
16759 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16760 echo "${ECHO_T}$dynamic_linker" >&6
16761 test "$dynamic_linker" = no && can_build_shared=no
16762
16763 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16764 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16765 hardcode_action_CXX=
16766 if test -n "$hardcode_libdir_flag_spec_CXX" || \
16767 test -n "$runpath_var_CXX" || \
16768 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16769
16770 # We can hardcode non-existant directories.
16771 if test "$hardcode_direct_CXX" != no &&
16772 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16773 # have to relink, otherwise we might link with an installed library
16774 # when we should be linking with a yet-to-be-installed one
16775 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16776 test "$hardcode_minus_L_CXX" != no; then
16777 # Linking always hardcodes the temporary library directory.
16778 hardcode_action_CXX=relink
16779 else
16780 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16781 hardcode_action_CXX=immediate
16782 fi
16783 else
16784 # We cannot hardcode anything, or else we can only hardcode existing
16785 # directories.
16786 hardcode_action_CXX=unsupported
16787 fi
16788 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16789 echo "${ECHO_T}$hardcode_action_CXX" >&6
16790
16791 if test "$hardcode_action_CXX" = relink; then
16792 # Fast installation is not supported
16793 enable_fast_install=no
16794 elif test "$shlibpath_overrides_runpath" = yes ||
16795 test "$enable_shared" = no; then
16796 # Fast installation is not necessary
16797 enable_fast_install=needless
16798 fi
16799
16800 striplib=
16801 old_striplib=
16802 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16803 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16804 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16805 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16806 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16807 echo "$as_me:$LINENO: result: yes" >&5
16808 echo "${ECHO_T}yes" >&6
16809 else
16810 # FIXME - insert some real tests, host_os isn't really good enough
16811 case $host_os in
16812 darwin*)
16813 if test -n "$STRIP" ; then
16814 striplib="$STRIP -x"
16815 echo "$as_me:$LINENO: result: yes" >&5
16816 echo "${ECHO_T}yes" >&6
16817 else
16818 echo "$as_me:$LINENO: result: no" >&5
16819 echo "${ECHO_T}no" >&6
16820 fi
16821 ;;
16822 *)
16823 echo "$as_me:$LINENO: result: no" >&5
16824 echo "${ECHO_T}no" >&6
16825 ;;
16826 esac
16827 fi
16828
16829 if test "x$enable_dlopen" != xyes; then
16830 enable_dlopen=unknown
16831 enable_dlopen_self=unknown
16832 enable_dlopen_self_static=unknown
16833 else
16834 lt_cv_dlopen=no
16835 lt_cv_dlopen_libs=
16836
16837 case $host_os in
16838 beos*)
16839 lt_cv_dlopen="load_add_on"
16840 lt_cv_dlopen_libs=
16841 lt_cv_dlopen_self=yes
16842 ;;
16843
16844 mingw* | pw32*)
16845 lt_cv_dlopen="LoadLibrary"
16846 lt_cv_dlopen_libs=
16847 ;;
16848
16849 cygwin*)
16850 lt_cv_dlopen="dlopen"
16851 lt_cv_dlopen_libs=
16852 ;;
16853
16854 darwin*)
16855 # if libdl is installed we need to link against it
16856 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16857 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16858 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16859 echo $ECHO_N "(cached) $ECHO_C" >&6
16860 else
16861 ac_check_lib_save_LIBS=$LIBS
16862 LIBS="-ldl $LIBS"
16863 cat >conftest.$ac_ext <<_ACEOF
16864 /* confdefs.h. */
16865 _ACEOF
16866 cat confdefs.h >>conftest.$ac_ext
16867 cat >>conftest.$ac_ext <<_ACEOF
16868 /* end confdefs.h. */
16869
16870 /* Override any gcc2 internal prototype to avoid an error. */
16871 #ifdef __cplusplus
16872 extern "C"
16873 #endif
16874 /* We use char because int might match the return type of a gcc2
16875 builtin and then its argument prototype would still apply. */
16876 char dlopen ();
16877 int
16878 main ()
16879 {
16880 dlopen ();
16881 ;
16882 return 0;
16883 }
16884 _ACEOF
16885 rm -f conftest.$ac_objext conftest$ac_exeext
16886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16887 (eval $ac_link) 2>conftest.er1
16888 ac_status=$?
16889 grep -v '^ *+' conftest.er1 >conftest.err
16890 rm -f conftest.er1
16891 cat conftest.err >&5
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); } &&
16894 { ac_try='test -z "$ac_cxx_werror_flag"
16895 || test ! -s conftest.err'
16896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16897 (eval $ac_try) 2>&5
16898 ac_status=$?
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); }; } &&
16901 { ac_try='test -s conftest$ac_exeext'
16902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16903 (eval $ac_try) 2>&5
16904 ac_status=$?
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); }; }; then
16907 ac_cv_lib_dl_dlopen=yes
16908 else
16909 echo "$as_me: failed program was:" >&5
16910 sed 's/^/| /' conftest.$ac_ext >&5
16911
16912 ac_cv_lib_dl_dlopen=no
16913 fi
16914 rm -f conftest.err conftest.$ac_objext \
16915 conftest$ac_exeext conftest.$ac_ext
16916 LIBS=$ac_check_lib_save_LIBS
16917 fi
16918 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16919 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16920 if test $ac_cv_lib_dl_dlopen = yes; then
16921 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16922 else
16923
16924 lt_cv_dlopen="dyld"
16925 lt_cv_dlopen_libs=
16926 lt_cv_dlopen_self=yes
16927
16928 fi
16929
16930 ;;
16931
16932 *)
16933 echo "$as_me:$LINENO: checking for shl_load" >&5
16934 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16935 if test "${ac_cv_func_shl_load+set}" = set; then
16936 echo $ECHO_N "(cached) $ECHO_C" >&6
16937 else
16938 cat >conftest.$ac_ext <<_ACEOF
16939 /* confdefs.h. */
16940 _ACEOF
16941 cat confdefs.h >>conftest.$ac_ext
16942 cat >>conftest.$ac_ext <<_ACEOF
16943 /* end confdefs.h. */
16944 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16946 #define shl_load innocuous_shl_load
16947
16948 /* System header to define __stub macros and hopefully few prototypes,
16949 which can conflict with char shl_load (); below.
16950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16951 <limits.h> exists even on freestanding compilers. */
16952
16953 #ifdef __STDC__
16954 # include <limits.h>
16955 #else
16956 # include <assert.h>
16957 #endif
16958
16959 #undef shl_load
16960
16961 /* Override any gcc2 internal prototype to avoid an error. */
16962 #ifdef __cplusplus
16963 extern "C"
16964 {
16965 #endif
16966 /* We use char because int might match the return type of a gcc2
16967 builtin and then its argument prototype would still apply. */
16968 char shl_load ();
16969 /* The GNU C library defines this for functions which it implements
16970 to always fail with ENOSYS. Some functions are actually named
16971 something starting with __ and the normal name is an alias. */
16972 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16973 choke me
16974 #else
16975 char (*f) () = shl_load;
16976 #endif
16977 #ifdef __cplusplus
16978 }
16979 #endif
16980
16981 int
16982 main ()
16983 {
16984 return f != shl_load;
16985 ;
16986 return 0;
16987 }
16988 _ACEOF
16989 rm -f conftest.$ac_objext conftest$ac_exeext
16990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16991 (eval $ac_link) 2>conftest.er1
16992 ac_status=$?
16993 grep -v '^ *+' conftest.er1 >conftest.err
16994 rm -f conftest.er1
16995 cat conftest.err >&5
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); } &&
16998 { ac_try='test -z "$ac_cxx_werror_flag"
16999 || test ! -s conftest.err'
17000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17001 (eval $ac_try) 2>&5
17002 ac_status=$?
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); }; } &&
17005 { ac_try='test -s conftest$ac_exeext'
17006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17007 (eval $ac_try) 2>&5
17008 ac_status=$?
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); }; }; then
17011 ac_cv_func_shl_load=yes
17012 else
17013 echo "$as_me: failed program was:" >&5
17014 sed 's/^/| /' conftest.$ac_ext >&5
17015
17016 ac_cv_func_shl_load=no
17017 fi
17018 rm -f conftest.err conftest.$ac_objext \
17019 conftest$ac_exeext conftest.$ac_ext
17020 fi
17021 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17022 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17023 if test $ac_cv_func_shl_load = yes; then
17024 lt_cv_dlopen="shl_load"
17025 else
17026 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17027 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17028 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17029 echo $ECHO_N "(cached) $ECHO_C" >&6
17030 else
17031 ac_check_lib_save_LIBS=$LIBS
17032 LIBS="-ldld $LIBS"
17033 cat >conftest.$ac_ext <<_ACEOF
17034 /* confdefs.h. */
17035 _ACEOF
17036 cat confdefs.h >>conftest.$ac_ext
17037 cat >>conftest.$ac_ext <<_ACEOF
17038 /* end confdefs.h. */
17039
17040 /* Override any gcc2 internal prototype to avoid an error. */
17041 #ifdef __cplusplus
17042 extern "C"
17043 #endif
17044 /* We use char because int might match the return type of a gcc2
17045 builtin and then its argument prototype would still apply. */
17046 char shl_load ();
17047 int
17048 main ()
17049 {
17050 shl_load ();
17051 ;
17052 return 0;
17053 }
17054 _ACEOF
17055 rm -f conftest.$ac_objext conftest$ac_exeext
17056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17057 (eval $ac_link) 2>conftest.er1
17058 ac_status=$?
17059 grep -v '^ *+' conftest.er1 >conftest.err
17060 rm -f conftest.er1
17061 cat conftest.err >&5
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); } &&
17064 { ac_try='test -z "$ac_cxx_werror_flag"
17065 || test ! -s conftest.err'
17066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067 (eval $ac_try) 2>&5
17068 ac_status=$?
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; } &&
17071 { ac_try='test -s conftest$ac_exeext'
17072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17073 (eval $ac_try) 2>&5
17074 ac_status=$?
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); }; }; then
17077 ac_cv_lib_dld_shl_load=yes
17078 else
17079 echo "$as_me: failed program was:" >&5
17080 sed 's/^/| /' conftest.$ac_ext >&5
17081
17082 ac_cv_lib_dld_shl_load=no
17083 fi
17084 rm -f conftest.err conftest.$ac_objext \
17085 conftest$ac_exeext conftest.$ac_ext
17086 LIBS=$ac_check_lib_save_LIBS
17087 fi
17088 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17089 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17090 if test $ac_cv_lib_dld_shl_load = yes; then
17091 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17092 else
17093 echo "$as_me:$LINENO: checking for dlopen" >&5
17094 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17095 if test "${ac_cv_func_dlopen+set}" = set; then
17096 echo $ECHO_N "(cached) $ECHO_C" >&6
17097 else
17098 cat >conftest.$ac_ext <<_ACEOF
17099 /* confdefs.h. */
17100 _ACEOF
17101 cat confdefs.h >>conftest.$ac_ext
17102 cat >>conftest.$ac_ext <<_ACEOF
17103 /* end confdefs.h. */
17104 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17106 #define dlopen innocuous_dlopen
17107
17108 /* System header to define __stub macros and hopefully few prototypes,
17109 which can conflict with char dlopen (); below.
17110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17111 <limits.h> exists even on freestanding compilers. */
17112
17113 #ifdef __STDC__
17114 # include <limits.h>
17115 #else
17116 # include <assert.h>
17117 #endif
17118
17119 #undef dlopen
17120
17121 /* Override any gcc2 internal prototype to avoid an error. */
17122 #ifdef __cplusplus
17123 extern "C"
17124 {
17125 #endif
17126 /* We use char because int might match the return type of a gcc2
17127 builtin and then its argument prototype would still apply. */
17128 char dlopen ();
17129 /* The GNU C library defines this for functions which it implements
17130 to always fail with ENOSYS. Some functions are actually named
17131 something starting with __ and the normal name is an alias. */
17132 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17133 choke me
17134 #else
17135 char (*f) () = dlopen;
17136 #endif
17137 #ifdef __cplusplus
17138 }
17139 #endif
17140
17141 int
17142 main ()
17143 {
17144 return f != dlopen;
17145 ;
17146 return 0;
17147 }
17148 _ACEOF
17149 rm -f conftest.$ac_objext conftest$ac_exeext
17150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17151 (eval $ac_link) 2>conftest.er1
17152 ac_status=$?
17153 grep -v '^ *+' conftest.er1 >conftest.err
17154 rm -f conftest.er1
17155 cat conftest.err >&5
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); } &&
17158 { ac_try='test -z "$ac_cxx_werror_flag"
17159 || test ! -s conftest.err'
17160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17161 (eval $ac_try) 2>&5
17162 ac_status=$?
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); }; } &&
17165 { ac_try='test -s conftest$ac_exeext'
17166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17167 (eval $ac_try) 2>&5
17168 ac_status=$?
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); }; }; then
17171 ac_cv_func_dlopen=yes
17172 else
17173 echo "$as_me: failed program was:" >&5
17174 sed 's/^/| /' conftest.$ac_ext >&5
17175
17176 ac_cv_func_dlopen=no
17177 fi
17178 rm -f conftest.err conftest.$ac_objext \
17179 conftest$ac_exeext conftest.$ac_ext
17180 fi
17181 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17182 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17183 if test $ac_cv_func_dlopen = yes; then
17184 lt_cv_dlopen="dlopen"
17185 else
17186 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17187 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17188 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17189 echo $ECHO_N "(cached) $ECHO_C" >&6
17190 else
17191 ac_check_lib_save_LIBS=$LIBS
17192 LIBS="-ldl $LIBS"
17193 cat >conftest.$ac_ext <<_ACEOF
17194 /* confdefs.h. */
17195 _ACEOF
17196 cat confdefs.h >>conftest.$ac_ext
17197 cat >>conftest.$ac_ext <<_ACEOF
17198 /* end confdefs.h. */
17199
17200 /* Override any gcc2 internal prototype to avoid an error. */
17201 #ifdef __cplusplus
17202 extern "C"
17203 #endif
17204 /* We use char because int might match the return type of a gcc2
17205 builtin and then its argument prototype would still apply. */
17206 char dlopen ();
17207 int
17208 main ()
17209 {
17210 dlopen ();
17211 ;
17212 return 0;
17213 }
17214 _ACEOF
17215 rm -f conftest.$ac_objext conftest$ac_exeext
17216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17217 (eval $ac_link) 2>conftest.er1
17218 ac_status=$?
17219 grep -v '^ *+' conftest.er1 >conftest.err
17220 rm -f conftest.er1
17221 cat conftest.err >&5
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); } &&
17224 { ac_try='test -z "$ac_cxx_werror_flag"
17225 || test ! -s conftest.err'
17226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17227 (eval $ac_try) 2>&5
17228 ac_status=$?
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); }; } &&
17231 { ac_try='test -s conftest$ac_exeext'
17232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17233 (eval $ac_try) 2>&5
17234 ac_status=$?
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); }; }; then
17237 ac_cv_lib_dl_dlopen=yes
17238 else
17239 echo "$as_me: failed program was:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17241
17242 ac_cv_lib_dl_dlopen=no
17243 fi
17244 rm -f conftest.err conftest.$ac_objext \
17245 conftest$ac_exeext conftest.$ac_ext
17246 LIBS=$ac_check_lib_save_LIBS
17247 fi
17248 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17249 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17250 if test $ac_cv_lib_dl_dlopen = yes; then
17251 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17252 else
17253 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17254 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17255 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17256 echo $ECHO_N "(cached) $ECHO_C" >&6
17257 else
17258 ac_check_lib_save_LIBS=$LIBS
17259 LIBS="-lsvld $LIBS"
17260 cat >conftest.$ac_ext <<_ACEOF
17261 /* confdefs.h. */
17262 _ACEOF
17263 cat confdefs.h >>conftest.$ac_ext
17264 cat >>conftest.$ac_ext <<_ACEOF
17265 /* end confdefs.h. */
17266
17267 /* Override any gcc2 internal prototype to avoid an error. */
17268 #ifdef __cplusplus
17269 extern "C"
17270 #endif
17271 /* We use char because int might match the return type of a gcc2
17272 builtin and then its argument prototype would still apply. */
17273 char dlopen ();
17274 int
17275 main ()
17276 {
17277 dlopen ();
17278 ;
17279 return 0;
17280 }
17281 _ACEOF
17282 rm -f conftest.$ac_objext conftest$ac_exeext
17283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17284 (eval $ac_link) 2>conftest.er1
17285 ac_status=$?
17286 grep -v '^ *+' conftest.er1 >conftest.err
17287 rm -f conftest.er1
17288 cat conftest.err >&5
17289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290 (exit $ac_status); } &&
17291 { ac_try='test -z "$ac_cxx_werror_flag"
17292 || test ! -s conftest.err'
17293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17294 (eval $ac_try) 2>&5
17295 ac_status=$?
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); }; } &&
17298 { ac_try='test -s conftest$ac_exeext'
17299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17300 (eval $ac_try) 2>&5
17301 ac_status=$?
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); }; }; then
17304 ac_cv_lib_svld_dlopen=yes
17305 else
17306 echo "$as_me: failed program was:" >&5
17307 sed 's/^/| /' conftest.$ac_ext >&5
17308
17309 ac_cv_lib_svld_dlopen=no
17310 fi
17311 rm -f conftest.err conftest.$ac_objext \
17312 conftest$ac_exeext conftest.$ac_ext
17313 LIBS=$ac_check_lib_save_LIBS
17314 fi
17315 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17316 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17317 if test $ac_cv_lib_svld_dlopen = yes; then
17318 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17319 else
17320 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17321 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17322 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17323 echo $ECHO_N "(cached) $ECHO_C" >&6
17324 else
17325 ac_check_lib_save_LIBS=$LIBS
17326 LIBS="-ldld $LIBS"
17327 cat >conftest.$ac_ext <<_ACEOF
17328 /* confdefs.h. */
17329 _ACEOF
17330 cat confdefs.h >>conftest.$ac_ext
17331 cat >>conftest.$ac_ext <<_ACEOF
17332 /* end confdefs.h. */
17333
17334 /* Override any gcc2 internal prototype to avoid an error. */
17335 #ifdef __cplusplus
17336 extern "C"
17337 #endif
17338 /* We use char because int might match the return type of a gcc2
17339 builtin and then its argument prototype would still apply. */
17340 char dld_link ();
17341 int
17342 main ()
17343 {
17344 dld_link ();
17345 ;
17346 return 0;
17347 }
17348 _ACEOF
17349 rm -f conftest.$ac_objext conftest$ac_exeext
17350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17351 (eval $ac_link) 2>conftest.er1
17352 ac_status=$?
17353 grep -v '^ *+' conftest.er1 >conftest.err
17354 rm -f conftest.er1
17355 cat conftest.err >&5
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); } &&
17358 { ac_try='test -z "$ac_cxx_werror_flag"
17359 || test ! -s conftest.err'
17360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17361 (eval $ac_try) 2>&5
17362 ac_status=$?
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); }; } &&
17365 { ac_try='test -s conftest$ac_exeext'
17366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17367 (eval $ac_try) 2>&5
17368 ac_status=$?
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); }; }; then
17371 ac_cv_lib_dld_dld_link=yes
17372 else
17373 echo "$as_me: failed program was:" >&5
17374 sed 's/^/| /' conftest.$ac_ext >&5
17375
17376 ac_cv_lib_dld_dld_link=no
17377 fi
17378 rm -f conftest.err conftest.$ac_objext \
17379 conftest$ac_exeext conftest.$ac_ext
17380 LIBS=$ac_check_lib_save_LIBS
17381 fi
17382 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17383 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17384 if test $ac_cv_lib_dld_dld_link = yes; then
17385 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17386 fi
17387
17388
17389 fi
17390
17391
17392 fi
17393
17394
17395 fi
17396
17397
17398 fi
17399
17400
17401 fi
17402
17403 ;;
17404 esac
17405
17406 if test "x$lt_cv_dlopen" != xno; then
17407 enable_dlopen=yes
17408 else
17409 enable_dlopen=no
17410 fi
17411
17412 case $lt_cv_dlopen in
17413 dlopen)
17414 save_CPPFLAGS="$CPPFLAGS"
17415 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17416
17417 save_LDFLAGS="$LDFLAGS"
17418 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17419
17420 save_LIBS="$LIBS"
17421 LIBS="$lt_cv_dlopen_libs $LIBS"
17422
17423 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17424 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17425 if test "${lt_cv_dlopen_self+set}" = set; then
17426 echo $ECHO_N "(cached) $ECHO_C" >&6
17427 else
17428 if test "$cross_compiling" = yes; then :
17429 lt_cv_dlopen_self=cross
17430 else
17431 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17432 lt_status=$lt_dlunknown
17433 cat > conftest.$ac_ext <<EOF
17434 #line 17434 "configure"
17435 #include "confdefs.h"
17436
17437 #if HAVE_DLFCN_H
17438 #include <dlfcn.h>
17439 #endif
17440
17441 #include <stdio.h>
17442
17443 #ifdef RTLD_GLOBAL
17444 # define LT_DLGLOBAL RTLD_GLOBAL
17445 #else
17446 # ifdef DL_GLOBAL
17447 # define LT_DLGLOBAL DL_GLOBAL
17448 # else
17449 # define LT_DLGLOBAL 0
17450 # endif
17451 #endif
17452
17453 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17454 find out it does not work in some platform. */
17455 #ifndef LT_DLLAZY_OR_NOW
17456 # ifdef RTLD_LAZY
17457 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17458 # else
17459 # ifdef DL_LAZY
17460 # define LT_DLLAZY_OR_NOW DL_LAZY
17461 # else
17462 # ifdef RTLD_NOW
17463 # define LT_DLLAZY_OR_NOW RTLD_NOW
17464 # else
17465 # ifdef DL_NOW
17466 # define LT_DLLAZY_OR_NOW DL_NOW
17467 # else
17468 # define LT_DLLAZY_OR_NOW 0
17469 # endif
17470 # endif
17471 # endif
17472 # endif
17473 #endif
17474
17475 #ifdef __cplusplus
17476 extern "C" void exit (int);
17477 #endif
17478
17479 void fnord() { int i=42;}
17480 int main ()
17481 {
17482 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17483 int status = $lt_dlunknown;
17484
17485 if (self)
17486 {
17487 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17488 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17489 /* dlclose (self); */
17490 }
17491
17492 exit (status);
17493 }
17494 EOF
17495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17496 (eval $ac_link) 2>&5
17497 ac_status=$?
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17500 (./conftest; exit; ) >&5 2>/dev/null
17501 lt_status=$?
17502 case x$lt_status in
17503 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17504 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17505 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17506 esac
17507 else :
17508 # compilation failed
17509 lt_cv_dlopen_self=no
17510 fi
17511 fi
17512 rm -fr conftest*
17513
17514
17515 fi
17516 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17517 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17518
17519 if test "x$lt_cv_dlopen_self" = xyes; then
17520 LDFLAGS="$LDFLAGS $link_static_flag"
17521 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17522 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17523 if test "${lt_cv_dlopen_self_static+set}" = set; then
17524 echo $ECHO_N "(cached) $ECHO_C" >&6
17525 else
17526 if test "$cross_compiling" = yes; then :
17527 lt_cv_dlopen_self_static=cross
17528 else
17529 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17530 lt_status=$lt_dlunknown
17531 cat > conftest.$ac_ext <<EOF
17532 #line 17532 "configure"
17533 #include "confdefs.h"
17534
17535 #if HAVE_DLFCN_H
17536 #include <dlfcn.h>
17537 #endif
17538
17539 #include <stdio.h>
17540
17541 #ifdef RTLD_GLOBAL
17542 # define LT_DLGLOBAL RTLD_GLOBAL
17543 #else
17544 # ifdef DL_GLOBAL
17545 # define LT_DLGLOBAL DL_GLOBAL
17546 # else
17547 # define LT_DLGLOBAL 0
17548 # endif
17549 #endif
17550
17551 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17552 find out it does not work in some platform. */
17553 #ifndef LT_DLLAZY_OR_NOW
17554 # ifdef RTLD_LAZY
17555 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17556 # else
17557 # ifdef DL_LAZY
17558 # define LT_DLLAZY_OR_NOW DL_LAZY
17559 # else
17560 # ifdef RTLD_NOW
17561 # define LT_DLLAZY_OR_NOW RTLD_NOW
17562 # else
17563 # ifdef DL_NOW
17564 # define LT_DLLAZY_OR_NOW DL_NOW
17565 # else
17566 # define LT_DLLAZY_OR_NOW 0
17567 # endif
17568 # endif
17569 # endif
17570 # endif
17571 #endif
17572
17573 #ifdef __cplusplus
17574 extern "C" void exit (int);
17575 #endif
17576
17577 void fnord() { int i=42;}
17578 int main ()
17579 {
17580 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17581 int status = $lt_dlunknown;
17582
17583 if (self)
17584 {
17585 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17586 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17587 /* dlclose (self); */
17588 }
17589
17590 exit (status);
17591 }
17592 EOF
17593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17594 (eval $ac_link) 2>&5
17595 ac_status=$?
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17598 (./conftest; exit; ) >&5 2>/dev/null
17599 lt_status=$?
17600 case x$lt_status in
17601 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17602 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17603 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17604 esac
17605 else :
17606 # compilation failed
17607 lt_cv_dlopen_self_static=no
17608 fi
17609 fi
17610 rm -fr conftest*
17611
17612
17613 fi
17614 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17615 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17616 fi
17617
17618 CPPFLAGS="$save_CPPFLAGS"
17619 LDFLAGS="$save_LDFLAGS"
17620 LIBS="$save_LIBS"
17621 ;;
17622 esac
17623
17624 case $lt_cv_dlopen_self in
17625 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17626 *) enable_dlopen_self=unknown ;;
17627 esac
17628
17629 case $lt_cv_dlopen_self_static in
17630 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17631 *) enable_dlopen_self_static=unknown ;;
17632 esac
17633 fi
17634
17635
17636 # The else clause should only fire when bootstrapping the
17637 # libtool distribution, otherwise you forgot to ship ltmain.sh
17638 # with your package, and you will get complaints that there are
17639 # no rules to generate ltmain.sh.
17640 if test -f "$ltmain"; then
17641 # See if we are running on zsh, and set the options which allow our commands through
17642 # without removal of \ escapes.
17643 if test -n "${ZSH_VERSION+set}" ; then
17644 setopt NO_GLOB_SUBST
17645 fi
17646 # Now quote all the things that may contain metacharacters while being
17647 # careful not to overquote the AC_SUBSTed values. We take copies of the
17648 # variables and quote the copies for generation of the libtool script.
17649 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17650 SED SHELL STRIP \
17651 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17652 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17653 deplibs_check_method reload_flag reload_cmds need_locks \
17654 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17655 lt_cv_sys_global_symbol_to_c_name_address \
17656 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17657 old_postinstall_cmds old_postuninstall_cmds \
17658 compiler_CXX \
17659 CC_CXX \
17660 LD_CXX \
17661 lt_prog_compiler_wl_CXX \
17662 lt_prog_compiler_pic_CXX \
17663 lt_prog_compiler_static_CXX \
17664 lt_prog_compiler_no_builtin_flag_CXX \
17665 export_dynamic_flag_spec_CXX \
17666 thread_safe_flag_spec_CXX \
17667 whole_archive_flag_spec_CXX \
17668 enable_shared_with_static_runtimes_CXX \
17669 old_archive_cmds_CXX \
17670 old_archive_from_new_cmds_CXX \
17671 predep_objects_CXX \
17672 postdep_objects_CXX \
17673 predeps_CXX \
17674 postdeps_CXX \
17675 compiler_lib_search_path_CXX \
17676 archive_cmds_CXX \
17677 archive_expsym_cmds_CXX \
17678 postinstall_cmds_CXX \
17679 postuninstall_cmds_CXX \
17680 old_archive_from_expsyms_cmds_CXX \
17681 allow_undefined_flag_CXX \
17682 no_undefined_flag_CXX \
17683 export_symbols_cmds_CXX \
17684 hardcode_libdir_flag_spec_CXX \
17685 hardcode_libdir_flag_spec_ld_CXX \
17686 hardcode_libdir_separator_CXX \
17687 hardcode_automatic_CXX \
17688 module_cmds_CXX \
17689 module_expsym_cmds_CXX \
17690 lt_cv_prog_compiler_c_o_CXX \
17691 exclude_expsyms_CXX \
17692 include_expsyms_CXX; do
17693
17694 case $var in
17695 old_archive_cmds_CXX | \
17696 old_archive_from_new_cmds_CXX | \
17697 archive_cmds_CXX | \
17698 archive_expsym_cmds_CXX | \
17699 module_cmds_CXX | \
17700 module_expsym_cmds_CXX | \
17701 old_archive_from_expsyms_cmds_CXX | \
17702 export_symbols_cmds_CXX | \
17703 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17704 postinstall_cmds | postuninstall_cmds | \
17705 old_postinstall_cmds | old_postuninstall_cmds | \
17706 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17707 # Double-quote double-evaled strings.
17708 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17709 ;;
17710 *)
17711 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17712 ;;
17713 esac
17714 done
17715
17716 case $lt_echo in
17717 *'\$0 --fallback-echo"')
17718 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17719 ;;
17720 esac
17721
17722 cfgfile="$ofile"
17723
17724 cat <<__EOF__ >> "$cfgfile"
17725 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17726
17727 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17728
17729 # Shell to use when invoking shell scripts.
17730 SHELL=$lt_SHELL
17731
17732 # Whether or not to build shared libraries.
17733 build_libtool_libs=$enable_shared
17734
17735 # Whether or not to build static libraries.
17736 build_old_libs=$enable_static
17737
17738 # Whether or not to add -lc for building shared libraries.
17739 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17740
17741 # Whether or not to disallow shared libs when runtime libs are static
17742 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17743
17744 # Whether or not to optimize for fast installation.
17745 fast_install=$enable_fast_install
17746
17747 # The host system.
17748 host_alias=$host_alias
17749 host=$host
17750 host_os=$host_os
17751
17752 # The build system.
17753 build_alias=$build_alias
17754 build=$build
17755 build_os=$build_os
17756
17757 # An echo program that does not interpret backslashes.
17758 echo=$lt_echo
17759
17760 # The archiver.
17761 AR=$lt_AR
17762 AR_FLAGS=$lt_AR_FLAGS
17763
17764 # A C compiler.
17765 LTCC=$lt_LTCC
17766
17767 # A language-specific compiler.
17768 CC=$lt_compiler_CXX
17769
17770 # Is the compiler the GNU C compiler?
17771 with_gcc=$GCC_CXX
17772
17773 # An ERE matcher.
17774 EGREP=$lt_EGREP
17775
17776 # The linker used to build libraries.
17777 LD=$lt_LD_CXX
17778
17779 # Whether we need hard or soft links.
17780 LN_S=$lt_LN_S
17781
17782 # A BSD-compatible nm program.
17783 NM=$lt_NM
17784
17785 # A symbol stripping program
17786 STRIP=$lt_STRIP
17787
17788 # Used to examine libraries when file_magic_cmd begins "file"
17789 MAGIC_CMD=$MAGIC_CMD
17790
17791 # Used on cygwin: DLL creation program.
17792 DLLTOOL="$DLLTOOL"
17793
17794 # Used on cygwin: object dumper.
17795 OBJDUMP="$OBJDUMP"
17796
17797 # Used on cygwin: assembler.
17798 AS="$AS"
17799
17800 # The name of the directory that contains temporary libtool files.
17801 objdir=$objdir
17802
17803 # How to create reloadable object files.
17804 reload_flag=$lt_reload_flag
17805 reload_cmds=$lt_reload_cmds
17806
17807 # How to pass a linker flag through the compiler.
17808 wl=$lt_lt_prog_compiler_wl_CXX
17809
17810 # Object file suffix (normally "o").
17811 objext="$ac_objext"
17812
17813 # Old archive suffix (normally "a").
17814 libext="$libext"
17815
17816 # Shared library suffix (normally ".so").
17817 shrext_cmds='$shrext_cmds'
17818
17819 # Executable file suffix (normally "").
17820 exeext="$exeext"
17821
17822 # Additional compiler flags for building library objects.
17823 pic_flag=$lt_lt_prog_compiler_pic_CXX
17824 pic_mode=$pic_mode
17825
17826 # What is the maximum length of a command?
17827 max_cmd_len=$lt_cv_sys_max_cmd_len
17828
17829 # Does compiler simultaneously support -c and -o options?
17830 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17831
17832 # Must we lock files when doing compilation?
17833 need_locks=$lt_need_locks
17834
17835 # Do we need the lib prefix for modules?
17836 need_lib_prefix=$need_lib_prefix
17837
17838 # Do we need a version for libraries?
17839 need_version=$need_version
17840
17841 # Whether dlopen is supported.
17842 dlopen_support=$enable_dlopen
17843
17844 # Whether dlopen of programs is supported.
17845 dlopen_self=$enable_dlopen_self
17846
17847 # Whether dlopen of statically linked programs is supported.
17848 dlopen_self_static=$enable_dlopen_self_static
17849
17850 # Compiler flag to prevent dynamic linking.
17851 link_static_flag=$lt_lt_prog_compiler_static_CXX
17852
17853 # Compiler flag to turn off builtin functions.
17854 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17855
17856 # Compiler flag to allow reflexive dlopens.
17857 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17858
17859 # Compiler flag to generate shared objects directly from archives.
17860 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17861
17862 # Compiler flag to generate thread-safe objects.
17863 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
17864
17865 # Library versioning type.
17866 version_type=$version_type
17867
17868 # Format of library name prefix.
17869 libname_spec=$lt_libname_spec
17870
17871 # List of archive names. First name is the real one, the rest are links.
17872 # The last name is the one that the linker finds with -lNAME.
17873 library_names_spec=$lt_library_names_spec
17874
17875 # The coded name of the library, if different from the real name.
17876 soname_spec=$lt_soname_spec
17877
17878 # Commands used to build and install an old-style archive.
17879 RANLIB=$lt_RANLIB
17880 old_archive_cmds=$lt_old_archive_cmds_CXX
17881 old_postinstall_cmds=$lt_old_postinstall_cmds
17882 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17883
17884 # Create an old-style archive from a shared archive.
17885 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17886
17887 # Create a temporary old-style archive to link instead of a shared archive.
17888 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17889
17890 # Commands used to build and install a shared archive.
17891 archive_cmds=$lt_archive_cmds_CXX
17892 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17893 postinstall_cmds=$lt_postinstall_cmds
17894 postuninstall_cmds=$lt_postuninstall_cmds
17895
17896 # Commands used to build a loadable module (assumed same as above if empty)
17897 module_cmds=$lt_module_cmds_CXX
17898 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17899
17900 # Commands to strip libraries.
17901 old_striplib=$lt_old_striplib
17902 striplib=$lt_striplib
17903
17904 # Dependencies to place before the objects being linked to create a
17905 # shared library.
17906 predep_objects=$lt_predep_objects_CXX
17907
17908 # Dependencies to place after the objects being linked to create a
17909 # shared library.
17910 postdep_objects=$lt_postdep_objects_CXX
17911
17912 # Dependencies to place before the objects being linked to create a
17913 # shared library.
17914 predeps=$lt_predeps_CXX
17915
17916 # Dependencies to place after the objects being linked to create a
17917 # shared library.
17918 postdeps=$lt_postdeps_CXX
17919
17920 # The library search path used internally by the compiler when linking
17921 # a shared library.
17922 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17923
17924 # Method to check whether dependent libraries are shared objects.
17925 deplibs_check_method=$lt_deplibs_check_method
17926
17927 # Command to use when deplibs_check_method == file_magic.
17928 file_magic_cmd=$lt_file_magic_cmd
17929
17930 # Flag that allows shared libraries with undefined symbols to be built.
17931 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17932
17933 # Flag that forces no undefined symbols.
17934 no_undefined_flag=$lt_no_undefined_flag_CXX
17935
17936 # Commands used to finish a libtool library installation in a directory.
17937 finish_cmds=$lt_finish_cmds
17938
17939 # Same as above, but a single script fragment to be evaled but not shown.
17940 finish_eval=$lt_finish_eval
17941
17942 # Take the output of nm and produce a listing of raw symbols and C names.
17943 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17944
17945 # Transform the output of nm in a proper C declaration
17946 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17947
17948 # Transform the output of nm in a C name address pair
17949 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17950
17951 # This is the shared library runtime path variable.
17952 runpath_var=$runpath_var
17953
17954 # This is the shared library path variable.
17955 shlibpath_var=$shlibpath_var
17956
17957 # Is shlibpath searched before the hard-coded library search path?
17958 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17959
17960 # How to hardcode a shared library path into an executable.
17961 hardcode_action=$hardcode_action_CXX
17962
17963 # Whether we should hardcode library paths into libraries.
17964 hardcode_into_libs=$hardcode_into_libs
17965
17966 # Flag to hardcode \$libdir into a binary during linking.
17967 # This must work even if \$libdir does not exist.
17968 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17969
17970 # If ld is used when linking, flag to hardcode \$libdir into
17971 # a binary during linking. This must work even if \$libdir does
17972 # not exist.
17973 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17974
17975 # Whether we need a single -rpath flag with a separated argument.
17976 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17977
17978 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17979 # resulting binary.
17980 hardcode_direct=$hardcode_direct_CXX
17981
17982 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17983 # resulting binary.
17984 hardcode_minus_L=$hardcode_minus_L_CXX
17985
17986 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17987 # the resulting binary.
17988 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17989
17990 # Set to yes if building a shared library automatically hardcodes DIR into the library
17991 # and all subsequent libraries and executables linked against it.
17992 hardcode_automatic=$hardcode_automatic_CXX
17993
17994 # Variables whose values should be saved in libtool wrapper scripts and
17995 # restored at relink time.
17996 variables_saved_for_relink="$variables_saved_for_relink"
17997
17998 # Whether libtool must link a program against all its dependency libraries.
17999 link_all_deplibs=$link_all_deplibs_CXX
18000
18001 # Compile-time system search path for libraries
18002 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18003
18004 # Run-time system search path for libraries
18005 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18006
18007 # Fix the shell variable \$srcfile for the compiler.
18008 fix_srcfile_path="$fix_srcfile_path_CXX"
18009
18010 # Set to yes if exported symbols are required.
18011 always_export_symbols=$always_export_symbols_CXX
18012
18013 # The commands to list exported symbols.
18014 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18015
18016 # The commands to extract the exported symbol list from a shared archive.
18017 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18018
18019 # Symbols that should not be listed in the preloaded symbols.
18020 exclude_expsyms=$lt_exclude_expsyms_CXX
18021
18022 # Symbols that must always be exported.
18023 include_expsyms=$lt_include_expsyms_CXX
18024
18025 # ### END LIBTOOL TAG CONFIG: $tagname
18026
18027 __EOF__
18028
18029
18030 else
18031 # If there is no Makefile yet, we rely on a make rule to execute
18032 # `config.status --recheck' to rerun these tests and create the
18033 # libtool script then.
18034 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18035 if test -f "$ltmain_in"; then
18036 test -f Makefile && make "$ltmain"
18037 fi
18038 fi
18039
18040
18041 ac_ext=c
18042 ac_cpp='$CPP $CPPFLAGS'
18043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18046
18047 CC=$lt_save_CC
18048 LDCXX=$LD
18049 LD=$lt_save_LD
18050 GCC=$lt_save_GCC
18051 with_gnu_ldcxx=$with_gnu_ld
18052 with_gnu_ld=$lt_save_with_gnu_ld
18053 lt_cv_path_LDCXX=$lt_cv_path_LD
18054 lt_cv_path_LD=$lt_save_path_LD
18055 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18056 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18057
18058 else
18059 tagname=""
18060 fi
18061 ;;
18062
18063 F77)
18064 if test -n "$F77" && test "X$F77" != "Xno"; then
18065
18066 ac_ext=f
18067 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18068 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18069 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18070
18071
18072 archive_cmds_need_lc_F77=no
18073 allow_undefined_flag_F77=
18074 always_export_symbols_F77=no
18075 archive_expsym_cmds_F77=
18076 export_dynamic_flag_spec_F77=
18077 hardcode_direct_F77=no
18078 hardcode_libdir_flag_spec_F77=
18079 hardcode_libdir_flag_spec_ld_F77=
18080 hardcode_libdir_separator_F77=
18081 hardcode_minus_L_F77=no
18082 hardcode_automatic_F77=no
18083 module_cmds_F77=
18084 module_expsym_cmds_F77=
18085 link_all_deplibs_F77=unknown
18086 old_archive_cmds_F77=$old_archive_cmds
18087 no_undefined_flag_F77=
18088 whole_archive_flag_spec_F77=
18089 enable_shared_with_static_runtimes_F77=no
18090
18091 # Source file extension for f77 test sources.
18092 ac_ext=f
18093
18094 # Object file extension for compiled f77 test sources.
18095 objext=o
18096 objext_F77=$objext
18097
18098 # Code to be used in simple compile tests
18099 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18100
18101 # Code to be used in simple link tests
18102 lt_simple_link_test_code=" program t\n end\n"
18103
18104 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18105
18106 # If no C compiler was specified, use CC.
18107 LTCC=${LTCC-"$CC"}
18108
18109 # Allow CC to be a program name with arguments.
18110 compiler=$CC
18111
18112
18113 # save warnings/boilerplate of simple test code
18114 ac_outfile=conftest.$ac_objext
18115 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18116 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18117 _lt_compiler_boilerplate=`cat conftest.err`
18118 $rm conftest*
18119
18120 ac_outfile=conftest.$ac_objext
18121 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18122 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18123 _lt_linker_boilerplate=`cat conftest.err`
18124 $rm conftest*
18125
18126
18127 # Allow CC to be a program name with arguments.
18128 lt_save_CC="$CC"
18129 CC=${F77-"f77"}
18130 compiler=$CC
18131 compiler_F77=$CC
18132 for cc_temp in $compiler""; do
18133 case $cc_temp in
18134 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18135 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18136 \-*) ;;
18137 *) break;;
18138 esac
18139 done
18140 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18141
18142
18143 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18144 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18145 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18146 echo "${ECHO_T}$can_build_shared" >&6
18147
18148 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18149 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18150 test "$can_build_shared" = "no" && enable_shared=no
18151
18152 # On AIX, shared libraries and static libraries use the same namespace, and
18153 # are all built from PIC.
18154 case $host_os in
18155 aix3*)
18156 test "$enable_shared" = yes && enable_static=no
18157 if test -n "$RANLIB"; then
18158 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18159 postinstall_cmds='$RANLIB $lib'
18160 fi
18161 ;;
18162 aix4* | aix5*)
18163 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18164 test "$enable_shared" = yes && enable_static=no
18165 fi
18166 ;;
18167 esac
18168 echo "$as_me:$LINENO: result: $enable_shared" >&5
18169 echo "${ECHO_T}$enable_shared" >&6
18170
18171 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18172 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18173 # Make sure either enable_shared or enable_static is yes.
18174 test "$enable_shared" = yes || enable_static=yes
18175 echo "$as_me:$LINENO: result: $enable_static" >&5
18176 echo "${ECHO_T}$enable_static" >&6
18177
18178 test "$ld_shlibs_F77" = no && can_build_shared=no
18179
18180 GCC_F77="$G77"
18181 LD_F77="$LD"
18182
18183 lt_prog_compiler_wl_F77=
18184 lt_prog_compiler_pic_F77=
18185 lt_prog_compiler_static_F77=
18186
18187 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18188 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18189
18190 if test "$GCC" = yes; then
18191 lt_prog_compiler_wl_F77='-Wl,'
18192 lt_prog_compiler_static_F77='-static'
18193
18194 case $host_os in
18195 aix*)
18196 # All AIX code is PIC.
18197 if test "$host_cpu" = ia64; then
18198 # AIX 5 now supports IA64 processor
18199 lt_prog_compiler_static_F77='-Bstatic'
18200 fi
18201 ;;
18202
18203 amigaos*)
18204 # FIXME: we need at least 68020 code to build shared libraries, but
18205 # adding the `-m68020' flag to GCC prevents building anything better,
18206 # like `-m68040'.
18207 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18208 ;;
18209
18210 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18211 # PIC is the default for these OSes.
18212 ;;
18213
18214 mingw* | pw32* | os2*)
18215 # This hack is so that the source file can tell whether it is being
18216 # built for inclusion in a dll (and should export symbols for example).
18217 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18218 ;;
18219
18220 darwin* | rhapsody*)
18221 # PIC is the default on this platform
18222 # Common symbols not allowed in MH_DYLIB files
18223 lt_prog_compiler_pic_F77='-fno-common'
18224 ;;
18225
18226 msdosdjgpp*)
18227 # Just because we use GCC doesn't mean we suddenly get shared libraries
18228 # on systems that don't support them.
18229 lt_prog_compiler_can_build_shared_F77=no
18230 enable_shared=no
18231 ;;
18232
18233 sysv4*MP*)
18234 if test -d /usr/nec; then
18235 lt_prog_compiler_pic_F77=-Kconform_pic
18236 fi
18237 ;;
18238
18239 hpux*)
18240 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18241 # not for PA HP-UX.
18242 case $host_cpu in
18243 hppa*64*|ia64*)
18244 # +Z the default
18245 ;;
18246 *)
18247 lt_prog_compiler_pic_F77='-fPIC'
18248 ;;
18249 esac
18250 ;;
18251
18252 *)
18253 lt_prog_compiler_pic_F77='-fPIC'
18254 ;;
18255 esac
18256 else
18257 # PORTME Check for flag to pass linker flags through the system compiler.
18258 case $host_os in
18259 aix*)
18260 lt_prog_compiler_wl_F77='-Wl,'
18261 if test "$host_cpu" = ia64; then
18262 # AIX 5 now supports IA64 processor
18263 lt_prog_compiler_static_F77='-Bstatic'
18264 else
18265 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18266 fi
18267 ;;
18268 darwin*)
18269 # PIC is the default on this platform
18270 # Common symbols not allowed in MH_DYLIB files
18271 case $cc_basename in
18272 xlc*)
18273 lt_prog_compiler_pic_F77='-qnocommon'
18274 lt_prog_compiler_wl_F77='-Wl,'
18275 ;;
18276 esac
18277 ;;
18278
18279 mingw* | pw32* | os2*)
18280 # This hack is so that the source file can tell whether it is being
18281 # built for inclusion in a dll (and should export symbols for example).
18282 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18283 ;;
18284
18285 hpux9* | hpux10* | hpux11*)
18286 lt_prog_compiler_wl_F77='-Wl,'
18287 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18288 # not for PA HP-UX.
18289 case $host_cpu in
18290 hppa*64*|ia64*)
18291 # +Z the default
18292 ;;
18293 *)
18294 lt_prog_compiler_pic_F77='+Z'
18295 ;;
18296 esac
18297 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18298 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18299 ;;
18300
18301 irix5* | irix6* | nonstopux*)
18302 lt_prog_compiler_wl_F77='-Wl,'
18303 # PIC (with -KPIC) is the default.
18304 lt_prog_compiler_static_F77='-non_shared'
18305 ;;
18306
18307 newsos6)
18308 lt_prog_compiler_pic_F77='-KPIC'
18309 lt_prog_compiler_static_F77='-Bstatic'
18310 ;;
18311
18312 linux*)
18313 case $cc_basename in
18314 icc* | ecc*)
18315 lt_prog_compiler_wl_F77='-Wl,'
18316 lt_prog_compiler_pic_F77='-KPIC'
18317 lt_prog_compiler_static_F77='-static'
18318 ;;
18319 pgcc* | pgf77* | pgf90* | pgf95*)
18320 # Portland Group compilers (*not* the Pentium gcc compiler,
18321 # which looks to be a dead project)
18322 lt_prog_compiler_wl_F77='-Wl,'
18323 lt_prog_compiler_pic_F77='-fpic'
18324 lt_prog_compiler_static_F77='-Bstatic'
18325 ;;
18326 ccc*)
18327 lt_prog_compiler_wl_F77='-Wl,'
18328 # All Alpha code is PIC.
18329 lt_prog_compiler_static_F77='-non_shared'
18330 ;;
18331 esac
18332 ;;
18333
18334 osf3* | osf4* | osf5*)
18335 lt_prog_compiler_wl_F77='-Wl,'
18336 # All OSF/1 code is PIC.
18337 lt_prog_compiler_static_F77='-non_shared'
18338 ;;
18339
18340 sco3.2v5*)
18341 lt_prog_compiler_pic_F77='-Kpic'
18342 lt_prog_compiler_static_F77='-dn'
18343 ;;
18344
18345 solaris*)
18346 lt_prog_compiler_pic_F77='-KPIC'
18347 lt_prog_compiler_static_F77='-Bstatic'
18348 case $cc_basename in
18349 f77* | f90* | f95*)
18350 lt_prog_compiler_wl_F77='-Qoption ld ';;
18351 *)
18352 lt_prog_compiler_wl_F77='-Wl,';;
18353 esac
18354 ;;
18355
18356 sunos4*)
18357 lt_prog_compiler_wl_F77='-Qoption ld '
18358 lt_prog_compiler_pic_F77='-PIC'
18359 lt_prog_compiler_static_F77='-Bstatic'
18360 ;;
18361
18362 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18363 lt_prog_compiler_wl_F77='-Wl,'
18364 lt_prog_compiler_pic_F77='-KPIC'
18365 lt_prog_compiler_static_F77='-Bstatic'
18366 ;;
18367
18368 sysv4*MP*)
18369 if test -d /usr/nec ;then
18370 lt_prog_compiler_pic_F77='-Kconform_pic'
18371 lt_prog_compiler_static_F77='-Bstatic'
18372 fi
18373 ;;
18374
18375 unicos*)
18376 lt_prog_compiler_wl_F77='-Wl,'
18377 lt_prog_compiler_can_build_shared_F77=no
18378 ;;
18379
18380 uts4*)
18381 lt_prog_compiler_pic_F77='-pic'
18382 lt_prog_compiler_static_F77='-Bstatic'
18383 ;;
18384
18385 *)
18386 lt_prog_compiler_can_build_shared_F77=no
18387 ;;
18388 esac
18389 fi
18390
18391 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18392 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18393
18394 #
18395 # Check to make sure the PIC flag actually works.
18396 #
18397 if test -n "$lt_prog_compiler_pic_F77"; then
18398
18399 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18400 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18401 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18402 echo $ECHO_N "(cached) $ECHO_C" >&6
18403 else
18404 lt_prog_compiler_pic_works_F77=no
18405 ac_outfile=conftest.$ac_objext
18406 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18407 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18408 # Insert the option either (1) after the last *FLAGS variable, or
18409 # (2) before a word containing "conftest.", or (3) at the end.
18410 # Note that $ac_compile itself does not contain backslashes and begins
18411 # with a dollar sign (not a hyphen), so the echo should work correctly.
18412 # The option is referenced via a variable to avoid confusing sed.
18413 lt_compile=`echo "$ac_compile" | $SED \
18414 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18416 -e 's:$: $lt_compiler_flag:'`
18417 (eval echo "\"\$as_me:18417: $lt_compile\"" >&5)
18418 (eval "$lt_compile" 2>conftest.err)
18419 ac_status=$?
18420 cat conftest.err >&5
18421 echo "$as_me:18421: \$? = $ac_status" >&5
18422 if (exit $ac_status) && test -s "$ac_outfile"; then
18423 # The compiler can only warn and ignore the option if not recognized
18424 # So say no if there are warnings other than the usual output.
18425 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18426 $SED '/^$/d' conftest.err >conftest.er2
18427 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18428 lt_prog_compiler_pic_works_F77=yes
18429 fi
18430 fi
18431 $rm conftest*
18432
18433 fi
18434 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18435 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18436
18437 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18438 case $lt_prog_compiler_pic_F77 in
18439 "" | " "*) ;;
18440 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18441 esac
18442 else
18443 lt_prog_compiler_pic_F77=
18444 lt_prog_compiler_can_build_shared_F77=no
18445 fi
18446
18447 fi
18448 case $host_os in
18449 # For platforms which do not support PIC, -DPIC is meaningless:
18450 *djgpp*)
18451 lt_prog_compiler_pic_F77=
18452 ;;
18453 *)
18454 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18455 ;;
18456 esac
18457
18458 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18459 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18460 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18461 echo $ECHO_N "(cached) $ECHO_C" >&6
18462 else
18463 lt_cv_prog_compiler_c_o_F77=no
18464 $rm -r conftest 2>/dev/null
18465 mkdir conftest
18466 cd conftest
18467 mkdir out
18468 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18469
18470 lt_compiler_flag="-o out/conftest2.$ac_objext"
18471 # Insert the option either (1) after the last *FLAGS variable, or
18472 # (2) before a word containing "conftest.", or (3) at the end.
18473 # Note that $ac_compile itself does not contain backslashes and begins
18474 # with a dollar sign (not a hyphen), so the echo should work correctly.
18475 lt_compile=`echo "$ac_compile" | $SED \
18476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18478 -e 's:$: $lt_compiler_flag:'`
18479 (eval echo "\"\$as_me:18479: $lt_compile\"" >&5)
18480 (eval "$lt_compile" 2>out/conftest.err)
18481 ac_status=$?
18482 cat out/conftest.err >&5
18483 echo "$as_me:18483: \$? = $ac_status" >&5
18484 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18485 then
18486 # The compiler can only warn and ignore the option if not recognized
18487 # So say no if there are warnings
18488 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
18489 $SED '/^$/d' out/conftest.err >out/conftest.er2
18490 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18491 lt_cv_prog_compiler_c_o_F77=yes
18492 fi
18493 fi
18494 chmod u+w . 2>&5
18495 $rm conftest*
18496 # SGI C++ compiler will create directory out/ii_files/ for
18497 # template instantiation
18498 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18499 $rm out/* && rmdir out
18500 cd ..
18501 rmdir conftest
18502 $rm conftest*
18503
18504 fi
18505 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18506 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18507
18508
18509 hard_links="nottested"
18510 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18511 # do not overwrite the value of need_locks provided by the user
18512 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18513 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18514 hard_links=yes
18515 $rm conftest*
18516 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18517 touch conftest.a
18518 ln conftest.a conftest.b 2>&5 || hard_links=no
18519 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18520 echo "$as_me:$LINENO: result: $hard_links" >&5
18521 echo "${ECHO_T}$hard_links" >&6
18522 if test "$hard_links" = no; then
18523 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18524 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18525 need_locks=warn
18526 fi
18527 else
18528 need_locks=no
18529 fi
18530
18531 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18532 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18533
18534 runpath_var=
18535 allow_undefined_flag_F77=
18536 enable_shared_with_static_runtimes_F77=no
18537 archive_cmds_F77=
18538 archive_expsym_cmds_F77=
18539 old_archive_From_new_cmds_F77=
18540 old_archive_from_expsyms_cmds_F77=
18541 export_dynamic_flag_spec_F77=
18542 whole_archive_flag_spec_F77=
18543 thread_safe_flag_spec_F77=
18544 hardcode_libdir_flag_spec_F77=
18545 hardcode_libdir_flag_spec_ld_F77=
18546 hardcode_libdir_separator_F77=
18547 hardcode_direct_F77=no
18548 hardcode_minus_L_F77=no
18549 hardcode_shlibpath_var_F77=unsupported
18550 link_all_deplibs_F77=unknown
18551 hardcode_automatic_F77=no
18552 module_cmds_F77=
18553 module_expsym_cmds_F77=
18554 always_export_symbols_F77=no
18555 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18556 # include_expsyms should be a list of space-separated symbols to be *always*
18557 # included in the symbol list
18558 include_expsyms_F77=
18559 # exclude_expsyms can be an extended regexp of symbols to exclude
18560 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18561 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18562 # as well as any symbol that contains `d'.
18563 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
18564 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18565 # platforms (ab)use it in PIC code, but their linkers get confused if
18566 # the symbol is explicitly referenced. Since portable code cannot
18567 # rely on this symbol name, it's probably fine to never include it in
18568 # preloaded symbol tables.
18569 extract_expsyms_cmds=
18570 # Just being paranoid about ensuring that cc_basename is set.
18571 for cc_temp in $compiler""; do
18572 case $cc_temp in
18573 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18574 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18575 \-*) ;;
18576 *) break;;
18577 esac
18578 done
18579 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18580
18581 case $host_os in
18582 cygwin* | mingw* | pw32*)
18583 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18584 # When not using gcc, we currently assume that we are using
18585 # Microsoft Visual C++.
18586 if test "$GCC" != yes; then
18587 with_gnu_ld=no
18588 fi
18589 ;;
18590 openbsd*)
18591 with_gnu_ld=no
18592 ;;
18593 esac
18594
18595 ld_shlibs_F77=yes
18596 if test "$with_gnu_ld" = yes; then
18597 # If archive_cmds runs LD, not CC, wlarc should be empty
18598 wlarc='${wl}'
18599
18600 # Set some defaults for GNU ld with shared library support. These
18601 # are reset later if shared libraries are not supported. Putting them
18602 # here allows them to be overridden if necessary.
18603 runpath_var=LD_RUN_PATH
18604 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
18605 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
18606 # ancient GNU ld didn't support --whole-archive et. al.
18607 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18608 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18609 else
18610 whole_archive_flag_spec_F77=
18611 fi
18612 supports_anon_versioning=no
18613 case `$LD -v 2>/dev/null` in
18614 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18615 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18616 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18617 *\ 2.11.*) ;; # other 2.11 versions
18618 *) supports_anon_versioning=yes ;;
18619 esac
18620
18621 # See if GNU ld supports shared libraries.
18622 case $host_os in
18623 aix3* | aix4* | aix5*)
18624 # On AIX/PPC, the GNU linker is very broken
18625 if test "$host_cpu" != ia64; then
18626 ld_shlibs_F77=no
18627 cat <<EOF 1>&2
18628
18629 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18630 *** to be unable to reliably create shared libraries on AIX.
18631 *** Therefore, libtool is disabling shared libraries support. If you
18632 *** really care for shared libraries, you may want to modify your PATH
18633 *** so that a non-GNU linker is found, and then restart.
18634
18635 EOF
18636 fi
18637 ;;
18638
18639 amigaos*)
18640 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)'
18641 hardcode_libdir_flag_spec_F77='-L$libdir'
18642 hardcode_minus_L_F77=yes
18643
18644 # Samuel A. Falvo II <[email protected]> reports
18645 # that the semantics of dynamic libraries on AmigaOS, at least up
18646 # to version 4, is to share data among multiple programs linked
18647 # with the same dynamic library. Since this doesn't match the
18648 # behavior of shared libraries on other platforms, we can't use
18649 # them.
18650 ld_shlibs_F77=no
18651 ;;
18652
18653 beos*)
18654 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18655 allow_undefined_flag_F77=unsupported
18656 # Joseph Beckenbach <[email protected]> says some releases of gcc
18657 # support --undefined. This deserves some investigation. FIXME
18658 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18659 else
18660 ld_shlibs_F77=no
18661 fi
18662 ;;
18663
18664 cygwin* | mingw* | pw32*)
18665 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
18666 # as there is no search path for DLLs.
18667 hardcode_libdir_flag_spec_F77='-L$libdir'
18668 allow_undefined_flag_F77=unsupported
18669 always_export_symbols_F77=no
18670 enable_shared_with_static_runtimes_F77=yes
18671 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18672
18673 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18674 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18675 # If the export-symbols file already is a .def file (1st line
18676 # is EXPORTS), use it as is; otherwise, prepend...
18677 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18678 cp $export_symbols $output_objdir/$soname.def;
18679 else
18680 echo EXPORTS > $output_objdir/$soname.def;
18681 cat $export_symbols >> $output_objdir/$soname.def;
18682 fi~
18683 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18684 else
18685 ld_shlibs_F77=no
18686 fi
18687 ;;
18688
18689 linux*)
18690 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18691 tmp_addflag=
18692 case $cc_basename,$host_cpu in
18693 pgcc*) # Portland Group C compiler
18694 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'
18695 tmp_addflag=' $pic_flag'
18696 ;;
18697 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18698 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'
18699 tmp_addflag=' $pic_flag -Mnomain' ;;
18700 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18701 tmp_addflag=' -i_dynamic' ;;
18702 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18703 tmp_addflag=' -i_dynamic -nofor_main' ;;
18704 ifc* | ifort*) # Intel Fortran compiler
18705 tmp_addflag=' -nofor_main' ;;
18706 esac
18707 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18708
18709 if test $supports_anon_versioning = yes; then
18710 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
18711 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18712 $echo "local: *; };" >> $output_objdir/$libname.ver~
18713 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18714 fi
18715 else
18716 ld_shlibs_F77=no
18717 fi
18718 ;;
18719
18720 netbsd*)
18721 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18722 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18723 wlarc=
18724 else
18725 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18726 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18727 fi
18728 ;;
18729
18730 solaris* | sysv5*)
18731 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18732 ld_shlibs_F77=no
18733 cat <<EOF 1>&2
18734
18735 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18736 *** create shared libraries on Solaris systems. Therefore, libtool
18737 *** is disabling shared libraries support. We urge you to upgrade GNU
18738 *** binutils to release 2.9.1 or newer. Another option is to modify
18739 *** your PATH or compiler configuration so that the native linker is
18740 *** used, and then restart.
18741
18742 EOF
18743 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18744 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18745 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18746 else
18747 ld_shlibs_F77=no
18748 fi
18749 ;;
18750
18751 sunos4*)
18752 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18753 wlarc=
18754 hardcode_direct_F77=yes
18755 hardcode_shlibpath_var_F77=no
18756 ;;
18757
18758 *)
18759 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18760 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18761 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18762 else
18763 ld_shlibs_F77=no
18764 fi
18765 ;;
18766 esac
18767
18768 if test "$ld_shlibs_F77" = no; then
18769 runpath_var=
18770 hardcode_libdir_flag_spec_F77=
18771 export_dynamic_flag_spec_F77=
18772 whole_archive_flag_spec_F77=
18773 fi
18774 else
18775 # PORTME fill in a description of your system's linker (not GNU ld)
18776 case $host_os in
18777 aix3*)
18778 allow_undefined_flag_F77=unsupported
18779 always_export_symbols_F77=yes
18780 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'
18781 # Note: this linker hardcodes the directories in LIBPATH if there
18782 # are no directories specified by -L.
18783 hardcode_minus_L_F77=yes
18784 if test "$GCC" = yes && test -z "$link_static_flag"; then
18785 # Neither direct hardcoding nor static linking is supported with a
18786 # broken collect2.
18787 hardcode_direct_F77=unsupported
18788 fi
18789 ;;
18790
18791 aix4* | aix5*)
18792 if test "$host_cpu" = ia64; then
18793 # On IA64, the linker does run time linking by default, so we don't
18794 # have to do anything special.
18795 aix_use_runtimelinking=no
18796 exp_sym_flag='-Bexport'
18797 no_entry_flag=""
18798 else
18799 # If we're using GNU nm, then we don't want the "-C" option.
18800 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18801 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18802 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'
18803 else
18804 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'
18805 fi
18806 aix_use_runtimelinking=no
18807
18808 # Test if we are trying to use run time linking or normal
18809 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18810 # need to do runtime linking.
18811 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18812 for ld_flag in $LDFLAGS; do
18813 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18814 aix_use_runtimelinking=yes
18815 break
18816 fi
18817 done
18818 esac
18819
18820 exp_sym_flag='-bexport'
18821 no_entry_flag='-bnoentry'
18822 fi
18823
18824 # When large executables or shared objects are built, AIX ld can
18825 # have problems creating the table of contents. If linking a library
18826 # or program results in "error TOC overflow" add -mminimal-toc to
18827 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18828 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18829
18830 archive_cmds_F77=''
18831 hardcode_direct_F77=yes
18832 hardcode_libdir_separator_F77=':'
18833 link_all_deplibs_F77=yes
18834
18835 if test "$GCC" = yes; then
18836 case $host_os in aix4.[012]|aix4.[012].*)
18837 # We only want to do this on AIX 4.2 and lower, the check
18838 # below for broken collect2 doesn't work under 4.3+
18839 collect2name=`${CC} -print-prog-name=collect2`
18840 if test -f "$collect2name" && \
18841 strings "$collect2name" | grep resolve_lib_name >/dev/null
18842 then
18843 # We have reworked collect2
18844 hardcode_direct_F77=yes
18845 else
18846 # We have old collect2
18847 hardcode_direct_F77=unsupported
18848 # It fails to find uninstalled libraries when the uninstalled
18849 # path is not listed in the libpath. Setting hardcode_minus_L
18850 # to unsupported forces relinking
18851 hardcode_minus_L_F77=yes
18852 hardcode_libdir_flag_spec_F77='-L$libdir'
18853 hardcode_libdir_separator_F77=
18854 fi
18855 esac
18856 shared_flag='-shared'
18857 if test "$aix_use_runtimelinking" = yes; then
18858 shared_flag="$shared_flag "'${wl}-G'
18859 fi
18860 else
18861 # not using gcc
18862 if test "$host_cpu" = ia64; then
18863 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18864 # chokes on -Wl,-G. The following line is correct:
18865 shared_flag='-G'
18866 else
18867 if test "$aix_use_runtimelinking" = yes; then
18868 shared_flag='${wl}-G'
18869 else
18870 shared_flag='${wl}-bM:SRE'
18871 fi
18872 fi
18873 fi
18874
18875 # It seems that -bexpall does not export symbols beginning with
18876 # underscore (_), so it is better to generate a list of symbols to export.
18877 always_export_symbols_F77=yes
18878 if test "$aix_use_runtimelinking" = yes; then
18879 # Warning - without using the other runtime loading flags (-brtl),
18880 # -berok will link without error, but may produce a broken library.
18881 allow_undefined_flag_F77='-berok'
18882 # Determine the default libpath from the value encoded in an empty executable.
18883 cat >conftest.$ac_ext <<_ACEOF
18884 program main
18885
18886 end
18887 _ACEOF
18888 rm -f conftest.$ac_objext conftest$ac_exeext
18889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18890 (eval $ac_link) 2>conftest.er1
18891 ac_status=$?
18892 grep -v '^ *+' conftest.er1 >conftest.err
18893 rm -f conftest.er1
18894 cat conftest.err >&5
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); } &&
18897 { ac_try='test -z "$ac_f77_werror_flag"
18898 || test ! -s conftest.err'
18899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18900 (eval $ac_try) 2>&5
18901 ac_status=$?
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); }; } &&
18904 { ac_try='test -s conftest$ac_exeext'
18905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18906 (eval $ac_try) 2>&5
18907 ac_status=$?
18908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909 (exit $ac_status); }; }; then
18910
18911 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18912 }'`
18913 # Check for a 64-bit object if we didn't find anything.
18914 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; }
18915 }'`; fi
18916 else
18917 echo "$as_me: failed program was:" >&5
18918 sed 's/^/| /' conftest.$ac_ext >&5
18919
18920 fi
18921 rm -f conftest.err conftest.$ac_objext \
18922 conftest$ac_exeext conftest.$ac_ext
18923 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18924
18925 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
18926 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18927 else
18928 if test "$host_cpu" = ia64; then
18929 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
18930 allow_undefined_flag_F77="-z nodefs"
18931 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
18932 else
18933 # Determine the default libpath from the value encoded in an empty executable.
18934 cat >conftest.$ac_ext <<_ACEOF
18935 program main
18936
18937 end
18938 _ACEOF
18939 rm -f conftest.$ac_objext conftest$ac_exeext
18940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18941 (eval $ac_link) 2>conftest.er1
18942 ac_status=$?
18943 grep -v '^ *+' conftest.er1 >conftest.err
18944 rm -f conftest.er1
18945 cat conftest.err >&5
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); } &&
18948 { ac_try='test -z "$ac_f77_werror_flag"
18949 || test ! -s conftest.err'
18950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951 (eval $ac_try) 2>&5
18952 ac_status=$?
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); }; } &&
18955 { ac_try='test -s conftest$ac_exeext'
18956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957 (eval $ac_try) 2>&5
18958 ac_status=$?
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; }; then
18961
18962 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18963 }'`
18964 # Check for a 64-bit object if we didn't find anything.
18965 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; }
18966 }'`; fi
18967 else
18968 echo "$as_me: failed program was:" >&5
18969 sed 's/^/| /' conftest.$ac_ext >&5
18970
18971 fi
18972 rm -f conftest.err conftest.$ac_objext \
18973 conftest$ac_exeext conftest.$ac_ext
18974 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18975
18976 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
18977 # Warning - without using the other run time loading flags,
18978 # -berok will link without error, but may produce a broken library.
18979 no_undefined_flag_F77=' ${wl}-bernotok'
18980 allow_undefined_flag_F77=' ${wl}-berok'
18981 # -bexpall does not export symbols beginning with underscore (_)
18982 always_export_symbols_F77=yes
18983 # Exported symbols can be pulled into shared objects from archives
18984 whole_archive_flag_spec_F77=' '
18985 archive_cmds_need_lc_F77=yes
18986 # This is similar to how AIX traditionally builds its shared libraries.
18987 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18988 fi
18989 fi
18990 ;;
18991
18992 amigaos*)
18993 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)'
18994 hardcode_libdir_flag_spec_F77='-L$libdir'
18995 hardcode_minus_L_F77=yes
18996 # see comment about different semantics on the GNU ld section
18997 ld_shlibs_F77=no
18998 ;;
18999
19000 bsdi[45]*)
19001 export_dynamic_flag_spec_F77=-rdynamic
19002 ;;
19003
19004 cygwin* | mingw* | pw32*)
19005 # When not using gcc, we currently assume that we are using
19006 # Microsoft Visual C++.
19007 # hardcode_libdir_flag_spec is actually meaningless, as there is
19008 # no search path for DLLs.
19009 hardcode_libdir_flag_spec_F77=' '
19010 allow_undefined_flag_F77=unsupported
19011 # Tell ltmain to make .lib files, not .a files.
19012 libext=lib
19013 # Tell ltmain to make .dll files, not .so files.
19014 shrext_cmds=".dll"
19015 # FIXME: Setting linknames here is a bad hack.
19016 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19017 # The linker will automatically build a .lib file if we build a DLL.
19018 old_archive_From_new_cmds_F77='true'
19019 # FIXME: Should let the user specify the lib program.
19020 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19021 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
19022 enable_shared_with_static_runtimes_F77=yes
19023 ;;
19024
19025 darwin* | rhapsody*)
19026 case $host_os in
19027 rhapsody* | darwin1.[012])
19028 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19029 ;;
19030 *) # Darwin 1.3 on
19031 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19032 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19033 else
19034 case ${MACOSX_DEPLOYMENT_TARGET} in
19035 10.[012])
19036 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19037 ;;
19038 10.*)
19039 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19040 ;;
19041 esac
19042 fi
19043 ;;
19044 esac
19045 archive_cmds_need_lc_F77=no
19046 hardcode_direct_F77=no
19047 hardcode_automatic_F77=yes
19048 hardcode_shlibpath_var_F77=unsupported
19049 whole_archive_flag_spec_F77=''
19050 link_all_deplibs_F77=yes
19051 if test "$GCC" = yes ; then
19052 output_verbose_link_cmd='echo'
19053 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19054 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19055 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19056 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}'
19057 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}'
19058 else
19059 case $cc_basename in
19060 xlc*)
19061 output_verbose_link_cmd='echo'
19062 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19063 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19064 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19065 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}'
19066 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}'
19067 ;;
19068 *)
19069 ld_shlibs_F77=no
19070 ;;
19071 esac
19072 fi
19073 ;;
19074
19075 dgux*)
19076 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19077 hardcode_libdir_flag_spec_F77='-L$libdir'
19078 hardcode_shlibpath_var_F77=no
19079 ;;
19080
19081 freebsd1*)
19082 ld_shlibs_F77=no
19083 ;;
19084
19085 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19086 # support. Future versions do this automatically, but an explicit c++rt0.o
19087 # does not break anything, and helps significantly (at the cost of a little
19088 # extra space).
19089 freebsd2.2*)
19090 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19091 hardcode_libdir_flag_spec_F77='-R$libdir'
19092 hardcode_direct_F77=yes
19093 hardcode_shlibpath_var_F77=no
19094 ;;
19095
19096 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19097 freebsd2*)
19098 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19099 hardcode_direct_F77=yes
19100 hardcode_minus_L_F77=yes
19101 hardcode_shlibpath_var_F77=no
19102 ;;
19103
19104 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19105 freebsd* | kfreebsd*-gnu | dragonfly*)
19106 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19107 hardcode_libdir_flag_spec_F77='-R$libdir'
19108 hardcode_direct_F77=yes
19109 hardcode_shlibpath_var_F77=no
19110 ;;
19111
19112 hpux9*)
19113 if test "$GCC" = yes; then
19114 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'
19115 else
19116 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'
19117 fi
19118 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19119 hardcode_libdir_separator_F77=:
19120 hardcode_direct_F77=yes
19121
19122 # hardcode_minus_L: Not really in the search PATH,
19123 # but as the default location of the library.
19124 hardcode_minus_L_F77=yes
19125 export_dynamic_flag_spec_F77='${wl}-E'
19126 ;;
19127
19128 hpux10* | hpux11*)
19129 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19130 case $host_cpu in
19131 hppa*64*|ia64*)
19132 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19133 ;;
19134 *)
19135 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19136 ;;
19137 esac
19138 else
19139 case $host_cpu in
19140 hppa*64*|ia64*)
19141 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19142 ;;
19143 *)
19144 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19145 ;;
19146 esac
19147 fi
19148 if test "$with_gnu_ld" = no; then
19149 case $host_cpu in
19150 hppa*64*)
19151 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19152 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19153 hardcode_libdir_separator_F77=:
19154 hardcode_direct_F77=no
19155 hardcode_shlibpath_var_F77=no
19156 ;;
19157 ia64*)
19158 hardcode_libdir_flag_spec_F77='-L$libdir'
19159 hardcode_direct_F77=no
19160 hardcode_shlibpath_var_F77=no
19161
19162 # hardcode_minus_L: Not really in the search PATH,
19163 # but as the default location of the library.
19164 hardcode_minus_L_F77=yes
19165 ;;
19166 *)
19167 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19168 hardcode_libdir_separator_F77=:
19169 hardcode_direct_F77=yes
19170 export_dynamic_flag_spec_F77='${wl}-E'
19171
19172 # hardcode_minus_L: Not really in the search PATH,
19173 # but as the default location of the library.
19174 hardcode_minus_L_F77=yes
19175 ;;
19176 esac
19177 fi
19178 ;;
19179
19180 irix5* | irix6* | nonstopux*)
19181 if test "$GCC" = yes; then
19182 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'
19183 else
19184 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'
19185 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19186 fi
19187 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19188 hardcode_libdir_separator_F77=:
19189 link_all_deplibs_F77=yes
19190 ;;
19191
19192 netbsd*)
19193 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19194 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19195 else
19196 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19197 fi
19198 hardcode_libdir_flag_spec_F77='-R$libdir'
19199 hardcode_direct_F77=yes
19200 hardcode_shlibpath_var_F77=no
19201 ;;
19202
19203 newsos6)
19204 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19205 hardcode_direct_F77=yes
19206 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19207 hardcode_libdir_separator_F77=:
19208 hardcode_shlibpath_var_F77=no
19209 ;;
19210
19211 openbsd*)
19212 hardcode_direct_F77=yes
19213 hardcode_shlibpath_var_F77=no
19214 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19215 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19216 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19217 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19218 export_dynamic_flag_spec_F77='${wl}-E'
19219 else
19220 case $host_os in
19221 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19222 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19223 hardcode_libdir_flag_spec_F77='-R$libdir'
19224 ;;
19225 *)
19226 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19227 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19228 ;;
19229 esac
19230 fi
19231 ;;
19232
19233 os2*)
19234 hardcode_libdir_flag_spec_F77='-L$libdir'
19235 hardcode_minus_L_F77=yes
19236 allow_undefined_flag_F77=unsupported
19237 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'
19238 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19239 ;;
19240
19241 osf3*)
19242 if test "$GCC" = yes; then
19243 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19244 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'
19245 else
19246 allow_undefined_flag_F77=' -expect_unresolved \*'
19247 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'
19248 fi
19249 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19250 hardcode_libdir_separator_F77=:
19251 ;;
19252
19253 osf4* | osf5*) # as osf3* with the addition of -msym flag
19254 if test "$GCC" = yes; then
19255 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19256 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'
19257 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19258 else
19259 allow_undefined_flag_F77=' -expect_unresolved \*'
19260 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'
19261 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~
19262 $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'
19263
19264 # Both c and cxx compiler support -rpath directly
19265 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19266 fi
19267 hardcode_libdir_separator_F77=:
19268 ;;
19269
19270 sco3.2v5*)
19271 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19272 hardcode_shlibpath_var_F77=no
19273 export_dynamic_flag_spec_F77='${wl}-Bexport'
19274 runpath_var=LD_RUN_PATH
19275 hardcode_runpath_var=yes
19276 ;;
19277
19278 solaris*)
19279 no_undefined_flag_F77=' -z text'
19280 if test "$GCC" = yes; then
19281 wlarc='${wl}'
19282 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19283 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19284 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19285 else
19286 wlarc=''
19287 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19288 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19289 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19290 fi
19291 hardcode_libdir_flag_spec_F77='-R$libdir'
19292 hardcode_shlibpath_var_F77=no
19293 case $host_os in
19294 solaris2.[0-5] | solaris2.[0-5].*) ;;
19295 *)
19296 # The compiler driver will combine linker options so we
19297 # cannot just pass the convience library names through
19298 # without $wl, iff we do not link with $LD.
19299 # Luckily, gcc supports the same syntax we need for Sun Studio.
19300 # Supported since Solaris 2.6 (maybe 2.5.1?)
19301 case $wlarc in
19302 '')
19303 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19304 *)
19305 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' ;;
19306 esac ;;
19307 esac
19308 link_all_deplibs_F77=yes
19309 ;;
19310
19311 sunos4*)
19312 if test "x$host_vendor" = xsequent; then
19313 # Use $CC to link under sequent, because it throws in some extra .o
19314 # files that make .init and .fini sections work.
19315 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19316 else
19317 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19318 fi
19319 hardcode_libdir_flag_spec_F77='-L$libdir'
19320 hardcode_direct_F77=yes
19321 hardcode_minus_L_F77=yes
19322 hardcode_shlibpath_var_F77=no
19323 ;;
19324
19325 sysv4)
19326 case $host_vendor in
19327 sni)
19328 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19329 hardcode_direct_F77=yes # is this really true???
19330 ;;
19331 siemens)
19332 ## LD is ld it makes a PLAMLIB
19333 ## CC just makes a GrossModule.
19334 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19335 reload_cmds_F77='$CC -r -o $output$reload_objs'
19336 hardcode_direct_F77=no
19337 ;;
19338 motorola)
19339 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19340 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19341 ;;
19342 esac
19343 runpath_var='LD_RUN_PATH'
19344 hardcode_shlibpath_var_F77=no
19345 ;;
19346
19347 sysv4.3*)
19348 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19349 hardcode_shlibpath_var_F77=no
19350 export_dynamic_flag_spec_F77='-Bexport'
19351 ;;
19352
19353 sysv4*MP*)
19354 if test -d /usr/nec; then
19355 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19356 hardcode_shlibpath_var_F77=no
19357 runpath_var=LD_RUN_PATH
19358 hardcode_runpath_var=yes
19359 ld_shlibs_F77=yes
19360 fi
19361 ;;
19362
19363 sysv4.2uw2*)
19364 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19365 hardcode_direct_F77=yes
19366 hardcode_minus_L_F77=no
19367 hardcode_shlibpath_var_F77=no
19368 hardcode_runpath_var=yes
19369 runpath_var=LD_RUN_PATH
19370 ;;
19371
19372 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19373 no_undefined_flag_F77='${wl}-z ${wl}text'
19374 if test "$GCC" = yes; then
19375 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19376 else
19377 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19378 fi
19379 runpath_var='LD_RUN_PATH'
19380 hardcode_shlibpath_var_F77=no
19381 ;;
19382
19383 sysv5*)
19384 no_undefined_flag_F77=' -z text'
19385 # $CC -shared without GNU ld will not create a library from C++
19386 # object files and a static libstdc++, better avoid it by now
19387 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19388 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19389 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19390 hardcode_libdir_flag_spec_F77=
19391 hardcode_shlibpath_var_F77=no
19392 runpath_var='LD_RUN_PATH'
19393 ;;
19394
19395 uts4*)
19396 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19397 hardcode_libdir_flag_spec_F77='-L$libdir'
19398 hardcode_shlibpath_var_F77=no
19399 ;;
19400
19401 *)
19402 ld_shlibs_F77=no
19403 ;;
19404 esac
19405 fi
19406
19407 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19408 echo "${ECHO_T}$ld_shlibs_F77" >&6
19409 test "$ld_shlibs_F77" = no && can_build_shared=no
19410
19411 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19412 if test "$GCC" = yes; then
19413 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19414 fi
19415
19416 #
19417 # Do we need to explicitly link libc?
19418 #
19419 case "x$archive_cmds_need_lc_F77" in
19420 x|xyes)
19421 # Assume -lc should be added
19422 archive_cmds_need_lc_F77=yes
19423
19424 if test "$enable_shared" = yes && test "$GCC" = yes; then
19425 case $archive_cmds_F77 in
19426 *'~'*)
19427 # FIXME: we may have to deal with multi-command sequences.
19428 ;;
19429 '$CC '*)
19430 # Test whether the compiler implicitly links with -lc since on some
19431 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19432 # to ld, don't add -lc before -lgcc.
19433 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19434 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19435 $rm conftest*
19436 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19437
19438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19439 (eval $ac_compile) 2>&5
19440 ac_status=$?
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); } 2>conftest.err; then
19443 soname=conftest
19444 lib=conftest
19445 libobjs=conftest.$ac_objext
19446 deplibs=
19447 wl=$lt_prog_compiler_wl_F77
19448 compiler_flags=-v
19449 linker_flags=-v
19450 verstring=
19451 output_objdir=.
19452 libname=conftest
19453 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19454 allow_undefined_flag_F77=
19455 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19456 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19457 ac_status=$?
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }
19460 then
19461 archive_cmds_need_lc_F77=no
19462 else
19463 archive_cmds_need_lc_F77=yes
19464 fi
19465 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19466 else
19467 cat conftest.err 1>&5
19468 fi
19469 $rm conftest*
19470 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19471 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19472 ;;
19473 esac
19474 fi
19475 ;;
19476 esac
19477
19478 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19479 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19480 library_names_spec=
19481 libname_spec='lib$name'
19482 soname_spec=
19483 shrext_cmds=".so"
19484 postinstall_cmds=
19485 postuninstall_cmds=
19486 finish_cmds=
19487 finish_eval=
19488 shlibpath_var=
19489 shlibpath_overrides_runpath=unknown
19490 version_type=none
19491 dynamic_linker="$host_os ld.so"
19492 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19493 if test "$GCC" = yes; then
19494 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19495 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19496 # if the path contains ";" then we assume it to be the separator
19497 # otherwise default to the standard path separator (i.e. ":") - it is
19498 # assumed that no part of a normal pathname contains ";" but that should
19499 # okay in the real world where ";" in dirpaths is itself problematic.
19500 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19501 else
19502 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19503 fi
19504 else
19505 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19506 fi
19507 need_lib_prefix=unknown
19508 hardcode_into_libs=no
19509
19510 # when you set need_version to no, make sure it does not cause -set_version
19511 # flags to be left without arguments
19512 need_version=unknown
19513
19514 case $host_os in
19515 aix3*)
19516 version_type=linux
19517 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19518 shlibpath_var=LIBPATH
19519
19520 # AIX 3 has no versioning support, so we append a major version to the name.
19521 soname_spec='${libname}${release}${shared_ext}$major'
19522 ;;
19523
19524 aix4* | aix5*)
19525 version_type=linux
19526 need_lib_prefix=no
19527 need_version=no
19528 hardcode_into_libs=yes
19529 if test "$host_cpu" = ia64; then
19530 # AIX 5 supports IA64
19531 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19532 shlibpath_var=LD_LIBRARY_PATH
19533 else
19534 # With GCC up to 2.95.x, collect2 would create an import file
19535 # for dependence libraries. The import file would start with
19536 # the line `#! .'. This would cause the generated library to
19537 # depend on `.', always an invalid library. This was fixed in
19538 # development snapshots of GCC prior to 3.0.
19539 case $host_os in
19540 aix4 | aix4.[01] | aix4.[01].*)
19541 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19542 echo ' yes '
19543 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19544 :
19545 else
19546 can_build_shared=no
19547 fi
19548 ;;
19549 esac
19550 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19551 # soname into executable. Probably we can add versioning support to
19552 # collect2, so additional links can be useful in future.
19553 if test "$aix_use_runtimelinking" = yes; then
19554 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19555 # instead of lib<name>.a to let people know that these are not
19556 # typical AIX shared libraries.
19557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19558 else
19559 # We preserve .a as extension for shared libraries through AIX4.2
19560 # and later when we are not doing run time linking.
19561 library_names_spec='${libname}${release}.a $libname.a'
19562 soname_spec='${libname}${release}${shared_ext}$major'
19563 fi
19564 shlibpath_var=LIBPATH
19565 fi
19566 ;;
19567
19568 amigaos*)
19569 library_names_spec='$libname.ixlibrary $libname.a'
19570 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19571 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'
19572 ;;
19573
19574 beos*)
19575 library_names_spec='${libname}${shared_ext}'
19576 dynamic_linker="$host_os ld.so"
19577 shlibpath_var=LIBRARY_PATH
19578 ;;
19579
19580 bsdi[45]*)
19581 version_type=linux
19582 need_version=no
19583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19584 soname_spec='${libname}${release}${shared_ext}$major'
19585 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19586 shlibpath_var=LD_LIBRARY_PATH
19587 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19588 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19589 # the default ld.so.conf also contains /usr/contrib/lib and
19590 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19591 # libtool to hard-code these into programs
19592 ;;
19593
19594 cygwin* | mingw* | pw32*)
19595 version_type=windows
19596 shrext_cmds=".dll"
19597 need_version=no
19598 need_lib_prefix=no
19599
19600 case $GCC,$host_os in
19601 yes,cygwin* | yes,mingw* | yes,pw32*)
19602 library_names_spec='$libname.dll.a'
19603 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19604 postinstall_cmds='base_file=`basename \${file}`~
19605 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19606 dldir=$destdir/`dirname \$dlpath`~
19607 test -d \$dldir || mkdir -p \$dldir~
19608 $install_prog $dir/$dlname \$dldir/$dlname~
19609 chmod a+x \$dldir/$dlname'
19610 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19611 dlpath=$dir/\$dldll~
19612 $rm \$dlpath'
19613 shlibpath_overrides_runpath=yes
19614
19615 case $host_os in
19616 cygwin*)
19617 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19618 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19619 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19620 ;;
19621 mingw*)
19622 # MinGW DLLs use traditional 'lib' prefix
19623 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19624 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19625 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19626 # It is most probably a Windows format PATH printed by
19627 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19628 # path with ; separators, and with drive letters. We can handle the
19629 # drive letters (cygwin fileutils understands them), so leave them,
19630 # especially as we might pass files found there to a mingw objdump,
19631 # which wouldn't understand a cygwinified path. Ahh.
19632 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19633 else
19634 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19635 fi
19636 ;;
19637 pw32*)
19638 # pw32 DLLs use 'pw' prefix rather than 'lib'
19639 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19640 ;;
19641 esac
19642 ;;
19643
19644 *)
19645 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19646 ;;
19647 esac
19648 dynamic_linker='Win32 ld.exe'
19649 # FIXME: first we should search . and the directory the executable is in
19650 shlibpath_var=PATH
19651 ;;
19652
19653 darwin* | rhapsody*)
19654 dynamic_linker="$host_os dyld"
19655 version_type=darwin
19656 need_lib_prefix=no
19657 need_version=no
19658 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19659 soname_spec='${libname}${release}${major}$shared_ext'
19660 shlibpath_overrides_runpath=yes
19661 shlibpath_var=DYLD_LIBRARY_PATH
19662 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19663 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19664 if test "$GCC" = yes; then
19665 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"`
19666 else
19667 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19668 fi
19669 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19670 ;;
19671
19672 dgux*)
19673 version_type=linux
19674 need_lib_prefix=no
19675 need_version=no
19676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19677 soname_spec='${libname}${release}${shared_ext}$major'
19678 shlibpath_var=LD_LIBRARY_PATH
19679 ;;
19680
19681 freebsd1*)
19682 dynamic_linker=no
19683 ;;
19684
19685 kfreebsd*-gnu)
19686 version_type=linux
19687 need_lib_prefix=no
19688 need_version=no
19689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19690 soname_spec='${libname}${release}${shared_ext}$major'
19691 shlibpath_var=LD_LIBRARY_PATH
19692 shlibpath_overrides_runpath=no
19693 hardcode_into_libs=yes
19694 dynamic_linker='GNU ld.so'
19695 ;;
19696
19697 freebsd* | dragonfly*)
19698 # DragonFly does not have aout. When/if they implement a new
19699 # versioning mechanism, adjust this.
19700 if test -x /usr/bin/objformat; then
19701 objformat=`/usr/bin/objformat`
19702 else
19703 case $host_os in
19704 freebsd[123]*) objformat=aout ;;
19705 *) objformat=elf ;;
19706 esac
19707 fi
19708 version_type=freebsd-$objformat
19709 case $version_type in
19710 freebsd-elf*)
19711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19712 need_version=no
19713 need_lib_prefix=no
19714 ;;
19715 freebsd-*)
19716 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19717 need_version=yes
19718 ;;
19719 esac
19720 shlibpath_var=LD_LIBRARY_PATH
19721 case $host_os in
19722 freebsd2*)
19723 shlibpath_overrides_runpath=yes
19724 ;;
19725 freebsd3.[01]* | freebsdelf3.[01]*)
19726 shlibpath_overrides_runpath=yes
19727 hardcode_into_libs=yes
19728 ;;
19729 *) # from 3.2 on
19730 shlibpath_overrides_runpath=no
19731 hardcode_into_libs=yes
19732 ;;
19733 esac
19734 ;;
19735
19736 gnu*)
19737 version_type=linux
19738 need_lib_prefix=no
19739 need_version=no
19740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19741 soname_spec='${libname}${release}${shared_ext}$major'
19742 shlibpath_var=LD_LIBRARY_PATH
19743 hardcode_into_libs=yes
19744 ;;
19745
19746 hpux9* | hpux10* | hpux11*)
19747 # Give a soname corresponding to the major version so that dld.sl refuses to
19748 # link against other versions.
19749 version_type=sunos
19750 need_lib_prefix=no
19751 need_version=no
19752 case $host_cpu in
19753 ia64*)
19754 shrext_cmds='.so'
19755 hardcode_into_libs=yes
19756 dynamic_linker="$host_os dld.so"
19757 shlibpath_var=LD_LIBRARY_PATH
19758 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19760 soname_spec='${libname}${release}${shared_ext}$major'
19761 if test "X$HPUX_IA64_MODE" = X32; then
19762 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19763 else
19764 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19765 fi
19766 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19767 ;;
19768 hppa*64*)
19769 shrext_cmds='.sl'
19770 hardcode_into_libs=yes
19771 dynamic_linker="$host_os dld.sl"
19772 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19773 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19775 soname_spec='${libname}${release}${shared_ext}$major'
19776 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19777 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19778 ;;
19779 *)
19780 shrext_cmds='.sl'
19781 dynamic_linker="$host_os dld.sl"
19782 shlibpath_var=SHLIB_PATH
19783 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19785 soname_spec='${libname}${release}${shared_ext}$major'
19786 ;;
19787 esac
19788 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19789 postinstall_cmds='chmod 555 $lib'
19790 ;;
19791
19792 irix5* | irix6* | nonstopux*)
19793 case $host_os in
19794 nonstopux*) version_type=nonstopux ;;
19795 *)
19796 if test "$lt_cv_prog_gnu_ld" = yes; then
19797 version_type=linux
19798 else
19799 version_type=irix
19800 fi ;;
19801 esac
19802 need_lib_prefix=no
19803 need_version=no
19804 soname_spec='${libname}${release}${shared_ext}$major'
19805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19806 case $host_os in
19807 irix5* | nonstopux*)
19808 libsuff= shlibsuff=
19809 ;;
19810 *)
19811 case $LD in # libtool.m4 will add one of these switches to LD
19812 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19813 libsuff= shlibsuff= libmagic=32-bit;;
19814 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19815 libsuff=32 shlibsuff=N32 libmagic=N32;;
19816 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19817 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19818 *) libsuff= shlibsuff= libmagic=never-match;;
19819 esac
19820 ;;
19821 esac
19822 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19823 shlibpath_overrides_runpath=no
19824 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19825 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19826 hardcode_into_libs=yes
19827 ;;
19828
19829 # No shared lib support for Linux oldld, aout, or coff.
19830 linux*oldld* | linux*aout* | linux*coff*)
19831 dynamic_linker=no
19832 ;;
19833
19834 # This must be Linux ELF.
19835 linux*)
19836 version_type=linux
19837 need_lib_prefix=no
19838 need_version=no
19839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19840 soname_spec='${libname}${release}${shared_ext}$major'
19841 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19842 shlibpath_var=LD_LIBRARY_PATH
19843 shlibpath_overrides_runpath=no
19844 # This implies no fast_install, which is unacceptable.
19845 # Some rework will be needed to allow for fast_install
19846 # before this can be enabled.
19847 hardcode_into_libs=yes
19848
19849 # Append ld.so.conf contents to the search path
19850 if test -f /etc/ld.so.conf; then
19851 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19852 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19853 fi
19854
19855 # We used to test for /lib/ld.so.1 and disable shared libraries on
19856 # powerpc, because MkLinux only supported shared libraries with the
19857 # GNU dynamic linker. Since this was broken with cross compilers,
19858 # most powerpc-linux boxes support dynamic linking these days and
19859 # people can always --disable-shared, the test was removed, and we
19860 # assume the GNU/Linux dynamic linker is in use.
19861 dynamic_linker='GNU/Linux ld.so'
19862 ;;
19863
19864 knetbsd*-gnu)
19865 version_type=linux
19866 need_lib_prefix=no
19867 need_version=no
19868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19869 soname_spec='${libname}${release}${shared_ext}$major'
19870 shlibpath_var=LD_LIBRARY_PATH
19871 shlibpath_overrides_runpath=no
19872 hardcode_into_libs=yes
19873 dynamic_linker='GNU ld.so'
19874 ;;
19875
19876 netbsd*)
19877 version_type=sunos
19878 need_lib_prefix=no
19879 need_version=no
19880 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19883 dynamic_linker='NetBSD (a.out) ld.so'
19884 else
19885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19886 soname_spec='${libname}${release}${shared_ext}$major'
19887 dynamic_linker='NetBSD ld.elf_so'
19888 fi
19889 shlibpath_var=LD_LIBRARY_PATH
19890 shlibpath_overrides_runpath=yes
19891 hardcode_into_libs=yes
19892 ;;
19893
19894 newsos6)
19895 version_type=linux
19896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19897 shlibpath_var=LD_LIBRARY_PATH
19898 shlibpath_overrides_runpath=yes
19899 ;;
19900
19901 nto-qnx*)
19902 version_type=linux
19903 need_lib_prefix=no
19904 need_version=no
19905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19906 soname_spec='${libname}${release}${shared_ext}$major'
19907 shlibpath_var=LD_LIBRARY_PATH
19908 shlibpath_overrides_runpath=yes
19909 ;;
19910
19911 openbsd*)
19912 version_type=sunos
19913 need_lib_prefix=no
19914 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19915 case $host_os in
19916 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19917 *) need_version=no ;;
19918 esac
19919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19920 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19921 shlibpath_var=LD_LIBRARY_PATH
19922 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19923 case $host_os in
19924 openbsd2.[89] | openbsd2.[89].*)
19925 shlibpath_overrides_runpath=no
19926 ;;
19927 *)
19928 shlibpath_overrides_runpath=yes
19929 ;;
19930 esac
19931 else
19932 shlibpath_overrides_runpath=yes
19933 fi
19934 ;;
19935
19936 os2*)
19937 libname_spec='$name'
19938 shrext_cmds=".dll"
19939 need_lib_prefix=no
19940 library_names_spec='$libname${shared_ext} $libname.a'
19941 dynamic_linker='OS/2 ld.exe'
19942 shlibpath_var=LIBPATH
19943 ;;
19944
19945 osf3* | osf4* | osf5*)
19946 version_type=osf
19947 need_lib_prefix=no
19948 need_version=no
19949 soname_spec='${libname}${release}${shared_ext}$major'
19950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19951 shlibpath_var=LD_LIBRARY_PATH
19952 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19953 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19954 ;;
19955
19956 sco3.2v5*)
19957 version_type=osf
19958 soname_spec='${libname}${release}${shared_ext}$major'
19959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19960 shlibpath_var=LD_LIBRARY_PATH
19961 ;;
19962
19963 solaris*)
19964 version_type=linux
19965 need_lib_prefix=no
19966 need_version=no
19967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19968 soname_spec='${libname}${release}${shared_ext}$major'
19969 shlibpath_var=LD_LIBRARY_PATH
19970 shlibpath_overrides_runpath=yes
19971 hardcode_into_libs=yes
19972 # ldd complains unless libraries are executable
19973 postinstall_cmds='chmod +x $lib'
19974 ;;
19975
19976 sunos4*)
19977 version_type=sunos
19978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19979 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19980 shlibpath_var=LD_LIBRARY_PATH
19981 shlibpath_overrides_runpath=yes
19982 if test "$with_gnu_ld" = yes; then
19983 need_lib_prefix=no
19984 fi
19985 need_version=yes
19986 ;;
19987
19988 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19989 version_type=linux
19990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19991 soname_spec='${libname}${release}${shared_ext}$major'
19992 shlibpath_var=LD_LIBRARY_PATH
19993 case $host_vendor in
19994 sni)
19995 shlibpath_overrides_runpath=no
19996 need_lib_prefix=no
19997 export_dynamic_flag_spec='${wl}-Blargedynsym'
19998 runpath_var=LD_RUN_PATH
19999 ;;
20000 siemens)
20001 need_lib_prefix=no
20002 ;;
20003 motorola)
20004 need_lib_prefix=no
20005 need_version=no
20006 shlibpath_overrides_runpath=no
20007 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20008 ;;
20009 esac
20010 ;;
20011
20012 sysv4*MP*)
20013 if test -d /usr/nec ;then
20014 version_type=linux
20015 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20016 soname_spec='$libname${shared_ext}.$major'
20017 shlibpath_var=LD_LIBRARY_PATH
20018 fi
20019 ;;
20020
20021 uts4*)
20022 version_type=linux
20023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20024 soname_spec='${libname}${release}${shared_ext}$major'
20025 shlibpath_var=LD_LIBRARY_PATH
20026 ;;
20027
20028 *)
20029 dynamic_linker=no
20030 ;;
20031 esac
20032 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20033 echo "${ECHO_T}$dynamic_linker" >&6
20034 test "$dynamic_linker" = no && can_build_shared=no
20035
20036 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20037 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20038 hardcode_action_F77=
20039 if test -n "$hardcode_libdir_flag_spec_F77" || \
20040 test -n "$runpath_var_F77" || \
20041 test "X$hardcode_automatic_F77" = "Xyes" ; then
20042
20043 # We can hardcode non-existant directories.
20044 if test "$hardcode_direct_F77" != no &&
20045 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20046 # have to relink, otherwise we might link with an installed library
20047 # when we should be linking with a yet-to-be-installed one
20048 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20049 test "$hardcode_minus_L_F77" != no; then
20050 # Linking always hardcodes the temporary library directory.
20051 hardcode_action_F77=relink
20052 else
20053 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20054 hardcode_action_F77=immediate
20055 fi
20056 else
20057 # We cannot hardcode anything, or else we can only hardcode existing
20058 # directories.
20059 hardcode_action_F77=unsupported
20060 fi
20061 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20062 echo "${ECHO_T}$hardcode_action_F77" >&6
20063
20064 if test "$hardcode_action_F77" = relink; then
20065 # Fast installation is not supported
20066 enable_fast_install=no
20067 elif test "$shlibpath_overrides_runpath" = yes ||
20068 test "$enable_shared" = no; then
20069 # Fast installation is not necessary
20070 enable_fast_install=needless
20071 fi
20072
20073 striplib=
20074 old_striplib=
20075 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20076 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20077 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20078 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20079 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20080 echo "$as_me:$LINENO: result: yes" >&5
20081 echo "${ECHO_T}yes" >&6
20082 else
20083 # FIXME - insert some real tests, host_os isn't really good enough
20084 case $host_os in
20085 darwin*)
20086 if test -n "$STRIP" ; then
20087 striplib="$STRIP -x"
20088 echo "$as_me:$LINENO: result: yes" >&5
20089 echo "${ECHO_T}yes" >&6
20090 else
20091 echo "$as_me:$LINENO: result: no" >&5
20092 echo "${ECHO_T}no" >&6
20093 fi
20094 ;;
20095 *)
20096 echo "$as_me:$LINENO: result: no" >&5
20097 echo "${ECHO_T}no" >&6
20098 ;;
20099 esac
20100 fi
20101
20102
20103
20104 # The else clause should only fire when bootstrapping the
20105 # libtool distribution, otherwise you forgot to ship ltmain.sh
20106 # with your package, and you will get complaints that there are
20107 # no rules to generate ltmain.sh.
20108 if test -f "$ltmain"; then
20109 # See if we are running on zsh, and set the options which allow our commands through
20110 # without removal of \ escapes.
20111 if test -n "${ZSH_VERSION+set}" ; then
20112 setopt NO_GLOB_SUBST
20113 fi
20114 # Now quote all the things that may contain metacharacters while being
20115 # careful not to overquote the AC_SUBSTed values. We take copies of the
20116 # variables and quote the copies for generation of the libtool script.
20117 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20118 SED SHELL STRIP \
20119 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20120 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20121 deplibs_check_method reload_flag reload_cmds need_locks \
20122 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20123 lt_cv_sys_global_symbol_to_c_name_address \
20124 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20125 old_postinstall_cmds old_postuninstall_cmds \
20126 compiler_F77 \
20127 CC_F77 \
20128 LD_F77 \
20129 lt_prog_compiler_wl_F77 \
20130 lt_prog_compiler_pic_F77 \
20131 lt_prog_compiler_static_F77 \
20132 lt_prog_compiler_no_builtin_flag_F77 \
20133 export_dynamic_flag_spec_F77 \
20134 thread_safe_flag_spec_F77 \
20135 whole_archive_flag_spec_F77 \
20136 enable_shared_with_static_runtimes_F77 \
20137 old_archive_cmds_F77 \
20138 old_archive_from_new_cmds_F77 \
20139 predep_objects_F77 \
20140 postdep_objects_F77 \
20141 predeps_F77 \
20142 postdeps_F77 \
20143 compiler_lib_search_path_F77 \
20144 archive_cmds_F77 \
20145 archive_expsym_cmds_F77 \
20146 postinstall_cmds_F77 \
20147 postuninstall_cmds_F77 \
20148 old_archive_from_expsyms_cmds_F77 \
20149 allow_undefined_flag_F77 \
20150 no_undefined_flag_F77 \
20151 export_symbols_cmds_F77 \
20152 hardcode_libdir_flag_spec_F77 \
20153 hardcode_libdir_flag_spec_ld_F77 \
20154 hardcode_libdir_separator_F77 \
20155 hardcode_automatic_F77 \
20156 module_cmds_F77 \
20157 module_expsym_cmds_F77 \
20158 lt_cv_prog_compiler_c_o_F77 \
20159 exclude_expsyms_F77 \
20160 include_expsyms_F77; do
20161
20162 case $var in
20163 old_archive_cmds_F77 | \
20164 old_archive_from_new_cmds_F77 | \
20165 archive_cmds_F77 | \
20166 archive_expsym_cmds_F77 | \
20167 module_cmds_F77 | \
20168 module_expsym_cmds_F77 | \
20169 old_archive_from_expsyms_cmds_F77 | \
20170 export_symbols_cmds_F77 | \
20171 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20172 postinstall_cmds | postuninstall_cmds | \
20173 old_postinstall_cmds | old_postuninstall_cmds | \
20174 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20175 # Double-quote double-evaled strings.
20176 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20177 ;;
20178 *)
20179 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20180 ;;
20181 esac
20182 done
20183
20184 case $lt_echo in
20185 *'\$0 --fallback-echo"')
20186 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20187 ;;
20188 esac
20189
20190 cfgfile="$ofile"
20191
20192 cat <<__EOF__ >> "$cfgfile"
20193 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20194
20195 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20196
20197 # Shell to use when invoking shell scripts.
20198 SHELL=$lt_SHELL
20199
20200 # Whether or not to build shared libraries.
20201 build_libtool_libs=$enable_shared
20202
20203 # Whether or not to build static libraries.
20204 build_old_libs=$enable_static
20205
20206 # Whether or not to add -lc for building shared libraries.
20207 build_libtool_need_lc=$archive_cmds_need_lc_F77
20208
20209 # Whether or not to disallow shared libs when runtime libs are static
20210 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20211
20212 # Whether or not to optimize for fast installation.
20213 fast_install=$enable_fast_install
20214
20215 # The host system.
20216 host_alias=$host_alias
20217 host=$host
20218 host_os=$host_os
20219
20220 # The build system.
20221 build_alias=$build_alias
20222 build=$build
20223 build_os=$build_os
20224
20225 # An echo program that does not interpret backslashes.
20226 echo=$lt_echo
20227
20228 # The archiver.
20229 AR=$lt_AR
20230 AR_FLAGS=$lt_AR_FLAGS
20231
20232 # A C compiler.
20233 LTCC=$lt_LTCC
20234
20235 # A language-specific compiler.
20236 CC=$lt_compiler_F77
20237
20238 # Is the compiler the GNU C compiler?
20239 with_gcc=$GCC_F77
20240
20241 # An ERE matcher.
20242 EGREP=$lt_EGREP
20243
20244 # The linker used to build libraries.
20245 LD=$lt_LD_F77
20246
20247 # Whether we need hard or soft links.
20248 LN_S=$lt_LN_S
20249
20250 # A BSD-compatible nm program.
20251 NM=$lt_NM
20252
20253 # A symbol stripping program
20254 STRIP=$lt_STRIP
20255
20256 # Used to examine libraries when file_magic_cmd begins "file"
20257 MAGIC_CMD=$MAGIC_CMD
20258
20259 # Used on cygwin: DLL creation program.
20260 DLLTOOL="$DLLTOOL"
20261
20262 # Used on cygwin: object dumper.
20263 OBJDUMP="$OBJDUMP"
20264
20265 # Used on cygwin: assembler.
20266 AS="$AS"
20267
20268 # The name of the directory that contains temporary libtool files.
20269 objdir=$objdir
20270
20271 # How to create reloadable object files.
20272 reload_flag=$lt_reload_flag
20273 reload_cmds=$lt_reload_cmds
20274
20275 # How to pass a linker flag through the compiler.
20276 wl=$lt_lt_prog_compiler_wl_F77
20277
20278 # Object file suffix (normally "o").
20279 objext="$ac_objext"
20280
20281 # Old archive suffix (normally "a").
20282 libext="$libext"
20283
20284 # Shared library suffix (normally ".so").
20285 shrext_cmds='$shrext_cmds'
20286
20287 # Executable file suffix (normally "").
20288 exeext="$exeext"
20289
20290 # Additional compiler flags for building library objects.
20291 pic_flag=$lt_lt_prog_compiler_pic_F77
20292 pic_mode=$pic_mode
20293
20294 # What is the maximum length of a command?
20295 max_cmd_len=$lt_cv_sys_max_cmd_len
20296
20297 # Does compiler simultaneously support -c and -o options?
20298 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20299
20300 # Must we lock files when doing compilation?
20301 need_locks=$lt_need_locks
20302
20303 # Do we need the lib prefix for modules?
20304 need_lib_prefix=$need_lib_prefix
20305
20306 # Do we need a version for libraries?
20307 need_version=$need_version
20308
20309 # Whether dlopen is supported.
20310 dlopen_support=$enable_dlopen
20311
20312 # Whether dlopen of programs is supported.
20313 dlopen_self=$enable_dlopen_self
20314
20315 # Whether dlopen of statically linked programs is supported.
20316 dlopen_self_static=$enable_dlopen_self_static
20317
20318 # Compiler flag to prevent dynamic linking.
20319 link_static_flag=$lt_lt_prog_compiler_static_F77
20320
20321 # Compiler flag to turn off builtin functions.
20322 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20323
20324 # Compiler flag to allow reflexive dlopens.
20325 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20326
20327 # Compiler flag to generate shared objects directly from archives.
20328 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20329
20330 # Compiler flag to generate thread-safe objects.
20331 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20332
20333 # Library versioning type.
20334 version_type=$version_type
20335
20336 # Format of library name prefix.
20337 libname_spec=$lt_libname_spec
20338
20339 # List of archive names. First name is the real one, the rest are links.
20340 # The last name is the one that the linker finds with -lNAME.
20341 library_names_spec=$lt_library_names_spec
20342
20343 # The coded name of the library, if different from the real name.
20344 soname_spec=$lt_soname_spec
20345
20346 # Commands used to build and install an old-style archive.
20347 RANLIB=$lt_RANLIB
20348 old_archive_cmds=$lt_old_archive_cmds_F77
20349 old_postinstall_cmds=$lt_old_postinstall_cmds
20350 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20351
20352 # Create an old-style archive from a shared archive.
20353 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20354
20355 # Create a temporary old-style archive to link instead of a shared archive.
20356 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20357
20358 # Commands used to build and install a shared archive.
20359 archive_cmds=$lt_archive_cmds_F77
20360 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20361 postinstall_cmds=$lt_postinstall_cmds
20362 postuninstall_cmds=$lt_postuninstall_cmds
20363
20364 # Commands used to build a loadable module (assumed same as above if empty)
20365 module_cmds=$lt_module_cmds_F77
20366 module_expsym_cmds=$lt_module_expsym_cmds_F77
20367
20368 # Commands to strip libraries.
20369 old_striplib=$lt_old_striplib
20370 striplib=$lt_striplib
20371
20372 # Dependencies to place before the objects being linked to create a
20373 # shared library.
20374 predep_objects=$lt_predep_objects_F77
20375
20376 # Dependencies to place after the objects being linked to create a
20377 # shared library.
20378 postdep_objects=$lt_postdep_objects_F77
20379
20380 # Dependencies to place before the objects being linked to create a
20381 # shared library.
20382 predeps=$lt_predeps_F77
20383
20384 # Dependencies to place after the objects being linked to create a
20385 # shared library.
20386 postdeps=$lt_postdeps_F77
20387
20388 # The library search path used internally by the compiler when linking
20389 # a shared library.
20390 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20391
20392 # Method to check whether dependent libraries are shared objects.
20393 deplibs_check_method=$lt_deplibs_check_method
20394
20395 # Command to use when deplibs_check_method == file_magic.
20396 file_magic_cmd=$lt_file_magic_cmd
20397
20398 # Flag that allows shared libraries with undefined symbols to be built.
20399 allow_undefined_flag=$lt_allow_undefined_flag_F77
20400
20401 # Flag that forces no undefined symbols.
20402 no_undefined_flag=$lt_no_undefined_flag_F77
20403
20404 # Commands used to finish a libtool library installation in a directory.
20405 finish_cmds=$lt_finish_cmds
20406
20407 # Same as above, but a single script fragment to be evaled but not shown.
20408 finish_eval=$lt_finish_eval
20409
20410 # Take the output of nm and produce a listing of raw symbols and C names.
20411 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20412
20413 # Transform the output of nm in a proper C declaration
20414 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20415
20416 # Transform the output of nm in a C name address pair
20417 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20418
20419 # This is the shared library runtime path variable.
20420 runpath_var=$runpath_var
20421
20422 # This is the shared library path variable.
20423 shlibpath_var=$shlibpath_var
20424
20425 # Is shlibpath searched before the hard-coded library search path?
20426 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20427
20428 # How to hardcode a shared library path into an executable.
20429 hardcode_action=$hardcode_action_F77
20430
20431 # Whether we should hardcode library paths into libraries.
20432 hardcode_into_libs=$hardcode_into_libs
20433
20434 # Flag to hardcode \$libdir into a binary during linking.
20435 # This must work even if \$libdir does not exist.
20436 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20437
20438 # If ld is used when linking, flag to hardcode \$libdir into
20439 # a binary during linking. This must work even if \$libdir does
20440 # not exist.
20441 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20442
20443 # Whether we need a single -rpath flag with a separated argument.
20444 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20445
20446 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20447 # resulting binary.
20448 hardcode_direct=$hardcode_direct_F77
20449
20450 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20451 # resulting binary.
20452 hardcode_minus_L=$hardcode_minus_L_F77
20453
20454 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20455 # the resulting binary.
20456 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20457
20458 # Set to yes if building a shared library automatically hardcodes DIR into the library
20459 # and all subsequent libraries and executables linked against it.
20460 hardcode_automatic=$hardcode_automatic_F77
20461
20462 # Variables whose values should be saved in libtool wrapper scripts and
20463 # restored at relink time.
20464 variables_saved_for_relink="$variables_saved_for_relink"
20465
20466 # Whether libtool must link a program against all its dependency libraries.
20467 link_all_deplibs=$link_all_deplibs_F77
20468
20469 # Compile-time system search path for libraries
20470 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20471
20472 # Run-time system search path for libraries
20473 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20474
20475 # Fix the shell variable \$srcfile for the compiler.
20476 fix_srcfile_path="$fix_srcfile_path_F77"
20477
20478 # Set to yes if exported symbols are required.
20479 always_export_symbols=$always_export_symbols_F77
20480
20481 # The commands to list exported symbols.
20482 export_symbols_cmds=$lt_export_symbols_cmds_F77
20483
20484 # The commands to extract the exported symbol list from a shared archive.
20485 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20486
20487 # Symbols that should not be listed in the preloaded symbols.
20488 exclude_expsyms=$lt_exclude_expsyms_F77
20489
20490 # Symbols that must always be exported.
20491 include_expsyms=$lt_include_expsyms_F77
20492
20493 # ### END LIBTOOL TAG CONFIG: $tagname
20494
20495 __EOF__
20496
20497
20498 else
20499 # If there is no Makefile yet, we rely on a make rule to execute
20500 # `config.status --recheck' to rerun these tests and create the
20501 # libtool script then.
20502 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20503 if test -f "$ltmain_in"; then
20504 test -f Makefile && make "$ltmain"
20505 fi
20506 fi
20507
20508
20509 ac_ext=c
20510 ac_cpp='$CPP $CPPFLAGS'
20511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20514
20515 CC="$lt_save_CC"
20516
20517 else
20518 tagname=""
20519 fi
20520 ;;
20521
20522 GCJ)
20523 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20524
20525
20526
20527 # Source file extension for Java test sources.
20528 ac_ext=java
20529
20530 # Object file extension for compiled Java test sources.
20531 objext=o
20532 objext_GCJ=$objext
20533
20534 # Code to be used in simple compile tests
20535 lt_simple_compile_test_code="class foo {}\n"
20536
20537 # Code to be used in simple link tests
20538 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
20539
20540 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20541
20542 # If no C compiler was specified, use CC.
20543 LTCC=${LTCC-"$CC"}
20544
20545 # Allow CC to be a program name with arguments.
20546 compiler=$CC
20547
20548
20549 # save warnings/boilerplate of simple test code
20550 ac_outfile=conftest.$ac_objext
20551 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20552 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
20553 _lt_compiler_boilerplate=`cat conftest.err`
20554 $rm conftest*
20555
20556 ac_outfile=conftest.$ac_objext
20557 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20558 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
20559 _lt_linker_boilerplate=`cat conftest.err`
20560 $rm conftest*
20561
20562
20563 # Allow CC to be a program name with arguments.
20564 lt_save_CC="$CC"
20565 CC=${GCJ-"gcj"}
20566 compiler=$CC
20567 compiler_GCJ=$CC
20568 for cc_temp in $compiler""; do
20569 case $cc_temp in
20570 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20571 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20572 \-*) ;;
20573 *) break;;
20574 esac
20575 done
20576 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20577
20578
20579 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20580 archive_cmds_need_lc_GCJ=no
20581
20582 old_archive_cmds_GCJ=$old_archive_cmds
20583
20584
20585 lt_prog_compiler_no_builtin_flag_GCJ=
20586
20587 if test "$GCC" = yes; then
20588 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20589
20590
20591 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20592 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20593 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20594 echo $ECHO_N "(cached) $ECHO_C" >&6
20595 else
20596 lt_cv_prog_compiler_rtti_exceptions=no
20597 ac_outfile=conftest.$ac_objext
20598 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20599 lt_compiler_flag="-fno-rtti -fno-exceptions"
20600 # Insert the option either (1) after the last *FLAGS variable, or
20601 # (2) before a word containing "conftest.", or (3) at the end.
20602 # Note that $ac_compile itself does not contain backslashes and begins
20603 # with a dollar sign (not a hyphen), so the echo should work correctly.
20604 # The option is referenced via a variable to avoid confusing sed.
20605 lt_compile=`echo "$ac_compile" | $SED \
20606 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20607 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20608 -e 's:$: $lt_compiler_flag:'`
20609 (eval echo "\"\$as_me:20609: $lt_compile\"" >&5)
20610 (eval "$lt_compile" 2>conftest.err)
20611 ac_status=$?
20612 cat conftest.err >&5
20613 echo "$as_me:20613: \$? = $ac_status" >&5
20614 if (exit $ac_status) && test -s "$ac_outfile"; then
20615 # The compiler can only warn and ignore the option if not recognized
20616 # So say no if there are warnings other than the usual output.
20617 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
20618 $SED '/^$/d' conftest.err >conftest.er2
20619 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
20620 lt_cv_prog_compiler_rtti_exceptions=yes
20621 fi
20622 fi
20623 $rm conftest*
20624
20625 fi
20626 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
20627 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
20628
20629 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
20630 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
20631 else
20632 :
20633 fi
20634
20635 fi
20636
20637 lt_prog_compiler_wl_GCJ=
20638 lt_prog_compiler_pic_GCJ=
20639 lt_prog_compiler_static_GCJ=
20640
20641 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20642 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20643
20644 if test "$GCC" = yes; then
20645 lt_prog_compiler_wl_GCJ='-Wl,'
20646 lt_prog_compiler_static_GCJ='-static'
20647
20648 case $host_os in
20649 aix*)
20650 # All AIX code is PIC.
20651 if test "$host_cpu" = ia64; then
20652 # AIX 5 now supports IA64 processor
20653 lt_prog_compiler_static_GCJ='-Bstatic'
20654 fi
20655 ;;
20656
20657 amigaos*)
20658 # FIXME: we need at least 68020 code to build shared libraries, but
20659 # adding the `-m68020' flag to GCC prevents building anything better,
20660 # like `-m68040'.
20661 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
20662 ;;
20663
20664 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20665 # PIC is the default for these OSes.
20666 ;;
20667
20668 mingw* | pw32* | os2*)
20669 # This hack is so that the source file can tell whether it is being
20670 # built for inclusion in a dll (and should export symbols for example).
20671 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
20672 ;;
20673
20674 darwin* | rhapsody*)
20675 # PIC is the default on this platform
20676 # Common symbols not allowed in MH_DYLIB files
20677 lt_prog_compiler_pic_GCJ='-fno-common'
20678 ;;
20679
20680 msdosdjgpp*)
20681 # Just because we use GCC doesn't mean we suddenly get shared libraries
20682 # on systems that don't support them.
20683 lt_prog_compiler_can_build_shared_GCJ=no
20684 enable_shared=no
20685 ;;
20686
20687 sysv4*MP*)
20688 if test -d /usr/nec; then
20689 lt_prog_compiler_pic_GCJ=-Kconform_pic
20690 fi
20691 ;;
20692
20693 hpux*)
20694 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20695 # not for PA HP-UX.
20696 case $host_cpu in
20697 hppa*64*|ia64*)
20698 # +Z the default
20699 ;;
20700 *)
20701 lt_prog_compiler_pic_GCJ='-fPIC'
20702 ;;
20703 esac
20704 ;;
20705
20706 *)
20707 lt_prog_compiler_pic_GCJ='-fPIC'
20708 ;;
20709 esac
20710 else
20711 # PORTME Check for flag to pass linker flags through the system compiler.
20712 case $host_os in
20713 aix*)
20714 lt_prog_compiler_wl_GCJ='-Wl,'
20715 if test "$host_cpu" = ia64; then
20716 # AIX 5 now supports IA64 processor
20717 lt_prog_compiler_static_GCJ='-Bstatic'
20718 else
20719 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
20720 fi
20721 ;;
20722 darwin*)
20723 # PIC is the default on this platform
20724 # Common symbols not allowed in MH_DYLIB files
20725 case $cc_basename in
20726 xlc*)
20727 lt_prog_compiler_pic_GCJ='-qnocommon'
20728 lt_prog_compiler_wl_GCJ='-Wl,'
20729 ;;
20730 esac
20731 ;;
20732
20733 mingw* | pw32* | os2*)
20734 # This hack is so that the source file can tell whether it is being
20735 # built for inclusion in a dll (and should export symbols for example).
20736 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
20737 ;;
20738
20739 hpux9* | hpux10* | hpux11*)
20740 lt_prog_compiler_wl_GCJ='-Wl,'
20741 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20742 # not for PA HP-UX.
20743 case $host_cpu in
20744 hppa*64*|ia64*)
20745 # +Z the default
20746 ;;
20747 *)
20748 lt_prog_compiler_pic_GCJ='+Z'
20749 ;;
20750 esac
20751 # Is there a better lt_prog_compiler_static that works with the bundled CC?
20752 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
20753 ;;
20754
20755 irix5* | irix6* | nonstopux*)
20756 lt_prog_compiler_wl_GCJ='-Wl,'
20757 # PIC (with -KPIC) is the default.
20758 lt_prog_compiler_static_GCJ='-non_shared'
20759 ;;
20760
20761 newsos6)
20762 lt_prog_compiler_pic_GCJ='-KPIC'
20763 lt_prog_compiler_static_GCJ='-Bstatic'
20764 ;;
20765
20766 linux*)
20767 case $cc_basename in
20768 icc* | ecc*)
20769 lt_prog_compiler_wl_GCJ='-Wl,'
20770 lt_prog_compiler_pic_GCJ='-KPIC'
20771 lt_prog_compiler_static_GCJ='-static'
20772 ;;
20773 pgcc* | pgf77* | pgf90* | pgf95*)
20774 # Portland Group compilers (*not* the Pentium gcc compiler,
20775 # which looks to be a dead project)
20776 lt_prog_compiler_wl_GCJ='-Wl,'
20777 lt_prog_compiler_pic_GCJ='-fpic'
20778 lt_prog_compiler_static_GCJ='-Bstatic'
20779 ;;
20780 ccc*)
20781 lt_prog_compiler_wl_GCJ='-Wl,'
20782 # All Alpha code is PIC.
20783 lt_prog_compiler_static_GCJ='-non_shared'
20784 ;;
20785 esac
20786 ;;
20787
20788 osf3* | osf4* | osf5*)
20789 lt_prog_compiler_wl_GCJ='-Wl,'
20790 # All OSF/1 code is PIC.
20791 lt_prog_compiler_static_GCJ='-non_shared'
20792 ;;
20793
20794 sco3.2v5*)
20795 lt_prog_compiler_pic_GCJ='-Kpic'
20796 lt_prog_compiler_static_GCJ='-dn'
20797 ;;
20798
20799 solaris*)
20800 lt_prog_compiler_pic_GCJ='-KPIC'
20801 lt_prog_compiler_static_GCJ='-Bstatic'
20802 case $cc_basename in
20803 f77* | f90* | f95*)
20804 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
20805 *)
20806 lt_prog_compiler_wl_GCJ='-Wl,';;
20807 esac
20808 ;;
20809
20810 sunos4*)
20811 lt_prog_compiler_wl_GCJ='-Qoption ld '
20812 lt_prog_compiler_pic_GCJ='-PIC'
20813 lt_prog_compiler_static_GCJ='-Bstatic'
20814 ;;
20815
20816 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20817 lt_prog_compiler_wl_GCJ='-Wl,'
20818 lt_prog_compiler_pic_GCJ='-KPIC'
20819 lt_prog_compiler_static_GCJ='-Bstatic'
20820 ;;
20821
20822 sysv4*MP*)
20823 if test -d /usr/nec ;then
20824 lt_prog_compiler_pic_GCJ='-Kconform_pic'
20825 lt_prog_compiler_static_GCJ='-Bstatic'
20826 fi
20827 ;;
20828
20829 unicos*)
20830 lt_prog_compiler_wl_GCJ='-Wl,'
20831 lt_prog_compiler_can_build_shared_GCJ=no
20832 ;;
20833
20834 uts4*)
20835 lt_prog_compiler_pic_GCJ='-pic'
20836 lt_prog_compiler_static_GCJ='-Bstatic'
20837 ;;
20838
20839 *)
20840 lt_prog_compiler_can_build_shared_GCJ=no
20841 ;;
20842 esac
20843 fi
20844
20845 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
20846 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
20847
20848 #
20849 # Check to make sure the PIC flag actually works.
20850 #
20851 if test -n "$lt_prog_compiler_pic_GCJ"; then
20852
20853 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
20854 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
20855 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
20856 echo $ECHO_N "(cached) $ECHO_C" >&6
20857 else
20858 lt_prog_compiler_pic_works_GCJ=no
20859 ac_outfile=conftest.$ac_objext
20860 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20861 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
20862 # Insert the option either (1) after the last *FLAGS variable, or
20863 # (2) before a word containing "conftest.", or (3) at the end.
20864 # Note that $ac_compile itself does not contain backslashes and begins
20865 # with a dollar sign (not a hyphen), so the echo should work correctly.
20866 # The option is referenced via a variable to avoid confusing sed.
20867 lt_compile=`echo "$ac_compile" | $SED \
20868 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20869 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20870 -e 's:$: $lt_compiler_flag:'`
20871 (eval echo "\"\$as_me:20871: $lt_compile\"" >&5)
20872 (eval "$lt_compile" 2>conftest.err)
20873 ac_status=$?
20874 cat conftest.err >&5
20875 echo "$as_me:20875: \$? = $ac_status" >&5
20876 if (exit $ac_status) && test -s "$ac_outfile"; then
20877 # The compiler can only warn and ignore the option if not recognized
20878 # So say no if there are warnings other than the usual output.
20879 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
20880 $SED '/^$/d' conftest.err >conftest.er2
20881 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
20882 lt_prog_compiler_pic_works_GCJ=yes
20883 fi
20884 fi
20885 $rm conftest*
20886
20887 fi
20888 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
20889 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
20890
20891 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
20892 case $lt_prog_compiler_pic_GCJ in
20893 "" | " "*) ;;
20894 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
20895 esac
20896 else
20897 lt_prog_compiler_pic_GCJ=
20898 lt_prog_compiler_can_build_shared_GCJ=no
20899 fi
20900
20901 fi
20902 case $host_os in
20903 # For platforms which do not support PIC, -DPIC is meaningless:
20904 *djgpp*)
20905 lt_prog_compiler_pic_GCJ=
20906 ;;
20907 *)
20908 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
20909 ;;
20910 esac
20911
20912 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20913 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
20914 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
20915 echo $ECHO_N "(cached) $ECHO_C" >&6
20916 else
20917 lt_cv_prog_compiler_c_o_GCJ=no
20918 $rm -r conftest 2>/dev/null
20919 mkdir conftest
20920 cd conftest
20921 mkdir out
20922 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20923
20924 lt_compiler_flag="-o out/conftest2.$ac_objext"
20925 # Insert the option either (1) after the last *FLAGS variable, or
20926 # (2) before a word containing "conftest.", or (3) at the end.
20927 # Note that $ac_compile itself does not contain backslashes and begins
20928 # with a dollar sign (not a hyphen), so the echo should work correctly.
20929 lt_compile=`echo "$ac_compile" | $SED \
20930 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20931 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20932 -e 's:$: $lt_compiler_flag:'`
20933 (eval echo "\"\$as_me:20933: $lt_compile\"" >&5)
20934 (eval "$lt_compile" 2>out/conftest.err)
20935 ac_status=$?
20936 cat out/conftest.err >&5
20937 echo "$as_me:20937: \$? = $ac_status" >&5
20938 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20939 then
20940 # The compiler can only warn and ignore the option if not recognized
20941 # So say no if there are warnings
20942 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
20943 $SED '/^$/d' out/conftest.err >out/conftest.er2
20944 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20945 lt_cv_prog_compiler_c_o_GCJ=yes
20946 fi
20947 fi
20948 chmod u+w . 2>&5
20949 $rm conftest*
20950 # SGI C++ compiler will create directory out/ii_files/ for
20951 # template instantiation
20952 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20953 $rm out/* && rmdir out
20954 cd ..
20955 rmdir conftest
20956 $rm conftest*
20957
20958 fi
20959 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
20960 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
20961
20962
20963 hard_links="nottested"
20964 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
20965 # do not overwrite the value of need_locks provided by the user
20966 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20967 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
20968 hard_links=yes
20969 $rm conftest*
20970 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20971 touch conftest.a
20972 ln conftest.a conftest.b 2>&5 || hard_links=no
20973 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20974 echo "$as_me:$LINENO: result: $hard_links" >&5
20975 echo "${ECHO_T}$hard_links" >&6
20976 if test "$hard_links" = no; then
20977 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20978 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20979 need_locks=warn
20980 fi
20981 else
20982 need_locks=no
20983 fi
20984
20985 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20986 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
20987
20988 runpath_var=
20989 allow_undefined_flag_GCJ=
20990 enable_shared_with_static_runtimes_GCJ=no
20991 archive_cmds_GCJ=
20992 archive_expsym_cmds_GCJ=
20993 old_archive_From_new_cmds_GCJ=
20994 old_archive_from_expsyms_cmds_GCJ=
20995 export_dynamic_flag_spec_GCJ=
20996 whole_archive_flag_spec_GCJ=
20997 thread_safe_flag_spec_GCJ=
20998 hardcode_libdir_flag_spec_GCJ=
20999 hardcode_libdir_flag_spec_ld_GCJ=
21000 hardcode_libdir_separator_GCJ=
21001 hardcode_direct_GCJ=no
21002 hardcode_minus_L_GCJ=no
21003 hardcode_shlibpath_var_GCJ=unsupported
21004 link_all_deplibs_GCJ=unknown
21005 hardcode_automatic_GCJ=no
21006 module_cmds_GCJ=
21007 module_expsym_cmds_GCJ=
21008 always_export_symbols_GCJ=no
21009 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21010 # include_expsyms should be a list of space-separated symbols to be *always*
21011 # included in the symbol list
21012 include_expsyms_GCJ=
21013 # exclude_expsyms can be an extended regexp of symbols to exclude
21014 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21015 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21016 # as well as any symbol that contains `d'.
21017 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21018 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21019 # platforms (ab)use it in PIC code, but their linkers get confused if
21020 # the symbol is explicitly referenced. Since portable code cannot
21021 # rely on this symbol name, it's probably fine to never include it in
21022 # preloaded symbol tables.
21023 extract_expsyms_cmds=
21024 # Just being paranoid about ensuring that cc_basename is set.
21025 for cc_temp in $compiler""; do
21026 case $cc_temp in
21027 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21028 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21029 \-*) ;;
21030 *) break;;
21031 esac
21032 done
21033 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21034
21035 case $host_os in
21036 cygwin* | mingw* | pw32*)
21037 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21038 # When not using gcc, we currently assume that we are using
21039 # Microsoft Visual C++.
21040 if test "$GCC" != yes; then
21041 with_gnu_ld=no
21042 fi
21043 ;;
21044 openbsd*)
21045 with_gnu_ld=no
21046 ;;
21047 esac
21048
21049 ld_shlibs_GCJ=yes
21050 if test "$with_gnu_ld" = yes; then
21051 # If archive_cmds runs LD, not CC, wlarc should be empty
21052 wlarc='${wl}'
21053
21054 # Set some defaults for GNU ld with shared library support. These
21055 # are reset later if shared libraries are not supported. Putting them
21056 # here allows them to be overridden if necessary.
21057 runpath_var=LD_RUN_PATH
21058 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21059 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21060 # ancient GNU ld didn't support --whole-archive et. al.
21061 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21062 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21063 else
21064 whole_archive_flag_spec_GCJ=
21065 fi
21066 supports_anon_versioning=no
21067 case `$LD -v 2>/dev/null` in
21068 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21069 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21070 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21071 *\ 2.11.*) ;; # other 2.11 versions
21072 *) supports_anon_versioning=yes ;;
21073 esac
21074
21075 # See if GNU ld supports shared libraries.
21076 case $host_os in
21077 aix3* | aix4* | aix5*)
21078 # On AIX/PPC, the GNU linker is very broken
21079 if test "$host_cpu" != ia64; then
21080 ld_shlibs_GCJ=no
21081 cat <<EOF 1>&2
21082
21083 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21084 *** to be unable to reliably create shared libraries on AIX.
21085 *** Therefore, libtool is disabling shared libraries support. If you
21086 *** really care for shared libraries, you may want to modify your PATH
21087 *** so that a non-GNU linker is found, and then restart.
21088
21089 EOF
21090 fi
21091 ;;
21092
21093 amigaos*)
21094 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)'
21095 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21096 hardcode_minus_L_GCJ=yes
21097
21098 # Samuel A. Falvo II <[email protected]> reports
21099 # that the semantics of dynamic libraries on AmigaOS, at least up
21100 # to version 4, is to share data among multiple programs linked
21101 # with the same dynamic library. Since this doesn't match the
21102 # behavior of shared libraries on other platforms, we can't use
21103 # them.
21104 ld_shlibs_GCJ=no
21105 ;;
21106
21107 beos*)
21108 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21109 allow_undefined_flag_GCJ=unsupported
21110 # Joseph Beckenbach <[email protected]> says some releases of gcc
21111 # support --undefined. This deserves some investigation. FIXME
21112 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21113 else
21114 ld_shlibs_GCJ=no
21115 fi
21116 ;;
21117
21118 cygwin* | mingw* | pw32*)
21119 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21120 # as there is no search path for DLLs.
21121 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21122 allow_undefined_flag_GCJ=unsupported
21123 always_export_symbols_GCJ=no
21124 enable_shared_with_static_runtimes_GCJ=yes
21125 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21126
21127 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21128 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21129 # If the export-symbols file already is a .def file (1st line
21130 # is EXPORTS), use it as is; otherwise, prepend...
21131 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21132 cp $export_symbols $output_objdir/$soname.def;
21133 else
21134 echo EXPORTS > $output_objdir/$soname.def;
21135 cat $export_symbols >> $output_objdir/$soname.def;
21136 fi~
21137 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21138 else
21139 ld_shlibs_GCJ=no
21140 fi
21141 ;;
21142
21143 linux*)
21144 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21145 tmp_addflag=
21146 case $cc_basename,$host_cpu in
21147 pgcc*) # Portland Group C compiler
21148 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'
21149 tmp_addflag=' $pic_flag'
21150 ;;
21151 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21152 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'
21153 tmp_addflag=' $pic_flag -Mnomain' ;;
21154 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21155 tmp_addflag=' -i_dynamic' ;;
21156 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21157 tmp_addflag=' -i_dynamic -nofor_main' ;;
21158 ifc* | ifort*) # Intel Fortran compiler
21159 tmp_addflag=' -nofor_main' ;;
21160 esac
21161 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21162
21163 if test $supports_anon_versioning = yes; then
21164 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21165 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21166 $echo "local: *; };" >> $output_objdir/$libname.ver~
21167 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21168 fi
21169 else
21170 ld_shlibs_GCJ=no
21171 fi
21172 ;;
21173
21174 netbsd*)
21175 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21176 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21177 wlarc=
21178 else
21179 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21180 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21181 fi
21182 ;;
21183
21184 solaris* | sysv5*)
21185 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21186 ld_shlibs_GCJ=no
21187 cat <<EOF 1>&2
21188
21189 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21190 *** create shared libraries on Solaris systems. Therefore, libtool
21191 *** is disabling shared libraries support. We urge you to upgrade GNU
21192 *** binutils to release 2.9.1 or newer. Another option is to modify
21193 *** your PATH or compiler configuration so that the native linker is
21194 *** used, and then restart.
21195
21196 EOF
21197 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21198 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21199 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21200 else
21201 ld_shlibs_GCJ=no
21202 fi
21203 ;;
21204
21205 sunos4*)
21206 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21207 wlarc=
21208 hardcode_direct_GCJ=yes
21209 hardcode_shlibpath_var_GCJ=no
21210 ;;
21211
21212 *)
21213 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21214 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21215 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21216 else
21217 ld_shlibs_GCJ=no
21218 fi
21219 ;;
21220 esac
21221
21222 if test "$ld_shlibs_GCJ" = no; then
21223 runpath_var=
21224 hardcode_libdir_flag_spec_GCJ=
21225 export_dynamic_flag_spec_GCJ=
21226 whole_archive_flag_spec_GCJ=
21227 fi
21228 else
21229 # PORTME fill in a description of your system's linker (not GNU ld)
21230 case $host_os in
21231 aix3*)
21232 allow_undefined_flag_GCJ=unsupported
21233 always_export_symbols_GCJ=yes
21234 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'
21235 # Note: this linker hardcodes the directories in LIBPATH if there
21236 # are no directories specified by -L.
21237 hardcode_minus_L_GCJ=yes
21238 if test "$GCC" = yes && test -z "$link_static_flag"; then
21239 # Neither direct hardcoding nor static linking is supported with a
21240 # broken collect2.
21241 hardcode_direct_GCJ=unsupported
21242 fi
21243 ;;
21244
21245 aix4* | aix5*)
21246 if test "$host_cpu" = ia64; then
21247 # On IA64, the linker does run time linking by default, so we don't
21248 # have to do anything special.
21249 aix_use_runtimelinking=no
21250 exp_sym_flag='-Bexport'
21251 no_entry_flag=""
21252 else
21253 # If we're using GNU nm, then we don't want the "-C" option.
21254 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21255 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21256 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'
21257 else
21258 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'
21259 fi
21260 aix_use_runtimelinking=no
21261
21262 # Test if we are trying to use run time linking or normal
21263 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21264 # need to do runtime linking.
21265 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21266 for ld_flag in $LDFLAGS; do
21267 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21268 aix_use_runtimelinking=yes
21269 break
21270 fi
21271 done
21272 esac
21273
21274 exp_sym_flag='-bexport'
21275 no_entry_flag='-bnoentry'
21276 fi
21277
21278 # When large executables or shared objects are built, AIX ld can
21279 # have problems creating the table of contents. If linking a library
21280 # or program results in "error TOC overflow" add -mminimal-toc to
21281 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21282 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21283
21284 archive_cmds_GCJ=''
21285 hardcode_direct_GCJ=yes
21286 hardcode_libdir_separator_GCJ=':'
21287 link_all_deplibs_GCJ=yes
21288
21289 if test "$GCC" = yes; then
21290 case $host_os in aix4.[012]|aix4.[012].*)
21291 # We only want to do this on AIX 4.2 and lower, the check
21292 # below for broken collect2 doesn't work under 4.3+
21293 collect2name=`${CC} -print-prog-name=collect2`
21294 if test -f "$collect2name" && \
21295 strings "$collect2name" | grep resolve_lib_name >/dev/null
21296 then
21297 # We have reworked collect2
21298 hardcode_direct_GCJ=yes
21299 else
21300 # We have old collect2
21301 hardcode_direct_GCJ=unsupported
21302 # It fails to find uninstalled libraries when the uninstalled
21303 # path is not listed in the libpath. Setting hardcode_minus_L
21304 # to unsupported forces relinking
21305 hardcode_minus_L_GCJ=yes
21306 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21307 hardcode_libdir_separator_GCJ=
21308 fi
21309 esac
21310 shared_flag='-shared'
21311 if test "$aix_use_runtimelinking" = yes; then
21312 shared_flag="$shared_flag "'${wl}-G'
21313 fi
21314 else
21315 # not using gcc
21316 if test "$host_cpu" = ia64; then
21317 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21318 # chokes on -Wl,-G. The following line is correct:
21319 shared_flag='-G'
21320 else
21321 if test "$aix_use_runtimelinking" = yes; then
21322 shared_flag='${wl}-G'
21323 else
21324 shared_flag='${wl}-bM:SRE'
21325 fi
21326 fi
21327 fi
21328
21329 # It seems that -bexpall does not export symbols beginning with
21330 # underscore (_), so it is better to generate a list of symbols to export.
21331 always_export_symbols_GCJ=yes
21332 if test "$aix_use_runtimelinking" = yes; then
21333 # Warning - without using the other runtime loading flags (-brtl),
21334 # -berok will link without error, but may produce a broken library.
21335 allow_undefined_flag_GCJ='-berok'
21336 # Determine the default libpath from the value encoded in an empty executable.
21337 cat >conftest.$ac_ext <<_ACEOF
21338 /* confdefs.h. */
21339 _ACEOF
21340 cat confdefs.h >>conftest.$ac_ext
21341 cat >>conftest.$ac_ext <<_ACEOF
21342 /* end confdefs.h. */
21343
21344 int
21345 main ()
21346 {
21347
21348 ;
21349 return 0;
21350 }
21351 _ACEOF
21352 rm -f conftest.$ac_objext conftest$ac_exeext
21353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21354 (eval $ac_link) 2>conftest.er1
21355 ac_status=$?
21356 grep -v '^ *+' conftest.er1 >conftest.err
21357 rm -f conftest.er1
21358 cat conftest.err >&5
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); } &&
21361 { ac_try='test -z "$ac_c_werror_flag"
21362 || test ! -s conftest.err'
21363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21364 (eval $ac_try) 2>&5
21365 ac_status=$?
21366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367 (exit $ac_status); }; } &&
21368 { ac_try='test -s conftest$ac_exeext'
21369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21370 (eval $ac_try) 2>&5
21371 ac_status=$?
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); }; }; then
21374
21375 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21376 }'`
21377 # Check for a 64-bit object if we didn't find anything.
21378 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; }
21379 }'`; fi
21380 else
21381 echo "$as_me: failed program was:" >&5
21382 sed 's/^/| /' conftest.$ac_ext >&5
21383
21384 fi
21385 rm -f conftest.err conftest.$ac_objext \
21386 conftest$ac_exeext conftest.$ac_ext
21387 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21388
21389 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21390 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
21391 else
21392 if test "$host_cpu" = ia64; then
21393 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21394 allow_undefined_flag_GCJ="-z nodefs"
21395 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
21396 else
21397 # Determine the default libpath from the value encoded in an empty executable.
21398 cat >conftest.$ac_ext <<_ACEOF
21399 /* confdefs.h. */
21400 _ACEOF
21401 cat confdefs.h >>conftest.$ac_ext
21402 cat >>conftest.$ac_ext <<_ACEOF
21403 /* end confdefs.h. */
21404
21405 int
21406 main ()
21407 {
21408
21409 ;
21410 return 0;
21411 }
21412 _ACEOF
21413 rm -f conftest.$ac_objext conftest$ac_exeext
21414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21415 (eval $ac_link) 2>conftest.er1
21416 ac_status=$?
21417 grep -v '^ *+' conftest.er1 >conftest.err
21418 rm -f conftest.er1
21419 cat conftest.err >&5
21420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421 (exit $ac_status); } &&
21422 { ac_try='test -z "$ac_c_werror_flag"
21423 || test ! -s conftest.err'
21424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21425 (eval $ac_try) 2>&5
21426 ac_status=$?
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); }; } &&
21429 { ac_try='test -s conftest$ac_exeext'
21430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21431 (eval $ac_try) 2>&5
21432 ac_status=$?
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); }; }; then
21435
21436 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21437 }'`
21438 # Check for a 64-bit object if we didn't find anything.
21439 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; }
21440 }'`; fi
21441 else
21442 echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.$ac_ext >&5
21444
21445 fi
21446 rm -f conftest.err conftest.$ac_objext \
21447 conftest$ac_exeext conftest.$ac_ext
21448 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21449
21450 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21451 # Warning - without using the other run time loading flags,
21452 # -berok will link without error, but may produce a broken library.
21453 no_undefined_flag_GCJ=' ${wl}-bernotok'
21454 allow_undefined_flag_GCJ=' ${wl}-berok'
21455 # -bexpall does not export symbols beginning with underscore (_)
21456 always_export_symbols_GCJ=yes
21457 # Exported symbols can be pulled into shared objects from archives
21458 whole_archive_flag_spec_GCJ=' '
21459 archive_cmds_need_lc_GCJ=yes
21460 # This is similar to how AIX traditionally builds its shared libraries.
21461 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
21462 fi
21463 fi
21464 ;;
21465
21466 amigaos*)
21467 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)'
21468 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21469 hardcode_minus_L_GCJ=yes
21470 # see comment about different semantics on the GNU ld section
21471 ld_shlibs_GCJ=no
21472 ;;
21473
21474 bsdi[45]*)
21475 export_dynamic_flag_spec_GCJ=-rdynamic
21476 ;;
21477
21478 cygwin* | mingw* | pw32*)
21479 # When not using gcc, we currently assume that we are using
21480 # Microsoft Visual C++.
21481 # hardcode_libdir_flag_spec is actually meaningless, as there is
21482 # no search path for DLLs.
21483 hardcode_libdir_flag_spec_GCJ=' '
21484 allow_undefined_flag_GCJ=unsupported
21485 # Tell ltmain to make .lib files, not .a files.
21486 libext=lib
21487 # Tell ltmain to make .dll files, not .so files.
21488 shrext_cmds=".dll"
21489 # FIXME: Setting linknames here is a bad hack.
21490 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21491 # The linker will automatically build a .lib file if we build a DLL.
21492 old_archive_From_new_cmds_GCJ='true'
21493 # FIXME: Should let the user specify the lib program.
21494 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21495 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
21496 enable_shared_with_static_runtimes_GCJ=yes
21497 ;;
21498
21499 darwin* | rhapsody*)
21500 case $host_os in
21501 rhapsody* | darwin1.[012])
21502 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21503 ;;
21504 *) # Darwin 1.3 on
21505 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21506 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21507 else
21508 case ${MACOSX_DEPLOYMENT_TARGET} in
21509 10.[012])
21510 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21511 ;;
21512 10.*)
21513 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21514 ;;
21515 esac
21516 fi
21517 ;;
21518 esac
21519 archive_cmds_need_lc_GCJ=no
21520 hardcode_direct_GCJ=no
21521 hardcode_automatic_GCJ=yes
21522 hardcode_shlibpath_var_GCJ=unsupported
21523 whole_archive_flag_spec_GCJ=''
21524 link_all_deplibs_GCJ=yes
21525 if test "$GCC" = yes ; then
21526 output_verbose_link_cmd='echo'
21527 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21528 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21529 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21530 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}'
21531 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}'
21532 else
21533 case $cc_basename in
21534 xlc*)
21535 output_verbose_link_cmd='echo'
21536 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21537 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21538 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21539 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}'
21540 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}'
21541 ;;
21542 *)
21543 ld_shlibs_GCJ=no
21544 ;;
21545 esac
21546 fi
21547 ;;
21548
21549 dgux*)
21550 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21551 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21552 hardcode_shlibpath_var_GCJ=no
21553 ;;
21554
21555 freebsd1*)
21556 ld_shlibs_GCJ=no
21557 ;;
21558
21559 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21560 # support. Future versions do this automatically, but an explicit c++rt0.o
21561 # does not break anything, and helps significantly (at the cost of a little
21562 # extra space).
21563 freebsd2.2*)
21564 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21565 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21566 hardcode_direct_GCJ=yes
21567 hardcode_shlibpath_var_GCJ=no
21568 ;;
21569
21570 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21571 freebsd2*)
21572 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21573 hardcode_direct_GCJ=yes
21574 hardcode_minus_L_GCJ=yes
21575 hardcode_shlibpath_var_GCJ=no
21576 ;;
21577
21578 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21579 freebsd* | kfreebsd*-gnu | dragonfly*)
21580 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21581 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21582 hardcode_direct_GCJ=yes
21583 hardcode_shlibpath_var_GCJ=no
21584 ;;
21585
21586 hpux9*)
21587 if test "$GCC" = yes; then
21588 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'
21589 else
21590 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'
21591 fi
21592 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21593 hardcode_libdir_separator_GCJ=:
21594 hardcode_direct_GCJ=yes
21595
21596 # hardcode_minus_L: Not really in the search PATH,
21597 # but as the default location of the library.
21598 hardcode_minus_L_GCJ=yes
21599 export_dynamic_flag_spec_GCJ='${wl}-E'
21600 ;;
21601
21602 hpux10* | hpux11*)
21603 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21604 case $host_cpu in
21605 hppa*64*|ia64*)
21606 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21607 ;;
21608 *)
21609 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21610 ;;
21611 esac
21612 else
21613 case $host_cpu in
21614 hppa*64*|ia64*)
21615 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21616 ;;
21617 *)
21618 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21619 ;;
21620 esac
21621 fi
21622 if test "$with_gnu_ld" = no; then
21623 case $host_cpu in
21624 hppa*64*)
21625 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21626 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21627 hardcode_libdir_separator_GCJ=:
21628 hardcode_direct_GCJ=no
21629 hardcode_shlibpath_var_GCJ=no
21630 ;;
21631 ia64*)
21632 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21633 hardcode_direct_GCJ=no
21634 hardcode_shlibpath_var_GCJ=no
21635
21636 # hardcode_minus_L: Not really in the search PATH,
21637 # but as the default location of the library.
21638 hardcode_minus_L_GCJ=yes
21639 ;;
21640 *)
21641 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21642 hardcode_libdir_separator_GCJ=:
21643 hardcode_direct_GCJ=yes
21644 export_dynamic_flag_spec_GCJ='${wl}-E'
21645
21646 # hardcode_minus_L: Not really in the search PATH,
21647 # but as the default location of the library.
21648 hardcode_minus_L_GCJ=yes
21649 ;;
21650 esac
21651 fi
21652 ;;
21653
21654 irix5* | irix6* | nonstopux*)
21655 if test "$GCC" = yes; then
21656 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'
21657 else
21658 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'
21659 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21660 fi
21661 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21662 hardcode_libdir_separator_GCJ=:
21663 link_all_deplibs_GCJ=yes
21664 ;;
21665
21666 netbsd*)
21667 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21668 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21669 else
21670 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21671 fi
21672 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21673 hardcode_direct_GCJ=yes
21674 hardcode_shlibpath_var_GCJ=no
21675 ;;
21676
21677 newsos6)
21678 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21679 hardcode_direct_GCJ=yes
21680 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21681 hardcode_libdir_separator_GCJ=:
21682 hardcode_shlibpath_var_GCJ=no
21683 ;;
21684
21685 openbsd*)
21686 hardcode_direct_GCJ=yes
21687 hardcode_shlibpath_var_GCJ=no
21688 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21689 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21690 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21691 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21692 export_dynamic_flag_spec_GCJ='${wl}-E'
21693 else
21694 case $host_os in
21695 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21696 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21697 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21698 ;;
21699 *)
21700 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21701 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21702 ;;
21703 esac
21704 fi
21705 ;;
21706
21707 os2*)
21708 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21709 hardcode_minus_L_GCJ=yes
21710 allow_undefined_flag_GCJ=unsupported
21711 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'
21712 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21713 ;;
21714
21715 osf3*)
21716 if test "$GCC" = yes; then
21717 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21718 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'
21719 else
21720 allow_undefined_flag_GCJ=' -expect_unresolved \*'
21721 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'
21722 fi
21723 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21724 hardcode_libdir_separator_GCJ=:
21725 ;;
21726
21727 osf4* | osf5*) # as osf3* with the addition of -msym flag
21728 if test "$GCC" = yes; then
21729 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21730 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'
21731 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21732 else
21733 allow_undefined_flag_GCJ=' -expect_unresolved \*'
21734 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'
21735 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~
21736 $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'
21737
21738 # Both c and cxx compiler support -rpath directly
21739 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
21740 fi
21741 hardcode_libdir_separator_GCJ=:
21742 ;;
21743
21744 sco3.2v5*)
21745 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21746 hardcode_shlibpath_var_GCJ=no
21747 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
21748 runpath_var=LD_RUN_PATH
21749 hardcode_runpath_var=yes
21750 ;;
21751
21752 solaris*)
21753 no_undefined_flag_GCJ=' -z text'
21754 if test "$GCC" = yes; then
21755 wlarc='${wl}'
21756 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21757 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21758 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21759 else
21760 wlarc=''
21761 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21762 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21763 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21764 fi
21765 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21766 hardcode_shlibpath_var_GCJ=no
21767 case $host_os in
21768 solaris2.[0-5] | solaris2.[0-5].*) ;;
21769 *)
21770 # The compiler driver will combine linker options so we
21771 # cannot just pass the convience library names through
21772 # without $wl, iff we do not link with $LD.
21773 # Luckily, gcc supports the same syntax we need for Sun Studio.
21774 # Supported since Solaris 2.6 (maybe 2.5.1?)
21775 case $wlarc in
21776 '')
21777 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
21778 *)
21779 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' ;;
21780 esac ;;
21781 esac
21782 link_all_deplibs_GCJ=yes
21783 ;;
21784
21785 sunos4*)
21786 if test "x$host_vendor" = xsequent; then
21787 # Use $CC to link under sequent, because it throws in some extra .o
21788 # files that make .init and .fini sections work.
21789 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21790 else
21791 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21792 fi
21793 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21794 hardcode_direct_GCJ=yes
21795 hardcode_minus_L_GCJ=yes
21796 hardcode_shlibpath_var_GCJ=no
21797 ;;
21798
21799 sysv4)
21800 case $host_vendor in
21801 sni)
21802 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21803 hardcode_direct_GCJ=yes # is this really true???
21804 ;;
21805 siemens)
21806 ## LD is ld it makes a PLAMLIB
21807 ## CC just makes a GrossModule.
21808 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21809 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
21810 hardcode_direct_GCJ=no
21811 ;;
21812 motorola)
21813 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21814 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
21815 ;;
21816 esac
21817 runpath_var='LD_RUN_PATH'
21818 hardcode_shlibpath_var_GCJ=no
21819 ;;
21820
21821 sysv4.3*)
21822 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21823 hardcode_shlibpath_var_GCJ=no
21824 export_dynamic_flag_spec_GCJ='-Bexport'
21825 ;;
21826
21827 sysv4*MP*)
21828 if test -d /usr/nec; then
21829 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21830 hardcode_shlibpath_var_GCJ=no
21831 runpath_var=LD_RUN_PATH
21832 hardcode_runpath_var=yes
21833 ld_shlibs_GCJ=yes
21834 fi
21835 ;;
21836
21837 sysv4.2uw2*)
21838 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21839 hardcode_direct_GCJ=yes
21840 hardcode_minus_L_GCJ=no
21841 hardcode_shlibpath_var_GCJ=no
21842 hardcode_runpath_var=yes
21843 runpath_var=LD_RUN_PATH
21844 ;;
21845
21846 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
21847 no_undefined_flag_GCJ='${wl}-z ${wl}text'
21848 if test "$GCC" = yes; then
21849 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21850 else
21851 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21852 fi
21853 runpath_var='LD_RUN_PATH'
21854 hardcode_shlibpath_var_GCJ=no
21855 ;;
21856
21857 sysv5*)
21858 no_undefined_flag_GCJ=' -z text'
21859 # $CC -shared without GNU ld will not create a library from C++
21860 # object files and a static libstdc++, better avoid it by now
21861 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21862 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21863 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21864 hardcode_libdir_flag_spec_GCJ=
21865 hardcode_shlibpath_var_GCJ=no
21866 runpath_var='LD_RUN_PATH'
21867 ;;
21868
21869 uts4*)
21870 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21871 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21872 hardcode_shlibpath_var_GCJ=no
21873 ;;
21874
21875 *)
21876 ld_shlibs_GCJ=no
21877 ;;
21878 esac
21879 fi
21880
21881 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
21882 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
21883 test "$ld_shlibs_GCJ" = no && can_build_shared=no
21884
21885 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21886 if test "$GCC" = yes; then
21887 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21888 fi
21889
21890 #
21891 # Do we need to explicitly link libc?
21892 #
21893 case "x$archive_cmds_need_lc_GCJ" in
21894 x|xyes)
21895 # Assume -lc should be added
21896 archive_cmds_need_lc_GCJ=yes
21897
21898 if test "$enable_shared" = yes && test "$GCC" = yes; then
21899 case $archive_cmds_GCJ in
21900 *'~'*)
21901 # FIXME: we may have to deal with multi-command sequences.
21902 ;;
21903 '$CC '*)
21904 # Test whether the compiler implicitly links with -lc since on some
21905 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21906 # to ld, don't add -lc before -lgcc.
21907 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21908 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
21909 $rm conftest*
21910 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21911
21912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21913 (eval $ac_compile) 2>&5
21914 ac_status=$?
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); } 2>conftest.err; then
21917 soname=conftest
21918 lib=conftest
21919 libobjs=conftest.$ac_objext
21920 deplibs=
21921 wl=$lt_prog_compiler_wl_GCJ
21922 compiler_flags=-v
21923 linker_flags=-v
21924 verstring=
21925 output_objdir=.
21926 libname=conftest
21927 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
21928 allow_undefined_flag_GCJ=
21929 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21930 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21931 ac_status=$?
21932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933 (exit $ac_status); }
21934 then
21935 archive_cmds_need_lc_GCJ=no
21936 else
21937 archive_cmds_need_lc_GCJ=yes
21938 fi
21939 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
21940 else
21941 cat conftest.err 1>&5
21942 fi
21943 $rm conftest*
21944 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
21945 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
21946 ;;
21947 esac
21948 fi
21949 ;;
21950 esac
21951
21952 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21953 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
21954 library_names_spec=
21955 libname_spec='lib$name'
21956 soname_spec=
21957 shrext_cmds=".so"
21958 postinstall_cmds=
21959 postuninstall_cmds=
21960 finish_cmds=
21961 finish_eval=
21962 shlibpath_var=
21963 shlibpath_overrides_runpath=unknown
21964 version_type=none
21965 dynamic_linker="$host_os ld.so"
21966 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21967 if test "$GCC" = yes; then
21968 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21969 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21970 # if the path contains ";" then we assume it to be the separator
21971 # otherwise default to the standard path separator (i.e. ":") - it is
21972 # assumed that no part of a normal pathname contains ";" but that should
21973 # okay in the real world where ";" in dirpaths is itself problematic.
21974 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21975 else
21976 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21977 fi
21978 else
21979 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21980 fi
21981 need_lib_prefix=unknown
21982 hardcode_into_libs=no
21983
21984 # when you set need_version to no, make sure it does not cause -set_version
21985 # flags to be left without arguments
21986 need_version=unknown
21987
21988 case $host_os in
21989 aix3*)
21990 version_type=linux
21991 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21992 shlibpath_var=LIBPATH
21993
21994 # AIX 3 has no versioning support, so we append a major version to the name.
21995 soname_spec='${libname}${release}${shared_ext}$major'
21996 ;;
21997
21998 aix4* | aix5*)
21999 version_type=linux
22000 need_lib_prefix=no
22001 need_version=no
22002 hardcode_into_libs=yes
22003 if test "$host_cpu" = ia64; then
22004 # AIX 5 supports IA64
22005 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22006 shlibpath_var=LD_LIBRARY_PATH
22007 else
22008 # With GCC up to 2.95.x, collect2 would create an import file
22009 # for dependence libraries. The import file would start with
22010 # the line `#! .'. This would cause the generated library to
22011 # depend on `.', always an invalid library. This was fixed in
22012 # development snapshots of GCC prior to 3.0.
22013 case $host_os in
22014 aix4 | aix4.[01] | aix4.[01].*)
22015 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22016 echo ' yes '
22017 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22018 :
22019 else
22020 can_build_shared=no
22021 fi
22022 ;;
22023 esac
22024 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22025 # soname into executable. Probably we can add versioning support to
22026 # collect2, so additional links can be useful in future.
22027 if test "$aix_use_runtimelinking" = yes; then
22028 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22029 # instead of lib<name>.a to let people know that these are not
22030 # typical AIX shared libraries.
22031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22032 else
22033 # We preserve .a as extension for shared libraries through AIX4.2
22034 # and later when we are not doing run time linking.
22035 library_names_spec='${libname}${release}.a $libname.a'
22036 soname_spec='${libname}${release}${shared_ext}$major'
22037 fi
22038 shlibpath_var=LIBPATH
22039 fi
22040 ;;
22041
22042 amigaos*)
22043 library_names_spec='$libname.ixlibrary $libname.a'
22044 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22045 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'
22046 ;;
22047
22048 beos*)
22049 library_names_spec='${libname}${shared_ext}'
22050 dynamic_linker="$host_os ld.so"
22051 shlibpath_var=LIBRARY_PATH
22052 ;;
22053
22054 bsdi[45]*)
22055 version_type=linux
22056 need_version=no
22057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22058 soname_spec='${libname}${release}${shared_ext}$major'
22059 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22060 shlibpath_var=LD_LIBRARY_PATH
22061 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22062 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22063 # the default ld.so.conf also contains /usr/contrib/lib and
22064 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22065 # libtool to hard-code these into programs
22066 ;;
22067
22068 cygwin* | mingw* | pw32*)
22069 version_type=windows
22070 shrext_cmds=".dll"
22071 need_version=no
22072 need_lib_prefix=no
22073
22074 case $GCC,$host_os in
22075 yes,cygwin* | yes,mingw* | yes,pw32*)
22076 library_names_spec='$libname.dll.a'
22077 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22078 postinstall_cmds='base_file=`basename \${file}`~
22079 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22080 dldir=$destdir/`dirname \$dlpath`~
22081 test -d \$dldir || mkdir -p \$dldir~
22082 $install_prog $dir/$dlname \$dldir/$dlname~
22083 chmod a+x \$dldir/$dlname'
22084 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22085 dlpath=$dir/\$dldll~
22086 $rm \$dlpath'
22087 shlibpath_overrides_runpath=yes
22088
22089 case $host_os in
22090 cygwin*)
22091 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22092 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22093 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22094 ;;
22095 mingw*)
22096 # MinGW DLLs use traditional 'lib' prefix
22097 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22098 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22099 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22100 # It is most probably a Windows format PATH printed by
22101 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22102 # path with ; separators, and with drive letters. We can handle the
22103 # drive letters (cygwin fileutils understands them), so leave them,
22104 # especially as we might pass files found there to a mingw objdump,
22105 # which wouldn't understand a cygwinified path. Ahh.
22106 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22107 else
22108 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22109 fi
22110 ;;
22111 pw32*)
22112 # pw32 DLLs use 'pw' prefix rather than 'lib'
22113 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22114 ;;
22115 esac
22116 ;;
22117
22118 *)
22119 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22120 ;;
22121 esac
22122 dynamic_linker='Win32 ld.exe'
22123 # FIXME: first we should search . and the directory the executable is in
22124 shlibpath_var=PATH
22125 ;;
22126
22127 darwin* | rhapsody*)
22128 dynamic_linker="$host_os dyld"
22129 version_type=darwin
22130 need_lib_prefix=no
22131 need_version=no
22132 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22133 soname_spec='${libname}${release}${major}$shared_ext'
22134 shlibpath_overrides_runpath=yes
22135 shlibpath_var=DYLD_LIBRARY_PATH
22136 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22137 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22138 if test "$GCC" = yes; then
22139 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"`
22140 else
22141 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22142 fi
22143 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22144 ;;
22145
22146 dgux*)
22147 version_type=linux
22148 need_lib_prefix=no
22149 need_version=no
22150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22151 soname_spec='${libname}${release}${shared_ext}$major'
22152 shlibpath_var=LD_LIBRARY_PATH
22153 ;;
22154
22155 freebsd1*)
22156 dynamic_linker=no
22157 ;;
22158
22159 kfreebsd*-gnu)
22160 version_type=linux
22161 need_lib_prefix=no
22162 need_version=no
22163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22164 soname_spec='${libname}${release}${shared_ext}$major'
22165 shlibpath_var=LD_LIBRARY_PATH
22166 shlibpath_overrides_runpath=no
22167 hardcode_into_libs=yes
22168 dynamic_linker='GNU ld.so'
22169 ;;
22170
22171 freebsd* | dragonfly*)
22172 # DragonFly does not have aout. When/if they implement a new
22173 # versioning mechanism, adjust this.
22174 if test -x /usr/bin/objformat; then
22175 objformat=`/usr/bin/objformat`
22176 else
22177 case $host_os in
22178 freebsd[123]*) objformat=aout ;;
22179 *) objformat=elf ;;
22180 esac
22181 fi
22182 version_type=freebsd-$objformat
22183 case $version_type in
22184 freebsd-elf*)
22185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22186 need_version=no
22187 need_lib_prefix=no
22188 ;;
22189 freebsd-*)
22190 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22191 need_version=yes
22192 ;;
22193 esac
22194 shlibpath_var=LD_LIBRARY_PATH
22195 case $host_os in
22196 freebsd2*)
22197 shlibpath_overrides_runpath=yes
22198 ;;
22199 freebsd3.[01]* | freebsdelf3.[01]*)
22200 shlibpath_overrides_runpath=yes
22201 hardcode_into_libs=yes
22202 ;;
22203 *) # from 3.2 on
22204 shlibpath_overrides_runpath=no
22205 hardcode_into_libs=yes
22206 ;;
22207 esac
22208 ;;
22209
22210 gnu*)
22211 version_type=linux
22212 need_lib_prefix=no
22213 need_version=no
22214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22215 soname_spec='${libname}${release}${shared_ext}$major'
22216 shlibpath_var=LD_LIBRARY_PATH
22217 hardcode_into_libs=yes
22218 ;;
22219
22220 hpux9* | hpux10* | hpux11*)
22221 # Give a soname corresponding to the major version so that dld.sl refuses to
22222 # link against other versions.
22223 version_type=sunos
22224 need_lib_prefix=no
22225 need_version=no
22226 case $host_cpu in
22227 ia64*)
22228 shrext_cmds='.so'
22229 hardcode_into_libs=yes
22230 dynamic_linker="$host_os dld.so"
22231 shlibpath_var=LD_LIBRARY_PATH
22232 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22234 soname_spec='${libname}${release}${shared_ext}$major'
22235 if test "X$HPUX_IA64_MODE" = X32; then
22236 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22237 else
22238 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22239 fi
22240 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22241 ;;
22242 hppa*64*)
22243 shrext_cmds='.sl'
22244 hardcode_into_libs=yes
22245 dynamic_linker="$host_os dld.sl"
22246 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22247 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22249 soname_spec='${libname}${release}${shared_ext}$major'
22250 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22251 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22252 ;;
22253 *)
22254 shrext_cmds='.sl'
22255 dynamic_linker="$host_os dld.sl"
22256 shlibpath_var=SHLIB_PATH
22257 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22259 soname_spec='${libname}${release}${shared_ext}$major'
22260 ;;
22261 esac
22262 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22263 postinstall_cmds='chmod 555 $lib'
22264 ;;
22265
22266 irix5* | irix6* | nonstopux*)
22267 case $host_os in
22268 nonstopux*) version_type=nonstopux ;;
22269 *)
22270 if test "$lt_cv_prog_gnu_ld" = yes; then
22271 version_type=linux
22272 else
22273 version_type=irix
22274 fi ;;
22275 esac
22276 need_lib_prefix=no
22277 need_version=no
22278 soname_spec='${libname}${release}${shared_ext}$major'
22279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22280 case $host_os in
22281 irix5* | nonstopux*)
22282 libsuff= shlibsuff=
22283 ;;
22284 *)
22285 case $LD in # libtool.m4 will add one of these switches to LD
22286 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22287 libsuff= shlibsuff= libmagic=32-bit;;
22288 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22289 libsuff=32 shlibsuff=N32 libmagic=N32;;
22290 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22291 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22292 *) libsuff= shlibsuff= libmagic=never-match;;
22293 esac
22294 ;;
22295 esac
22296 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22297 shlibpath_overrides_runpath=no
22298 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22299 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22300 hardcode_into_libs=yes
22301 ;;
22302
22303 # No shared lib support for Linux oldld, aout, or coff.
22304 linux*oldld* | linux*aout* | linux*coff*)
22305 dynamic_linker=no
22306 ;;
22307
22308 # This must be Linux ELF.
22309 linux*)
22310 version_type=linux
22311 need_lib_prefix=no
22312 need_version=no
22313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22314 soname_spec='${libname}${release}${shared_ext}$major'
22315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22316 shlibpath_var=LD_LIBRARY_PATH
22317 shlibpath_overrides_runpath=no
22318 # This implies no fast_install, which is unacceptable.
22319 # Some rework will be needed to allow for fast_install
22320 # before this can be enabled.
22321 hardcode_into_libs=yes
22322
22323 # Append ld.so.conf contents to the search path
22324 if test -f /etc/ld.so.conf; then
22325 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
22326 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22327 fi
22328
22329 # We used to test for /lib/ld.so.1 and disable shared libraries on
22330 # powerpc, because MkLinux only supported shared libraries with the
22331 # GNU dynamic linker. Since this was broken with cross compilers,
22332 # most powerpc-linux boxes support dynamic linking these days and
22333 # people can always --disable-shared, the test was removed, and we
22334 # assume the GNU/Linux dynamic linker is in use.
22335 dynamic_linker='GNU/Linux ld.so'
22336 ;;
22337
22338 knetbsd*-gnu)
22339 version_type=linux
22340 need_lib_prefix=no
22341 need_version=no
22342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22343 soname_spec='${libname}${release}${shared_ext}$major'
22344 shlibpath_var=LD_LIBRARY_PATH
22345 shlibpath_overrides_runpath=no
22346 hardcode_into_libs=yes
22347 dynamic_linker='GNU ld.so'
22348 ;;
22349
22350 netbsd*)
22351 version_type=sunos
22352 need_lib_prefix=no
22353 need_version=no
22354 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22356 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22357 dynamic_linker='NetBSD (a.out) ld.so'
22358 else
22359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22360 soname_spec='${libname}${release}${shared_ext}$major'
22361 dynamic_linker='NetBSD ld.elf_so'
22362 fi
22363 shlibpath_var=LD_LIBRARY_PATH
22364 shlibpath_overrides_runpath=yes
22365 hardcode_into_libs=yes
22366 ;;
22367
22368 newsos6)
22369 version_type=linux
22370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22371 shlibpath_var=LD_LIBRARY_PATH
22372 shlibpath_overrides_runpath=yes
22373 ;;
22374
22375 nto-qnx*)
22376 version_type=linux
22377 need_lib_prefix=no
22378 need_version=no
22379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22380 soname_spec='${libname}${release}${shared_ext}$major'
22381 shlibpath_var=LD_LIBRARY_PATH
22382 shlibpath_overrides_runpath=yes
22383 ;;
22384
22385 openbsd*)
22386 version_type=sunos
22387 need_lib_prefix=no
22388 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22389 case $host_os in
22390 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22391 *) need_version=no ;;
22392 esac
22393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22395 shlibpath_var=LD_LIBRARY_PATH
22396 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22397 case $host_os in
22398 openbsd2.[89] | openbsd2.[89].*)
22399 shlibpath_overrides_runpath=no
22400 ;;
22401 *)
22402 shlibpath_overrides_runpath=yes
22403 ;;
22404 esac
22405 else
22406 shlibpath_overrides_runpath=yes
22407 fi
22408 ;;
22409
22410 os2*)
22411 libname_spec='$name'
22412 shrext_cmds=".dll"
22413 need_lib_prefix=no
22414 library_names_spec='$libname${shared_ext} $libname.a'
22415 dynamic_linker='OS/2 ld.exe'
22416 shlibpath_var=LIBPATH
22417 ;;
22418
22419 osf3* | osf4* | osf5*)
22420 version_type=osf
22421 need_lib_prefix=no
22422 need_version=no
22423 soname_spec='${libname}${release}${shared_ext}$major'
22424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22425 shlibpath_var=LD_LIBRARY_PATH
22426 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22427 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22428 ;;
22429
22430 sco3.2v5*)
22431 version_type=osf
22432 soname_spec='${libname}${release}${shared_ext}$major'
22433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22434 shlibpath_var=LD_LIBRARY_PATH
22435 ;;
22436
22437 solaris*)
22438 version_type=linux
22439 need_lib_prefix=no
22440 need_version=no
22441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22442 soname_spec='${libname}${release}${shared_ext}$major'
22443 shlibpath_var=LD_LIBRARY_PATH
22444 shlibpath_overrides_runpath=yes
22445 hardcode_into_libs=yes
22446 # ldd complains unless libraries are executable
22447 postinstall_cmds='chmod +x $lib'
22448 ;;
22449
22450 sunos4*)
22451 version_type=sunos
22452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22453 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22454 shlibpath_var=LD_LIBRARY_PATH
22455 shlibpath_overrides_runpath=yes
22456 if test "$with_gnu_ld" = yes; then
22457 need_lib_prefix=no
22458 fi
22459 need_version=yes
22460 ;;
22461
22462 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22463 version_type=linux
22464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22465 soname_spec='${libname}${release}${shared_ext}$major'
22466 shlibpath_var=LD_LIBRARY_PATH
22467 case $host_vendor in
22468 sni)
22469 shlibpath_overrides_runpath=no
22470 need_lib_prefix=no
22471 export_dynamic_flag_spec='${wl}-Blargedynsym'
22472 runpath_var=LD_RUN_PATH
22473 ;;
22474 siemens)
22475 need_lib_prefix=no
22476 ;;
22477 motorola)
22478 need_lib_prefix=no
22479 need_version=no
22480 shlibpath_overrides_runpath=no
22481 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22482 ;;
22483 esac
22484 ;;
22485
22486 sysv4*MP*)
22487 if test -d /usr/nec ;then
22488 version_type=linux
22489 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22490 soname_spec='$libname${shared_ext}.$major'
22491 shlibpath_var=LD_LIBRARY_PATH
22492 fi
22493 ;;
22494
22495 uts4*)
22496 version_type=linux
22497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22498 soname_spec='${libname}${release}${shared_ext}$major'
22499 shlibpath_var=LD_LIBRARY_PATH
22500 ;;
22501
22502 *)
22503 dynamic_linker=no
22504 ;;
22505 esac
22506 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22507 echo "${ECHO_T}$dynamic_linker" >&6
22508 test "$dynamic_linker" = no && can_build_shared=no
22509
22510 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22511 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22512 hardcode_action_GCJ=
22513 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22514 test -n "$runpath_var_GCJ" || \
22515 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22516
22517 # We can hardcode non-existant directories.
22518 if test "$hardcode_direct_GCJ" != no &&
22519 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22520 # have to relink, otherwise we might link with an installed library
22521 # when we should be linking with a yet-to-be-installed one
22522 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22523 test "$hardcode_minus_L_GCJ" != no; then
22524 # Linking always hardcodes the temporary library directory.
22525 hardcode_action_GCJ=relink
22526 else
22527 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22528 hardcode_action_GCJ=immediate
22529 fi
22530 else
22531 # We cannot hardcode anything, or else we can only hardcode existing
22532 # directories.
22533 hardcode_action_GCJ=unsupported
22534 fi
22535 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22536 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22537
22538 if test "$hardcode_action_GCJ" = relink; then
22539 # Fast installation is not supported
22540 enable_fast_install=no
22541 elif test "$shlibpath_overrides_runpath" = yes ||
22542 test "$enable_shared" = no; then
22543 # Fast installation is not necessary
22544 enable_fast_install=needless
22545 fi
22546
22547 striplib=
22548 old_striplib=
22549 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22550 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22551 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22552 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22553 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22554 echo "$as_me:$LINENO: result: yes" >&5
22555 echo "${ECHO_T}yes" >&6
22556 else
22557 # FIXME - insert some real tests, host_os isn't really good enough
22558 case $host_os in
22559 darwin*)
22560 if test -n "$STRIP" ; then
22561 striplib="$STRIP -x"
22562 echo "$as_me:$LINENO: result: yes" >&5
22563 echo "${ECHO_T}yes" >&6
22564 else
22565 echo "$as_me:$LINENO: result: no" >&5
22566 echo "${ECHO_T}no" >&6
22567 fi
22568 ;;
22569 *)
22570 echo "$as_me:$LINENO: result: no" >&5
22571 echo "${ECHO_T}no" >&6
22572 ;;
22573 esac
22574 fi
22575
22576 if test "x$enable_dlopen" != xyes; then
22577 enable_dlopen=unknown
22578 enable_dlopen_self=unknown
22579 enable_dlopen_self_static=unknown
22580 else
22581 lt_cv_dlopen=no
22582 lt_cv_dlopen_libs=
22583
22584 case $host_os in
22585 beos*)
22586 lt_cv_dlopen="load_add_on"
22587 lt_cv_dlopen_libs=
22588 lt_cv_dlopen_self=yes
22589 ;;
22590
22591 mingw* | pw32*)
22592 lt_cv_dlopen="LoadLibrary"
22593 lt_cv_dlopen_libs=
22594 ;;
22595
22596 cygwin*)
22597 lt_cv_dlopen="dlopen"
22598 lt_cv_dlopen_libs=
22599 ;;
22600
22601 darwin*)
22602 # if libdl is installed we need to link against it
22603 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22604 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22605 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22606 echo $ECHO_N "(cached) $ECHO_C" >&6
22607 else
22608 ac_check_lib_save_LIBS=$LIBS
22609 LIBS="-ldl $LIBS"
22610 cat >conftest.$ac_ext <<_ACEOF
22611 /* confdefs.h. */
22612 _ACEOF
22613 cat confdefs.h >>conftest.$ac_ext
22614 cat >>conftest.$ac_ext <<_ACEOF
22615 /* end confdefs.h. */
22616
22617 /* Override any gcc2 internal prototype to avoid an error. */
22618 #ifdef __cplusplus
22619 extern "C"
22620 #endif
22621 /* We use char because int might match the return type of a gcc2
22622 builtin and then its argument prototype would still apply. */
22623 char dlopen ();
22624 int
22625 main ()
22626 {
22627 dlopen ();
22628 ;
22629 return 0;
22630 }
22631 _ACEOF
22632 rm -f conftest.$ac_objext conftest$ac_exeext
22633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22634 (eval $ac_link) 2>conftest.er1
22635 ac_status=$?
22636 grep -v '^ *+' conftest.er1 >conftest.err
22637 rm -f conftest.er1
22638 cat conftest.err >&5
22639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640 (exit $ac_status); } &&
22641 { ac_try='test -z "$ac_c_werror_flag"
22642 || test ! -s conftest.err'
22643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22644 (eval $ac_try) 2>&5
22645 ac_status=$?
22646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22647 (exit $ac_status); }; } &&
22648 { ac_try='test -s conftest$ac_exeext'
22649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22650 (eval $ac_try) 2>&5
22651 ac_status=$?
22652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653 (exit $ac_status); }; }; then
22654 ac_cv_lib_dl_dlopen=yes
22655 else
22656 echo "$as_me: failed program was:" >&5
22657 sed 's/^/| /' conftest.$ac_ext >&5
22658
22659 ac_cv_lib_dl_dlopen=no
22660 fi
22661 rm -f conftest.err conftest.$ac_objext \
22662 conftest$ac_exeext conftest.$ac_ext
22663 LIBS=$ac_check_lib_save_LIBS
22664 fi
22665 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22666 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22667 if test $ac_cv_lib_dl_dlopen = yes; then
22668 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22669 else
22670
22671 lt_cv_dlopen="dyld"
22672 lt_cv_dlopen_libs=
22673 lt_cv_dlopen_self=yes
22674
22675 fi
22676
22677 ;;
22678
22679 *)
22680 echo "$as_me:$LINENO: checking for shl_load" >&5
22681 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22682 if test "${ac_cv_func_shl_load+set}" = set; then
22683 echo $ECHO_N "(cached) $ECHO_C" >&6
22684 else
22685 cat >conftest.$ac_ext <<_ACEOF
22686 /* confdefs.h. */
22687 _ACEOF
22688 cat confdefs.h >>conftest.$ac_ext
22689 cat >>conftest.$ac_ext <<_ACEOF
22690 /* end confdefs.h. */
22691 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22693 #define shl_load innocuous_shl_load
22694
22695 /* System header to define __stub macros and hopefully few prototypes,
22696 which can conflict with char shl_load (); below.
22697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22698 <limits.h> exists even on freestanding compilers. */
22699
22700 #ifdef __STDC__
22701 # include <limits.h>
22702 #else
22703 # include <assert.h>
22704 #endif
22705
22706 #undef shl_load
22707
22708 /* Override any gcc2 internal prototype to avoid an error. */
22709 #ifdef __cplusplus
22710 extern "C"
22711 {
22712 #endif
22713 /* We use char because int might match the return type of a gcc2
22714 builtin and then its argument prototype would still apply. */
22715 char shl_load ();
22716 /* The GNU C library defines this for functions which it implements
22717 to always fail with ENOSYS. Some functions are actually named
22718 something starting with __ and the normal name is an alias. */
22719 #if defined (__stub_shl_load) || defined (__stub___shl_load)
22720 choke me
22721 #else
22722 char (*f) () = shl_load;
22723 #endif
22724 #ifdef __cplusplus
22725 }
22726 #endif
22727
22728 int
22729 main ()
22730 {
22731 return f != shl_load;
22732 ;
22733 return 0;
22734 }
22735 _ACEOF
22736 rm -f conftest.$ac_objext conftest$ac_exeext
22737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22738 (eval $ac_link) 2>conftest.er1
22739 ac_status=$?
22740 grep -v '^ *+' conftest.er1 >conftest.err
22741 rm -f conftest.er1
22742 cat conftest.err >&5
22743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744 (exit $ac_status); } &&
22745 { ac_try='test -z "$ac_c_werror_flag"
22746 || test ! -s conftest.err'
22747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22748 (eval $ac_try) 2>&5
22749 ac_status=$?
22750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751 (exit $ac_status); }; } &&
22752 { ac_try='test -s conftest$ac_exeext'
22753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22754 (eval $ac_try) 2>&5
22755 ac_status=$?
22756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757 (exit $ac_status); }; }; then
22758 ac_cv_func_shl_load=yes
22759 else
22760 echo "$as_me: failed program was:" >&5
22761 sed 's/^/| /' conftest.$ac_ext >&5
22762
22763 ac_cv_func_shl_load=no
22764 fi
22765 rm -f conftest.err conftest.$ac_objext \
22766 conftest$ac_exeext conftest.$ac_ext
22767 fi
22768 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
22769 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
22770 if test $ac_cv_func_shl_load = yes; then
22771 lt_cv_dlopen="shl_load"
22772 else
22773 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
22774 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
22775 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
22776 echo $ECHO_N "(cached) $ECHO_C" >&6
22777 else
22778 ac_check_lib_save_LIBS=$LIBS
22779 LIBS="-ldld $LIBS"
22780 cat >conftest.$ac_ext <<_ACEOF
22781 /* confdefs.h. */
22782 _ACEOF
22783 cat confdefs.h >>conftest.$ac_ext
22784 cat >>conftest.$ac_ext <<_ACEOF
22785 /* end confdefs.h. */
22786
22787 /* Override any gcc2 internal prototype to avoid an error. */
22788 #ifdef __cplusplus
22789 extern "C"
22790 #endif
22791 /* We use char because int might match the return type of a gcc2
22792 builtin and then its argument prototype would still apply. */
22793 char shl_load ();
22794 int
22795 main ()
22796 {
22797 shl_load ();
22798 ;
22799 return 0;
22800 }
22801 _ACEOF
22802 rm -f conftest.$ac_objext conftest$ac_exeext
22803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22804 (eval $ac_link) 2>conftest.er1
22805 ac_status=$?
22806 grep -v '^ *+' conftest.er1 >conftest.err
22807 rm -f conftest.er1
22808 cat conftest.err >&5
22809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810 (exit $ac_status); } &&
22811 { ac_try='test -z "$ac_c_werror_flag"
22812 || test ! -s conftest.err'
22813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22814 (eval $ac_try) 2>&5
22815 ac_status=$?
22816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817 (exit $ac_status); }; } &&
22818 { ac_try='test -s conftest$ac_exeext'
22819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22820 (eval $ac_try) 2>&5
22821 ac_status=$?
22822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22823 (exit $ac_status); }; }; then
22824 ac_cv_lib_dld_shl_load=yes
22825 else
22826 echo "$as_me: failed program was:" >&5
22827 sed 's/^/| /' conftest.$ac_ext >&5
22828
22829 ac_cv_lib_dld_shl_load=no
22830 fi
22831 rm -f conftest.err conftest.$ac_objext \
22832 conftest$ac_exeext conftest.$ac_ext
22833 LIBS=$ac_check_lib_save_LIBS
22834 fi
22835 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
22836 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
22837 if test $ac_cv_lib_dld_shl_load = yes; then
22838 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
22839 else
22840 echo "$as_me:$LINENO: checking for dlopen" >&5
22841 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
22842 if test "${ac_cv_func_dlopen+set}" = set; then
22843 echo $ECHO_N "(cached) $ECHO_C" >&6
22844 else
22845 cat >conftest.$ac_ext <<_ACEOF
22846 /* confdefs.h. */
22847 _ACEOF
22848 cat confdefs.h >>conftest.$ac_ext
22849 cat >>conftest.$ac_ext <<_ACEOF
22850 /* end confdefs.h. */
22851 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
22852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22853 #define dlopen innocuous_dlopen
22854
22855 /* System header to define __stub macros and hopefully few prototypes,
22856 which can conflict with char dlopen (); below.
22857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22858 <limits.h> exists even on freestanding compilers. */
22859
22860 #ifdef __STDC__
22861 # include <limits.h>
22862 #else
22863 # include <assert.h>
22864 #endif
22865
22866 #undef dlopen
22867
22868 /* Override any gcc2 internal prototype to avoid an error. */
22869 #ifdef __cplusplus
22870 extern "C"
22871 {
22872 #endif
22873 /* We use char because int might match the return type of a gcc2
22874 builtin and then its argument prototype would still apply. */
22875 char dlopen ();
22876 /* The GNU C library defines this for functions which it implements
22877 to always fail with ENOSYS. Some functions are actually named
22878 something starting with __ and the normal name is an alias. */
22879 #if defined (__stub_dlopen) || defined (__stub___dlopen)
22880 choke me
22881 #else
22882 char (*f) () = dlopen;
22883 #endif
22884 #ifdef __cplusplus
22885 }
22886 #endif
22887
22888 int
22889 main ()
22890 {
22891 return f != dlopen;
22892 ;
22893 return 0;
22894 }
22895 _ACEOF
22896 rm -f conftest.$ac_objext conftest$ac_exeext
22897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22898 (eval $ac_link) 2>conftest.er1
22899 ac_status=$?
22900 grep -v '^ *+' conftest.er1 >conftest.err
22901 rm -f conftest.er1
22902 cat conftest.err >&5
22903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904 (exit $ac_status); } &&
22905 { ac_try='test -z "$ac_c_werror_flag"
22906 || test ! -s conftest.err'
22907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22908 (eval $ac_try) 2>&5
22909 ac_status=$?
22910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911 (exit $ac_status); }; } &&
22912 { ac_try='test -s conftest$ac_exeext'
22913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22914 (eval $ac_try) 2>&5
22915 ac_status=$?
22916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917 (exit $ac_status); }; }; then
22918 ac_cv_func_dlopen=yes
22919 else
22920 echo "$as_me: failed program was:" >&5
22921 sed 's/^/| /' conftest.$ac_ext >&5
22922
22923 ac_cv_func_dlopen=no
22924 fi
22925 rm -f conftest.err conftest.$ac_objext \
22926 conftest$ac_exeext conftest.$ac_ext
22927 fi
22928 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
22929 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
22930 if test $ac_cv_func_dlopen = yes; then
22931 lt_cv_dlopen="dlopen"
22932 else
22933 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22934 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22935 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22936 echo $ECHO_N "(cached) $ECHO_C" >&6
22937 else
22938 ac_check_lib_save_LIBS=$LIBS
22939 LIBS="-ldl $LIBS"
22940 cat >conftest.$ac_ext <<_ACEOF
22941 /* confdefs.h. */
22942 _ACEOF
22943 cat confdefs.h >>conftest.$ac_ext
22944 cat >>conftest.$ac_ext <<_ACEOF
22945 /* end confdefs.h. */
22946
22947 /* Override any gcc2 internal prototype to avoid an error. */
22948 #ifdef __cplusplus
22949 extern "C"
22950 #endif
22951 /* We use char because int might match the return type of a gcc2
22952 builtin and then its argument prototype would still apply. */
22953 char dlopen ();
22954 int
22955 main ()
22956 {
22957 dlopen ();
22958 ;
22959 return 0;
22960 }
22961 _ACEOF
22962 rm -f conftest.$ac_objext conftest$ac_exeext
22963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22964 (eval $ac_link) 2>conftest.er1
22965 ac_status=$?
22966 grep -v '^ *+' conftest.er1 >conftest.err
22967 rm -f conftest.er1
22968 cat conftest.err >&5
22969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970 (exit $ac_status); } &&
22971 { ac_try='test -z "$ac_c_werror_flag"
22972 || test ! -s conftest.err'
22973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22974 (eval $ac_try) 2>&5
22975 ac_status=$?
22976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); }; } &&
22978 { ac_try='test -s conftest$ac_exeext'
22979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22980 (eval $ac_try) 2>&5
22981 ac_status=$?
22982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983 (exit $ac_status); }; }; then
22984 ac_cv_lib_dl_dlopen=yes
22985 else
22986 echo "$as_me: failed program was:" >&5
22987 sed 's/^/| /' conftest.$ac_ext >&5
22988
22989 ac_cv_lib_dl_dlopen=no
22990 fi
22991 rm -f conftest.err conftest.$ac_objext \
22992 conftest$ac_exeext conftest.$ac_ext
22993 LIBS=$ac_check_lib_save_LIBS
22994 fi
22995 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22996 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22997 if test $ac_cv_lib_dl_dlopen = yes; then
22998 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22999 else
23000 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23001 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23002 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23003 echo $ECHO_N "(cached) $ECHO_C" >&6
23004 else
23005 ac_check_lib_save_LIBS=$LIBS
23006 LIBS="-lsvld $LIBS"
23007 cat >conftest.$ac_ext <<_ACEOF
23008 /* confdefs.h. */
23009 _ACEOF
23010 cat confdefs.h >>conftest.$ac_ext
23011 cat >>conftest.$ac_ext <<_ACEOF
23012 /* end confdefs.h. */
23013
23014 /* Override any gcc2 internal prototype to avoid an error. */
23015 #ifdef __cplusplus
23016 extern "C"
23017 #endif
23018 /* We use char because int might match the return type of a gcc2
23019 builtin and then its argument prototype would still apply. */
23020 char dlopen ();
23021 int
23022 main ()
23023 {
23024 dlopen ();
23025 ;
23026 return 0;
23027 }
23028 _ACEOF
23029 rm -f conftest.$ac_objext conftest$ac_exeext
23030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23031 (eval $ac_link) 2>conftest.er1
23032 ac_status=$?
23033 grep -v '^ *+' conftest.er1 >conftest.err
23034 rm -f conftest.er1
23035 cat conftest.err >&5
23036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037 (exit $ac_status); } &&
23038 { ac_try='test -z "$ac_c_werror_flag"
23039 || test ! -s conftest.err'
23040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23041 (eval $ac_try) 2>&5
23042 ac_status=$?
23043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044 (exit $ac_status); }; } &&
23045 { ac_try='test -s conftest$ac_exeext'
23046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23047 (eval $ac_try) 2>&5
23048 ac_status=$?
23049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050 (exit $ac_status); }; }; then
23051 ac_cv_lib_svld_dlopen=yes
23052 else
23053 echo "$as_me: failed program was:" >&5
23054 sed 's/^/| /' conftest.$ac_ext >&5
23055
23056 ac_cv_lib_svld_dlopen=no
23057 fi
23058 rm -f conftest.err conftest.$ac_objext \
23059 conftest$ac_exeext conftest.$ac_ext
23060 LIBS=$ac_check_lib_save_LIBS
23061 fi
23062 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23063 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23064 if test $ac_cv_lib_svld_dlopen = yes; then
23065 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23066 else
23067 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23068 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23069 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23070 echo $ECHO_N "(cached) $ECHO_C" >&6
23071 else
23072 ac_check_lib_save_LIBS=$LIBS
23073 LIBS="-ldld $LIBS"
23074 cat >conftest.$ac_ext <<_ACEOF
23075 /* confdefs.h. */
23076 _ACEOF
23077 cat confdefs.h >>conftest.$ac_ext
23078 cat >>conftest.$ac_ext <<_ACEOF
23079 /* end confdefs.h. */
23080
23081 /* Override any gcc2 internal prototype to avoid an error. */
23082 #ifdef __cplusplus
23083 extern "C"
23084 #endif
23085 /* We use char because int might match the return type of a gcc2
23086 builtin and then its argument prototype would still apply. */
23087 char dld_link ();
23088 int
23089 main ()
23090 {
23091 dld_link ();
23092 ;
23093 return 0;
23094 }
23095 _ACEOF
23096 rm -f conftest.$ac_objext conftest$ac_exeext
23097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23098 (eval $ac_link) 2>conftest.er1
23099 ac_status=$?
23100 grep -v '^ *+' conftest.er1 >conftest.err
23101 rm -f conftest.er1
23102 cat conftest.err >&5
23103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104 (exit $ac_status); } &&
23105 { ac_try='test -z "$ac_c_werror_flag"
23106 || test ! -s conftest.err'
23107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23108 (eval $ac_try) 2>&5
23109 ac_status=$?
23110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111 (exit $ac_status); }; } &&
23112 { ac_try='test -s conftest$ac_exeext'
23113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23114 (eval $ac_try) 2>&5
23115 ac_status=$?
23116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117 (exit $ac_status); }; }; then
23118 ac_cv_lib_dld_dld_link=yes
23119 else
23120 echo "$as_me: failed program was:" >&5
23121 sed 's/^/| /' conftest.$ac_ext >&5
23122
23123 ac_cv_lib_dld_dld_link=no
23124 fi
23125 rm -f conftest.err conftest.$ac_objext \
23126 conftest$ac_exeext conftest.$ac_ext
23127 LIBS=$ac_check_lib_save_LIBS
23128 fi
23129 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23130 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23131 if test $ac_cv_lib_dld_dld_link = yes; then
23132 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23133 fi
23134
23135
23136 fi
23137
23138
23139 fi
23140
23141
23142 fi
23143
23144
23145 fi
23146
23147
23148 fi
23149
23150 ;;
23151 esac
23152
23153 if test "x$lt_cv_dlopen" != xno; then
23154 enable_dlopen=yes
23155 else
23156 enable_dlopen=no
23157 fi
23158
23159 case $lt_cv_dlopen in
23160 dlopen)
23161 save_CPPFLAGS="$CPPFLAGS"
23162 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23163
23164 save_LDFLAGS="$LDFLAGS"
23165 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23166
23167 save_LIBS="$LIBS"
23168 LIBS="$lt_cv_dlopen_libs $LIBS"
23169
23170 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23171 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23172 if test "${lt_cv_dlopen_self+set}" = set; then
23173 echo $ECHO_N "(cached) $ECHO_C" >&6
23174 else
23175 if test "$cross_compiling" = yes; then :
23176 lt_cv_dlopen_self=cross
23177 else
23178 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23179 lt_status=$lt_dlunknown
23180 cat > conftest.$ac_ext <<EOF
23181 #line 23181 "configure"
23182 #include "confdefs.h"
23183
23184 #if HAVE_DLFCN_H
23185 #include <dlfcn.h>
23186 #endif
23187
23188 #include <stdio.h>
23189
23190 #ifdef RTLD_GLOBAL
23191 # define LT_DLGLOBAL RTLD_GLOBAL
23192 #else
23193 # ifdef DL_GLOBAL
23194 # define LT_DLGLOBAL DL_GLOBAL
23195 # else
23196 # define LT_DLGLOBAL 0
23197 # endif
23198 #endif
23199
23200 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23201 find out it does not work in some platform. */
23202 #ifndef LT_DLLAZY_OR_NOW
23203 # ifdef RTLD_LAZY
23204 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23205 # else
23206 # ifdef DL_LAZY
23207 # define LT_DLLAZY_OR_NOW DL_LAZY
23208 # else
23209 # ifdef RTLD_NOW
23210 # define LT_DLLAZY_OR_NOW RTLD_NOW
23211 # else
23212 # ifdef DL_NOW
23213 # define LT_DLLAZY_OR_NOW DL_NOW
23214 # else
23215 # define LT_DLLAZY_OR_NOW 0
23216 # endif
23217 # endif
23218 # endif
23219 # endif
23220 #endif
23221
23222 #ifdef __cplusplus
23223 extern "C" void exit (int);
23224 #endif
23225
23226 void fnord() { int i=42;}
23227 int main ()
23228 {
23229 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23230 int status = $lt_dlunknown;
23231
23232 if (self)
23233 {
23234 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23235 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23236 /* dlclose (self); */
23237 }
23238
23239 exit (status);
23240 }
23241 EOF
23242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23243 (eval $ac_link) 2>&5
23244 ac_status=$?
23245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23247 (./conftest; exit; ) >&5 2>/dev/null
23248 lt_status=$?
23249 case x$lt_status in
23250 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23251 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23252 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23253 esac
23254 else :
23255 # compilation failed
23256 lt_cv_dlopen_self=no
23257 fi
23258 fi
23259 rm -fr conftest*
23260
23261
23262 fi
23263 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23264 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23265
23266 if test "x$lt_cv_dlopen_self" = xyes; then
23267 LDFLAGS="$LDFLAGS $link_static_flag"
23268 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23269 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23270 if test "${lt_cv_dlopen_self_static+set}" = set; then
23271 echo $ECHO_N "(cached) $ECHO_C" >&6
23272 else
23273 if test "$cross_compiling" = yes; then :
23274 lt_cv_dlopen_self_static=cross
23275 else
23276 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23277 lt_status=$lt_dlunknown
23278 cat > conftest.$ac_ext <<EOF
23279 #line 23279 "configure"
23280 #include "confdefs.h"
23281
23282 #if HAVE_DLFCN_H
23283 #include <dlfcn.h>
23284 #endif
23285
23286 #include <stdio.h>
23287
23288 #ifdef RTLD_GLOBAL
23289 # define LT_DLGLOBAL RTLD_GLOBAL
23290 #else
23291 # ifdef DL_GLOBAL
23292 # define LT_DLGLOBAL DL_GLOBAL
23293 # else
23294 # define LT_DLGLOBAL 0
23295 # endif
23296 #endif
23297
23298 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23299 find out it does not work in some platform. */
23300 #ifndef LT_DLLAZY_OR_NOW
23301 # ifdef RTLD_LAZY
23302 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23303 # else
23304 # ifdef DL_LAZY
23305 # define LT_DLLAZY_OR_NOW DL_LAZY
23306 # else
23307 # ifdef RTLD_NOW
23308 # define LT_DLLAZY_OR_NOW RTLD_NOW
23309 # else
23310 # ifdef DL_NOW
23311 # define LT_DLLAZY_OR_NOW DL_NOW
23312 # else
23313 # define LT_DLLAZY_OR_NOW 0
23314 # endif
23315 # endif
23316 # endif
23317 # endif
23318 #endif
23319
23320 #ifdef __cplusplus
23321 extern "C" void exit (int);
23322 #endif
23323
23324 void fnord() { int i=42;}
23325 int main ()
23326 {
23327 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23328 int status = $lt_dlunknown;
23329
23330 if (self)
23331 {
23332 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23333 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23334 /* dlclose (self); */
23335 }
23336
23337 exit (status);
23338 }
23339 EOF
23340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23341 (eval $ac_link) 2>&5
23342 ac_status=$?
23343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23345 (./conftest; exit; ) >&5 2>/dev/null
23346 lt_status=$?
23347 case x$lt_status in
23348 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23349 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23350 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23351 esac
23352 else :
23353 # compilation failed
23354 lt_cv_dlopen_self_static=no
23355 fi
23356 fi
23357 rm -fr conftest*
23358
23359
23360 fi
23361 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23362 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23363 fi
23364
23365 CPPFLAGS="$save_CPPFLAGS"
23366 LDFLAGS="$save_LDFLAGS"
23367 LIBS="$save_LIBS"
23368 ;;
23369 esac
23370
23371 case $lt_cv_dlopen_self in
23372 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23373 *) enable_dlopen_self=unknown ;;
23374 esac
23375
23376 case $lt_cv_dlopen_self_static in
23377 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23378 *) enable_dlopen_self_static=unknown ;;
23379 esac
23380 fi
23381
23382
23383 # The else clause should only fire when bootstrapping the
23384 # libtool distribution, otherwise you forgot to ship ltmain.sh
23385 # with your package, and you will get complaints that there are
23386 # no rules to generate ltmain.sh.
23387 if test -f "$ltmain"; then
23388 # See if we are running on zsh, and set the options which allow our commands through
23389 # without removal of \ escapes.
23390 if test -n "${ZSH_VERSION+set}" ; then
23391 setopt NO_GLOB_SUBST
23392 fi
23393 # Now quote all the things that may contain metacharacters while being
23394 # careful not to overquote the AC_SUBSTed values. We take copies of the
23395 # variables and quote the copies for generation of the libtool script.
23396 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23397 SED SHELL STRIP \
23398 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23399 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23400 deplibs_check_method reload_flag reload_cmds need_locks \
23401 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23402 lt_cv_sys_global_symbol_to_c_name_address \
23403 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23404 old_postinstall_cmds old_postuninstall_cmds \
23405 compiler_GCJ \
23406 CC_GCJ \
23407 LD_GCJ \
23408 lt_prog_compiler_wl_GCJ \
23409 lt_prog_compiler_pic_GCJ \
23410 lt_prog_compiler_static_GCJ \
23411 lt_prog_compiler_no_builtin_flag_GCJ \
23412 export_dynamic_flag_spec_GCJ \
23413 thread_safe_flag_spec_GCJ \
23414 whole_archive_flag_spec_GCJ \
23415 enable_shared_with_static_runtimes_GCJ \
23416 old_archive_cmds_GCJ \
23417 old_archive_from_new_cmds_GCJ \
23418 predep_objects_GCJ \
23419 postdep_objects_GCJ \
23420 predeps_GCJ \
23421 postdeps_GCJ \
23422 compiler_lib_search_path_GCJ \
23423 archive_cmds_GCJ \
23424 archive_expsym_cmds_GCJ \
23425 postinstall_cmds_GCJ \
23426 postuninstall_cmds_GCJ \
23427 old_archive_from_expsyms_cmds_GCJ \
23428 allow_undefined_flag_GCJ \
23429 no_undefined_flag_GCJ \
23430 export_symbols_cmds_GCJ \
23431 hardcode_libdir_flag_spec_GCJ \
23432 hardcode_libdir_flag_spec_ld_GCJ \
23433 hardcode_libdir_separator_GCJ \
23434 hardcode_automatic_GCJ \
23435 module_cmds_GCJ \
23436 module_expsym_cmds_GCJ \
23437 lt_cv_prog_compiler_c_o_GCJ \
23438 exclude_expsyms_GCJ \
23439 include_expsyms_GCJ; do
23440
23441 case $var in
23442 old_archive_cmds_GCJ | \
23443 old_archive_from_new_cmds_GCJ | \
23444 archive_cmds_GCJ | \
23445 archive_expsym_cmds_GCJ | \
23446 module_cmds_GCJ | \
23447 module_expsym_cmds_GCJ | \
23448 old_archive_from_expsyms_cmds_GCJ | \
23449 export_symbols_cmds_GCJ | \
23450 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23451 postinstall_cmds | postuninstall_cmds | \
23452 old_postinstall_cmds | old_postuninstall_cmds | \
23453 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23454 # Double-quote double-evaled strings.
23455 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23456 ;;
23457 *)
23458 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23459 ;;
23460 esac
23461 done
23462
23463 case $lt_echo in
23464 *'\$0 --fallback-echo"')
23465 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23466 ;;
23467 esac
23468
23469 cfgfile="$ofile"
23470
23471 cat <<__EOF__ >> "$cfgfile"
23472 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23473
23474 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23475
23476 # Shell to use when invoking shell scripts.
23477 SHELL=$lt_SHELL
23478
23479 # Whether or not to build shared libraries.
23480 build_libtool_libs=$enable_shared
23481
23482 # Whether or not to build static libraries.
23483 build_old_libs=$enable_static
23484
23485 # Whether or not to add -lc for building shared libraries.
23486 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23487
23488 # Whether or not to disallow shared libs when runtime libs are static
23489 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23490
23491 # Whether or not to optimize for fast installation.
23492 fast_install=$enable_fast_install
23493
23494 # The host system.
23495 host_alias=$host_alias
23496 host=$host
23497 host_os=$host_os
23498
23499 # The build system.
23500 build_alias=$build_alias
23501 build=$build
23502 build_os=$build_os
23503
23504 # An echo program that does not interpret backslashes.
23505 echo=$lt_echo
23506
23507 # The archiver.
23508 AR=$lt_AR
23509 AR_FLAGS=$lt_AR_FLAGS
23510
23511 # A C compiler.
23512 LTCC=$lt_LTCC
23513
23514 # A language-specific compiler.
23515 CC=$lt_compiler_GCJ
23516
23517 # Is the compiler the GNU C compiler?
23518 with_gcc=$GCC_GCJ
23519
23520 # An ERE matcher.
23521 EGREP=$lt_EGREP
23522
23523 # The linker used to build libraries.
23524 LD=$lt_LD_GCJ
23525
23526 # Whether we need hard or soft links.
23527 LN_S=$lt_LN_S
23528
23529 # A BSD-compatible nm program.
23530 NM=$lt_NM
23531
23532 # A symbol stripping program
23533 STRIP=$lt_STRIP
23534
23535 # Used to examine libraries when file_magic_cmd begins "file"
23536 MAGIC_CMD=$MAGIC_CMD
23537
23538 # Used on cygwin: DLL creation program.
23539 DLLTOOL="$DLLTOOL"
23540
23541 # Used on cygwin: object dumper.
23542 OBJDUMP="$OBJDUMP"
23543
23544 # Used on cygwin: assembler.
23545 AS="$AS"
23546
23547 # The name of the directory that contains temporary libtool files.
23548 objdir=$objdir
23549
23550 # How to create reloadable object files.
23551 reload_flag=$lt_reload_flag
23552 reload_cmds=$lt_reload_cmds
23553
23554 # How to pass a linker flag through the compiler.
23555 wl=$lt_lt_prog_compiler_wl_GCJ
23556
23557 # Object file suffix (normally "o").
23558 objext="$ac_objext"
23559
23560 # Old archive suffix (normally "a").
23561 libext="$libext"
23562
23563 # Shared library suffix (normally ".so").
23564 shrext_cmds='$shrext_cmds'
23565
23566 # Executable file suffix (normally "").
23567 exeext="$exeext"
23568
23569 # Additional compiler flags for building library objects.
23570 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23571 pic_mode=$pic_mode
23572
23573 # What is the maximum length of a command?
23574 max_cmd_len=$lt_cv_sys_max_cmd_len
23575
23576 # Does compiler simultaneously support -c and -o options?
23577 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23578
23579 # Must we lock files when doing compilation?
23580 need_locks=$lt_need_locks
23581
23582 # Do we need the lib prefix for modules?
23583 need_lib_prefix=$need_lib_prefix
23584
23585 # Do we need a version for libraries?
23586 need_version=$need_version
23587
23588 # Whether dlopen is supported.
23589 dlopen_support=$enable_dlopen
23590
23591 # Whether dlopen of programs is supported.
23592 dlopen_self=$enable_dlopen_self
23593
23594 # Whether dlopen of statically linked programs is supported.
23595 dlopen_self_static=$enable_dlopen_self_static
23596
23597 # Compiler flag to prevent dynamic linking.
23598 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23599
23600 # Compiler flag to turn off builtin functions.
23601 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23602
23603 # Compiler flag to allow reflexive dlopens.
23604 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23605
23606 # Compiler flag to generate shared objects directly from archives.
23607 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23608
23609 # Compiler flag to generate thread-safe objects.
23610 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23611
23612 # Library versioning type.
23613 version_type=$version_type
23614
23615 # Format of library name prefix.
23616 libname_spec=$lt_libname_spec
23617
23618 # List of archive names. First name is the real one, the rest are links.
23619 # The last name is the one that the linker finds with -lNAME.
23620 library_names_spec=$lt_library_names_spec
23621
23622 # The coded name of the library, if different from the real name.
23623 soname_spec=$lt_soname_spec
23624
23625 # Commands used to build and install an old-style archive.
23626 RANLIB=$lt_RANLIB
23627 old_archive_cmds=$lt_old_archive_cmds_GCJ
23628 old_postinstall_cmds=$lt_old_postinstall_cmds
23629 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23630
23631 # Create an old-style archive from a shared archive.
23632 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23633
23634 # Create a temporary old-style archive to link instead of a shared archive.
23635 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23636
23637 # Commands used to build and install a shared archive.
23638 archive_cmds=$lt_archive_cmds_GCJ
23639 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23640 postinstall_cmds=$lt_postinstall_cmds
23641 postuninstall_cmds=$lt_postuninstall_cmds
23642
23643 # Commands used to build a loadable module (assumed same as above if empty)
23644 module_cmds=$lt_module_cmds_GCJ
23645 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23646
23647 # Commands to strip libraries.
23648 old_striplib=$lt_old_striplib
23649 striplib=$lt_striplib
23650
23651 # Dependencies to place before the objects being linked to create a
23652 # shared library.
23653 predep_objects=$lt_predep_objects_GCJ
23654
23655 # Dependencies to place after the objects being linked to create a
23656 # shared library.
23657 postdep_objects=$lt_postdep_objects_GCJ
23658
23659 # Dependencies to place before the objects being linked to create a
23660 # shared library.
23661 predeps=$lt_predeps_GCJ
23662
23663 # Dependencies to place after the objects being linked to create a
23664 # shared library.
23665 postdeps=$lt_postdeps_GCJ
23666
23667 # The library search path used internally by the compiler when linking
23668 # a shared library.
23669 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23670
23671 # Method to check whether dependent libraries are shared objects.
23672 deplibs_check_method=$lt_deplibs_check_method
23673
23674 # Command to use when deplibs_check_method == file_magic.
23675 file_magic_cmd=$lt_file_magic_cmd
23676
23677 # Flag that allows shared libraries with undefined symbols to be built.
23678 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23679
23680 # Flag that forces no undefined symbols.
23681 no_undefined_flag=$lt_no_undefined_flag_GCJ
23682
23683 # Commands used to finish a libtool library installation in a directory.
23684 finish_cmds=$lt_finish_cmds
23685
23686 # Same as above, but a single script fragment to be evaled but not shown.
23687 finish_eval=$lt_finish_eval
23688
23689 # Take the output of nm and produce a listing of raw symbols and C names.
23690 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23691
23692 # Transform the output of nm in a proper C declaration
23693 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23694
23695 # Transform the output of nm in a C name address pair
23696 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23697
23698 # This is the shared library runtime path variable.
23699 runpath_var=$runpath_var
23700
23701 # This is the shared library path variable.
23702 shlibpath_var=$shlibpath_var
23703
23704 # Is shlibpath searched before the hard-coded library search path?
23705 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23706
23707 # How to hardcode a shared library path into an executable.
23708 hardcode_action=$hardcode_action_GCJ
23709
23710 # Whether we should hardcode library paths into libraries.
23711 hardcode_into_libs=$hardcode_into_libs
23712
23713 # Flag to hardcode \$libdir into a binary during linking.
23714 # This must work even if \$libdir does not exist.
23715 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23716
23717 # If ld is used when linking, flag to hardcode \$libdir into
23718 # a binary during linking. This must work even if \$libdir does
23719 # not exist.
23720 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
23721
23722 # Whether we need a single -rpath flag with a separated argument.
23723 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23724
23725 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23726 # resulting binary.
23727 hardcode_direct=$hardcode_direct_GCJ
23728
23729 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23730 # resulting binary.
23731 hardcode_minus_L=$hardcode_minus_L_GCJ
23732
23733 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23734 # the resulting binary.
23735 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
23736
23737 # Set to yes if building a shared library automatically hardcodes DIR into the library
23738 # and all subsequent libraries and executables linked against it.
23739 hardcode_automatic=$hardcode_automatic_GCJ
23740
23741 # Variables whose values should be saved in libtool wrapper scripts and
23742 # restored at relink time.
23743 variables_saved_for_relink="$variables_saved_for_relink"
23744
23745 # Whether libtool must link a program against all its dependency libraries.
23746 link_all_deplibs=$link_all_deplibs_GCJ
23747
23748 # Compile-time system search path for libraries
23749 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23750
23751 # Run-time system search path for libraries
23752 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23753
23754 # Fix the shell variable \$srcfile for the compiler.
23755 fix_srcfile_path="$fix_srcfile_path_GCJ"
23756
23757 # Set to yes if exported symbols are required.
23758 always_export_symbols=$always_export_symbols_GCJ
23759
23760 # The commands to list exported symbols.
23761 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
23762
23763 # The commands to extract the exported symbol list from a shared archive.
23764 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23765
23766 # Symbols that should not be listed in the preloaded symbols.
23767 exclude_expsyms=$lt_exclude_expsyms_GCJ
23768
23769 # Symbols that must always be exported.
23770 include_expsyms=$lt_include_expsyms_GCJ
23771
23772 # ### END LIBTOOL TAG CONFIG: $tagname
23773
23774 __EOF__
23775
23776
23777 else
23778 # If there is no Makefile yet, we rely on a make rule to execute
23779 # `config.status --recheck' to rerun these tests and create the
23780 # libtool script then.
23781 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23782 if test -f "$ltmain_in"; then
23783 test -f Makefile && make "$ltmain"
23784 fi
23785 fi
23786
23787
23788 ac_ext=c
23789 ac_cpp='$CPP $CPPFLAGS'
23790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23793
23794 CC="$lt_save_CC"
23795
23796 else
23797 tagname=""
23798 fi
23799 ;;
23800
23801 RC)
23802
23803
23804
23805 # Source file extension for RC test sources.
23806 ac_ext=rc
23807
23808 # Object file extension for compiled RC test sources.
23809 objext=o
23810 objext_RC=$objext
23811
23812 # Code to be used in simple compile tests
23813 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
23814
23815 # Code to be used in simple link tests
23816 lt_simple_link_test_code="$lt_simple_compile_test_code"
23817
23818 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23819
23820 # If no C compiler was specified, use CC.
23821 LTCC=${LTCC-"$CC"}
23822
23823 # Allow CC to be a program name with arguments.
23824 compiler=$CC
23825
23826
23827 # save warnings/boilerplate of simple test code
23828 ac_outfile=conftest.$ac_objext
23829 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23830 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
23831 _lt_compiler_boilerplate=`cat conftest.err`
23832 $rm conftest*
23833
23834 ac_outfile=conftest.$ac_objext
23835 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23836 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
23837 _lt_linker_boilerplate=`cat conftest.err`
23838 $rm conftest*
23839
23840
23841 # Allow CC to be a program name with arguments.
23842 lt_save_CC="$CC"
23843 CC=${RC-"windres"}
23844 compiler=$CC
23845 compiler_RC=$CC
23846 for cc_temp in $compiler""; do
23847 case $cc_temp in
23848 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23849 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23850 \-*) ;;
23851 *) break;;
23852 esac
23853 done
23854 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23855
23856 lt_cv_prog_compiler_c_o_RC=yes
23857
23858 # The else clause should only fire when bootstrapping the
23859 # libtool distribution, otherwise you forgot to ship ltmain.sh
23860 # with your package, and you will get complaints that there are
23861 # no rules to generate ltmain.sh.
23862 if test -f "$ltmain"; then
23863 # See if we are running on zsh, and set the options which allow our commands through
23864 # without removal of \ escapes.
23865 if test -n "${ZSH_VERSION+set}" ; then
23866 setopt NO_GLOB_SUBST
23867 fi
23868 # Now quote all the things that may contain metacharacters while being
23869 # careful not to overquote the AC_SUBSTed values. We take copies of the
23870 # variables and quote the copies for generation of the libtool script.
23871 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23872 SED SHELL STRIP \
23873 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23874 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23875 deplibs_check_method reload_flag reload_cmds need_locks \
23876 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23877 lt_cv_sys_global_symbol_to_c_name_address \
23878 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23879 old_postinstall_cmds old_postuninstall_cmds \
23880 compiler_RC \
23881 CC_RC \
23882 LD_RC \
23883 lt_prog_compiler_wl_RC \
23884 lt_prog_compiler_pic_RC \
23885 lt_prog_compiler_static_RC \
23886 lt_prog_compiler_no_builtin_flag_RC \
23887 export_dynamic_flag_spec_RC \
23888 thread_safe_flag_spec_RC \
23889 whole_archive_flag_spec_RC \
23890 enable_shared_with_static_runtimes_RC \
23891 old_archive_cmds_RC \
23892 old_archive_from_new_cmds_RC \
23893 predep_objects_RC \
23894 postdep_objects_RC \
23895 predeps_RC \
23896 postdeps_RC \
23897 compiler_lib_search_path_RC \
23898 archive_cmds_RC \
23899 archive_expsym_cmds_RC \
23900 postinstall_cmds_RC \
23901 postuninstall_cmds_RC \
23902 old_archive_from_expsyms_cmds_RC \
23903 allow_undefined_flag_RC \
23904 no_undefined_flag_RC \
23905 export_symbols_cmds_RC \
23906 hardcode_libdir_flag_spec_RC \
23907 hardcode_libdir_flag_spec_ld_RC \
23908 hardcode_libdir_separator_RC \
23909 hardcode_automatic_RC \
23910 module_cmds_RC \
23911 module_expsym_cmds_RC \
23912 lt_cv_prog_compiler_c_o_RC \
23913 exclude_expsyms_RC \
23914 include_expsyms_RC; do
23915
23916 case $var in
23917 old_archive_cmds_RC | \
23918 old_archive_from_new_cmds_RC | \
23919 archive_cmds_RC | \
23920 archive_expsym_cmds_RC | \
23921 module_cmds_RC | \
23922 module_expsym_cmds_RC | \
23923 old_archive_from_expsyms_cmds_RC | \
23924 export_symbols_cmds_RC | \
23925 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23926 postinstall_cmds | postuninstall_cmds | \
23927 old_postinstall_cmds | old_postuninstall_cmds | \
23928 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23929 # Double-quote double-evaled strings.
23930 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23931 ;;
23932 *)
23933 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23934 ;;
23935 esac
23936 done
23937
23938 case $lt_echo in
23939 *'\$0 --fallback-echo"')
23940 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23941 ;;
23942 esac
23943
23944 cfgfile="$ofile"
23945
23946 cat <<__EOF__ >> "$cfgfile"
23947 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23948
23949 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23950
23951 # Shell to use when invoking shell scripts.
23952 SHELL=$lt_SHELL
23953
23954 # Whether or not to build shared libraries.
23955 build_libtool_libs=$enable_shared
23956
23957 # Whether or not to build static libraries.
23958 build_old_libs=$enable_static
23959
23960 # Whether or not to add -lc for building shared libraries.
23961 build_libtool_need_lc=$archive_cmds_need_lc_RC
23962
23963 # Whether or not to disallow shared libs when runtime libs are static
23964 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
23965
23966 # Whether or not to optimize for fast installation.
23967 fast_install=$enable_fast_install
23968
23969 # The host system.
23970 host_alias=$host_alias
23971 host=$host
23972 host_os=$host_os
23973
23974 # The build system.
23975 build_alias=$build_alias
23976 build=$build
23977 build_os=$build_os
23978
23979 # An echo program that does not interpret backslashes.
23980 echo=$lt_echo
23981
23982 # The archiver.
23983 AR=$lt_AR
23984 AR_FLAGS=$lt_AR_FLAGS
23985
23986 # A C compiler.
23987 LTCC=$lt_LTCC
23988
23989 # A language-specific compiler.
23990 CC=$lt_compiler_RC
23991
23992 # Is the compiler the GNU C compiler?
23993 with_gcc=$GCC_RC
23994
23995 # An ERE matcher.
23996 EGREP=$lt_EGREP
23997
23998 # The linker used to build libraries.
23999 LD=$lt_LD_RC
24000
24001 # Whether we need hard or soft links.
24002 LN_S=$lt_LN_S
24003
24004 # A BSD-compatible nm program.
24005 NM=$lt_NM
24006
24007 # A symbol stripping program
24008 STRIP=$lt_STRIP
24009
24010 # Used to examine libraries when file_magic_cmd begins "file"
24011 MAGIC_CMD=$MAGIC_CMD
24012
24013 # Used on cygwin: DLL creation program.
24014 DLLTOOL="$DLLTOOL"
24015
24016 # Used on cygwin: object dumper.
24017 OBJDUMP="$OBJDUMP"
24018
24019 # Used on cygwin: assembler.
24020 AS="$AS"
24021
24022 # The name of the directory that contains temporary libtool files.
24023 objdir=$objdir
24024
24025 # How to create reloadable object files.
24026 reload_flag=$lt_reload_flag
24027 reload_cmds=$lt_reload_cmds
24028
24029 # How to pass a linker flag through the compiler.
24030 wl=$lt_lt_prog_compiler_wl_RC
24031
24032 # Object file suffix (normally "o").
24033 objext="$ac_objext"
24034
24035 # Old archive suffix (normally "a").
24036 libext="$libext"
24037
24038 # Shared library suffix (normally ".so").
24039 shrext_cmds='$shrext_cmds'
24040
24041 # Executable file suffix (normally "").
24042 exeext="$exeext"
24043
24044 # Additional compiler flags for building library objects.
24045 pic_flag=$lt_lt_prog_compiler_pic_RC
24046 pic_mode=$pic_mode
24047
24048 # What is the maximum length of a command?
24049 max_cmd_len=$lt_cv_sys_max_cmd_len
24050
24051 # Does compiler simultaneously support -c and -o options?
24052 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24053
24054 # Must we lock files when doing compilation?
24055 need_locks=$lt_need_locks
24056
24057 # Do we need the lib prefix for modules?
24058 need_lib_prefix=$need_lib_prefix
24059
24060 # Do we need a version for libraries?
24061 need_version=$need_version
24062
24063 # Whether dlopen is supported.
24064 dlopen_support=$enable_dlopen
24065
24066 # Whether dlopen of programs is supported.
24067 dlopen_self=$enable_dlopen_self
24068
24069 # Whether dlopen of statically linked programs is supported.
24070 dlopen_self_static=$enable_dlopen_self_static
24071
24072 # Compiler flag to prevent dynamic linking.
24073 link_static_flag=$lt_lt_prog_compiler_static_RC
24074
24075 # Compiler flag to turn off builtin functions.
24076 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24077
24078 # Compiler flag to allow reflexive dlopens.
24079 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24080
24081 # Compiler flag to generate shared objects directly from archives.
24082 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24083
24084 # Compiler flag to generate thread-safe objects.
24085 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24086
24087 # Library versioning type.
24088 version_type=$version_type
24089
24090 # Format of library name prefix.
24091 libname_spec=$lt_libname_spec
24092
24093 # List of archive names. First name is the real one, the rest are links.
24094 # The last name is the one that the linker finds with -lNAME.
24095 library_names_spec=$lt_library_names_spec
24096
24097 # The coded name of the library, if different from the real name.
24098 soname_spec=$lt_soname_spec
24099
24100 # Commands used to build and install an old-style archive.
24101 RANLIB=$lt_RANLIB
24102 old_archive_cmds=$lt_old_archive_cmds_RC
24103 old_postinstall_cmds=$lt_old_postinstall_cmds
24104 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24105
24106 # Create an old-style archive from a shared archive.
24107 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24108
24109 # Create a temporary old-style archive to link instead of a shared archive.
24110 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24111
24112 # Commands used to build and install a shared archive.
24113 archive_cmds=$lt_archive_cmds_RC
24114 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24115 postinstall_cmds=$lt_postinstall_cmds
24116 postuninstall_cmds=$lt_postuninstall_cmds
24117
24118 # Commands used to build a loadable module (assumed same as above if empty)
24119 module_cmds=$lt_module_cmds_RC
24120 module_expsym_cmds=$lt_module_expsym_cmds_RC
24121
24122 # Commands to strip libraries.
24123 old_striplib=$lt_old_striplib
24124 striplib=$lt_striplib
24125
24126 # Dependencies to place before the objects being linked to create a
24127 # shared library.
24128 predep_objects=$lt_predep_objects_RC
24129
24130 # Dependencies to place after the objects being linked to create a
24131 # shared library.
24132 postdep_objects=$lt_postdep_objects_RC
24133
24134 # Dependencies to place before the objects being linked to create a
24135 # shared library.
24136 predeps=$lt_predeps_RC
24137
24138 # Dependencies to place after the objects being linked to create a
24139 # shared library.
24140 postdeps=$lt_postdeps_RC
24141
24142 # The library search path used internally by the compiler when linking
24143 # a shared library.
24144 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24145
24146 # Method to check whether dependent libraries are shared objects.
24147 deplibs_check_method=$lt_deplibs_check_method
24148
24149 # Command to use when deplibs_check_method == file_magic.
24150 file_magic_cmd=$lt_file_magic_cmd
24151
24152 # Flag that allows shared libraries with undefined symbols to be built.
24153 allow_undefined_flag=$lt_allow_undefined_flag_RC
24154
24155 # Flag that forces no undefined symbols.
24156 no_undefined_flag=$lt_no_undefined_flag_RC
24157
24158 # Commands used to finish a libtool library installation in a directory.
24159 finish_cmds=$lt_finish_cmds
24160
24161 # Same as above, but a single script fragment to be evaled but not shown.
24162 finish_eval=$lt_finish_eval
24163
24164 # Take the output of nm and produce a listing of raw symbols and C names.
24165 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24166
24167 # Transform the output of nm in a proper C declaration
24168 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24169
24170 # Transform the output of nm in a C name address pair
24171 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24172
24173 # This is the shared library runtime path variable.
24174 runpath_var=$runpath_var
24175
24176 # This is the shared library path variable.
24177 shlibpath_var=$shlibpath_var
24178
24179 # Is shlibpath searched before the hard-coded library search path?
24180 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24181
24182 # How to hardcode a shared library path into an executable.
24183 hardcode_action=$hardcode_action_RC
24184
24185 # Whether we should hardcode library paths into libraries.
24186 hardcode_into_libs=$hardcode_into_libs
24187
24188 # Flag to hardcode \$libdir into a binary during linking.
24189 # This must work even if \$libdir does not exist.
24190 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24191
24192 # If ld is used when linking, flag to hardcode \$libdir into
24193 # a binary during linking. This must work even if \$libdir does
24194 # not exist.
24195 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24196
24197 # Whether we need a single -rpath flag with a separated argument.
24198 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24199
24200 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24201 # resulting binary.
24202 hardcode_direct=$hardcode_direct_RC
24203
24204 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24205 # resulting binary.
24206 hardcode_minus_L=$hardcode_minus_L_RC
24207
24208 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24209 # the resulting binary.
24210 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24211
24212 # Set to yes if building a shared library automatically hardcodes DIR into the library
24213 # and all subsequent libraries and executables linked against it.
24214 hardcode_automatic=$hardcode_automatic_RC
24215
24216 # Variables whose values should be saved in libtool wrapper scripts and
24217 # restored at relink time.
24218 variables_saved_for_relink="$variables_saved_for_relink"
24219
24220 # Whether libtool must link a program against all its dependency libraries.
24221 link_all_deplibs=$link_all_deplibs_RC
24222
24223 # Compile-time system search path for libraries
24224 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24225
24226 # Run-time system search path for libraries
24227 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24228
24229 # Fix the shell variable \$srcfile for the compiler.
24230 fix_srcfile_path="$fix_srcfile_path_RC"
24231
24232 # Set to yes if exported symbols are required.
24233 always_export_symbols=$always_export_symbols_RC
24234
24235 # The commands to list exported symbols.
24236 export_symbols_cmds=$lt_export_symbols_cmds_RC
24237
24238 # The commands to extract the exported symbol list from a shared archive.
24239 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24240
24241 # Symbols that should not be listed in the preloaded symbols.
24242 exclude_expsyms=$lt_exclude_expsyms_RC
24243
24244 # Symbols that must always be exported.
24245 include_expsyms=$lt_include_expsyms_RC
24246
24247 # ### END LIBTOOL TAG CONFIG: $tagname
24248
24249 __EOF__
24250
24251
24252 else
24253 # If there is no Makefile yet, we rely on a make rule to execute
24254 # `config.status --recheck' to rerun these tests and create the
24255 # libtool script then.
24256 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24257 if test -f "$ltmain_in"; then
24258 test -f Makefile && make "$ltmain"
24259 fi
24260 fi
24261
24262
24263 ac_ext=c
24264 ac_cpp='$CPP $CPPFLAGS'
24265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24268
24269 CC="$lt_save_CC"
24270
24271 ;;
24272
24273 *)
24274 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24275 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24276 { (exit 1); exit 1; }; }
24277 ;;
24278 esac
24279
24280 # Append the new tag name to the list of available tags.
24281 if test -n "$tagname" ; then
24282 available_tags="$available_tags $tagname"
24283 fi
24284 fi
24285 done
24286 IFS="$lt_save_ifs"
24287
24288 # Now substitute the updated list of available tags.
24289 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24290 mv "${ofile}T" "$ofile"
24291 chmod +x "$ofile"
24292 else
24293 rm -f "${ofile}T"
24294 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24295 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24296 { (exit 1); exit 1; }; }
24297 fi
24298 fi
24299
24300
24301
24302 # This can be used to rebuild libtool when needed
24303 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24304
24305 # Always use our own libtool.
24306 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
24307
24308 # Prevent multiple expansion
24309
24310
24311
24312
24313
24314
24315
24316
24317
24318
24319
24320
24321
24322
24323
24324
24325
24326
24327
24328
24329 # Check whether --enable-xmms or --disable-xmms was given.
24330 if test "${enable_xmms+set}" = set; then
24331 enableval="$enable_xmms"
24332 case "$enableval" in
24333 yes) enable_xmms=true ;;
24334 no) enable_xmms=false ;;
24335 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-xmms" >&5
24336 echo "$as_me: error: bad value $enableval for --enable-xmms" >&2;}
24337 { (exit 1); exit 1; }; } ;;
24338 esac
24339 fi;
24340
24341 use_xmms=false
24342 if test x$enable_xmms != xfalse; then
24343 if test x$have_xmms = xtrue; then
24344 use_xmms=true
24345 PLUGINS="xmms-rva $PLUGINS"
24346 elif test x$enable_xmms = xtrue; then
24347 { { echo "$as_me:$LINENO: error: --enable-xmms specified, but xmms not found" >&5
24348 echo "$as_me: error: --enable-xmms specified, but xmms not found" >&2;}
24349 { (exit 1); exit 1; }; }
24350 fi
24351 fi
24352
24353
24354
24355
24356 # Check whether --with-audiofile-prefix or --without-audiofile-prefix was given.
24357 if test "${with_audiofile_prefix+set}" = set; then
24358 withval="$with_audiofile_prefix"
24359 audiofile_prefix="$withval"
24360 else
24361 audiofile_prefix=""
24362 fi;
24363
24364 # Check whether --with-audiofile-exec-prefix or --without-audiofile-exec-prefix was given.
24365 if test "${with_audiofile_exec_prefix+set}" = set; then
24366 withval="$with_audiofile_exec_prefix"
24367 audiofile_exec_prefix="$withval"
24368 else
24369 audiofile_exec_prefix=""
24370 fi;
24371 # Check whether --enable-audiofiletest or --disable-audiofiletest was given.
24372 if test "${enable_audiofiletest+set}" = set; then
24373 enableval="$enable_audiofiletest"
24374
24375 else
24376 enable_audiofiletest=yes
24377 fi;
24378
24379 if test x$audiofile_exec_prefix != x ; then
24380 audiofile_args="$audiofile_args --exec-prefix=$audiofile_exec_prefix"
24381 if test x${AUDIOFILE_CONFIG+set} != xset ; then
24382 AUDIOFILE_CONFIG=$audiofile_exec_prefix/bin/audiofile-config
24383 fi
24384 fi
24385 if test x$audiofile_prefix != x ; then
24386 audiofile_args="$audiofile_args --prefix=$audiofile_prefix"
24387 if test x${AUDIOFILE_CONFIG+set} != xset ; then
24388 AUDIOFILE_CONFIG=$audiofile_prefix/bin/audiofile-config
24389 fi
24390 fi
24391
24392 # Extract the first word of "audiofile-config", so it can be a program name with args.
24393 set dummy audiofile-config; ac_word=$2
24394 echo "$as_me:$LINENO: checking for $ac_word" >&5
24395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24396 if test "${ac_cv_path_AUDIOFILE_CONFIG+set}" = set; then
24397 echo $ECHO_N "(cached) $ECHO_C" >&6
24398 else
24399 case $AUDIOFILE_CONFIG in
24400 [\\/]* | ?:[\\/]*)
24401 ac_cv_path_AUDIOFILE_CONFIG="$AUDIOFILE_CONFIG" # Let the user override the test with a path.
24402 ;;
24403 *)
24404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24405 for as_dir in $PATH
24406 do
24407 IFS=$as_save_IFS
24408 test -z "$as_dir" && as_dir=.
24409 for ac_exec_ext in '' $ac_executable_extensions; do
24410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24411 ac_cv_path_AUDIOFILE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24413 break 2
24414 fi
24415 done
24416 done
24417
24418 test -z "$ac_cv_path_AUDIOFILE_CONFIG" && ac_cv_path_AUDIOFILE_CONFIG="no"
24419 ;;
24420 esac
24421 fi
24422 AUDIOFILE_CONFIG=$ac_cv_path_AUDIOFILE_CONFIG
24423
24424 if test -n "$AUDIOFILE_CONFIG"; then
24425 echo "$as_me:$LINENO: result: $AUDIOFILE_CONFIG" >&5
24426 echo "${ECHO_T}$AUDIOFILE_CONFIG" >&6
24427 else
24428 echo "$as_me:$LINENO: result: no" >&5
24429 echo "${ECHO_T}no" >&6
24430 fi
24431
24432 min_audiofile_version=0.2.2
24433 echo "$as_me:$LINENO: checking for Audio File Library - version >= $min_audiofile_version" >&5
24434 echo $ECHO_N "checking for Audio File Library - version >= $min_audiofile_version... $ECHO_C" >&6
24435 no_audiofile=""
24436 if test "$AUDIOFILE_CONFIG" = "no" ; then
24437 no_audiofile=yes
24438 else
24439 AUDIOFILE_LIBS=`$AUDIOFILE_CONFIG $audiofileconf_args --libs`
24440 AUDIOFILE_CFLAGS=`$AUDIOFILE_CONFIG $audiofileconf_args --cflags`
24441 audiofile_major_version=`$AUDIOFILE_CONFIG $audiofile_args --version | \
24442 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24443 audiofile_minor_version=`$AUDIOFILE_CONFIG $audiofile_args --version | \
24444 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24445 audiofile_micro_version=`$AUDIOFILE_CONFIG $audiofile_config_args --version | \
24446 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24447 if test "x$enable_audiofiletest" = "xyes" ; then
24448
24449
24450 ac_ext=c
24451 ac_cpp='$CPP $CPPFLAGS'
24452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24455
24456 ac_save_CFLAGS="$CFLAGS"
24457 ac_save_LIBS="$LIBS"
24458 CFLAGS="$CFLAGS $AUDIOFILE_CFLAGS"
24459 LIBS="$LIBS $AUDIOFILE_LIBS"
24460 rm -f conf.audiofiletest
24461 if test "$cross_compiling" = yes; then
24462 echo $ac_n "cross compiling; assumed OK... $ac_c"
24463 else
24464 cat >conftest.$ac_ext <<_ACEOF
24465 /* confdefs.h. */
24466 _ACEOF
24467 cat confdefs.h >>conftest.$ac_ext
24468 cat >>conftest.$ac_ext <<_ACEOF
24469 /* end confdefs.h. */
24470
24471 #include <stdio.h>
24472 #include <stdlib.h>
24473 #include <string.h>
24474 #include <audiofile.h>
24475
24476 char*
24477 my_strdup (char *str)
24478 {
24479 char *new_str;
24480
24481 if (str)
24482 {
24483 new_str = malloc ((strlen (str) + 1) * sizeof(char));
24484 strcpy (new_str, str);
24485 }
24486 else
24487 new_str = NULL;
24488
24489 return new_str;
24490 }
24491
24492 int main ()
24493 {
24494 int major, minor, micro;
24495 char *tmp_version;
24496
24497 system ("touch conf.audiofiletest");
24498
24499 /* HP/UX 9 (%@#!) writes to sscanf strings */
24500 tmp_version = my_strdup("$min_audiofile_version");
24501 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24502 printf("%s, bad version string\n", "$min_audiofile_version");
24503 exit(1);
24504 }
24505
24506 if (($audiofile_major_version > major) ||
24507 (($audiofile_major_version == major) && ($audiofile_minor_version > minor)) ||
24508 (($audiofile_major_version == major) && ($audiofile_minor_version == minor) && ($audiofile_micro_version >= micro)))
24509 {
24510 return 0;
24511 }
24512 else
24513 {
24514 printf("\n*** 'audiofile-config --version' returned %d.%d.%d, but the minimum version\n", $audiofile_major_version, $audiofile_minor_version, $audiofile_micro_version);
24515 printf("*** of the Audio File Library required is %d.%d.%d. If audiofile-config is correct, then it is\n", major, minor, micro);
24516 printf("*** best to upgrade to the required version.\n");
24517 printf("*** If audiofile-config was wrong, set the environment variable AUDIOFILE_CONFIG\n");
24518 printf("*** to point to the correct copy of audiofile-config, and remove the file\n");
24519 printf("*** config.cache before re-running configure\n");
24520 return 1;
24521 }
24522 }
24523
24524
24525 _ACEOF
24526 rm -f conftest$ac_exeext
24527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24528 (eval $ac_link) 2>&5
24529 ac_status=$?
24530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24533 (eval $ac_try) 2>&5
24534 ac_status=$?
24535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24536 (exit $ac_status); }; }; then
24537 :
24538 else
24539 echo "$as_me: program exited with status $ac_status" >&5
24540 echo "$as_me: failed program was:" >&5
24541 sed 's/^/| /' conftest.$ac_ext >&5
24542
24543 ( exit $ac_status )
24544 no_audiofile=yes
24545 fi
24546 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24547 fi
24548 CFLAGS="$ac_save_CFLAGS"
24549 LIBS="$ac_save_LIBS"
24550 ac_ext=c
24551 ac_cpp='$CPP $CPPFLAGS'
24552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24555
24556 fi
24557 fi
24558 if test "x$no_audiofile" = x ; then
24559 echo "$as_me:$LINENO: result: yes" >&5
24560 echo "${ECHO_T}yes" >&6
24561 have_audiofile=true
24562 else
24563 echo "$as_me:$LINENO: result: no" >&5
24564 echo "${ECHO_T}no" >&6
24565 if test "$AUDIOFILE_CONFIG" = "no" ; then
24566 cat <<END
24567 *** The audiofile-config script installed by the Audio File Library could
24568 *** not be found. If the Audio File Library was installed in PREFIX, make
24569 *** sure PREFIX/bin is in your path, or set the AUDIOFILE_CONFIG
24570 *** environment variable to the full path to audiofile-config.
24571 END
24572 else
24573 if test -f conf.audiofiletest ; then
24574 :
24575 else
24576 echo "*** Could not run Audio File Library test program; checking why..."
24577
24578
24579 ac_ext=c
24580 ac_cpp='$CPP $CPPFLAGS'
24581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24584
24585 CFLAGS="$CFLAGS $AUDIOFILE_CFLAGS"
24586 LIBS="$LIBS $AUDIOFILE_LIBS"
24587 cat >conftest.$ac_ext <<_ACEOF
24588 /* confdefs.h. */
24589 _ACEOF
24590 cat confdefs.h >>conftest.$ac_ext
24591 cat >>conftest.$ac_ext <<_ACEOF
24592 /* end confdefs.h. */
24593
24594 #include <stdio.h>
24595 #include <audiofile.h>
24596
24597 int
24598 main ()
24599 {
24600 return 0;
24601 ;
24602 return 0;
24603 }
24604 _ACEOF
24605 rm -f conftest.$ac_objext conftest$ac_exeext
24606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24607 (eval $ac_link) 2>conftest.er1
24608 ac_status=$?
24609 grep -v '^ *+' conftest.er1 >conftest.err
24610 rm -f conftest.er1
24611 cat conftest.err >&5
24612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24613 (exit $ac_status); } &&
24614 { ac_try='test -z "$ac_c_werror_flag"
24615 || test ! -s conftest.err'
24616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24617 (eval $ac_try) 2>&5
24618 ac_status=$?
24619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620 (exit $ac_status); }; } &&
24621 { ac_try='test -s conftest$ac_exeext'
24622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24623 (eval $ac_try) 2>&5
24624 ac_status=$?
24625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626 (exit $ac_status); }; }; then
24627 cat <<END
24628 *** The test program compiled, but did not run. This usually means that
24629 *** the run-time linker is not finding Audio File Library or finding the
24630 *** wrong version of Audio File Library.
24631 ***
24632 *** If it is not finding Audio File Library, you'll need to set your
24633 *** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
24634 *** to the installed location. Also, make sure you have run ldconfig if
24635 *** that is required on your system.
24636 ***
24637 *** If you have an old version installed, it is best to remove it, although
24638 *** you may also be able to get things to work by modifying
24639 *** LD_LIBRARY_PATH.
24640 END
24641
24642 else
24643 echo "$as_me: failed program was:" >&5
24644 sed 's/^/| /' conftest.$ac_ext >&5
24645
24646 echo "*** The test program failed to compile or link. See the file config.log"
24647 echo "*** for the exact error that occured. This usually means the Audio File"
24648 echo "*** Library was incorrectly installed or that you have moved the Audio"
24649 echo "*** File Library since it was installed. In the latter case, you may want"
24650 echo "*** to edit the audiofile-config script: $AUDIOFILE_CONFIG"
24651 fi
24652 rm -f conftest.err conftest.$ac_objext \
24653 conftest$ac_exeext conftest.$ac_ext
24654 CFLAGS="$ac_save_CFLAGS"
24655 LIBS="$ac_save_LIBS"
24656 ac_ext=c
24657 ac_cpp='$CPP $CPPFLAGS'
24658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24661
24662 fi
24663 fi
24664 AUDIOFILE_CFLAGS=""
24665 AUDIOFILE_LIBS=""
24666 :
24667 fi
24668
24669
24670 rm -f conf.audiofiletest
24671
24672
24673
24674
24675 # Check whether --with-audiofile or --without-audiofile was given.
24676 if test "${with_audiofile+set}" = set; then
24677 withval="$with_audiofile"
24678 case "$withval" in
24679 no) with_audiofile=false ;;
24680 *) with_audiofile=true ;;
24681 esac
24682 fi;
24683
24684 use_audiofile=false
24685 if test x$with_audiofile != xfalse; then
24686 if test x$have_audiofile = xtrue; then
24687 cat >>confdefs.h <<\_ACEOF
24688 #define USE_AUDIOFILE 1
24689 _ACEOF
24690
24691 use_audiofile=true
24692 elif test x$with_audiofile = xtrue; then
24693 { { echo "$as_me:$LINENO: error: --with-audiofile specified, but audiofile library not found" >&5
24694 echo "$as_me: error: --with-audiofile specified, but audiofile library not found" >&2;}
24695 { (exit 1); exit 1; }; }
24696 fi
24697 fi
24698 test x$use_audiofile = xfalse && AUDIOFILE_LIBS=
24699 test x$use_audiofile = xfalse && AUDIOFILE_CFLAGS=
24700
24701
24702 if test x$use_audiofile = xtrue; then
24703 AUDIOFILE_TRUE=
24704 AUDIOFILE_FALSE='#'
24705 else
24706 AUDIOFILE_TRUE='#'
24707 AUDIOFILE_FALSE=
24708 fi
24709
24710
24711
24712
24713
24714
24715 # Check whether --with-mad-prefix or --without-mad-prefix was given.
24716 if test "${with_mad_prefix+set}" = set; then
24717 withval="$with_mad_prefix"
24718 CPPFLAGS="$CPPFLAGS -I$withval/include"
24719 LDFLAGS="$LDFLAGS -L$withval/lib"
24720 with_mad=true
24721 fi;
24722
24723 # Check whether --with-mad or --without-mad was given.
24724 if test "${with_mad+set}" = set; then
24725 withval="$with_mad"
24726 case "$withval" in
24727 no) with_mad=false ;;
24728 *) with_mad=true ;;
24729 esac
24730 fi;
24731 echo "$as_me:$LINENO: checking for mad_decoder_init in -lmad" >&5
24732 echo $ECHO_N "checking for mad_decoder_init in -lmad... $ECHO_C" >&6
24733 if test "${ac_cv_lib_mad_mad_decoder_init+set}" = set; then
24734 echo $ECHO_N "(cached) $ECHO_C" >&6
24735 else
24736 ac_check_lib_save_LIBS=$LIBS
24737 LIBS="-lmad $LIBS"
24738 cat >conftest.$ac_ext <<_ACEOF
24739 /* confdefs.h. */
24740 _ACEOF
24741 cat confdefs.h >>conftest.$ac_ext
24742 cat >>conftest.$ac_ext <<_ACEOF
24743 /* end confdefs.h. */
24744
24745 /* Override any gcc2 internal prototype to avoid an error. */
24746 #ifdef __cplusplus
24747 extern "C"
24748 #endif
24749 /* We use char because int might match the return type of a gcc2
24750 builtin and then its argument prototype would still apply. */
24751 char mad_decoder_init ();
24752 int
24753 main ()
24754 {
24755 mad_decoder_init ();
24756 ;
24757 return 0;
24758 }
24759 _ACEOF
24760 rm -f conftest.$ac_objext conftest$ac_exeext
24761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24762 (eval $ac_link) 2>conftest.er1
24763 ac_status=$?
24764 grep -v '^ *+' conftest.er1 >conftest.err
24765 rm -f conftest.er1
24766 cat conftest.err >&5
24767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24768 (exit $ac_status); } &&
24769 { ac_try='test -z "$ac_c_werror_flag"
24770 || test ! -s conftest.err'
24771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24772 (eval $ac_try) 2>&5
24773 ac_status=$?
24774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24775 (exit $ac_status); }; } &&
24776 { ac_try='test -s conftest$ac_exeext'
24777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24778 (eval $ac_try) 2>&5
24779 ac_status=$?
24780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24781 (exit $ac_status); }; }; then
24782 ac_cv_lib_mad_mad_decoder_init=yes
24783 else
24784 echo "$as_me: failed program was:" >&5
24785 sed 's/^/| /' conftest.$ac_ext >&5
24786
24787 ac_cv_lib_mad_mad_decoder_init=no
24788 fi
24789 rm -f conftest.err conftest.$ac_objext \
24790 conftest$ac_exeext conftest.$ac_ext
24791 LIBS=$ac_check_lib_save_LIBS
24792 fi
24793 echo "$as_me:$LINENO: result: $ac_cv_lib_mad_mad_decoder_init" >&5
24794 echo "${ECHO_T}$ac_cv_lib_mad_mad_decoder_init" >&6
24795 if test $ac_cv_lib_mad_mad_decoder_init = yes; then
24796 have_mad=true
24797 fi
24798
24799
24800 use_mad=false
24801 if test x$with_mad != xfalse; then
24802 if test x$have_mad = xtrue; then
24803 cat >>confdefs.h <<\_ACEOF
24804 #define USE_MAD 1
24805 _ACEOF
24806
24807 use_mad=true
24808 MADLIBS="-lmad"
24809 elif test x$with_mad = xtrue; then
24810 { { echo "$as_me:$LINENO: error: --with-mad specified, but mad library not found" >&5
24811 echo "$as_me: error: --with-mad specified, but mad library not found" >&2;}
24812 { (exit 1); exit 1; }; }
24813 fi
24814 fi
24815
24816
24817
24818 if test x$use_mad = xtrue; then
24819 MAD_TRUE=
24820 MAD_FALSE='#'
24821 else
24822 MAD_TRUE='#'
24823 MAD_FALSE=
24824 fi
24825
24826
24827 # Check whether --enable-longer-name or --disable-longer-name was given.
24828 if test "${enable_longer_name+set}" = set; then
24829 enableval="$enable_longer_name"
24830 case "$enableval" in
24831 yes) NORMALIZE_BIN=normalize-audio ;;
24832 no) NORMALIZE_BIN=normalize ;;
24833 *) { { echo "$as_me:$LINENO: error: bad value $withval for --enable-longer-name" >&5
24834 echo "$as_me: error: bad value $withval for --enable-longer-name" >&2;}
24835 { (exit 1); exit 1; }; } ;;
24836 esac
24837 else
24838 NORMALIZE_BIN=normalize
24839 fi;
24840
24841
24842
24843
24844 MKINSTALLDIRS=
24845 if test -n "$ac_aux_dir"; then
24846 case "$ac_aux_dir" in
24847 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
24848 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
24849 esac
24850 fi
24851 if test -z "$MKINSTALLDIRS"; then
24852 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
24853 fi
24854
24855
24856
24857 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
24858 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
24859 # Check whether --enable-nls or --disable-nls was given.
24860 if test "${enable_nls+set}" = set; then
24861 enableval="$enable_nls"
24862 USE_NLS=$enableval
24863 else
24864 USE_NLS=yes
24865 fi;
24866 echo "$as_me:$LINENO: result: $USE_NLS" >&5
24867 echo "${ECHO_T}$USE_NLS" >&6
24868
24869
24870
24871
24872
24873
24874 # Prepare PATH_SEPARATOR.
24875 # The user is always right.
24876 if test "${PATH_SEPARATOR+set}" != set; then
24877 echo "#! /bin/sh" >conf$$.sh
24878 echo "exit 0" >>conf$$.sh
24879 chmod +x conf$$.sh
24880 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24881 PATH_SEPARATOR=';'
24882 else
24883 PATH_SEPARATOR=:
24884 fi
24885 rm -f conf$$.sh
24886 fi
24887
24888 # Find out how to test for executable files. Don't use a zero-byte file,
24889 # as systems may use methods other than mode bits to determine executability.
24890 cat >conf$$.file <<_ASEOF
24891 #! /bin/sh
24892 exit 0
24893 _ASEOF
24894 chmod +x conf$$.file
24895 if test -x conf$$.file >/dev/null 2>&1; then
24896 ac_executable_p="test -x"
24897 else
24898 ac_executable_p="test -f"
24899 fi
24900 rm -f conf$$.file
24901
24902 # Extract the first word of "msgfmt", so it can be a program name with args.
24903 set dummy msgfmt; ac_word=$2
24904 echo "$as_me:$LINENO: checking for $ac_word" >&5
24905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24906 if test "${ac_cv_path_MSGFMT+set}" = set; then
24907 echo $ECHO_N "(cached) $ECHO_C" >&6
24908 else
24909 case "$MSGFMT" in
24910 [\\/]* | ?:[\\/]*)
24911 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
24912 ;;
24913 *)
24914 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
24915 for ac_dir in $PATH; do
24916 IFS="$ac_save_IFS"
24917 test -z "$ac_dir" && ac_dir=.
24918 for ac_exec_ext in '' $ac_executable_extensions; do
24919 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
24920 echo "$as_me: trying $ac_dir/$ac_word..." >&5
24921 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
24922 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
24923 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
24924 break 2
24925 fi
24926 fi
24927 done
24928 done
24929 IFS="$ac_save_IFS"
24930 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
24931 ;;
24932 esac
24933 fi
24934 MSGFMT="$ac_cv_path_MSGFMT"
24935 if test "$MSGFMT" != ":"; then
24936 echo "$as_me:$LINENO: result: $MSGFMT" >&5
24937 echo "${ECHO_T}$MSGFMT" >&6
24938 else
24939 echo "$as_me:$LINENO: result: no" >&5
24940 echo "${ECHO_T}no" >&6
24941 fi
24942
24943 # Extract the first word of "gmsgfmt", so it can be a program name with args.
24944 set dummy gmsgfmt; ac_word=$2
24945 echo "$as_me:$LINENO: checking for $ac_word" >&5
24946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24947 if test "${ac_cv_path_GMSGFMT+set}" = set; then
24948 echo $ECHO_N "(cached) $ECHO_C" >&6
24949 else
24950 case $GMSGFMT in
24951 [\\/]* | ?:[\\/]*)
24952 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
24953 ;;
24954 *)
24955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24956 for as_dir in $PATH
24957 do
24958 IFS=$as_save_IFS
24959 test -z "$as_dir" && as_dir=.
24960 for ac_exec_ext in '' $ac_executable_extensions; do
24961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24962 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
24963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24964 break 2
24965 fi
24966 done
24967 done
24968
24969 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
24970 ;;
24971 esac
24972 fi
24973 GMSGFMT=$ac_cv_path_GMSGFMT
24974
24975 if test -n "$GMSGFMT"; then
24976 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
24977 echo "${ECHO_T}$GMSGFMT" >&6
24978 else
24979 echo "$as_me:$LINENO: result: no" >&5
24980 echo "${ECHO_T}no" >&6
24981 fi
24982
24983
24984
24985 # Prepare PATH_SEPARATOR.
24986 # The user is always right.
24987 if test "${PATH_SEPARATOR+set}" != set; then
24988 echo "#! /bin/sh" >conf$$.sh
24989 echo "exit 0" >>conf$$.sh
24990 chmod +x conf$$.sh
24991 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24992 PATH_SEPARATOR=';'
24993 else
24994 PATH_SEPARATOR=:
24995 fi
24996 rm -f conf$$.sh
24997 fi
24998
24999 # Find out how to test for executable files. Don't use a zero-byte file,
25000 # as systems may use methods other than mode bits to determine executability.
25001 cat >conf$$.file <<_ASEOF
25002 #! /bin/sh
25003 exit 0
25004 _ASEOF
25005 chmod +x conf$$.file
25006 if test -x conf$$.file >/dev/null 2>&1; then
25007 ac_executable_p="test -x"
25008 else
25009 ac_executable_p="test -f"
25010 fi
25011 rm -f conf$$.file
25012
25013 # Extract the first word of "xgettext", so it can be a program name with args.
25014 set dummy xgettext; ac_word=$2
25015 echo "$as_me:$LINENO: checking for $ac_word" >&5
25016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25017 if test "${ac_cv_path_XGETTEXT+set}" = set; then
25018 echo $ECHO_N "(cached) $ECHO_C" >&6
25019 else
25020 case "$XGETTEXT" in
25021 [\\/]* | ?:[\\/]*)
25022 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
25023 ;;
25024 *)
25025 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
25026 for ac_dir in $PATH; do
25027 IFS="$ac_save_IFS"
25028 test -z "$ac_dir" && ac_dir=.
25029 for ac_exec_ext in '' $ac_executable_extensions; do
25030 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
25031 echo "$as_me: trying $ac_dir/$ac_word..." >&5
25032 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
25033 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
25034 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
25035 break 2
25036 fi
25037 fi
25038 done
25039 done
25040 IFS="$ac_save_IFS"
25041 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
25042 ;;
25043 esac
25044 fi
25045 XGETTEXT="$ac_cv_path_XGETTEXT"
25046 if test "$XGETTEXT" != ":"; then
25047 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
25048 echo "${ECHO_T}$XGETTEXT" >&6
25049 else
25050 echo "$as_me:$LINENO: result: no" >&5
25051 echo "${ECHO_T}no" >&6
25052 fi
25053
25054 rm -f messages.po
25055
25056
25057 # Prepare PATH_SEPARATOR.
25058 # The user is always right.
25059 if test "${PATH_SEPARATOR+set}" != set; then
25060 echo "#! /bin/sh" >conf$$.sh
25061 echo "exit 0" >>conf$$.sh
25062 chmod +x conf$$.sh
25063 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25064 PATH_SEPARATOR=';'
25065 else
25066 PATH_SEPARATOR=:
25067 fi
25068 rm -f conf$$.sh
25069 fi
25070
25071 # Find out how to test for executable files. Don't use a zero-byte file,
25072 # as systems may use methods other than mode bits to determine executability.
25073 cat >conf$$.file <<_ASEOF
25074 #! /bin/sh
25075 exit 0
25076 _ASEOF
25077 chmod +x conf$$.file
25078 if test -x conf$$.file >/dev/null 2>&1; then
25079 ac_executable_p="test -x"
25080 else
25081 ac_executable_p="test -f"
25082 fi
25083 rm -f conf$$.file
25084
25085 # Extract the first word of "msgmerge", so it can be a program name with args.
25086 set dummy msgmerge; ac_word=$2
25087 echo "$as_me:$LINENO: checking for $ac_word" >&5
25088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25089 if test "${ac_cv_path_MSGMERGE+set}" = set; then
25090 echo $ECHO_N "(cached) $ECHO_C" >&6
25091 else
25092 case "$MSGMERGE" in
25093 [\\/]* | ?:[\\/]*)
25094 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
25095 ;;
25096 *)
25097 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
25098 for ac_dir in $PATH; do
25099 IFS="$ac_save_IFS"
25100 test -z "$ac_dir" && ac_dir=.
25101 for ac_exec_ext in '' $ac_executable_extensions; do
25102 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
25103 echo "$as_me: trying $ac_dir/$ac_word..." >&5
25104 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
25105 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
25106 break 2
25107 fi
25108 fi
25109 done
25110 done
25111 IFS="$ac_save_IFS"
25112 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
25113 ;;
25114 esac
25115 fi
25116 MSGMERGE="$ac_cv_path_MSGMERGE"
25117 if test "$MSGMERGE" != ":"; then
25118 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
25119 echo "${ECHO_T}$MSGMERGE" >&6
25120 else
25121 echo "$as_me:$LINENO: result: no" >&5
25122 echo "${ECHO_T}no" >&6
25123 fi
25124
25125
25126 if test "$GMSGFMT" != ":"; then
25127 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
25128 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
25129 : ;
25130 else
25131 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
25132 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
25133 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
25134 GMSGFMT=":"
25135 fi
25136 fi
25137
25138 if test "$XGETTEXT" != ":"; then
25139 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
25140 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
25141 : ;
25142 else
25143 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
25144 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
25145 XGETTEXT=":"
25146 fi
25147 rm -f messages.po
25148 fi
25149
25150 ac_config_commands="$ac_config_commands default-1"
25151
25152
25153
25154 if test "X$prefix" = "XNONE"; then
25155 acl_final_prefix="$ac_default_prefix"
25156 else
25157 acl_final_prefix="$prefix"
25158 fi
25159 if test "X$exec_prefix" = "XNONE"; then
25160 acl_final_exec_prefix='${prefix}'
25161 else
25162 acl_final_exec_prefix="$exec_prefix"
25163 fi
25164 acl_save_prefix="$prefix"
25165 prefix="$acl_final_prefix"
25166 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
25167 prefix="$acl_save_prefix"
25168
25169
25170 # Check whether --with-gnu-ld or --without-gnu-ld was given.
25171 if test "${with_gnu_ld+set}" = set; then
25172 withval="$with_gnu_ld"
25173 test "$withval" = no || with_gnu_ld=yes
25174 else
25175 with_gnu_ld=no
25176 fi;
25177 # Prepare PATH_SEPARATOR.
25178 # The user is always right.
25179 if test "${PATH_SEPARATOR+set}" != set; then
25180 echo "#! /bin/sh" >conf$$.sh
25181 echo "exit 0" >>conf$$.sh
25182 chmod +x conf$$.sh
25183 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25184 PATH_SEPARATOR=';'
25185 else
25186 PATH_SEPARATOR=:
25187 fi
25188 rm -f conf$$.sh
25189 fi
25190 ac_prog=ld
25191 if test "$GCC" = yes; then
25192 # Check if gcc -print-prog-name=ld gives a path.
25193 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
25194 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
25195 case $host in
25196 *-*-mingw*)
25197 # gcc leaves a trailing carriage return which upsets mingw
25198 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
25199 *)
25200 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
25201 esac
25202 case $ac_prog in
25203 # Accept absolute paths.
25204 [\\/]* | [A-Za-z]:[\\/]*)
25205 re_direlt='/[^/][^/]*/\.\./'
25206 # Canonicalize the path of ld
25207 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
25208 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
25209 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
25210 done
25211 test -z "$LD" && LD="$ac_prog"
25212 ;;
25213 "")
25214 # If it fails, then pretend we aren't using GCC.
25215 ac_prog=ld
25216 ;;
25217 *)
25218 # If it is relative, then search for the first ld in PATH.
25219 with_gnu_ld=unknown
25220 ;;
25221 esac
25222 elif test "$with_gnu_ld" = yes; then
25223 echo "$as_me:$LINENO: checking for GNU ld" >&5
25224 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
25225 else
25226 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
25227 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
25228 fi
25229 if test "${acl_cv_path_LD+set}" = set; then
25230 echo $ECHO_N "(cached) $ECHO_C" >&6
25231 else
25232 if test -z "$LD"; then
25233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
25234 for ac_dir in $PATH; do
25235 test -z "$ac_dir" && ac_dir=.
25236 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
25237 acl_cv_path_LD="$ac_dir/$ac_prog"
25238 # Check to see if the program is GNU ld. I'd rather use --version,
25239 # but apparently some GNU ld's only accept -v.
25240 # Break only if it was the GNU/non-GNU ld that we prefer.
25241 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
25242 *GNU* | *'with BFD'*)
25243 test "$with_gnu_ld" != no && break ;;
25244 *)
25245 test "$with_gnu_ld" != yes && break ;;
25246 esac
25247 fi
25248 done
25249 IFS="$ac_save_ifs"
25250 else
25251 acl_cv_path_LD="$LD" # Let the user override the test with a path.
25252 fi
25253 fi
25254
25255 LD="$acl_cv_path_LD"
25256 if test -n "$LD"; then
25257 echo "$as_me:$LINENO: result: $LD" >&5
25258 echo "${ECHO_T}$LD" >&6
25259 else
25260 echo "$as_me:$LINENO: result: no" >&5
25261 echo "${ECHO_T}no" >&6
25262 fi
25263 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
25264 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
25265 { (exit 1); exit 1; }; }
25266 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
25267 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
25268 if test "${acl_cv_prog_gnu_ld+set}" = set; then
25269 echo $ECHO_N "(cached) $ECHO_C" >&6
25270 else
25271 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
25272 case `$LD -v 2>&1 </dev/null` in
25273 *GNU* | *'with BFD'*)
25274 acl_cv_prog_gnu_ld=yes ;;
25275 *)
25276 acl_cv_prog_gnu_ld=no ;;
25277 esac
25278 fi
25279 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
25280 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
25281 with_gnu_ld=$acl_cv_prog_gnu_ld
25282
25283
25284
25285
25286 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
25287 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
25288 if test "${acl_cv_rpath+set}" = set; then
25289 echo $ECHO_N "(cached) $ECHO_C" >&6
25290 else
25291
25292 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
25293 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
25294 . ./conftest.sh
25295 rm -f ./conftest.sh
25296 acl_cv_rpath=done
25297
25298 fi
25299 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
25300 echo "${ECHO_T}$acl_cv_rpath" >&6
25301 wl="$acl_cv_wl"
25302 libext="$acl_cv_libext"
25303 shlibext="$acl_cv_shlibext"
25304 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
25305 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
25306 hardcode_direct="$acl_cv_hardcode_direct"
25307 hardcode_minus_L="$acl_cv_hardcode_minus_L"
25308 # Check whether --enable-rpath or --disable-rpath was given.
25309 if test "${enable_rpath+set}" = set; then
25310 enableval="$enable_rpath"
25311 :
25312 else
25313 enable_rpath=yes
25314 fi;
25315
25316
25317
25318
25319
25320
25321
25322 use_additional=yes
25323
25324 acl_save_prefix="$prefix"
25325 prefix="$acl_final_prefix"
25326 acl_save_exec_prefix="$exec_prefix"
25327 exec_prefix="$acl_final_exec_prefix"
25328
25329 eval additional_includedir=\"$includedir\"
25330 eval additional_libdir=\"$libdir\"
25331
25332 exec_prefix="$acl_save_exec_prefix"
25333 prefix="$acl_save_prefix"
25334
25335
25336 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
25337 if test "${with_libiconv_prefix+set}" = set; then
25338 withval="$with_libiconv_prefix"
25339
25340 if test "X$withval" = "Xno"; then
25341 use_additional=no
25342 else
25343 if test "X$withval" = "X"; then
25344
25345 acl_save_prefix="$prefix"
25346 prefix="$acl_final_prefix"
25347 acl_save_exec_prefix="$exec_prefix"
25348 exec_prefix="$acl_final_exec_prefix"
25349
25350 eval additional_includedir=\"$includedir\"
25351 eval additional_libdir=\"$libdir\"
25352
25353 exec_prefix="$acl_save_exec_prefix"
25354 prefix="$acl_save_prefix"
25355
25356 else
25357 additional_includedir="$withval/include"
25358 additional_libdir="$withval/lib"
25359 fi
25360 fi
25361
25362 fi;
25363 LIBICONV=
25364 LTLIBICONV=
25365 INCICONV=
25366 rpathdirs=
25367 ltrpathdirs=
25368 names_already_handled=
25369 names_next_round='iconv '
25370 while test -n "$names_next_round"; do
25371 names_this_round="$names_next_round"
25372 names_next_round=
25373 for name in $names_this_round; do
25374 already_handled=
25375 for n in $names_already_handled; do
25376 if test "$n" = "$name"; then
25377 already_handled=yes
25378 break
25379 fi
25380 done
25381 if test -z "$already_handled"; then
25382 names_already_handled="$names_already_handled $name"
25383 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
25384 eval value=\"\$HAVE_LIB$uppername\"
25385 if test -n "$value"; then
25386 if test "$value" = yes; then
25387 eval value=\"\$LIB$uppername\"
25388 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
25389 eval value=\"\$LTLIB$uppername\"
25390 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
25391 else
25392 :
25393 fi
25394 else
25395 found_dir=
25396 found_la=
25397 found_so=
25398 found_a=
25399 if test $use_additional = yes; then
25400 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
25401 found_dir="$additional_libdir"
25402 found_so="$additional_libdir/lib$name.$shlibext"
25403 if test -f "$additional_libdir/lib$name.la"; then
25404 found_la="$additional_libdir/lib$name.la"
25405 fi
25406 else
25407 if test -f "$additional_libdir/lib$name.$libext"; then
25408 found_dir="$additional_libdir"
25409 found_a="$additional_libdir/lib$name.$libext"
25410 if test -f "$additional_libdir/lib$name.la"; then
25411 found_la="$additional_libdir/lib$name.la"
25412 fi
25413 fi
25414 fi
25415 fi
25416 if test "X$found_dir" = "X"; then
25417 for x in $LDFLAGS $LTLIBICONV; do
25418
25419 acl_save_prefix="$prefix"
25420 prefix="$acl_final_prefix"
25421 acl_save_exec_prefix="$exec_prefix"
25422 exec_prefix="$acl_final_exec_prefix"
25423 eval x=\"$x\"
25424 exec_prefix="$acl_save_exec_prefix"
25425 prefix="$acl_save_prefix"
25426
25427 case "$x" in
25428 -L*)
25429 dir=`echo "X$x" | sed -e 's/^X-L//'`
25430 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
25431 found_dir="$dir"
25432 found_so="$dir/lib$name.$shlibext"
25433 if test -f "$dir/lib$name.la"; then
25434 found_la="$dir/lib$name.la"
25435 fi
25436 else
25437 if test -f "$dir/lib$name.$libext"; then
25438 found_dir="$dir"
25439 found_a="$dir/lib$name.$libext"
25440 if test -f "$dir/lib$name.la"; then
25441 found_la="$dir/lib$name.la"
25442 fi
25443 fi
25444 fi
25445 ;;
25446 esac
25447 if test "X$found_dir" != "X"; then
25448 break
25449 fi
25450 done
25451 fi
25452 if test "X$found_dir" != "X"; then
25453 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
25454 if test "X$found_so" != "X"; then
25455 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
25456 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25457 else
25458 haveit=
25459 for x in $ltrpathdirs; do
25460 if test "X$x" = "X$found_dir"; then
25461 haveit=yes
25462 break
25463 fi
25464 done
25465 if test -z "$haveit"; then
25466 ltrpathdirs="$ltrpathdirs $found_dir"
25467 fi
25468 if test "$hardcode_direct" = yes; then
25469 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25470 else
25471 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
25472 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25473 haveit=
25474 for x in $rpathdirs; do
25475 if test "X$x" = "X$found_dir"; then
25476 haveit=yes
25477 break
25478 fi
25479 done
25480 if test -z "$haveit"; then
25481 rpathdirs="$rpathdirs $found_dir"
25482 fi
25483 else
25484 haveit=
25485 for x in $LDFLAGS $LIBICONV; do
25486
25487 acl_save_prefix="$prefix"
25488 prefix="$acl_final_prefix"
25489 acl_save_exec_prefix="$exec_prefix"
25490 exec_prefix="$acl_final_exec_prefix"
25491 eval x=\"$x\"
25492 exec_prefix="$acl_save_exec_prefix"
25493 prefix="$acl_save_prefix"
25494
25495 if test "X$x" = "X-L$found_dir"; then
25496 haveit=yes
25497 break
25498 fi
25499 done
25500 if test -z "$haveit"; then
25501 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
25502 fi
25503 if test "$hardcode_minus_L" != no; then
25504 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25505 else
25506 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
25507 fi
25508 fi
25509 fi
25510 fi
25511 else
25512 if test "X$found_a" != "X"; then
25513 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
25514 else
25515 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
25516 fi
25517 fi
25518 additional_includedir=
25519 case "$found_dir" in
25520 */lib | */lib/)
25521 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
25522 additional_includedir="$basedir/include"
25523 ;;
25524 esac
25525 if test "X$additional_includedir" != "X"; then
25526 if test "X$additional_includedir" != "X/usr/include"; then
25527 haveit=
25528 if test "X$additional_includedir" = "X/usr/local/include"; then
25529 if test -n "$GCC"; then
25530 case $host_os in
25531 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25532 esac
25533 fi
25534 fi
25535 if test -z "$haveit"; then
25536 for x in $CPPFLAGS $INCICONV; do
25537
25538 acl_save_prefix="$prefix"
25539 prefix="$acl_final_prefix"
25540 acl_save_exec_prefix="$exec_prefix"
25541 exec_prefix="$acl_final_exec_prefix"
25542 eval x=\"$x\"
25543 exec_prefix="$acl_save_exec_prefix"
25544 prefix="$acl_save_prefix"
25545
25546 if test "X$x" = "X-I$additional_includedir"; then
25547 haveit=yes
25548 break
25549 fi
25550 done
25551 if test -z "$haveit"; then
25552 if test -d "$additional_includedir"; then
25553 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
25554 fi
25555 fi
25556 fi
25557 fi
25558 fi
25559 if test -n "$found_la"; then
25560 save_libdir="$libdir"
25561 case "$found_la" in
25562 */* | *\\*) . "$found_la" ;;
25563 *) . "./$found_la" ;;
25564 esac
25565 libdir="$save_libdir"
25566 for dep in $dependency_libs; do
25567 case "$dep" in
25568 -L*)
25569 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
25570 if test "X$additional_libdir" != "X/usr/lib"; then
25571 haveit=
25572 if test "X$additional_libdir" = "X/usr/local/lib"; then
25573 if test -n "$GCC"; then
25574 case $host_os in
25575 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25576 esac
25577 fi
25578 fi
25579 if test -z "$haveit"; then
25580 haveit=
25581 for x in $LDFLAGS $LIBICONV; do
25582
25583 acl_save_prefix="$prefix"
25584 prefix="$acl_final_prefix"
25585 acl_save_exec_prefix="$exec_prefix"
25586 exec_prefix="$acl_final_exec_prefix"
25587 eval x=\"$x\"
25588 exec_prefix="$acl_save_exec_prefix"
25589 prefix="$acl_save_prefix"
25590
25591 if test "X$x" = "X-L$additional_libdir"; then
25592 haveit=yes
25593 break
25594 fi
25595 done
25596 if test -z "$haveit"; then
25597 if test -d "$additional_libdir"; then
25598 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
25599 fi
25600 fi
25601 haveit=
25602 for x in $LDFLAGS $LTLIBICONV; do
25603
25604 acl_save_prefix="$prefix"
25605 prefix="$acl_final_prefix"
25606 acl_save_exec_prefix="$exec_prefix"
25607 exec_prefix="$acl_final_exec_prefix"
25608 eval x=\"$x\"
25609 exec_prefix="$acl_save_exec_prefix"
25610 prefix="$acl_save_prefix"
25611
25612 if test "X$x" = "X-L$additional_libdir"; then
25613 haveit=yes
25614 break
25615 fi
25616 done
25617 if test -z "$haveit"; then
25618 if test -d "$additional_libdir"; then
25619 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
25620 fi
25621 fi
25622 fi
25623 fi
25624 ;;
25625 -R*)
25626 dir=`echo "X$dep" | sed -e 's/^X-R//'`
25627 if test "$enable_rpath" != no; then
25628 haveit=
25629 for x in $rpathdirs; do
25630 if test "X$x" = "X$dir"; then
25631 haveit=yes
25632 break
25633 fi
25634 done
25635 if test -z "$haveit"; then
25636 rpathdirs="$rpathdirs $dir"
25637 fi
25638 haveit=
25639 for x in $ltrpathdirs; do
25640 if test "X$x" = "X$dir"; then
25641 haveit=yes
25642 break
25643 fi
25644 done
25645 if test -z "$haveit"; then
25646 ltrpathdirs="$ltrpathdirs $dir"
25647 fi
25648 fi
25649 ;;
25650 -l*)
25651 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
25652 ;;
25653 *.la)
25654 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
25655 ;;
25656 *)
25657 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
25658 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
25659 ;;
25660 esac
25661 done
25662 fi
25663 else
25664 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
25665 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
25666 fi
25667 fi
25668 fi
25669 done
25670 done
25671 if test "X$rpathdirs" != "X"; then
25672 if test -n "$hardcode_libdir_separator"; then
25673 alldirs=
25674 for found_dir in $rpathdirs; do
25675 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
25676 done
25677 acl_save_libdir="$libdir"
25678 libdir="$alldirs"
25679 eval flag=\"$hardcode_libdir_flag_spec\"
25680 libdir="$acl_save_libdir"
25681 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
25682 else
25683 for found_dir in $rpathdirs; do
25684 acl_save_libdir="$libdir"
25685 libdir="$found_dir"
25686 eval flag=\"$hardcode_libdir_flag_spec\"
25687 libdir="$acl_save_libdir"
25688 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
25689 done
25690 fi
25691 fi
25692 if test "X$ltrpathdirs" != "X"; then
25693 for found_dir in $ltrpathdirs; do
25694 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
25695 done
25696 fi
25697
25698
25699
25700
25701
25702
25703
25704
25705
25706
25707
25708
25709
25710
25711
25712
25713
25714
25715 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
25716 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
25717 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
25718 echo $ECHO_N "(cached) $ECHO_C" >&6
25719 else
25720 gt_save_CPPFLAGS="$CPPFLAGS"
25721 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
25722 gt_save_LIBS="$LIBS"
25723 LIBS="$LIBS -framework CoreFoundation"
25724 cat >conftest.$ac_ext <<_ACEOF
25725 /* confdefs.h. */
25726 _ACEOF
25727 cat confdefs.h >>conftest.$ac_ext
25728 cat >>conftest.$ac_ext <<_ACEOF
25729 /* end confdefs.h. */
25730 #include <CFPreferences.h>
25731 int
25732 main ()
25733 {
25734 CFPreferencesCopyAppValue(NULL, NULL)
25735 ;
25736 return 0;
25737 }
25738 _ACEOF
25739 rm -f conftest.$ac_objext conftest$ac_exeext
25740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25741 (eval $ac_link) 2>conftest.er1
25742 ac_status=$?
25743 grep -v '^ *+' conftest.er1 >conftest.err
25744 rm -f conftest.er1
25745 cat conftest.err >&5
25746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25747 (exit $ac_status); } &&
25748 { ac_try='test -z "$ac_c_werror_flag"
25749 || test ! -s conftest.err'
25750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25751 (eval $ac_try) 2>&5
25752 ac_status=$?
25753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25754 (exit $ac_status); }; } &&
25755 { ac_try='test -s conftest$ac_exeext'
25756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25757 (eval $ac_try) 2>&5
25758 ac_status=$?
25759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760 (exit $ac_status); }; }; then
25761 gt_cv_func_CFPreferencesCopyAppValue=yes
25762 else
25763 echo "$as_me: failed program was:" >&5
25764 sed 's/^/| /' conftest.$ac_ext >&5
25765
25766 gt_cv_func_CFPreferencesCopyAppValue=no
25767 fi
25768 rm -f conftest.err conftest.$ac_objext \
25769 conftest$ac_exeext conftest.$ac_ext
25770 CPPFLAGS="$gt_save_CPPFLAGS"
25771 LIBS="$gt_save_LIBS"
25772 fi
25773 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
25774 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
25775 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
25776
25777 cat >>confdefs.h <<\_ACEOF
25778 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
25779 _ACEOF
25780
25781 fi
25782 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
25783 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
25784 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
25785 echo $ECHO_N "(cached) $ECHO_C" >&6
25786 else
25787 gt_save_CPPFLAGS="$CPPFLAGS"
25788 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
25789 gt_save_LIBS="$LIBS"
25790 LIBS="$LIBS -framework CoreFoundation"
25791 cat >conftest.$ac_ext <<_ACEOF
25792 /* confdefs.h. */
25793 _ACEOF
25794 cat confdefs.h >>conftest.$ac_ext
25795 cat >>conftest.$ac_ext <<_ACEOF
25796 /* end confdefs.h. */
25797 #include <CFLocale.h>
25798 int
25799 main ()
25800 {
25801 CFLocaleCopyCurrent();
25802 ;
25803 return 0;
25804 }
25805 _ACEOF
25806 rm -f conftest.$ac_objext conftest$ac_exeext
25807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25808 (eval $ac_link) 2>conftest.er1
25809 ac_status=$?
25810 grep -v '^ *+' conftest.er1 >conftest.err
25811 rm -f conftest.er1
25812 cat conftest.err >&5
25813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25814 (exit $ac_status); } &&
25815 { ac_try='test -z "$ac_c_werror_flag"
25816 || test ! -s conftest.err'
25817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25818 (eval $ac_try) 2>&5
25819 ac_status=$?
25820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821 (exit $ac_status); }; } &&
25822 { ac_try='test -s conftest$ac_exeext'
25823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25824 (eval $ac_try) 2>&5
25825 ac_status=$?
25826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25827 (exit $ac_status); }; }; then
25828 gt_cv_func_CFLocaleCopyCurrent=yes
25829 else
25830 echo "$as_me: failed program was:" >&5
25831 sed 's/^/| /' conftest.$ac_ext >&5
25832
25833 gt_cv_func_CFLocaleCopyCurrent=no
25834 fi
25835 rm -f conftest.err conftest.$ac_objext \
25836 conftest$ac_exeext conftest.$ac_ext
25837 CPPFLAGS="$gt_save_CPPFLAGS"
25838 LIBS="$gt_save_LIBS"
25839 fi
25840 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
25841 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
25842 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
25843
25844 cat >>confdefs.h <<\_ACEOF
25845 #define HAVE_CFLOCALECOPYCURRENT 1
25846 _ACEOF
25847
25848 fi
25849 INTL_MACOSX_LIBS=
25850 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
25851 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
25852 fi
25853
25854
25855
25856
25857 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
25858 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
25859 # Check whether --enable-nls or --disable-nls was given.
25860 if test "${enable_nls+set}" = set; then
25861 enableval="$enable_nls"
25862 USE_NLS=$enableval
25863 else
25864 USE_NLS=yes
25865 fi;
25866 echo "$as_me:$LINENO: result: $USE_NLS" >&5
25867 echo "${ECHO_T}$USE_NLS" >&6
25868
25869
25870
25871
25872 LIBINTL=
25873 LTLIBINTL=
25874 POSUB=
25875
25876 if test "$USE_NLS" = "yes"; then
25877 gt_use_preinstalled_gnugettext=no
25878
25879
25880
25881
25882
25883
25884 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
25885 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
25886 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
25887 echo $ECHO_N "(cached) $ECHO_C" >&6
25888 else
25889 cat >conftest.$ac_ext <<_ACEOF
25890 /* confdefs.h. */
25891 _ACEOF
25892 cat confdefs.h >>conftest.$ac_ext
25893 cat >>conftest.$ac_ext <<_ACEOF
25894 /* end confdefs.h. */
25895 #include <libintl.h>
25896 extern int _nl_msg_cat_cntr;
25897 extern int *_nl_domain_bindings;
25898 int
25899 main ()
25900 {
25901 bindtextdomain ("", "");
25902 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
25903 ;
25904 return 0;
25905 }
25906 _ACEOF
25907 rm -f conftest.$ac_objext conftest$ac_exeext
25908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25909 (eval $ac_link) 2>conftest.er1
25910 ac_status=$?
25911 grep -v '^ *+' conftest.er1 >conftest.err
25912 rm -f conftest.er1
25913 cat conftest.err >&5
25914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915 (exit $ac_status); } &&
25916 { ac_try='test -z "$ac_c_werror_flag"
25917 || test ! -s conftest.err'
25918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25919 (eval $ac_try) 2>&5
25920 ac_status=$?
25921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922 (exit $ac_status); }; } &&
25923 { ac_try='test -s conftest$ac_exeext'
25924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25925 (eval $ac_try) 2>&5
25926 ac_status=$?
25927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928 (exit $ac_status); }; }; then
25929 gt_cv_func_gnugettext1_libc=yes
25930 else
25931 echo "$as_me: failed program was:" >&5
25932 sed 's/^/| /' conftest.$ac_ext >&5
25933
25934 gt_cv_func_gnugettext1_libc=no
25935 fi
25936 rm -f conftest.err conftest.$ac_objext \
25937 conftest$ac_exeext conftest.$ac_ext
25938 fi
25939 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
25940 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
25941
25942 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
25943
25944
25945
25946
25947
25948 am_save_CPPFLAGS="$CPPFLAGS"
25949
25950 for element in $INCICONV; do
25951 haveit=
25952 for x in $CPPFLAGS; do
25953
25954 acl_save_prefix="$prefix"
25955 prefix="$acl_final_prefix"
25956 acl_save_exec_prefix="$exec_prefix"
25957 exec_prefix="$acl_final_exec_prefix"
25958 eval x=\"$x\"
25959 exec_prefix="$acl_save_exec_prefix"
25960 prefix="$acl_save_prefix"
25961
25962 if test "X$x" = "X$element"; then
25963 haveit=yes
25964 break
25965 fi
25966 done
25967 if test -z "$haveit"; then
25968 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
25969 fi
25970 done
25971
25972
25973 echo "$as_me:$LINENO: checking for iconv" >&5
25974 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
25975 if test "${am_cv_func_iconv+set}" = set; then
25976 echo $ECHO_N "(cached) $ECHO_C" >&6
25977 else
25978
25979 am_cv_func_iconv="no, consider installing GNU libiconv"
25980 am_cv_lib_iconv=no
25981 cat >conftest.$ac_ext <<_ACEOF
25982 /* confdefs.h. */
25983 _ACEOF
25984 cat confdefs.h >>conftest.$ac_ext
25985 cat >>conftest.$ac_ext <<_ACEOF
25986 /* end confdefs.h. */
25987 #include <stdlib.h>
25988 #include <iconv.h>
25989 int
25990 main ()
25991 {
25992 iconv_t cd = iconv_open("","");
25993 iconv(cd,NULL,NULL,NULL,NULL);
25994 iconv_close(cd);
25995 ;
25996 return 0;
25997 }
25998 _ACEOF
25999 rm -f conftest.$ac_objext conftest$ac_exeext
26000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26001 (eval $ac_link) 2>conftest.er1
26002 ac_status=$?
26003 grep -v '^ *+' conftest.er1 >conftest.err
26004 rm -f conftest.er1
26005 cat conftest.err >&5
26006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007 (exit $ac_status); } &&
26008 { ac_try='test -z "$ac_c_werror_flag"
26009 || test ! -s conftest.err'
26010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26011 (eval $ac_try) 2>&5
26012 ac_status=$?
26013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26014 (exit $ac_status); }; } &&
26015 { ac_try='test -s conftest$ac_exeext'
26016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26017 (eval $ac_try) 2>&5
26018 ac_status=$?
26019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020 (exit $ac_status); }; }; then
26021 am_cv_func_iconv=yes
26022 else
26023 echo "$as_me: failed program was:" >&5
26024 sed 's/^/| /' conftest.$ac_ext >&5
26025
26026 fi
26027 rm -f conftest.err conftest.$ac_objext \
26028 conftest$ac_exeext conftest.$ac_ext
26029 if test "$am_cv_func_iconv" != yes; then
26030 am_save_LIBS="$LIBS"
26031 LIBS="$LIBS $LIBICONV"
26032 cat >conftest.$ac_ext <<_ACEOF
26033 /* confdefs.h. */
26034 _ACEOF
26035 cat confdefs.h >>conftest.$ac_ext
26036 cat >>conftest.$ac_ext <<_ACEOF
26037 /* end confdefs.h. */
26038 #include <stdlib.h>
26039 #include <iconv.h>
26040 int
26041 main ()
26042 {
26043 iconv_t cd = iconv_open("","");
26044 iconv(cd,NULL,NULL,NULL,NULL);
26045 iconv_close(cd);
26046 ;
26047 return 0;
26048 }
26049 _ACEOF
26050 rm -f conftest.$ac_objext conftest$ac_exeext
26051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26052 (eval $ac_link) 2>conftest.er1
26053 ac_status=$?
26054 grep -v '^ *+' conftest.er1 >conftest.err
26055 rm -f conftest.er1
26056 cat conftest.err >&5
26057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26058 (exit $ac_status); } &&
26059 { ac_try='test -z "$ac_c_werror_flag"
26060 || test ! -s conftest.err'
26061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26062 (eval $ac_try) 2>&5
26063 ac_status=$?
26064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26065 (exit $ac_status); }; } &&
26066 { ac_try='test -s conftest$ac_exeext'
26067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26068 (eval $ac_try) 2>&5
26069 ac_status=$?
26070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26071 (exit $ac_status); }; }; then
26072 am_cv_lib_iconv=yes
26073 am_cv_func_iconv=yes
26074 else
26075 echo "$as_me: failed program was:" >&5
26076 sed 's/^/| /' conftest.$ac_ext >&5
26077
26078 fi
26079 rm -f conftest.err conftest.$ac_objext \
26080 conftest$ac_exeext conftest.$ac_ext
26081 LIBS="$am_save_LIBS"
26082 fi
26083
26084 fi
26085 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
26086 echo "${ECHO_T}$am_cv_func_iconv" >&6
26087 if test "$am_cv_func_iconv" = yes; then
26088
26089 cat >>confdefs.h <<\_ACEOF
26090 #define HAVE_ICONV 1
26091 _ACEOF
26092
26093 fi
26094 if test "$am_cv_lib_iconv" = yes; then
26095 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
26096 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
26097 echo "$as_me:$LINENO: result: $LIBICONV" >&5
26098 echo "${ECHO_T}$LIBICONV" >&6
26099 else
26100 CPPFLAGS="$am_save_CPPFLAGS"
26101 LIBICONV=
26102 LTLIBICONV=
26103 fi
26104
26105
26106
26107
26108
26109
26110 use_additional=yes
26111
26112 acl_save_prefix="$prefix"
26113 prefix="$acl_final_prefix"
26114 acl_save_exec_prefix="$exec_prefix"
26115 exec_prefix="$acl_final_exec_prefix"
26116
26117 eval additional_includedir=\"$includedir\"
26118 eval additional_libdir=\"$libdir\"
26119
26120 exec_prefix="$acl_save_exec_prefix"
26121 prefix="$acl_save_prefix"
26122
26123
26124 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
26125 if test "${with_libintl_prefix+set}" = set; then
26126 withval="$with_libintl_prefix"
26127
26128 if test "X$withval" = "Xno"; then
26129 use_additional=no
26130 else
26131 if test "X$withval" = "X"; then
26132
26133 acl_save_prefix="$prefix"
26134 prefix="$acl_final_prefix"
26135 acl_save_exec_prefix="$exec_prefix"
26136 exec_prefix="$acl_final_exec_prefix"
26137
26138 eval additional_includedir=\"$includedir\"
26139 eval additional_libdir=\"$libdir\"
26140
26141 exec_prefix="$acl_save_exec_prefix"
26142 prefix="$acl_save_prefix"
26143
26144 else
26145 additional_includedir="$withval/include"
26146 additional_libdir="$withval/lib"
26147 fi
26148 fi
26149
26150 fi;
26151 LIBINTL=
26152 LTLIBINTL=
26153 INCINTL=
26154 rpathdirs=
26155 ltrpathdirs=
26156 names_already_handled=
26157 names_next_round='intl '
26158 while test -n "$names_next_round"; do
26159 names_this_round="$names_next_round"
26160 names_next_round=
26161 for name in $names_this_round; do
26162 already_handled=
26163 for n in $names_already_handled; do
26164 if test "$n" = "$name"; then
26165 already_handled=yes
26166 break
26167 fi
26168 done
26169 if test -z "$already_handled"; then
26170 names_already_handled="$names_already_handled $name"
26171 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
26172 eval value=\"\$HAVE_LIB$uppername\"
26173 if test -n "$value"; then
26174 if test "$value" = yes; then
26175 eval value=\"\$LIB$uppername\"
26176 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
26177 eval value=\"\$LTLIB$uppername\"
26178 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
26179 else
26180 :
26181 fi
26182 else
26183 found_dir=
26184 found_la=
26185 found_so=
26186 found_a=
26187 if test $use_additional = yes; then
26188 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
26189 found_dir="$additional_libdir"
26190 found_so="$additional_libdir/lib$name.$shlibext"
26191 if test -f "$additional_libdir/lib$name.la"; then
26192 found_la="$additional_libdir/lib$name.la"
26193 fi
26194 else
26195 if test -f "$additional_libdir/lib$name.$libext"; then
26196 found_dir="$additional_libdir"
26197 found_a="$additional_libdir/lib$name.$libext"
26198 if test -f "$additional_libdir/lib$name.la"; then
26199 found_la="$additional_libdir/lib$name.la"
26200 fi
26201 fi
26202 fi
26203 fi
26204 if test "X$found_dir" = "X"; then
26205 for x in $LDFLAGS $LTLIBINTL; do
26206
26207 acl_save_prefix="$prefix"
26208 prefix="$acl_final_prefix"
26209 acl_save_exec_prefix="$exec_prefix"
26210 exec_prefix="$acl_final_exec_prefix"
26211 eval x=\"$x\"
26212 exec_prefix="$acl_save_exec_prefix"
26213 prefix="$acl_save_prefix"
26214
26215 case "$x" in
26216 -L*)
26217 dir=`echo "X$x" | sed -e 's/^X-L//'`
26218 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
26219 found_dir="$dir"
26220 found_so="$dir/lib$name.$shlibext"
26221 if test -f "$dir/lib$name.la"; then
26222 found_la="$dir/lib$name.la"
26223 fi
26224 else
26225 if test -f "$dir/lib$name.$libext"; then
26226 found_dir="$dir"
26227 found_a="$dir/lib$name.$libext"
26228 if test -f "$dir/lib$name.la"; then
26229 found_la="$dir/lib$name.la"
26230 fi
26231 fi
26232 fi
26233 ;;
26234 esac
26235 if test "X$found_dir" != "X"; then
26236 break
26237 fi
26238 done
26239 fi
26240 if test "X$found_dir" != "X"; then
26241 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
26242 if test "X$found_so" != "X"; then
26243 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
26244 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26245 else
26246 haveit=
26247 for x in $ltrpathdirs; do
26248 if test "X$x" = "X$found_dir"; then
26249 haveit=yes
26250 break
26251 fi
26252 done
26253 if test -z "$haveit"; then
26254 ltrpathdirs="$ltrpathdirs $found_dir"
26255 fi
26256 if test "$hardcode_direct" = yes; then
26257 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26258 else
26259 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
26260 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26261 haveit=
26262 for x in $rpathdirs; do
26263 if test "X$x" = "X$found_dir"; then
26264 haveit=yes
26265 break
26266 fi
26267 done
26268 if test -z "$haveit"; then
26269 rpathdirs="$rpathdirs $found_dir"
26270 fi
26271 else
26272 haveit=
26273 for x in $LDFLAGS $LIBINTL; do
26274
26275 acl_save_prefix="$prefix"
26276 prefix="$acl_final_prefix"
26277 acl_save_exec_prefix="$exec_prefix"
26278 exec_prefix="$acl_final_exec_prefix"
26279 eval x=\"$x\"
26280 exec_prefix="$acl_save_exec_prefix"
26281 prefix="$acl_save_prefix"
26282
26283 if test "X$x" = "X-L$found_dir"; then
26284 haveit=yes
26285 break
26286 fi
26287 done
26288 if test -z "$haveit"; then
26289 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
26290 fi
26291 if test "$hardcode_minus_L" != no; then
26292 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
26293 else
26294 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
26295 fi
26296 fi
26297 fi
26298 fi
26299 else
26300 if test "X$found_a" != "X"; then
26301 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
26302 else
26303 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
26304 fi
26305 fi
26306 additional_includedir=
26307 case "$found_dir" in
26308 */lib | */lib/)
26309 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
26310 additional_includedir="$basedir/include"
26311 ;;
26312 esac
26313 if test "X$additional_includedir" != "X"; then
26314 if test "X$additional_includedir" != "X/usr/include"; then
26315 haveit=
26316 if test "X$additional_includedir" = "X/usr/local/include"; then
26317 if test -n "$GCC"; then
26318 case $host_os in
26319 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26320 esac
26321 fi
26322 fi
26323 if test -z "$haveit"; then
26324 for x in $CPPFLAGS $INCINTL; do
26325
26326 acl_save_prefix="$prefix"
26327 prefix="$acl_final_prefix"
26328 acl_save_exec_prefix="$exec_prefix"
26329 exec_prefix="$acl_final_exec_prefix"
26330 eval x=\"$x\"
26331 exec_prefix="$acl_save_exec_prefix"
26332 prefix="$acl_save_prefix"
26333
26334 if test "X$x" = "X-I$additional_includedir"; then
26335 haveit=yes
26336 break
26337 fi
26338 done
26339 if test -z "$haveit"; then
26340 if test -d "$additional_includedir"; then
26341 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
26342 fi
26343 fi
26344 fi
26345 fi
26346 fi
26347 if test -n "$found_la"; then
26348 save_libdir="$libdir"
26349 case "$found_la" in
26350 */* | *\\*) . "$found_la" ;;
26351 *) . "./$found_la" ;;
26352 esac
26353 libdir="$save_libdir"
26354 for dep in $dependency_libs; do
26355 case "$dep" in
26356 -L*)
26357 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
26358 if test "X$additional_libdir" != "X/usr/lib"; then
26359 haveit=
26360 if test "X$additional_libdir" = "X/usr/local/lib"; then
26361 if test -n "$GCC"; then
26362 case $host_os in
26363 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26364 esac
26365 fi
26366 fi
26367 if test -z "$haveit"; then
26368 haveit=
26369 for x in $LDFLAGS $LIBINTL; do
26370
26371 acl_save_prefix="$prefix"
26372 prefix="$acl_final_prefix"
26373 acl_save_exec_prefix="$exec_prefix"
26374 exec_prefix="$acl_final_exec_prefix"
26375 eval x=\"$x\"
26376 exec_prefix="$acl_save_exec_prefix"
26377 prefix="$acl_save_prefix"
26378
26379 if test "X$x" = "X-L$additional_libdir"; then
26380 haveit=yes
26381 break
26382 fi
26383 done
26384 if test -z "$haveit"; then
26385 if test -d "$additional_libdir"; then
26386 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
26387 fi
26388 fi
26389 haveit=
26390 for x in $LDFLAGS $LTLIBINTL; do
26391
26392 acl_save_prefix="$prefix"
26393 prefix="$acl_final_prefix"
26394 acl_save_exec_prefix="$exec_prefix"
26395 exec_prefix="$acl_final_exec_prefix"
26396 eval x=\"$x\"
26397 exec_prefix="$acl_save_exec_prefix"
26398 prefix="$acl_save_prefix"
26399
26400 if test "X$x" = "X-L$additional_libdir"; then
26401 haveit=yes
26402 break
26403 fi
26404 done
26405 if test -z "$haveit"; then
26406 if test -d "$additional_libdir"; then
26407 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
26408 fi
26409 fi
26410 fi
26411 fi
26412 ;;
26413 -R*)
26414 dir=`echo "X$dep" | sed -e 's/^X-R//'`
26415 if test "$enable_rpath" != no; then
26416 haveit=
26417 for x in $rpathdirs; do
26418 if test "X$x" = "X$dir"; then
26419 haveit=yes
26420 break
26421 fi
26422 done
26423 if test -z "$haveit"; then
26424 rpathdirs="$rpathdirs $dir"
26425 fi
26426 haveit=
26427 for x in $ltrpathdirs; do
26428 if test "X$x" = "X$dir"; then
26429 haveit=yes
26430 break
26431 fi
26432 done
26433 if test -z "$haveit"; then
26434 ltrpathdirs="$ltrpathdirs $dir"
26435 fi
26436 fi
26437 ;;
26438 -l*)
26439 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
26440 ;;
26441 *.la)
26442 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
26443 ;;
26444 *)
26445 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
26446 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
26447 ;;
26448 esac
26449 done
26450 fi
26451 else
26452 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
26453 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
26454 fi
26455 fi
26456 fi
26457 done
26458 done
26459 if test "X$rpathdirs" != "X"; then
26460 if test -n "$hardcode_libdir_separator"; then
26461 alldirs=
26462 for found_dir in $rpathdirs; do
26463 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
26464 done
26465 acl_save_libdir="$libdir"
26466 libdir="$alldirs"
26467 eval flag=\"$hardcode_libdir_flag_spec\"
26468 libdir="$acl_save_libdir"
26469 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
26470 else
26471 for found_dir in $rpathdirs; do
26472 acl_save_libdir="$libdir"
26473 libdir="$found_dir"
26474 eval flag=\"$hardcode_libdir_flag_spec\"
26475 libdir="$acl_save_libdir"
26476 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
26477 done
26478 fi
26479 fi
26480 if test "X$ltrpathdirs" != "X"; then
26481 for found_dir in $ltrpathdirs; do
26482 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
26483 done
26484 fi
26485
26486 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
26487 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
26488 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
26489 echo $ECHO_N "(cached) $ECHO_C" >&6
26490 else
26491 gt_save_CPPFLAGS="$CPPFLAGS"
26492 CPPFLAGS="$CPPFLAGS $INCINTL"
26493 gt_save_LIBS="$LIBS"
26494 LIBS="$LIBS $LIBINTL"
26495 cat >conftest.$ac_ext <<_ACEOF
26496 /* confdefs.h. */
26497 _ACEOF
26498 cat confdefs.h >>conftest.$ac_ext
26499 cat >>conftest.$ac_ext <<_ACEOF
26500 /* end confdefs.h. */
26501 #include <libintl.h>
26502 extern int _nl_msg_cat_cntr;
26503 extern
26504 #ifdef __cplusplus
26505 "C"
26506 #endif
26507 const char *_nl_expand_alias (const char *);
26508 int
26509 main ()
26510 {
26511 bindtextdomain ("", "");
26512 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
26513 ;
26514 return 0;
26515 }
26516 _ACEOF
26517 rm -f conftest.$ac_objext conftest$ac_exeext
26518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26519 (eval $ac_link) 2>conftest.er1
26520 ac_status=$?
26521 grep -v '^ *+' conftest.er1 >conftest.err
26522 rm -f conftest.er1
26523 cat conftest.err >&5
26524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26525 (exit $ac_status); } &&
26526 { ac_try='test -z "$ac_c_werror_flag"
26527 || test ! -s conftest.err'
26528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26529 (eval $ac_try) 2>&5
26530 ac_status=$?
26531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26532 (exit $ac_status); }; } &&
26533 { ac_try='test -s conftest$ac_exeext'
26534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26535 (eval $ac_try) 2>&5
26536 ac_status=$?
26537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26538 (exit $ac_status); }; }; then
26539 gt_cv_func_gnugettext1_libintl=yes
26540 else
26541 echo "$as_me: failed program was:" >&5
26542 sed 's/^/| /' conftest.$ac_ext >&5
26543
26544 gt_cv_func_gnugettext1_libintl=no
26545 fi
26546 rm -f conftest.err conftest.$ac_objext \
26547 conftest$ac_exeext conftest.$ac_ext
26548 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
26549 LIBS="$LIBS $LIBICONV"
26550 cat >conftest.$ac_ext <<_ACEOF
26551 /* confdefs.h. */
26552 _ACEOF
26553 cat confdefs.h >>conftest.$ac_ext
26554 cat >>conftest.$ac_ext <<_ACEOF
26555 /* end confdefs.h. */
26556 #include <libintl.h>
26557 extern int _nl_msg_cat_cntr;
26558 extern
26559 #ifdef __cplusplus
26560 "C"
26561 #endif
26562 const char *_nl_expand_alias (const char *);
26563 int
26564 main ()
26565 {
26566 bindtextdomain ("", "");
26567 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
26568 ;
26569 return 0;
26570 }
26571 _ACEOF
26572 rm -f conftest.$ac_objext conftest$ac_exeext
26573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26574 (eval $ac_link) 2>conftest.er1
26575 ac_status=$?
26576 grep -v '^ *+' conftest.er1 >conftest.err
26577 rm -f conftest.er1
26578 cat conftest.err >&5
26579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26580 (exit $ac_status); } &&
26581 { ac_try='test -z "$ac_c_werror_flag"
26582 || test ! -s conftest.err'
26583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26584 (eval $ac_try) 2>&5
26585 ac_status=$?
26586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26587 (exit $ac_status); }; } &&
26588 { ac_try='test -s conftest$ac_exeext'
26589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26590 (eval $ac_try) 2>&5
26591 ac_status=$?
26592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26593 (exit $ac_status); }; }; then
26594 LIBINTL="$LIBINTL $LIBICONV"
26595 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
26596 gt_cv_func_gnugettext1_libintl=yes
26597
26598 else
26599 echo "$as_me: failed program was:" >&5
26600 sed 's/^/| /' conftest.$ac_ext >&5
26601
26602 fi
26603 rm -f conftest.err conftest.$ac_objext \
26604 conftest$ac_exeext conftest.$ac_ext
26605 fi
26606 CPPFLAGS="$gt_save_CPPFLAGS"
26607 LIBS="$gt_save_LIBS"
26608 fi
26609 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
26610 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
26611 fi
26612
26613 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
26614 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
26615 && test "$PACKAGE" != gettext-runtime \
26616 && test "$PACKAGE" != gettext-tools; }; then
26617 gt_use_preinstalled_gnugettext=yes
26618 else
26619 LIBINTL=
26620 LTLIBINTL=
26621 INCINTL=
26622 fi
26623
26624
26625
26626 if test -n "$INTL_MACOSX_LIBS"; then
26627 if test "$gt_use_preinstalled_gnugettext" = "yes" \
26628 || test "$nls_cv_use_gnu_gettext" = "yes"; then
26629 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
26630 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
26631 fi
26632 fi
26633
26634 if test "$gt_use_preinstalled_gnugettext" = "yes" \
26635 || test "$nls_cv_use_gnu_gettext" = "yes"; then
26636
26637 cat >>confdefs.h <<\_ACEOF
26638 #define ENABLE_NLS 1
26639 _ACEOF
26640
26641 else
26642 USE_NLS=no
26643 fi
26644 fi
26645
26646 echo "$as_me:$LINENO: checking whether to use NLS" >&5
26647 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
26648 echo "$as_me:$LINENO: result: $USE_NLS" >&5
26649 echo "${ECHO_T}$USE_NLS" >&6
26650 if test "$USE_NLS" = "yes"; then
26651 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
26652 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
26653 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
26654 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
26655 gt_source="external libintl"
26656 else
26657 gt_source="libc"
26658 fi
26659 else
26660 gt_source="included intl directory"
26661 fi
26662 echo "$as_me:$LINENO: result: $gt_source" >&5
26663 echo "${ECHO_T}$gt_source" >&6
26664 fi
26665
26666 if test "$USE_NLS" = "yes"; then
26667
26668 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
26669 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
26670 echo "$as_me:$LINENO: checking how to link with libintl" >&5
26671 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
26672 echo "$as_me:$LINENO: result: $LIBINTL" >&5
26673 echo "${ECHO_T}$LIBINTL" >&6
26674
26675 for element in $INCINTL; do
26676 haveit=
26677 for x in $CPPFLAGS; do
26678
26679 acl_save_prefix="$prefix"
26680 prefix="$acl_final_prefix"
26681 acl_save_exec_prefix="$exec_prefix"
26682 exec_prefix="$acl_final_exec_prefix"
26683 eval x=\"$x\"
26684 exec_prefix="$acl_save_exec_prefix"
26685 prefix="$acl_save_prefix"
26686
26687 if test "X$x" = "X$element"; then
26688 haveit=yes
26689 break
26690 fi
26691 done
26692 if test -z "$haveit"; then
26693 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
26694 fi
26695 done
26696
26697 fi
26698
26699
26700 cat >>confdefs.h <<\_ACEOF
26701 #define HAVE_GETTEXT 1
26702 _ACEOF
26703
26704
26705 cat >>confdefs.h <<\_ACEOF
26706 #define HAVE_DCGETTEXT 1
26707 _ACEOF
26708
26709 fi
26710
26711 POSUB=po
26712 fi
26713
26714
26715
26716 INTLLIBS="$LIBINTL"
26717
26718
26719
26720
26721
26722
26723
26724 ac_config_files="$ac_config_files src/normalize-mp3"
26725
26726 ac_config_files="$ac_config_files Makefile doc/Makefile doc/fr/Makefile po/Makefile.in src/Makefile nid3lib/Makefile xmms-rva/Makefile test/Makefile"
26727
26728 cat >confcache <<\_ACEOF
26729 # This file is a shell script that caches the results of configure
26730 # tests run on this system so they can be shared between configure
26731 # scripts and configure runs, see configure's option --config-cache.
26732 # It is not useful on other systems. If it contains results you don't
26733 # want to keep, you may remove or edit it.
26734 #
26735 # config.status only pays attention to the cache file if you give it
26736 # the --recheck option to rerun configure.
26737 #
26738 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26739 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26740 # following values.
26741
26742 _ACEOF
26743
26744 # The following way of writing the cache mishandles newlines in values,
26745 # but we know of no workaround that is simple, portable, and efficient.
26746 # So, don't put newlines in cache variables' values.
26747 # Ultrix sh set writes to stderr and can't be redirected directly,
26748 # and sets the high bit in the cache file unless we assign to the vars.
26749 {
26750 (set) 2>&1 |
26751 case `(ac_space=' '; set | grep ac_space) 2>&1` in
26752 *ac_space=\ *)
26753 # `set' does not quote correctly, so add quotes (double-quote
26754 # substitution turns \\\\ into \\, and sed turns \\ into \).
26755 sed -n \
26756 "s/'/'\\\\''/g;
26757 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26758 ;;
26759 *)
26760 # `set' quotes correctly as required by POSIX, so do not add quotes.
26761 sed -n \
26762 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26763 ;;
26764 esac;
26765 } |
26766 sed '
26767 t clear
26768 : clear
26769 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26770 t end
26771 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26772 : end' >>confcache
26773 if diff $cache_file confcache >/dev/null 2>&1; then :; else
26774 if test -w $cache_file; then
26775 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26776 cat confcache >$cache_file
26777 else
26778 echo "not updating unwritable cache $cache_file"
26779 fi
26780 fi
26781 rm -f confcache
26782
26783 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26784 # Let make expand exec_prefix.
26785 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26786
26787 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26788 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26789 # trailing colons and then remove the whole line if VPATH becomes empty
26790 # (actually we leave an empty line to preserve line numbers).
26791 if test "x$srcdir" = x.; then
26792 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26793 s/:*\$(srcdir):*/:/;
26794 s/:*\${srcdir}:*/:/;
26795 s/:*@srcdir@:*/:/;
26796 s/^\([^=]*=[ ]*\):*/\1/;
26797 s/:*$//;
26798 s/^[^=]*=[ ]*$//;
26799 }'
26800 fi
26801
26802 DEFS=-DHAVE_CONFIG_H
26803
26804 ac_libobjs=
26805 ac_ltlibobjs=
26806 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26807 # 1. Remove the extension, and $U if already installed.
26808 ac_i=`echo "$ac_i" |
26809 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26810 # 2. Add them.
26811 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26812 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
26813 done
26814 LIBOBJS=$ac_libobjs
26815
26816 LTLIBOBJS=$ac_ltlibobjs
26817
26818
26819 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26820 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26821 Usually this means the macro was only invoked conditionally." >&5
26822 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26823 Usually this means the macro was only invoked conditionally." >&2;}
26824 { (exit 1); exit 1; }; }
26825 fi
26826 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26827 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26828 Usually this means the macro was only invoked conditionally." >&5
26829 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26830 Usually this means the macro was only invoked conditionally." >&2;}
26831 { (exit 1); exit 1; }; }
26832 fi
26833 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26834 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26835 Usually this means the macro was only invoked conditionally." >&5
26836 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26837 Usually this means the macro was only invoked conditionally." >&2;}
26838 { (exit 1); exit 1; }; }
26839 fi
26840 if test -z "${AUDIOFILE_TRUE}" && test -z "${AUDIOFILE_FALSE}"; then
26841 { { echo "$as_me:$LINENO: error: conditional \"AUDIOFILE\" was never defined.
26842 Usually this means the macro was only invoked conditionally." >&5
26843 echo "$as_me: error: conditional \"AUDIOFILE\" was never defined.
26844 Usually this means the macro was only invoked conditionally." >&2;}
26845 { (exit 1); exit 1; }; }
26846 fi
26847 if test -z "${MAD_TRUE}" && test -z "${MAD_FALSE}"; then
26848 { { echo "$as_me:$LINENO: error: conditional \"MAD\" was never defined.
26849 Usually this means the macro was only invoked conditionally." >&5
26850 echo "$as_me: error: conditional \"MAD\" was never defined.
26851 Usually this means the macro was only invoked conditionally." >&2;}
26852 { (exit 1); exit 1; }; }
26853 fi
26854
26855 : ${CONFIG_STATUS=./config.status}
26856 ac_clean_files_save=$ac_clean_files
26857 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26858 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26859 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26860 cat >$CONFIG_STATUS <<_ACEOF
26861 #! $SHELL
26862 # Generated by $as_me.
26863 # Run this file to recreate the current configuration.
26864 # Compiler output produced by configure, useful for debugging
26865 # configure, is in config.log if it exists.
26866
26867 debug=false
26868 ac_cs_recheck=false
26869 ac_cs_silent=false
26870 SHELL=\${CONFIG_SHELL-$SHELL}
26871 _ACEOF
26872
26873 cat >>$CONFIG_STATUS <<\_ACEOF
26874 ## --------------------- ##
26875 ## M4sh Initialization. ##
26876 ## --------------------- ##
26877
26878 # Be Bourne compatible
26879 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26880 emulate sh
26881 NULLCMD=:
26882 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26883 # is contrary to our usage. Disable this feature.
26884 alias -g '${1+"$@"}'='"$@"'
26885 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26886 set -o posix
26887 fi
26888 DUALCASE=1; export DUALCASE # for MKS sh
26889
26890 # Support unset when possible.
26891 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26892 as_unset=unset
26893 else
26894 as_unset=false
26895 fi
26896
26897
26898 # Work around bugs in pre-3.0 UWIN ksh.
26899 $as_unset ENV MAIL MAILPATH
26900 PS1='$ '
26901 PS2='> '
26902 PS4='+ '
26903
26904 # NLS nuisances.
26905 for as_var in \
26906 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26907 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26908 LC_TELEPHONE LC_TIME
26909 do
26910 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26911 eval $as_var=C; export $as_var
26912 else
26913 $as_unset $as_var
26914 fi
26915 done
26916
26917 # Required to use basename.
26918 if expr a : '\(a\)' >/dev/null 2>&1; then
26919 as_expr=expr
26920 else
26921 as_expr=false
26922 fi
26923
26924 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
26925 as_basename=basename
26926 else
26927 as_basename=false
26928 fi
26929
26930
26931 # Name of the executable.
26932 as_me=`$as_basename "$0" ||
26933 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26934 X"$0" : 'X\(//\)$' \| \
26935 X"$0" : 'X\(/\)$' \| \
26936 . : '\(.\)' 2>/dev/null ||
26937 echo X/"$0" |
26938 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26939 /^X\/\(\/\/\)$/{ s//\1/; q; }
26940 /^X\/\(\/\).*/{ s//\1/; q; }
26941 s/.*/./; q'`
26942
26943
26944 # PATH needs CR, and LINENO needs CR and PATH.
26945 # Avoid depending upon Character Ranges.
26946 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26947 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26948 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26949 as_cr_digits='0123456789'
26950 as_cr_alnum=$as_cr_Letters$as_cr_digits
26951
26952 # The user is always right.
26953 if test "${PATH_SEPARATOR+set}" != set; then
26954 echo "#! /bin/sh" >conf$$.sh
26955 echo "exit 0" >>conf$$.sh
26956 chmod +x conf$$.sh
26957 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26958 PATH_SEPARATOR=';'
26959 else
26960 PATH_SEPARATOR=:
26961 fi
26962 rm -f conf$$.sh
26963 fi
26964
26965
26966 as_lineno_1=$LINENO
26967 as_lineno_2=$LINENO
26968 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26969 test "x$as_lineno_1" != "x$as_lineno_2" &&
26970 test "x$as_lineno_3" = "x$as_lineno_2" || {
26971 # Find who we are. Look in the path if we contain no path at all
26972 # relative or not.
26973 case $0 in
26974 *[\\/]* ) as_myself=$0 ;;
26975 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26976 for as_dir in $PATH
26977 do
26978 IFS=$as_save_IFS
26979 test -z "$as_dir" && as_dir=.
26980 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26981 done
26982
26983 ;;
26984 esac
26985 # We did not find ourselves, most probably we were run as `sh COMMAND'
26986 # in which case we are not to be found in the path.
26987 if test "x$as_myself" = x; then
26988 as_myself=$0
26989 fi
26990 if test ! -f "$as_myself"; then
26991 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26992 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26993 { (exit 1); exit 1; }; }
26994 fi
26995 case $CONFIG_SHELL in
26996 '')
26997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26998 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26999 do
27000 IFS=$as_save_IFS
27001 test -z "$as_dir" && as_dir=.
27002 for as_base in sh bash ksh sh5; do
27003 case $as_dir in
27004 /*)
27005 if ("$as_dir/$as_base" -c '
27006 as_lineno_1=$LINENO
27007 as_lineno_2=$LINENO
27008 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27009 test "x$as_lineno_1" != "x$as_lineno_2" &&
27010 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
27011 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
27012 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
27013 CONFIG_SHELL=$as_dir/$as_base
27014 export CONFIG_SHELL
27015 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
27016 fi;;
27017 esac
27018 done
27019 done
27020 ;;
27021 esac
27022
27023 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27024 # uniformly replaced by the line number. The first 'sed' inserts a
27025 # line-number line before each line; the second 'sed' does the real
27026 # work. The second script uses 'N' to pair each line-number line
27027 # with the numbered line, and appends trailing '-' during
27028 # substitution so that $LINENO is not a special case at line end.
27029 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27030 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
27031 sed '=' <$as_myself |
27032 sed '
27033 N
27034 s,$,-,
27035 : loop
27036 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
27037 t loop
27038 s,-$,,
27039 s,^['$as_cr_digits']*\n,,
27040 ' >$as_me.lineno &&
27041 chmod +x $as_me.lineno ||
27042 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
27043 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
27044 { (exit 1); exit 1; }; }
27045
27046 # Don't try to exec as it changes $[0], causing all sort of problems
27047 # (the dirname of $[0] is not the place where we might find the
27048 # original and so on. Autoconf is especially sensible to this).
27049 . ./$as_me.lineno
27050 # Exit status is that of the last command.
27051 exit
27052 }
27053
27054
27055 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
27056 *c*,-n*) ECHO_N= ECHO_C='
27057 ' ECHO_T=' ' ;;
27058 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
27059 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
27060 esac
27061
27062 if expr a : '\(a\)' >/dev/null 2>&1; then
27063 as_expr=expr
27064 else
27065 as_expr=false
27066 fi
27067
27068 rm -f conf$$ conf$$.exe conf$$.file
27069 echo >conf$$.file
27070 if ln -s conf$$.file conf$$ 2>/dev/null; then
27071 # We could just check for DJGPP; but this test a) works b) is more generic
27072 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
27073 if test -f conf$$.exe; then
27074 # Don't use ln at all; we don't have any links
27075 as_ln_s='cp -p'
27076 else
27077 as_ln_s='ln -s'
27078 fi
27079 elif ln conf$$.file conf$$ 2>/dev/null; then
27080 as_ln_s=ln
27081 else
27082 as_ln_s='cp -p'
27083 fi
27084 rm -f conf$$ conf$$.exe conf$$.file
27085
27086 if mkdir -p . 2>/dev/null; then
27087 as_mkdir_p=:
27088 else
27089 test -d ./-p && rmdir ./-p
27090 as_mkdir_p=false
27091 fi
27092
27093 as_executable_p="test -f"
27094
27095 # Sed expression to map a string onto a valid CPP name.
27096 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27097
27098 # Sed expression to map a string onto a valid variable name.
27099 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27100
27101
27102 # IFS
27103 # We need space, tab and new line, in precisely that order.
27104 as_nl='
27105 '
27106 IFS=" $as_nl"
27107
27108 # CDPATH.
27109 $as_unset CDPATH
27110
27111 exec 6>&1
27112
27113 # Open the log real soon, to keep \$[0] and so on meaningful, and to
27114 # report actual input values of CONFIG_FILES etc. instead of their
27115 # values after options handling. Logging --version etc. is OK.
27116 exec 5>>config.log
27117 {
27118 echo
27119 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27120 ## Running $as_me. ##
27121 _ASBOX
27122 } >&5
27123 cat >&5 <<_CSEOF
27124
27125 This file was extended by normalize $as_me 0.7.7, which was
27126 generated by GNU Autoconf 2.59. Invocation command line was
27127
27128 CONFIG_FILES = $CONFIG_FILES
27129 CONFIG_HEADERS = $CONFIG_HEADERS
27130 CONFIG_LINKS = $CONFIG_LINKS
27131 CONFIG_COMMANDS = $CONFIG_COMMANDS
27132 $ $0 $@
27133
27134 _CSEOF
27135 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
27136 echo >&5
27137 _ACEOF
27138
27139 # Files that config.status was made for.
27140 if test -n "$ac_config_files"; then
27141 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
27142 fi
27143
27144 if test -n "$ac_config_headers"; then
27145 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
27146 fi
27147
27148 if test -n "$ac_config_links"; then
27149 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
27150 fi
27151
27152 if test -n "$ac_config_commands"; then
27153 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
27154 fi
27155
27156 cat >>$CONFIG_STATUS <<\_ACEOF
27157
27158 ac_cs_usage="\
27159 \`$as_me' instantiates files from templates according to the
27160 current configuration.
27161
27162 Usage: $0 [OPTIONS] [FILE]...
27163
27164 -h, --help print this help, then exit
27165 -V, --version print version number, then exit
27166 -q, --quiet do not print progress messages
27167 -d, --debug don't remove temporary files
27168 --recheck update $as_me by reconfiguring in the same conditions
27169 --file=FILE[:TEMPLATE]
27170 instantiate the configuration file FILE
27171 --header=FILE[:TEMPLATE]
27172 instantiate the configuration header FILE
27173
27174 Configuration files:
27175 $config_files
27176
27177 Configuration headers:
27178 $config_headers
27179
27180 Configuration commands:
27181 $config_commands
27182
27183 Report bugs to <[email protected]>."
27184 _ACEOF
27185
27186 cat >>$CONFIG_STATUS <<_ACEOF
27187 ac_cs_version="\\
27188 normalize config.status 0.7.7
27189 configured by $0, generated by GNU Autoconf 2.59,
27190 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
27191
27192 Copyright (C) 2003 Free Software Foundation, Inc.
27193 This config.status script is free software; the Free Software Foundation
27194 gives unlimited permission to copy, distribute and modify it."
27195 srcdir=$srcdir
27196 INSTALL="$INSTALL"
27197 _ACEOF
27198
27199 cat >>$CONFIG_STATUS <<\_ACEOF
27200 # If no file are specified by the user, then we need to provide default
27201 # value. By we need to know if files were specified by the user.
27202 ac_need_defaults=:
27203 while test $# != 0
27204 do
27205 case $1 in
27206 --*=*)
27207 ac_option=`expr "x$1" : 'x\([^=]*\)='`
27208 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
27209 ac_shift=:
27210 ;;
27211 -*)
27212 ac_option=$1
27213 ac_optarg=$2
27214 ac_shift=shift
27215 ;;
27216 *) # This is not an option, so the user has probably given explicit
27217 # arguments.
27218 ac_option=$1
27219 ac_need_defaults=false;;
27220 esac
27221
27222 case $ac_option in
27223 # Handling of the options.
27224 _ACEOF
27225 cat >>$CONFIG_STATUS <<\_ACEOF
27226 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27227 ac_cs_recheck=: ;;
27228 --version | --vers* | -V )
27229 echo "$ac_cs_version"; exit 0 ;;
27230 --he | --h)
27231 # Conflict between --help and --header
27232 { { echo "$as_me:$LINENO: error: ambiguous option: $1
27233 Try \`$0 --help' for more information." >&5
27234 echo "$as_me: error: ambiguous option: $1
27235 Try \`$0 --help' for more information." >&2;}
27236 { (exit 1); exit 1; }; };;
27237 --help | --hel | -h )
27238 echo "$ac_cs_usage"; exit 0 ;;
27239 --debug | --d* | -d )
27240 debug=: ;;
27241 --file | --fil | --fi | --f )
27242 $ac_shift
27243 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27244 ac_need_defaults=false;;
27245 --header | --heade | --head | --hea )
27246 $ac_shift
27247 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27248 ac_need_defaults=false;;
27249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27250 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27251 ac_cs_silent=: ;;
27252
27253 # This is an error.
27254 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
27255 Try \`$0 --help' for more information." >&5
27256 echo "$as_me: error: unrecognized option: $1
27257 Try \`$0 --help' for more information." >&2;}
27258 { (exit 1); exit 1; }; } ;;
27259
27260 *) ac_config_targets="$ac_config_targets $1" ;;
27261
27262 esac
27263 shift
27264 done
27265
27266 ac_configure_extra_args=
27267
27268 if $ac_cs_silent; then
27269 exec 6>/dev/null
27270 ac_configure_extra_args="$ac_configure_extra_args --silent"
27271 fi
27272
27273 _ACEOF
27274 cat >>$CONFIG_STATUS <<_ACEOF
27275 if \$ac_cs_recheck; then
27276 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27277 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27278 fi
27279
27280 _ACEOF
27281
27282 cat >>$CONFIG_STATUS <<_ACEOF
27283 #
27284 # INIT-COMMANDS section.
27285 #
27286
27287 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27288 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
27289 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
27290 # from automake.
27291 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
27292 # Capture the value of LINGUAS because we need it to compute CATALOGS.
27293 LINGUAS="${LINGUAS-%UNSET%}"
27294
27295
27296 _ACEOF
27297
27298
27299
27300 cat >>$CONFIG_STATUS <<\_ACEOF
27301 for ac_config_target in $ac_config_targets
27302 do
27303 case "$ac_config_target" in
27304 # Handling of arguments.
27305 "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
27306 "src/normalize-mp3" ) CONFIG_FILES="$CONFIG_FILES src/normalize-mp3" ;;
27307 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27308 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27309 "doc/fr/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/fr/Makefile" ;;
27310 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
27311 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27312 "nid3lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES nid3lib/Makefile" ;;
27313 "xmms-rva/Makefile" ) CONFIG_FILES="$CONFIG_FILES xmms-rva/Makefile" ;;
27314 "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
27315 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27316 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27317 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27318 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27319 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27320 { (exit 1); exit 1; }; };;
27321 esac
27322 done
27323
27324 # If the user did not use the arguments to specify the items to instantiate,
27325 # then the envvar interface is used. Set only those that are not.
27326 # We use the long form for the default assignment because of an extremely
27327 # bizarre bug on SunOS 4.1.3.
27328 if $ac_need_defaults; then
27329 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27330 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27331 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27332 fi
27333
27334 # Have a temporary directory for convenience. Make it in the build tree
27335 # simply because there is no reason to put it here, and in addition,
27336 # creating and moving files from /tmp can sometimes cause problems.
27337 # Create a temporary directory, and hook for its removal unless debugging.
27338 $debug ||
27339 {
27340 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
27341 trap '{ (exit 1); exit 1; }' 1 2 13 15
27342 }
27343
27344 # Create a (secure) tmp directory for tmp files.
27345
27346 {
27347 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
27348 test -n "$tmp" && test -d "$tmp"
27349 } ||
27350 {
27351 tmp=./confstat$$-$RANDOM
27352 (umask 077 && mkdir $tmp)
27353 } ||
27354 {
27355 echo "$me: cannot create a temporary directory in ." >&2
27356 { (exit 1); exit 1; }
27357 }
27358
27359 _ACEOF
27360
27361 cat >>$CONFIG_STATUS <<_ACEOF
27362
27363 #
27364 # CONFIG_FILES section.
27365 #
27366
27367 # No need to generate the scripts if there are no CONFIG_FILES.
27368 # This happens for instance when ./config.status config.h
27369 if test -n "\$CONFIG_FILES"; then
27370 # Protect against being on the right side of a sed subst in config.status.
27371 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
27372 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
27373 s,@SHELL@,$SHELL,;t t
27374 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
27375 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
27376 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
27377 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
27378 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
27379 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
27380 s,@exec_prefix@,$exec_prefix,;t t
27381 s,@prefix@,$prefix,;t t
27382 s,@program_transform_name@,$program_transform_name,;t t
27383 s,@bindir@,$bindir,;t t
27384 s,@sbindir@,$sbindir,;t t
27385 s,@libexecdir@,$libexecdir,;t t
27386 s,@datadir@,$datadir,;t t
27387 s,@sysconfdir@,$sysconfdir,;t t
27388 s,@sharedstatedir@,$sharedstatedir,;t t
27389 s,@localstatedir@,$localstatedir,;t t
27390 s,@libdir@,$libdir,;t t
27391 s,@includedir@,$includedir,;t t
27392 s,@oldincludedir@,$oldincludedir,;t t
27393 s,@infodir@,$infodir,;t t
27394 s,@mandir@,$mandir,;t t
27395 s,@build_alias@,$build_alias,;t t
27396 s,@host_alias@,$host_alias,;t t
27397 s,@target_alias@,$target_alias,;t t
27398 s,@DEFS@,$DEFS,;t t
27399 s,@ECHO_C@,$ECHO_C,;t t
27400 s,@ECHO_N@,$ECHO_N,;t t
27401 s,@ECHO_T@,$ECHO_T,;t t
27402 s,@LIBS@,$LIBS,;t t
27403 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
27404 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
27405 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
27406 s,@CYGPATH_W@,$CYGPATH_W,;t t
27407 s,@PACKAGE@,$PACKAGE,;t t
27408 s,@VERSION@,$VERSION,;t t
27409 s,@ACLOCAL@,$ACLOCAL,;t t
27410 s,@AUTOCONF@,$AUTOCONF,;t t
27411 s,@AUTOMAKE@,$AUTOMAKE,;t t
27412 s,@AUTOHEADER@,$AUTOHEADER,;t t
27413 s,@MAKEINFO@,$MAKEINFO,;t t
27414 s,@install_sh@,$install_sh,;t t
27415 s,@STRIP@,$STRIP,;t t
27416 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
27417 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
27418 s,@mkdir_p@,$mkdir_p,;t t
27419 s,@AWK@,$AWK,;t t
27420 s,@SET_MAKE@,$SET_MAKE,;t t
27421 s,@am__leading_dot@,$am__leading_dot,;t t
27422 s,@AMTAR@,$AMTAR,;t t
27423 s,@am__tar@,$am__tar,;t t
27424 s,@am__untar@,$am__untar,;t t
27425 s,@build@,$build,;t t
27426 s,@build_cpu@,$build_cpu,;t t
27427 s,@build_vendor@,$build_vendor,;t t
27428 s,@build_os@,$build_os,;t t
27429 s,@host@,$host,;t t
27430 s,@host_cpu@,$host_cpu,;t t
27431 s,@host_vendor@,$host_vendor,;t t
27432 s,@host_os@,$host_os,;t t
27433 s,@CC@,$CC,;t t
27434 s,@CFLAGS@,$CFLAGS,;t t
27435 s,@LDFLAGS@,$LDFLAGS,;t t
27436 s,@CPPFLAGS@,$CPPFLAGS,;t t
27437 s,@ac_ct_CC@,$ac_ct_CC,;t t
27438 s,@EXEEXT@,$EXEEXT,;t t
27439 s,@OBJEXT@,$OBJEXT,;t t
27440 s,@DEPDIR@,$DEPDIR,;t t
27441 s,@am__include@,$am__include,;t t
27442 s,@am__quote@,$am__quote,;t t
27443 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
27444 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
27445 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
27446 s,@CCDEPMODE@,$CCDEPMODE,;t t
27447 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
27448 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
27449 s,@LN_S@,$LN_S,;t t
27450 s,@CPP@,$CPP,;t t
27451 s,@EGREP@,$EGREP,;t t
27452 s,@PERL@,$PERL,;t t
27453 s,@MP3DECODE@,$MP3DECODE,;t t
27454 s,@MP3ENCODE@,$MP3ENCODE,;t t
27455 s,@OGGDECODE@,$OGGDECODE,;t t
27456 s,@OGGENCODE@,$OGGENCODE,;t t
27457 s,@VORBISCOMMENT@,$VORBISCOMMENT,;t t
27458 s,@FLACDECODE@,$FLACDECODE,;t t
27459 s,@FLACENCODE@,$FLACENCODE,;t t
27460 s,@METAFLAC@,$METAFLAC,;t t
27461 s,@GLIB_CONFIG@,$GLIB_CONFIG,;t t
27462 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
27463 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
27464 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
27465 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
27466 s,@GTK_LIBS@,$GTK_LIBS,;t t
27467 s,@XMMS_CONFIG@,$XMMS_CONFIG,;t t
27468 s,@XMMS_CFLAGS@,$XMMS_CFLAGS,;t t
27469 s,@XMMS_LIBS@,$XMMS_LIBS,;t t
27470 s,@XMMS_VERSION@,$XMMS_VERSION,;t t
27471 s,@XMMS_DATA_DIR@,$XMMS_DATA_DIR,;t t
27472 s,@XMMS_PLUGIN_DIR@,$XMMS_PLUGIN_DIR,;t t
27473 s,@XMMS_VISUALIZATION_PLUGIN_DIR@,$XMMS_VISUALIZATION_PLUGIN_DIR,;t t
27474 s,@XMMS_INPUT_PLUGIN_DIR@,$XMMS_INPUT_PLUGIN_DIR,;t t
27475 s,@XMMS_OUTPUT_PLUGIN_DIR@,$XMMS_OUTPUT_PLUGIN_DIR,;t t
27476 s,@XMMS_GENERAL_PLUGIN_DIR@,$XMMS_GENERAL_PLUGIN_DIR,;t t
27477 s,@XMMS_EFFECT_PLUGIN_DIR@,$XMMS_EFFECT_PLUGIN_DIR,;t t
27478 s,@ECHO@,$ECHO,;t t
27479 s,@AR@,$AR,;t t
27480 s,@ac_ct_AR@,$ac_ct_AR,;t t
27481 s,@RANLIB@,$RANLIB,;t t
27482 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
27483 s,@CXX@,$CXX,;t t
27484 s,@CXXFLAGS@,$CXXFLAGS,;t t
27485 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
27486 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
27487 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
27488 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
27489 s,@CXXCPP@,$CXXCPP,;t t
27490 s,@F77@,$F77,;t t
27491 s,@FFLAGS@,$FFLAGS,;t t
27492 s,@ac_ct_F77@,$ac_ct_F77,;t t
27493 s,@LIBTOOL@,$LIBTOOL,;t t
27494 s,@PLUGINS@,$PLUGINS,;t t
27495 s,@AUDIOFILE_CONFIG@,$AUDIOFILE_CONFIG,;t t
27496 s,@AUDIOFILE_CFLAGS@,$AUDIOFILE_CFLAGS,;t t
27497 s,@AUDIOFILE_LIBS@,$AUDIOFILE_LIBS,;t t
27498 s,@AUDIOFILE_TRUE@,$AUDIOFILE_TRUE,;t t
27499 s,@AUDIOFILE_FALSE@,$AUDIOFILE_FALSE,;t t
27500 s,@MADLIBS@,$MADLIBS,;t t
27501 s,@MAD_TRUE@,$MAD_TRUE,;t t
27502 s,@MAD_FALSE@,$MAD_FALSE,;t t
27503 s,@NORMALIZE_BIN@,$NORMALIZE_BIN,;t t
27504 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
27505 s,@USE_NLS@,$USE_NLS,;t t
27506 s,@MSGFMT@,$MSGFMT,;t t
27507 s,@GMSGFMT@,$GMSGFMT,;t t
27508 s,@XGETTEXT@,$XGETTEXT,;t t
27509 s,@MSGMERGE@,$MSGMERGE,;t t
27510 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
27511 s,@LIBICONV@,$LIBICONV,;t t
27512 s,@LTLIBICONV@,$LTLIBICONV,;t t
27513 s,@INTLLIBS@,$INTLLIBS,;t t
27514 s,@LIBINTL@,$LIBINTL,;t t
27515 s,@LTLIBINTL@,$LTLIBINTL,;t t
27516 s,@POSUB@,$POSUB,;t t
27517 s,@LIBOBJS@,$LIBOBJS,;t t
27518 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
27519 CEOF
27520
27521 _ACEOF
27522
27523 cat >>$CONFIG_STATUS <<\_ACEOF
27524 # Split the substitutions into bite-sized pieces for seds with
27525 # small command number limits, like on Digital OSF/1 and HP-UX.
27526 ac_max_sed_lines=48
27527 ac_sed_frag=1 # Number of current file.
27528 ac_beg=1 # First line for current file.
27529 ac_end=$ac_max_sed_lines # Line after last line for current file.
27530 ac_more_lines=:
27531 ac_sed_cmds=
27532 while $ac_more_lines; do
27533 if test $ac_beg -gt 1; then
27534 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27535 else
27536 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27537 fi
27538 if test ! -s $tmp/subs.frag; then
27539 ac_more_lines=false
27540 else
27541 # The purpose of the label and of the branching condition is to
27542 # speed up the sed processing (if there are no `@' at all, there
27543 # is no need to browse any of the substitutions).
27544 # These are the two extra sed commands mentioned above.
27545 (echo ':t
27546 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
27547 if test -z "$ac_sed_cmds"; then
27548 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
27549 else
27550 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
27551 fi
27552 ac_sed_frag=`expr $ac_sed_frag + 1`
27553 ac_beg=$ac_end
27554 ac_end=`expr $ac_end + $ac_max_sed_lines`
27555 fi
27556 done
27557 if test -z "$ac_sed_cmds"; then
27558 ac_sed_cmds=cat
27559 fi
27560 fi # test -n "$CONFIG_FILES"
27561
27562 _ACEOF
27563 cat >>$CONFIG_STATUS <<\_ACEOF
27564 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27565 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27566 case $ac_file in
27567 - | *:- | *:-:* ) # input from stdin
27568 cat >$tmp/stdin
27569 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27570 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27571 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27572 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27573 * ) ac_file_in=$ac_file.in ;;
27574 esac
27575
27576 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27577 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27578 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27579 X"$ac_file" : 'X\(//\)[^/]' \| \
27580 X"$ac_file" : 'X\(//\)$' \| \
27581 X"$ac_file" : 'X\(/\)' \| \
27582 . : '\(.\)' 2>/dev/null ||
27583 echo X"$ac_file" |
27584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27585 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27586 /^X\(\/\/\)$/{ s//\1/; q; }
27587 /^X\(\/\).*/{ s//\1/; q; }
27588 s/.*/./; q'`
27589 { if $as_mkdir_p; then
27590 mkdir -p "$ac_dir"
27591 else
27592 as_dir="$ac_dir"
27593 as_dirs=
27594 while test ! -d "$as_dir"; do
27595 as_dirs="$as_dir $as_dirs"
27596 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27597 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27598 X"$as_dir" : 'X\(//\)[^/]' \| \
27599 X"$as_dir" : 'X\(//\)$' \| \
27600 X"$as_dir" : 'X\(/\)' \| \
27601 . : '\(.\)' 2>/dev/null ||
27602 echo X"$as_dir" |
27603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27604 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27605 /^X\(\/\/\)$/{ s//\1/; q; }
27606 /^X\(\/\).*/{ s//\1/; q; }
27607 s/.*/./; q'`
27608 done
27609 test ! -n "$as_dirs" || mkdir $as_dirs
27610 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27611 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27612 { (exit 1); exit 1; }; }; }
27613
27614 ac_builddir=.
27615
27616 if test "$ac_dir" != .; then
27617 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27618 # A "../" for each directory in $ac_dir_suffix.
27619 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27620 else
27621 ac_dir_suffix= ac_top_builddir=
27622 fi
27623
27624 case $srcdir in
27625 .) # No --srcdir option. We are building in place.
27626 ac_srcdir=.
27627 if test -z "$ac_top_builddir"; then
27628 ac_top_srcdir=.
27629 else
27630 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27631 fi ;;
27632 [\\/]* | ?:[\\/]* ) # Absolute path.
27633 ac_srcdir=$srcdir$ac_dir_suffix;
27634 ac_top_srcdir=$srcdir ;;
27635 *) # Relative path.
27636 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27637 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27638 esac
27639
27640 # Do not use `cd foo && pwd` to compute absolute paths, because
27641 # the directories may not exist.
27642 case `pwd` in
27643 .) ac_abs_builddir="$ac_dir";;
27644 *)
27645 case "$ac_dir" in
27646 .) ac_abs_builddir=`pwd`;;
27647 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27648 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27649 esac;;
27650 esac
27651 case $ac_abs_builddir in
27652 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27653 *)
27654 case ${ac_top_builddir}. in
27655 .) ac_abs_top_builddir=$ac_abs_builddir;;
27656 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27657 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27658 esac;;
27659 esac
27660 case $ac_abs_builddir in
27661 .) ac_abs_srcdir=$ac_srcdir;;
27662 *)
27663 case $ac_srcdir in
27664 .) ac_abs_srcdir=$ac_abs_builddir;;
27665 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27666 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27667 esac;;
27668 esac
27669 case $ac_abs_builddir in
27670 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27671 *)
27672 case $ac_top_srcdir in
27673 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27674 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27675 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27676 esac;;
27677 esac
27678
27679
27680 case $INSTALL in
27681 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27682 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
27683 esac
27684
27685 if test x"$ac_file" != x-; then
27686 { echo "$as_me:$LINENO: creating $ac_file" >&5
27687 echo "$as_me: creating $ac_file" >&6;}
27688 rm -f "$ac_file"
27689 fi
27690 # Let's still pretend it is `configure' which instantiates (i.e., don't
27691 # use $as_me), people would be surprised to read:
27692 # /* config.h. Generated by config.status. */
27693 if test x"$ac_file" = x-; then
27694 configure_input=
27695 else
27696 configure_input="$ac_file. "
27697 fi
27698 configure_input=$configure_input"Generated from `echo $ac_file_in |
27699 sed 's,.*/,,'` by configure."
27700
27701 # First look for the input files in the build tree, otherwise in the
27702 # src tree.
27703 ac_file_inputs=`IFS=:
27704 for f in $ac_file_in; do
27705 case $f in
27706 -) echo $tmp/stdin ;;
27707 [\\/$]*)
27708 # Absolute (can't be DOS-style, as IFS=:)
27709 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27710 echo "$as_me: error: cannot find input file: $f" >&2;}
27711 { (exit 1); exit 1; }; }
27712 echo "$f";;
27713 *) # Relative
27714 if test -f "$f"; then
27715 # Build tree
27716 echo "$f"
27717 elif test -f "$srcdir/$f"; then
27718 # Source tree
27719 echo "$srcdir/$f"
27720 else
27721 # /dev/null tree
27722 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27723 echo "$as_me: error: cannot find input file: $f" >&2;}
27724 { (exit 1); exit 1; }; }
27725 fi;;
27726 esac
27727 done` || { (exit 1); exit 1; }
27728 _ACEOF
27729 cat >>$CONFIG_STATUS <<_ACEOF
27730 sed "$ac_vpsub
27731 $extrasub
27732 _ACEOF
27733 cat >>$CONFIG_STATUS <<\_ACEOF
27734 :t
27735 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27736 s,@configure_input@,$configure_input,;t t
27737 s,@srcdir@,$ac_srcdir,;t t
27738 s,@abs_srcdir@,$ac_abs_srcdir,;t t
27739 s,@top_srcdir@,$ac_top_srcdir,;t t
27740 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27741 s,@builddir@,$ac_builddir,;t t
27742 s,@abs_builddir@,$ac_abs_builddir,;t t
27743 s,@top_builddir@,$ac_top_builddir,;t t
27744 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27745 s,@INSTALL@,$ac_INSTALL,;t t
27746 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27747 rm -f $tmp/stdin
27748 if test x"$ac_file" != x-; then
27749 mv $tmp/out $ac_file
27750 else
27751 cat $tmp/out
27752 rm -f $tmp/out
27753 fi
27754
27755 # Run the commands associated with the file.
27756 case $ac_file in
27757 src/normalize-mp3 ) chmod +x src/normalize-mp3 ;;
27758 esac
27759 done
27760 _ACEOF
27761 cat >>$CONFIG_STATUS <<\_ACEOF
27762
27763 #
27764 # CONFIG_HEADER section.
27765 #
27766
27767 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27768 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27769 #
27770 # ac_d sets the value in "#define NAME VALUE" lines.
27771 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
27772 ac_dB='[ ].*$,\1#\2'
27773 ac_dC=' '
27774 ac_dD=',;t'
27775 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27776 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27777 ac_uB='$,\1#\2define\3'
27778 ac_uC=' '
27779 ac_uD=',;t'
27780
27781 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27782 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27783 case $ac_file in
27784 - | *:- | *:-:* ) # input from stdin
27785 cat >$tmp/stdin
27786 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27787 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27788 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27789 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27790 * ) ac_file_in=$ac_file.in ;;
27791 esac
27792
27793 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27794 echo "$as_me: creating $ac_file" >&6;}
27795
27796 # First look for the input files in the build tree, otherwise in the
27797 # src tree.
27798 ac_file_inputs=`IFS=:
27799 for f in $ac_file_in; do
27800 case $f in
27801 -) echo $tmp/stdin ;;
27802 [\\/$]*)
27803 # Absolute (can't be DOS-style, as IFS=:)
27804 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27805 echo "$as_me: error: cannot find input file: $f" >&2;}
27806 { (exit 1); exit 1; }; }
27807 # Do quote $f, to prevent DOS paths from being IFS'd.
27808 echo "$f";;
27809 *) # Relative
27810 if test -f "$f"; then
27811 # Build tree
27812 echo "$f"
27813 elif test -f "$srcdir/$f"; then
27814 # Source tree
27815 echo "$srcdir/$f"
27816 else
27817 # /dev/null tree
27818 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27819 echo "$as_me: error: cannot find input file: $f" >&2;}
27820 { (exit 1); exit 1; }; }
27821 fi;;
27822 esac
27823 done` || { (exit 1); exit 1; }
27824 # Remove the trailing spaces.
27825 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
27826
27827 _ACEOF
27828
27829 # Transform confdefs.h into two sed scripts, `conftest.defines' and
27830 # `conftest.undefs', that substitutes the proper values into
27831 # config.h.in to produce config.h. The first handles `#define'
27832 # templates, and the second `#undef' templates.
27833 # And first: Protect against being on the right side of a sed subst in
27834 # config.status. Protect against being in an unquoted here document
27835 # in config.status.
27836 rm -f conftest.defines conftest.undefs
27837 # Using a here document instead of a string reduces the quoting nightmare.
27838 # Putting comments in sed scripts is not portable.
27839 #
27840 # `end' is used to avoid that the second main sed command (meant for
27841 # 0-ary CPP macros) applies to n-ary macro definitions.
27842 # See the Autoconf documentation for `clear'.
27843 cat >confdef2sed.sed <<\_ACEOF
27844 s/[\\&,]/\\&/g
27845 s,[\\$`],\\&,g
27846 t clear
27847 : clear
27848 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27849 t end
27850 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27851 : end
27852 _ACEOF
27853 # If some macros were called several times there might be several times
27854 # the same #defines, which is useless. Nevertheless, we may not want to
27855 # sort them, since we want the *last* AC-DEFINE to be honored.
27856 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27857 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27858 rm -f confdef2sed.sed
27859
27860 # This sed command replaces #undef with comments. This is necessary, for
27861 # example, in the case of _POSIX_SOURCE, which is predefined and required
27862 # on some systems where configure will not decide to define it.
27863 cat >>conftest.undefs <<\_ACEOF
27864 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27865 _ACEOF
27866
27867 # Break up conftest.defines because some shells have a limit on the size
27868 # of here documents, and old seds have small limits too (100 cmds).
27869 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27870 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27871 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27872 echo ' :' >>$CONFIG_STATUS
27873 rm -f conftest.tail
27874 while grep . conftest.defines >/dev/null
27875 do
27876 # Write a limited-size here document to $tmp/defines.sed.
27877 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27878 # Speed up: don't consider the non `#define' lines.
27879 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
27880 # Work around the forget-to-reset-the-flag bug.
27881 echo 't clr' >>$CONFIG_STATUS
27882 echo ': clr' >>$CONFIG_STATUS
27883 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27884 echo 'CEOF
27885 sed -f $tmp/defines.sed $tmp/in >$tmp/out
27886 rm -f $tmp/in
27887 mv $tmp/out $tmp/in
27888 ' >>$CONFIG_STATUS
27889 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27890 rm -f conftest.defines
27891 mv conftest.tail conftest.defines
27892 done
27893 rm -f conftest.defines
27894 echo ' fi # grep' >>$CONFIG_STATUS
27895 echo >>$CONFIG_STATUS
27896
27897 # Break up conftest.undefs because some shells have a limit on the size
27898 # of here documents, and old seds have small limits too (100 cmds).
27899 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
27900 rm -f conftest.tail
27901 while grep . conftest.undefs >/dev/null
27902 do
27903 # Write a limited-size here document to $tmp/undefs.sed.
27904 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27905 # Speed up: don't consider the non `#undef'
27906 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
27907 # Work around the forget-to-reset-the-flag bug.
27908 echo 't clr' >>$CONFIG_STATUS
27909 echo ': clr' >>$CONFIG_STATUS
27910 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27911 echo 'CEOF
27912 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27913 rm -f $tmp/in
27914 mv $tmp/out $tmp/in
27915 ' >>$CONFIG_STATUS
27916 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27917 rm -f conftest.undefs
27918 mv conftest.tail conftest.undefs
27919 done
27920 rm -f conftest.undefs
27921
27922 cat >>$CONFIG_STATUS <<\_ACEOF
27923 # Let's still pretend it is `configure' which instantiates (i.e., don't
27924 # use $as_me), people would be surprised to read:
27925 # /* config.h. Generated by config.status. */
27926 if test x"$ac_file" = x-; then
27927 echo "/* Generated by configure. */" >$tmp/config.h
27928 else
27929 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
27930 fi
27931 cat $tmp/in >>$tmp/config.h
27932 rm -f $tmp/in
27933 if test x"$ac_file" != x-; then
27934 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27935 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27936 echo "$as_me: $ac_file is unchanged" >&6;}
27937 else
27938 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27939 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27940 X"$ac_file" : 'X\(//\)[^/]' \| \
27941 X"$ac_file" : 'X\(//\)$' \| \
27942 X"$ac_file" : 'X\(/\)' \| \
27943 . : '\(.\)' 2>/dev/null ||
27944 echo X"$ac_file" |
27945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27946 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27947 /^X\(\/\/\)$/{ s//\1/; q; }
27948 /^X\(\/\).*/{ s//\1/; q; }
27949 s/.*/./; q'`
27950 { if $as_mkdir_p; then
27951 mkdir -p "$ac_dir"
27952 else
27953 as_dir="$ac_dir"
27954 as_dirs=
27955 while test ! -d "$as_dir"; do
27956 as_dirs="$as_dir $as_dirs"
27957 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27958 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27959 X"$as_dir" : 'X\(//\)[^/]' \| \
27960 X"$as_dir" : 'X\(//\)$' \| \
27961 X"$as_dir" : 'X\(/\)' \| \
27962 . : '\(.\)' 2>/dev/null ||
27963 echo X"$as_dir" |
27964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27965 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27966 /^X\(\/\/\)$/{ s//\1/; q; }
27967 /^X\(\/\).*/{ s//\1/; q; }
27968 s/.*/./; q'`
27969 done
27970 test ! -n "$as_dirs" || mkdir $as_dirs
27971 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27972 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27973 { (exit 1); exit 1; }; }; }
27974
27975 rm -f $ac_file
27976 mv $tmp/config.h $ac_file
27977 fi
27978 else
27979 cat $tmp/config.h
27980 rm -f $tmp/config.h
27981 fi
27982 # Compute $ac_file's index in $config_headers.
27983 _am_stamp_count=1
27984 for _am_header in $config_headers :; do
27985 case $_am_header in
27986 $ac_file | $ac_file:* )
27987 break ;;
27988 * )
27989 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27990 esac
27991 done
27992 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
27993 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27994 X$ac_file : 'X\(//\)[^/]' \| \
27995 X$ac_file : 'X\(//\)$' \| \
27996 X$ac_file : 'X\(/\)' \| \
27997 . : '\(.\)' 2>/dev/null ||
27998 echo X$ac_file |
27999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28000 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28001 /^X\(\/\/\)$/{ s//\1/; q; }
28002 /^X\(\/\).*/{ s//\1/; q; }
28003 s/.*/./; q'`/stamp-h$_am_stamp_count
28004 done
28005 _ACEOF
28006 cat >>$CONFIG_STATUS <<\_ACEOF
28007
28008 #
28009 # CONFIG_COMMANDS section.
28010 #
28011 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28012 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28013 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28014 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
28015 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28016 X"$ac_dest" : 'X\(//\)[^/]' \| \
28017 X"$ac_dest" : 'X\(//\)$' \| \
28018 X"$ac_dest" : 'X\(/\)' \| \
28019 . : '\(.\)' 2>/dev/null ||
28020 echo X"$ac_dest" |
28021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28022 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28023 /^X\(\/\/\)$/{ s//\1/; q; }
28024 /^X\(\/\).*/{ s//\1/; q; }
28025 s/.*/./; q'`
28026 { if $as_mkdir_p; then
28027 mkdir -p "$ac_dir"
28028 else
28029 as_dir="$ac_dir"
28030 as_dirs=
28031 while test ! -d "$as_dir"; do
28032 as_dirs="$as_dir $as_dirs"
28033 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28034 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28035 X"$as_dir" : 'X\(//\)[^/]' \| \
28036 X"$as_dir" : 'X\(//\)$' \| \
28037 X"$as_dir" : 'X\(/\)' \| \
28038 . : '\(.\)' 2>/dev/null ||
28039 echo X"$as_dir" |
28040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28041 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28042 /^X\(\/\/\)$/{ s//\1/; q; }
28043 /^X\(\/\).*/{ s//\1/; q; }
28044 s/.*/./; q'`
28045 done
28046 test ! -n "$as_dirs" || mkdir $as_dirs
28047 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28048 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28049 { (exit 1); exit 1; }; }; }
28050
28051 ac_builddir=.
28052
28053 if test "$ac_dir" != .; then
28054 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28055 # A "../" for each directory in $ac_dir_suffix.
28056 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28057 else
28058 ac_dir_suffix= ac_top_builddir=
28059 fi
28060
28061 case $srcdir in
28062 .) # No --srcdir option. We are building in place.
28063 ac_srcdir=.
28064 if test -z "$ac_top_builddir"; then
28065 ac_top_srcdir=.
28066 else
28067 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28068 fi ;;
28069 [\\/]* | ?:[\\/]* ) # Absolute path.
28070 ac_srcdir=$srcdir$ac_dir_suffix;
28071 ac_top_srcdir=$srcdir ;;
28072 *) # Relative path.
28073 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28074 ac_top_srcdir=$ac_top_builddir$srcdir ;;
28075 esac
28076
28077 # Do not use `cd foo && pwd` to compute absolute paths, because
28078 # the directories may not exist.
28079 case `pwd` in
28080 .) ac_abs_builddir="$ac_dir";;
28081 *)
28082 case "$ac_dir" in
28083 .) ac_abs_builddir=`pwd`;;
28084 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28085 *) ac_abs_builddir=`pwd`/"$ac_dir";;
28086 esac;;
28087 esac
28088 case $ac_abs_builddir in
28089 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28090 *)
28091 case ${ac_top_builddir}. in
28092 .) ac_abs_top_builddir=$ac_abs_builddir;;
28093 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28094 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28095 esac;;
28096 esac
28097 case $ac_abs_builddir in
28098 .) ac_abs_srcdir=$ac_srcdir;;
28099 *)
28100 case $ac_srcdir in
28101 .) ac_abs_srcdir=$ac_abs_builddir;;
28102 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28103 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28104 esac;;
28105 esac
28106 case $ac_abs_builddir in
28107 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28108 *)
28109 case $ac_top_srcdir in
28110 .) ac_abs_top_srcdir=$ac_abs_builddir;;
28111 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28112 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28113 esac;;
28114 esac
28115
28116
28117 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
28118 echo "$as_me: executing $ac_dest commands" >&6;}
28119 case $ac_dest in
28120 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28121 # Strip MF so we end up with the name of the file.
28122 mf=`echo "$mf" | sed -e 's/:.*$//'`
28123 # Check whether this is an Automake generated Makefile or not.
28124 # We used to match only the files named `Makefile.in', but
28125 # some people rename them; so instead we look at the file content.
28126 # Grep'ing the first line is not enough: some people post-process
28127 # each Makefile.in and add a new line on top of each file to say so.
28128 # So let's grep whole file.
28129 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
28130 dirpart=`(dirname "$mf") 2>/dev/null ||
28131 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28132 X"$mf" : 'X\(//\)[^/]' \| \
28133 X"$mf" : 'X\(//\)$' \| \
28134 X"$mf" : 'X\(/\)' \| \
28135 . : '\(.\)' 2>/dev/null ||
28136 echo X"$mf" |
28137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28138 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28139 /^X\(\/\/\)$/{ s//\1/; q; }
28140 /^X\(\/\).*/{ s//\1/; q; }
28141 s/.*/./; q'`
28142 else
28143 continue
28144 fi
28145 # Extract the definition of DEPDIR, am__include, and am__quote
28146 # from the Makefile without running `make'.
28147 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28148 test -z "$DEPDIR" && continue
28149 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28150 test -z "am__include" && continue
28151 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28152 # When using ansi2knr, U may be empty or an underscore; expand it
28153 U=`sed -n 's/^U = //p' < "$mf"`
28154 # Find all dependency output files, they are included files with
28155 # $(DEPDIR) in their names. We invoke sed twice because it is the
28156 # simplest approach to changing $(DEPDIR) to its actual value in the
28157 # expansion.
28158 for file in `sed -n "
28159 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28160 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28161 # Make sure the directory exists.
28162 test -f "$dirpart/$file" && continue
28163 fdir=`(dirname "$file") 2>/dev/null ||
28164 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28165 X"$file" : 'X\(//\)[^/]' \| \
28166 X"$file" : 'X\(//\)$' \| \
28167 X"$file" : 'X\(/\)' \| \
28168 . : '\(.\)' 2>/dev/null ||
28169 echo X"$file" |
28170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28171 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28172 /^X\(\/\/\)$/{ s//\1/; q; }
28173 /^X\(\/\).*/{ s//\1/; q; }
28174 s/.*/./; q'`
28175 { if $as_mkdir_p; then
28176 mkdir -p $dirpart/$fdir
28177 else
28178 as_dir=$dirpart/$fdir
28179 as_dirs=
28180 while test ! -d "$as_dir"; do
28181 as_dirs="$as_dir $as_dirs"
28182 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28183 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28184 X"$as_dir" : 'X\(//\)[^/]' \| \
28185 X"$as_dir" : 'X\(//\)$' \| \
28186 X"$as_dir" : 'X\(/\)' \| \
28187 . : '\(.\)' 2>/dev/null ||
28188 echo X"$as_dir" |
28189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28190 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28191 /^X\(\/\/\)$/{ s//\1/; q; }
28192 /^X\(\/\).*/{ s//\1/; q; }
28193 s/.*/./; q'`
28194 done
28195 test ! -n "$as_dirs" || mkdir $as_dirs
28196 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
28197 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
28198 { (exit 1); exit 1; }; }; }
28199
28200 # echo "creating $dirpart/$file"
28201 echo '# dummy' > "$dirpart/$file"
28202 done
28203 done
28204 ;;
28205 default-1 )
28206 for ac_file in $CONFIG_FILES; do
28207 # Support "outfile[:infile[:infile...]]"
28208 case "$ac_file" in
28209 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
28210 esac
28211 # PO directories have a Makefile.in generated from Makefile.in.in.
28212 case "$ac_file" in */Makefile.in)
28213 # Adjust a relative srcdir.
28214 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
28215 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
28216 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
28217 # In autoconf-2.13 it is called $ac_given_srcdir.
28218 # In autoconf-2.50 it is called $srcdir.
28219 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
28220 case "$ac_given_srcdir" in
28221 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
28222 /*) top_srcdir="$ac_given_srcdir" ;;
28223 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
28224 esac
28225 # Treat a directory as a PO directory if and only if it has a
28226 # POTFILES.in file. This allows packages to have multiple PO
28227 # directories under different names or in different locations.
28228 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
28229 rm -f "$ac_dir/POTFILES"
28230 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
28231 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
28232 POMAKEFILEDEPS="POTFILES.in"
28233 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
28234 # on $ac_dir but don't depend on user-specified configuration
28235 # parameters.
28236 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
28237 # The LINGUAS file contains the set of available languages.
28238 if test -n "$OBSOLETE_ALL_LINGUAS"; then
28239 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
28240 fi
28241 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
28242 # Hide the ALL_LINGUAS assigment from automake.
28243 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
28244 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
28245 else
28246 # The set of available languages was given in configure.in.
28247 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
28248 fi
28249 # Compute POFILES
28250 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
28251 # Compute UPDATEPOFILES
28252 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
28253 # Compute DUMMYPOFILES
28254 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
28255 # Compute GMOFILES
28256 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
28257 case "$ac_given_srcdir" in
28258 .) srcdirpre= ;;
28259 *) srcdirpre='$(srcdir)/' ;;
28260 esac
28261 POFILES=
28262 UPDATEPOFILES=
28263 DUMMYPOFILES=
28264 GMOFILES=
28265 for lang in $ALL_LINGUAS; do
28266 POFILES="$POFILES $srcdirpre$lang.po"
28267 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
28268 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
28269 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
28270 done
28271 # CATALOGS depends on both $ac_dir and the user's LINGUAS
28272 # environment variable.
28273 INST_LINGUAS=
28274 if test -n "$ALL_LINGUAS"; then
28275 for presentlang in $ALL_LINGUAS; do
28276 useit=no
28277 if test "%UNSET%" != "$LINGUAS"; then
28278 desiredlanguages="$LINGUAS"
28279 else
28280 desiredlanguages="$ALL_LINGUAS"
28281 fi
28282 for desiredlang in $desiredlanguages; do
28283 # Use the presentlang catalog if desiredlang is
28284 # a. equal to presentlang, or
28285 # b. a variant of presentlang (because in this case,
28286 # presentlang can be used as a fallback for messages
28287 # which are not translated in the desiredlang catalog).
28288 case "$desiredlang" in
28289 "$presentlang"*) useit=yes;;
28290 esac
28291 done
28292 if test $useit = yes; then
28293 INST_LINGUAS="$INST_LINGUAS $presentlang"
28294 fi
28295 done
28296 fi
28297 CATALOGS=
28298 if test -n "$INST_LINGUAS"; then
28299 for lang in $INST_LINGUAS; do
28300 CATALOGS="$CATALOGS $lang.gmo"
28301 done
28302 fi
28303 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
28304 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
28305 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
28306 if test -f "$f"; then
28307 case "$f" in
28308 *.orig | *.bak | *~) ;;
28309 *) cat "$f" >> "$ac_dir/Makefile" ;;
28310 esac
28311 fi
28312 done
28313 fi
28314 ;;
28315 esac
28316 done ;;
28317 esac
28318 done
28319 _ACEOF
28320
28321 cat >>$CONFIG_STATUS <<\_ACEOF
28322
28323 { (exit 0); exit 0; }
28324 _ACEOF
28325 chmod +x $CONFIG_STATUS
28326 ac_clean_files=$ac_clean_files_save
28327
28328
28329 # configure is writing to config.log, and then calls config.status.
28330 # config.status does its own redirection, appending to config.log.
28331 # Unfortunately, on DOS this fails, as config.log is still kept open
28332 # by configure, so config.status won't be able to write to it; its
28333 # output is simply discarded. So we exec the FD to /dev/null,
28334 # effectively closing config.log, so it can be properly (re)opened and
28335 # appended to by config.status. When coming back to configure, we
28336 # need to make the FD available again.
28337 if test "$no_create" != yes; then
28338 ac_cs_success=:
28339 ac_config_status_args=
28340 test "$silent" = yes &&
28341 ac_config_status_args="$ac_config_status_args --quiet"
28342 exec 5>/dev/null
28343 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28344 exec 5>>config.log
28345 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28346 # would make configure fail if this is the last instruction.
28347 $ac_cs_success || { (exit 1); exit 1; }
28348 fi
28349
28350
28351 echo
28352 echo "Configuration:"
28353 echo " audiofile library: $use_audiofile"
28354 echo " mpeg audio support: $use_mad"
28355 echo " xmms volume adjust plugin: $use_xmms"
28356 echo