Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for cwidget 0.5.18.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='cwidget'
589 PACKAGE_TARNAME='cwidget'
590 PACKAGE_VERSION='0.5.18'
591 PACKAGE_STRING='cwidget 0.5.18'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="src/cwidget/toplevel.cc"
596 gt_needs=
597 # Factoring default headers for most tests.
598 ac_includes_default="\
599 #include <stdio.h>
600 #ifdef HAVE_SYS_TYPES_H
601 # include <sys/types.h>
602 #endif
603 #ifdef HAVE_SYS_STAT_H
604 # include <sys/stat.h>
605 #endif
606 #ifdef STDC_HEADERS
607 # include <stdlib.h>
608 # include <stddef.h>
609 #else
610 # ifdef HAVE_STDLIB_H
611 # include <stdlib.h>
612 # endif
613 #endif
614 #ifdef HAVE_STRING_H
615 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
616 # include <memory.h>
617 # endif
618 # include <string.h>
619 #endif
620 #ifdef HAVE_STRINGS_H
621 # include <strings.h>
622 #endif
623 #ifdef HAVE_INTTYPES_H
624 # include <inttypes.h>
625 #endif
626 #ifdef HAVE_STDINT_H
627 # include <stdint.h>
628 #endif
629 #ifdef HAVE_UNISTD_H
630 # include <unistd.h>
631 #endif"
632
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 HAVE_CPPUNIT_FALSE
638 HAVE_CPPUNIT_TRUE
639 CPPUNIT_LIBS
640 CPPUNIT_CFLAGS
641 WERROR
642 SIGC_LIBS
643 SIGC_CFLAGS
644 PKG_CONFIG_LIBDIR
645 PKG_CONFIG_PATH
646 PKG_CONFIG
647 IKIWIKI_FALSE
648 IKIWIKI_TRUE
649 IKIWIKI
650 DOXYGEN_FALSE
651 DOXYGEN_TRUE
652 DOXYGEN
653 CPP
654 LT_SYS_LIBRARY_PATH
655 OTOOL64
656 OTOOL
657 LIPO
658 NMEDIT
659 DSYMUTIL
660 MANIFEST_TOOL
661 RANLIB
662 ac_ct_AR
663 AR
664 DLLTOOL
665 OBJDUMP
666 LN_S
667 NM
668 ac_ct_DUMPBIN
669 DUMPBIN
670 LD
671 FGREP
672 LIBTOOL
673 POSUB
674 LTLIBINTL
675 LIBINTL
676 INTLLIBS
677 LTLIBICONV
678 LIBICONV
679 INTL_MACOSX_LIBS
680 EGREP
681 GREP
682 CXXCPP
683 am__fastdepCXX_FALSE
684 am__fastdepCXX_TRUE
685 CXXDEPMODE
686 ac_ct_CXX
687 CXXFLAGS
688 CXX
689 host_os
690 host_vendor
691 host_cpu
692 host
693 build_os
694 build_vendor
695 build_cpu
696 build
697 am__fastdepCC_FALSE
698 am__fastdepCC_TRUE
699 CCDEPMODE
700 am__nodep
701 AMDEPBACKSLASH
702 AMDEP_FALSE
703 AMDEP_TRUE
704 am__include
705 DEPDIR
706 OBJEXT
707 EXEEXT
708 ac_ct_CC
709 CPPFLAGS
710 LDFLAGS
711 CFLAGS
712 CC
713 XGETTEXT_EXTRA_OPTIONS
714 MSGMERGE
715 XGETTEXT_015
716 XGETTEXT
717 GMSGFMT_015
718 MSGFMT_015
719 GMSGFMT
720 MSGFMT
721 GETTEXT_MACRO_VERSION
722 USE_NLS
723 SED
724 BUILD_LIBRARY_FALSE
725 BUILD_LIBRARY_TRUE
726 AM_BACKSLASH
727 AM_DEFAULT_VERBOSITY
728 AM_DEFAULT_V
729 AM_V
730 am__untar
731 am__tar
732 AMTAR
733 am__leading_dot
734 SET_MAKE
735 AWK
736 mkdir_p
737 MKDIR_P
738 INSTALL_STRIP_PROGRAM
739 STRIP
740 install_sh
741 MAKEINFO
742 AUTOHEADER
743 AUTOMAKE
744 AUTOCONF
745 ACLOCAL
746 VERSION
747 PACKAGE
748 CYGPATH_W
749 am__isrc
750 INSTALL_DATA
751 INSTALL_SCRIPT
752 INSTALL_PROGRAM
753 target_alias
754 host_alias
755 build_alias
756 LIBS
757 ECHO_T
758 ECHO_N
759 ECHO_C
760 DEFS
761 mandir
762 localedir
763 libdir
764 psdir
765 pdfdir
766 dvidir
767 htmldir
768 infodir
769 docdir
770 oldincludedir
771 includedir
772 runstatedir
773 localstatedir
774 sharedstatedir
775 sysconfdir
776 datadir
777 datarootdir
778 libexecdir
779 sbindir
780 bindir
781 program_transform_name
782 prefix
783 exec_prefix
784 PACKAGE_URL
785 PACKAGE_BUGREPORT
786 PACKAGE_STRING
787 PACKAGE_VERSION
788 PACKAGE_TARNAME
789 PACKAGE_NAME
790 PATH_SEPARATOR
791 SHELL
792 am__quote'
793 ac_subst_files=''
794 ac_user_opts='
795 enable_option_checking
796 enable_silent_rules
797 enable_library
798 enable_nls
799 enable_dependency_tracking
800 with_gnu_ld
801 enable_rpath
802 with_libiconv_prefix
803 with_libintl_prefix
804 enable_shared
805 enable_static
806 with_pic
807 enable_fast_install
808 with_aix_soname
809 with_sysroot
810 enable_libtool_lock
811 enable_dynamic_backtrace
812 enable_werror
813 '
814 ac_precious_vars='build_alias
815 host_alias
816 target_alias
817 CC
818 CFLAGS
819 LDFLAGS
820 LIBS
821 CPPFLAGS
822 CXX
823 CXXFLAGS
824 CCC
825 CXXCPP
826 LT_SYS_LIBRARY_PATH
827 CPP
828 PKG_CONFIG
829 PKG_CONFIG_PATH
830 PKG_CONFIG_LIBDIR
831 SIGC_CFLAGS
832 SIGC_LIBS
833 CPPUNIT_CFLAGS
834 CPPUNIT_LIBS'
835
836
837 # Initialize some variables set by options.
838 ac_init_help=
839 ac_init_version=false
840 ac_unrecognized_opts=
841 ac_unrecognized_sep=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
844 cache_file=/dev/null
845 exec_prefix=NONE
846 no_create=
847 no_recursion=
848 prefix=NONE
849 program_prefix=NONE
850 program_suffix=NONE
851 program_transform_name=s,x,x,
852 silent=
853 site=
854 srcdir=
855 verbose=
856 x_includes=NONE
857 x_libraries=NONE
858
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir='${exec_prefix}/bin'
866 sbindir='${exec_prefix}/sbin'
867 libexecdir='${exec_prefix}/libexec'
868 datarootdir='${prefix}/share'
869 datadir='${datarootdir}'
870 sysconfdir='${prefix}/etc'
871 sharedstatedir='${prefix}/com'
872 localstatedir='${prefix}/var'
873 runstatedir='${localstatedir}/run'
874 includedir='${prefix}/include'
875 oldincludedir='/usr/include'
876 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
877 infodir='${datarootdir}/info'
878 htmldir='${docdir}'
879 dvidir='${docdir}'
880 pdfdir='${docdir}'
881 psdir='${docdir}'
882 libdir='${exec_prefix}/lib'
883 localedir='${datarootdir}/locale'
884 mandir='${datarootdir}/man'
885
886 ac_prev=
887 ac_dashdash=
888 for ac_option
889 do
890 # If the previous option needs an argument, assign it.
891 if test -n "$ac_prev"; then
892 eval $ac_prev=\$ac_option
893 ac_prev=
894 continue
895 fi
896
897 case $ac_option in
898 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899 *=) ac_optarg= ;;
900 *) ac_optarg=yes ;;
901 esac
902
903 # Accept the important Cygnus configure options, so we can diagnose typos.
904
905 case $ac_dashdash$ac_option in
906 --)
907 ac_dashdash=yes ;;
908
909 -bindir | --bindir | --bindi | --bind | --bin | --bi)
910 ac_prev=bindir ;;
911 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
912 bindir=$ac_optarg ;;
913
914 -build | --build | --buil | --bui | --bu)
915 ac_prev=build_alias ;;
916 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
917 build_alias=$ac_optarg ;;
918
919 -cache-file | --cache-file | --cache-fil | --cache-fi \
920 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921 ac_prev=cache_file ;;
922 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
924 cache_file=$ac_optarg ;;
925
926 --config-cache | -C)
927 cache_file=config.cache ;;
928
929 -datadir | --datadir | --datadi | --datad)
930 ac_prev=datadir ;;
931 -datadir=* | --datadir=* | --datadi=* | --datad=*)
932 datadir=$ac_optarg ;;
933
934 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935 | --dataroo | --dataro | --datar)
936 ac_prev=datarootdir ;;
937 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939 datarootdir=$ac_optarg ;;
940
941 -disable-* | --disable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 as_fn_error $? "invalid feature name: $ac_useropt"
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
949 *"
950 "enable_$ac_useropt"
951 "*) ;;
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
954 esac
955 eval enable_$ac_useropt=no ;;
956
957 -docdir | --docdir | --docdi | --doc | --do)
958 ac_prev=docdir ;;
959 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960 docdir=$ac_optarg ;;
961
962 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963 ac_prev=dvidir ;;
964 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965 dvidir=$ac_optarg ;;
966
967 -enable-* | --enable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: $ac_useropt"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976 "enable_$ac_useropt"
977 "*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=\$ac_optarg ;;
982
983 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985 | --exec | --exe | --ex)
986 ac_prev=exec_prefix ;;
987 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989 | --exec=* | --exe=* | --ex=*)
990 exec_prefix=$ac_optarg ;;
991
992 -gas | --gas | --ga | --g)
993 # Obsolete; use --with-gas.
994 with_gas=yes ;;
995
996 -help | --help | --hel | --he | -h)
997 ac_init_help=long ;;
998 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999 ac_init_help=recursive ;;
1000 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001 ac_init_help=short ;;
1002
1003 -host | --host | --hos | --ho)
1004 ac_prev=host_alias ;;
1005 -host=* | --host=* | --hos=* | --ho=*)
1006 host_alias=$ac_optarg ;;
1007
1008 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009 ac_prev=htmldir ;;
1010 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011 | --ht=*)
1012 htmldir=$ac_optarg ;;
1013
1014 -includedir | --includedir | --includedi | --included | --include \
1015 | --includ | --inclu | --incl | --inc)
1016 ac_prev=includedir ;;
1017 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018 | --includ=* | --inclu=* | --incl=* | --inc=*)
1019 includedir=$ac_optarg ;;
1020
1021 -infodir | --infodir | --infodi | --infod | --info | --inf)
1022 ac_prev=infodir ;;
1023 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1024 infodir=$ac_optarg ;;
1025
1026 -libdir | --libdir | --libdi | --libd)
1027 ac_prev=libdir ;;
1028 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1029 libdir=$ac_optarg ;;
1030
1031 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032 | --libexe | --libex | --libe)
1033 ac_prev=libexecdir ;;
1034 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035 | --libexe=* | --libex=* | --libe=*)
1036 libexecdir=$ac_optarg ;;
1037
1038 -localedir | --localedir | --localedi | --localed | --locale)
1039 ac_prev=localedir ;;
1040 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041 localedir=$ac_optarg ;;
1042
1043 -localstatedir | --localstatedir | --localstatedi | --localstated \
1044 | --localstate | --localstat | --localsta | --localst | --locals)
1045 ac_prev=localstatedir ;;
1046 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1047 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1048 localstatedir=$ac_optarg ;;
1049
1050 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051 ac_prev=mandir ;;
1052 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1053 mandir=$ac_optarg ;;
1054
1055 -nfp | --nfp | --nf)
1056 # Obsolete; use --without-fp.
1057 with_fp=no ;;
1058
1059 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1060 | --no-cr | --no-c | -n)
1061 no_create=yes ;;
1062
1063 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065 no_recursion=yes ;;
1066
1067 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069 | --oldin | --oldi | --old | --ol | --o)
1070 ac_prev=oldincludedir ;;
1071 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1074 oldincludedir=$ac_optarg ;;
1075
1076 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077 ac_prev=prefix ;;
1078 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1079 prefix=$ac_optarg ;;
1080
1081 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082 | --program-pre | --program-pr | --program-p)
1083 ac_prev=program_prefix ;;
1084 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1086 program_prefix=$ac_optarg ;;
1087
1088 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089 | --program-suf | --program-su | --program-s)
1090 ac_prev=program_suffix ;;
1091 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1093 program_suffix=$ac_optarg ;;
1094
1095 -program-transform-name | --program-transform-name \
1096 | --program-transform-nam | --program-transform-na \
1097 | --program-transform-n | --program-transform- \
1098 | --program-transform | --program-transfor \
1099 | --program-transfo | --program-transf \
1100 | --program-trans | --program-tran \
1101 | --progr-tra | --program-tr | --program-t)
1102 ac_prev=program_transform_name ;;
1103 -program-transform-name=* | --program-transform-name=* \
1104 | --program-transform-nam=* | --program-transform-na=* \
1105 | --program-transform-n=* | --program-transform-=* \
1106 | --program-transform=* | --program-transfor=* \
1107 | --program-transfo=* | --program-transf=* \
1108 | --program-trans=* | --program-tran=* \
1109 | --progr-tra=* | --program-tr=* | --program-t=*)
1110 program_transform_name=$ac_optarg ;;
1111
1112 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113 ac_prev=pdfdir ;;
1114 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115 pdfdir=$ac_optarg ;;
1116
1117 -psdir | --psdir | --psdi | --psd | --ps)
1118 ac_prev=psdir ;;
1119 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120 psdir=$ac_optarg ;;
1121
1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1124 silent=yes ;;
1125
1126 -runstatedir | --runstatedir | --runstatedi | --runstated \
1127 | --runstate | --runstat | --runsta | --runst | --runs \
1128 | --run | --ru | --r)
1129 ac_prev=runstatedir ;;
1130 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1131 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1132 | --run=* | --ru=* | --r=*)
1133 runstatedir=$ac_optarg ;;
1134
1135 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136 ac_prev=sbindir ;;
1137 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138 | --sbi=* | --sb=*)
1139 sbindir=$ac_optarg ;;
1140
1141 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143 | --sharedst | --shareds | --shared | --share | --shar \
1144 | --sha | --sh)
1145 ac_prev=sharedstatedir ;;
1146 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149 | --sha=* | --sh=*)
1150 sharedstatedir=$ac_optarg ;;
1151
1152 -site | --site | --sit)
1153 ac_prev=site ;;
1154 -site=* | --site=* | --sit=*)
1155 site=$ac_optarg ;;
1156
1157 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158 ac_prev=srcdir ;;
1159 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1160 srcdir=$ac_optarg ;;
1161
1162 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163 | --syscon | --sysco | --sysc | --sys | --sy)
1164 ac_prev=sysconfdir ;;
1165 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1167 sysconfdir=$ac_optarg ;;
1168
1169 -target | --target | --targe | --targ | --tar | --ta | --t)
1170 ac_prev=target_alias ;;
1171 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1172 target_alias=$ac_optarg ;;
1173
1174 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175 verbose=yes ;;
1176
1177 -version | --version | --versio | --versi | --vers | -V)
1178 ac_init_version=: ;;
1179
1180 -with-* | --with-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error $? "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1188 *"
1189 "with_$ac_useropt"
1190 "*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=\$ac_optarg ;;
1195
1196 -without-* | --without-*)
1197 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 as_fn_error $? "invalid package name: $ac_useropt"
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1204 *"
1205 "with_$ac_useropt"
1206 "*) ;;
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1209 esac
1210 eval with_$ac_useropt=no ;;
1211
1212 --x)
1213 # Obsolete; use --with-x.
1214 with_x=yes ;;
1215
1216 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217 | --x-incl | --x-inc | --x-in | --x-i)
1218 ac_prev=x_includes ;;
1219 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221 x_includes=$ac_optarg ;;
1222
1223 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225 ac_prev=x_libraries ;;
1226 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228 x_libraries=$ac_optarg ;;
1229
1230 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1231 Try \`$0 --help' for more information"
1232 ;;
1233
1234 *=*)
1235 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236 # Reject names that are not valid shell variable names.
1237 case $ac_envvar in #(
1238 '' | [0-9]* | *[!_$as_cr_alnum]* )
1239 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1240 esac
1241 eval $ac_envvar=\$ac_optarg
1242 export $ac_envvar ;;
1243
1244 *)
1245 # FIXME: should be removed in autoconf 3.0.
1246 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1250 ;;
1251
1252 esac
1253 done
1254
1255 if test -n "$ac_prev"; then
1256 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257 as_fn_error $? "missing argument to $ac_option"
1258 fi
1259
1260 if test -n "$ac_unrecognized_opts"; then
1261 case $enable_option_checking in
1262 no) ;;
1263 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1264 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265 esac
1266 fi
1267
1268 # Check all directory arguments for consistency.
1269 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270 datadir sysconfdir sharedstatedir localstatedir includedir \
1271 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272 libdir localedir mandir runstatedir
1273 do
1274 eval ac_val=\$$ac_var
1275 # Remove trailing slashes.
1276 case $ac_val in
1277 */ )
1278 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279 eval $ac_var=\$ac_val;;
1280 esac
1281 # Be sure to have absolute directory names.
1282 case $ac_val in
1283 [\\/$]* | ?:[\\/]* ) continue;;
1284 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285 esac
1286 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1287 done
1288
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1292 build=$build_alias
1293 host=$host_alias
1294 target=$target_alias
1295
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x; then
1298 if test "x$build_alias" = x; then
1299 cross_compiling=maybe
1300 elif test "x$build_alias" != "x$host_alias"; then
1301 cross_compiling=yes
1302 fi
1303 fi
1304
1305 ac_tool_prefix=
1306 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307
1308 test "$silent" = yes && exec 6>/dev/null
1309
1310
1311 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312 ac_ls_di=`ls -di .` &&
1313 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314 as_fn_error $? "working directory cannot be determined"
1315 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1316 as_fn_error $? "pwd does not report name of working directory"
1317
1318
1319 # Find the source files, if location was not specified.
1320 if test -z "$srcdir"; then
1321 ac_srcdir_defaulted=yes
1322 # Try the directory containing this script, then the parent directory.
1323 ac_confdir=`$as_dirname -- "$as_myself" ||
1324 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1325 X"$as_myself" : 'X\(//\)[^/]' \| \
1326 X"$as_myself" : 'X\(//\)$' \| \
1327 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1328 $as_echo X"$as_myself" |
1329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\/\)[^/].*/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\/\)$/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\).*/{
1342 s//\1/
1343 q
1344 }
1345 s/.*/./; q'`
1346 srcdir=$ac_confdir
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 srcdir=..
1349 fi
1350 else
1351 ac_srcdir_defaulted=no
1352 fi
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1355 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1356 fi
1357 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358 ac_abs_confdir=`(
1359 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1360 pwd)`
1361 # When building in place, set srcdir=.
1362 if test "$ac_abs_confdir" = "$ac_pwd"; then
1363 srcdir=.
1364 fi
1365 # Remove unnecessary trailing slashes from srcdir.
1366 # Double slashes in file names in object file debugging info
1367 # mess up M-x gdb in Emacs.
1368 case $srcdir in
1369 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370 esac
1371 for ac_var in $ac_precious_vars; do
1372 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_env_${ac_var}_value=\$${ac_var}
1374 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1376 done
1377
1378 #
1379 # Report the --help message.
1380 #
1381 if test "$ac_init_help" = "long"; then
1382 # Omit some internal or obsolete options to make the list less imposing.
1383 # This message is too long to be a string in the A/UX 3.1 sh.
1384 cat <<_ACEOF
1385 \`configure' configures cwidget 0.5.18 to adapt to many kinds of systems.
1386
1387 Usage: $0 [OPTION]... [VAR=VALUE]...
1388
1389 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1390 VAR=VALUE. See below for descriptions of some of the useful variables.
1391
1392 Defaults for the options are specified in brackets.
1393
1394 Configuration:
1395 -h, --help display this help and exit
1396 --help=short display options specific to this package
1397 --help=recursive display the short help of all the included packages
1398 -V, --version display version information and exit
1399 -q, --quiet, --silent do not print \`checking ...' messages
1400 --cache-file=FILE cache test results in FILE [disabled]
1401 -C, --config-cache alias for \`--cache-file=config.cache'
1402 -n, --no-create do not create output files
1403 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1404
1405 Installation directories:
1406 --prefix=PREFIX install architecture-independent files in PREFIX
1407 [$ac_default_prefix]
1408 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1409 [PREFIX]
1410
1411 By default, \`make install' will install all the files in
1412 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1413 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1414 for instance \`--prefix=\$HOME'.
1415
1416 For better control, use the options below.
1417
1418 Fine tuning of the installation directories:
1419 --bindir=DIR user executables [EPREFIX/bin]
1420 --sbindir=DIR system admin executables [EPREFIX/sbin]
1421 --libexecdir=DIR program executables [EPREFIX/libexec]
1422 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1423 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1424 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1425 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1426 --libdir=DIR object code libraries [EPREFIX/lib]
1427 --includedir=DIR C header files [PREFIX/include]
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/cwidget]
1435 --htmldir=DIR html documentation [DOCDIR]
1436 --dvidir=DIR dvi documentation [DOCDIR]
1437 --pdfdir=DIR pdf documentation [DOCDIR]
1438 --psdir=DIR ps documentation [DOCDIR]
1439 _ACEOF
1440
1441 cat <<\_ACEOF
1442
1443 Program names:
1444 --program-prefix=PREFIX prepend PREFIX to installed program names
1445 --program-suffix=SUFFIX append SUFFIX to installed program names
1446 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1447
1448 System types:
1449 --build=BUILD configure for building on BUILD [guessed]
1450 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1451 _ACEOF
1452 fi
1453
1454 if test -n "$ac_init_help"; then
1455 case $ac_init_help in
1456 short | recursive ) echo "Configuration of cwidget 0.5.18:";;
1457 esac
1458 cat <<\_ACEOF
1459
1460 Optional Features:
1461 --disable-option-checking ignore unrecognized --enable/--with options
1462 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1463 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1464 --enable-silent-rules less verbose build output (undo: "make V=1")
1465 --disable-silent-rules verbose build output (undo: "make V=0")
1466 --disable-library Disable building the library itself; only build
1467 documentation.
1468 --disable-nls do not use Native Language Support
1469 --enable-dependency-tracking
1470 do not reject slow dependency extractors
1471 --disable-dependency-tracking
1472 speeds up one-time build
1473 --disable-rpath do not hardcode runtime library paths
1474 --enable-shared[=PKGS] build shared libraries [default=yes]
1475 --enable-static[=PKGS] build static libraries [default=yes]
1476 --enable-fast-install[=PKGS]
1477 optimize for fast installation [default=yes]
1478 --disable-libtool-lock avoid locking (might break parallel builds)
1479 --enable-dynamic-backtrace
1480 Modify the executable so that it can generate a
1481 backtrace for uncaught exceptions. Will double the
1482 size of the stripped binary.
1483 --disable-werror do not compile with -Werror
1484
1485 Optional Packages:
1486 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1487 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1488 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1489 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1490 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1491 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1492 --without-libintl-prefix don't search for libintl in includedir and libdir
1493 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1494 both]
1495 --with-aix-soname=aix|svr4|both
1496 shared library versioning (aka "SONAME") variant to
1497 provide on AIX, [default=aix].
1498 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1499 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1500 compiler's sysroot if not specified).
1501
1502 Some influential environment variables:
1503 CC C compiler command
1504 CFLAGS C compiler flags
1505 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1506 nonstandard directory <lib dir>
1507 LIBS libraries to pass to the linker, e.g. -l<library>
1508 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1509 you have headers in a nonstandard directory <include dir>
1510 CXX C++ compiler command
1511 CXXFLAGS C++ compiler flags
1512 CXXCPP C++ preprocessor
1513 LT_SYS_LIBRARY_PATH
1514 User-defined run-time library search path.
1515 CPP C preprocessor
1516 PKG_CONFIG path to pkg-config utility
1517 PKG_CONFIG_PATH
1518 directories to add to pkg-config's search path
1519 PKG_CONFIG_LIBDIR
1520 path overriding pkg-config's built-in search path
1521 SIGC_CFLAGS C compiler flags for SIGC, overriding pkg-config
1522 SIGC_LIBS linker flags for SIGC, overriding pkg-config
1523 CPPUNIT_CFLAGS
1524 C compiler flags for CPPUNIT, overriding pkg-config
1525 CPPUNIT_LIBS
1526 linker flags for CPPUNIT, overriding pkg-config
1527
1528 Use these variables to override the choices made by `configure' or to help
1529 it to find libraries and programs with nonstandard names/locations.
1530
1531 Report bugs to the package provider.
1532 _ACEOF
1533 ac_status=$?
1534 fi
1535
1536 if test "$ac_init_help" = "recursive"; then
1537 # If there are subdirs, report their specific --help.
1538 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1539 test -d "$ac_dir" ||
1540 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1541 continue
1542 ac_builddir=.
1543
1544 case "$ac_dir" in
1545 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546 *)
1547 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1548 # A ".." for each directory in $ac_dir_suffix.
1549 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1550 case $ac_top_builddir_sub in
1551 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1553 esac ;;
1554 esac
1555 ac_abs_top_builddir=$ac_pwd
1556 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1557 # for backward compatibility:
1558 ac_top_builddir=$ac_top_build_prefix
1559
1560 case $srcdir in
1561 .) # We are building in place.
1562 ac_srcdir=.
1563 ac_top_srcdir=$ac_top_builddir_sub
1564 ac_abs_top_srcdir=$ac_pwd ;;
1565 [\\/]* | ?:[\\/]* ) # Absolute name.
1566 ac_srcdir=$srcdir$ac_dir_suffix;
1567 ac_top_srcdir=$srcdir
1568 ac_abs_top_srcdir=$srcdir ;;
1569 *) # Relative name.
1570 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1571 ac_top_srcdir=$ac_top_build_prefix$srcdir
1572 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1573 esac
1574 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1575
1576 cd "$ac_dir" || { ac_status=$?; continue; }
1577 # Check for guested configure.
1578 if test -f "$ac_srcdir/configure.gnu"; then
1579 echo &&
1580 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1581 elif test -f "$ac_srcdir/configure"; then
1582 echo &&
1583 $SHELL "$ac_srcdir/configure" --help=recursive
1584 else
1585 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1586 fi || ac_status=$?
1587 cd "$ac_pwd" || { ac_status=$?; break; }
1588 done
1589 fi
1590
1591 test -n "$ac_init_help" && exit $ac_status
1592 if $ac_init_version; then
1593 cat <<\_ACEOF
1594 cwidget configure 0.5.18
1595 generated by GNU Autoconf 2.69
1596
1597 Copyright (C) 2012 Free Software Foundation, Inc.
1598 This configure script is free software; the Free Software Foundation
1599 gives unlimited permission to copy, distribute and modify it.
1600 _ACEOF
1601 exit
1602 fi
1603
1604 ## ------------------------ ##
1605 ## Autoconf initialization. ##
1606 ## ------------------------ ##
1607
1608 # ac_fn_c_try_compile LINENO
1609 # --------------------------
1610 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1611 ac_fn_c_try_compile ()
1612 {
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 rm -f conftest.$ac_objext
1615 if { { ac_try="$ac_compile"
1616 case "(($ac_try" in
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1619 esac
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 $as_echo "$ac_try_echo"; } >&5
1622 (eval "$ac_compile") 2>conftest.err
1623 ac_status=$?
1624 if test -s conftest.err; then
1625 grep -v '^ *+' conftest.err >conftest.er1
1626 cat conftest.er1 >&5
1627 mv -f conftest.er1 conftest.err
1628 fi
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } && {
1631 test -z "$ac_c_werror_flag" ||
1632 test ! -s conftest.err
1633 } && test -s conftest.$ac_objext; then :
1634 ac_retval=0
1635 else
1636 $as_echo "$as_me: failed program was:" >&5
1637 sed 's/^/| /' conftest.$ac_ext >&5
1638
1639 ac_retval=1
1640 fi
1641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642 as_fn_set_status $ac_retval
1643
1644 } # ac_fn_c_try_compile
1645
1646 # ac_fn_cxx_try_compile LINENO
1647 # ----------------------------
1648 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1649 ac_fn_cxx_try_compile ()
1650 {
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 rm -f conftest.$ac_objext
1653 if { { ac_try="$ac_compile"
1654 case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_compile") 2>conftest.err
1661 ac_status=$?
1662 if test -s conftest.err; then
1663 grep -v '^ *+' conftest.err >conftest.er1
1664 cat conftest.er1 >&5
1665 mv -f conftest.er1 conftest.err
1666 fi
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } && {
1669 test -z "$ac_cxx_werror_flag" ||
1670 test ! -s conftest.err
1671 } && test -s conftest.$ac_objext; then :
1672 ac_retval=0
1673 else
1674 $as_echo "$as_me: failed program was:" >&5
1675 sed 's/^/| /' conftest.$ac_ext >&5
1676
1677 ac_retval=1
1678 fi
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680 as_fn_set_status $ac_retval
1681
1682 } # ac_fn_cxx_try_compile
1683
1684 # ac_fn_cxx_try_cpp LINENO
1685 # ------------------------
1686 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1687 ac_fn_cxx_try_cpp ()
1688 {
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 if { { ac_try="$ac_cpp conftest.$ac_ext"
1691 case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1698 ac_status=$?
1699 if test -s conftest.err; then
1700 grep -v '^ *+' conftest.err >conftest.er1
1701 cat conftest.er1 >&5
1702 mv -f conftest.er1 conftest.err
1703 fi
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } > conftest.i && {
1706 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1707 test ! -s conftest.err
1708 }; then :
1709 ac_retval=0
1710 else
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1713
1714 ac_retval=1
1715 fi
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717 as_fn_set_status $ac_retval
1718
1719 } # ac_fn_cxx_try_cpp
1720
1721 # ac_fn_cxx_try_link LINENO
1722 # -------------------------
1723 # Try to link conftest.$ac_ext, and return whether this succeeded.
1724 ac_fn_cxx_try_link ()
1725 {
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 rm -f conftest.$ac_objext conftest$ac_exeext
1728 if { { ac_try="$ac_link"
1729 case "(($ac_try" in
1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731 *) ac_try_echo=$ac_try;;
1732 esac
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_link") 2>conftest.err
1736 ac_status=$?
1737 if test -s conftest.err; then
1738 grep -v '^ *+' conftest.err >conftest.er1
1739 cat conftest.er1 >&5
1740 mv -f conftest.er1 conftest.err
1741 fi
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; } && {
1744 test -z "$ac_cxx_werror_flag" ||
1745 test ! -s conftest.err
1746 } && test -s conftest$ac_exeext && {
1747 test "$cross_compiling" = yes ||
1748 test -x conftest$ac_exeext
1749 }; then :
1750 ac_retval=0
1751 else
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1754
1755 ac_retval=1
1756 fi
1757 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1758 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1759 # interfere with the next link command; also delete a directory that is
1760 # left behind by Apple's compiler. We do this before executing the actions.
1761 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763 as_fn_set_status $ac_retval
1764
1765 } # ac_fn_cxx_try_link
1766
1767 # ac_fn_cxx_try_run LINENO
1768 # ------------------------
1769 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1770 # that executables *can* be run.
1771 ac_fn_cxx_try_run ()
1772 {
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 if { { ac_try="$ac_link"
1775 case "(($ac_try" in
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_link") 2>&5
1782 ac_status=$?
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1785 { { case "(($ac_try" in
1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1788 esac
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791 (eval "$ac_try") 2>&5
1792 ac_status=$?
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; }; }; then :
1795 ac_retval=0
1796 else
1797 $as_echo "$as_me: program exited with status $ac_status" >&5
1798 $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1800
1801 ac_retval=$ac_status
1802 fi
1803 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 as_fn_set_status $ac_retval
1806
1807 } # ac_fn_cxx_try_run
1808
1809 # ac_fn_c_try_link LINENO
1810 # -----------------------
1811 # Try to link conftest.$ac_ext, and return whether this succeeded.
1812 ac_fn_c_try_link ()
1813 {
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 rm -f conftest.$ac_objext conftest$ac_exeext
1816 if { { ac_try="$ac_link"
1817 case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820 esac
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_link") 2>conftest.err
1824 ac_status=$?
1825 if test -s conftest.err; then
1826 grep -v '^ *+' conftest.err >conftest.er1
1827 cat conftest.er1 >&5
1828 mv -f conftest.er1 conftest.err
1829 fi
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } && {
1832 test -z "$ac_c_werror_flag" ||
1833 test ! -s conftest.err
1834 } && test -s conftest$ac_exeext && {
1835 test "$cross_compiling" = yes ||
1836 test -x conftest$ac_exeext
1837 }; then :
1838 ac_retval=0
1839 else
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1842
1843 ac_retval=1
1844 fi
1845 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1846 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1847 # interfere with the next link command; also delete a directory that is
1848 # left behind by Apple's compiler. We do this before executing the actions.
1849 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851 as_fn_set_status $ac_retval
1852
1853 } # ac_fn_c_try_link
1854
1855 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1856 # -------------------------------------------------------
1857 # Tests whether HEADER exists and can be compiled using the include files in
1858 # INCLUDES, setting the cache variable VAR accordingly.
1859 ac_fn_c_check_header_compile ()
1860 {
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863 $as_echo_n "checking for $2... " >&6; }
1864 if eval \${$3+:} false; then :
1865 $as_echo_n "(cached) " >&6
1866 else
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h. */
1869 $4
1870 #include <$2>
1871 _ACEOF
1872 if ac_fn_c_try_compile "$LINENO"; then :
1873 eval "$3=yes"
1874 else
1875 eval "$3=no"
1876 fi
1877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1878 fi
1879 eval ac_res=\$$3
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881 $as_echo "$ac_res" >&6; }
1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883
1884 } # ac_fn_c_check_header_compile
1885
1886 # ac_fn_c_try_cpp LINENO
1887 # ----------------------
1888 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1889 ac_fn_c_try_cpp ()
1890 {
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 if { { ac_try="$ac_cpp conftest.$ac_ext"
1893 case "(($ac_try" in
1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1896 esac
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1900 ac_status=$?
1901 if test -s conftest.err; then
1902 grep -v '^ *+' conftest.err >conftest.er1
1903 cat conftest.er1 >&5
1904 mv -f conftest.er1 conftest.err
1905 fi
1906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907 test $ac_status = 0; } > conftest.i && {
1908 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1909 test ! -s conftest.err
1910 }; then :
1911 ac_retval=0
1912 else
1913 $as_echo "$as_me: failed program was:" >&5
1914 sed 's/^/| /' conftest.$ac_ext >&5
1915
1916 ac_retval=1
1917 fi
1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919 as_fn_set_status $ac_retval
1920
1921 } # ac_fn_c_try_cpp
1922
1923 # ac_fn_c_try_run LINENO
1924 # ----------------------
1925 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1926 # that executables *can* be run.
1927 ac_fn_c_try_run ()
1928 {
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 if { { ac_try="$ac_link"
1931 case "(($ac_try" in
1932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1933 *) ac_try_echo=$ac_try;;
1934 esac
1935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936 $as_echo "$ac_try_echo"; } >&5
1937 (eval "$ac_link") 2>&5
1938 ac_status=$?
1939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1941 { { case "(($ac_try" in
1942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1943 *) ac_try_echo=$ac_try;;
1944 esac
1945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946 $as_echo "$ac_try_echo"; } >&5
1947 (eval "$ac_try") 2>&5
1948 ac_status=$?
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; }; }; then :
1951 ac_retval=0
1952 else
1953 $as_echo "$as_me: program exited with status $ac_status" >&5
1954 $as_echo "$as_me: failed program was:" >&5
1955 sed 's/^/| /' conftest.$ac_ext >&5
1956
1957 ac_retval=$ac_status
1958 fi
1959 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1961 as_fn_set_status $ac_retval
1962
1963 } # ac_fn_c_try_run
1964
1965 # ac_fn_c_check_func LINENO FUNC VAR
1966 # ----------------------------------
1967 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1968 ac_fn_c_check_func ()
1969 {
1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1972 $as_echo_n "checking for $2... " >&6; }
1973 if eval \${$3+:} false; then :
1974 $as_echo_n "(cached) " >&6
1975 else
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1978 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1980 #define $2 innocuous_$2
1981
1982 /* System header to define __stub macros and hopefully few prototypes,
1983 which can conflict with char $2 (); below.
1984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1985 <limits.h> exists even on freestanding compilers. */
1986
1987 #ifdef __STDC__
1988 # include <limits.h>
1989 #else
1990 # include <assert.h>
1991 #endif
1992
1993 #undef $2
1994
1995 /* Override any GCC internal prototype to avoid an error.
1996 Use char because int might match the return type of a GCC
1997 builtin and then its argument prototype would still apply. */
1998 #ifdef __cplusplus
1999 extern "C"
2000 #endif
2001 char $2 ();
2002 /* The GNU C library defines this for functions which it implements
2003 to always fail with ENOSYS. Some functions are actually named
2004 something starting with __ and the normal name is an alias. */
2005 #if defined __stub_$2 || defined __stub___$2
2006 choke me
2007 #endif
2008
2009 int
2010 main ()
2011 {
2012 return $2 ();
2013 ;
2014 return 0;
2015 }
2016 _ACEOF
2017 if ac_fn_c_try_link "$LINENO"; then :
2018 eval "$3=yes"
2019 else
2020 eval "$3=no"
2021 fi
2022 rm -f core conftest.err conftest.$ac_objext \
2023 conftest$ac_exeext conftest.$ac_ext
2024 fi
2025 eval ac_res=\$$3
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2027 $as_echo "$ac_res" >&6; }
2028 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2029
2030 } # ac_fn_c_check_func
2031
2032 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2033 # ---------------------------------------------------------
2034 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2035 # the include files in INCLUDES and setting the cache variable VAR
2036 # accordingly.
2037 ac_fn_cxx_check_header_mongrel ()
2038 {
2039 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2040 if eval \${$3+:} false; then :
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2042 $as_echo_n "checking for $2... " >&6; }
2043 if eval \${$3+:} false; then :
2044 $as_echo_n "(cached) " >&6
2045 fi
2046 eval ac_res=\$$3
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2049 else
2050 # Is the header compilable?
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2052 $as_echo_n "checking $2 usability... " >&6; }
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2055 $4
2056 #include <$2>
2057 _ACEOF
2058 if ac_fn_cxx_try_compile "$LINENO"; then :
2059 ac_header_compiler=yes
2060 else
2061 ac_header_compiler=no
2062 fi
2063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2065 $as_echo "$ac_header_compiler" >&6; }
2066
2067 # Is the header present?
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2069 $as_echo_n "checking $2 presence... " >&6; }
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h. */
2072 #include <$2>
2073 _ACEOF
2074 if ac_fn_cxx_try_cpp "$LINENO"; then :
2075 ac_header_preproc=yes
2076 else
2077 ac_header_preproc=no
2078 fi
2079 rm -f conftest.err conftest.i conftest.$ac_ext
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2081 $as_echo "$ac_header_preproc" >&6; }
2082
2083 # So? What about this header?
2084 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2085 yes:no: )
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2087 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2089 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2090 ;;
2091 no:yes:* )
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2093 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2095 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2097 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2099 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2101 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2102 ;;
2103 esac
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2105 $as_echo_n "checking for $2... " >&6; }
2106 if eval \${$3+:} false; then :
2107 $as_echo_n "(cached) " >&6
2108 else
2109 eval "$3=\$ac_header_compiler"
2110 fi
2111 eval ac_res=\$$3
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2113 $as_echo "$ac_res" >&6; }
2114 fi
2115 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2116
2117 } # ac_fn_cxx_check_header_mongrel
2118
2119 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2120 # -----------------------------------------------
2121 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2122 # accordingly.
2123 ac_fn_cxx_check_decl ()
2124 {
2125 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2126 as_decl_name=`echo $2|sed 's/ *(.*//'`
2127 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2129 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2130 if eval \${$3+:} false; then :
2131 $as_echo_n "(cached) " >&6
2132 else
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2135 $4
2136 int
2137 main ()
2138 {
2139 #ifndef $as_decl_name
2140 #ifdef __cplusplus
2141 (void) $as_decl_use;
2142 #else
2143 (void) $as_decl_name;
2144 #endif
2145 #endif
2146
2147 ;
2148 return 0;
2149 }
2150 _ACEOF
2151 if ac_fn_cxx_try_compile "$LINENO"; then :
2152 eval "$3=yes"
2153 else
2154 eval "$3=no"
2155 fi
2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157 fi
2158 eval ac_res=\$$3
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2160 $as_echo "$ac_res" >&6; }
2161 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2162
2163 } # ac_fn_cxx_check_decl
2164
2165 # ac_fn_cxx_check_func LINENO FUNC VAR
2166 # ------------------------------------
2167 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2168 ac_fn_cxx_check_func ()
2169 {
2170 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2172 $as_echo_n "checking for $2... " >&6; }
2173 if eval \${$3+:} false; then :
2174 $as_echo_n "(cached) " >&6
2175 else
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2178 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2180 #define $2 innocuous_$2
2181
2182 /* System header to define __stub macros and hopefully few prototypes,
2183 which can conflict with char $2 (); below.
2184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2185 <limits.h> exists even on freestanding compilers. */
2186
2187 #ifdef __STDC__
2188 # include <limits.h>
2189 #else
2190 # include <assert.h>
2191 #endif
2192
2193 #undef $2
2194
2195 /* Override any GCC internal prototype to avoid an error.
2196 Use char because int might match the return type of a GCC
2197 builtin and then its argument prototype would still apply. */
2198 #ifdef __cplusplus
2199 extern "C"
2200 #endif
2201 char $2 ();
2202 /* The GNU C library defines this for functions which it implements
2203 to always fail with ENOSYS. Some functions are actually named
2204 something starting with __ and the normal name is an alias. */
2205 #if defined __stub_$2 || defined __stub___$2
2206 choke me
2207 #endif
2208
2209 int
2210 main ()
2211 {
2212 return $2 ();
2213 ;
2214 return 0;
2215 }
2216 _ACEOF
2217 if ac_fn_cxx_try_link "$LINENO"; then :
2218 eval "$3=yes"
2219 else
2220 eval "$3=no"
2221 fi
2222 rm -f core conftest.err conftest.$ac_objext \
2223 conftest$ac_exeext conftest.$ac_ext
2224 fi
2225 eval ac_res=\$$3
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2227 $as_echo "$ac_res" >&6; }
2228 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2229
2230 } # ac_fn_cxx_check_func
2231 cat >config.log <<_ACEOF
2232 This file contains any messages produced by compilers while
2233 running configure, to aid debugging if configure makes a mistake.
2234
2235 It was created by cwidget $as_me 0.5.18, which was
2236 generated by GNU Autoconf 2.69. Invocation command line was
2237
2238 $ $0 $@
2239
2240 _ACEOF
2241 exec 5>>config.log
2242 {
2243 cat <<_ASUNAME
2244 ## --------- ##
2245 ## Platform. ##
2246 ## --------- ##
2247
2248 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2249 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2250 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2251 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2252 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2253
2254 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2255 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2256
2257 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2258 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2259 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2260 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2261 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2262 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2263 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2264
2265 _ASUNAME
2266
2267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268 for as_dir in $PATH
2269 do
2270 IFS=$as_save_IFS
2271 test -z "$as_dir" && as_dir=.
2272 $as_echo "PATH: $as_dir"
2273 done
2274 IFS=$as_save_IFS
2275
2276 } >&5
2277
2278 cat >&5 <<_ACEOF
2279
2280
2281 ## ----------- ##
2282 ## Core tests. ##
2283 ## ----------- ##
2284
2285 _ACEOF
2286
2287
2288 # Keep a trace of the command line.
2289 # Strip out --no-create and --no-recursion so they do not pile up.
2290 # Strip out --silent because we don't want to record it for future runs.
2291 # Also quote any args containing shell meta-characters.
2292 # Make two passes to allow for proper duplicate-argument suppression.
2293 ac_configure_args=
2294 ac_configure_args0=
2295 ac_configure_args1=
2296 ac_must_keep_next=false
2297 for ac_pass in 1 2
2298 do
2299 for ac_arg
2300 do
2301 case $ac_arg in
2302 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2303 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2304 | -silent | --silent | --silen | --sile | --sil)
2305 continue ;;
2306 *\'*)
2307 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2308 esac
2309 case $ac_pass in
2310 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2311 2)
2312 as_fn_append ac_configure_args1 " '$ac_arg'"
2313 if test $ac_must_keep_next = true; then
2314 ac_must_keep_next=false # Got value, back to normal.
2315 else
2316 case $ac_arg in
2317 *=* | --config-cache | -C | -disable-* | --disable-* \
2318 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2319 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2320 | -with-* | --with-* | -without-* | --without-* | --x)
2321 case "$ac_configure_args0 " in
2322 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2323 esac
2324 ;;
2325 -* ) ac_must_keep_next=true ;;
2326 esac
2327 fi
2328 as_fn_append ac_configure_args " '$ac_arg'"
2329 ;;
2330 esac
2331 done
2332 done
2333 { ac_configure_args0=; unset ac_configure_args0;}
2334 { ac_configure_args1=; unset ac_configure_args1;}
2335
2336 # When interrupted or exit'd, cleanup temporary files, and complete
2337 # config.log. We remove comments because anyway the quotes in there
2338 # would cause problems or look ugly.
2339 # WARNING: Use '\'' to represent an apostrophe within the trap.
2340 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2341 trap 'exit_status=$?
2342 # Save into config.log some information that might help in debugging.
2343 {
2344 echo
2345
2346 $as_echo "## ---------------- ##
2347 ## Cache variables. ##
2348 ## ---------------- ##"
2349 echo
2350 # The following way of writing the cache mishandles newlines in values,
2351 (
2352 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2353 eval ac_val=\$$ac_var
2354 case $ac_val in #(
2355 *${as_nl}*)
2356 case $ac_var in #(
2357 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2358 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2359 esac
2360 case $ac_var in #(
2361 _ | IFS | as_nl) ;; #(
2362 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2363 *) { eval $ac_var=; unset $ac_var;} ;;
2364 esac ;;
2365 esac
2366 done
2367 (set) 2>&1 |
2368 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2369 *${as_nl}ac_space=\ *)
2370 sed -n \
2371 "s/'\''/'\''\\\\'\'''\''/g;
2372 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2373 ;; #(
2374 *)
2375 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2376 ;;
2377 esac |
2378 sort
2379 )
2380 echo
2381
2382 $as_echo "## ----------------- ##
2383 ## Output variables. ##
2384 ## ----------------- ##"
2385 echo
2386 for ac_var in $ac_subst_vars
2387 do
2388 eval ac_val=\$$ac_var
2389 case $ac_val in
2390 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2391 esac
2392 $as_echo "$ac_var='\''$ac_val'\''"
2393 done | sort
2394 echo
2395
2396 if test -n "$ac_subst_files"; then
2397 $as_echo "## ------------------- ##
2398 ## File substitutions. ##
2399 ## ------------------- ##"
2400 echo
2401 for ac_var in $ac_subst_files
2402 do
2403 eval ac_val=\$$ac_var
2404 case $ac_val in
2405 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2406 esac
2407 $as_echo "$ac_var='\''$ac_val'\''"
2408 done | sort
2409 echo
2410 fi
2411
2412 if test -s confdefs.h; then
2413 $as_echo "## ----------- ##
2414 ## confdefs.h. ##
2415 ## ----------- ##"
2416 echo
2417 cat confdefs.h
2418 echo
2419 fi
2420 test "$ac_signal" != 0 &&
2421 $as_echo "$as_me: caught signal $ac_signal"
2422 $as_echo "$as_me: exit $exit_status"
2423 } >&5
2424 rm -f core *.core core.conftest.* &&
2425 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2426 exit $exit_status
2427 ' 0
2428 for ac_signal in 1 2 13 15; do
2429 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2430 done
2431 ac_signal=0
2432
2433 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2434 rm -f -r conftest* confdefs.h
2435
2436 $as_echo "/* confdefs.h */" > confdefs.h
2437
2438 # Predefined preprocessor variables.
2439
2440 cat >>confdefs.h <<_ACEOF
2441 #define PACKAGE_NAME "$PACKAGE_NAME"
2442 _ACEOF
2443
2444 cat >>confdefs.h <<_ACEOF
2445 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2446 _ACEOF
2447
2448 cat >>confdefs.h <<_ACEOF
2449 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2450 _ACEOF
2451
2452 cat >>confdefs.h <<_ACEOF
2453 #define PACKAGE_STRING "$PACKAGE_STRING"
2454 _ACEOF
2455
2456 cat >>confdefs.h <<_ACEOF
2457 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2458 _ACEOF
2459
2460 cat >>confdefs.h <<_ACEOF
2461 #define PACKAGE_URL "$PACKAGE_URL"
2462 _ACEOF
2463
2464
2465 # Let the site file select an alternate cache file if it wants to.
2466 # Prefer an explicitly selected file to automatically selected ones.
2467 ac_site_file1=NONE
2468 ac_site_file2=NONE
2469 if test -n "$CONFIG_SITE"; then
2470 # We do not want a PATH search for config.site.
2471 case $CONFIG_SITE in #((
2472 -*) ac_site_file1=./$CONFIG_SITE;;
2473 */*) ac_site_file1=$CONFIG_SITE;;
2474 *) ac_site_file1=./$CONFIG_SITE;;
2475 esac
2476 elif test "x$prefix" != xNONE; then
2477 ac_site_file1=$prefix/share/config.site
2478 ac_site_file2=$prefix/etc/config.site
2479 else
2480 ac_site_file1=$ac_default_prefix/share/config.site
2481 ac_site_file2=$ac_default_prefix/etc/config.site
2482 fi
2483 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2484 do
2485 test "x$ac_site_file" = xNONE && continue
2486 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2488 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2489 sed 's/^/| /' "$ac_site_file" >&5
2490 . "$ac_site_file" \
2491 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2493 as_fn_error $? "failed to load site script $ac_site_file
2494 See \`config.log' for more details" "$LINENO" 5; }
2495 fi
2496 done
2497
2498 if test -r "$cache_file"; then
2499 # Some versions of bash will fail to source /dev/null (special files
2500 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2501 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2503 $as_echo "$as_me: loading cache $cache_file" >&6;}
2504 case $cache_file in
2505 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2506 *) . "./$cache_file";;
2507 esac
2508 fi
2509 else
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2511 $as_echo "$as_me: creating cache $cache_file" >&6;}
2512 >$cache_file
2513 fi
2514
2515 gt_needs="$gt_needs "
2516 # Check that the precious variables saved in the cache have kept the same
2517 # value.
2518 ac_cache_corrupted=false
2519 for ac_var in $ac_precious_vars; do
2520 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2521 eval ac_new_set=\$ac_env_${ac_var}_set
2522 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2523 eval ac_new_val=\$ac_env_${ac_var}_value
2524 case $ac_old_set,$ac_new_set in
2525 set,)
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2527 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2528 ac_cache_corrupted=: ;;
2529 ,set)
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2531 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2532 ac_cache_corrupted=: ;;
2533 ,);;
2534 *)
2535 if test "x$ac_old_val" != "x$ac_new_val"; then
2536 # differences in whitespace do not lead to failure.
2537 ac_old_val_w=`echo x $ac_old_val`
2538 ac_new_val_w=`echo x $ac_new_val`
2539 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2541 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2542 ac_cache_corrupted=:
2543 else
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2545 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2546 eval $ac_var=\$ac_old_val
2547 fi
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2549 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2551 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2552 fi;;
2553 esac
2554 # Pass precious variables to config.status.
2555 if test "$ac_new_set" = set; then
2556 case $ac_new_val in
2557 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2558 *) ac_arg=$ac_var=$ac_new_val ;;
2559 esac
2560 case " $ac_configure_args " in
2561 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2562 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2563 esac
2564 fi
2565 done
2566 if $ac_cache_corrupted; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2570 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2571 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2572 fi
2573 ## -------------------- ##
2574 ## Main body of script. ##
2575 ## -------------------- ##
2576
2577 ac_ext=c
2578 ac_cpp='$CPP $CPPFLAGS'
2579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2582
2583
2584
2585
2586 ac_config_headers="$ac_config_headers config.h cwidget-config.h"
2587
2588 am__api_version='1.16'
2589
2590 ac_aux_dir=
2591 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2592 if test -f "$ac_dir/install-sh"; then
2593 ac_aux_dir=$ac_dir
2594 ac_install_sh="$ac_aux_dir/install-sh -c"
2595 break
2596 elif test -f "$ac_dir/install.sh"; then
2597 ac_aux_dir=$ac_dir
2598 ac_install_sh="$ac_aux_dir/install.sh -c"
2599 break
2600 elif test -f "$ac_dir/shtool"; then
2601 ac_aux_dir=$ac_dir
2602 ac_install_sh="$ac_aux_dir/shtool install -c"
2603 break
2604 fi
2605 done
2606 if test -z "$ac_aux_dir"; then
2607 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2608 fi
2609
2610 # These three variables are undocumented and unsupported,
2611 # and are intended to be withdrawn in a future Autoconf release.
2612 # They can cause serious problems if a builder's source tree is in a directory
2613 # whose full name contains unusual characters.
2614 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2615 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2616 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2617
2618
2619 # Find a good install program. We prefer a C program (faster),
2620 # so one script is as good as another. But avoid the broken or
2621 # incompatible versions:
2622 # SysV /etc/install, /usr/sbin/install
2623 # SunOS /usr/etc/install
2624 # IRIX /sbin/install
2625 # AIX /bin/install
2626 # AmigaOS /C/install, which installs bootblocks on floppy discs
2627 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2628 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2629 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2630 # OS/2's system install, which has a completely different semantic
2631 # ./install, which can be erroneously created by make from ./install.sh.
2632 # Reject install programs that cannot install multiple files.
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2634 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2635 if test -z "$INSTALL"; then
2636 if ${ac_cv_path_install+:} false; then :
2637 $as_echo_n "(cached) " >&6
2638 else
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 for as_dir in $PATH
2641 do
2642 IFS=$as_save_IFS
2643 test -z "$as_dir" && as_dir=.
2644 # Account for people who put trailing slashes in PATH elements.
2645 case $as_dir/ in #((
2646 ./ | .// | /[cC]/* | \
2647 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2648 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2649 /usr/ucb/* ) ;;
2650 *)
2651 # OSF1 and SCO ODT 3.0 have their own names for install.
2652 # Don't use installbsd from OSF since it installs stuff as root
2653 # by default.
2654 for ac_prog in ginstall scoinst install; do
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2657 if test $ac_prog = install &&
2658 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2659 # AIX install. It has an incompatible calling convention.
2660 :
2661 elif test $ac_prog = install &&
2662 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2663 # program-specific install script used by HP pwplus--don't use.
2664 :
2665 else
2666 rm -rf conftest.one conftest.two conftest.dir
2667 echo one > conftest.one
2668 echo two > conftest.two
2669 mkdir conftest.dir
2670 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2671 test -s conftest.one && test -s conftest.two &&
2672 test -s conftest.dir/conftest.one &&
2673 test -s conftest.dir/conftest.two
2674 then
2675 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2676 break 3
2677 fi
2678 fi
2679 fi
2680 done
2681 done
2682 ;;
2683 esac
2684
2685 done
2686 IFS=$as_save_IFS
2687
2688 rm -rf conftest.one conftest.two conftest.dir
2689
2690 fi
2691 if test "${ac_cv_path_install+set}" = set; then
2692 INSTALL=$ac_cv_path_install
2693 else
2694 # As a last resort, use the slow shell script. Don't cache a
2695 # value for INSTALL within a source directory, because that will
2696 # break other packages using the cache if that directory is
2697 # removed, or if the value is a relative name.
2698 INSTALL=$ac_install_sh
2699 fi
2700 fi
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2702 $as_echo "$INSTALL" >&6; }
2703
2704 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2705 # It thinks the first close brace ends the variable substitution.
2706 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2707
2708 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2709
2710 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2711
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2713 $as_echo_n "checking whether build environment is sane... " >&6; }
2714 # Reject unsafe characters in $srcdir or the absolute working directory
2715 # name. Accept space and tab only in the latter.
2716 am_lf='
2717 '
2718 case `pwd` in
2719 *[\\\"\#\$\&\'\`$am_lf]*)
2720 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2721 esac
2722 case $srcdir in
2723 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2724 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2725 esac
2726
2727 # Do 'set' in a subshell so we don't clobber the current shell's
2728 # arguments. Must try -L first in case configure is actually a
2729 # symlink; some systems play weird games with the mod time of symlinks
2730 # (eg FreeBSD returns the mod time of the symlink's containing
2731 # directory).
2732 if (
2733 am_has_slept=no
2734 for am_try in 1 2; do
2735 echo "timestamp, slept: $am_has_slept" > conftest.file
2736 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2737 if test "$*" = "X"; then
2738 # -L didn't work.
2739 set X `ls -t "$srcdir/configure" conftest.file`
2740 fi
2741 if test "$*" != "X $srcdir/configure conftest.file" \
2742 && test "$*" != "X conftest.file $srcdir/configure"; then
2743
2744 # If neither matched, then we have a broken ls. This can happen
2745 # if, for instance, CONFIG_SHELL is bash and it inherits a
2746 # broken ls alias from the environment. This has actually
2747 # happened. Such a system could not be considered "sane".
2748 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2749 alias in your environment" "$LINENO" 5
2750 fi
2751 if test "$2" = conftest.file || test $am_try -eq 2; then
2752 break
2753 fi
2754 # Just in case.
2755 sleep 1
2756 am_has_slept=yes
2757 done
2758 test "$2" = conftest.file
2759 )
2760 then
2761 # Ok.
2762 :
2763 else
2764 as_fn_error $? "newly created file is older than distributed files!
2765 Check your system clock" "$LINENO" 5
2766 fi
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2768 $as_echo "yes" >&6; }
2769 # If we didn't sleep, we still need to ensure time stamps of config.status and
2770 # generated files are strictly newer.
2771 am_sleep_pid=
2772 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2773 ( sleep 1 ) &
2774 am_sleep_pid=$!
2775 fi
2776
2777 rm -f conftest.file
2778
2779 test "$program_prefix" != NONE &&
2780 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2781 # Use a double $ so make ignores it.
2782 test "$program_suffix" != NONE &&
2783 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2784 # Double any \ or $.
2785 # By default was `s,x,x', remove it if useless.
2786 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2787 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2788
2789 # Expand $ac_aux_dir to an absolute path.
2790 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2791
2792 if test x"${MISSING+set}" != xset; then
2793 case $am_aux_dir in
2794 *\ * | *\ *)
2795 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2796 *)
2797 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2798 esac
2799 fi
2800 # Use eval to expand $SHELL
2801 if eval "$MISSING --is-lightweight"; then
2802 am_missing_run="$MISSING "
2803 else
2804 am_missing_run=
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2806 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2807 fi
2808
2809 if test x"${install_sh+set}" != xset; then
2810 case $am_aux_dir in
2811 *\ * | *\ *)
2812 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2813 *)
2814 install_sh="\${SHELL} $am_aux_dir/install-sh"
2815 esac
2816 fi
2817
2818 # Installed binaries are usually stripped using 'strip' when the user
2819 # run "make install-strip". However 'strip' might not be the right
2820 # tool to use in cross-compilation environments, therefore Automake
2821 # will honor the 'STRIP' environment variable to overrule this program.
2822 if test "$cross_compiling" != no; then
2823 if test -n "$ac_tool_prefix"; then
2824 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2825 set dummy ${ac_tool_prefix}strip; ac_word=$2
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827 $as_echo_n "checking for $ac_word... " >&6; }
2828 if ${ac_cv_prog_STRIP+:} false; then :
2829 $as_echo_n "(cached) " >&6
2830 else
2831 if test -n "$STRIP"; then
2832 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2836 do
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 break 2
2844 fi
2845 done
2846 done
2847 IFS=$as_save_IFS
2848
2849 fi
2850 fi
2851 STRIP=$ac_cv_prog_STRIP
2852 if test -n "$STRIP"; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2854 $as_echo "$STRIP" >&6; }
2855 else
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2858 fi
2859
2860
2861 fi
2862 if test -z "$ac_cv_prog_STRIP"; then
2863 ac_ct_STRIP=$STRIP
2864 # Extract the first word of "strip", so it can be a program name with args.
2865 set dummy strip; ac_word=$2
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867 $as_echo_n "checking for $ac_word... " >&6; }
2868 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2869 $as_echo_n "(cached) " >&6
2870 else
2871 if test -n "$ac_ct_STRIP"; then
2872 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2873 else
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 for as_dir in $PATH
2876 do
2877 IFS=$as_save_IFS
2878 test -z "$as_dir" && as_dir=.
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2881 ac_cv_prog_ac_ct_STRIP="strip"
2882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 break 2
2884 fi
2885 done
2886 done
2887 IFS=$as_save_IFS
2888
2889 fi
2890 fi
2891 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2892 if test -n "$ac_ct_STRIP"; then
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2894 $as_echo "$ac_ct_STRIP" >&6; }
2895 else
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897 $as_echo "no" >&6; }
2898 fi
2899
2900 if test "x$ac_ct_STRIP" = x; then
2901 STRIP=":"
2902 else
2903 case $cross_compiling:$ac_tool_warned in
2904 yes:)
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2907 ac_tool_warned=yes ;;
2908 esac
2909 STRIP=$ac_ct_STRIP
2910 fi
2911 else
2912 STRIP="$ac_cv_prog_STRIP"
2913 fi
2914
2915 fi
2916 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2917
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2919 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2920 if test -z "$MKDIR_P"; then
2921 if ${ac_cv_path_mkdir+:} false; then :
2922 $as_echo_n "(cached) " >&6
2923 else
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2926 do
2927 IFS=$as_save_IFS
2928 test -z "$as_dir" && as_dir=.
2929 for ac_prog in mkdir gmkdir; do
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2932 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2933 'mkdir (GNU coreutils) '* | \
2934 'mkdir (coreutils) '* | \
2935 'mkdir (fileutils) '4.1*)
2936 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2937 break 3;;
2938 esac
2939 done
2940 done
2941 done
2942 IFS=$as_save_IFS
2943
2944 fi
2945
2946 test -d ./--version && rmdir ./--version
2947 if test "${ac_cv_path_mkdir+set}" = set; then
2948 MKDIR_P="$ac_cv_path_mkdir -p"
2949 else
2950 # As a last resort, use the slow shell script. Don't cache a
2951 # value for MKDIR_P within a source directory, because that will
2952 # break other packages using the cache if that directory is
2953 # removed, or if the value is a relative name.
2954 MKDIR_P="$ac_install_sh -d"
2955 fi
2956 fi
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2958 $as_echo "$MKDIR_P" >&6; }
2959
2960 for ac_prog in gawk mawk nawk awk
2961 do
2962 # Extract the first word of "$ac_prog", so it can be a program name with args.
2963 set dummy $ac_prog; ac_word=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if ${ac_cv_prog_AWK+:} false; then :
2967 $as_echo_n "(cached) " >&6
2968 else
2969 if test -n "$AWK"; then
2970 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2974 do
2975 IFS=$as_save_IFS
2976 test -z "$as_dir" && as_dir=.
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979 ac_cv_prog_AWK="$ac_prog"
2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981 break 2
2982 fi
2983 done
2984 done
2985 IFS=$as_save_IFS
2986
2987 fi
2988 fi
2989 AWK=$ac_cv_prog_AWK
2990 if test -n "$AWK"; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2992 $as_echo "$AWK" >&6; }
2993 else
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
2996 fi
2997
2998
2999 test -n "$AWK" && break
3000 done
3001
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3003 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3004 set x ${MAKE-make}
3005 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3006 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3007 $as_echo_n "(cached) " >&6
3008 else
3009 cat >conftest.make <<\_ACEOF
3010 SHELL = /bin/sh
3011 all:
3012 @echo '@@@%%%=$(MAKE)=@@@%%%'
3013 _ACEOF
3014 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3015 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3016 *@@@%%%=?*=@@@%%%*)
3017 eval ac_cv_prog_make_${ac_make}_set=yes;;
3018 *)
3019 eval ac_cv_prog_make_${ac_make}_set=no;;
3020 esac
3021 rm -f conftest.make
3022 fi
3023 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3025 $as_echo "yes" >&6; }
3026 SET_MAKE=
3027 else
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3030 SET_MAKE="MAKE=${MAKE-make}"
3031 fi
3032
3033 rm -rf .tst 2>/dev/null
3034 mkdir .tst 2>/dev/null
3035 if test -d .tst; then
3036 am__leading_dot=.
3037 else
3038 am__leading_dot=_
3039 fi
3040 rmdir .tst 2>/dev/null
3041
3042 # Check whether --enable-silent-rules was given.
3043 if test "${enable_silent_rules+set}" = set; then :
3044 enableval=$enable_silent_rules;
3045 fi
3046
3047 case $enable_silent_rules in # (((
3048 yes) AM_DEFAULT_VERBOSITY=0;;
3049 no) AM_DEFAULT_VERBOSITY=1;;
3050 *) AM_DEFAULT_VERBOSITY=1;;
3051 esac
3052 am_make=${MAKE-make}
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3054 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3055 if ${am_cv_make_support_nested_variables+:} false; then :
3056 $as_echo_n "(cached) " >&6
3057 else
3058 if $as_echo 'TRUE=$(BAR$(V))
3059 BAR0=false
3060 BAR1=true
3061 V=1
3062 am__doit:
3063 @$(TRUE)
3064 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3065 am_cv_make_support_nested_variables=yes
3066 else
3067 am_cv_make_support_nested_variables=no
3068 fi
3069 fi
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3071 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3072 if test $am_cv_make_support_nested_variables = yes; then
3073 AM_V='$(V)'
3074 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3075 else
3076 AM_V=$AM_DEFAULT_VERBOSITY
3077 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3078 fi
3079 AM_BACKSLASH='\'
3080
3081 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3082 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3083 # is not polluted with repeated "-I."
3084 am__isrc=' -I$(srcdir)'
3085 # test to see if srcdir already configured
3086 if test -f $srcdir/config.status; then
3087 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3088 fi
3089 fi
3090
3091 # test whether we have cygpath
3092 if test -z "$CYGPATH_W"; then
3093 if (cygpath --version) >/dev/null 2>/dev/null; then
3094 CYGPATH_W='cygpath -w'
3095 else
3096 CYGPATH_W=echo
3097 fi
3098 fi
3099
3100
3101 # Define the identity of the package.
3102 PACKAGE='cwidget'
3103 VERSION='0.5.18'
3104
3105
3106 cat >>confdefs.h <<_ACEOF
3107 #define PACKAGE "$PACKAGE"
3108 _ACEOF
3109
3110
3111 cat >>confdefs.h <<_ACEOF
3112 #define VERSION "$VERSION"
3113 _ACEOF
3114
3115 # Some tools Automake needs.
3116
3117 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3118
3119
3120 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3121
3122
3123 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3124
3125
3126 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3127
3128
3129 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3130
3131 # For better backward compatibility. To be removed once Automake 1.9.x
3132 # dies out for good. For more background, see:
3133 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3134 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3135 mkdir_p='$(MKDIR_P)'
3136
3137 # We need awk for the "check" target (and possibly the TAP driver). The
3138 # system "awk" is bad on some platforms.
3139 # Always define AMTAR for backward compatibility. Yes, it's still used
3140 # in the wild :-( We should find a proper way to deprecate it ...
3141 AMTAR='$${TAR-tar}'
3142
3143
3144 # We'll loop over all known methods to create a tar archive until one works.
3145 _am_tools='gnutar pax cpio none'
3146
3147 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3148
3149
3150
3151
3152
3153
3154 # POSIX will say in a future version that running "rm -f" with no argument
3155 # is OK; and we want to be able to make that assumption in our Makefile
3156 # recipes. So use an aggressive probe to check that the usage we want is
3157 # actually supported "in the wild" to an acceptable degree.
3158 # See automake bug#10828.
3159 # To make any issue more visible, cause the running configure to be aborted
3160 # by default if the 'rm' program in use doesn't match our expectations; the
3161 # user can still override this though.
3162 if rm -f && rm -fr && rm -rf; then : OK; else
3163 cat >&2 <<'END'
3164 Oops!
3165
3166 Your 'rm' program seems unable to run without file operands specified
3167 on the command line, even when the '-f' option is present. This is contrary
3168 to the behaviour of most rm programs out there, and not conforming with
3169 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3170
3171 Please tell [email protected] about your system, including the value
3172 of your $PATH and any error possibly output before this message. This
3173 can help us improve future automake versions.
3174
3175 END
3176 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3177 echo 'Configuration will proceed anyway, since you have set the' >&2
3178 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3179 echo >&2
3180 else
3181 cat >&2 <<'END'
3182 Aborting the configuration process, to ensure you take notice of the issue.
3183
3184 You can download and install GNU coreutils to get an 'rm' implementation
3185 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3186
3187 If you want to complete the configuration process using your problematic
3188 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3189 to "yes", and re-run configure.
3190
3191 END
3192 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3193 fi
3194 fi
3195
3196
3197 ac_ext=cpp
3198 ac_cpp='$CXXCPP $CPPFLAGS'
3199 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3200 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3201 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3202
3203
3204 BUILD_LIBRARY=yes
3205 # Check whether --enable-library was given.
3206 if test "${enable_library+set}" = set; then :
3207 enableval=$enable_library; if test x$enableval = xno; then BUILD_LIBRARY=no; fi
3208 fi
3209
3210
3211 if test x$BUILD_LIBRARY = xyes; then
3212 BUILD_LIBRARY_TRUE=
3213 BUILD_LIBRARY_FALSE='#'
3214 else
3215 BUILD_LIBRARY_TRUE='#'
3216 BUILD_LIBRARY_FALSE=
3217 fi
3218
3219
3220
3221 ALL_LINGUAS=""
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3223 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3224 if ${ac_cv_path_SED+:} false; then :
3225 $as_echo_n "(cached) " >&6
3226 else
3227 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3228 for ac_i in 1 2 3 4 5 6 7; do
3229 ac_script="$ac_script$as_nl$ac_script"
3230 done
3231 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3232 { ac_script=; unset ac_script;}
3233 if test -z "$SED"; then
3234 ac_path_SED_found=false
3235 # Loop through the user's path and test for each of PROGNAME-LIST
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 for as_dir in $PATH
3238 do
3239 IFS=$as_save_IFS
3240 test -z "$as_dir" && as_dir=.
3241 for ac_prog in sed gsed; do
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3244 as_fn_executable_p "$ac_path_SED" || continue
3245 # Check for GNU ac_path_SED and select it if it is found.
3246 # Check for GNU $ac_path_SED
3247 case `"$ac_path_SED" --version 2>&1` in
3248 *GNU*)
3249 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3250 *)
3251 ac_count=0
3252 $as_echo_n 0123456789 >"conftest.in"
3253 while :
3254 do
3255 cat "conftest.in" "conftest.in" >"conftest.tmp"
3256 mv "conftest.tmp" "conftest.in"
3257 cp "conftest.in" "conftest.nl"
3258 $as_echo '' >> "conftest.nl"
3259 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3260 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3261 as_fn_arith $ac_count + 1 && ac_count=$as_val
3262 if test $ac_count -gt ${ac_path_SED_max-0}; then
3263 # Best one so far, save it but keep looking for a better one
3264 ac_cv_path_SED="$ac_path_SED"
3265 ac_path_SED_max=$ac_count
3266 fi
3267 # 10*(2^10) chars as input seems more than enough
3268 test $ac_count -gt 10 && break
3269 done
3270 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3271 esac
3272
3273 $ac_path_SED_found && break 3
3274 done
3275 done
3276 done
3277 IFS=$as_save_IFS
3278 if test -z "$ac_cv_path_SED"; then
3279 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3280 fi
3281 else
3282 ac_cv_path_SED=$SED
3283 fi
3284
3285 fi
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3287 $as_echo "$ac_cv_path_SED" >&6; }
3288 SED="$ac_cv_path_SED"
3289 rm -f conftest.sed
3290
3291
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3293 $as_echo_n "checking whether NLS is requested... " >&6; }
3294 # Check whether --enable-nls was given.
3295 if test "${enable_nls+set}" = set; then :
3296 enableval=$enable_nls; USE_NLS=$enableval
3297 else
3298 USE_NLS=yes
3299 fi
3300
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
3302 $as_echo "$USE_NLS" >&6; }
3303
3304
3305
3306
3307 GETTEXT_MACRO_VERSION=0.18
3308
3309
3310
3311
3312 # Prepare PATH_SEPARATOR.
3313 # The user is always right.
3314 if test "${PATH_SEPARATOR+set}" != set; then
3315 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
3316 # contains only /bin. Note that ksh looks also at the FPATH variable,
3317 # so we have to set that as well for the test.
3318 PATH_SEPARATOR=:
3319 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
3320 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
3321 || PATH_SEPARATOR=';'
3322 }
3323 fi
3324
3325 # Find out how to test for executable files. Don't use a zero-byte file,
3326 # as systems may use methods other than mode bits to determine executability.
3327 cat >conf$$.file <<_ASEOF
3328 #! /bin/sh
3329 exit 0
3330 _ASEOF
3331 chmod +x conf$$.file
3332 if test -x conf$$.file >/dev/null 2>&1; then
3333 ac_executable_p="test -x"
3334 else
3335 ac_executable_p="test -f"
3336 fi
3337 rm -f conf$$.file
3338
3339 # Extract the first word of "msgfmt", so it can be a program name with args.
3340 set dummy msgfmt; ac_word=$2
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3342 $as_echo_n "checking for $ac_word... " >&6; }
3343 if ${ac_cv_path_MSGFMT+:} false; then :
3344 $as_echo_n "(cached) " >&6
3345 else
3346 case "$MSGFMT" in
3347 [\\/]* | ?:[\\/]*)
3348 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3349 ;;
3350 *)
3351 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3352 for ac_dir in $PATH; do
3353 IFS="$ac_save_IFS"
3354 test -z "$ac_dir" && ac_dir=.
3355 for ac_exec_ext in '' $ac_executable_extensions; do
3356 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3357 echo "$as_me: trying $ac_dir/$ac_word..." >&5
3358 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
3359 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3360 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3361 break 2
3362 fi
3363 fi
3364 done
3365 done
3366 IFS="$ac_save_IFS"
3367 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3368 ;;
3369 esac
3370 fi
3371 MSGFMT="$ac_cv_path_MSGFMT"
3372 if test "$MSGFMT" != ":"; then
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
3374 $as_echo "$MSGFMT" >&6; }
3375 else
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377 $as_echo "no" >&6; }
3378 fi
3379
3380 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3381 set dummy gmsgfmt; ac_word=$2
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3383 $as_echo_n "checking for $ac_word... " >&6; }
3384 if ${ac_cv_path_GMSGFMT+:} false; then :
3385 $as_echo_n "(cached) " >&6
3386 else
3387 case $GMSGFMT in
3388 [\\/]* | ?:[\\/]*)
3389 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3390 ;;
3391 *)
3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393 for as_dir in $PATH
3394 do
3395 IFS=$as_save_IFS
3396 test -z "$as_dir" && as_dir=.
3397 for ac_exec_ext in '' $ac_executable_extensions; do
3398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3399 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3401 break 2
3402 fi
3403 done
3404 done
3405 IFS=$as_save_IFS
3406
3407 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3408 ;;
3409 esac
3410 fi
3411 GMSGFMT=$ac_cv_path_GMSGFMT
3412 if test -n "$GMSGFMT"; then
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
3414 $as_echo "$GMSGFMT" >&6; }
3415 else
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 $as_echo "no" >&6; }
3418 fi
3419
3420
3421
3422 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
3423 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
3424 *) MSGFMT_015=$MSGFMT ;;
3425 esac
3426
3427 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
3428 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
3429 *) GMSGFMT_015=$GMSGFMT ;;
3430 esac
3431
3432
3433
3434 # Prepare PATH_SEPARATOR.
3435 # The user is always right.
3436 if test "${PATH_SEPARATOR+set}" != set; then
3437 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
3438 # contains only /bin. Note that ksh looks also at the FPATH variable,
3439 # so we have to set that as well for the test.
3440 PATH_SEPARATOR=:
3441 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
3442 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
3443 || PATH_SEPARATOR=';'
3444 }
3445 fi
3446
3447 # Find out how to test for executable files. Don't use a zero-byte file,
3448 # as systems may use methods other than mode bits to determine executability.
3449 cat >conf$$.file <<_ASEOF
3450 #! /bin/sh
3451 exit 0
3452 _ASEOF
3453 chmod +x conf$$.file
3454 if test -x conf$$.file >/dev/null 2>&1; then
3455 ac_executable_p="test -x"
3456 else
3457 ac_executable_p="test -f"
3458 fi
3459 rm -f conf$$.file
3460
3461 # Extract the first word of "xgettext", so it can be a program name with args.
3462 set dummy xgettext; ac_word=$2
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464 $as_echo_n "checking for $ac_word... " >&6; }
3465 if ${ac_cv_path_XGETTEXT+:} false; then :
3466 $as_echo_n "(cached) " >&6
3467 else
3468 case "$XGETTEXT" in
3469 [\\/]* | ?:[\\/]*)
3470 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3471 ;;
3472 *)
3473 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3474 for ac_dir in $PATH; do
3475 IFS="$ac_save_IFS"
3476 test -z "$ac_dir" && ac_dir=.
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3479 echo "$as_me: trying $ac_dir/$ac_word..." >&5
3480 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
3481 (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
3482 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3483 break 2
3484 fi
3485 fi
3486 done
3487 done
3488 IFS="$ac_save_IFS"
3489 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3490 ;;
3491 esac
3492 fi
3493 XGETTEXT="$ac_cv_path_XGETTEXT"
3494 if test "$XGETTEXT" != ":"; then
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3496 $as_echo "$XGETTEXT" >&6; }
3497 else
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3499 $as_echo "no" >&6; }
3500 fi
3501
3502 rm -f messages.po
3503
3504 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
3505 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
3506 *) XGETTEXT_015=$XGETTEXT ;;
3507 esac
3508
3509
3510
3511 # Prepare PATH_SEPARATOR.
3512 # The user is always right.
3513 if test "${PATH_SEPARATOR+set}" != set; then
3514 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
3515 # contains only /bin. Note that ksh looks also at the FPATH variable,
3516 # so we have to set that as well for the test.
3517 PATH_SEPARATOR=:
3518 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
3519 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
3520 || PATH_SEPARATOR=';'
3521 }
3522 fi
3523
3524 # Find out how to test for executable files. Don't use a zero-byte file,
3525 # as systems may use methods other than mode bits to determine executability.
3526 cat >conf$$.file <<_ASEOF
3527 #! /bin/sh
3528 exit 0
3529 _ASEOF
3530 chmod +x conf$$.file
3531 if test -x conf$$.file >/dev/null 2>&1; then
3532 ac_executable_p="test -x"
3533 else
3534 ac_executable_p="test -f"
3535 fi
3536 rm -f conf$$.file
3537
3538 # Extract the first word of "msgmerge", so it can be a program name with args.
3539 set dummy msgmerge; ac_word=$2
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3541 $as_echo_n "checking for $ac_word... " >&6; }
3542 if ${ac_cv_path_MSGMERGE+:} false; then :
3543 $as_echo_n "(cached) " >&6
3544 else
3545 case "$MSGMERGE" in
3546 [\\/]* | ?:[\\/]*)
3547 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3548 ;;
3549 *)
3550 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3551 for ac_dir in $PATH; do
3552 IFS="$ac_save_IFS"
3553 test -z "$ac_dir" && ac_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3556 echo "$as_me: trying $ac_dir/$ac_word..." >&5
3557 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
3558 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3559 break 2
3560 fi
3561 fi
3562 done
3563 done
3564 IFS="$ac_save_IFS"
3565 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3566 ;;
3567 esac
3568 fi
3569 MSGMERGE="$ac_cv_path_MSGMERGE"
3570 if test "$MSGMERGE" != ":"; then
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3572 $as_echo "$MSGMERGE" >&6; }
3573 else
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 $as_echo "no" >&6; }
3576 fi
3577
3578
3579 test -n "$localedir" || localedir='${datadir}/locale'
3580
3581
3582 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
3583
3584
3585 ac_config_commands="$ac_config_commands po-directories"
3586
3587
3588
3589 if test "X$prefix" = "XNONE"; then
3590 acl_final_prefix="$ac_default_prefix"
3591 else
3592 acl_final_prefix="$prefix"
3593 fi
3594 if test "X$exec_prefix" = "XNONE"; then
3595 acl_final_exec_prefix='${prefix}'
3596 else
3597 acl_final_exec_prefix="$exec_prefix"
3598 fi
3599 acl_save_prefix="$prefix"
3600 prefix="$acl_final_prefix"
3601 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3602 prefix="$acl_save_prefix"
3603
3604 DEPDIR="${am__leading_dot}deps"
3605
3606 ac_config_commands="$ac_config_commands depfiles"
3607
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3609 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3610 cat > confinc.mk << 'END'
3611 am__doit:
3612 @echo this is the am__doit target >confinc.out
3613 .PHONY: am__doit
3614 END
3615 am__include="#"
3616 am__quote=
3617 # BSD make does it like this.
3618 echo '.include "confinc.mk" # ignored' > confmf.BSD
3619 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3620 echo 'include confinc.mk # ignored' > confmf.GNU
3621 _am_result=no
3622 for s in GNU BSD; do
3623 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3624 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3625 ac_status=$?
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }
3628 case $?:`cat confinc.out 2>/dev/null` in #(
3629 '0:this is the am__doit target') :
3630 case $s in #(
3631 BSD) :
3632 am__include='.include' am__quote='"' ;; #(
3633 *) :
3634 am__include='include' am__quote='' ;;
3635 esac ;; #(
3636 *) :
3637 ;;
3638 esac
3639 if test "$am__include" != "#"; then
3640 _am_result="yes ($s style)"
3641 break
3642 fi
3643 done
3644 rm -f confinc.* confmf.*
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3646 $as_echo "${_am_result}" >&6; }
3647
3648 # Check whether --enable-dependency-tracking was given.
3649 if test "${enable_dependency_tracking+set}" = set; then :
3650 enableval=$enable_dependency_tracking;
3651 fi
3652
3653 if test "x$enable_dependency_tracking" != xno; then
3654 am_depcomp="$ac_aux_dir/depcomp"
3655 AMDEPBACKSLASH='\'
3656 am__nodep='_no'
3657 fi
3658 if test "x$enable_dependency_tracking" != xno; then
3659 AMDEP_TRUE=
3660 AMDEP_FALSE='#'
3661 else
3662 AMDEP_TRUE='#'
3663 AMDEP_FALSE=
3664 fi
3665
3666
3667 ac_ext=c
3668 ac_cpp='$CPP $CPPFLAGS'
3669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3672 if test -n "$ac_tool_prefix"; then
3673 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3674 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3676 $as_echo_n "checking for $ac_word... " >&6; }
3677 if ${ac_cv_prog_CC+:} false; then :
3678 $as_echo_n "(cached) " >&6
3679 else
3680 if test -n "$CC"; then
3681 ac_cv_prog_CC="$CC" # Let the user override the test.
3682 else
3683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684 for as_dir in $PATH
3685 do
3686 IFS=$as_save_IFS
3687 test -z "$as_dir" && as_dir=.
3688 for ac_exec_ext in '' $ac_executable_extensions; do
3689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3690 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3692 break 2
3693 fi
3694 done
3695 done
3696 IFS=$as_save_IFS
3697
3698 fi
3699 fi
3700 CC=$ac_cv_prog_CC
3701 if test -n "$CC"; then
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3703 $as_echo "$CC" >&6; }
3704 else
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3706 $as_echo "no" >&6; }
3707 fi
3708
3709
3710 fi
3711 if test -z "$ac_cv_prog_CC"; then
3712 ac_ct_CC=$CC
3713 # Extract the first word of "gcc", so it can be a program name with args.
3714 set dummy gcc; ac_word=$2
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3716 $as_echo_n "checking for $ac_word... " >&6; }
3717 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3718 $as_echo_n "(cached) " >&6
3719 else
3720 if test -n "$ac_ct_CC"; then
3721 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3722 else
3723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 for as_dir in $PATH
3725 do
3726 IFS=$as_save_IFS
3727 test -z "$as_dir" && as_dir=.
3728 for ac_exec_ext in '' $ac_executable_extensions; do
3729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3730 ac_cv_prog_ac_ct_CC="gcc"
3731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3732 break 2
3733 fi
3734 done
3735 done
3736 IFS=$as_save_IFS
3737
3738 fi
3739 fi
3740 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3741 if test -n "$ac_ct_CC"; then
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3743 $as_echo "$ac_ct_CC" >&6; }
3744 else
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3746 $as_echo "no" >&6; }
3747 fi
3748
3749 if test "x$ac_ct_CC" = x; then
3750 CC=""
3751 else
3752 case $cross_compiling:$ac_tool_warned in
3753 yes:)
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3756 ac_tool_warned=yes ;;
3757 esac
3758 CC=$ac_ct_CC
3759 fi
3760 else
3761 CC="$ac_cv_prog_CC"
3762 fi
3763
3764 if test -z "$CC"; then
3765 if test -n "$ac_tool_prefix"; then
3766 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3767 set dummy ${ac_tool_prefix}cc; ac_word=$2
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3769 $as_echo_n "checking for $ac_word... " >&6; }
3770 if ${ac_cv_prog_CC+:} false; then :
3771 $as_echo_n "(cached) " >&6
3772 else
3773 if test -n "$CC"; then
3774 ac_cv_prog_CC="$CC" # Let the user override the test.
3775 else
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 for as_dir in $PATH
3778 do
3779 IFS=$as_save_IFS
3780 test -z "$as_dir" && as_dir=.
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3783 ac_cv_prog_CC="${ac_tool_prefix}cc"
3784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3785 break 2
3786 fi
3787 done
3788 done
3789 IFS=$as_save_IFS
3790
3791 fi
3792 fi
3793 CC=$ac_cv_prog_CC
3794 if test -n "$CC"; then
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3796 $as_echo "$CC" >&6; }
3797 else
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799 $as_echo "no" >&6; }
3800 fi
3801
3802
3803 fi
3804 fi
3805 if test -z "$CC"; then
3806 # Extract the first word of "cc", so it can be a program name with args.
3807 set dummy cc; ac_word=$2
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3809 $as_echo_n "checking for $ac_word... " >&6; }
3810 if ${ac_cv_prog_CC+:} false; then :
3811 $as_echo_n "(cached) " >&6
3812 else
3813 if test -n "$CC"; then
3814 ac_cv_prog_CC="$CC" # Let the user override the test.
3815 else
3816 ac_prog_rejected=no
3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 for as_dir in $PATH
3819 do
3820 IFS=$as_save_IFS
3821 test -z "$as_dir" && as_dir=.
3822 for ac_exec_ext in '' $ac_executable_extensions; do
3823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3824 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3825 ac_prog_rejected=yes
3826 continue
3827 fi
3828 ac_cv_prog_CC="cc"
3829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3830 break 2
3831 fi
3832 done
3833 done
3834 IFS=$as_save_IFS
3835
3836 if test $ac_prog_rejected = yes; then
3837 # We found a bogon in the path, so make sure we never use it.
3838 set dummy $ac_cv_prog_CC
3839 shift
3840 if test $# != 0; then
3841 # We chose a different compiler from the bogus one.
3842 # However, it has the same basename, so the bogon will be chosen
3843 # first if we set CC to just the basename; use the full file name.
3844 shift
3845 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3846 fi
3847 fi
3848 fi
3849 fi
3850 CC=$ac_cv_prog_CC
3851 if test -n "$CC"; then
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3853 $as_echo "$CC" >&6; }
3854 else
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3856 $as_echo "no" >&6; }
3857 fi
3858
3859
3860 fi
3861 if test -z "$CC"; then
3862 if test -n "$ac_tool_prefix"; then
3863 for ac_prog in cl.exe
3864 do
3865 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3866 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3868 $as_echo_n "checking for $ac_word... " >&6; }
3869 if ${ac_cv_prog_CC+:} false; then :
3870 $as_echo_n "(cached) " >&6
3871 else
3872 if test -n "$CC"; then
3873 ac_cv_prog_CC="$CC" # Let the user override the test.
3874 else
3875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 for as_dir in $PATH
3877 do
3878 IFS=$as_save_IFS
3879 test -z "$as_dir" && as_dir=.
3880 for ac_exec_ext in '' $ac_executable_extensions; do
3881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3882 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3884 break 2
3885 fi
3886 done
3887 done
3888 IFS=$as_save_IFS
3889
3890 fi
3891 fi
3892 CC=$ac_cv_prog_CC
3893 if test -n "$CC"; then
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3895 $as_echo "$CC" >&6; }
3896 else
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3898 $as_echo "no" >&6; }
3899 fi
3900
3901
3902 test -n "$CC" && break
3903 done
3904 fi
3905 if test -z "$CC"; then
3906 ac_ct_CC=$CC
3907 for ac_prog in cl.exe
3908 do
3909 # Extract the first word of "$ac_prog", so it can be a program name with args.
3910 set dummy $ac_prog; ac_word=$2
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3912 $as_echo_n "checking for $ac_word... " >&6; }
3913 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3914 $as_echo_n "(cached) " >&6
3915 else
3916 if test -n "$ac_ct_CC"; then
3917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3918 else
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 for as_dir in $PATH
3921 do
3922 IFS=$as_save_IFS
3923 test -z "$as_dir" && as_dir=.
3924 for ac_exec_ext in '' $ac_executable_extensions; do
3925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3926 ac_cv_prog_ac_ct_CC="$ac_prog"
3927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3928 break 2
3929 fi
3930 done
3931 done
3932 IFS=$as_save_IFS
3933
3934 fi
3935 fi
3936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3937 if test -n "$ac_ct_CC"; then
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3939 $as_echo "$ac_ct_CC" >&6; }
3940 else
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942 $as_echo "no" >&6; }
3943 fi
3944
3945
3946 test -n "$ac_ct_CC" && break
3947 done
3948
3949 if test "x$ac_ct_CC" = x; then
3950 CC=""
3951 else
3952 case $cross_compiling:$ac_tool_warned in
3953 yes:)
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3956 ac_tool_warned=yes ;;
3957 esac
3958 CC=$ac_ct_CC
3959 fi
3960 fi
3961
3962 fi
3963
3964
3965 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3967 as_fn_error $? "no acceptable C compiler found in \$PATH
3968 See \`config.log' for more details" "$LINENO" 5; }
3969
3970 # Provide some information about the compiler.
3971 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3972 set X $ac_compile
3973 ac_compiler=$2
3974 for ac_option in --version -v -V -qversion; do
3975 { { ac_try="$ac_compiler $ac_option >&5"
3976 case "(($ac_try" in
3977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978 *) ac_try_echo=$ac_try;;
3979 esac
3980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3981 $as_echo "$ac_try_echo"; } >&5
3982 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3983 ac_status=$?
3984 if test -s conftest.err; then
3985 sed '10a\
3986 ... rest of stderr output deleted ...
3987 10q' conftest.err >conftest.er1
3988 cat conftest.er1 >&5
3989 fi
3990 rm -f conftest.er1 conftest.err
3991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3992 test $ac_status = 0; }
3993 done
3994
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
3997
3998 int
3999 main ()
4000 {
4001
4002 ;
4003 return 0;
4004 }
4005 _ACEOF
4006 ac_clean_files_save=$ac_clean_files
4007 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4008 # Try to create an executable without -o first, disregard a.out.
4009 # It will help us diagnose broken compilers, and finding out an intuition
4010 # of exeext.
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4012 $as_echo_n "checking whether the C compiler works... " >&6; }
4013 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4014
4015 # The possible output files:
4016 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4017
4018 ac_rmfiles=
4019 for ac_file in $ac_files
4020 do
4021 case $ac_file in
4022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4023 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4024 esac
4025 done
4026 rm -f $ac_rmfiles
4027
4028 if { { ac_try="$ac_link_default"
4029 case "(($ac_try" in
4030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4032 esac
4033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4034 $as_echo "$ac_try_echo"; } >&5
4035 (eval "$ac_link_default") 2>&5
4036 ac_status=$?
4037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4038 test $ac_status = 0; }; then :
4039 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4040 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4041 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4042 # so that the user can short-circuit this test for compilers unknown to
4043 # Autoconf.
4044 for ac_file in $ac_files ''
4045 do
4046 test -f "$ac_file" || continue
4047 case $ac_file in
4048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4049 ;;
4050 [ab].out )
4051 # We found the default executable, but exeext='' is most
4052 # certainly right.
4053 break;;
4054 *.* )
4055 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4056 then :; else
4057 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4058 fi
4059 # We set ac_cv_exeext here because the later test for it is not
4060 # safe: cross compilers may not add the suffix if given an `-o'
4061 # argument, so we may need to know it at that point already.
4062 # Even if this section looks crufty: it has the advantage of
4063 # actually working.
4064 break;;
4065 * )
4066 break;;
4067 esac
4068 done
4069 test "$ac_cv_exeext" = no && ac_cv_exeext=
4070
4071 else
4072 ac_file=''
4073 fi
4074 if test -z "$ac_file"; then :
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4076 $as_echo "no" >&6; }
4077 $as_echo "$as_me: failed program was:" >&5
4078 sed 's/^/| /' conftest.$ac_ext >&5
4079
4080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4082 as_fn_error 77 "C compiler cannot create executables
4083 See \`config.log' for more details" "$LINENO" 5; }
4084 else
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4086 $as_echo "yes" >&6; }
4087 fi
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4089 $as_echo_n "checking for C compiler default output file name... " >&6; }
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4091 $as_echo "$ac_file" >&6; }
4092 ac_exeext=$ac_cv_exeext
4093
4094 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4095 ac_clean_files=$ac_clean_files_save
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4097 $as_echo_n "checking for suffix of executables... " >&6; }
4098 if { { ac_try="$ac_link"
4099 case "(($ac_try" in
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4102 esac
4103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4104 $as_echo "$ac_try_echo"; } >&5
4105 (eval "$ac_link") 2>&5
4106 ac_status=$?
4107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4108 test $ac_status = 0; }; then :
4109 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4110 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4111 # work properly (i.e., refer to `conftest.exe'), while it won't with
4112 # `rm'.
4113 for ac_file in conftest.exe conftest conftest.*; do
4114 test -f "$ac_file" || continue
4115 case $ac_file in
4116 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4117 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4118 break;;
4119 * ) break;;
4120 esac
4121 done
4122 else
4123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4125 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4126 See \`config.log' for more details" "$LINENO" 5; }
4127 fi
4128 rm -f conftest conftest$ac_cv_exeext
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4130 $as_echo "$ac_cv_exeext" >&6; }
4131
4132 rm -f conftest.$ac_ext
4133 EXEEXT=$ac_cv_exeext
4134 ac_exeext=$EXEEXT
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4137 #include <stdio.h>
4138 int
4139 main ()
4140 {
4141 FILE *f = fopen ("conftest.out", "w");
4142 return ferror (f) || fclose (f) != 0;
4143
4144 ;
4145 return 0;
4146 }
4147 _ACEOF
4148 ac_clean_files="$ac_clean_files conftest.out"
4149 # Check that the compiler produces executables we can run. If not, either
4150 # the compiler is broken, or we cross compile.
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4152 $as_echo_n "checking whether we are cross compiling... " >&6; }
4153 if test "$cross_compiling" != yes; then
4154 { { ac_try="$ac_link"
4155 case "(($ac_try" in
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4158 esac
4159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4160 $as_echo "$ac_try_echo"; } >&5
4161 (eval "$ac_link") 2>&5
4162 ac_status=$?
4163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4164 test $ac_status = 0; }
4165 if { ac_try='./conftest$ac_cv_exeext'
4166 { { case "(($ac_try" in
4167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168 *) ac_try_echo=$ac_try;;
4169 esac
4170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4171 $as_echo "$ac_try_echo"; } >&5
4172 (eval "$ac_try") 2>&5
4173 ac_status=$?
4174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4175 test $ac_status = 0; }; }; then
4176 cross_compiling=no
4177 else
4178 if test "$cross_compiling" = maybe; then
4179 cross_compiling=yes
4180 else
4181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4183 as_fn_error $? "cannot run C compiled programs.
4184 If you meant to cross compile, use \`--host'.
4185 See \`config.log' for more details" "$LINENO" 5; }
4186 fi
4187 fi
4188 fi
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4190 $as_echo "$cross_compiling" >&6; }
4191
4192 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4193 ac_clean_files=$ac_clean_files_save
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4195 $as_echo_n "checking for suffix of object files... " >&6; }
4196 if ${ac_cv_objext+:} false; then :
4197 $as_echo_n "(cached) " >&6
4198 else
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4201
4202 int
4203 main ()
4204 {
4205
4206 ;
4207 return 0;
4208 }
4209 _ACEOF
4210 rm -f conftest.o conftest.obj
4211 if { { ac_try="$ac_compile"
4212 case "(($ac_try" in
4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 *) ac_try_echo=$ac_try;;
4215 esac
4216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4217 $as_echo "$ac_try_echo"; } >&5
4218 (eval "$ac_compile") 2>&5
4219 ac_status=$?
4220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4221 test $ac_status = 0; }; then :
4222 for ac_file in conftest.o conftest.obj conftest.*; do
4223 test -f "$ac_file" || continue;
4224 case $ac_file in
4225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4226 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4227 break;;
4228 esac
4229 done
4230 else
4231 $as_echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.$ac_ext >&5
4233
4234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4236 as_fn_error $? "cannot compute suffix of object files: cannot compile
4237 See \`config.log' for more details" "$LINENO" 5; }
4238 fi
4239 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4240 fi
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4242 $as_echo "$ac_cv_objext" >&6; }
4243 OBJEXT=$ac_cv_objext
4244 ac_objext=$OBJEXT
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4246 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4247 if ${ac_cv_c_compiler_gnu+:} false; then :
4248 $as_echo_n "(cached) " >&6
4249 else
4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h. */
4252
4253 int
4254 main ()
4255 {
4256 #ifndef __GNUC__
4257 choke me
4258 #endif
4259
4260 ;
4261 return 0;
4262 }
4263 _ACEOF
4264 if ac_fn_c_try_compile "$LINENO"; then :
4265 ac_compiler_gnu=yes
4266 else
4267 ac_compiler_gnu=no
4268 fi
4269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4270 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4271
4272 fi
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4274 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4275 if test $ac_compiler_gnu = yes; then
4276 GCC=yes
4277 else
4278 GCC=
4279 fi
4280 ac_test_CFLAGS=${CFLAGS+set}
4281 ac_save_CFLAGS=$CFLAGS
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4283 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4284 if ${ac_cv_prog_cc_g+:} false; then :
4285 $as_echo_n "(cached) " >&6
4286 else
4287 ac_save_c_werror_flag=$ac_c_werror_flag
4288 ac_c_werror_flag=yes
4289 ac_cv_prog_cc_g=no
4290 CFLAGS="-g"
4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h. */
4293
4294 int
4295 main ()
4296 {
4297
4298 ;
4299 return 0;
4300 }
4301 _ACEOF
4302 if ac_fn_c_try_compile "$LINENO"; then :
4303 ac_cv_prog_cc_g=yes
4304 else
4305 CFLAGS=""
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4308
4309 int
4310 main ()
4311 {
4312
4313 ;
4314 return 0;
4315 }
4316 _ACEOF
4317 if ac_fn_c_try_compile "$LINENO"; then :
4318
4319 else
4320 ac_c_werror_flag=$ac_save_c_werror_flag
4321 CFLAGS="-g"
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h. */
4324
4325 int
4326 main ()
4327 {
4328
4329 ;
4330 return 0;
4331 }
4332 _ACEOF
4333 if ac_fn_c_try_compile "$LINENO"; then :
4334 ac_cv_prog_cc_g=yes
4335 fi
4336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4337 fi
4338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4339 fi
4340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4341 ac_c_werror_flag=$ac_save_c_werror_flag
4342 fi
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4344 $as_echo "$ac_cv_prog_cc_g" >&6; }
4345 if test "$ac_test_CFLAGS" = set; then
4346 CFLAGS=$ac_save_CFLAGS
4347 elif test $ac_cv_prog_cc_g = yes; then
4348 if test "$GCC" = yes; then
4349 CFLAGS="-g -O2"
4350 else
4351 CFLAGS="-g"
4352 fi
4353 else
4354 if test "$GCC" = yes; then
4355 CFLAGS="-O2"
4356 else
4357 CFLAGS=
4358 fi
4359 fi
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4361 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4362 if ${ac_cv_prog_cc_c89+:} false; then :
4363 $as_echo_n "(cached) " >&6
4364 else
4365 ac_cv_prog_cc_c89=no
4366 ac_save_CC=$CC
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4369 #include <stdarg.h>
4370 #include <stdio.h>
4371 struct stat;
4372 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4373 struct buf { int x; };
4374 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4375 static char *e (p, i)
4376 char **p;
4377 int i;
4378 {
4379 return p[i];
4380 }
4381 static char *f (char * (*g) (char **, int), char **p, ...)
4382 {
4383 char *s;
4384 va_list v;
4385 va_start (v,p);
4386 s = g (p, va_arg (v,int));
4387 va_end (v);
4388 return s;
4389 }
4390
4391 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4392 function prototypes and stuff, but not '\xHH' hex character constants.
4393 These don't provoke an error unfortunately, instead are silently treated
4394 as 'x'. The following induces an error, until -std is added to get
4395 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4396 array size at least. It's necessary to write '\x00'==0 to get something
4397 that's true only with -std. */
4398 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4399
4400 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4401 inside strings and character constants. */
4402 #define FOO(x) 'x'
4403 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4404
4405 int test (int i, double x);
4406 struct s1 {int (*f) (int a);};
4407 struct s2 {int (*f) (double a);};
4408 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4409 int argc;
4410 char **argv;
4411 int
4412 main ()
4413 {
4414 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4415 ;
4416 return 0;
4417 }
4418 _ACEOF
4419 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4420 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4421 do
4422 CC="$ac_save_CC $ac_arg"
4423 if ac_fn_c_try_compile "$LINENO"; then :
4424 ac_cv_prog_cc_c89=$ac_arg
4425 fi
4426 rm -f core conftest.err conftest.$ac_objext
4427 test "x$ac_cv_prog_cc_c89" != "xno" && break
4428 done
4429 rm -f conftest.$ac_ext
4430 CC=$ac_save_CC
4431
4432 fi
4433 # AC_CACHE_VAL
4434 case "x$ac_cv_prog_cc_c89" in
4435 x)
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4437 $as_echo "none needed" >&6; } ;;
4438 xno)
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4440 $as_echo "unsupported" >&6; } ;;
4441 *)
4442 CC="$CC $ac_cv_prog_cc_c89"
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4444 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4445 esac
4446 if test "x$ac_cv_prog_cc_c89" != xno; then :
4447
4448 fi
4449
4450 ac_ext=cpp
4451 ac_cpp='$CXXCPP $CPPFLAGS'
4452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4455
4456 ac_ext=c
4457 ac_cpp='$CPP $CPPFLAGS'
4458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4462 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4463 if ${am_cv_prog_cc_c_o+:} false; then :
4464 $as_echo_n "(cached) " >&6
4465 else
4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h. */
4468
4469 int
4470 main ()
4471 {
4472
4473 ;
4474 return 0;
4475 }
4476 _ACEOF
4477 # Make sure it works both with $CC and with simple cc.
4478 # Following AC_PROG_CC_C_O, we do the test twice because some
4479 # compilers refuse to overwrite an existing .o file with -o,
4480 # though they will create one.
4481 am_cv_prog_cc_c_o=yes
4482 for am_i in 1 2; do
4483 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4484 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4485 ac_status=$?
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); } \
4488 && test -f conftest2.$ac_objext; then
4489 : OK
4490 else
4491 am_cv_prog_cc_c_o=no
4492 break
4493 fi
4494 done
4495 rm -f core conftest*
4496 unset am_i
4497 fi
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4499 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4500 if test "$am_cv_prog_cc_c_o" != yes; then
4501 # Losing compiler, so override with the script.
4502 # FIXME: It is wrong to rewrite CC.
4503 # But if we don't then we get into trouble of one sort or another.
4504 # A longer-term fix would be to have automake use am__CC in this case,
4505 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4506 CC="$am_aux_dir/compile $CC"
4507 fi
4508 ac_ext=cpp
4509 ac_cpp='$CXXCPP $CPPFLAGS'
4510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4513
4514
4515 depcc="$CC" am_compiler_list=
4516
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4518 $as_echo_n "checking dependency style of $depcc... " >&6; }
4519 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4520 $as_echo_n "(cached) " >&6
4521 else
4522 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4523 # We make a subdir and do the tests there. Otherwise we can end up
4524 # making bogus files that we don't know about and never remove. For
4525 # instance it was reported that on HP-UX the gcc test will end up
4526 # making a dummy file named 'D' -- because '-MD' means "put the output
4527 # in D".
4528 rm -rf conftest.dir
4529 mkdir conftest.dir
4530 # Copy depcomp to subdir because otherwise we won't find it if we're
4531 # using a relative directory.
4532 cp "$am_depcomp" conftest.dir
4533 cd conftest.dir
4534 # We will build objects and dependencies in a subdirectory because
4535 # it helps to detect inapplicable dependency modes. For instance
4536 # both Tru64's cc and ICC support -MD to output dependencies as a
4537 # side effect of compilation, but ICC will put the dependencies in
4538 # the current directory while Tru64 will put them in the object
4539 # directory.
4540 mkdir sub
4541
4542 am_cv_CC_dependencies_compiler_type=none
4543 if test "$am_compiler_list" = ""; then
4544 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4545 fi
4546 am__universal=false
4547 case " $depcc " in #(
4548 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4549 esac
4550
4551 for depmode in $am_compiler_list; do
4552 # Setup a source with many dependencies, because some compilers
4553 # like to wrap large dependency lists on column 80 (with \), and
4554 # we should not choose a depcomp mode which is confused by this.
4555 #
4556 # We need to recreate these files for each test, as the compiler may
4557 # overwrite some of them when testing with obscure command lines.
4558 # This happens at least with the AIX C compiler.
4559 : > sub/conftest.c
4560 for i in 1 2 3 4 5 6; do
4561 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4562 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4563 # Solaris 10 /bin/sh.
4564 echo '/* dummy */' > sub/conftst$i.h
4565 done
4566 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4567
4568 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4569 # mode. It turns out that the SunPro C++ compiler does not properly
4570 # handle '-M -o', and we need to detect this. Also, some Intel
4571 # versions had trouble with output in subdirs.
4572 am__obj=sub/conftest.${OBJEXT-o}
4573 am__minus_obj="-o $am__obj"
4574 case $depmode in
4575 gcc)
4576 # This depmode causes a compiler race in universal mode.
4577 test "$am__universal" = false || continue
4578 ;;
4579 nosideeffect)
4580 # After this tag, mechanisms are not by side-effect, so they'll
4581 # only be used when explicitly requested.
4582 if test "x$enable_dependency_tracking" = xyes; then
4583 continue
4584 else
4585 break
4586 fi
4587 ;;
4588 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4589 # This compiler won't grok '-c -o', but also, the minuso test has
4590 # not run yet. These depmodes are late enough in the game, and
4591 # so weak that their functioning should not be impacted.
4592 am__obj=conftest.${OBJEXT-o}
4593 am__minus_obj=
4594 ;;
4595 none) break ;;
4596 esac
4597 if depmode=$depmode \
4598 source=sub/conftest.c object=$am__obj \
4599 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4600 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4601 >/dev/null 2>conftest.err &&
4602 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4603 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4604 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4605 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4606 # icc doesn't choke on unknown options, it will just issue warnings
4607 # or remarks (even with -Werror). So we grep stderr for any message
4608 # that says an option was ignored or not supported.
4609 # When given -MP, icc 7.0 and 7.1 complain thusly:
4610 # icc: Command line warning: ignoring option '-M'; no argument required
4611 # The diagnosis changed in icc 8.0:
4612 # icc: Command line remark: option '-MP' not supported
4613 if (grep 'ignoring option' conftest.err ||
4614 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4615 am_cv_CC_dependencies_compiler_type=$depmode
4616 break
4617 fi
4618 fi
4619 done
4620
4621 cd ..
4622 rm -rf conftest.dir
4623 else
4624 am_cv_CC_dependencies_compiler_type=none
4625 fi
4626
4627 fi
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4629 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4630 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4631
4632 if
4633 test "x$enable_dependency_tracking" != xno \
4634 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4635 am__fastdepCC_TRUE=
4636 am__fastdepCC_FALSE='#'
4637 else
4638 am__fastdepCC_TRUE='#'
4639 am__fastdepCC_FALSE=
4640 fi
4641
4642
4643 # Make sure we can run config.sub.
4644 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4645 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4646
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4648 $as_echo_n "checking build system type... " >&6; }
4649 if ${ac_cv_build+:} false; then :
4650 $as_echo_n "(cached) " >&6
4651 else
4652 ac_build_alias=$build_alias
4653 test "x$ac_build_alias" = x &&
4654 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4655 test "x$ac_build_alias" = x &&
4656 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4657 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4658 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4659
4660 fi
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4662 $as_echo "$ac_cv_build" >&6; }
4663 case $ac_cv_build in
4664 *-*-*) ;;
4665 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4666 esac
4667 build=$ac_cv_build
4668 ac_save_IFS=$IFS; IFS='-'
4669 set x $ac_cv_build
4670 shift
4671 build_cpu=$1
4672 build_vendor=$2
4673 shift; shift
4674 # Remember, the first character of IFS is used to create $*,
4675 # except with old shells:
4676 build_os=$*
4677 IFS=$ac_save_IFS
4678 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4679
4680
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4682 $as_echo_n "checking host system type... " >&6; }
4683 if ${ac_cv_host+:} false; then :
4684 $as_echo_n "(cached) " >&6
4685 else
4686 if test "x$host_alias" = x; then
4687 ac_cv_host=$ac_cv_build
4688 else
4689 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4690 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4691 fi
4692
4693 fi
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4695 $as_echo "$ac_cv_host" >&6; }
4696 case $ac_cv_host in
4697 *-*-*) ;;
4698 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4699 esac
4700 host=$ac_cv_host
4701 ac_save_IFS=$IFS; IFS='-'
4702 set x $ac_cv_host
4703 shift
4704 host_cpu=$1
4705 host_vendor=$2
4706 shift; shift
4707 # Remember, the first character of IFS is used to create $*,
4708 # except with old shells:
4709 host_os=$*
4710 IFS=$ac_save_IFS
4711 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4712
4713
4714
4715
4716 # Check whether --with-gnu-ld was given.
4717 if test "${with_gnu_ld+set}" = set; then :
4718 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4719 else
4720 with_gnu_ld=no
4721 fi
4722
4723 # Prepare PATH_SEPARATOR.
4724 # The user is always right.
4725 if test "${PATH_SEPARATOR+set}" != set; then
4726 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
4727 # contains only /bin. Note that ksh looks also at the FPATH variable,
4728 # so we have to set that as well for the test.
4729 PATH_SEPARATOR=:
4730 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4731 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4732 || PATH_SEPARATOR=';'
4733 }
4734 fi
4735
4736 ac_prog=ld
4737 if test "$GCC" = yes; then
4738 # Check if gcc -print-prog-name=ld gives a path.
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4740 $as_echo_n "checking for ld used by $CC... " >&6; }
4741 case $host in
4742 *-*-mingw*)
4743 # gcc leaves a trailing carriage return which upsets mingw
4744 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4745 *)
4746 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4747 esac
4748 case $ac_prog in
4749 # Accept absolute paths.
4750 [\\/]* | ?:[\\/]*)
4751 re_direlt='/[^/][^/]*/\.\./'
4752 # Canonicalize the pathname of ld
4753 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
4754 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
4755 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4756 done
4757 test -z "$LD" && LD="$ac_prog"
4758 ;;
4759 "")
4760 # If it fails, then pretend we aren't using GCC.
4761 ac_prog=ld
4762 ;;
4763 *)
4764 # If it is relative, then search for the first ld in PATH.
4765 with_gnu_ld=unknown
4766 ;;
4767 esac
4768 elif test "$with_gnu_ld" = yes; then
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4770 $as_echo_n "checking for GNU ld... " >&6; }
4771 else
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4773 $as_echo_n "checking for non-GNU ld... " >&6; }
4774 fi
4775 if ${acl_cv_path_LD+:} false; then :
4776 $as_echo_n "(cached) " >&6
4777 else
4778 if test -z "$LD"; then
4779 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4780 for ac_dir in $PATH; do
4781 IFS="$acl_save_ifs"
4782 test -z "$ac_dir" && ac_dir=.
4783 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4784 acl_cv_path_LD="$ac_dir/$ac_prog"
4785 # Check to see if the program is GNU ld. I'd rather use --version,
4786 # but apparently some variants of GNU ld only accept -v.
4787 # Break only if it was the GNU/non-GNU ld that we prefer.
4788 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
4789 *GNU* | *'with BFD'*)
4790 test "$with_gnu_ld" != no && break
4791 ;;
4792 *)
4793 test "$with_gnu_ld" != yes && break
4794 ;;
4795 esac
4796 fi
4797 done
4798 IFS="$acl_save_ifs"
4799 else
4800 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4801 fi
4802 fi
4803
4804 LD="$acl_cv_path_LD"
4805 if test -n "$LD"; then
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4807 $as_echo "$LD" >&6; }
4808 else
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810 $as_echo "no" >&6; }
4811 fi
4812 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4814 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4815 if ${acl_cv_prog_gnu_ld+:} false; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4819 case `$LD -v 2>&1 </dev/null` in
4820 *GNU* | *'with BFD'*)
4821 acl_cv_prog_gnu_ld=yes
4822 ;;
4823 *)
4824 acl_cv_prog_gnu_ld=no
4825 ;;
4826 esac
4827 fi
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4829 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4830 with_gnu_ld=$acl_cv_prog_gnu_ld
4831
4832
4833
4834
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4836 $as_echo_n "checking for shared library run path origin... " >&6; }
4837 if ${acl_cv_rpath+:} false; then :
4838 $as_echo_n "(cached) " >&6
4839 else
4840
4841 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4842 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4843 . ./conftest.sh
4844 rm -f ./conftest.sh
4845 acl_cv_rpath=done
4846
4847 fi
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4849 $as_echo "$acl_cv_rpath" >&6; }
4850 wl="$acl_cv_wl"
4851 acl_libext="$acl_cv_libext"
4852 acl_shlibext="$acl_cv_shlibext"
4853 acl_libname_spec="$acl_cv_libname_spec"
4854 acl_library_names_spec="$acl_cv_library_names_spec"
4855 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4856 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4857 acl_hardcode_direct="$acl_cv_hardcode_direct"
4858 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4859 # Check whether --enable-rpath was given.
4860 if test "${enable_rpath+set}" = set; then :
4861 enableval=$enable_rpath; :
4862 else
4863 enable_rpath=yes
4864 fi
4865
4866
4867 ac_ext=cpp
4868 ac_cpp='$CXXCPP $CPPFLAGS'
4869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4872 if test -z "$CXX"; then
4873 if test -n "$CCC"; then
4874 CXX=$CCC
4875 else
4876 if test -n "$ac_tool_prefix"; then
4877 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4878 do
4879 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4880 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4882 $as_echo_n "checking for $ac_word... " >&6; }
4883 if ${ac_cv_prog_CXX+:} false; then :
4884 $as_echo_n "(cached) " >&6
4885 else
4886 if test -n "$CXX"; then
4887 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4888 else
4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 for as_dir in $PATH
4891 do
4892 IFS=$as_save_IFS
4893 test -z "$as_dir" && as_dir=.
4894 for ac_exec_ext in '' $ac_executable_extensions; do
4895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4896 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4898 break 2
4899 fi
4900 done
4901 done
4902 IFS=$as_save_IFS
4903
4904 fi
4905 fi
4906 CXX=$ac_cv_prog_CXX
4907 if test -n "$CXX"; then
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4909 $as_echo "$CXX" >&6; }
4910 else
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912 $as_echo "no" >&6; }
4913 fi
4914
4915
4916 test -n "$CXX" && break
4917 done
4918 fi
4919 if test -z "$CXX"; then
4920 ac_ct_CXX=$CXX
4921 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4922 do
4923 # Extract the first word of "$ac_prog", so it can be a program name with args.
4924 set dummy $ac_prog; ac_word=$2
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4926 $as_echo_n "checking for $ac_word... " >&6; }
4927 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4928 $as_echo_n "(cached) " >&6
4929 else
4930 if test -n "$ac_ct_CXX"; then
4931 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4932 else
4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 for as_dir in $PATH
4935 do
4936 IFS=$as_save_IFS
4937 test -z "$as_dir" && as_dir=.
4938 for ac_exec_ext in '' $ac_executable_extensions; do
4939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4940 ac_cv_prog_ac_ct_CXX="$ac_prog"
4941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4942 break 2
4943 fi
4944 done
4945 done
4946 IFS=$as_save_IFS
4947
4948 fi
4949 fi
4950 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4951 if test -n "$ac_ct_CXX"; then
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4953 $as_echo "$ac_ct_CXX" >&6; }
4954 else
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4956 $as_echo "no" >&6; }
4957 fi
4958
4959
4960 test -n "$ac_ct_CXX" && break
4961 done
4962
4963 if test "x$ac_ct_CXX" = x; then
4964 CXX="g++"
4965 else
4966 case $cross_compiling:$ac_tool_warned in
4967 yes:)
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4970 ac_tool_warned=yes ;;
4971 esac
4972 CXX=$ac_ct_CXX
4973 fi
4974 fi
4975
4976 fi
4977 fi
4978 # Provide some information about the compiler.
4979 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4980 set X $ac_compile
4981 ac_compiler=$2
4982 for ac_option in --version -v -V -qversion; do
4983 { { ac_try="$ac_compiler $ac_option >&5"
4984 case "(($ac_try" in
4985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986 *) ac_try_echo=$ac_try;;
4987 esac
4988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4989 $as_echo "$ac_try_echo"; } >&5
4990 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4991 ac_status=$?
4992 if test -s conftest.err; then
4993 sed '10a\
4994 ... rest of stderr output deleted ...
4995 10q' conftest.err >conftest.er1
4996 cat conftest.er1 >&5
4997 fi
4998 rm -f conftest.er1 conftest.err
4999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5000 test $ac_status = 0; }
5001 done
5002
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5004 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5005 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5006 $as_echo_n "(cached) " >&6
5007 else
5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h. */
5010
5011 int
5012 main ()
5013 {
5014 #ifndef __GNUC__
5015 choke me
5016 #endif
5017
5018 ;
5019 return 0;
5020 }
5021 _ACEOF
5022 if ac_fn_cxx_try_compile "$LINENO"; then :
5023 ac_compiler_gnu=yes
5024 else
5025 ac_compiler_gnu=no
5026 fi
5027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5028 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5029
5030 fi
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5032 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5033 if test $ac_compiler_gnu = yes; then
5034 GXX=yes
5035 else
5036 GXX=
5037 fi
5038 ac_test_CXXFLAGS=${CXXFLAGS+set}
5039 ac_save_CXXFLAGS=$CXXFLAGS
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5041 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5042 if ${ac_cv_prog_cxx_g+:} false; then :
5043 $as_echo_n "(cached) " >&6
5044 else
5045 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5046 ac_cxx_werror_flag=yes
5047 ac_cv_prog_cxx_g=no
5048 CXXFLAGS="-g"
5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h. */
5051
5052 int
5053 main ()
5054 {
5055
5056 ;
5057 return 0;
5058 }
5059 _ACEOF
5060 if ac_fn_cxx_try_compile "$LINENO"; then :
5061 ac_cv_prog_cxx_g=yes
5062 else
5063 CXXFLAGS=""
5064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5065 /* end confdefs.h. */
5066
5067 int
5068 main ()
5069 {
5070
5071 ;
5072 return 0;
5073 }
5074 _ACEOF
5075 if ac_fn_cxx_try_compile "$LINENO"; then :
5076
5077 else
5078 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5079 CXXFLAGS="-g"
5080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5081 /* end confdefs.h. */
5082
5083 int
5084 main ()
5085 {
5086
5087 ;
5088 return 0;
5089 }
5090 _ACEOF
5091 if ac_fn_cxx_try_compile "$LINENO"; then :
5092 ac_cv_prog_cxx_g=yes
5093 fi
5094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5095 fi
5096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5097 fi
5098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5099 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5100 fi
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5102 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5103 if test "$ac_test_CXXFLAGS" = set; then
5104 CXXFLAGS=$ac_save_CXXFLAGS
5105 elif test $ac_cv_prog_cxx_g = yes; then
5106 if test "$GXX" = yes; then
5107 CXXFLAGS="-g -O2"
5108 else
5109 CXXFLAGS="-g"
5110 fi
5111 else
5112 if test "$GXX" = yes; then
5113 CXXFLAGS="-O2"
5114 else
5115 CXXFLAGS=
5116 fi
5117 fi
5118 ac_ext=cpp
5119 ac_cpp='$CXXCPP $CPPFLAGS'
5120 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5121 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5122 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5123
5124 depcc="$CXX" am_compiler_list=
5125
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5127 $as_echo_n "checking dependency style of $depcc... " >&6; }
5128 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5129 $as_echo_n "(cached) " >&6
5130 else
5131 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5132 # We make a subdir and do the tests there. Otherwise we can end up
5133 # making bogus files that we don't know about and never remove. For
5134 # instance it was reported that on HP-UX the gcc test will end up
5135 # making a dummy file named 'D' -- because '-MD' means "put the output
5136 # in D".
5137 rm -rf conftest.dir
5138 mkdir conftest.dir
5139 # Copy depcomp to subdir because otherwise we won't find it if we're
5140 # using a relative directory.
5141 cp "$am_depcomp" conftest.dir
5142 cd conftest.dir
5143 # We will build objects and dependencies in a subdirectory because
5144 # it helps to detect inapplicable dependency modes. For instance
5145 # both Tru64's cc and ICC support -MD to output dependencies as a
5146 # side effect of compilation, but ICC will put the dependencies in
5147 # the current directory while Tru64 will put them in the object
5148 # directory.
5149 mkdir sub
5150
5151 am_cv_CXX_dependencies_compiler_type=none
5152 if test "$am_compiler_list" = ""; then
5153 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5154 fi
5155 am__universal=false
5156 case " $depcc " in #(
5157 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5158 esac
5159
5160 for depmode in $am_compiler_list; do
5161 # Setup a source with many dependencies, because some compilers
5162 # like to wrap large dependency lists on column 80 (with \), and
5163 # we should not choose a depcomp mode which is confused by this.
5164 #
5165 # We need to recreate these files for each test, as the compiler may
5166 # overwrite some of them when testing with obscure command lines.
5167 # This happens at least with the AIX C compiler.
5168 : > sub/conftest.c
5169 for i in 1 2 3 4 5 6; do
5170 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5171 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5172 # Solaris 10 /bin/sh.
5173 echo '/* dummy */' > sub/conftst$i.h
5174 done
5175 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5176
5177 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5178 # mode. It turns out that the SunPro C++ compiler does not properly
5179 # handle '-M -o', and we need to detect this. Also, some Intel
5180 # versions had trouble with output in subdirs.
5181 am__obj=sub/conftest.${OBJEXT-o}
5182 am__minus_obj="-o $am__obj"
5183 case $depmode in
5184 gcc)
5185 # This depmode causes a compiler race in universal mode.
5186 test "$am__universal" = false || continue
5187 ;;
5188 nosideeffect)
5189 # After this tag, mechanisms are not by side-effect, so they'll
5190 # only be used when explicitly requested.
5191 if test "x$enable_dependency_tracking" = xyes; then
5192 continue
5193 else
5194 break
5195 fi
5196 ;;
5197 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5198 # This compiler won't grok '-c -o', but also, the minuso test has
5199 # not run yet. These depmodes are late enough in the game, and
5200 # so weak that their functioning should not be impacted.
5201 am__obj=conftest.${OBJEXT-o}
5202 am__minus_obj=
5203 ;;
5204 none) break ;;
5205 esac
5206 if depmode=$depmode \
5207 source=sub/conftest.c object=$am__obj \
5208 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5209 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5210 >/dev/null 2>conftest.err &&
5211 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5212 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5214 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5215 # icc doesn't choke on unknown options, it will just issue warnings
5216 # or remarks (even with -Werror). So we grep stderr for any message
5217 # that says an option was ignored or not supported.
5218 # When given -MP, icc 7.0 and 7.1 complain thusly:
5219 # icc: Command line warning: ignoring option '-M'; no argument required
5220 # The diagnosis changed in icc 8.0:
5221 # icc: Command line remark: option '-MP' not supported
5222 if (grep 'ignoring option' conftest.err ||
5223 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5224 am_cv_CXX_dependencies_compiler_type=$depmode
5225 break
5226 fi
5227 fi
5228 done
5229
5230 cd ..
5231 rm -rf conftest.dir
5232 else
5233 am_cv_CXX_dependencies_compiler_type=none
5234 fi
5235
5236 fi
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5238 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5239 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5240
5241 if
5242 test "x$enable_dependency_tracking" != xno \
5243 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5244 am__fastdepCXX_TRUE=
5245 am__fastdepCXX_FALSE='#'
5246 else
5247 am__fastdepCXX_TRUE='#'
5248 am__fastdepCXX_FALSE=
5249 fi
5250
5251
5252
5253 ac_ext=cpp
5254 ac_cpp='$CXXCPP $CPPFLAGS'
5255 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5256 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5257 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5259 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5260 if test -z "$CXXCPP"; then
5261 if ${ac_cv_prog_CXXCPP+:} false; then :
5262 $as_echo_n "(cached) " >&6
5263 else
5264 # Double quotes because CXXCPP needs to be expanded
5265 for CXXCPP in "$CXX -E" "/lib/cpp"
5266 do
5267 ac_preproc_ok=false
5268 for ac_cxx_preproc_warn_flag in '' yes
5269 do
5270 # Use a header file that comes with gcc, so configuring glibc
5271 # with a fresh cross-compiler works.
5272 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5273 # <limits.h> exists even on freestanding compilers.
5274 # On the NeXT, cc -E runs the code through the compiler's parser,
5275 # not just through cpp. "Syntax error" is here to catch this case.
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5278 #ifdef __STDC__
5279 # include <limits.h>
5280 #else
5281 # include <assert.h>
5282 #endif
5283 Syntax error
5284 _ACEOF
5285 if ac_fn_cxx_try_cpp "$LINENO"; then :
5286
5287 else
5288 # Broken: fails on valid input.
5289 continue
5290 fi
5291 rm -f conftest.err conftest.i conftest.$ac_ext
5292
5293 # OK, works on sane cases. Now check whether nonexistent headers
5294 # can be detected and how.
5295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h. */
5297 #include <ac_nonexistent.h>
5298 _ACEOF
5299 if ac_fn_cxx_try_cpp "$LINENO"; then :
5300 # Broken: success on invalid input.
5301 continue
5302 else
5303 # Passes both tests.
5304 ac_preproc_ok=:
5305 break
5306 fi
5307 rm -f conftest.err conftest.i conftest.$ac_ext
5308
5309 done
5310 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5311 rm -f conftest.i conftest.err conftest.$ac_ext
5312 if $ac_preproc_ok; then :
5313 break
5314 fi
5315
5316 done
5317 ac_cv_prog_CXXCPP=$CXXCPP
5318
5319 fi
5320 CXXCPP=$ac_cv_prog_CXXCPP
5321 else
5322 ac_cv_prog_CXXCPP=$CXXCPP
5323 fi
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5325 $as_echo "$CXXCPP" >&6; }
5326 ac_preproc_ok=false
5327 for ac_cxx_preproc_warn_flag in '' yes
5328 do
5329 # Use a header file that comes with gcc, so configuring glibc
5330 # with a fresh cross-compiler works.
5331 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5332 # <limits.h> exists even on freestanding compilers.
5333 # On the NeXT, cc -E runs the code through the compiler's parser,
5334 # not just through cpp. "Syntax error" is here to catch this case.
5335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336 /* end confdefs.h. */
5337 #ifdef __STDC__
5338 # include <limits.h>
5339 #else
5340 # include <assert.h>
5341 #endif
5342 Syntax error
5343 _ACEOF
5344 if ac_fn_cxx_try_cpp "$LINENO"; then :
5345
5346 else
5347 # Broken: fails on valid input.
5348 continue
5349 fi
5350 rm -f conftest.err conftest.i conftest.$ac_ext
5351
5352 # OK, works on sane cases. Now check whether nonexistent headers
5353 # can be detected and how.
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h. */
5356 #include <ac_nonexistent.h>
5357 _ACEOF
5358 if ac_fn_cxx_try_cpp "$LINENO"; then :
5359 # Broken: success on invalid input.
5360 continue
5361 else
5362 # Passes both tests.
5363 ac_preproc_ok=:
5364 break
5365 fi
5366 rm -f conftest.err conftest.i conftest.$ac_ext
5367
5368 done
5369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5370 rm -f conftest.i conftest.err conftest.$ac_ext
5371 if $ac_preproc_ok; then :
5372
5373 else
5374 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5376 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5377 See \`config.log' for more details" "$LINENO" 5; }
5378 fi
5379
5380 ac_ext=cpp
5381 ac_cpp='$CXXCPP $CPPFLAGS'
5382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5385
5386
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5388 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5389 if ${ac_cv_path_GREP+:} false; then :
5390 $as_echo_n "(cached) " >&6
5391 else
5392 if test -z "$GREP"; then
5393 ac_path_GREP_found=false
5394 # Loop through the user's path and test for each of PROGNAME-LIST
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5397 do
5398 IFS=$as_save_IFS
5399 test -z "$as_dir" && as_dir=.
5400 for ac_prog in grep ggrep; do
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5403 as_fn_executable_p "$ac_path_GREP" || continue
5404 # Check for GNU ac_path_GREP and select it if it is found.
5405 # Check for GNU $ac_path_GREP
5406 case `"$ac_path_GREP" --version 2>&1` in
5407 *GNU*)
5408 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5409 *)
5410 ac_count=0
5411 $as_echo_n 0123456789 >"conftest.in"
5412 while :
5413 do
5414 cat "conftest.in" "conftest.in" >"conftest.tmp"
5415 mv "conftest.tmp" "conftest.in"
5416 cp "conftest.in" "conftest.nl"
5417 $as_echo 'GREP' >> "conftest.nl"
5418 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5419 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5420 as_fn_arith $ac_count + 1 && ac_count=$as_val
5421 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5422 # Best one so far, save it but keep looking for a better one
5423 ac_cv_path_GREP="$ac_path_GREP"
5424 ac_path_GREP_max=$ac_count
5425 fi
5426 # 10*(2^10) chars as input seems more than enough
5427 test $ac_count -gt 10 && break
5428 done
5429 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5430 esac
5431
5432 $ac_path_GREP_found && break 3
5433 done
5434 done
5435 done
5436 IFS=$as_save_IFS
5437 if test -z "$ac_cv_path_GREP"; then
5438 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5439 fi
5440 else
5441 ac_cv_path_GREP=$GREP
5442 fi
5443
5444 fi
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5446 $as_echo "$ac_cv_path_GREP" >&6; }
5447 GREP="$ac_cv_path_GREP"
5448
5449
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5451 $as_echo_n "checking for egrep... " >&6; }
5452 if ${ac_cv_path_EGREP+:} false; then :
5453 $as_echo_n "(cached) " >&6
5454 else
5455 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5456 then ac_cv_path_EGREP="$GREP -E"
5457 else
5458 if test -z "$EGREP"; then
5459 ac_path_EGREP_found=false
5460 # Loop through the user's path and test for each of PROGNAME-LIST
5461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5463 do
5464 IFS=$as_save_IFS
5465 test -z "$as_dir" && as_dir=.
5466 for ac_prog in egrep; do
5467 for ac_exec_ext in '' $ac_executable_extensions; do
5468 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5469 as_fn_executable_p "$ac_path_EGREP" || continue
5470 # Check for GNU ac_path_EGREP and select it if it is found.
5471 # Check for GNU $ac_path_EGREP
5472 case `"$ac_path_EGREP" --version 2>&1` in
5473 *GNU*)
5474 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5475 *)
5476 ac_count=0
5477 $as_echo_n 0123456789 >"conftest.in"
5478 while :
5479 do
5480 cat "conftest.in" "conftest.in" >"conftest.tmp"
5481 mv "conftest.tmp" "conftest.in"
5482 cp "conftest.in" "conftest.nl"
5483 $as_echo 'EGREP' >> "conftest.nl"
5484 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5485 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5486 as_fn_arith $ac_count + 1 && ac_count=$as_val
5487 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5488 # Best one so far, save it but keep looking for a better one
5489 ac_cv_path_EGREP="$ac_path_EGREP"
5490 ac_path_EGREP_max=$ac_count
5491 fi
5492 # 10*(2^10) chars as input seems more than enough
5493 test $ac_count -gt 10 && break
5494 done
5495 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5496 esac
5497
5498 $ac_path_EGREP_found && break 3
5499 done
5500 done
5501 done
5502 IFS=$as_save_IFS
5503 if test -z "$ac_cv_path_EGREP"; then
5504 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5505 fi
5506 else
5507 ac_cv_path_EGREP=$EGREP
5508 fi
5509
5510 fi
5511 fi
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5513 $as_echo "$ac_cv_path_EGREP" >&6; }
5514 EGREP="$ac_cv_path_EGREP"
5515
5516
5517
5518
5519 acl_libdirstem=lib
5520 acl_libdirstem2=
5521 case "$host_os" in
5522 solaris*)
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5524 $as_echo_n "checking for 64-bit host... " >&6; }
5525 if ${gl_cv_solaris_64bit+:} false; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5530
5531 #ifdef _LP64
5532 sixtyfour bits
5533 #endif
5534
5535 _ACEOF
5536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5537 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5538 gl_cv_solaris_64bit=yes
5539 else
5540 gl_cv_solaris_64bit=no
5541 fi
5542 rm -f conftest*
5543
5544
5545 fi
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5547 $as_echo "$gl_cv_solaris_64bit" >&6; }
5548 if test $gl_cv_solaris_64bit = yes; then
5549 acl_libdirstem=lib/64
5550 case "$host_cpu" in
5551 sparc*) acl_libdirstem2=lib/sparcv9 ;;
5552 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5553 esac
5554 fi
5555 ;;
5556 *)
5557 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5558 if test -n "$searchpath"; then
5559 acl_save_IFS="${IFS= }"; IFS=":"
5560 for searchdir in $searchpath; do
5561 if test -d "$searchdir"; then
5562 case "$searchdir" in
5563 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5564 */../ | */.. )
5565 # Better ignore directories of this form. They are misleading.
5566 ;;
5567 *) searchdir=`cd "$searchdir" && pwd`
5568 case "$searchdir" in
5569 */lib64 ) acl_libdirstem=lib64 ;;
5570 esac ;;
5571 esac
5572 fi
5573 done
5574 IFS="$acl_save_IFS"
5575 fi
5576 ;;
5577 esac
5578 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591 use_additional=yes
5592
5593 acl_save_prefix="$prefix"
5594 prefix="$acl_final_prefix"
5595 acl_save_exec_prefix="$exec_prefix"
5596 exec_prefix="$acl_final_exec_prefix"
5597
5598 eval additional_includedir=\"$includedir\"
5599 eval additional_libdir=\"$libdir\"
5600
5601 exec_prefix="$acl_save_exec_prefix"
5602 prefix="$acl_save_prefix"
5603
5604
5605 # Check whether --with-libiconv-prefix was given.
5606 if test "${with_libiconv_prefix+set}" = set; then :
5607 withval=$with_libiconv_prefix;
5608 if test "X$withval" = "Xno"; then
5609 use_additional=no
5610 else
5611 if test "X$withval" = "X"; then
5612
5613 acl_save_prefix="$prefix"
5614 prefix="$acl_final_prefix"
5615 acl_save_exec_prefix="$exec_prefix"
5616 exec_prefix="$acl_final_exec_prefix"
5617
5618 eval additional_includedir=\"$includedir\"
5619 eval additional_libdir=\"$libdir\"
5620
5621 exec_prefix="$acl_save_exec_prefix"
5622 prefix="$acl_save_prefix"
5623
5624 else
5625 additional_includedir="$withval/include"
5626 additional_libdir="$withval/$acl_libdirstem"
5627 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5628 && ! test -d "$withval/$acl_libdirstem"; then
5629 additional_libdir="$withval/$acl_libdirstem2"
5630 fi
5631 fi
5632 fi
5633
5634 fi
5635
5636 LIBICONV=
5637 LTLIBICONV=
5638 INCICONV=
5639 LIBICONV_PREFIX=
5640 HAVE_LIBICONV=
5641 rpathdirs=
5642 ltrpathdirs=
5643 names_already_handled=
5644 names_next_round='iconv '
5645 while test -n "$names_next_round"; do
5646 names_this_round="$names_next_round"
5647 names_next_round=
5648 for name in $names_this_round; do
5649 already_handled=
5650 for n in $names_already_handled; do
5651 if test "$n" = "$name"; then
5652 already_handled=yes
5653 break
5654 fi
5655 done
5656 if test -z "$already_handled"; then
5657 names_already_handled="$names_already_handled $name"
5658 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
5659 eval value=\"\$HAVE_LIB$uppername\"
5660 if test -n "$value"; then
5661 if test "$value" = yes; then
5662 eval value=\"\$LIB$uppername\"
5663 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5664 eval value=\"\$LTLIB$uppername\"
5665 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5666 else
5667 :
5668 fi
5669 else
5670 found_dir=
5671 found_la=
5672 found_so=
5673 found_a=
5674 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5675 if test -n "$acl_shlibext"; then
5676 shrext=".$acl_shlibext" # typically: shrext=.so
5677 else
5678 shrext=
5679 fi
5680 if test $use_additional = yes; then
5681 dir="$additional_libdir"
5682 if test -n "$acl_shlibext"; then
5683 if test -f "$dir/$libname$shrext"; then
5684 found_dir="$dir"
5685 found_so="$dir/$libname$shrext"
5686 else
5687 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5688 ver=`(cd "$dir" && \
5689 for f in "$libname$shrext".*; do echo "$f"; done \
5690 | sed -e "s,^$libname$shrext\\\\.,," \
5691 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5692 | sed 1q ) 2>/dev/null`
5693 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5694 found_dir="$dir"
5695 found_so="$dir/$libname$shrext.$ver"
5696 fi
5697 else
5698 eval library_names=\"$acl_library_names_spec\"
5699 for f in $library_names; do
5700 if test -f "$dir/$f"; then
5701 found_dir="$dir"
5702 found_so="$dir/$f"
5703 break
5704 fi
5705 done
5706 fi
5707 fi
5708 fi
5709 if test "X$found_dir" = "X"; then
5710 if test -f "$dir/$libname.$acl_libext"; then
5711 found_dir="$dir"
5712 found_a="$dir/$libname.$acl_libext"
5713 fi
5714 fi
5715 if test "X$found_dir" != "X"; then
5716 if test -f "$dir/$libname.la"; then
5717 found_la="$dir/$libname.la"
5718 fi
5719 fi
5720 fi
5721 if test "X$found_dir" = "X"; then
5722 for x in $LDFLAGS $LTLIBICONV; do
5723
5724 acl_save_prefix="$prefix"
5725 prefix="$acl_final_prefix"
5726 acl_save_exec_prefix="$exec_prefix"
5727 exec_prefix="$acl_final_exec_prefix"
5728 eval x=\"$x\"
5729 exec_prefix="$acl_save_exec_prefix"
5730 prefix="$acl_save_prefix"
5731
5732 case "$x" in
5733 -L*)
5734 dir=`echo "X$x" | sed -e 's/^X-L//'`
5735 if test -n "$acl_shlibext"; then
5736 if test -f "$dir/$libname$shrext"; then
5737 found_dir="$dir"
5738 found_so="$dir/$libname$shrext"
5739 else
5740 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5741 ver=`(cd "$dir" && \
5742 for f in "$libname$shrext".*; do echo "$f"; done \
5743 | sed -e "s,^$libname$shrext\\\\.,," \
5744 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5745 | sed 1q ) 2>/dev/null`
5746 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5747 found_dir="$dir"
5748 found_so="$dir/$libname$shrext.$ver"
5749 fi
5750 else
5751 eval library_names=\"$acl_library_names_spec\"
5752 for f in $library_names; do
5753 if test -f "$dir/$f"; then
5754 found_dir="$dir"
5755 found_so="$dir/$f"
5756 break
5757 fi
5758 done
5759 fi
5760 fi
5761 fi
5762 if test "X$found_dir" = "X"; then
5763 if test -f "$dir/$libname.$acl_libext"; then
5764 found_dir="$dir"
5765 found_a="$dir/$libname.$acl_libext"
5766 fi
5767 fi
5768 if test "X$found_dir" != "X"; then
5769 if test -f "$dir/$libname.la"; then
5770 found_la="$dir/$libname.la"
5771 fi
5772 fi
5773 ;;
5774 esac
5775 if test "X$found_dir" != "X"; then
5776 break
5777 fi
5778 done
5779 fi
5780 if test "X$found_dir" != "X"; then
5781 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5782 if test "X$found_so" != "X"; then
5783 if test "$enable_rpath" = no \
5784 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5785 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5786 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5787 else
5788 haveit=
5789 for x in $ltrpathdirs; do
5790 if test "X$x" = "X$found_dir"; then
5791 haveit=yes
5792 break
5793 fi
5794 done
5795 if test -z "$haveit"; then
5796 ltrpathdirs="$ltrpathdirs $found_dir"
5797 fi
5798 if test "$acl_hardcode_direct" = yes; then
5799 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5800 else
5801 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5802 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5803 haveit=
5804 for x in $rpathdirs; do
5805 if test "X$x" = "X$found_dir"; then
5806 haveit=yes
5807 break
5808 fi
5809 done
5810 if test -z "$haveit"; then
5811 rpathdirs="$rpathdirs $found_dir"
5812 fi
5813 else
5814 haveit=
5815 for x in $LDFLAGS $LIBICONV; do
5816
5817 acl_save_prefix="$prefix"
5818 prefix="$acl_final_prefix"
5819 acl_save_exec_prefix="$exec_prefix"
5820 exec_prefix="$acl_final_exec_prefix"
5821 eval x=\"$x\"
5822 exec_prefix="$acl_save_exec_prefix"
5823 prefix="$acl_save_prefix"
5824
5825 if test "X$x" = "X-L$found_dir"; then
5826 haveit=yes
5827 break
5828 fi
5829 done
5830 if test -z "$haveit"; then
5831 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5832 fi
5833 if test "$acl_hardcode_minus_L" != no; then
5834 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5835 else
5836 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5837 fi
5838 fi
5839 fi
5840 fi
5841 else
5842 if test "X$found_a" != "X"; then
5843 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5844 else
5845 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5846 fi
5847 fi
5848 additional_includedir=
5849 case "$found_dir" in
5850 */$acl_libdirstem | */$acl_libdirstem/)
5851 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5852 if test "$name" = 'iconv'; then
5853 LIBICONV_PREFIX="$basedir"
5854 fi
5855 additional_includedir="$basedir/include"
5856 ;;
5857 */$acl_libdirstem2 | */$acl_libdirstem2/)
5858 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5859 if test "$name" = 'iconv'; then
5860 LIBICONV_PREFIX="$basedir"
5861 fi
5862 additional_includedir="$basedir/include"
5863 ;;
5864 esac
5865 if test "X$additional_includedir" != "X"; then
5866 if test "X$additional_includedir" != "X/usr/include"; then
5867 haveit=
5868 if test "X$additional_includedir" = "X/usr/local/include"; then
5869 if test -n "$GCC"; then
5870 case $host_os in
5871 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5872 esac
5873 fi
5874 fi
5875 if test -z "$haveit"; then
5876 for x in $CPPFLAGS $INCICONV; do
5877
5878 acl_save_prefix="$prefix"
5879 prefix="$acl_final_prefix"
5880 acl_save_exec_prefix="$exec_prefix"
5881 exec_prefix="$acl_final_exec_prefix"
5882 eval x=\"$x\"
5883 exec_prefix="$acl_save_exec_prefix"
5884 prefix="$acl_save_prefix"
5885
5886 if test "X$x" = "X-I$additional_includedir"; then
5887 haveit=yes
5888 break
5889 fi
5890 done
5891 if test -z "$haveit"; then
5892 if test -d "$additional_includedir"; then
5893 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5894 fi
5895 fi
5896 fi
5897 fi
5898 fi
5899 if test -n "$found_la"; then
5900 save_libdir="$libdir"
5901 case "$found_la" in
5902 */* | *\\*) . "$found_la" ;;
5903 *) . "./$found_la" ;;
5904 esac
5905 libdir="$save_libdir"
5906 for dep in $dependency_libs; do
5907 case "$dep" in
5908 -L*)
5909 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5910 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5911 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5912 haveit=
5913 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5914 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5915 if test -n "$GCC"; then
5916 case $host_os in
5917 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5918 esac
5919 fi
5920 fi
5921 if test -z "$haveit"; then
5922 haveit=
5923 for x in $LDFLAGS $LIBICONV; do
5924
5925 acl_save_prefix="$prefix"
5926 prefix="$acl_final_prefix"
5927 acl_save_exec_prefix="$exec_prefix"
5928 exec_prefix="$acl_final_exec_prefix"
5929 eval x=\"$x\"
5930 exec_prefix="$acl_save_exec_prefix"
5931 prefix="$acl_save_prefix"
5932
5933 if test "X$x" = "X-L$additional_libdir"; then
5934 haveit=yes
5935 break
5936 fi
5937 done
5938 if test -z "$haveit"; then
5939 if test -d "$additional_libdir"; then
5940 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5941 fi
5942 fi
5943 haveit=
5944 for x in $LDFLAGS $LTLIBICONV; do
5945
5946 acl_save_prefix="$prefix"
5947 prefix="$acl_final_prefix"
5948 acl_save_exec_prefix="$exec_prefix"
5949 exec_prefix="$acl_final_exec_prefix"
5950 eval x=\"$x\"
5951 exec_prefix="$acl_save_exec_prefix"
5952 prefix="$acl_save_prefix"
5953
5954 if test "X$x" = "X-L$additional_libdir"; then
5955 haveit=yes
5956 break
5957 fi
5958 done
5959 if test -z "$haveit"; then
5960 if test -d "$additional_libdir"; then
5961 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5962 fi
5963 fi
5964 fi
5965 fi
5966 ;;
5967 -R*)
5968 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5969 if test "$enable_rpath" != no; then
5970 haveit=
5971 for x in $rpathdirs; do
5972 if test "X$x" = "X$dir"; then
5973 haveit=yes
5974 break
5975 fi
5976 done
5977 if test -z "$haveit"; then
5978 rpathdirs="$rpathdirs $dir"
5979 fi
5980 haveit=
5981 for x in $ltrpathdirs; do
5982 if test "X$x" = "X$dir"; then
5983 haveit=yes
5984 break
5985 fi
5986 done
5987 if test -z "$haveit"; then
5988 ltrpathdirs="$ltrpathdirs $dir"
5989 fi
5990 fi
5991 ;;
5992 -l*)
5993 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5994 ;;
5995 *.la)
5996 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5997 ;;
5998 *)
5999 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6000 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6001 ;;
6002 esac
6003 done
6004 fi
6005 else
6006 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6007 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6008 fi
6009 fi
6010 fi
6011 done
6012 done
6013 if test "X$rpathdirs" != "X"; then
6014 if test -n "$acl_hardcode_libdir_separator"; then
6015 alldirs=
6016 for found_dir in $rpathdirs; do
6017 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6018 done
6019 acl_save_libdir="$libdir"
6020 libdir="$alldirs"
6021 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6022 libdir="$acl_save_libdir"
6023 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6024 else
6025 for found_dir in $rpathdirs; do
6026 acl_save_libdir="$libdir"
6027 libdir="$found_dir"
6028 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6029 libdir="$acl_save_libdir"
6030 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6031 done
6032 fi
6033 fi
6034 if test "X$ltrpathdirs" != "X"; then
6035 for found_dir in $ltrpathdirs; do
6036 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6037 done
6038 fi
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6071 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6072 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
6073 $as_echo_n "(cached) " >&6
6074 else
6075 gt_save_LIBS="$LIBS"
6076 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6078 /* end confdefs.h. */
6079 #include <CoreFoundation/CFPreferences.h>
6080 int
6081 main ()
6082 {
6083 CFPreferencesCopyAppValue(NULL, NULL)
6084 ;
6085 return 0;
6086 }
6087 _ACEOF
6088 if ac_fn_cxx_try_link "$LINENO"; then :
6089 gt_cv_func_CFPreferencesCopyAppValue=yes
6090 else
6091 gt_cv_func_CFPreferencesCopyAppValue=no
6092 fi
6093 rm -f core conftest.err conftest.$ac_objext \
6094 conftest$ac_exeext conftest.$ac_ext
6095 LIBS="$gt_save_LIBS"
6096 fi
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6098 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6099 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6100
6101 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6102
6103 fi
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6105 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6106 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
6107 $as_echo_n "(cached) " >&6
6108 else
6109 gt_save_LIBS="$LIBS"
6110 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112 /* end confdefs.h. */
6113 #include <CoreFoundation/CFLocale.h>
6114 int
6115 main ()
6116 {
6117 CFLocaleCopyCurrent();
6118 ;
6119 return 0;
6120 }
6121 _ACEOF
6122 if ac_fn_cxx_try_link "$LINENO"; then :
6123 gt_cv_func_CFLocaleCopyCurrent=yes
6124 else
6125 gt_cv_func_CFLocaleCopyCurrent=no
6126 fi
6127 rm -f core conftest.err conftest.$ac_objext \
6128 conftest$ac_exeext conftest.$ac_ext
6129 LIBS="$gt_save_LIBS"
6130 fi
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6132 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6133 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6134
6135 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6136
6137 fi
6138 INTL_MACOSX_LIBS=
6139 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6140 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6141 fi
6142
6143
6144
6145
6146
6147
6148 LIBINTL=
6149 LTLIBINTL=
6150 POSUB=
6151
6152 case " $gt_needs " in
6153 *" need-formatstring-macros "*) gt_api_version=3 ;;
6154 *" need-ngettext "*) gt_api_version=2 ;;
6155 *) gt_api_version=1 ;;
6156 esac
6157 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6158 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6159
6160 if test "$USE_NLS" = "yes"; then
6161 gt_use_preinstalled_gnugettext=no
6162
6163
6164 if test $gt_api_version -ge 3; then
6165 gt_revision_test_code='
6166 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6167 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6168 #endif
6169 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6170 '
6171 else
6172 gt_revision_test_code=
6173 fi
6174 if test $gt_api_version -ge 2; then
6175 gt_expression_test_code=' + * ngettext ("", "", 0)'
6176 else
6177 gt_expression_test_code=
6178 fi
6179
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6181 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6182 if eval \${$gt_func_gnugettext_libc+:} false; then :
6183 $as_echo_n "(cached) " >&6
6184 else
6185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186 /* end confdefs.h. */
6187
6188 #include <libintl.h>
6189 $gt_revision_test_code
6190 extern int _nl_msg_cat_cntr;
6191 extern int *_nl_domain_bindings;
6192
6193 int
6194 main ()
6195 {
6196
6197 bindtextdomain ("", "");
6198 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6199
6200 ;
6201 return 0;
6202 }
6203 _ACEOF
6204 if ac_fn_cxx_try_link "$LINENO"; then :
6205 eval "$gt_func_gnugettext_libc=yes"
6206 else
6207 eval "$gt_func_gnugettext_libc=no"
6208 fi
6209 rm -f core conftest.err conftest.$ac_objext \
6210 conftest$ac_exeext conftest.$ac_ext
6211 fi
6212 eval ac_res=\$$gt_func_gnugettext_libc
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6214 $as_echo "$ac_res" >&6; }
6215
6216 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6217
6218
6219
6220
6221
6222 am_save_CPPFLAGS="$CPPFLAGS"
6223
6224 for element in $INCICONV; do
6225 haveit=
6226 for x in $CPPFLAGS; do
6227
6228 acl_save_prefix="$prefix"
6229 prefix="$acl_final_prefix"
6230 acl_save_exec_prefix="$exec_prefix"
6231 exec_prefix="$acl_final_exec_prefix"
6232 eval x=\"$x\"
6233 exec_prefix="$acl_save_exec_prefix"
6234 prefix="$acl_save_prefix"
6235
6236 if test "X$x" = "X$element"; then
6237 haveit=yes
6238 break
6239 fi
6240 done
6241 if test -z "$haveit"; then
6242 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6243 fi
6244 done
6245
6246
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6248 $as_echo_n "checking for iconv... " >&6; }
6249 if ${am_cv_func_iconv+:} false; then :
6250 $as_echo_n "(cached) " >&6
6251 else
6252
6253 am_cv_func_iconv="no, consider installing GNU libiconv"
6254 am_cv_lib_iconv=no
6255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256 /* end confdefs.h. */
6257
6258 #include <stdlib.h>
6259 #include <iconv.h>
6260
6261 int
6262 main ()
6263 {
6264 iconv_t cd = iconv_open("","");
6265 iconv(cd,NULL,NULL,NULL,NULL);
6266 iconv_close(cd);
6267 ;
6268 return 0;
6269 }
6270 _ACEOF
6271 if ac_fn_cxx_try_link "$LINENO"; then :
6272 am_cv_func_iconv=yes
6273 fi
6274 rm -f core conftest.err conftest.$ac_objext \
6275 conftest$ac_exeext conftest.$ac_ext
6276 if test "$am_cv_func_iconv" != yes; then
6277 am_save_LIBS="$LIBS"
6278 LIBS="$LIBS $LIBICONV"
6279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h. */
6281
6282 #include <stdlib.h>
6283 #include <iconv.h>
6284
6285 int
6286 main ()
6287 {
6288 iconv_t cd = iconv_open("","");
6289 iconv(cd,NULL,NULL,NULL,NULL);
6290 iconv_close(cd);
6291 ;
6292 return 0;
6293 }
6294 _ACEOF
6295 if ac_fn_cxx_try_link "$LINENO"; then :
6296 am_cv_lib_iconv=yes
6297 am_cv_func_iconv=yes
6298 fi
6299 rm -f core conftest.err conftest.$ac_objext \
6300 conftest$ac_exeext conftest.$ac_ext
6301 LIBS="$am_save_LIBS"
6302 fi
6303
6304 fi
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6306 $as_echo "$am_cv_func_iconv" >&6; }
6307 if test "$am_cv_func_iconv" = yes; then
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6309 $as_echo_n "checking for working iconv... " >&6; }
6310 if ${am_cv_func_iconv_works+:} false; then :
6311 $as_echo_n "(cached) " >&6
6312 else
6313
6314 am_save_LIBS="$LIBS"
6315 if test $am_cv_lib_iconv = yes; then
6316 LIBS="$LIBS $LIBICONV"
6317 fi
6318 if test "$cross_compiling" = yes; then :
6319
6320 case "$host_os" in
6321 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6322 *) am_cv_func_iconv_works="guessing yes" ;;
6323 esac
6324
6325 else
6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6327 /* end confdefs.h. */
6328
6329 #include <iconv.h>
6330 #include <string.h>
6331 int main ()
6332 {
6333 int result = 0;
6334 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6335 returns. */
6336 {
6337 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6338 if (cd_utf8_to_88591 != (iconv_t)(-1))
6339 {
6340 static const char input[] = "\342\202\254"; /* EURO SIGN */
6341 char buf[10];
6342 const char *inptr = input;
6343 size_t inbytesleft = strlen (input);
6344 char *outptr = buf;
6345 size_t outbytesleft = sizeof (buf);
6346 size_t res = iconv (cd_utf8_to_88591,
6347 (char **) &inptr, &inbytesleft,
6348 &outptr, &outbytesleft);
6349 if (res == 0)
6350 result |= 1;
6351 iconv_close (cd_utf8_to_88591);
6352 }
6353 }
6354 /* Test against Solaris 10 bug: Failures are not distinguishable from
6355 successful returns. */
6356 {
6357 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6358 if (cd_ascii_to_88591 != (iconv_t)(-1))
6359 {
6360 static const char input[] = "\263";
6361 char buf[10];
6362 const char *inptr = input;
6363 size_t inbytesleft = strlen (input);
6364 char *outptr = buf;
6365 size_t outbytesleft = sizeof (buf);
6366 size_t res = iconv (cd_ascii_to_88591,
6367 (char **) &inptr, &inbytesleft,
6368 &outptr, &outbytesleft);
6369 if (res == 0)
6370 result |= 2;
6371 iconv_close (cd_ascii_to_88591);
6372 }
6373 }
6374 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
6375 {
6376 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
6377 if (cd_88591_to_utf8 != (iconv_t)(-1))
6378 {
6379 static const char input[] = "\304";
6380 static char buf[2] = { (char)0xDE, (char)0xAD };
6381 const char *inptr = input;
6382 size_t inbytesleft = 1;
6383 char *outptr = buf;
6384 size_t outbytesleft = 1;
6385 size_t res = iconv (cd_88591_to_utf8,
6386 (char **) &inptr, &inbytesleft,
6387 &outptr, &outbytesleft);
6388 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
6389 result |= 4;
6390 iconv_close (cd_88591_to_utf8);
6391 }
6392 }
6393 #if 0 /* This bug could be worked around by the caller. */
6394 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6395 {
6396 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6397 if (cd_88591_to_utf8 != (iconv_t)(-1))
6398 {
6399 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6400 char buf[50];
6401 const char *inptr = input;
6402 size_t inbytesleft = strlen (input);
6403 char *outptr = buf;
6404 size_t outbytesleft = sizeof (buf);
6405 size_t res = iconv (cd_88591_to_utf8,
6406 (char **) &inptr, &inbytesleft,
6407 &outptr, &outbytesleft);
6408 if ((int)res > 0)
6409 result |= 8;
6410 iconv_close (cd_88591_to_utf8);
6411 }
6412 }
6413 #endif
6414 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6415 provided. */
6416 if (/* Try standardized names. */
6417 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6418 /* Try IRIX, OSF/1 names. */
6419 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6420 /* Try AIX names. */
6421 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6422 /* Try HP-UX names. */
6423 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6424 result |= 16;
6425 return result;
6426 }
6427 _ACEOF
6428 if ac_fn_cxx_try_run "$LINENO"; then :
6429 am_cv_func_iconv_works=yes
6430 else
6431 am_cv_func_iconv_works=no
6432 fi
6433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6434 conftest.$ac_objext conftest.beam conftest.$ac_ext
6435 fi
6436
6437 LIBS="$am_save_LIBS"
6438
6439 fi
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6441 $as_echo "$am_cv_func_iconv_works" >&6; }
6442 case "$am_cv_func_iconv_works" in
6443 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6444 *) am_func_iconv=yes ;;
6445 esac
6446 else
6447 am_func_iconv=no am_cv_lib_iconv=no
6448 fi
6449 if test "$am_func_iconv" = yes; then
6450
6451 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6452
6453 fi
6454 if test "$am_cv_lib_iconv" = yes; then
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6456 $as_echo_n "checking how to link with libiconv... " >&6; }
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6458 $as_echo "$LIBICONV" >&6; }
6459 else
6460 CPPFLAGS="$am_save_CPPFLAGS"
6461 LIBICONV=
6462 LTLIBICONV=
6463 fi
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475 use_additional=yes
6476
6477 acl_save_prefix="$prefix"
6478 prefix="$acl_final_prefix"
6479 acl_save_exec_prefix="$exec_prefix"
6480 exec_prefix="$acl_final_exec_prefix"
6481
6482 eval additional_includedir=\"$includedir\"
6483 eval additional_libdir=\"$libdir\"
6484
6485 exec_prefix="$acl_save_exec_prefix"
6486 prefix="$acl_save_prefix"
6487
6488
6489 # Check whether --with-libintl-prefix was given.
6490 if test "${with_libintl_prefix+set}" = set; then :
6491 withval=$with_libintl_prefix;
6492 if test "X$withval" = "Xno"; then
6493 use_additional=no
6494 else
6495 if test "X$withval" = "X"; then
6496
6497 acl_save_prefix="$prefix"
6498 prefix="$acl_final_prefix"
6499 acl_save_exec_prefix="$exec_prefix"
6500 exec_prefix="$acl_final_exec_prefix"
6501
6502 eval additional_includedir=\"$includedir\"
6503 eval additional_libdir=\"$libdir\"
6504
6505 exec_prefix="$acl_save_exec_prefix"
6506 prefix="$acl_save_prefix"
6507
6508 else
6509 additional_includedir="$withval/include"
6510 additional_libdir="$withval/$acl_libdirstem"
6511 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6512 && ! test -d "$withval/$acl_libdirstem"; then
6513 additional_libdir="$withval/$acl_libdirstem2"
6514 fi
6515 fi
6516 fi
6517
6518 fi
6519
6520 LIBINTL=
6521 LTLIBINTL=
6522 INCINTL=
6523 LIBINTL_PREFIX=
6524 HAVE_LIBINTL=
6525 rpathdirs=
6526 ltrpathdirs=
6527 names_already_handled=
6528 names_next_round='intl '
6529 while test -n "$names_next_round"; do
6530 names_this_round="$names_next_round"
6531 names_next_round=
6532 for name in $names_this_round; do
6533 already_handled=
6534 for n in $names_already_handled; do
6535 if test "$n" = "$name"; then
6536 already_handled=yes
6537 break
6538 fi
6539 done
6540 if test -z "$already_handled"; then
6541 names_already_handled="$names_already_handled $name"
6542 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
6543 eval value=\"\$HAVE_LIB$uppername\"
6544 if test -n "$value"; then
6545 if test "$value" = yes; then
6546 eval value=\"\$LIB$uppername\"
6547 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6548 eval value=\"\$LTLIB$uppername\"
6549 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6550 else
6551 :
6552 fi
6553 else
6554 found_dir=
6555 found_la=
6556 found_so=
6557 found_a=
6558 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6559 if test -n "$acl_shlibext"; then
6560 shrext=".$acl_shlibext" # typically: shrext=.so
6561 else
6562 shrext=
6563 fi
6564 if test $use_additional = yes; then
6565 dir="$additional_libdir"
6566 if test -n "$acl_shlibext"; then
6567 if test -f "$dir/$libname$shrext"; then
6568 found_dir="$dir"
6569 found_so="$dir/$libname$shrext"
6570 else
6571 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6572 ver=`(cd "$dir" && \
6573 for f in "$libname$shrext".*; do echo "$f"; done \
6574 | sed -e "s,^$libname$shrext\\\\.,," \
6575 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6576 | sed 1q ) 2>/dev/null`
6577 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6578 found_dir="$dir"
6579 found_so="$dir/$libname$shrext.$ver"
6580 fi
6581 else
6582 eval library_names=\"$acl_library_names_spec\"
6583 for f in $library_names; do
6584 if test -f "$dir/$f"; then
6585 found_dir="$dir"
6586 found_so="$dir/$f"
6587 break
6588 fi
6589 done
6590 fi
6591 fi
6592 fi
6593 if test "X$found_dir" = "X"; then
6594 if test -f "$dir/$libname.$acl_libext"; then
6595 found_dir="$dir"
6596 found_a="$dir/$libname.$acl_libext"
6597 fi
6598 fi
6599 if test "X$found_dir" != "X"; then
6600 if test -f "$dir/$libname.la"; then
6601 found_la="$dir/$libname.la"
6602 fi
6603 fi
6604 fi
6605 if test "X$found_dir" = "X"; then
6606 for x in $LDFLAGS $LTLIBINTL; do
6607
6608 acl_save_prefix="$prefix"
6609 prefix="$acl_final_prefix"
6610 acl_save_exec_prefix="$exec_prefix"
6611 exec_prefix="$acl_final_exec_prefix"
6612 eval x=\"$x\"
6613 exec_prefix="$acl_save_exec_prefix"
6614 prefix="$acl_save_prefix"
6615
6616 case "$x" in
6617 -L*)
6618 dir=`echo "X$x" | sed -e 's/^X-L//'`
6619 if test -n "$acl_shlibext"; then
6620 if test -f "$dir/$libname$shrext"; then
6621 found_dir="$dir"
6622 found_so="$dir/$libname$shrext"
6623 else
6624 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6625 ver=`(cd "$dir" && \
6626 for f in "$libname$shrext".*; do echo "$f"; done \
6627 | sed -e "s,^$libname$shrext\\\\.,," \
6628 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6629 | sed 1q ) 2>/dev/null`
6630 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6631 found_dir="$dir"
6632 found_so="$dir/$libname$shrext.$ver"
6633 fi
6634 else
6635 eval library_names=\"$acl_library_names_spec\"
6636 for f in $library_names; do
6637 if test -f "$dir/$f"; then
6638 found_dir="$dir"
6639 found_so="$dir/$f"
6640 break
6641 fi
6642 done
6643 fi
6644 fi
6645 fi
6646 if test "X$found_dir" = "X"; then
6647 if test -f "$dir/$libname.$acl_libext"; then
6648 found_dir="$dir"
6649 found_a="$dir/$libname.$acl_libext"
6650 fi
6651 fi
6652 if test "X$found_dir" != "X"; then
6653 if test -f "$dir/$libname.la"; then
6654 found_la="$dir/$libname.la"
6655 fi
6656 fi
6657 ;;
6658 esac
6659 if test "X$found_dir" != "X"; then
6660 break
6661 fi
6662 done
6663 fi
6664 if test "X$found_dir" != "X"; then
6665 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6666 if test "X$found_so" != "X"; then
6667 if test "$enable_rpath" = no \
6668 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6669 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6670 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6671 else
6672 haveit=
6673 for x in $ltrpathdirs; do
6674 if test "X$x" = "X$found_dir"; then
6675 haveit=yes
6676 break
6677 fi
6678 done
6679 if test -z "$haveit"; then
6680 ltrpathdirs="$ltrpathdirs $found_dir"
6681 fi
6682 if test "$acl_hardcode_direct" = yes; then
6683 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6684 else
6685 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6686 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6687 haveit=
6688 for x in $rpathdirs; do
6689 if test "X$x" = "X$found_dir"; then
6690 haveit=yes
6691 break
6692 fi
6693 done
6694 if test -z "$haveit"; then
6695 rpathdirs="$rpathdirs $found_dir"
6696 fi
6697 else
6698 haveit=
6699 for x in $LDFLAGS $LIBINTL; do
6700
6701 acl_save_prefix="$prefix"
6702 prefix="$acl_final_prefix"
6703 acl_save_exec_prefix="$exec_prefix"
6704 exec_prefix="$acl_final_exec_prefix"
6705 eval x=\"$x\"
6706 exec_prefix="$acl_save_exec_prefix"
6707 prefix="$acl_save_prefix"
6708
6709 if test "X$x" = "X-L$found_dir"; then
6710 haveit=yes
6711 break
6712 fi
6713 done
6714 if test -z "$haveit"; then
6715 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6716 fi
6717 if test "$acl_hardcode_minus_L" != no; then
6718 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6719 else
6720 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6721 fi
6722 fi
6723 fi
6724 fi
6725 else
6726 if test "X$found_a" != "X"; then
6727 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6728 else
6729 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6730 fi
6731 fi
6732 additional_includedir=
6733 case "$found_dir" in
6734 */$acl_libdirstem | */$acl_libdirstem/)
6735 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6736 if test "$name" = 'intl'; then
6737 LIBINTL_PREFIX="$basedir"
6738 fi
6739 additional_includedir="$basedir/include"
6740 ;;
6741 */$acl_libdirstem2 | */$acl_libdirstem2/)
6742 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6743 if test "$name" = 'intl'; then
6744 LIBINTL_PREFIX="$basedir"
6745 fi
6746 additional_includedir="$basedir/include"
6747 ;;
6748 esac
6749 if test "X$additional_includedir" != "X"; then
6750 if test "X$additional_includedir" != "X/usr/include"; then
6751 haveit=
6752 if test "X$additional_includedir" = "X/usr/local/include"; then
6753 if test -n "$GCC"; then
6754 case $host_os in
6755 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6756 esac
6757 fi
6758 fi
6759 if test -z "$haveit"; then
6760 for x in $CPPFLAGS $INCINTL; do
6761
6762 acl_save_prefix="$prefix"
6763 prefix="$acl_final_prefix"
6764 acl_save_exec_prefix="$exec_prefix"
6765 exec_prefix="$acl_final_exec_prefix"
6766 eval x=\"$x\"
6767 exec_prefix="$acl_save_exec_prefix"
6768 prefix="$acl_save_prefix"
6769
6770 if test "X$x" = "X-I$additional_includedir"; then
6771 haveit=yes
6772 break
6773 fi
6774 done
6775 if test -z "$haveit"; then
6776 if test -d "$additional_includedir"; then
6777 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6778 fi
6779 fi
6780 fi
6781 fi
6782 fi
6783 if test -n "$found_la"; then
6784 save_libdir="$libdir"
6785 case "$found_la" in
6786 */* | *\\*) . "$found_la" ;;
6787 *) . "./$found_la" ;;
6788 esac
6789 libdir="$save_libdir"
6790 for dep in $dependency_libs; do
6791 case "$dep" in
6792 -L*)
6793 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6794 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6795 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6796 haveit=
6797 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6798 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6799 if test -n "$GCC"; then
6800 case $host_os in
6801 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6802 esac
6803 fi
6804 fi
6805 if test -z "$haveit"; then
6806 haveit=
6807 for x in $LDFLAGS $LIBINTL; do
6808
6809 acl_save_prefix="$prefix"
6810 prefix="$acl_final_prefix"
6811 acl_save_exec_prefix="$exec_prefix"
6812 exec_prefix="$acl_final_exec_prefix"
6813 eval x=\"$x\"
6814 exec_prefix="$acl_save_exec_prefix"
6815 prefix="$acl_save_prefix"
6816
6817 if test "X$x" = "X-L$additional_libdir"; then
6818 haveit=yes
6819 break
6820 fi
6821 done
6822 if test -z "$haveit"; then
6823 if test -d "$additional_libdir"; then
6824 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6825 fi
6826 fi
6827 haveit=
6828 for x in $LDFLAGS $LTLIBINTL; do
6829
6830 acl_save_prefix="$prefix"
6831 prefix="$acl_final_prefix"
6832 acl_save_exec_prefix="$exec_prefix"
6833 exec_prefix="$acl_final_exec_prefix"
6834 eval x=\"$x\"
6835 exec_prefix="$acl_save_exec_prefix"
6836 prefix="$acl_save_prefix"
6837
6838 if test "X$x" = "X-L$additional_libdir"; then
6839 haveit=yes
6840 break
6841 fi
6842 done
6843 if test -z "$haveit"; then
6844 if test -d "$additional_libdir"; then
6845 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6846 fi
6847 fi
6848 fi
6849 fi
6850 ;;
6851 -R*)
6852 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6853 if test "$enable_rpath" != no; then
6854 haveit=
6855 for x in $rpathdirs; do
6856 if test "X$x" = "X$dir"; then
6857 haveit=yes
6858 break
6859 fi
6860 done
6861 if test -z "$haveit"; then
6862 rpathdirs="$rpathdirs $dir"
6863 fi
6864 haveit=
6865 for x in $ltrpathdirs; do
6866 if test "X$x" = "X$dir"; then
6867 haveit=yes
6868 break
6869 fi
6870 done
6871 if test -z "$haveit"; then
6872 ltrpathdirs="$ltrpathdirs $dir"
6873 fi
6874 fi
6875 ;;
6876 -l*)
6877 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6878 ;;
6879 *.la)
6880 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6881 ;;
6882 *)
6883 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6884 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6885 ;;
6886 esac
6887 done
6888 fi
6889 else
6890 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6891 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6892 fi
6893 fi
6894 fi
6895 done
6896 done
6897 if test "X$rpathdirs" != "X"; then
6898 if test -n "$acl_hardcode_libdir_separator"; then
6899 alldirs=
6900 for found_dir in $rpathdirs; do
6901 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6902 done
6903 acl_save_libdir="$libdir"
6904 libdir="$alldirs"
6905 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6906 libdir="$acl_save_libdir"
6907 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6908 else
6909 for found_dir in $rpathdirs; do
6910 acl_save_libdir="$libdir"
6911 libdir="$found_dir"
6912 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6913 libdir="$acl_save_libdir"
6914 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6915 done
6916 fi
6917 fi
6918 if test "X$ltrpathdirs" != "X"; then
6919 for found_dir in $ltrpathdirs; do
6920 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6921 done
6922 fi
6923
6924
6925
6926
6927
6928
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6930 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6931 if eval \${$gt_func_gnugettext_libintl+:} false; then :
6932 $as_echo_n "(cached) " >&6
6933 else
6934 gt_save_CPPFLAGS="$CPPFLAGS"
6935 CPPFLAGS="$CPPFLAGS $INCINTL"
6936 gt_save_LIBS="$LIBS"
6937 LIBS="$LIBS $LIBINTL"
6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h. */
6940
6941 #include <libintl.h>
6942 $gt_revision_test_code
6943 extern int _nl_msg_cat_cntr;
6944 extern
6945 #ifdef __cplusplus
6946 "C"
6947 #endif
6948 const char *_nl_expand_alias (const char *);
6949
6950 int
6951 main ()
6952 {
6953
6954 bindtextdomain ("", "");
6955 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6956
6957 ;
6958 return 0;
6959 }
6960 _ACEOF
6961 if ac_fn_cxx_try_link "$LINENO"; then :
6962 eval "$gt_func_gnugettext_libintl=yes"
6963 else
6964 eval "$gt_func_gnugettext_libintl=no"
6965 fi
6966 rm -f core conftest.err conftest.$ac_objext \
6967 conftest$ac_exeext conftest.$ac_ext
6968 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6969 LIBS="$LIBS $LIBICONV"
6970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6971 /* end confdefs.h. */
6972
6973 #include <libintl.h>
6974 $gt_revision_test_code
6975 extern int _nl_msg_cat_cntr;
6976 extern
6977 #ifdef __cplusplus
6978 "C"
6979 #endif
6980 const char *_nl_expand_alias (const char *);
6981
6982 int
6983 main ()
6984 {
6985
6986 bindtextdomain ("", "");
6987 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6988
6989 ;
6990 return 0;
6991 }
6992 _ACEOF
6993 if ac_fn_cxx_try_link "$LINENO"; then :
6994 LIBINTL="$LIBINTL $LIBICONV"
6995 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6996 eval "$gt_func_gnugettext_libintl=yes"
6997
6998 fi
6999 rm -f core conftest.err conftest.$ac_objext \
7000 conftest$ac_exeext conftest.$ac_ext
7001 fi
7002 CPPFLAGS="$gt_save_CPPFLAGS"
7003 LIBS="$gt_save_LIBS"
7004 fi
7005 eval ac_res=\$$gt_func_gnugettext_libintl
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7007 $as_echo "$ac_res" >&6; }
7008 fi
7009
7010 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7011 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7012 && test "$PACKAGE" != gettext-runtime \
7013 && test "$PACKAGE" != gettext-tools; }; then
7014 gt_use_preinstalled_gnugettext=yes
7015 else
7016 LIBINTL=
7017 LTLIBINTL=
7018 INCINTL=
7019 fi
7020
7021
7022
7023 if test -n "$INTL_MACOSX_LIBS"; then
7024 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7025 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7026 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7027 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7028 fi
7029 fi
7030
7031 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7032 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7033
7034 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7035
7036 else
7037 USE_NLS=no
7038 fi
7039 fi
7040
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7042 $as_echo_n "checking whether to use NLS... " >&6; }
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7044 $as_echo "$USE_NLS" >&6; }
7045 if test "$USE_NLS" = "yes"; then
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7047 $as_echo_n "checking where the gettext function comes from... " >&6; }
7048 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7049 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7050 gt_source="external libintl"
7051 else
7052 gt_source="libc"
7053 fi
7054 else
7055 gt_source="included intl directory"
7056 fi
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7058 $as_echo "$gt_source" >&6; }
7059 fi
7060
7061 if test "$USE_NLS" = "yes"; then
7062
7063 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7064 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7066 $as_echo_n "checking how to link with libintl... " >&6; }
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7068 $as_echo "$LIBINTL" >&6; }
7069
7070 for element in $INCINTL; do
7071 haveit=
7072 for x in $CPPFLAGS; do
7073
7074 acl_save_prefix="$prefix"
7075 prefix="$acl_final_prefix"
7076 acl_save_exec_prefix="$exec_prefix"
7077 exec_prefix="$acl_final_exec_prefix"
7078 eval x=\"$x\"
7079 exec_prefix="$acl_save_exec_prefix"
7080 prefix="$acl_save_prefix"
7081
7082 if test "X$x" = "X$element"; then
7083 haveit=yes
7084 break
7085 fi
7086 done
7087 if test -z "$haveit"; then
7088 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7089 fi
7090 done
7091
7092 fi
7093
7094
7095 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7096
7097
7098 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7099
7100 fi
7101
7102 POSUB=po
7103 fi
7104
7105
7106
7107 INTLLIBS="$LIBINTL"
7108
7109
7110
7111
7112
7113
7114
7115
7116 ac_ext=cpp
7117 ac_cpp='$CXXCPP $CPPFLAGS'
7118 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7119 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7120 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7121 if test -z "$CXX"; then
7122 if test -n "$CCC"; then
7123 CXX=$CCC
7124 else
7125 if test -n "$ac_tool_prefix"; then
7126 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7127 do
7128 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7129 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7131 $as_echo_n "checking for $ac_word... " >&6; }
7132 if ${ac_cv_prog_CXX+:} false; then :
7133 $as_echo_n "(cached) " >&6
7134 else
7135 if test -n "$CXX"; then
7136 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7137 else
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 for as_dir in $PATH
7140 do
7141 IFS=$as_save_IFS
7142 test -z "$as_dir" && as_dir=.
7143 for ac_exec_ext in '' $ac_executable_extensions; do
7144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7145 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 break 2
7148 fi
7149 done
7150 done
7151 IFS=$as_save_IFS
7152
7153 fi
7154 fi
7155 CXX=$ac_cv_prog_CXX
7156 if test -n "$CXX"; then
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7158 $as_echo "$CXX" >&6; }
7159 else
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7161 $as_echo "no" >&6; }
7162 fi
7163
7164
7165 test -n "$CXX" && break
7166 done
7167 fi
7168 if test -z "$CXX"; then
7169 ac_ct_CXX=$CXX
7170 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7171 do
7172 # Extract the first word of "$ac_prog", so it can be a program name with args.
7173 set dummy $ac_prog; ac_word=$2
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7175 $as_echo_n "checking for $ac_word... " >&6; }
7176 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7177 $as_echo_n "(cached) " >&6
7178 else
7179 if test -n "$ac_ct_CXX"; then
7180 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7181 else
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183 for as_dir in $PATH
7184 do
7185 IFS=$as_save_IFS
7186 test -z "$as_dir" && as_dir=.
7187 for ac_exec_ext in '' $ac_executable_extensions; do
7188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7189 ac_cv_prog_ac_ct_CXX="$ac_prog"
7190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 break 2
7192 fi
7193 done
7194 done
7195 IFS=$as_save_IFS
7196
7197 fi
7198 fi
7199 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7200 if test -n "$ac_ct_CXX"; then
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7202 $as_echo "$ac_ct_CXX" >&6; }
7203 else
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7205 $as_echo "no" >&6; }
7206 fi
7207
7208
7209 test -n "$ac_ct_CXX" && break
7210 done
7211
7212 if test "x$ac_ct_CXX" = x; then
7213 CXX="g++"
7214 else
7215 case $cross_compiling:$ac_tool_warned in
7216 yes:)
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7219 ac_tool_warned=yes ;;
7220 esac
7221 CXX=$ac_ct_CXX
7222 fi
7223 fi
7224
7225 fi
7226 fi
7227 # Provide some information about the compiler.
7228 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7229 set X $ac_compile
7230 ac_compiler=$2
7231 for ac_option in --version -v -V -qversion; do
7232 { { ac_try="$ac_compiler $ac_option >&5"
7233 case "(($ac_try" in
7234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7235 *) ac_try_echo=$ac_try;;
7236 esac
7237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7238 $as_echo "$ac_try_echo"; } >&5
7239 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7240 ac_status=$?
7241 if test -s conftest.err; then
7242 sed '10a\
7243 ... rest of stderr output deleted ...
7244 10q' conftest.err >conftest.er1
7245 cat conftest.er1 >&5
7246 fi
7247 rm -f conftest.er1 conftest.err
7248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7249 test $ac_status = 0; }
7250 done
7251
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7253 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7254 if ${ac_cv_cxx_compiler_gnu+:} false; then :
7255 $as_echo_n "(cached) " >&6
7256 else
7257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258 /* end confdefs.h. */
7259
7260 int
7261 main ()
7262 {
7263 #ifndef __GNUC__
7264 choke me
7265 #endif
7266
7267 ;
7268 return 0;
7269 }
7270 _ACEOF
7271 if ac_fn_cxx_try_compile "$LINENO"; then :
7272 ac_compiler_gnu=yes
7273 else
7274 ac_compiler_gnu=no
7275 fi
7276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7277 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7278
7279 fi
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7281 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7282 if test $ac_compiler_gnu = yes; then
7283 GXX=yes
7284 else
7285 GXX=
7286 fi
7287 ac_test_CXXFLAGS=${CXXFLAGS+set}
7288 ac_save_CXXFLAGS=$CXXFLAGS
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7290 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7291 if ${ac_cv_prog_cxx_g+:} false; then :
7292 $as_echo_n "(cached) " >&6
7293 else
7294 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7295 ac_cxx_werror_flag=yes
7296 ac_cv_prog_cxx_g=no
7297 CXXFLAGS="-g"
7298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299 /* end confdefs.h. */
7300
7301 int
7302 main ()
7303 {
7304
7305 ;
7306 return 0;
7307 }
7308 _ACEOF
7309 if ac_fn_cxx_try_compile "$LINENO"; then :
7310 ac_cv_prog_cxx_g=yes
7311 else
7312 CXXFLAGS=""
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7315
7316 int
7317 main ()
7318 {
7319
7320 ;
7321 return 0;
7322 }
7323 _ACEOF
7324 if ac_fn_cxx_try_compile "$LINENO"; then :
7325
7326 else
7327 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7328 CXXFLAGS="-g"
7329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7330 /* end confdefs.h. */
7331
7332 int
7333 main ()
7334 {
7335
7336 ;
7337 return 0;
7338 }
7339 _ACEOF
7340 if ac_fn_cxx_try_compile "$LINENO"; then :
7341 ac_cv_prog_cxx_g=yes
7342 fi
7343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344 fi
7345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7346 fi
7347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7348 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7349 fi
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7351 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7352 if test "$ac_test_CXXFLAGS" = set; then
7353 CXXFLAGS=$ac_save_CXXFLAGS
7354 elif test $ac_cv_prog_cxx_g = yes; then
7355 if test "$GXX" = yes; then
7356 CXXFLAGS="-g -O2"
7357 else
7358 CXXFLAGS="-g"
7359 fi
7360 else
7361 if test "$GXX" = yes; then
7362 CXXFLAGS="-O2"
7363 else
7364 CXXFLAGS=
7365 fi
7366 fi
7367 ac_ext=cpp
7368 ac_cpp='$CXXCPP $CPPFLAGS'
7369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7372
7373 depcc="$CXX" am_compiler_list=
7374
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7376 $as_echo_n "checking dependency style of $depcc... " >&6; }
7377 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
7378 $as_echo_n "(cached) " >&6
7379 else
7380 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7381 # We make a subdir and do the tests there. Otherwise we can end up
7382 # making bogus files that we don't know about and never remove. For
7383 # instance it was reported that on HP-UX the gcc test will end up
7384 # making a dummy file named 'D' -- because '-MD' means "put the output
7385 # in D".
7386 rm -rf conftest.dir
7387 mkdir conftest.dir
7388 # Copy depcomp to subdir because otherwise we won't find it if we're
7389 # using a relative directory.
7390 cp "$am_depcomp" conftest.dir
7391 cd conftest.dir
7392 # We will build objects and dependencies in a subdirectory because
7393 # it helps to detect inapplicable dependency modes. For instance
7394 # both Tru64's cc and ICC support -MD to output dependencies as a
7395 # side effect of compilation, but ICC will put the dependencies in
7396 # the current directory while Tru64 will put them in the object
7397 # directory.
7398 mkdir sub
7399
7400 am_cv_CXX_dependencies_compiler_type=none
7401 if test "$am_compiler_list" = ""; then
7402 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7403 fi
7404 am__universal=false
7405 case " $depcc " in #(
7406 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7407 esac
7408
7409 for depmode in $am_compiler_list; do
7410 # Setup a source with many dependencies, because some compilers
7411 # like to wrap large dependency lists on column 80 (with \), and
7412 # we should not choose a depcomp mode which is confused by this.
7413 #
7414 # We need to recreate these files for each test, as the compiler may
7415 # overwrite some of them when testing with obscure command lines.
7416 # This happens at least with the AIX C compiler.
7417 : > sub/conftest.c
7418 for i in 1 2 3 4 5 6; do
7419 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7420 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7421 # Solaris 10 /bin/sh.
7422 echo '/* dummy */' > sub/conftst$i.h
7423 done
7424 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7425
7426 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7427 # mode. It turns out that the SunPro C++ compiler does not properly
7428 # handle '-M -o', and we need to detect this. Also, some Intel
7429 # versions had trouble with output in subdirs.
7430 am__obj=sub/conftest.${OBJEXT-o}
7431 am__minus_obj="-o $am__obj"
7432 case $depmode in
7433 gcc)
7434 # This depmode causes a compiler race in universal mode.
7435 test "$am__universal" = false || continue
7436 ;;
7437 nosideeffect)
7438 # After this tag, mechanisms are not by side-effect, so they'll
7439 # only be used when explicitly requested.
7440 if test "x$enable_dependency_tracking" = xyes; then
7441 continue
7442 else
7443 break
7444 fi
7445 ;;
7446 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7447 # This compiler won't grok '-c -o', but also, the minuso test has
7448 # not run yet. These depmodes are late enough in the game, and
7449 # so weak that their functioning should not be impacted.
7450 am__obj=conftest.${OBJEXT-o}
7451 am__minus_obj=
7452 ;;
7453 none) break ;;
7454 esac
7455 if depmode=$depmode \
7456 source=sub/conftest.c object=$am__obj \
7457 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7458 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7459 >/dev/null 2>conftest.err &&
7460 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7461 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7462 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7463 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7464 # icc doesn't choke on unknown options, it will just issue warnings
7465 # or remarks (even with -Werror). So we grep stderr for any message
7466 # that says an option was ignored or not supported.
7467 # When given -MP, icc 7.0 and 7.1 complain thusly:
7468 # icc: Command line warning: ignoring option '-M'; no argument required
7469 # The diagnosis changed in icc 8.0:
7470 # icc: Command line remark: option '-MP' not supported
7471 if (grep 'ignoring option' conftest.err ||
7472 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7473 am_cv_CXX_dependencies_compiler_type=$depmode
7474 break
7475 fi
7476 fi
7477 done
7478
7479 cd ..
7480 rm -rf conftest.dir
7481 else
7482 am_cv_CXX_dependencies_compiler_type=none
7483 fi
7484
7485 fi
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7487 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7488 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7489
7490 if
7491 test "x$enable_dependency_tracking" != xno \
7492 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7493 am__fastdepCXX_TRUE=
7494 am__fastdepCXX_FALSE='#'
7495 else
7496 am__fastdepCXX_TRUE='#'
7497 am__fastdepCXX_FALSE=
7498 fi
7499
7500
7501 case `pwd` in
7502 *\ * | *\ *)
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7504 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7505 esac
7506
7507
7508
7509 macro_version='2.4.6'
7510 macro_revision='2.4.6'
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524 ltmain=$ac_aux_dir/ltmain.sh
7525
7526 # Backslashify metacharacters that are still active within
7527 # double-quoted strings.
7528 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7529
7530 # Same as above, but do not quote variable references.
7531 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7532
7533 # Sed substitution to delay expansion of an escaped shell variable in a
7534 # double_quote_subst'ed string.
7535 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7536
7537 # Sed substitution to delay expansion of an escaped single quote.
7538 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7539
7540 # Sed substitution to avoid accidental globbing in evaled expressions
7541 no_glob_subst='s/\*/\\\*/g'
7542
7543 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7544 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7545 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7546
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7548 $as_echo_n "checking how to print strings... " >&6; }
7549 # Test print first, because it will be a builtin if present.
7550 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7551 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7552 ECHO='print -r --'
7553 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7554 ECHO='printf %s\n'
7555 else
7556 # Use this function as a fallback that always works.
7557 func_fallback_echo ()
7558 {
7559 eval 'cat <<_LTECHO_EOF
7560 $1
7561 _LTECHO_EOF'
7562 }
7563 ECHO='func_fallback_echo'
7564 fi
7565
7566 # func_echo_all arg...
7567 # Invoke $ECHO with all args, space-separated.
7568 func_echo_all ()
7569 {
7570 $ECHO ""
7571 }
7572
7573 case $ECHO in
7574 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7575 $as_echo "printf" >&6; } ;;
7576 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7577 $as_echo "print -r" >&6; } ;;
7578 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7579 $as_echo "cat" >&6; } ;;
7580 esac
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7596 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7597 if ${ac_cv_path_SED+:} false; then :
7598 $as_echo_n "(cached) " >&6
7599 else
7600 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7601 for ac_i in 1 2 3 4 5 6 7; do
7602 ac_script="$ac_script$as_nl$ac_script"
7603 done
7604 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7605 { ac_script=; unset ac_script;}
7606 if test -z "$SED"; then
7607 ac_path_SED_found=false
7608 # Loop through the user's path and test for each of PROGNAME-LIST
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 for as_dir in $PATH
7611 do
7612 IFS=$as_save_IFS
7613 test -z "$as_dir" && as_dir=.
7614 for ac_prog in sed gsed; do
7615 for ac_exec_ext in '' $ac_executable_extensions; do
7616 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7617 as_fn_executable_p "$ac_path_SED" || continue
7618 # Check for GNU ac_path_SED and select it if it is found.
7619 # Check for GNU $ac_path_SED
7620 case `"$ac_path_SED" --version 2>&1` in
7621 *GNU*)
7622 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7623 *)
7624 ac_count=0
7625 $as_echo_n 0123456789 >"conftest.in"
7626 while :
7627 do
7628 cat "conftest.in" "conftest.in" >"conftest.tmp"
7629 mv "conftest.tmp" "conftest.in"
7630 cp "conftest.in" "conftest.nl"
7631 $as_echo '' >> "conftest.nl"
7632 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7633 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7634 as_fn_arith $ac_count + 1 && ac_count=$as_val
7635 if test $ac_count -gt ${ac_path_SED_max-0}; then
7636 # Best one so far, save it but keep looking for a better one
7637 ac_cv_path_SED="$ac_path_SED"
7638 ac_path_SED_max=$ac_count
7639 fi
7640 # 10*(2^10) chars as input seems more than enough
7641 test $ac_count -gt 10 && break
7642 done
7643 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7644 esac
7645
7646 $ac_path_SED_found && break 3
7647 done
7648 done
7649 done
7650 IFS=$as_save_IFS
7651 if test -z "$ac_cv_path_SED"; then
7652 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7653 fi
7654 else
7655 ac_cv_path_SED=$SED
7656 fi
7657
7658 fi
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7660 $as_echo "$ac_cv_path_SED" >&6; }
7661 SED="$ac_cv_path_SED"
7662 rm -f conftest.sed
7663
7664 test -z "$SED" && SED=sed
7665 Xsed="$SED -e 1s/^X//"
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7678 $as_echo_n "checking for fgrep... " >&6; }
7679 if ${ac_cv_path_FGREP+:} false; then :
7680 $as_echo_n "(cached) " >&6
7681 else
7682 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7683 then ac_cv_path_FGREP="$GREP -F"
7684 else
7685 if test -z "$FGREP"; then
7686 ac_path_FGREP_found=false
7687 # Loop through the user's path and test for each of PROGNAME-LIST
7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7690 do
7691 IFS=$as_save_IFS
7692 test -z "$as_dir" && as_dir=.
7693 for ac_prog in fgrep; do
7694 for ac_exec_ext in '' $ac_executable_extensions; do
7695 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7696 as_fn_executable_p "$ac_path_FGREP" || continue
7697 # Check for GNU ac_path_FGREP and select it if it is found.
7698 # Check for GNU $ac_path_FGREP
7699 case `"$ac_path_FGREP" --version 2>&1` in
7700 *GNU*)
7701 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7702 *)
7703 ac_count=0
7704 $as_echo_n 0123456789 >"conftest.in"
7705 while :
7706 do
7707 cat "conftest.in" "conftest.in" >"conftest.tmp"
7708 mv "conftest.tmp" "conftest.in"
7709 cp "conftest.in" "conftest.nl"
7710 $as_echo 'FGREP' >> "conftest.nl"
7711 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7712 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7713 as_fn_arith $ac_count + 1 && ac_count=$as_val
7714 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7715 # Best one so far, save it but keep looking for a better one
7716 ac_cv_path_FGREP="$ac_path_FGREP"
7717 ac_path_FGREP_max=$ac_count
7718 fi
7719 # 10*(2^10) chars as input seems more than enough
7720 test $ac_count -gt 10 && break
7721 done
7722 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7723 esac
7724
7725 $ac_path_FGREP_found && break 3
7726 done
7727 done
7728 done
7729 IFS=$as_save_IFS
7730 if test -z "$ac_cv_path_FGREP"; then
7731 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7732 fi
7733 else
7734 ac_cv_path_FGREP=$FGREP
7735 fi
7736
7737 fi
7738 fi
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7740 $as_echo "$ac_cv_path_FGREP" >&6; }
7741 FGREP="$ac_cv_path_FGREP"
7742
7743
7744 test -z "$GREP" && GREP=grep
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764 # Check whether --with-gnu-ld was given.
7765 if test "${with_gnu_ld+set}" = set; then :
7766 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7767 else
7768 with_gnu_ld=no
7769 fi
7770
7771 ac_prog=ld
7772 if test yes = "$GCC"; then
7773 # Check if gcc -print-prog-name=ld gives a path.
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7775 $as_echo_n "checking for ld used by $CC... " >&6; }
7776 case $host in
7777 *-*-mingw*)
7778 # gcc leaves a trailing carriage return, which upsets mingw
7779 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7780 *)
7781 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7782 esac
7783 case $ac_prog in
7784 # Accept absolute paths.
7785 [\\/]* | ?:[\\/]*)
7786 re_direlt='/[^/][^/]*/\.\./'
7787 # Canonicalize the pathname of ld
7788 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7789 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7790 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7791 done
7792 test -z "$LD" && LD=$ac_prog
7793 ;;
7794 "")
7795 # If it fails, then pretend we aren't using GCC.
7796 ac_prog=ld
7797 ;;
7798 *)
7799 # If it is relative, then search for the first ld in PATH.
7800 with_gnu_ld=unknown
7801 ;;
7802 esac
7803 elif test yes = "$with_gnu_ld"; then
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7805 $as_echo_n "checking for GNU ld... " >&6; }
7806 else
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7808 $as_echo_n "checking for non-GNU ld... " >&6; }
7809 fi
7810 if ${lt_cv_path_LD+:} false; then :
7811 $as_echo_n "(cached) " >&6
7812 else
7813 if test -z "$LD"; then
7814 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7815 for ac_dir in $PATH; do
7816 IFS=$lt_save_ifs
7817 test -z "$ac_dir" && ac_dir=.
7818 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7819 lt_cv_path_LD=$ac_dir/$ac_prog
7820 # Check to see if the program is GNU ld. I'd rather use --version,
7821 # but apparently some variants of GNU ld only accept -v.
7822 # Break only if it was the GNU/non-GNU ld that we prefer.
7823 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7824 *GNU* | *'with BFD'*)
7825 test no != "$with_gnu_ld" && break
7826 ;;
7827 *)
7828 test yes != "$with_gnu_ld" && break
7829 ;;
7830 esac
7831 fi
7832 done
7833 IFS=$lt_save_ifs
7834 else
7835 lt_cv_path_LD=$LD # Let the user override the test with a path.
7836 fi
7837 fi
7838
7839 LD=$lt_cv_path_LD
7840 if test -n "$LD"; then
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7842 $as_echo "$LD" >&6; }
7843 else
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845 $as_echo "no" >&6; }
7846 fi
7847 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7849 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7850 if ${lt_cv_prog_gnu_ld+:} false; then :
7851 $as_echo_n "(cached) " >&6
7852 else
7853 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7854 case `$LD -v 2>&1 </dev/null` in
7855 *GNU* | *'with BFD'*)
7856 lt_cv_prog_gnu_ld=yes
7857 ;;
7858 *)
7859 lt_cv_prog_gnu_ld=no
7860 ;;
7861 esac
7862 fi
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7864 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7865 with_gnu_ld=$lt_cv_prog_gnu_ld
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7876 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7877 if ${lt_cv_path_NM+:} false; then :
7878 $as_echo_n "(cached) " >&6
7879 else
7880 if test -n "$NM"; then
7881 # Let the user override the test.
7882 lt_cv_path_NM=$NM
7883 else
7884 lt_nm_to_check=${ac_tool_prefix}nm
7885 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7886 lt_nm_to_check="$lt_nm_to_check nm"
7887 fi
7888 for lt_tmp_nm in $lt_nm_to_check; do
7889 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7890 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7891 IFS=$lt_save_ifs
7892 test -z "$ac_dir" && ac_dir=.
7893 tmp_nm=$ac_dir/$lt_tmp_nm
7894 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7895 # Check to see if the nm accepts a BSD-compat flag.
7896 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7897 # nm: unknown option "B" ignored
7898 # Tru64's nm complains that /dev/null is an invalid object file
7899 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7900 case $build_os in
7901 mingw*) lt_bad_file=conftest.nm/nofile ;;
7902 *) lt_bad_file=/dev/null ;;
7903 esac
7904 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7905 *$lt_bad_file* | *'Invalid file or object type'*)
7906 lt_cv_path_NM="$tmp_nm -B"
7907 break 2
7908 ;;
7909 *)
7910 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7911 */dev/null*)
7912 lt_cv_path_NM="$tmp_nm -p"
7913 break 2
7914 ;;
7915 *)
7916 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7917 continue # so that we can try to find one that supports BSD flags
7918 ;;
7919 esac
7920 ;;
7921 esac
7922 fi
7923 done
7924 IFS=$lt_save_ifs
7925 done
7926 : ${lt_cv_path_NM=no}
7927 fi
7928 fi
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7930 $as_echo "$lt_cv_path_NM" >&6; }
7931 if test no != "$lt_cv_path_NM"; then
7932 NM=$lt_cv_path_NM
7933 else
7934 # Didn't find any BSD compatible name lister, look for dumpbin.
7935 if test -n "$DUMPBIN"; then :
7936 # Let the user override the test.
7937 else
7938 if test -n "$ac_tool_prefix"; then
7939 for ac_prog in dumpbin "link -dump"
7940 do
7941 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7942 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7944 $as_echo_n "checking for $ac_word... " >&6; }
7945 if ${ac_cv_prog_DUMPBIN+:} false; then :
7946 $as_echo_n "(cached) " >&6
7947 else
7948 if test -n "$DUMPBIN"; then
7949 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7950 else
7951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7952 for as_dir in $PATH
7953 do
7954 IFS=$as_save_IFS
7955 test -z "$as_dir" && as_dir=.
7956 for ac_exec_ext in '' $ac_executable_extensions; do
7957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7958 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7960 break 2
7961 fi
7962 done
7963 done
7964 IFS=$as_save_IFS
7965
7966 fi
7967 fi
7968 DUMPBIN=$ac_cv_prog_DUMPBIN
7969 if test -n "$DUMPBIN"; then
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7971 $as_echo "$DUMPBIN" >&6; }
7972 else
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7974 $as_echo "no" >&6; }
7975 fi
7976
7977
7978 test -n "$DUMPBIN" && break
7979 done
7980 fi
7981 if test -z "$DUMPBIN"; then
7982 ac_ct_DUMPBIN=$DUMPBIN
7983 for ac_prog in dumpbin "link -dump"
7984 do
7985 # Extract the first word of "$ac_prog", so it can be a program name with args.
7986 set dummy $ac_prog; ac_word=$2
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7988 $as_echo_n "checking for $ac_word... " >&6; }
7989 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7990 $as_echo_n "(cached) " >&6
7991 else
7992 if test -n "$ac_ct_DUMPBIN"; then
7993 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7994 else
7995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7996 for as_dir in $PATH
7997 do
7998 IFS=$as_save_IFS
7999 test -z "$as_dir" && as_dir=.
8000 for ac_exec_ext in '' $ac_executable_extensions; do
8001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8002 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8004 break 2
8005 fi
8006 done
8007 done
8008 IFS=$as_save_IFS
8009
8010 fi
8011 fi
8012 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8013 if test -n "$ac_ct_DUMPBIN"; then
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8015 $as_echo "$ac_ct_DUMPBIN" >&6; }
8016 else
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8018 $as_echo "no" >&6; }
8019 fi
8020
8021
8022 test -n "$ac_ct_DUMPBIN" && break
8023 done
8024
8025 if test "x$ac_ct_DUMPBIN" = x; then
8026 DUMPBIN=":"
8027 else
8028 case $cross_compiling:$ac_tool_warned in
8029 yes:)
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8032 ac_tool_warned=yes ;;
8033 esac
8034 DUMPBIN=$ac_ct_DUMPBIN
8035 fi
8036 fi
8037
8038 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8039 *COFF*)
8040 DUMPBIN="$DUMPBIN -symbols -headers"
8041 ;;
8042 *)
8043 DUMPBIN=:
8044 ;;
8045 esac
8046 fi
8047
8048 if test : != "$DUMPBIN"; then
8049 NM=$DUMPBIN
8050 fi
8051 fi
8052 test -z "$NM" && NM=nm
8053
8054
8055
8056
8057
8058
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8060 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8061 if ${lt_cv_nm_interface+:} false; then :
8062 $as_echo_n "(cached) " >&6
8063 else
8064 lt_cv_nm_interface="BSD nm"
8065 echo "int some_variable = 0;" > conftest.$ac_ext
8066 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8067 (eval "$ac_compile" 2>conftest.err)
8068 cat conftest.err >&5
8069 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8070 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8071 cat conftest.err >&5
8072 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8073 cat conftest.out >&5
8074 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8075 lt_cv_nm_interface="MS dumpbin"
8076 fi
8077 rm -f conftest*
8078 fi
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8080 $as_echo "$lt_cv_nm_interface" >&6; }
8081
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8083 $as_echo_n "checking whether ln -s works... " >&6; }
8084 LN_S=$as_ln_s
8085 if test "$LN_S" = "ln -s"; then
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8087 $as_echo "yes" >&6; }
8088 else
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8090 $as_echo "no, using $LN_S" >&6; }
8091 fi
8092
8093 # find the maximum length of command line arguments
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8095 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8096 if ${lt_cv_sys_max_cmd_len+:} false; then :
8097 $as_echo_n "(cached) " >&6
8098 else
8099 i=0
8100 teststring=ABCD
8101
8102 case $build_os in
8103 msdosdjgpp*)
8104 # On DJGPP, this test can blow up pretty badly due to problems in libc
8105 # (any single argument exceeding 2000 bytes causes a buffer overrun
8106 # during glob expansion). Even if it were fixed, the result of this
8107 # check would be larger than it should be.
8108 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8109 ;;
8110
8111 gnu*)
8112 # Under GNU Hurd, this test is not required because there is
8113 # no limit to the length of command line arguments.
8114 # Libtool will interpret -1 as no limit whatsoever
8115 lt_cv_sys_max_cmd_len=-1;
8116 ;;
8117
8118 cygwin* | mingw* | cegcc*)
8119 # On Win9x/ME, this test blows up -- it succeeds, but takes
8120 # about 5 minutes as the teststring grows exponentially.
8121 # Worse, since 9x/ME are not pre-emptively multitasking,
8122 # you end up with a "frozen" computer, even though with patience
8123 # the test eventually succeeds (with a max line length of 256k).
8124 # Instead, let's just punt: use the minimum linelength reported by
8125 # all of the supported platforms: 8192 (on NT/2K/XP).
8126 lt_cv_sys_max_cmd_len=8192;
8127 ;;
8128
8129 mint*)
8130 # On MiNT this can take a long time and run out of memory.
8131 lt_cv_sys_max_cmd_len=8192;
8132 ;;
8133
8134 amigaos*)
8135 # On AmigaOS with pdksh, this test takes hours, literally.
8136 # So we just punt and use a minimum line length of 8192.
8137 lt_cv_sys_max_cmd_len=8192;
8138 ;;
8139
8140 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8141 # This has been around since 386BSD, at least. Likely further.
8142 if test -x /sbin/sysctl; then
8143 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8144 elif test -x /usr/sbin/sysctl; then
8145 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8146 else
8147 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8148 fi
8149 # And add a safety zone
8150 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8151 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8152 ;;
8153
8154 interix*)
8155 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8156 lt_cv_sys_max_cmd_len=196608
8157 ;;
8158
8159 os2*)
8160 # The test takes a long time on OS/2.
8161 lt_cv_sys_max_cmd_len=8192
8162 ;;
8163
8164 osf*)
8165 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8166 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8167 # nice to cause kernel panics so lets avoid the loop below.
8168 # First set a reasonable default.
8169 lt_cv_sys_max_cmd_len=16384
8170 #
8171 if test -x /sbin/sysconfig; then
8172 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8173 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8174 esac
8175 fi
8176 ;;
8177 sco3.2v5*)
8178 lt_cv_sys_max_cmd_len=102400
8179 ;;
8180 sysv5* | sco5v6* | sysv4.2uw2*)
8181 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8182 if test -n "$kargmax"; then
8183 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8184 else
8185 lt_cv_sys_max_cmd_len=32768
8186 fi
8187 ;;
8188 *)
8189 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8190 if test -n "$lt_cv_sys_max_cmd_len" && \
8191 test undefined != "$lt_cv_sys_max_cmd_len"; then
8192 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8193 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8194 else
8195 # Make teststring a little bigger before we do anything with it.
8196 # a 1K string should be a reasonable start.
8197 for i in 1 2 3 4 5 6 7 8; do
8198 teststring=$teststring$teststring
8199 done
8200 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8201 # If test is not a shell built-in, we'll probably end up computing a
8202 # maximum length that is only half of the actual maximum length, but
8203 # we can't tell.
8204 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8205 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8206 test 17 != "$i" # 1/2 MB should be enough
8207 do
8208 i=`expr $i + 1`
8209 teststring=$teststring$teststring
8210 done
8211 # Only check the string length outside the loop.
8212 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8213 teststring=
8214 # Add a significant safety factor because C++ compilers can tack on
8215 # massive amounts of additional arguments before passing them to the
8216 # linker. It appears as though 1/2 is a usable value.
8217 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8218 fi
8219 ;;
8220 esac
8221
8222 fi
8223
8224 if test -n "$lt_cv_sys_max_cmd_len"; then
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8226 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8227 else
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8229 $as_echo "none" >&6; }
8230 fi
8231 max_cmd_len=$lt_cv_sys_max_cmd_len
8232
8233
8234
8235
8236
8237
8238 : ${CP="cp -f"}
8239 : ${MV="mv -f"}
8240 : ${RM="rm -f"}
8241
8242 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8243 lt_unset=unset
8244 else
8245 lt_unset=false
8246 fi
8247
8248
8249
8250
8251
8252 # test EBCDIC or ASCII
8253 case `echo X|tr X '\101'` in
8254 A) # ASCII based system
8255 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8256 lt_SP2NL='tr \040 \012'
8257 lt_NL2SP='tr \015\012 \040\040'
8258 ;;
8259 *) # EBCDIC based system
8260 lt_SP2NL='tr \100 \n'
8261 lt_NL2SP='tr \r\n \100\100'
8262 ;;
8263 esac
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8274 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8275 if ${lt_cv_to_host_file_cmd+:} false; then :
8276 $as_echo_n "(cached) " >&6
8277 else
8278 case $host in
8279 *-*-mingw* )
8280 case $build in
8281 *-*-mingw* ) # actually msys
8282 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8283 ;;
8284 *-*-cygwin* )
8285 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8286 ;;
8287 * ) # otherwise, assume *nix
8288 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8289 ;;
8290 esac
8291 ;;
8292 *-*-cygwin* )
8293 case $build in
8294 *-*-mingw* ) # actually msys
8295 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8296 ;;
8297 *-*-cygwin* )
8298 lt_cv_to_host_file_cmd=func_convert_file_noop
8299 ;;
8300 * ) # otherwise, assume *nix
8301 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8302 ;;
8303 esac
8304 ;;
8305 * ) # unhandled hosts (and "normal" native builds)
8306 lt_cv_to_host_file_cmd=func_convert_file_noop
8307 ;;
8308 esac
8309
8310 fi
8311
8312 to_host_file_cmd=$lt_cv_to_host_file_cmd
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8314 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8315
8316
8317
8318
8319
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8321 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8322 if ${lt_cv_to_tool_file_cmd+:} false; then :
8323 $as_echo_n "(cached) " >&6
8324 else
8325 #assume ordinary cross tools, or native build.
8326 lt_cv_to_tool_file_cmd=func_convert_file_noop
8327 case $host in
8328 *-*-mingw* )
8329 case $build in
8330 *-*-mingw* ) # actually msys
8331 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8332 ;;
8333 esac
8334 ;;
8335 esac
8336
8337 fi
8338
8339 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8341 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8342
8343
8344
8345
8346
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8348 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8349 if ${lt_cv_ld_reload_flag+:} false; then :
8350 $as_echo_n "(cached) " >&6
8351 else
8352 lt_cv_ld_reload_flag='-r'
8353 fi
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8355 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8356 reload_flag=$lt_cv_ld_reload_flag
8357 case $reload_flag in
8358 "" | " "*) ;;
8359 *) reload_flag=" $reload_flag" ;;
8360 esac
8361 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8362 case $host_os in
8363 cygwin* | mingw* | pw32* | cegcc*)
8364 if test yes != "$GCC"; then
8365 reload_cmds=false
8366 fi
8367 ;;
8368 darwin*)
8369 if test yes = "$GCC"; then
8370 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8371 else
8372 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8373 fi
8374 ;;
8375 esac
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385 if test -n "$ac_tool_prefix"; then
8386 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8387 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8389 $as_echo_n "checking for $ac_word... " >&6; }
8390 if ${ac_cv_prog_OBJDUMP+:} false; then :
8391 $as_echo_n "(cached) " >&6
8392 else
8393 if test -n "$OBJDUMP"; then
8394 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8395 else
8396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397 for as_dir in $PATH
8398 do
8399 IFS=$as_save_IFS
8400 test -z "$as_dir" && as_dir=.
8401 for ac_exec_ext in '' $ac_executable_extensions; do
8402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8403 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8405 break 2
8406 fi
8407 done
8408 done
8409 IFS=$as_save_IFS
8410
8411 fi
8412 fi
8413 OBJDUMP=$ac_cv_prog_OBJDUMP
8414 if test -n "$OBJDUMP"; then
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8416 $as_echo "$OBJDUMP" >&6; }
8417 else
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419 $as_echo "no" >&6; }
8420 fi
8421
8422
8423 fi
8424 if test -z "$ac_cv_prog_OBJDUMP"; then
8425 ac_ct_OBJDUMP=$OBJDUMP
8426 # Extract the first word of "objdump", so it can be a program name with args.
8427 set dummy objdump; ac_word=$2
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8429 $as_echo_n "checking for $ac_word... " >&6; }
8430 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8431 $as_echo_n "(cached) " >&6
8432 else
8433 if test -n "$ac_ct_OBJDUMP"; then
8434 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8435 else
8436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8437 for as_dir in $PATH
8438 do
8439 IFS=$as_save_IFS
8440 test -z "$as_dir" && as_dir=.
8441 for ac_exec_ext in '' $ac_executable_extensions; do
8442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8443 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8445 break 2
8446 fi
8447 done
8448 done
8449 IFS=$as_save_IFS
8450
8451 fi
8452 fi
8453 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8454 if test -n "$ac_ct_OBJDUMP"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8456 $as_echo "$ac_ct_OBJDUMP" >&6; }
8457 else
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459 $as_echo "no" >&6; }
8460 fi
8461
8462 if test "x$ac_ct_OBJDUMP" = x; then
8463 OBJDUMP="false"
8464 else
8465 case $cross_compiling:$ac_tool_warned in
8466 yes:)
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8469 ac_tool_warned=yes ;;
8470 esac
8471 OBJDUMP=$ac_ct_OBJDUMP
8472 fi
8473 else
8474 OBJDUMP="$ac_cv_prog_OBJDUMP"
8475 fi
8476
8477 test -z "$OBJDUMP" && OBJDUMP=objdump
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8488 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8489 if ${lt_cv_deplibs_check_method+:} false; then :
8490 $as_echo_n "(cached) " >&6
8491 else
8492 lt_cv_file_magic_cmd='$MAGIC_CMD'
8493 lt_cv_file_magic_test_file=
8494 lt_cv_deplibs_check_method='unknown'
8495 # Need to set the preceding variable on all platforms that support
8496 # interlibrary dependencies.
8497 # 'none' -- dependencies not supported.
8498 # 'unknown' -- same as none, but documents that we really don't know.
8499 # 'pass_all' -- all dependencies passed with no checks.
8500 # 'test_compile' -- check by making test program.
8501 # 'file_magic [[regex]]' -- check by looking for files in library path
8502 # that responds to the $file_magic_cmd with a given extended regex.
8503 # If you have 'file' or equivalent on your system and you're not sure
8504 # whether 'pass_all' will *always* work, you probably want this one.
8505
8506 case $host_os in
8507 aix[4-9]*)
8508 lt_cv_deplibs_check_method=pass_all
8509 ;;
8510
8511 beos*)
8512 lt_cv_deplibs_check_method=pass_all
8513 ;;
8514
8515 bsdi[45]*)
8516 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8517 lt_cv_file_magic_cmd='/usr/bin/file -L'
8518 lt_cv_file_magic_test_file=/shlib/libc.so
8519 ;;
8520
8521 cygwin*)
8522 # func_win32_libid is a shell function defined in ltmain.sh
8523 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8524 lt_cv_file_magic_cmd='func_win32_libid'
8525 ;;
8526
8527 mingw* | pw32*)
8528 # Base MSYS/MinGW do not provide the 'file' command needed by
8529 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8530 # unless we find 'file', for example because we are cross-compiling.
8531 if ( file / ) >/dev/null 2>&1; then
8532 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8533 lt_cv_file_magic_cmd='func_win32_libid'
8534 else
8535 # Keep this pattern in sync with the one in func_win32_libid.
8536 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8537 lt_cv_file_magic_cmd='$OBJDUMP -f'
8538 fi
8539 ;;
8540
8541 cegcc*)
8542 # use the weaker test based on 'objdump'. See mingw*.
8543 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8544 lt_cv_file_magic_cmd='$OBJDUMP -f'
8545 ;;
8546
8547 darwin* | rhapsody*)
8548 lt_cv_deplibs_check_method=pass_all
8549 ;;
8550
8551 freebsd* | dragonfly*)
8552 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8553 case $host_cpu in
8554 i*86 )
8555 # Not sure whether the presence of OpenBSD here was a mistake.
8556 # Let's accept both of them until this is cleared up.
8557 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8558 lt_cv_file_magic_cmd=/usr/bin/file
8559 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8560 ;;
8561 esac
8562 else
8563 lt_cv_deplibs_check_method=pass_all
8564 fi
8565 ;;
8566
8567 haiku*)
8568 lt_cv_deplibs_check_method=pass_all
8569 ;;
8570
8571 hpux10.20* | hpux11*)
8572 lt_cv_file_magic_cmd=/usr/bin/file
8573 case $host_cpu in
8574 ia64*)
8575 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8576 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8577 ;;
8578 hppa*64*)
8579 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
8580 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8581 ;;
8582 *)
8583 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8584 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8585 ;;
8586 esac
8587 ;;
8588
8589 interix[3-9]*)
8590 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8591 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8592 ;;
8593
8594 irix5* | irix6* | nonstopux*)
8595 case $LD in
8596 *-32|*"-32 ") libmagic=32-bit;;
8597 *-n32|*"-n32 ") libmagic=N32;;
8598 *-64|*"-64 ") libmagic=64-bit;;
8599 *) libmagic=never-match;;
8600 esac
8601 lt_cv_deplibs_check_method=pass_all
8602 ;;
8603
8604 # This must be glibc/ELF.
8605 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8606 lt_cv_deplibs_check_method=pass_all
8607 ;;
8608
8609 netbsd* | netbsdelf*-gnu)
8610 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8611 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8612 else
8613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8614 fi
8615 ;;
8616
8617 newos6*)
8618 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8619 lt_cv_file_magic_cmd=/usr/bin/file
8620 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8621 ;;
8622
8623 *nto* | *qnx*)
8624 lt_cv_deplibs_check_method=pass_all
8625 ;;
8626
8627 openbsd* | bitrig*)
8628 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8629 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8630 else
8631 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8632 fi
8633 ;;
8634
8635 osf3* | osf4* | osf5*)
8636 lt_cv_deplibs_check_method=pass_all
8637 ;;
8638
8639 rdos*)
8640 lt_cv_deplibs_check_method=pass_all
8641 ;;
8642
8643 solaris*)
8644 lt_cv_deplibs_check_method=pass_all
8645 ;;
8646
8647 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8648 lt_cv_deplibs_check_method=pass_all
8649 ;;
8650
8651 sysv4 | sysv4.3*)
8652 case $host_vendor in
8653 motorola)
8654 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]'
8655 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8656 ;;
8657 ncr)
8658 lt_cv_deplibs_check_method=pass_all
8659 ;;
8660 sequent)
8661 lt_cv_file_magic_cmd='/bin/file'
8662 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8663 ;;
8664 sni)
8665 lt_cv_file_magic_cmd='/bin/file'
8666 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8667 lt_cv_file_magic_test_file=/lib/libc.so
8668 ;;
8669 siemens)
8670 lt_cv_deplibs_check_method=pass_all
8671 ;;
8672 pc)
8673 lt_cv_deplibs_check_method=pass_all
8674 ;;
8675 esac
8676 ;;
8677
8678 tpf*)
8679 lt_cv_deplibs_check_method=pass_all
8680 ;;
8681 os2*)
8682 lt_cv_deplibs_check_method=pass_all
8683 ;;
8684 esac
8685
8686 fi
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8688 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8689
8690 file_magic_glob=
8691 want_nocaseglob=no
8692 if test "$build" = "$host"; then
8693 case $host_os in
8694 mingw* | pw32*)
8695 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8696 want_nocaseglob=yes
8697 else
8698 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8699 fi
8700 ;;
8701 esac
8702 fi
8703
8704 file_magic_cmd=$lt_cv_file_magic_cmd
8705 deplibs_check_method=$lt_cv_deplibs_check_method
8706 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729 if test -n "$ac_tool_prefix"; then
8730 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8731 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8733 $as_echo_n "checking for $ac_word... " >&6; }
8734 if ${ac_cv_prog_DLLTOOL+:} false; then :
8735 $as_echo_n "(cached) " >&6
8736 else
8737 if test -n "$DLLTOOL"; then
8738 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8739 else
8740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8741 for as_dir in $PATH
8742 do
8743 IFS=$as_save_IFS
8744 test -z "$as_dir" && as_dir=.
8745 for ac_exec_ext in '' $ac_executable_extensions; do
8746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8747 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8749 break 2
8750 fi
8751 done
8752 done
8753 IFS=$as_save_IFS
8754
8755 fi
8756 fi
8757 DLLTOOL=$ac_cv_prog_DLLTOOL
8758 if test -n "$DLLTOOL"; then
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8760 $as_echo "$DLLTOOL" >&6; }
8761 else
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8763 $as_echo "no" >&6; }
8764 fi
8765
8766
8767 fi
8768 if test -z "$ac_cv_prog_DLLTOOL"; then
8769 ac_ct_DLLTOOL=$DLLTOOL
8770 # Extract the first word of "dlltool", so it can be a program name with args.
8771 set dummy dlltool; ac_word=$2
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8773 $as_echo_n "checking for $ac_word... " >&6; }
8774 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8775 $as_echo_n "(cached) " >&6
8776 else
8777 if test -n "$ac_ct_DLLTOOL"; then
8778 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8779 else
8780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8781 for as_dir in $PATH
8782 do
8783 IFS=$as_save_IFS
8784 test -z "$as_dir" && as_dir=.
8785 for ac_exec_ext in '' $ac_executable_extensions; do
8786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8787 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8789 break 2
8790 fi
8791 done
8792 done
8793 IFS=$as_save_IFS
8794
8795 fi
8796 fi
8797 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8798 if test -n "$ac_ct_DLLTOOL"; then
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8800 $as_echo "$ac_ct_DLLTOOL" >&6; }
8801 else
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8803 $as_echo "no" >&6; }
8804 fi
8805
8806 if test "x$ac_ct_DLLTOOL" = x; then
8807 DLLTOOL="false"
8808 else
8809 case $cross_compiling:$ac_tool_warned in
8810 yes:)
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8813 ac_tool_warned=yes ;;
8814 esac
8815 DLLTOOL=$ac_ct_DLLTOOL
8816 fi
8817 else
8818 DLLTOOL="$ac_cv_prog_DLLTOOL"
8819 fi
8820
8821 test -z "$DLLTOOL" && DLLTOOL=dlltool
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8833 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8834 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8835 $as_echo_n "(cached) " >&6
8836 else
8837 lt_cv_sharedlib_from_linklib_cmd='unknown'
8838
8839 case $host_os in
8840 cygwin* | mingw* | pw32* | cegcc*)
8841 # two different shell functions defined in ltmain.sh;
8842 # decide which one to use based on capabilities of $DLLTOOL
8843 case `$DLLTOOL --help 2>&1` in
8844 *--identify-strict*)
8845 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8846 ;;
8847 *)
8848 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8849 ;;
8850 esac
8851 ;;
8852 *)
8853 # fallback: assume linklib IS sharedlib
8854 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8855 ;;
8856 esac
8857
8858 fi
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8860 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8861 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8862 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8863
8864
8865
8866
8867
8868
8869
8870 if test -n "$ac_tool_prefix"; then
8871 for ac_prog in ar
8872 do
8873 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8874 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8876 $as_echo_n "checking for $ac_word... " >&6; }
8877 if ${ac_cv_prog_AR+:} false; then :
8878 $as_echo_n "(cached) " >&6
8879 else
8880 if test -n "$AR"; then
8881 ac_cv_prog_AR="$AR" # Let the user override the test.
8882 else
8883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8884 for as_dir in $PATH
8885 do
8886 IFS=$as_save_IFS
8887 test -z "$as_dir" && as_dir=.
8888 for ac_exec_ext in '' $ac_executable_extensions; do
8889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8890 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8892 break 2
8893 fi
8894 done
8895 done
8896 IFS=$as_save_IFS
8897
8898 fi
8899 fi
8900 AR=$ac_cv_prog_AR
8901 if test -n "$AR"; then
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8903 $as_echo "$AR" >&6; }
8904 else
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906 $as_echo "no" >&6; }
8907 fi
8908
8909
8910 test -n "$AR" && break
8911 done
8912 fi
8913 if test -z "$AR"; then
8914 ac_ct_AR=$AR
8915 for ac_prog in ar
8916 do
8917 # Extract the first word of "$ac_prog", so it can be a program name with args.
8918 set dummy $ac_prog; ac_word=$2
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8920 $as_echo_n "checking for $ac_word... " >&6; }
8921 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8922 $as_echo_n "(cached) " >&6
8923 else
8924 if test -n "$ac_ct_AR"; then
8925 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8926 else
8927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8928 for as_dir in $PATH
8929 do
8930 IFS=$as_save_IFS
8931 test -z "$as_dir" && as_dir=.
8932 for ac_exec_ext in '' $ac_executable_extensions; do
8933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8934 ac_cv_prog_ac_ct_AR="$ac_prog"
8935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8936 break 2
8937 fi
8938 done
8939 done
8940 IFS=$as_save_IFS
8941
8942 fi
8943 fi
8944 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8945 if test -n "$ac_ct_AR"; then
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8947 $as_echo "$ac_ct_AR" >&6; }
8948 else
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8950 $as_echo "no" >&6; }
8951 fi
8952
8953
8954 test -n "$ac_ct_AR" && break
8955 done
8956
8957 if test "x$ac_ct_AR" = x; then
8958 AR="false"
8959 else
8960 case $cross_compiling:$ac_tool_warned in
8961 yes:)
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8964 ac_tool_warned=yes ;;
8965 esac
8966 AR=$ac_ct_AR
8967 fi
8968 fi
8969
8970 : ${AR=ar}
8971 : ${AR_FLAGS=cru}
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8984 $as_echo_n "checking for archiver @FILE support... " >&6; }
8985 if ${lt_cv_ar_at_file+:} false; then :
8986 $as_echo_n "(cached) " >&6
8987 else
8988 lt_cv_ar_at_file=no
8989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8990 /* end confdefs.h. */
8991
8992 int
8993 main ()
8994 {
8995
8996 ;
8997 return 0;
8998 }
8999 _ACEOF
9000 if ac_fn_cxx_try_compile "$LINENO"; then :
9001 echo conftest.$ac_objext > conftest.lst
9002 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9004 (eval $lt_ar_try) 2>&5
9005 ac_status=$?
9006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9007 test $ac_status = 0; }
9008 if test 0 -eq "$ac_status"; then
9009 # Ensure the archiver fails upon bogus file names.
9010 rm -f conftest.$ac_objext libconftest.a
9011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9012 (eval $lt_ar_try) 2>&5
9013 ac_status=$?
9014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9015 test $ac_status = 0; }
9016 if test 0 -ne "$ac_status"; then
9017 lt_cv_ar_at_file=@
9018 fi
9019 fi
9020 rm -f conftest.* libconftest.a
9021
9022 fi
9023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9024
9025 fi
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9027 $as_echo "$lt_cv_ar_at_file" >&6; }
9028
9029 if test no = "$lt_cv_ar_at_file"; then
9030 archiver_list_spec=
9031 else
9032 archiver_list_spec=$lt_cv_ar_at_file
9033 fi
9034
9035
9036
9037
9038
9039
9040
9041 if test -n "$ac_tool_prefix"; then
9042 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9043 set dummy ${ac_tool_prefix}strip; ac_word=$2
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9045 $as_echo_n "checking for $ac_word... " >&6; }
9046 if ${ac_cv_prog_STRIP+:} false; then :
9047 $as_echo_n "(cached) " >&6
9048 else
9049 if test -n "$STRIP"; then
9050 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9051 else
9052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9053 for as_dir in $PATH
9054 do
9055 IFS=$as_save_IFS
9056 test -z "$as_dir" && as_dir=.
9057 for ac_exec_ext in '' $ac_executable_extensions; do
9058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9059 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9061 break 2
9062 fi
9063 done
9064 done
9065 IFS=$as_save_IFS
9066
9067 fi
9068 fi
9069 STRIP=$ac_cv_prog_STRIP
9070 if test -n "$STRIP"; then
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9072 $as_echo "$STRIP" >&6; }
9073 else
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9075 $as_echo "no" >&6; }
9076 fi
9077
9078
9079 fi
9080 if test -z "$ac_cv_prog_STRIP"; then
9081 ac_ct_STRIP=$STRIP
9082 # Extract the first word of "strip", so it can be a program name with args.
9083 set dummy strip; ac_word=$2
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9085 $as_echo_n "checking for $ac_word... " >&6; }
9086 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9087 $as_echo_n "(cached) " >&6
9088 else
9089 if test -n "$ac_ct_STRIP"; then
9090 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9091 else
9092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9093 for as_dir in $PATH
9094 do
9095 IFS=$as_save_IFS
9096 test -z "$as_dir" && as_dir=.
9097 for ac_exec_ext in '' $ac_executable_extensions; do
9098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9099 ac_cv_prog_ac_ct_STRIP="strip"
9100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9101 break 2
9102 fi
9103 done
9104 done
9105 IFS=$as_save_IFS
9106
9107 fi
9108 fi
9109 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9110 if test -n "$ac_ct_STRIP"; then
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9112 $as_echo "$ac_ct_STRIP" >&6; }
9113 else
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9115 $as_echo "no" >&6; }
9116 fi
9117
9118 if test "x$ac_ct_STRIP" = x; then
9119 STRIP=":"
9120 else
9121 case $cross_compiling:$ac_tool_warned in
9122 yes:)
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9125 ac_tool_warned=yes ;;
9126 esac
9127 STRIP=$ac_ct_STRIP
9128 fi
9129 else
9130 STRIP="$ac_cv_prog_STRIP"
9131 fi
9132
9133 test -z "$STRIP" && STRIP=:
9134
9135
9136
9137
9138
9139
9140 if test -n "$ac_tool_prefix"; then
9141 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9142 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9144 $as_echo_n "checking for $ac_word... " >&6; }
9145 if ${ac_cv_prog_RANLIB+:} false; then :
9146 $as_echo_n "(cached) " >&6
9147 else
9148 if test -n "$RANLIB"; then
9149 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9150 else
9151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9152 for as_dir in $PATH
9153 do
9154 IFS=$as_save_IFS
9155 test -z "$as_dir" && as_dir=.
9156 for ac_exec_ext in '' $ac_executable_extensions; do
9157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9158 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9160 break 2
9161 fi
9162 done
9163 done
9164 IFS=$as_save_IFS
9165
9166 fi
9167 fi
9168 RANLIB=$ac_cv_prog_RANLIB
9169 if test -n "$RANLIB"; then
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9171 $as_echo "$RANLIB" >&6; }
9172 else
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9174 $as_echo "no" >&6; }
9175 fi
9176
9177
9178 fi
9179 if test -z "$ac_cv_prog_RANLIB"; then
9180 ac_ct_RANLIB=$RANLIB
9181 # Extract the first word of "ranlib", so it can be a program name with args.
9182 set dummy ranlib; ac_word=$2
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9184 $as_echo_n "checking for $ac_word... " >&6; }
9185 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9186 $as_echo_n "(cached) " >&6
9187 else
9188 if test -n "$ac_ct_RANLIB"; then
9189 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9190 else
9191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9192 for as_dir in $PATH
9193 do
9194 IFS=$as_save_IFS
9195 test -z "$as_dir" && as_dir=.
9196 for ac_exec_ext in '' $ac_executable_extensions; do
9197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9198 ac_cv_prog_ac_ct_RANLIB="ranlib"
9199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9200 break 2
9201 fi
9202 done
9203 done
9204 IFS=$as_save_IFS
9205
9206 fi
9207 fi
9208 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9209 if test -n "$ac_ct_RANLIB"; then
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9211 $as_echo "$ac_ct_RANLIB" >&6; }
9212 else
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9214 $as_echo "no" >&6; }
9215 fi
9216
9217 if test "x$ac_ct_RANLIB" = x; then
9218 RANLIB=":"
9219 else
9220 case $cross_compiling:$ac_tool_warned in
9221 yes:)
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9224 ac_tool_warned=yes ;;
9225 esac
9226 RANLIB=$ac_ct_RANLIB
9227 fi
9228 else
9229 RANLIB="$ac_cv_prog_RANLIB"
9230 fi
9231
9232 test -z "$RANLIB" && RANLIB=:
9233
9234
9235
9236
9237
9238
9239 # Determine commands to create old-style static archives.
9240 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9241 old_postinstall_cmds='chmod 644 $oldlib'
9242 old_postuninstall_cmds=
9243
9244 if test -n "$RANLIB"; then
9245 case $host_os in
9246 bitrig* | openbsd*)
9247 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9248 ;;
9249 *)
9250 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9251 ;;
9252 esac
9253 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9254 fi
9255
9256 case $host_os in
9257 darwin*)
9258 lock_old_archive_extraction=yes ;;
9259 *)
9260 lock_old_archive_extraction=no ;;
9261 esac
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301 # If no C compiler was specified, use CC.
9302 LTCC=${LTCC-"$CC"}
9303
9304 # If no C compiler flags were specified, use CFLAGS.
9305 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9306
9307 # Allow CC to be a program name with arguments.
9308 compiler=$CC
9309
9310
9311 # Check for command to grab the raw symbol name followed by C symbol from nm.
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9313 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9314 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9315 $as_echo_n "(cached) " >&6
9316 else
9317
9318 # These are sane defaults that work on at least a few old systems.
9319 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9320
9321 # Character class describing NM global symbol codes.
9322 symcode='[BCDEGRST]'
9323
9324 # Regexp to match symbols that can be accessed directly from C.
9325 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9326
9327 # Define system-specific variables.
9328 case $host_os in
9329 aix*)
9330 symcode='[BCDT]'
9331 ;;
9332 cygwin* | mingw* | pw32* | cegcc*)
9333 symcode='[ABCDGISTW]'
9334 ;;
9335 hpux*)
9336 if test ia64 = "$host_cpu"; then
9337 symcode='[ABCDEGRST]'
9338 fi
9339 ;;
9340 irix* | nonstopux*)
9341 symcode='[BCDEGRST]'
9342 ;;
9343 osf*)
9344 symcode='[BCDEGQRST]'
9345 ;;
9346 solaris*)
9347 symcode='[BDRT]'
9348 ;;
9349 sco3.2v5*)
9350 symcode='[DT]'
9351 ;;
9352 sysv4.2uw2*)
9353 symcode='[DT]'
9354 ;;
9355 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9356 symcode='[ABDT]'
9357 ;;
9358 sysv4)
9359 symcode='[DFNSTU]'
9360 ;;
9361 esac
9362
9363 # If we're using GNU nm, then use its standard symbol codes.
9364 case `$NM -V 2>&1` in
9365 *GNU* | *'with BFD'*)
9366 symcode='[ABCDGIRSTW]' ;;
9367 esac
9368
9369 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9370 # Gets list of data symbols to import.
9371 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9372 # Adjust the below global symbol transforms to fixup imported variables.
9373 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9374 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9375 lt_c_name_lib_hook="\
9376 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9377 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9378 else
9379 # Disable hooks by default.
9380 lt_cv_sys_global_symbol_to_import=
9381 lt_cdecl_hook=
9382 lt_c_name_hook=
9383 lt_c_name_lib_hook=
9384 fi
9385
9386 # Transform an extracted symbol line into a proper C declaration.
9387 # Some systems (esp. on ia64) link data and code symbols differently,
9388 # so use this general approach.
9389 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9390 $lt_cdecl_hook\
9391 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9392 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9393
9394 # Transform an extracted symbol line into symbol name and symbol address
9395 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9396 $lt_c_name_hook\
9397 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9398 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9399
9400 # Transform an extracted symbol line into symbol name with lib prefix and
9401 # symbol address.
9402 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9403 $lt_c_name_lib_hook\
9404 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9405 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9406 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9407
9408 # Handle CRLF in mingw tool chain
9409 opt_cr=
9410 case $build_os in
9411 mingw*)
9412 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9413 ;;
9414 esac
9415
9416 # Try without a prefix underscore, then with it.
9417 for ac_symprfx in "" "_"; do
9418
9419 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9420 symxfrm="\\1 $ac_symprfx\\2 \\2"
9421
9422 # Write the raw and C identifiers.
9423 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9424 # Fake it for dumpbin and say T for any non-static function,
9425 # D for any global variable and I for any imported variable.
9426 # Also find C++ and __fastcall symbols from MSVC++,
9427 # which start with @ or ?.
9428 lt_cv_sys_global_symbol_pipe="$AWK '"\
9429 " {last_section=section; section=\$ 3};"\
9430 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9431 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9432 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9433 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9434 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9435 " \$ 0!~/External *\|/{next};"\
9436 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9437 " {if(hide[section]) next};"\
9438 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9439 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9440 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9441 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9442 " ' prfx=^$ac_symprfx"
9443 else
9444 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9445 fi
9446 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9447
9448 # Check to see that the pipe works correctly.
9449 pipe_works=no
9450
9451 rm -f conftest*
9452 cat > conftest.$ac_ext <<_LT_EOF
9453 #ifdef __cplusplus
9454 extern "C" {
9455 #endif
9456 char nm_test_var;
9457 void nm_test_func(void);
9458 void nm_test_func(void){}
9459 #ifdef __cplusplus
9460 }
9461 #endif
9462 int main(){nm_test_var='a';nm_test_func();return(0);}
9463 _LT_EOF
9464
9465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9466 (eval $ac_compile) 2>&5
9467 ac_status=$?
9468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9469 test $ac_status = 0; }; then
9470 # Now try to grab the symbols.
9471 nlist=conftest.nm
9472 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9473 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
9474 # Try sorting and uniquifying the output.
9475 if sort "$nlist" | uniq > "$nlist"T; then
9476 mv -f "$nlist"T "$nlist"
9477 else
9478 rm -f "$nlist"T
9479 fi
9480
9481 # Make sure that we snagged all the symbols we need.
9482 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9483 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9484 cat <<_LT_EOF > conftest.$ac_ext
9485 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9486 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9487 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9488 relocations are performed -- see ld's documentation on pseudo-relocs. */
9489 # define LT_DLSYM_CONST
9490 #elif defined __osf__
9491 /* This system does not cope well with relocations in const data. */
9492 # define LT_DLSYM_CONST
9493 #else
9494 # define LT_DLSYM_CONST const
9495 #endif
9496
9497 #ifdef __cplusplus
9498 extern "C" {
9499 #endif
9500
9501 _LT_EOF
9502 # Now generate the symbol file.
9503 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9504
9505 cat <<_LT_EOF >> conftest.$ac_ext
9506
9507 /* The mapping between symbol names and symbols. */
9508 LT_DLSYM_CONST struct {
9509 const char *name;
9510 void *address;
9511 }
9512 lt__PROGRAM__LTX_preloaded_symbols[] =
9513 {
9514 { "@PROGRAM@", (void *) 0 },
9515 _LT_EOF
9516 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9517 cat <<\_LT_EOF >> conftest.$ac_ext
9518 {0, (void *) 0}
9519 };
9520
9521 /* This works around a problem in FreeBSD linker */
9522 #ifdef FREEBSD_WORKAROUND
9523 static const void *lt_preloaded_setup() {
9524 return lt__PROGRAM__LTX_preloaded_symbols;
9525 }
9526 #endif
9527
9528 #ifdef __cplusplus
9529 }
9530 #endif
9531 _LT_EOF
9532 # Now try linking the two files.
9533 mv conftest.$ac_objext conftstm.$ac_objext
9534 lt_globsym_save_LIBS=$LIBS
9535 lt_globsym_save_CFLAGS=$CFLAGS
9536 LIBS=conftstm.$ac_objext
9537 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9539 (eval $ac_link) 2>&5
9540 ac_status=$?
9541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9542 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9543 pipe_works=yes
9544 fi
9545 LIBS=$lt_globsym_save_LIBS
9546 CFLAGS=$lt_globsym_save_CFLAGS
9547 else
9548 echo "cannot find nm_test_func in $nlist" >&5
9549 fi
9550 else
9551 echo "cannot find nm_test_var in $nlist" >&5
9552 fi
9553 else
9554 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9555 fi
9556 else
9557 echo "$progname: failed program was:" >&5
9558 cat conftest.$ac_ext >&5
9559 fi
9560 rm -rf conftest* conftst*
9561
9562 # Do not use the global_symbol_pipe unless it works.
9563 if test yes = "$pipe_works"; then
9564 break
9565 else
9566 lt_cv_sys_global_symbol_pipe=
9567 fi
9568 done
9569
9570 fi
9571
9572 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9573 lt_cv_sys_global_symbol_to_cdecl=
9574 fi
9575 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9577 $as_echo "failed" >&6; }
9578 else
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9580 $as_echo "ok" >&6; }
9581 fi
9582
9583 # Response file support.
9584 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9585 nm_file_list_spec='@'
9586 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9587 nm_file_list_spec='@'
9588 fi
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9627 $as_echo_n "checking for sysroot... " >&6; }
9628
9629 # Check whether --with-sysroot was given.
9630 if test "${with_sysroot+set}" = set; then :
9631 withval=$with_sysroot;
9632 else
9633 with_sysroot=no
9634 fi
9635
9636
9637 lt_sysroot=
9638 case $with_sysroot in #(
9639 yes)
9640 if test yes = "$GCC"; then
9641 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9642 fi
9643 ;; #(
9644 /*)
9645 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9646 ;; #(
9647 no|'')
9648 ;; #(
9649 *)
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9651 $as_echo "$with_sysroot" >&6; }
9652 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9653 ;;
9654 esac
9655
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9657 $as_echo "${lt_sysroot:-no}" >&6; }
9658
9659
9660
9661
9662
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9664 $as_echo_n "checking for a working dd... " >&6; }
9665 if ${ac_cv_path_lt_DD+:} false; then :
9666 $as_echo_n "(cached) " >&6
9667 else
9668 printf 0123456789abcdef0123456789abcdef >conftest.i
9669 cat conftest.i conftest.i >conftest2.i
9670 : ${lt_DD:=$DD}
9671 if test -z "$lt_DD"; then
9672 ac_path_lt_DD_found=false
9673 # Loop through the user's path and test for each of PROGNAME-LIST
9674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9675 for as_dir in $PATH
9676 do
9677 IFS=$as_save_IFS
9678 test -z "$as_dir" && as_dir=.
9679 for ac_prog in dd; do
9680 for ac_exec_ext in '' $ac_executable_extensions; do
9681 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9682 as_fn_executable_p "$ac_path_lt_DD" || continue
9683 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9684 cmp -s conftest.i conftest.out \
9685 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9686 fi
9687 $ac_path_lt_DD_found && break 3
9688 done
9689 done
9690 done
9691 IFS=$as_save_IFS
9692 if test -z "$ac_cv_path_lt_DD"; then
9693 :
9694 fi
9695 else
9696 ac_cv_path_lt_DD=$lt_DD
9697 fi
9698
9699 rm -f conftest.i conftest2.i conftest.out
9700 fi
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9702 $as_echo "$ac_cv_path_lt_DD" >&6; }
9703
9704
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9706 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9707 if ${lt_cv_truncate_bin+:} false; then :
9708 $as_echo_n "(cached) " >&6
9709 else
9710 printf 0123456789abcdef0123456789abcdef >conftest.i
9711 cat conftest.i conftest.i >conftest2.i
9712 lt_cv_truncate_bin=
9713 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9714 cmp -s conftest.i conftest.out \
9715 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9716 fi
9717 rm -f conftest.i conftest2.i conftest.out
9718 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9719 fi
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9721 $as_echo "$lt_cv_truncate_bin" >&6; }
9722
9723
9724
9725
9726
9727
9728
9729 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9730 func_cc_basename ()
9731 {
9732 for cc_temp in $*""; do
9733 case $cc_temp in
9734 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9735 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9736 \-*) ;;
9737 *) break;;
9738 esac
9739 done
9740 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9741 }
9742
9743
9744 # Check whether --enable-libtool-lock was given.
9745 if test "${enable_libtool_lock+set}" = set; then :
9746 enableval=$enable_libtool_lock;
9747 fi
9748
9749 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9750
9751 # Some flags need to be propagated to the compiler or linker for good
9752 # libtool support.
9753 case $host in
9754 ia64-*-hpux*)
9755 # Find out what ABI is being produced by ac_compile, and set mode
9756 # options accordingly.
9757 echo 'int i;' > conftest.$ac_ext
9758 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9759 (eval $ac_compile) 2>&5
9760 ac_status=$?
9761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9762 test $ac_status = 0; }; then
9763 case `/usr/bin/file conftest.$ac_objext` in
9764 *ELF-32*)
9765 HPUX_IA64_MODE=32
9766 ;;
9767 *ELF-64*)
9768 HPUX_IA64_MODE=64
9769 ;;
9770 esac
9771 fi
9772 rm -rf conftest*
9773 ;;
9774 *-*-irix6*)
9775 # Find out what ABI is being produced by ac_compile, and set linker
9776 # options accordingly.
9777 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9778 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9779 (eval $ac_compile) 2>&5
9780 ac_status=$?
9781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9782 test $ac_status = 0; }; then
9783 if test yes = "$lt_cv_prog_gnu_ld"; then
9784 case `/usr/bin/file conftest.$ac_objext` in
9785 *32-bit*)
9786 LD="${LD-ld} -melf32bsmip"
9787 ;;
9788 *N32*)
9789 LD="${LD-ld} -melf32bmipn32"
9790 ;;
9791 *64-bit*)
9792 LD="${LD-ld} -melf64bmip"
9793 ;;
9794 esac
9795 else
9796 case `/usr/bin/file conftest.$ac_objext` in
9797 *32-bit*)
9798 LD="${LD-ld} -32"
9799 ;;
9800 *N32*)
9801 LD="${LD-ld} -n32"
9802 ;;
9803 *64-bit*)
9804 LD="${LD-ld} -64"
9805 ;;
9806 esac
9807 fi
9808 fi
9809 rm -rf conftest*
9810 ;;
9811
9812 mips64*-*linux*)
9813 # Find out what ABI is being produced by ac_compile, and set linker
9814 # options accordingly.
9815 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9817 (eval $ac_compile) 2>&5
9818 ac_status=$?
9819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9820 test $ac_status = 0; }; then
9821 emul=elf
9822 case `/usr/bin/file conftest.$ac_objext` in
9823 *32-bit*)
9824 emul="${emul}32"
9825 ;;
9826 *64-bit*)
9827 emul="${emul}64"
9828 ;;
9829 esac
9830 case `/usr/bin/file conftest.$ac_objext` in
9831 *MSB*)
9832 emul="${emul}btsmip"
9833 ;;
9834 *LSB*)
9835 emul="${emul}ltsmip"
9836 ;;
9837 esac
9838 case `/usr/bin/file conftest.$ac_objext` in
9839 *N32*)
9840 emul="${emul}n32"
9841 ;;
9842 esac
9843 LD="${LD-ld} -m $emul"
9844 fi
9845 rm -rf conftest*
9846 ;;
9847
9848 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9849 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9850 # Find out what ABI is being produced by ac_compile, and set linker
9851 # options accordingly. Note that the listed cases only cover the
9852 # situations where additional linker options are needed (such as when
9853 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9854 # vice versa); the common cases where no linker options are needed do
9855 # not appear in the list.
9856 echo 'int i;' > conftest.$ac_ext
9857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9858 (eval $ac_compile) 2>&5
9859 ac_status=$?
9860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9861 test $ac_status = 0; }; then
9862 case `/usr/bin/file conftest.o` in
9863 *32-bit*)
9864 case $host in
9865 x86_64-*kfreebsd*-gnu)
9866 LD="${LD-ld} -m elf_i386_fbsd"
9867 ;;
9868 x86_64-*linux*)
9869 case `/usr/bin/file conftest.o` in
9870 *x86-64*)
9871 LD="${LD-ld} -m elf32_x86_64"
9872 ;;
9873 *)
9874 LD="${LD-ld} -m elf_i386"
9875 ;;
9876 esac
9877 ;;
9878 powerpc64le-*linux*)
9879 LD="${LD-ld} -m elf32lppclinux"
9880 ;;
9881 powerpc64-*linux*)
9882 LD="${LD-ld} -m elf32ppclinux"
9883 ;;
9884 s390x-*linux*)
9885 LD="${LD-ld} -m elf_s390"
9886 ;;
9887 sparc64-*linux*)
9888 LD="${LD-ld} -m elf32_sparc"
9889 ;;
9890 esac
9891 ;;
9892 *64-bit*)
9893 case $host in
9894 x86_64-*kfreebsd*-gnu)
9895 LD="${LD-ld} -m elf_x86_64_fbsd"
9896 ;;
9897 x86_64-*linux*)
9898 LD="${LD-ld} -m elf_x86_64"
9899 ;;
9900 powerpcle-*linux*)
9901 LD="${LD-ld} -m elf64lppc"
9902 ;;
9903 powerpc-*linux*)
9904 LD="${LD-ld} -m elf64ppc"
9905 ;;
9906 s390*-*linux*|s390*-*tpf*)
9907 LD="${LD-ld} -m elf64_s390"
9908 ;;
9909 sparc*-*linux*)
9910 LD="${LD-ld} -m elf64_sparc"
9911 ;;
9912 esac
9913 ;;
9914 esac
9915 fi
9916 rm -rf conftest*
9917 ;;
9918
9919 *-*-sco3.2v5*)
9920 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9921 SAVE_CFLAGS=$CFLAGS
9922 CFLAGS="$CFLAGS -belf"
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9924 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9925 if ${lt_cv_cc_needs_belf+:} false; then :
9926 $as_echo_n "(cached) " >&6
9927 else
9928 ac_ext=c
9929 ac_cpp='$CPP $CPPFLAGS'
9930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9933
9934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9935 /* end confdefs.h. */
9936
9937 int
9938 main ()
9939 {
9940
9941 ;
9942 return 0;
9943 }
9944 _ACEOF
9945 if ac_fn_c_try_link "$LINENO"; then :
9946 lt_cv_cc_needs_belf=yes
9947 else
9948 lt_cv_cc_needs_belf=no
9949 fi
9950 rm -f core conftest.err conftest.$ac_objext \
9951 conftest$ac_exeext conftest.$ac_ext
9952 ac_ext=c
9953 ac_cpp='$CPP $CPPFLAGS'
9954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9957
9958 fi
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9960 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9961 if test yes != "$lt_cv_cc_needs_belf"; then
9962 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9963 CFLAGS=$SAVE_CFLAGS
9964 fi
9965 ;;
9966 *-*solaris*)
9967 # Find out what ABI is being produced by ac_compile, and set linker
9968 # options accordingly.
9969 echo 'int i;' > conftest.$ac_ext
9970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9971 (eval $ac_compile) 2>&5
9972 ac_status=$?
9973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9974 test $ac_status = 0; }; then
9975 case `/usr/bin/file conftest.o` in
9976 *64-bit*)
9977 case $lt_cv_prog_gnu_ld in
9978 yes*)
9979 case $host in
9980 i?86-*-solaris*|x86_64-*-solaris*)
9981 LD="${LD-ld} -m elf_x86_64"
9982 ;;
9983 sparc*-*-solaris*)
9984 LD="${LD-ld} -m elf64_sparc"
9985 ;;
9986 esac
9987 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9988 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9989 LD=${LD-ld}_sol2
9990 fi
9991 ;;
9992 *)
9993 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9994 LD="${LD-ld} -64"
9995 fi
9996 ;;
9997 esac
9998 ;;
9999 esac
10000 fi
10001 rm -rf conftest*
10002 ;;
10003 esac
10004
10005 need_locks=$enable_libtool_lock
10006
10007 if test -n "$ac_tool_prefix"; then
10008 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10009 set dummy ${ac_tool_prefix}mt; ac_word=$2
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10011 $as_echo_n "checking for $ac_word... " >&6; }
10012 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10013 $as_echo_n "(cached) " >&6
10014 else
10015 if test -n "$MANIFEST_TOOL"; then
10016 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10017 else
10018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10019 for as_dir in $PATH
10020 do
10021 IFS=$as_save_IFS
10022 test -z "$as_dir" && as_dir=.
10023 for ac_exec_ext in '' $ac_executable_extensions; do
10024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10025 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10027 break 2
10028 fi
10029 done
10030 done
10031 IFS=$as_save_IFS
10032
10033 fi
10034 fi
10035 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10036 if test -n "$MANIFEST_TOOL"; then
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10038 $as_echo "$MANIFEST_TOOL" >&6; }
10039 else
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10041 $as_echo "no" >&6; }
10042 fi
10043
10044
10045 fi
10046 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10047 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10048 # Extract the first word of "mt", so it can be a program name with args.
10049 set dummy mt; ac_word=$2
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10051 $as_echo_n "checking for $ac_word... " >&6; }
10052 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10053 $as_echo_n "(cached) " >&6
10054 else
10055 if test -n "$ac_ct_MANIFEST_TOOL"; then
10056 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10057 else
10058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059 for as_dir in $PATH
10060 do
10061 IFS=$as_save_IFS
10062 test -z "$as_dir" && as_dir=.
10063 for ac_exec_ext in '' $ac_executable_extensions; do
10064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10065 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10067 break 2
10068 fi
10069 done
10070 done
10071 IFS=$as_save_IFS
10072
10073 fi
10074 fi
10075 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10076 if test -n "$ac_ct_MANIFEST_TOOL"; then
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10078 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10079 else
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10081 $as_echo "no" >&6; }
10082 fi
10083
10084 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10085 MANIFEST_TOOL=":"
10086 else
10087 case $cross_compiling:$ac_tool_warned in
10088 yes:)
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10091 ac_tool_warned=yes ;;
10092 esac
10093 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10094 fi
10095 else
10096 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10097 fi
10098
10099 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10101 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10102 if ${lt_cv_path_mainfest_tool+:} false; then :
10103 $as_echo_n "(cached) " >&6
10104 else
10105 lt_cv_path_mainfest_tool=no
10106 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10107 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10108 cat conftest.err >&5
10109 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10110 lt_cv_path_mainfest_tool=yes
10111 fi
10112 rm -f conftest*
10113 fi
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10115 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10116 if test yes != "$lt_cv_path_mainfest_tool"; then
10117 MANIFEST_TOOL=:
10118 fi
10119
10120
10121
10122
10123
10124
10125 case $host_os in
10126 rhapsody* | darwin*)
10127 if test -n "$ac_tool_prefix"; then
10128 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10129 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10131 $as_echo_n "checking for $ac_word... " >&6; }
10132 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10133 $as_echo_n "(cached) " >&6
10134 else
10135 if test -n "$DSYMUTIL"; then
10136 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10137 else
10138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10139 for as_dir in $PATH
10140 do
10141 IFS=$as_save_IFS
10142 test -z "$as_dir" && as_dir=.
10143 for ac_exec_ext in '' $ac_executable_extensions; do
10144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10145 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10147 break 2
10148 fi
10149 done
10150 done
10151 IFS=$as_save_IFS
10152
10153 fi
10154 fi
10155 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10156 if test -n "$DSYMUTIL"; then
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10158 $as_echo "$DSYMUTIL" >&6; }
10159 else
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10161 $as_echo "no" >&6; }
10162 fi
10163
10164
10165 fi
10166 if test -z "$ac_cv_prog_DSYMUTIL"; then
10167 ac_ct_DSYMUTIL=$DSYMUTIL
10168 # Extract the first word of "dsymutil", so it can be a program name with args.
10169 set dummy dsymutil; ac_word=$2
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10171 $as_echo_n "checking for $ac_word... " >&6; }
10172 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10173 $as_echo_n "(cached) " >&6
10174 else
10175 if test -n "$ac_ct_DSYMUTIL"; then
10176 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10177 else
10178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10179 for as_dir in $PATH
10180 do
10181 IFS=$as_save_IFS
10182 test -z "$as_dir" && as_dir=.
10183 for ac_exec_ext in '' $ac_executable_extensions; do
10184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10185 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10187 break 2
10188 fi
10189 done
10190 done
10191 IFS=$as_save_IFS
10192
10193 fi
10194 fi
10195 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10196 if test -n "$ac_ct_DSYMUTIL"; then
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10198 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10199 else
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10201 $as_echo "no" >&6; }
10202 fi
10203
10204 if test "x$ac_ct_DSYMUTIL" = x; then
10205 DSYMUTIL=":"
10206 else
10207 case $cross_compiling:$ac_tool_warned in
10208 yes:)
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10211 ac_tool_warned=yes ;;
10212 esac
10213 DSYMUTIL=$ac_ct_DSYMUTIL
10214 fi
10215 else
10216 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10217 fi
10218
10219 if test -n "$ac_tool_prefix"; then
10220 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10221 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10223 $as_echo_n "checking for $ac_word... " >&6; }
10224 if ${ac_cv_prog_NMEDIT+:} false; then :
10225 $as_echo_n "(cached) " >&6
10226 else
10227 if test -n "$NMEDIT"; then
10228 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10229 else
10230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10231 for as_dir in $PATH
10232 do
10233 IFS=$as_save_IFS
10234 test -z "$as_dir" && as_dir=.
10235 for ac_exec_ext in '' $ac_executable_extensions; do
10236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10237 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10239 break 2
10240 fi
10241 done
10242 done
10243 IFS=$as_save_IFS
10244
10245 fi
10246 fi
10247 NMEDIT=$ac_cv_prog_NMEDIT
10248 if test -n "$NMEDIT"; then
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10250 $as_echo "$NMEDIT" >&6; }
10251 else
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10253 $as_echo "no" >&6; }
10254 fi
10255
10256
10257 fi
10258 if test -z "$ac_cv_prog_NMEDIT"; then
10259 ac_ct_NMEDIT=$NMEDIT
10260 # Extract the first word of "nmedit", so it can be a program name with args.
10261 set dummy nmedit; ac_word=$2
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10263 $as_echo_n "checking for $ac_word... " >&6; }
10264 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10265 $as_echo_n "(cached) " >&6
10266 else
10267 if test -n "$ac_ct_NMEDIT"; then
10268 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10269 else
10270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10271 for as_dir in $PATH
10272 do
10273 IFS=$as_save_IFS
10274 test -z "$as_dir" && as_dir=.
10275 for ac_exec_ext in '' $ac_executable_extensions; do
10276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10277 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10279 break 2
10280 fi
10281 done
10282 done
10283 IFS=$as_save_IFS
10284
10285 fi
10286 fi
10287 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10288 if test -n "$ac_ct_NMEDIT"; then
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10290 $as_echo "$ac_ct_NMEDIT" >&6; }
10291 else
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10293 $as_echo "no" >&6; }
10294 fi
10295
10296 if test "x$ac_ct_NMEDIT" = x; then
10297 NMEDIT=":"
10298 else
10299 case $cross_compiling:$ac_tool_warned in
10300 yes:)
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10303 ac_tool_warned=yes ;;
10304 esac
10305 NMEDIT=$ac_ct_NMEDIT
10306 fi
10307 else
10308 NMEDIT="$ac_cv_prog_NMEDIT"
10309 fi
10310
10311 if test -n "$ac_tool_prefix"; then
10312 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10313 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10315 $as_echo_n "checking for $ac_word... " >&6; }
10316 if ${ac_cv_prog_LIPO+:} false; then :
10317 $as_echo_n "(cached) " >&6
10318 else
10319 if test -n "$LIPO"; then
10320 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10321 else
10322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10323 for as_dir in $PATH
10324 do
10325 IFS=$as_save_IFS
10326 test -z "$as_dir" && as_dir=.
10327 for ac_exec_ext in '' $ac_executable_extensions; do
10328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10329 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10331 break 2
10332 fi
10333 done
10334 done
10335 IFS=$as_save_IFS
10336
10337 fi
10338 fi
10339 LIPO=$ac_cv_prog_LIPO
10340 if test -n "$LIPO"; then
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10342 $as_echo "$LIPO" >&6; }
10343 else
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10345 $as_echo "no" >&6; }
10346 fi
10347
10348
10349 fi
10350 if test -z "$ac_cv_prog_LIPO"; then
10351 ac_ct_LIPO=$LIPO
10352 # Extract the first word of "lipo", so it can be a program name with args.
10353 set dummy lipo; ac_word=$2
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10355 $as_echo_n "checking for $ac_word... " >&6; }
10356 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10357 $as_echo_n "(cached) " >&6
10358 else
10359 if test -n "$ac_ct_LIPO"; then
10360 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10361 else
10362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10363 for as_dir in $PATH
10364 do
10365 IFS=$as_save_IFS
10366 test -z "$as_dir" && as_dir=.
10367 for ac_exec_ext in '' $ac_executable_extensions; do
10368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10369 ac_cv_prog_ac_ct_LIPO="lipo"
10370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10371 break 2
10372 fi
10373 done
10374 done
10375 IFS=$as_save_IFS
10376
10377 fi
10378 fi
10379 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10380 if test -n "$ac_ct_LIPO"; then
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10382 $as_echo "$ac_ct_LIPO" >&6; }
10383 else
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10385 $as_echo "no" >&6; }
10386 fi
10387
10388 if test "x$ac_ct_LIPO" = x; then
10389 LIPO=":"
10390 else
10391 case $cross_compiling:$ac_tool_warned in
10392 yes:)
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10395 ac_tool_warned=yes ;;
10396 esac
10397 LIPO=$ac_ct_LIPO
10398 fi
10399 else
10400 LIPO="$ac_cv_prog_LIPO"
10401 fi
10402
10403 if test -n "$ac_tool_prefix"; then
10404 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10405 set dummy ${ac_tool_prefix}otool; ac_word=$2
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10407 $as_echo_n "checking for $ac_word... " >&6; }
10408 if ${ac_cv_prog_OTOOL+:} false; then :
10409 $as_echo_n "(cached) " >&6
10410 else
10411 if test -n "$OTOOL"; then
10412 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10413 else
10414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10415 for as_dir in $PATH
10416 do
10417 IFS=$as_save_IFS
10418 test -z "$as_dir" && as_dir=.
10419 for ac_exec_ext in '' $ac_executable_extensions; do
10420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10421 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10423 break 2
10424 fi
10425 done
10426 done
10427 IFS=$as_save_IFS
10428
10429 fi
10430 fi
10431 OTOOL=$ac_cv_prog_OTOOL
10432 if test -n "$OTOOL"; then
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10434 $as_echo "$OTOOL" >&6; }
10435 else
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10437 $as_echo "no" >&6; }
10438 fi
10439
10440
10441 fi
10442 if test -z "$ac_cv_prog_OTOOL"; then
10443 ac_ct_OTOOL=$OTOOL
10444 # Extract the first word of "otool", so it can be a program name with args.
10445 set dummy otool; ac_word=$2
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10447 $as_echo_n "checking for $ac_word... " >&6; }
10448 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10449 $as_echo_n "(cached) " >&6
10450 else
10451 if test -n "$ac_ct_OTOOL"; then
10452 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10453 else
10454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10455 for as_dir in $PATH
10456 do
10457 IFS=$as_save_IFS
10458 test -z "$as_dir" && as_dir=.
10459 for ac_exec_ext in '' $ac_executable_extensions; do
10460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10461 ac_cv_prog_ac_ct_OTOOL="otool"
10462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10463 break 2
10464 fi
10465 done
10466 done
10467 IFS=$as_save_IFS
10468
10469 fi
10470 fi
10471 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10472 if test -n "$ac_ct_OTOOL"; then
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10474 $as_echo "$ac_ct_OTOOL" >&6; }
10475 else
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10477 $as_echo "no" >&6; }
10478 fi
10479
10480 if test "x$ac_ct_OTOOL" = x; then
10481 OTOOL=":"
10482 else
10483 case $cross_compiling:$ac_tool_warned in
10484 yes:)
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10487 ac_tool_warned=yes ;;
10488 esac
10489 OTOOL=$ac_ct_OTOOL
10490 fi
10491 else
10492 OTOOL="$ac_cv_prog_OTOOL"
10493 fi
10494
10495 if test -n "$ac_tool_prefix"; then
10496 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10497 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10499 $as_echo_n "checking for $ac_word... " >&6; }
10500 if ${ac_cv_prog_OTOOL64+:} false; then :
10501 $as_echo_n "(cached) " >&6
10502 else
10503 if test -n "$OTOOL64"; then
10504 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10505 else
10506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10507 for as_dir in $PATH
10508 do
10509 IFS=$as_save_IFS
10510 test -z "$as_dir" && as_dir=.
10511 for ac_exec_ext in '' $ac_executable_extensions; do
10512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10513 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10515 break 2
10516 fi
10517 done
10518 done
10519 IFS=$as_save_IFS
10520
10521 fi
10522 fi
10523 OTOOL64=$ac_cv_prog_OTOOL64
10524 if test -n "$OTOOL64"; then
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10526 $as_echo "$OTOOL64" >&6; }
10527 else
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10529 $as_echo "no" >&6; }
10530 fi
10531
10532
10533 fi
10534 if test -z "$ac_cv_prog_OTOOL64"; then
10535 ac_ct_OTOOL64=$OTOOL64
10536 # Extract the first word of "otool64", so it can be a program name with args.
10537 set dummy otool64; ac_word=$2
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10539 $as_echo_n "checking for $ac_word... " >&6; }
10540 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10541 $as_echo_n "(cached) " >&6
10542 else
10543 if test -n "$ac_ct_OTOOL64"; then
10544 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10545 else
10546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10547 for as_dir in $PATH
10548 do
10549 IFS=$as_save_IFS
10550 test -z "$as_dir" && as_dir=.
10551 for ac_exec_ext in '' $ac_executable_extensions; do
10552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10553 ac_cv_prog_ac_ct_OTOOL64="otool64"
10554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10555 break 2
10556 fi
10557 done
10558 done
10559 IFS=$as_save_IFS
10560
10561 fi
10562 fi
10563 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10564 if test -n "$ac_ct_OTOOL64"; then
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10566 $as_echo "$ac_ct_OTOOL64" >&6; }
10567 else
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10569 $as_echo "no" >&6; }
10570 fi
10571
10572 if test "x$ac_ct_OTOOL64" = x; then
10573 OTOOL64=":"
10574 else
10575 case $cross_compiling:$ac_tool_warned in
10576 yes:)
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10579 ac_tool_warned=yes ;;
10580 esac
10581 OTOOL64=$ac_ct_OTOOL64
10582 fi
10583 else
10584 OTOOL64="$ac_cv_prog_OTOOL64"
10585 fi
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10614 $as_echo_n "checking for -single_module linker flag... " >&6; }
10615 if ${lt_cv_apple_cc_single_mod+:} false; then :
10616 $as_echo_n "(cached) " >&6
10617 else
10618 lt_cv_apple_cc_single_mod=no
10619 if test -z "$LT_MULTI_MODULE"; then
10620 # By default we will add the -single_module flag. You can override
10621 # by either setting the environment variable LT_MULTI_MODULE
10622 # non-empty at configure time, or by adding -multi_module to the
10623 # link flags.
10624 rm -rf libconftest.dylib*
10625 echo "int foo(void){return 1;}" > conftest.c
10626 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10627 -dynamiclib -Wl,-single_module conftest.c" >&5
10628 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10629 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10630 _lt_result=$?
10631 # If there is a non-empty error log, and "single_module"
10632 # appears in it, assume the flag caused a linker warning
10633 if test -s conftest.err && $GREP single_module conftest.err; then
10634 cat conftest.err >&5
10635 # Otherwise, if the output was created with a 0 exit code from
10636 # the compiler, it worked.
10637 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10638 lt_cv_apple_cc_single_mod=yes
10639 else
10640 cat conftest.err >&5
10641 fi
10642 rm -rf libconftest.dylib*
10643 rm -f conftest.*
10644 fi
10645 fi
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10647 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10648
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10650 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10651 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10652 $as_echo_n "(cached) " >&6
10653 else
10654 lt_cv_ld_exported_symbols_list=no
10655 save_LDFLAGS=$LDFLAGS
10656 echo "_main" > conftest.sym
10657 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10659 /* end confdefs.h. */
10660
10661 int
10662 main ()
10663 {
10664
10665 ;
10666 return 0;
10667 }
10668 _ACEOF
10669 if ac_fn_c_try_link "$LINENO"; then :
10670 lt_cv_ld_exported_symbols_list=yes
10671 else
10672 lt_cv_ld_exported_symbols_list=no
10673 fi
10674 rm -f core conftest.err conftest.$ac_objext \
10675 conftest$ac_exeext conftest.$ac_ext
10676 LDFLAGS=$save_LDFLAGS
10677
10678 fi
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10680 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10681
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10683 $as_echo_n "checking for -force_load linker flag... " >&6; }
10684 if ${lt_cv_ld_force_load+:} false; then :
10685 $as_echo_n "(cached) " >&6
10686 else
10687 lt_cv_ld_force_load=no
10688 cat > conftest.c << _LT_EOF
10689 int forced_loaded() { return 2;}
10690 _LT_EOF
10691 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10692 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10693 echo "$AR cru libconftest.a conftest.o" >&5
10694 $AR cru libconftest.a conftest.o 2>&5
10695 echo "$RANLIB libconftest.a" >&5
10696 $RANLIB libconftest.a 2>&5
10697 cat > conftest.c << _LT_EOF
10698 int main() { return 0;}
10699 _LT_EOF
10700 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10701 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10702 _lt_result=$?
10703 if test -s conftest.err && $GREP force_load conftest.err; then
10704 cat conftest.err >&5
10705 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10706 lt_cv_ld_force_load=yes
10707 else
10708 cat conftest.err >&5
10709 fi
10710 rm -f conftest.err libconftest.a conftest conftest.c
10711 rm -rf conftest.dSYM
10712
10713 fi
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10715 $as_echo "$lt_cv_ld_force_load" >&6; }
10716 case $host_os in
10717 rhapsody* | darwin1.[012])
10718 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10719 darwin1.*)
10720 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10721 darwin*) # darwin 5.x on
10722 # if running on 10.5 or later, the deployment target defaults
10723 # to the OS version, if on x86, and 10.4, the deployment
10724 # target defaults to 10.4. Don't you love it?
10725 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10726 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10727 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10728 10.[012][,.]*)
10729 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10730 10.*)
10731 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10732 esac
10733 ;;
10734 esac
10735 if test yes = "$lt_cv_apple_cc_single_mod"; then
10736 _lt_dar_single_mod='$single_module'
10737 fi
10738 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10739 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10740 else
10741 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10742 fi
10743 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10744 _lt_dsymutil='~$DSYMUTIL $lib || :'
10745 else
10746 _lt_dsymutil=
10747 fi
10748 ;;
10749 esac
10750
10751 # func_munge_path_list VARIABLE PATH
10752 # -----------------------------------
10753 # VARIABLE is name of variable containing _space_ separated list of
10754 # directories to be munged by the contents of PATH, which is string
10755 # having a format:
10756 # "DIR[:DIR]:"
10757 # string "DIR[ DIR]" will be prepended to VARIABLE
10758 # ":DIR[:DIR]"
10759 # string "DIR[ DIR]" will be appended to VARIABLE
10760 # "DIRP[:DIRP]::[DIRA:]DIRA"
10761 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10762 # "DIRA[ DIRA]" will be appended to VARIABLE
10763 # "DIR[:DIR]"
10764 # VARIABLE will be replaced by "DIR[ DIR]"
10765 func_munge_path_list ()
10766 {
10767 case x$2 in
10768 x)
10769 ;;
10770 *:)
10771 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10772 ;;
10773 x:*)
10774 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10775 ;;
10776 *::*)
10777 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10778 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10779 ;;
10780 *)
10781 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10782 ;;
10783 esac
10784 }
10785
10786 ac_ext=c
10787 ac_cpp='$CPP $CPPFLAGS'
10788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
10792 $as_echo_n "checking how to run the C preprocessor... " >&6; }
10793 # On Suns, sometimes $CPP names a directory.
10794 if test -n "$CPP" && test -d "$CPP"; then
10795 CPP=
10796 fi
10797 if test -z "$CPP"; then
10798 if ${ac_cv_prog_CPP+:} false; then :
10799 $as_echo_n "(cached) " >&6
10800 else
10801 # Double quotes because CPP needs to be expanded
10802 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10803 do
10804 ac_preproc_ok=false
10805 for ac_c_preproc_warn_flag in '' yes
10806 do
10807 # Use a header file that comes with gcc, so configuring glibc
10808 # with a fresh cross-compiler works.
10809 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10810 # <limits.h> exists even on freestanding compilers.
10811 # On the NeXT, cc -E runs the code through the compiler's parser,
10812 # not just through cpp. "Syntax error" is here to catch this case.
10813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814 /* end confdefs.h. */
10815 #ifdef __STDC__
10816 # include <limits.h>
10817 #else
10818 # include <assert.h>
10819 #endif
10820 Syntax error
10821 _ACEOF
10822 if ac_fn_c_try_cpp "$LINENO"; then :
10823
10824 else
10825 # Broken: fails on valid input.
10826 continue
10827 fi
10828 rm -f conftest.err conftest.i conftest.$ac_ext
10829
10830 # OK, works on sane cases. Now check whether nonexistent headers
10831 # can be detected and how.
10832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10833 /* end confdefs.h. */
10834 #include <ac_nonexistent.h>
10835 _ACEOF
10836 if ac_fn_c_try_cpp "$LINENO"; then :
10837 # Broken: success on invalid input.
10838 continue
10839 else
10840 # Passes both tests.
10841 ac_preproc_ok=:
10842 break
10843 fi
10844 rm -f conftest.err conftest.i conftest.$ac_ext
10845
10846 done
10847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10848 rm -f conftest.i conftest.err conftest.$ac_ext
10849 if $ac_preproc_ok; then :
10850 break
10851 fi
10852
10853 done
10854 ac_cv_prog_CPP=$CPP
10855
10856 fi
10857 CPP=$ac_cv_prog_CPP
10858 else
10859 ac_cv_prog_CPP=$CPP
10860 fi
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
10862 $as_echo "$CPP" >&6; }
10863 ac_preproc_ok=false
10864 for ac_c_preproc_warn_flag in '' yes
10865 do
10866 # Use a header file that comes with gcc, so configuring glibc
10867 # with a fresh cross-compiler works.
10868 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10869 # <limits.h> exists even on freestanding compilers.
10870 # On the NeXT, cc -E runs the code through the compiler's parser,
10871 # not just through cpp. "Syntax error" is here to catch this case.
10872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10873 /* end confdefs.h. */
10874 #ifdef __STDC__
10875 # include <limits.h>
10876 #else
10877 # include <assert.h>
10878 #endif
10879 Syntax error
10880 _ACEOF
10881 if ac_fn_c_try_cpp "$LINENO"; then :
10882
10883 else
10884 # Broken: fails on valid input.
10885 continue
10886 fi
10887 rm -f conftest.err conftest.i conftest.$ac_ext
10888
10889 # OK, works on sane cases. Now check whether nonexistent headers
10890 # can be detected and how.
10891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10892 /* end confdefs.h. */
10893 #include <ac_nonexistent.h>
10894 _ACEOF
10895 if ac_fn_c_try_cpp "$LINENO"; then :
10896 # Broken: success on invalid input.
10897 continue
10898 else
10899 # Passes both tests.
10900 ac_preproc_ok=:
10901 break
10902 fi
10903 rm -f conftest.err conftest.i conftest.$ac_ext
10904
10905 done
10906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10907 rm -f conftest.i conftest.err conftest.$ac_ext
10908 if $ac_preproc_ok; then :
10909
10910 else
10911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10913 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
10914 See \`config.log' for more details" "$LINENO" 5; }
10915 fi
10916
10917 ac_ext=c
10918 ac_cpp='$CPP $CPPFLAGS'
10919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10922
10923
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10925 $as_echo_n "checking for ANSI C header files... " >&6; }
10926 if ${ac_cv_header_stdc+:} false; then :
10927 $as_echo_n "(cached) " >&6
10928 else
10929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10930 /* end confdefs.h. */
10931 #include <stdlib.h>
10932 #include <stdarg.h>
10933 #include <string.h>
10934 #include <float.h>
10935
10936 int
10937 main ()
10938 {
10939
10940 ;
10941 return 0;
10942 }
10943 _ACEOF
10944 if ac_fn_c_try_compile "$LINENO"; then :
10945 ac_cv_header_stdc=yes
10946 else
10947 ac_cv_header_stdc=no
10948 fi
10949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10950
10951 if test $ac_cv_header_stdc = yes; then
10952 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10954 /* end confdefs.h. */
10955 #include <string.h>
10956
10957 _ACEOF
10958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10959 $EGREP "memchr" >/dev/null 2>&1; then :
10960
10961 else
10962 ac_cv_header_stdc=no
10963 fi
10964 rm -f conftest*
10965
10966 fi
10967
10968 if test $ac_cv_header_stdc = yes; then
10969 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10971 /* end confdefs.h. */
10972 #include <stdlib.h>
10973
10974 _ACEOF
10975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10976 $EGREP "free" >/dev/null 2>&1; then :
10977
10978 else
10979 ac_cv_header_stdc=no
10980 fi
10981 rm -f conftest*
10982
10983 fi
10984
10985 if test $ac_cv_header_stdc = yes; then
10986 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10987 if test "$cross_compiling" = yes; then :
10988 :
10989 else
10990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10991 /* end confdefs.h. */
10992 #include <ctype.h>
10993 #include <stdlib.h>
10994 #if ((' ' & 0x0FF) == 0x020)
10995 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10996 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10997 #else
10998 # define ISLOWER(c) \
10999 (('a' <= (c) && (c) <= 'i') \
11000 || ('j' <= (c) && (c) <= 'r') \
11001 || ('s' <= (c) && (c) <= 'z'))
11002 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11003 #endif
11004
11005 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11006 int
11007 main ()
11008 {
11009 int i;
11010 for (i = 0; i < 256; i++)
11011 if (XOR (islower (i), ISLOWER (i))
11012 || toupper (i) != TOUPPER (i))
11013 return 2;
11014 return 0;
11015 }
11016 _ACEOF
11017 if ac_fn_c_try_run "$LINENO"; then :
11018
11019 else
11020 ac_cv_header_stdc=no
11021 fi
11022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11023 conftest.$ac_objext conftest.beam conftest.$ac_ext
11024 fi
11025
11026 fi
11027 fi
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11029 $as_echo "$ac_cv_header_stdc" >&6; }
11030 if test $ac_cv_header_stdc = yes; then
11031
11032 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11033
11034 fi
11035
11036 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
11037 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11038 inttypes.h stdint.h unistd.h
11039 do :
11040 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11041 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11042 "
11043 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11044 cat >>confdefs.h <<_ACEOF
11045 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11046 _ACEOF
11047
11048 fi
11049
11050 done
11051
11052
11053 for ac_header in dlfcn.h
11054 do :
11055 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11056 "
11057 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11058 cat >>confdefs.h <<_ACEOF
11059 #define HAVE_DLFCN_H 1
11060 _ACEOF
11061
11062 fi
11063
11064 done
11065
11066
11067
11068 func_stripname_cnf ()
11069 {
11070 case $2 in
11071 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
11072 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
11073 esac
11074 } # func_stripname_cnf
11075
11076
11077
11078
11079
11080 # Set options
11081
11082
11083
11084 enable_dlopen=no
11085
11086
11087 enable_win32_dll=no
11088
11089
11090 # Check whether --enable-shared was given.
11091 if test "${enable_shared+set}" = set; then :
11092 enableval=$enable_shared; p=${PACKAGE-default}
11093 case $enableval in
11094 yes) enable_shared=yes ;;
11095 no) enable_shared=no ;;
11096 *)
11097 enable_shared=no
11098 # Look at the argument we got. We use all the common list separators.
11099 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11100 for pkg in $enableval; do
11101 IFS=$lt_save_ifs
11102 if test "X$pkg" = "X$p"; then
11103 enable_shared=yes
11104 fi
11105 done
11106 IFS=$lt_save_ifs
11107 ;;
11108 esac
11109 else
11110 enable_shared=yes
11111 fi
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121 # Check whether --enable-static was given.
11122 if test "${enable_static+set}" = set; then :
11123 enableval=$enable_static; p=${PACKAGE-default}
11124 case $enableval in
11125 yes) enable_static=yes ;;
11126 no) enable_static=no ;;
11127 *)
11128 enable_static=no
11129 # Look at the argument we got. We use all the common list separators.
11130 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11131 for pkg in $enableval; do
11132 IFS=$lt_save_ifs
11133 if test "X$pkg" = "X$p"; then
11134 enable_static=yes
11135 fi
11136 done
11137 IFS=$lt_save_ifs
11138 ;;
11139 esac
11140 else
11141 enable_static=yes
11142 fi
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153 # Check whether --with-pic was given.
11154 if test "${with_pic+set}" = set; then :
11155 withval=$with_pic; lt_p=${PACKAGE-default}
11156 case $withval in
11157 yes|no) pic_mode=$withval ;;
11158 *)
11159 pic_mode=default
11160 # Look at the argument we got. We use all the common list separators.
11161 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11162 for lt_pkg in $withval; do
11163 IFS=$lt_save_ifs
11164 if test "X$lt_pkg" = "X$lt_p"; then
11165 pic_mode=yes
11166 fi
11167 done
11168 IFS=$lt_save_ifs
11169 ;;
11170 esac
11171 else
11172 pic_mode=default
11173 fi
11174
11175
11176
11177
11178
11179
11180
11181
11182 # Check whether --enable-fast-install was given.
11183 if test "${enable_fast_install+set}" = set; then :
11184 enableval=$enable_fast_install; p=${PACKAGE-default}
11185 case $enableval in
11186 yes) enable_fast_install=yes ;;
11187 no) enable_fast_install=no ;;
11188 *)
11189 enable_fast_install=no
11190 # Look at the argument we got. We use all the common list separators.
11191 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11192 for pkg in $enableval; do
11193 IFS=$lt_save_ifs
11194 if test "X$pkg" = "X$p"; then
11195 enable_fast_install=yes
11196 fi
11197 done
11198 IFS=$lt_save_ifs
11199 ;;
11200 esac
11201 else
11202 enable_fast_install=yes
11203 fi
11204
11205
11206
11207
11208
11209
11210
11211
11212 shared_archive_member_spec=
11213 case $host,$enable_shared in
11214 power*-*-aix[5-9]*,yes)
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11216 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11217
11218 # Check whether --with-aix-soname was given.
11219 if test "${with_aix_soname+set}" = set; then :
11220 withval=$with_aix_soname; case $withval in
11221 aix|svr4|both)
11222 ;;
11223 *)
11224 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11225 ;;
11226 esac
11227 lt_cv_with_aix_soname=$with_aix_soname
11228 else
11229 if ${lt_cv_with_aix_soname+:} false; then :
11230 $as_echo_n "(cached) " >&6
11231 else
11232 lt_cv_with_aix_soname=aix
11233 fi
11234
11235 with_aix_soname=$lt_cv_with_aix_soname
11236 fi
11237
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11239 $as_echo "$with_aix_soname" >&6; }
11240 if test aix != "$with_aix_soname"; then
11241 # For the AIX way of multilib, we name the shared archive member
11242 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11243 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11244 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11245 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11246 if test 64 = "${OBJECT_MODE-32}"; then
11247 shared_archive_member_spec=shr_64
11248 else
11249 shared_archive_member_spec=shr
11250 fi
11251 fi
11252 ;;
11253 *)
11254 with_aix_soname=aix
11255 ;;
11256 esac
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267 # This can be used to rebuild libtool when needed
11268 LIBTOOL_DEPS=$ltmain
11269
11270 # Always use our own libtool.
11271 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302 test -z "$LN_S" && LN_S="ln -s"
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317 if test -n "${ZSH_VERSION+set}"; then
11318 setopt NO_GLOB_SUBST
11319 fi
11320
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11322 $as_echo_n "checking for objdir... " >&6; }
11323 if ${lt_cv_objdir+:} false; then :
11324 $as_echo_n "(cached) " >&6
11325 else
11326 rm -f .libs 2>/dev/null
11327 mkdir .libs 2>/dev/null
11328 if test -d .libs; then
11329 lt_cv_objdir=.libs
11330 else
11331 # MS-DOS does not allow filenames that begin with a dot.
11332 lt_cv_objdir=_libs
11333 fi
11334 rmdir .libs 2>/dev/null
11335 fi
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11337 $as_echo "$lt_cv_objdir" >&6; }
11338 objdir=$lt_cv_objdir
11339
11340
11341
11342
11343
11344 cat >>confdefs.h <<_ACEOF
11345 #define LT_OBJDIR "$lt_cv_objdir/"
11346 _ACEOF
11347
11348
11349
11350
11351 case $host_os in
11352 aix3*)
11353 # AIX sometimes has problems with the GCC collect2 program. For some
11354 # reason, if we set the COLLECT_NAMES environment variable, the problems
11355 # vanish in a puff of smoke.
11356 if test set != "${COLLECT_NAMES+set}"; then
11357 COLLECT_NAMES=
11358 export COLLECT_NAMES
11359 fi
11360 ;;
11361 esac
11362
11363 # Global variables:
11364 ofile=libtool
11365 can_build_shared=yes
11366
11367 # All known linkers require a '.a' archive for static linking (except MSVC,
11368 # which needs '.lib').
11369 libext=a
11370
11371 with_gnu_ld=$lt_cv_prog_gnu_ld
11372
11373 old_CC=$CC
11374 old_CFLAGS=$CFLAGS
11375
11376 # Set sane defaults for various variables
11377 test -z "$CC" && CC=cc
11378 test -z "$LTCC" && LTCC=$CC
11379 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11380 test -z "$LD" && LD=ld
11381 test -z "$ac_objext" && ac_objext=o
11382
11383 func_cc_basename $compiler
11384 cc_basename=$func_cc_basename_result
11385
11386
11387 # Only perform the check for file, if the check method requires it
11388 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11389 case $deplibs_check_method in
11390 file_magic*)
11391 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11393 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11394 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11395 $as_echo_n "(cached) " >&6
11396 else
11397 case $MAGIC_CMD in
11398 [\\/*] | ?:[\\/]*)
11399 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11400 ;;
11401 *)
11402 lt_save_MAGIC_CMD=$MAGIC_CMD
11403 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11404 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11405 for ac_dir in $ac_dummy; do
11406 IFS=$lt_save_ifs
11407 test -z "$ac_dir" && ac_dir=.
11408 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11409 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11410 if test -n "$file_magic_test_file"; then
11411 case $deplibs_check_method in
11412 "file_magic "*)
11413 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11414 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11415 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11416 $EGREP "$file_magic_regex" > /dev/null; then
11417 :
11418 else
11419 cat <<_LT_EOF 1>&2
11420
11421 *** Warning: the command libtool uses to detect shared libraries,
11422 *** $file_magic_cmd, produces output that libtool cannot recognize.
11423 *** The result is that libtool may fail to recognize shared libraries
11424 *** as such. This will affect the creation of libtool libraries that
11425 *** depend on shared libraries, but programs linked with such libtool
11426 *** libraries will work regardless of this problem. Nevertheless, you
11427 *** may want to report the problem to your system manager and/or to
11428 *** [email protected]
11429
11430 _LT_EOF
11431 fi ;;
11432 esac
11433 fi
11434 break
11435 fi
11436 done
11437 IFS=$lt_save_ifs
11438 MAGIC_CMD=$lt_save_MAGIC_CMD
11439 ;;
11440 esac
11441 fi
11442
11443 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11444 if test -n "$MAGIC_CMD"; then
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11446 $as_echo "$MAGIC_CMD" >&6; }
11447 else
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11449 $as_echo "no" >&6; }
11450 fi
11451
11452
11453
11454
11455
11456 if test -z "$lt_cv_path_MAGIC_CMD"; then
11457 if test -n "$ac_tool_prefix"; then
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11459 $as_echo_n "checking for file... " >&6; }
11460 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11461 $as_echo_n "(cached) " >&6
11462 else
11463 case $MAGIC_CMD in
11464 [\\/*] | ?:[\\/]*)
11465 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11466 ;;
11467 *)
11468 lt_save_MAGIC_CMD=$MAGIC_CMD
11469 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11470 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11471 for ac_dir in $ac_dummy; do
11472 IFS=$lt_save_ifs
11473 test -z "$ac_dir" && ac_dir=.
11474 if test -f "$ac_dir/file"; then
11475 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11476 if test -n "$file_magic_test_file"; then
11477 case $deplibs_check_method in
11478 "file_magic "*)
11479 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11480 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11481 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11482 $EGREP "$file_magic_regex" > /dev/null; then
11483 :
11484 else
11485 cat <<_LT_EOF 1>&2
11486
11487 *** Warning: the command libtool uses to detect shared libraries,
11488 *** $file_magic_cmd, produces output that libtool cannot recognize.
11489 *** The result is that libtool may fail to recognize shared libraries
11490 *** as such. This will affect the creation of libtool libraries that
11491 *** depend on shared libraries, but programs linked with such libtool
11492 *** libraries will work regardless of this problem. Nevertheless, you
11493 *** may want to report the problem to your system manager and/or to
11494 *** [email protected]
11495
11496 _LT_EOF
11497 fi ;;
11498 esac
11499 fi
11500 break
11501 fi
11502 done
11503 IFS=$lt_save_ifs
11504 MAGIC_CMD=$lt_save_MAGIC_CMD
11505 ;;
11506 esac
11507 fi
11508
11509 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11510 if test -n "$MAGIC_CMD"; then
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11512 $as_echo "$MAGIC_CMD" >&6; }
11513 else
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11515 $as_echo "no" >&6; }
11516 fi
11517
11518
11519 else
11520 MAGIC_CMD=:
11521 fi
11522 fi
11523
11524 fi
11525 ;;
11526 esac
11527
11528 # Use C for the default configuration in the libtool script
11529
11530 lt_save_CC=$CC
11531 ac_ext=c
11532 ac_cpp='$CPP $CPPFLAGS'
11533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11536
11537
11538 # Source file extension for C test sources.
11539 ac_ext=c
11540
11541 # Object file extension for compiled C test sources.
11542 objext=o
11543 objext=$objext
11544
11545 # Code to be used in simple compile tests
11546 lt_simple_compile_test_code="int some_variable = 0;"
11547
11548 # Code to be used in simple link tests
11549 lt_simple_link_test_code='int main(){return(0);}'
11550
11551
11552
11553
11554
11555
11556
11557 # If no C compiler was specified, use CC.
11558 LTCC=${LTCC-"$CC"}
11559
11560 # If no C compiler flags were specified, use CFLAGS.
11561 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11562
11563 # Allow CC to be a program name with arguments.
11564 compiler=$CC
11565
11566 # Save the default compiler, since it gets overwritten when the other
11567 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11568 compiler_DEFAULT=$CC
11569
11570 # save warnings/boilerplate of simple test code
11571 ac_outfile=conftest.$ac_objext
11572 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11573 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11574 _lt_compiler_boilerplate=`cat conftest.err`
11575 $RM conftest*
11576
11577 ac_outfile=conftest.$ac_objext
11578 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11579 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11580 _lt_linker_boilerplate=`cat conftest.err`
11581 $RM -r conftest*
11582
11583
11584 ## CAVEAT EMPTOR:
11585 ## There is no encapsulation within the following macros, do not change
11586 ## the running order or otherwise move them around unless you know exactly
11587 ## what you are doing...
11588 if test -n "$compiler"; then
11589
11590 lt_prog_compiler_no_builtin_flag=
11591
11592 if test yes = "$GCC"; then
11593 case $cc_basename in
11594 nvcc*)
11595 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11596 *)
11597 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11598 esac
11599
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11601 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11602 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11603 $as_echo_n "(cached) " >&6
11604 else
11605 lt_cv_prog_compiler_rtti_exceptions=no
11606 ac_outfile=conftest.$ac_objext
11607 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11608 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11609 # Insert the option either (1) after the last *FLAGS variable, or
11610 # (2) before a word containing "conftest.", or (3) at the end.
11611 # Note that $ac_compile itself does not contain backslashes and begins
11612 # with a dollar sign (not a hyphen), so the echo should work correctly.
11613 # The option is referenced via a variable to avoid confusing sed.
11614 lt_compile=`echo "$ac_compile" | $SED \
11615 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11616 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11617 -e 's:$: $lt_compiler_flag:'`
11618 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11619 (eval "$lt_compile" 2>conftest.err)
11620 ac_status=$?
11621 cat conftest.err >&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 if (exit $ac_status) && test -s "$ac_outfile"; then
11624 # The compiler can only warn and ignore the option if not recognized
11625 # So say no if there are warnings other than the usual output.
11626 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11627 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11628 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11629 lt_cv_prog_compiler_rtti_exceptions=yes
11630 fi
11631 fi
11632 $RM conftest*
11633
11634 fi
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11636 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11637
11638 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11639 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11640 else
11641 :
11642 fi
11643
11644 fi
11645
11646
11647
11648
11649
11650
11651 lt_prog_compiler_wl=
11652 lt_prog_compiler_pic=
11653 lt_prog_compiler_static=
11654
11655
11656 if test yes = "$GCC"; then
11657 lt_prog_compiler_wl='-Wl,'
11658 lt_prog_compiler_static='-static'
11659
11660 case $host_os in
11661 aix*)
11662 # All AIX code is PIC.
11663 if test ia64 = "$host_cpu"; then
11664 # AIX 5 now supports IA64 processor
11665 lt_prog_compiler_static='-Bstatic'
11666 fi
11667 lt_prog_compiler_pic='-fPIC'
11668 ;;
11669
11670 amigaos*)
11671 case $host_cpu in
11672 powerpc)
11673 # see comment about AmigaOS4 .so support
11674 lt_prog_compiler_pic='-fPIC'
11675 ;;
11676 m68k)
11677 # FIXME: we need at least 68020 code to build shared libraries, but
11678 # adding the '-m68020' flag to GCC prevents building anything better,
11679 # like '-m68040'.
11680 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11681 ;;
11682 esac
11683 ;;
11684
11685 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11686 # PIC is the default for these OSes.
11687 ;;
11688
11689 mingw* | cygwin* | pw32* | os2* | cegcc*)
11690 # This hack is so that the source file can tell whether it is being
11691 # built for inclusion in a dll (and should export symbols for example).
11692 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11693 # (--disable-auto-import) libraries
11694 lt_prog_compiler_pic='-DDLL_EXPORT'
11695 case $host_os in
11696 os2*)
11697 lt_prog_compiler_static='$wl-static'
11698 ;;
11699 esac
11700 ;;
11701
11702 darwin* | rhapsody*)
11703 # PIC is the default on this platform
11704 # Common symbols not allowed in MH_DYLIB files
11705 lt_prog_compiler_pic='-fno-common'
11706 ;;
11707
11708 haiku*)
11709 # PIC is the default for Haiku.
11710 # The "-static" flag exists, but is broken.
11711 lt_prog_compiler_static=
11712 ;;
11713
11714 hpux*)
11715 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11716 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11717 # sets the default TLS model and affects inlining.
11718 case $host_cpu in
11719 hppa*64*)
11720 # +Z the default
11721 ;;
11722 *)
11723 lt_prog_compiler_pic='-fPIC'
11724 ;;
11725 esac
11726 ;;
11727
11728 interix[3-9]*)
11729 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11730 # Instead, we relocate shared libraries at runtime.
11731 ;;
11732
11733 msdosdjgpp*)
11734 # Just because we use GCC doesn't mean we suddenly get shared libraries
11735 # on systems that don't support them.
11736 lt_prog_compiler_can_build_shared=no
11737 enable_shared=no
11738 ;;
11739
11740 *nto* | *qnx*)
11741 # QNX uses GNU C++, but need to define -shared option too, otherwise
11742 # it will coredump.
11743 lt_prog_compiler_pic='-fPIC -shared'
11744 ;;
11745
11746 sysv4*MP*)
11747 if test -d /usr/nec; then
11748 lt_prog_compiler_pic=-Kconform_pic
11749 fi
11750 ;;
11751
11752 *)
11753 lt_prog_compiler_pic='-fPIC'
11754 ;;
11755 esac
11756
11757 case $cc_basename in
11758 nvcc*) # Cuda Compiler Driver 2.2
11759 lt_prog_compiler_wl='-Xlinker '
11760 if test -n "$lt_prog_compiler_pic"; then
11761 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11762 fi
11763 ;;
11764 esac
11765 else
11766 # PORTME Check for flag to pass linker flags through the system compiler.
11767 case $host_os in
11768 aix*)
11769 lt_prog_compiler_wl='-Wl,'
11770 if test ia64 = "$host_cpu"; then
11771 # AIX 5 now supports IA64 processor
11772 lt_prog_compiler_static='-Bstatic'
11773 else
11774 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11775 fi
11776 ;;
11777
11778 darwin* | rhapsody*)
11779 # PIC is the default on this platform
11780 # Common symbols not allowed in MH_DYLIB files
11781 lt_prog_compiler_pic='-fno-common'
11782 case $cc_basename in
11783 nagfor*)
11784 # NAG Fortran compiler
11785 lt_prog_compiler_wl='-Wl,-Wl,,'
11786 lt_prog_compiler_pic='-PIC'
11787 lt_prog_compiler_static='-Bstatic'
11788 ;;
11789 esac
11790 ;;
11791
11792 mingw* | cygwin* | pw32* | os2* | cegcc*)
11793 # This hack is so that the source file can tell whether it is being
11794 # built for inclusion in a dll (and should export symbols for example).
11795 lt_prog_compiler_pic='-DDLL_EXPORT'
11796 case $host_os in
11797 os2*)
11798 lt_prog_compiler_static='$wl-static'
11799 ;;
11800 esac
11801 ;;
11802
11803 hpux9* | hpux10* | hpux11*)
11804 lt_prog_compiler_wl='-Wl,'
11805 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11806 # not for PA HP-UX.
11807 case $host_cpu in
11808 hppa*64*|ia64*)
11809 # +Z the default
11810 ;;
11811 *)
11812 lt_prog_compiler_pic='+Z'
11813 ;;
11814 esac
11815 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11816 lt_prog_compiler_static='$wl-a ${wl}archive'
11817 ;;
11818
11819 irix5* | irix6* | nonstopux*)
11820 lt_prog_compiler_wl='-Wl,'
11821 # PIC (with -KPIC) is the default.
11822 lt_prog_compiler_static='-non_shared'
11823 ;;
11824
11825 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11826 case $cc_basename in
11827 # old Intel for x86_64, which still supported -KPIC.
11828 ecc*)
11829 lt_prog_compiler_wl='-Wl,'
11830 lt_prog_compiler_pic='-KPIC'
11831 lt_prog_compiler_static='-static'
11832 ;;
11833 # flang / f18. f95 an alias for gfortran or flang on Debian
11834 flang* | f18* | f95*)
11835 lt_prog_compiler_wl='-Wl,'
11836 lt_prog_compiler_pic='-fPIC'
11837 lt_prog_compiler_static='-static'
11838 ;;
11839 # icc used to be incompatible with GCC.
11840 # ICC 10 doesn't accept -KPIC any more.
11841 icc* | ifort*)
11842 lt_prog_compiler_wl='-Wl,'
11843 lt_prog_compiler_pic='-fPIC'
11844 lt_prog_compiler_static='-static'
11845 ;;
11846 # Lahey Fortran 8.1.
11847 lf95*)
11848 lt_prog_compiler_wl='-Wl,'
11849 lt_prog_compiler_pic='--shared'
11850 lt_prog_compiler_static='--static'
11851 ;;
11852 nagfor*)
11853 # NAG Fortran compiler
11854 lt_prog_compiler_wl='-Wl,-Wl,,'
11855 lt_prog_compiler_pic='-PIC'
11856 lt_prog_compiler_static='-Bstatic'
11857 ;;
11858 tcc*)
11859 # Fabrice Bellard et al's Tiny C Compiler
11860 lt_prog_compiler_wl='-Wl,'
11861 lt_prog_compiler_pic='-fPIC'
11862 lt_prog_compiler_static='-static'
11863 ;;
11864 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11865 # Portland Group compilers (*not* the Pentium gcc compiler,
11866 # which looks to be a dead project)
11867 lt_prog_compiler_wl='-Wl,'
11868 lt_prog_compiler_pic='-fpic'
11869 lt_prog_compiler_static='-Bstatic'
11870 ;;
11871 ccc*)
11872 lt_prog_compiler_wl='-Wl,'
11873 # All Alpha code is PIC.
11874 lt_prog_compiler_static='-non_shared'
11875 ;;
11876 xl* | bgxl* | bgf* | mpixl*)
11877 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11878 lt_prog_compiler_wl='-Wl,'
11879 lt_prog_compiler_pic='-qpic'
11880 lt_prog_compiler_static='-qstaticlink'
11881 ;;
11882 *)
11883 case `$CC -V 2>&1 | sed 5q` in
11884 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11885 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11886 lt_prog_compiler_pic='-KPIC'
11887 lt_prog_compiler_static='-Bstatic'
11888 lt_prog_compiler_wl=''
11889 ;;
11890 *Sun\ F* | *Sun*Fortran*)
11891 lt_prog_compiler_pic='-KPIC'
11892 lt_prog_compiler_static='-Bstatic'
11893 lt_prog_compiler_wl='-Qoption ld '
11894 ;;
11895 *Sun\ C*)
11896 # Sun C 5.9
11897 lt_prog_compiler_pic='-KPIC'
11898 lt_prog_compiler_static='-Bstatic'
11899 lt_prog_compiler_wl='-Wl,'
11900 ;;
11901 *Intel*\ [CF]*Compiler*)
11902 lt_prog_compiler_wl='-Wl,'
11903 lt_prog_compiler_pic='-fPIC'
11904 lt_prog_compiler_static='-static'
11905 ;;
11906 *Portland\ Group*)
11907 lt_prog_compiler_wl='-Wl,'
11908 lt_prog_compiler_pic='-fpic'
11909 lt_prog_compiler_static='-Bstatic'
11910 ;;
11911 esac
11912 ;;
11913 esac
11914 ;;
11915
11916 newsos6)
11917 lt_prog_compiler_pic='-KPIC'
11918 lt_prog_compiler_static='-Bstatic'
11919 ;;
11920
11921 *nto* | *qnx*)
11922 # QNX uses GNU C++, but need to define -shared option too, otherwise
11923 # it will coredump.
11924 lt_prog_compiler_pic='-fPIC -shared'
11925 ;;
11926
11927 osf3* | osf4* | osf5*)
11928 lt_prog_compiler_wl='-Wl,'
11929 # All OSF/1 code is PIC.
11930 lt_prog_compiler_static='-non_shared'
11931 ;;
11932
11933 rdos*)
11934 lt_prog_compiler_static='-non_shared'
11935 ;;
11936
11937 solaris*)
11938 lt_prog_compiler_pic='-KPIC'
11939 lt_prog_compiler_static='-Bstatic'
11940 case $cc_basename in
11941 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11942 lt_prog_compiler_wl='-Qoption ld ';;
11943 *)
11944 lt_prog_compiler_wl='-Wl,';;
11945 esac
11946 ;;
11947
11948 sunos4*)
11949 lt_prog_compiler_wl='-Qoption ld '
11950 lt_prog_compiler_pic='-PIC'
11951 lt_prog_compiler_static='-Bstatic'
11952 ;;
11953
11954 sysv4 | sysv4.2uw2* | sysv4.3*)
11955 lt_prog_compiler_wl='-Wl,'
11956 lt_prog_compiler_pic='-KPIC'
11957 lt_prog_compiler_static='-Bstatic'
11958 ;;
11959
11960 sysv4*MP*)
11961 if test -d /usr/nec; then
11962 lt_prog_compiler_pic='-Kconform_pic'
11963 lt_prog_compiler_static='-Bstatic'
11964 fi
11965 ;;
11966
11967 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11968 lt_prog_compiler_wl='-Wl,'
11969 lt_prog_compiler_pic='-KPIC'
11970 lt_prog_compiler_static='-Bstatic'
11971 ;;
11972
11973 unicos*)
11974 lt_prog_compiler_wl='-Wl,'
11975 lt_prog_compiler_can_build_shared=no
11976 ;;
11977
11978 uts4*)
11979 lt_prog_compiler_pic='-pic'
11980 lt_prog_compiler_static='-Bstatic'
11981 ;;
11982
11983 *)
11984 lt_prog_compiler_can_build_shared=no
11985 ;;
11986 esac
11987 fi
11988
11989 case $host_os in
11990 # For platforms that do not support PIC, -DPIC is meaningless:
11991 *djgpp*)
11992 lt_prog_compiler_pic=
11993 ;;
11994 *)
11995 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11996 ;;
11997 esac
11998
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12000 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12001 if ${lt_cv_prog_compiler_pic+:} false; then :
12002 $as_echo_n "(cached) " >&6
12003 else
12004 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12005 fi
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12007 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12008 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12009
12010 #
12011 # Check to make sure the PIC flag actually works.
12012 #
12013 if test -n "$lt_prog_compiler_pic"; then
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12015 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12016 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12017 $as_echo_n "(cached) " >&6
12018 else
12019 lt_cv_prog_compiler_pic_works=no
12020 ac_outfile=conftest.$ac_objext
12021 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12022 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12023 # Insert the option either (1) after the last *FLAGS variable, or
12024 # (2) before a word containing "conftest.", or (3) at the end.
12025 # Note that $ac_compile itself does not contain backslashes and begins
12026 # with a dollar sign (not a hyphen), so the echo should work correctly.
12027 # The option is referenced via a variable to avoid confusing sed.
12028 lt_compile=`echo "$ac_compile" | $SED \
12029 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12030 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12031 -e 's:$: $lt_compiler_flag:'`
12032 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12033 (eval "$lt_compile" 2>conftest.err)
12034 ac_status=$?
12035 cat conftest.err >&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 if (exit $ac_status) && test -s "$ac_outfile"; then
12038 # The compiler can only warn and ignore the option if not recognized
12039 # So say no if there are warnings other than the usual output.
12040 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12041 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12042 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12043 lt_cv_prog_compiler_pic_works=yes
12044 fi
12045 fi
12046 $RM conftest*
12047
12048 fi
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12050 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12051
12052 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12053 case $lt_prog_compiler_pic in
12054 "" | " "*) ;;
12055 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12056 esac
12057 else
12058 lt_prog_compiler_pic=
12059 lt_prog_compiler_can_build_shared=no
12060 fi
12061
12062 fi
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074 #
12075 # Check to make sure the static flag actually works.
12076 #
12077 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12079 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12080 if ${lt_cv_prog_compiler_static_works+:} false; then :
12081 $as_echo_n "(cached) " >&6
12082 else
12083 lt_cv_prog_compiler_static_works=no
12084 save_LDFLAGS=$LDFLAGS
12085 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12086 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12087 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12088 # The linker can only warn and ignore the option if not recognized
12089 # So say no if there are warnings
12090 if test -s conftest.err; then
12091 # Append any errors to the config.log.
12092 cat conftest.err 1>&5
12093 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12094 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12095 if diff conftest.exp conftest.er2 >/dev/null; then
12096 lt_cv_prog_compiler_static_works=yes
12097 fi
12098 else
12099 lt_cv_prog_compiler_static_works=yes
12100 fi
12101 fi
12102 $RM -r conftest*
12103 LDFLAGS=$save_LDFLAGS
12104
12105 fi
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12107 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12108
12109 if test yes = "$lt_cv_prog_compiler_static_works"; then
12110 :
12111 else
12112 lt_prog_compiler_static=
12113 fi
12114
12115
12116
12117
12118
12119
12120
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12122 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12123 if ${lt_cv_prog_compiler_c_o+:} false; then :
12124 $as_echo_n "(cached) " >&6
12125 else
12126 lt_cv_prog_compiler_c_o=no
12127 $RM -r conftest 2>/dev/null
12128 mkdir conftest
12129 cd conftest
12130 mkdir out
12131 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12132
12133 lt_compiler_flag="-o out/conftest2.$ac_objext"
12134 # Insert the option either (1) after the last *FLAGS variable, or
12135 # (2) before a word containing "conftest.", or (3) at the end.
12136 # Note that $ac_compile itself does not contain backslashes and begins
12137 # with a dollar sign (not a hyphen), so the echo should work correctly.
12138 lt_compile=`echo "$ac_compile" | $SED \
12139 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12140 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12141 -e 's:$: $lt_compiler_flag:'`
12142 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12143 (eval "$lt_compile" 2>out/conftest.err)
12144 ac_status=$?
12145 cat out/conftest.err >&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12148 then
12149 # The compiler can only warn and ignore the option if not recognized
12150 # So say no if there are warnings
12151 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12152 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12153 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12154 lt_cv_prog_compiler_c_o=yes
12155 fi
12156 fi
12157 chmod u+w . 2>&5
12158 $RM conftest*
12159 # SGI C++ compiler will create directory out/ii_files/ for
12160 # template instantiation
12161 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12162 $RM out/* && rmdir out
12163 cd ..
12164 $RM -r conftest
12165 $RM conftest*
12166
12167 fi
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12169 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12170
12171
12172
12173
12174
12175
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12177 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12178 if ${lt_cv_prog_compiler_c_o+:} false; then :
12179 $as_echo_n "(cached) " >&6
12180 else
12181 lt_cv_prog_compiler_c_o=no
12182 $RM -r conftest 2>/dev/null
12183 mkdir conftest
12184 cd conftest
12185 mkdir out
12186 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12187
12188 lt_compiler_flag="-o out/conftest2.$ac_objext"
12189 # Insert the option either (1) after the last *FLAGS variable, or
12190 # (2) before a word containing "conftest.", or (3) at the end.
12191 # Note that $ac_compile itself does not contain backslashes and begins
12192 # with a dollar sign (not a hyphen), so the echo should work correctly.
12193 lt_compile=`echo "$ac_compile" | $SED \
12194 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12195 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12196 -e 's:$: $lt_compiler_flag:'`
12197 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12198 (eval "$lt_compile" 2>out/conftest.err)
12199 ac_status=$?
12200 cat out/conftest.err >&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12203 then
12204 # The compiler can only warn and ignore the option if not recognized
12205 # So say no if there are warnings
12206 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12207 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12208 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12209 lt_cv_prog_compiler_c_o=yes
12210 fi
12211 fi
12212 chmod u+w . 2>&5
12213 $RM conftest*
12214 # SGI C++ compiler will create directory out/ii_files/ for
12215 # template instantiation
12216 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12217 $RM out/* && rmdir out
12218 cd ..
12219 $RM -r conftest
12220 $RM conftest*
12221
12222 fi
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12224 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12225
12226
12227
12228
12229 hard_links=nottested
12230 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12231 # do not overwrite the value of need_locks provided by the user
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12233 $as_echo_n "checking if we can lock with hard links... " >&6; }
12234 hard_links=yes
12235 $RM conftest*
12236 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12237 touch conftest.a
12238 ln conftest.a conftest.b 2>&5 || hard_links=no
12239 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12241 $as_echo "$hard_links" >&6; }
12242 if test no = "$hard_links"; then
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12244 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12245 need_locks=warn
12246 fi
12247 else
12248 need_locks=no
12249 fi
12250
12251
12252
12253
12254
12255
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12257 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12258
12259 runpath_var=
12260 allow_undefined_flag=
12261 always_export_symbols=no
12262 archive_cmds=
12263 archive_expsym_cmds=
12264 compiler_needs_object=no
12265 enable_shared_with_static_runtimes=no
12266 export_dynamic_flag_spec=
12267 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12268 hardcode_automatic=no
12269 hardcode_direct=no
12270 hardcode_direct_absolute=no
12271 hardcode_libdir_flag_spec=
12272 hardcode_libdir_separator=
12273 hardcode_minus_L=no
12274 hardcode_shlibpath_var=unsupported
12275 inherit_rpath=no
12276 link_all_deplibs=unknown
12277 module_cmds=
12278 module_expsym_cmds=
12279 old_archive_from_new_cmds=
12280 old_archive_from_expsyms_cmds=
12281 thread_safe_flag_spec=
12282 whole_archive_flag_spec=
12283 # include_expsyms should be a list of space-separated symbols to be *always*
12284 # included in the symbol list
12285 include_expsyms=
12286 # exclude_expsyms can be an extended regexp of symbols to exclude
12287 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12288 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12289 # as well as any symbol that contains 'd'.
12290 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12291 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12292 # platforms (ab)use it in PIC code, but their linkers get confused if
12293 # the symbol is explicitly referenced. Since portable code cannot
12294 # rely on this symbol name, it's probably fine to never include it in
12295 # preloaded symbol tables.
12296 # Exclude shared library initialization/finalization symbols.
12297 extract_expsyms_cmds=
12298
12299 case $host_os in
12300 cygwin* | mingw* | pw32* | cegcc*)
12301 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12302 # When not using gcc, we currently assume that we are using
12303 # Microsoft Visual C++.
12304 if test yes != "$GCC"; then
12305 with_gnu_ld=no
12306 fi
12307 ;;
12308 interix*)
12309 # we just hope/assume this is gcc and not c89 (= MSVC++)
12310 with_gnu_ld=yes
12311 ;;
12312 openbsd* | bitrig*)
12313 with_gnu_ld=no
12314 ;;
12315 linux* | k*bsd*-gnu | gnu*)
12316 link_all_deplibs=no
12317 ;;
12318 esac
12319
12320 ld_shlibs=yes
12321
12322 # On some targets, GNU ld is compatible enough with the native linker
12323 # that we're better off using the native interface for both.
12324 lt_use_gnu_ld_interface=no
12325 if test yes = "$with_gnu_ld"; then
12326 case $host_os in
12327 aix*)
12328 # The AIX port of GNU ld has always aspired to compatibility
12329 # with the native linker. However, as the warning in the GNU ld
12330 # block says, versions before 2.19.5* couldn't really create working
12331 # shared libraries, regardless of the interface used.
12332 case `$LD -v 2>&1` in
12333 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12334 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12335 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12336 *)
12337 lt_use_gnu_ld_interface=yes
12338 ;;
12339 esac
12340 ;;
12341 *)
12342 lt_use_gnu_ld_interface=yes
12343 ;;
12344 esac
12345 fi
12346
12347 if test yes = "$lt_use_gnu_ld_interface"; then
12348 # If archive_cmds runs LD, not CC, wlarc should be empty
12349 wlarc='$wl'
12350
12351 # Set some defaults for GNU ld with shared library support. These
12352 # are reset later if shared libraries are not supported. Putting them
12353 # here allows them to be overridden if necessary.
12354 runpath_var=LD_RUN_PATH
12355 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12356 export_dynamic_flag_spec='$wl--export-dynamic'
12357 # ancient GNU ld didn't support --whole-archive et. al.
12358 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12359 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12360 else
12361 whole_archive_flag_spec=
12362 fi
12363 supports_anon_versioning=no
12364 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12365 *GNU\ gold*) supports_anon_versioning=yes ;;
12366 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12367 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12368 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12369 *\ 2.11.*) ;; # other 2.11 versions
12370 *) supports_anon_versioning=yes ;;
12371 esac
12372
12373 # See if GNU ld supports shared libraries.
12374 case $host_os in
12375 aix[3-9]*)
12376 # On AIX/PPC, the GNU linker is very broken
12377 if test ia64 != "$host_cpu"; then
12378 ld_shlibs=no
12379 cat <<_LT_EOF 1>&2
12380
12381 *** Warning: the GNU linker, at least up to release 2.19, is reported
12382 *** to be unable to reliably create shared libraries on AIX.
12383 *** Therefore, libtool is disabling shared libraries support. If you
12384 *** really care for shared libraries, you may want to install binutils
12385 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12386 *** You will then need to restart the configuration process.
12387
12388 _LT_EOF
12389 fi
12390 ;;
12391
12392 amigaos*)
12393 case $host_cpu in
12394 powerpc)
12395 # see comment about AmigaOS4 .so support
12396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12397 archive_expsym_cmds=''
12398 ;;
12399 m68k)
12400 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)'
12401 hardcode_libdir_flag_spec='-L$libdir'
12402 hardcode_minus_L=yes
12403 ;;
12404 esac
12405 ;;
12406
12407 beos*)
12408 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12409 allow_undefined_flag=unsupported
12410 # Joseph Beckenbach <[email protected]> says some releases of gcc
12411 # support --undefined. This deserves some investigation. FIXME
12412 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12413 else
12414 ld_shlibs=no
12415 fi
12416 ;;
12417
12418 cygwin* | mingw* | pw32* | cegcc*)
12419 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12420 # as there is no search path for DLLs.
12421 hardcode_libdir_flag_spec='-L$libdir'
12422 export_dynamic_flag_spec='$wl--export-all-symbols'
12423 allow_undefined_flag=unsupported
12424 always_export_symbols=no
12425 enable_shared_with_static_runtimes=yes
12426 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
12427 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12428
12429 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12430 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12431 # If the export-symbols file already is a .def file, use it as
12432 # is; otherwise, prepend EXPORTS...
12433 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12434 cp $export_symbols $output_objdir/$soname.def;
12435 else
12436 echo EXPORTS > $output_objdir/$soname.def;
12437 cat $export_symbols >> $output_objdir/$soname.def;
12438 fi~
12439 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12440 else
12441 ld_shlibs=no
12442 fi
12443 ;;
12444
12445 haiku*)
12446 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12447 link_all_deplibs=yes
12448 ;;
12449
12450 os2*)
12451 hardcode_libdir_flag_spec='-L$libdir'
12452 hardcode_minus_L=yes
12453 allow_undefined_flag=unsupported
12454 shrext_cmds=.dll
12455 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12456 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12457 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12458 $ECHO EXPORTS >> $output_objdir/$libname.def~
12459 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12460 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12461 emximp -o $lib $output_objdir/$libname.def'
12462 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12463 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12464 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12465 $ECHO EXPORTS >> $output_objdir/$libname.def~
12466 prefix_cmds="$SED"~
12467 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12468 prefix_cmds="$prefix_cmds -e 1d";
12469 fi~
12470 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12471 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12472 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12473 emximp -o $lib $output_objdir/$libname.def'
12474 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12475 enable_shared_with_static_runtimes=yes
12476 ;;
12477
12478 interix[3-9]*)
12479 hardcode_direct=no
12480 hardcode_shlibpath_var=no
12481 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12482 export_dynamic_flag_spec='$wl-E'
12483 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12484 # Instead, shared libraries are loaded at an image base (0x10000000 by
12485 # default) and relocated if they conflict, which is a slow very memory
12486 # consuming and fragmenting process. To avoid this, we pick a random,
12487 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12488 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12489 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12490 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12491 ;;
12492
12493 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12494 tmp_diet=no
12495 if test linux-dietlibc = "$host_os"; then
12496 case $cc_basename in
12497 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12498 esac
12499 fi
12500 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12501 && test no = "$tmp_diet"
12502 then
12503 tmp_addflag=' $pic_flag'
12504 tmp_sharedflag='-shared'
12505 case $cc_basename,$host_cpu in
12506 pgcc*) # Portland Group C compiler
12507 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12508 tmp_addflag=' $pic_flag'
12509 ;;
12510 pgf77* | pgf90* | pgf95* | pgfortran*)
12511 # Portland Group f77 and f90 compilers
12512 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12513 tmp_addflag=' $pic_flag -Mnomain' ;;
12514 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12515 tmp_addflag=' -i_dynamic' ;;
12516 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12517 tmp_addflag=' -i_dynamic -nofor_main' ;;
12518 ifc* | ifort*) # Intel Fortran compiler
12519 tmp_addflag=' -nofor_main' ;;
12520 lf95*) # Lahey Fortran 8.1
12521 whole_archive_flag_spec=
12522 tmp_sharedflag='--shared' ;;
12523 nagfor*) # NAGFOR 5.3
12524 tmp_sharedflag='-Wl,-shared' ;;
12525 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12526 tmp_sharedflag='-qmkshrobj'
12527 tmp_addflag= ;;
12528 nvcc*) # Cuda Compiler Driver 2.2
12529 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12530 compiler_needs_object=yes
12531 ;;
12532 esac
12533 case `$CC -V 2>&1 | sed 5q` in
12534 *Sun\ C*) # Sun C 5.9
12535 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12536 compiler_needs_object=yes
12537 tmp_sharedflag='-G' ;;
12538 *Sun\ F*) # Sun Fortran 8.3
12539 tmp_sharedflag='-G' ;;
12540 esac
12541 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12542
12543 if test yes = "$supports_anon_versioning"; then
12544 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12545 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12546 echo "local: *; };" >> $output_objdir/$libname.ver~
12547 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12548 fi
12549
12550 case $cc_basename in
12551 tcc*)
12552 export_dynamic_flag_spec='-rdynamic'
12553 ;;
12554 xlf* | bgf* | bgxlf* | mpixlf*)
12555 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12556 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12557 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12558 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12559 if test yes = "$supports_anon_versioning"; then
12560 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12561 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12562 echo "local: *; };" >> $output_objdir/$libname.ver~
12563 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12564 fi
12565 ;;
12566 esac
12567 else
12568 ld_shlibs=no
12569 fi
12570 ;;
12571
12572 netbsd* | netbsdelf*-gnu)
12573 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12574 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12575 wlarc=
12576 else
12577 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12578 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12579 fi
12580 ;;
12581
12582 solaris*)
12583 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12584 ld_shlibs=no
12585 cat <<_LT_EOF 1>&2
12586
12587 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12588 *** create shared libraries on Solaris systems. Therefore, libtool
12589 *** is disabling shared libraries support. We urge you to upgrade GNU
12590 *** binutils to release 2.9.1 or newer. Another option is to modify
12591 *** your PATH or compiler configuration so that the native linker is
12592 *** used, and then restart.
12593
12594 _LT_EOF
12595 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12596 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12597 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12598 else
12599 ld_shlibs=no
12600 fi
12601 ;;
12602
12603 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12604 case `$LD -v 2>&1` in
12605 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12606 ld_shlibs=no
12607 cat <<_LT_EOF 1>&2
12608
12609 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12610 *** reliably create shared libraries on SCO systems. Therefore, libtool
12611 *** is disabling shared libraries support. We urge you to upgrade GNU
12612 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12613 *** your PATH or compiler configuration so that the native linker is
12614 *** used, and then restart.
12615
12616 _LT_EOF
12617 ;;
12618 *)
12619 # For security reasons, it is highly recommended that you always
12620 # use absolute paths for naming shared libraries, and exclude the
12621 # DT_RUNPATH tag from executables and libraries. But doing so
12622 # requires that you compile everything twice, which is a pain.
12623 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12624 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12625 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12626 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12627 else
12628 ld_shlibs=no
12629 fi
12630 ;;
12631 esac
12632 ;;
12633
12634 sunos4*)
12635 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12636 wlarc=
12637 hardcode_direct=yes
12638 hardcode_shlibpath_var=no
12639 ;;
12640
12641 *)
12642 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12643 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12644 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12645 else
12646 ld_shlibs=no
12647 fi
12648 ;;
12649 esac
12650
12651 if test no = "$ld_shlibs"; then
12652 runpath_var=
12653 hardcode_libdir_flag_spec=
12654 export_dynamic_flag_spec=
12655 whole_archive_flag_spec=
12656 fi
12657 else
12658 # PORTME fill in a description of your system's linker (not GNU ld)
12659 case $host_os in
12660 aix3*)
12661 allow_undefined_flag=unsupported
12662 always_export_symbols=yes
12663 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'
12664 # Note: this linker hardcodes the directories in LIBPATH if there
12665 # are no directories specified by -L.
12666 hardcode_minus_L=yes
12667 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12668 # Neither direct hardcoding nor static linking is supported with a
12669 # broken collect2.
12670 hardcode_direct=unsupported
12671 fi
12672 ;;
12673
12674 aix[4-9]*)
12675 if test ia64 = "$host_cpu"; then
12676 # On IA64, the linker does run time linking by default, so we don't
12677 # have to do anything special.
12678 aix_use_runtimelinking=no
12679 exp_sym_flag='-Bexport'
12680 no_entry_flag=
12681 else
12682 # If we're using GNU nm, then we don't want the "-C" option.
12683 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12684 # Without the "-l" option, or with the "-B" option, AIX nm treats
12685 # weak defined symbols like other global defined symbols, whereas
12686 # GNU nm marks them as "W".
12687 # While the 'weak' keyword is ignored in the Export File, we need
12688 # it in the Import File for the 'aix-soname' feature, so we have
12689 # to replace the "-B" option with "-P" for AIX nm.
12690 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12691 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
12692 else
12693 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
12694 fi
12695 aix_use_runtimelinking=no
12696
12697 # Test if we are trying to use run time linking or normal
12698 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12699 # have runtime linking enabled, and use it for executables.
12700 # For shared libraries, we enable/disable runtime linking
12701 # depending on the kind of the shared library created -
12702 # when "with_aix_soname,aix_use_runtimelinking" is:
12703 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12704 # "aix,yes" lib.so shared, rtl:yes, for executables
12705 # lib.a static archive
12706 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12707 # lib.a(lib.so.V) shared, rtl:no, for executables
12708 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12709 # lib.a(lib.so.V) shared, rtl:no
12710 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12711 # lib.a static archive
12712 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12713 for ld_flag in $LDFLAGS; do
12714 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12715 aix_use_runtimelinking=yes
12716 break
12717 fi
12718 done
12719 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12720 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12721 # so we don't have lib.a shared libs to link our executables.
12722 # We have to force runtime linking in this case.
12723 aix_use_runtimelinking=yes
12724 LDFLAGS="$LDFLAGS -Wl,-brtl"
12725 fi
12726 ;;
12727 esac
12728
12729 exp_sym_flag='-bexport'
12730 no_entry_flag='-bnoentry'
12731 fi
12732
12733 # When large executables or shared objects are built, AIX ld can
12734 # have problems creating the table of contents. If linking a library
12735 # or program results in "error TOC overflow" add -mminimal-toc to
12736 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12737 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12738
12739 archive_cmds=''
12740 hardcode_direct=yes
12741 hardcode_direct_absolute=yes
12742 hardcode_libdir_separator=':'
12743 link_all_deplibs=yes
12744 file_list_spec='$wl-f,'
12745 case $with_aix_soname,$aix_use_runtimelinking in
12746 aix,*) ;; # traditional, no import file
12747 svr4,* | *,yes) # use import file
12748 # The Import File defines what to hardcode.
12749 hardcode_direct=no
12750 hardcode_direct_absolute=no
12751 ;;
12752 esac
12753
12754 if test yes = "$GCC"; then
12755 case $host_os in aix4.[012]|aix4.[012].*)
12756 # We only want to do this on AIX 4.2 and lower, the check
12757 # below for broken collect2 doesn't work under 4.3+
12758 collect2name=`$CC -print-prog-name=collect2`
12759 if test -f "$collect2name" &&
12760 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12761 then
12762 # We have reworked collect2
12763 :
12764 else
12765 # We have old collect2
12766 hardcode_direct=unsupported
12767 # It fails to find uninstalled libraries when the uninstalled
12768 # path is not listed in the libpath. Setting hardcode_minus_L
12769 # to unsupported forces relinking
12770 hardcode_minus_L=yes
12771 hardcode_libdir_flag_spec='-L$libdir'
12772 hardcode_libdir_separator=
12773 fi
12774 ;;
12775 esac
12776 shared_flag='-shared'
12777 if test yes = "$aix_use_runtimelinking"; then
12778 shared_flag="$shared_flag "'$wl-G'
12779 fi
12780 # Need to ensure runtime linking is disabled for the traditional
12781 # shared library, or the linker may eventually find shared libraries
12782 # /with/ Import File - we do not want to mix them.
12783 shared_flag_aix='-shared'
12784 shared_flag_svr4='-shared $wl-G'
12785 else
12786 # not using gcc
12787 if test ia64 = "$host_cpu"; then
12788 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12789 # chokes on -Wl,-G. The following line is correct:
12790 shared_flag='-G'
12791 else
12792 if test yes = "$aix_use_runtimelinking"; then
12793 shared_flag='$wl-G'
12794 else
12795 shared_flag='$wl-bM:SRE'
12796 fi
12797 shared_flag_aix='$wl-bM:SRE'
12798 shared_flag_svr4='$wl-G'
12799 fi
12800 fi
12801
12802 export_dynamic_flag_spec='$wl-bexpall'
12803 # It seems that -bexpall does not export symbols beginning with
12804 # underscore (_), so it is better to generate a list of symbols to export.
12805 always_export_symbols=yes
12806 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12807 # Warning - without using the other runtime loading flags (-brtl),
12808 # -berok will link without error, but may produce a broken library.
12809 allow_undefined_flag='-berok'
12810 # Determine the default libpath from the value encoded in an
12811 # empty executable.
12812 if test set = "${lt_cv_aix_libpath+set}"; then
12813 aix_libpath=$lt_cv_aix_libpath
12814 else
12815 if ${lt_cv_aix_libpath_+:} false; then :
12816 $as_echo_n "(cached) " >&6
12817 else
12818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12819 /* end confdefs.h. */
12820
12821 int
12822 main ()
12823 {
12824
12825 ;
12826 return 0;
12827 }
12828 _ACEOF
12829 if ac_fn_c_try_link "$LINENO"; then :
12830
12831 lt_aix_libpath_sed='
12832 /Import File Strings/,/^$/ {
12833 /^0/ {
12834 s/^0 *\([^ ]*\) *$/\1/
12835 p
12836 }
12837 }'
12838 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12839 # Check for a 64-bit object if we didn't find anything.
12840 if test -z "$lt_cv_aix_libpath_"; then
12841 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12842 fi
12843 fi
12844 rm -f core conftest.err conftest.$ac_objext \
12845 conftest$ac_exeext conftest.$ac_ext
12846 if test -z "$lt_cv_aix_libpath_"; then
12847 lt_cv_aix_libpath_=/usr/lib:/lib
12848 fi
12849
12850 fi
12851
12852 aix_libpath=$lt_cv_aix_libpath_
12853 fi
12854
12855 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12856 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12857 else
12858 if test ia64 = "$host_cpu"; then
12859 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12860 allow_undefined_flag="-z nodefs"
12861 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
12862 else
12863 # Determine the default libpath from the value encoded in an
12864 # empty executable.
12865 if test set = "${lt_cv_aix_libpath+set}"; then
12866 aix_libpath=$lt_cv_aix_libpath
12867 else
12868 if ${lt_cv_aix_libpath_+:} false; then :
12869 $as_echo_n "(cached) " >&6
12870 else
12871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12872 /* end confdefs.h. */
12873
12874 int
12875 main ()
12876 {
12877
12878 ;
12879 return 0;
12880 }
12881 _ACEOF
12882 if ac_fn_c_try_link "$LINENO"; then :
12883
12884 lt_aix_libpath_sed='
12885 /Import File Strings/,/^$/ {
12886 /^0/ {
12887 s/^0 *\([^ ]*\) *$/\1/
12888 p
12889 }
12890 }'
12891 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12892 # Check for a 64-bit object if we didn't find anything.
12893 if test -z "$lt_cv_aix_libpath_"; then
12894 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12895 fi
12896 fi
12897 rm -f core conftest.err conftest.$ac_objext \
12898 conftest$ac_exeext conftest.$ac_ext
12899 if test -z "$lt_cv_aix_libpath_"; then
12900 lt_cv_aix_libpath_=/usr/lib:/lib
12901 fi
12902
12903 fi
12904
12905 aix_libpath=$lt_cv_aix_libpath_
12906 fi
12907
12908 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12909 # Warning - without using the other run time loading flags,
12910 # -berok will link without error, but may produce a broken library.
12911 no_undefined_flag=' $wl-bernotok'
12912 allow_undefined_flag=' $wl-berok'
12913 if test yes = "$with_gnu_ld"; then
12914 # We only use this code for GNU lds that support --whole-archive.
12915 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12916 else
12917 # Exported symbols can be pulled into shared objects from archives
12918 whole_archive_flag_spec='$convenience'
12919 fi
12920 archive_cmds_need_lc=yes
12921 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12922 # -brtl affects multiple linker settings, -berok does not and is overridden later
12923 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12924 if test svr4 != "$with_aix_soname"; then
12925 # This is similar to how AIX traditionally builds its shared libraries.
12926 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12927 fi
12928 if test aix != "$with_aix_soname"; then
12929 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12930 else
12931 # used by -dlpreopen to get the symbols
12932 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12933 fi
12934 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12935 fi
12936 fi
12937 ;;
12938
12939 amigaos*)
12940 case $host_cpu in
12941 powerpc)
12942 # see comment about AmigaOS4 .so support
12943 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12944 archive_expsym_cmds=''
12945 ;;
12946 m68k)
12947 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)'
12948 hardcode_libdir_flag_spec='-L$libdir'
12949 hardcode_minus_L=yes
12950 ;;
12951 esac
12952 ;;
12953
12954 bsdi[45]*)
12955 export_dynamic_flag_spec=-rdynamic
12956 ;;
12957
12958 cygwin* | mingw* | pw32* | cegcc*)
12959 # When not using gcc, we currently assume that we are using
12960 # Microsoft Visual C++.
12961 # hardcode_libdir_flag_spec is actually meaningless, as there is
12962 # no search path for DLLs.
12963 case $cc_basename in
12964 cl*)
12965 # Native MSVC
12966 hardcode_libdir_flag_spec=' '
12967 allow_undefined_flag=unsupported
12968 always_export_symbols=yes
12969 file_list_spec='@'
12970 # Tell ltmain to make .lib files, not .a files.
12971 libext=lib
12972 # Tell ltmain to make .dll files, not .so files.
12973 shrext_cmds=.dll
12974 # FIXME: Setting linknames here is a bad hack.
12975 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12976 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12977 cp "$export_symbols" "$output_objdir/$soname.def";
12978 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12979 else
12980 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12981 fi~
12982 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12983 linknames='
12984 # The linker will not automatically build a static lib if we build a DLL.
12985 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12986 enable_shared_with_static_runtimes=yes
12987 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12988 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12989 # Don't use ranlib
12990 old_postinstall_cmds='chmod 644 $oldlib'
12991 postlink_cmds='lt_outputfile="@OUTPUT@"~
12992 lt_tool_outputfile="@TOOL_OUTPUT@"~
12993 case $lt_outputfile in
12994 *.exe|*.EXE) ;;
12995 *)
12996 lt_outputfile=$lt_outputfile.exe
12997 lt_tool_outputfile=$lt_tool_outputfile.exe
12998 ;;
12999 esac~
13000 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13001 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13002 $RM "$lt_outputfile.manifest";
13003 fi'
13004 ;;
13005 *)
13006 # Assume MSVC wrapper
13007 hardcode_libdir_flag_spec=' '
13008 allow_undefined_flag=unsupported
13009 # Tell ltmain to make .lib files, not .a files.
13010 libext=lib
13011 # Tell ltmain to make .dll files, not .so files.
13012 shrext_cmds=.dll
13013 # FIXME: Setting linknames here is a bad hack.
13014 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13015 # The linker will automatically build a .lib file if we build a DLL.
13016 old_archive_from_new_cmds='true'
13017 # FIXME: Should let the user specify the lib program.
13018 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13019 enable_shared_with_static_runtimes=yes
13020 ;;
13021 esac
13022 ;;
13023
13024 darwin* | rhapsody*)
13025
13026
13027 archive_cmds_need_lc=no
13028 hardcode_direct=no
13029 hardcode_automatic=yes
13030 hardcode_shlibpath_var=unsupported
13031 if test yes = "$lt_cv_ld_force_load"; then
13032 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13033
13034 else
13035 whole_archive_flag_spec=''
13036 fi
13037 link_all_deplibs=yes
13038 allow_undefined_flag=$_lt_dar_allow_undefined
13039 case $cc_basename in
13040 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13041 *) _lt_dar_can_shared=$GCC ;;
13042 esac
13043 if test yes = "$_lt_dar_can_shared"; then
13044 output_verbose_link_cmd=func_echo_all
13045 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13046 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13047 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
13048 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
13049
13050 else
13051 ld_shlibs=no
13052 fi
13053
13054 ;;
13055
13056 dgux*)
13057 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13058 hardcode_libdir_flag_spec='-L$libdir'
13059 hardcode_shlibpath_var=no
13060 ;;
13061
13062 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13063 # support. Future versions do this automatically, but an explicit c++rt0.o
13064 # does not break anything, and helps significantly (at the cost of a little
13065 # extra space).
13066 freebsd2.2*)
13067 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13068 hardcode_libdir_flag_spec='-R$libdir'
13069 hardcode_direct=yes
13070 hardcode_shlibpath_var=no
13071 ;;
13072
13073 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13074 freebsd2.*)
13075 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13076 hardcode_direct=yes
13077 hardcode_minus_L=yes
13078 hardcode_shlibpath_var=no
13079 ;;
13080
13081 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13082 freebsd* | dragonfly*)
13083 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13084 hardcode_libdir_flag_spec='-R$libdir'
13085 hardcode_direct=yes
13086 hardcode_shlibpath_var=no
13087 ;;
13088
13089 hpux9*)
13090 if test yes = "$GCC"; then
13091 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13092 else
13093 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13094 fi
13095 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13096 hardcode_libdir_separator=:
13097 hardcode_direct=yes
13098
13099 # hardcode_minus_L: Not really in the search PATH,
13100 # but as the default location of the library.
13101 hardcode_minus_L=yes
13102 export_dynamic_flag_spec='$wl-E'
13103 ;;
13104
13105 hpux10*)
13106 if test yes,no = "$GCC,$with_gnu_ld"; then
13107 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13108 else
13109 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13110 fi
13111 if test no = "$with_gnu_ld"; then
13112 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13113 hardcode_libdir_separator=:
13114 hardcode_direct=yes
13115 hardcode_direct_absolute=yes
13116 export_dynamic_flag_spec='$wl-E'
13117 # hardcode_minus_L: Not really in the search PATH,
13118 # but as the default location of the library.
13119 hardcode_minus_L=yes
13120 fi
13121 ;;
13122
13123 hpux11*)
13124 if test yes,no = "$GCC,$with_gnu_ld"; then
13125 case $host_cpu in
13126 hppa*64*)
13127 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13128 ;;
13129 ia64*)
13130 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13131 ;;
13132 *)
13133 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13134 ;;
13135 esac
13136 else
13137 case $host_cpu in
13138 hppa*64*)
13139 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13140 ;;
13141 ia64*)
13142 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13143 ;;
13144 *)
13145
13146 # Older versions of the 11.00 compiler do not understand -b yet
13147 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13149 $as_echo_n "checking if $CC understands -b... " >&6; }
13150 if ${lt_cv_prog_compiler__b+:} false; then :
13151 $as_echo_n "(cached) " >&6
13152 else
13153 lt_cv_prog_compiler__b=no
13154 save_LDFLAGS=$LDFLAGS
13155 LDFLAGS="$LDFLAGS -b"
13156 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13157 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13158 # The linker can only warn and ignore the option if not recognized
13159 # So say no if there are warnings
13160 if test -s conftest.err; then
13161 # Append any errors to the config.log.
13162 cat conftest.err 1>&5
13163 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13164 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13165 if diff conftest.exp conftest.er2 >/dev/null; then
13166 lt_cv_prog_compiler__b=yes
13167 fi
13168 else
13169 lt_cv_prog_compiler__b=yes
13170 fi
13171 fi
13172 $RM -r conftest*
13173 LDFLAGS=$save_LDFLAGS
13174
13175 fi
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13177 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13178
13179 if test yes = "$lt_cv_prog_compiler__b"; then
13180 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13181 else
13182 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13183 fi
13184
13185 ;;
13186 esac
13187 fi
13188 if test no = "$with_gnu_ld"; then
13189 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13190 hardcode_libdir_separator=:
13191
13192 case $host_cpu in
13193 hppa*64*|ia64*)
13194 hardcode_direct=no
13195 hardcode_shlibpath_var=no
13196 ;;
13197 *)
13198 hardcode_direct=yes
13199 hardcode_direct_absolute=yes
13200 export_dynamic_flag_spec='$wl-E'
13201
13202 # hardcode_minus_L: Not really in the search PATH,
13203 # but as the default location of the library.
13204 hardcode_minus_L=yes
13205 ;;
13206 esac
13207 fi
13208 ;;
13209
13210 irix5* | irix6* | nonstopux*)
13211 if test yes = "$GCC"; then
13212 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13213 # Try to use the -exported_symbol ld option, if it does not
13214 # work, assume that -exports_file does not work either and
13215 # implicitly export all symbols.
13216 # This should be the same for all languages, so no per-tag cache variable.
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13218 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13219 if ${lt_cv_irix_exported_symbol+:} false; then :
13220 $as_echo_n "(cached) " >&6
13221 else
13222 save_LDFLAGS=$LDFLAGS
13223 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13225 /* end confdefs.h. */
13226 int foo (void) { return 0; }
13227 _ACEOF
13228 if ac_fn_c_try_link "$LINENO"; then :
13229 lt_cv_irix_exported_symbol=yes
13230 else
13231 lt_cv_irix_exported_symbol=no
13232 fi
13233 rm -f core conftest.err conftest.$ac_objext \
13234 conftest$ac_exeext conftest.$ac_ext
13235 LDFLAGS=$save_LDFLAGS
13236 fi
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13238 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13239 if test yes = "$lt_cv_irix_exported_symbol"; then
13240 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
13241 fi
13242 link_all_deplibs=no
13243 else
13244 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13245 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
13246 fi
13247 archive_cmds_need_lc='no'
13248 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13249 hardcode_libdir_separator=:
13250 inherit_rpath=yes
13251 link_all_deplibs=yes
13252 ;;
13253
13254 linux*)
13255 case $cc_basename in
13256 tcc*)
13257 # Fabrice Bellard et al's Tiny C Compiler
13258 ld_shlibs=yes
13259 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13260 ;;
13261 esac
13262 ;;
13263
13264 netbsd* | netbsdelf*-gnu)
13265 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13266 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13267 else
13268 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13269 fi
13270 hardcode_libdir_flag_spec='-R$libdir'
13271 hardcode_direct=yes
13272 hardcode_shlibpath_var=no
13273 ;;
13274
13275 newsos6)
13276 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13277 hardcode_direct=yes
13278 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13279 hardcode_libdir_separator=:
13280 hardcode_shlibpath_var=no
13281 ;;
13282
13283 *nto* | *qnx*)
13284 ;;
13285
13286 openbsd* | bitrig*)
13287 if test -f /usr/libexec/ld.so; then
13288 hardcode_direct=yes
13289 hardcode_shlibpath_var=no
13290 hardcode_direct_absolute=yes
13291 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13292 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13293 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13294 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13295 export_dynamic_flag_spec='$wl-E'
13296 else
13297 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13298 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13299 fi
13300 else
13301 ld_shlibs=no
13302 fi
13303 ;;
13304
13305 os2*)
13306 hardcode_libdir_flag_spec='-L$libdir'
13307 hardcode_minus_L=yes
13308 allow_undefined_flag=unsupported
13309 shrext_cmds=.dll
13310 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13311 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13312 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13313 $ECHO EXPORTS >> $output_objdir/$libname.def~
13314 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13315 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13316 emximp -o $lib $output_objdir/$libname.def'
13317 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13318 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13319 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13320 $ECHO EXPORTS >> $output_objdir/$libname.def~
13321 prefix_cmds="$SED"~
13322 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13323 prefix_cmds="$prefix_cmds -e 1d";
13324 fi~
13325 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13326 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13327 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13328 emximp -o $lib $output_objdir/$libname.def'
13329 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13330 enable_shared_with_static_runtimes=yes
13331 ;;
13332
13333 osf3*)
13334 if test yes = "$GCC"; then
13335 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13336 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13337 else
13338 allow_undefined_flag=' -expect_unresolved \*'
13339 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13340 fi
13341 archive_cmds_need_lc='no'
13342 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13343 hardcode_libdir_separator=:
13344 ;;
13345
13346 osf4* | osf5*) # as osf3* with the addition of -msym flag
13347 if test yes = "$GCC"; then
13348 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13349 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13350 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13351 else
13352 allow_undefined_flag=' -expect_unresolved \*'
13353 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13354 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13355 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
13356
13357 # Both c and cxx compiler support -rpath directly
13358 hardcode_libdir_flag_spec='-rpath $libdir'
13359 fi
13360 archive_cmds_need_lc='no'
13361 hardcode_libdir_separator=:
13362 ;;
13363
13364 solaris*)
13365 no_undefined_flag=' -z defs'
13366 if test yes = "$GCC"; then
13367 wlarc='$wl'
13368 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13369 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13370 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13371 else
13372 case `$CC -V 2>&1` in
13373 *"Compilers 5.0"*)
13374 wlarc=''
13375 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13376 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13377 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13378 ;;
13379 *)
13380 wlarc='$wl'
13381 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13382 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13383 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13384 ;;
13385 esac
13386 fi
13387 hardcode_libdir_flag_spec='-R$libdir'
13388 hardcode_shlibpath_var=no
13389 case $host_os in
13390 solaris2.[0-5] | solaris2.[0-5].*) ;;
13391 *)
13392 # The compiler driver will combine and reorder linker options,
13393 # but understands '-z linker_flag'. GCC discards it without '$wl',
13394 # but is careful enough not to reorder.
13395 # Supported since Solaris 2.6 (maybe 2.5.1?)
13396 if test yes = "$GCC"; then
13397 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13398 else
13399 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13400 fi
13401 ;;
13402 esac
13403 link_all_deplibs=yes
13404 ;;
13405
13406 sunos4*)
13407 if test sequent = "$host_vendor"; then
13408 # Use $CC to link under sequent, because it throws in some extra .o
13409 # files that make .init and .fini sections work.
13410 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13411 else
13412 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13413 fi
13414 hardcode_libdir_flag_spec='-L$libdir'
13415 hardcode_direct=yes
13416 hardcode_minus_L=yes
13417 hardcode_shlibpath_var=no
13418 ;;
13419
13420 sysv4)
13421 case $host_vendor in
13422 sni)
13423 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13424 hardcode_direct=yes # is this really true???
13425 ;;
13426 siemens)
13427 ## LD is ld it makes a PLAMLIB
13428 ## CC just makes a GrossModule.
13429 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13430 reload_cmds='$CC -r -o $output$reload_objs'
13431 hardcode_direct=no
13432 ;;
13433 motorola)
13434 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13435 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13436 ;;
13437 esac
13438 runpath_var='LD_RUN_PATH'
13439 hardcode_shlibpath_var=no
13440 ;;
13441
13442 sysv4.3*)
13443 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13444 hardcode_shlibpath_var=no
13445 export_dynamic_flag_spec='-Bexport'
13446 ;;
13447
13448 sysv4*MP*)
13449 if test -d /usr/nec; then
13450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13451 hardcode_shlibpath_var=no
13452 runpath_var=LD_RUN_PATH
13453 hardcode_runpath_var=yes
13454 ld_shlibs=yes
13455 fi
13456 ;;
13457
13458 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13459 no_undefined_flag='$wl-z,text'
13460 archive_cmds_need_lc=no
13461 hardcode_shlibpath_var=no
13462 runpath_var='LD_RUN_PATH'
13463
13464 if test yes = "$GCC"; then
13465 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13466 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13467 else
13468 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13469 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13470 fi
13471 ;;
13472
13473 sysv5* | sco3.2v5* | sco5v6*)
13474 # Note: We CANNOT use -z defs as we might desire, because we do not
13475 # link with -lc, and that would cause any symbols used from libc to
13476 # always be unresolved, which means just about no library would
13477 # ever link correctly. If we're not using GNU ld we use -z text
13478 # though, which does catch some bad symbols but isn't as heavy-handed
13479 # as -z defs.
13480 no_undefined_flag='$wl-z,text'
13481 allow_undefined_flag='$wl-z,nodefs'
13482 archive_cmds_need_lc=no
13483 hardcode_shlibpath_var=no
13484 hardcode_libdir_flag_spec='$wl-R,$libdir'
13485 hardcode_libdir_separator=':'
13486 link_all_deplibs=yes
13487 export_dynamic_flag_spec='$wl-Bexport'
13488 runpath_var='LD_RUN_PATH'
13489
13490 if test yes = "$GCC"; then
13491 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13492 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13493 else
13494 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13495 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13496 fi
13497 ;;
13498
13499 uts4*)
13500 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13501 hardcode_libdir_flag_spec='-L$libdir'
13502 hardcode_shlibpath_var=no
13503 ;;
13504
13505 *)
13506 ld_shlibs=no
13507 ;;
13508 esac
13509
13510 if test sni = "$host_vendor"; then
13511 case $host in
13512 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13513 export_dynamic_flag_spec='$wl-Blargedynsym'
13514 ;;
13515 esac
13516 fi
13517 fi
13518
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13520 $as_echo "$ld_shlibs" >&6; }
13521 test no = "$ld_shlibs" && can_build_shared=no
13522
13523 with_gnu_ld=$with_gnu_ld
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539 #
13540 # Do we need to explicitly link libc?
13541 #
13542 case "x$archive_cmds_need_lc" in
13543 x|xyes)
13544 # Assume -lc should be added
13545 archive_cmds_need_lc=yes
13546
13547 if test yes,yes = "$GCC,$enable_shared"; then
13548 case $archive_cmds in
13549 *'~'*)
13550 # FIXME: we may have to deal with multi-command sequences.
13551 ;;
13552 '$CC '*)
13553 # Test whether the compiler implicitly links with -lc since on some
13554 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13555 # to ld, don't add -lc before -lgcc.
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13557 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13558 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13559 $as_echo_n "(cached) " >&6
13560 else
13561 $RM conftest*
13562 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13563
13564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13565 (eval $ac_compile) 2>&5
13566 ac_status=$?
13567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13568 test $ac_status = 0; } 2>conftest.err; then
13569 soname=conftest
13570 lib=conftest
13571 libobjs=conftest.$ac_objext
13572 deplibs=
13573 wl=$lt_prog_compiler_wl
13574 pic_flag=$lt_prog_compiler_pic
13575 compiler_flags=-v
13576 linker_flags=-v
13577 verstring=
13578 output_objdir=.
13579 libname=conftest
13580 lt_save_allow_undefined_flag=$allow_undefined_flag
13581 allow_undefined_flag=
13582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13583 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13584 ac_status=$?
13585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13586 test $ac_status = 0; }
13587 then
13588 lt_cv_archive_cmds_need_lc=no
13589 else
13590 lt_cv_archive_cmds_need_lc=yes
13591 fi
13592 allow_undefined_flag=$lt_save_allow_undefined_flag
13593 else
13594 cat conftest.err 1>&5
13595 fi
13596 $RM conftest*
13597
13598 fi
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13600 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13601 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13602 ;;
13603 esac
13604 fi
13605 ;;
13606 esac
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13760 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13761
13762 if test yes = "$GCC"; then
13763 case $host_os in
13764 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13765 *) lt_awk_arg='/^libraries:/' ;;
13766 esac
13767 case $host_os in
13768 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13769 *) lt_sed_strip_eq='s|=/|/|g' ;;
13770 esac
13771 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13772 case $lt_search_path_spec in
13773 *\;*)
13774 # if the path contains ";" then we assume it to be the separator
13775 # otherwise default to the standard path separator (i.e. ":") - it is
13776 # assumed that no part of a normal pathname contains ";" but that should
13777 # okay in the real world where ";" in dirpaths is itself problematic.
13778 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13779 ;;
13780 *)
13781 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13782 ;;
13783 esac
13784 # Ok, now we have the path, separated by spaces, we can step through it
13785 # and add multilib dir if necessary...
13786 lt_tmp_lt_search_path_spec=
13787 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13788 # ...but if some path component already ends with the multilib dir we assume
13789 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13790 case "$lt_multi_os_dir; $lt_search_path_spec " in
13791 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13792 lt_multi_os_dir=
13793 ;;
13794 esac
13795 for lt_sys_path in $lt_search_path_spec; do
13796 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13797 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13798 elif test -n "$lt_multi_os_dir"; then
13799 test -d "$lt_sys_path" && \
13800 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13801 fi
13802 done
13803 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13804 BEGIN {RS = " "; FS = "/|\n";} {
13805 lt_foo = "";
13806 lt_count = 0;
13807 for (lt_i = NF; lt_i > 0; lt_i--) {
13808 if ($lt_i != "" && $lt_i != ".") {
13809 if ($lt_i == "..") {
13810 lt_count++;
13811 } else {
13812 if (lt_count == 0) {
13813 lt_foo = "/" $lt_i lt_foo;
13814 } else {
13815 lt_count--;
13816 }
13817 }
13818 }
13819 }
13820 if (lt_foo != "") { lt_freq[lt_foo]++; }
13821 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13822 }'`
13823 # AWK program above erroneously prepends '/' to C:/dos/paths
13824 # for these hosts.
13825 case $host_os in
13826 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13827 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13828 esac
13829 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13830 else
13831 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13832 fi
13833 library_names_spec=
13834 libname_spec='lib$name'
13835 soname_spec=
13836 shrext_cmds=.so
13837 postinstall_cmds=
13838 postuninstall_cmds=
13839 finish_cmds=
13840 finish_eval=
13841 shlibpath_var=
13842 shlibpath_overrides_runpath=unknown
13843 version_type=none
13844 dynamic_linker="$host_os ld.so"
13845 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13846 need_lib_prefix=unknown
13847 hardcode_into_libs=no
13848
13849 # when you set need_version to no, make sure it does not cause -set_version
13850 # flags to be left without arguments
13851 need_version=unknown
13852
13853
13854
13855 case $host_os in
13856 aix3*)
13857 version_type=linux # correct to gnu/linux during the next big refactor
13858 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13859 shlibpath_var=LIBPATH
13860
13861 # AIX 3 has no versioning support, so we append a major version to the name.
13862 soname_spec='$libname$release$shared_ext$major'
13863 ;;
13864
13865 aix[4-9]*)
13866 version_type=linux # correct to gnu/linux during the next big refactor
13867 need_lib_prefix=no
13868 need_version=no
13869 hardcode_into_libs=yes
13870 if test ia64 = "$host_cpu"; then
13871 # AIX 5 supports IA64
13872 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13873 shlibpath_var=LD_LIBRARY_PATH
13874 else
13875 # With GCC up to 2.95.x, collect2 would create an import file
13876 # for dependence libraries. The import file would start with
13877 # the line '#! .'. This would cause the generated library to
13878 # depend on '.', always an invalid library. This was fixed in
13879 # development snapshots of GCC prior to 3.0.
13880 case $host_os in
13881 aix4 | aix4.[01] | aix4.[01].*)
13882 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13883 echo ' yes '
13884 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13885 :
13886 else
13887 can_build_shared=no
13888 fi
13889 ;;
13890 esac
13891 # Using Import Files as archive members, it is possible to support
13892 # filename-based versioning of shared library archives on AIX. While
13893 # this would work for both with and without runtime linking, it will
13894 # prevent static linking of such archives. So we do filename-based
13895 # shared library versioning with .so extension only, which is used
13896 # when both runtime linking and shared linking is enabled.
13897 # Unfortunately, runtime linking may impact performance, so we do
13898 # not want this to be the default eventually. Also, we use the
13899 # versioned .so libs for executables only if there is the -brtl
13900 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13901 # To allow for filename-based versioning support, we need to create
13902 # libNAME.so.V as an archive file, containing:
13903 # *) an Import File, referring to the versioned filename of the
13904 # archive as well as the shared archive member, telling the
13905 # bitwidth (32 or 64) of that shared object, and providing the
13906 # list of exported symbols of that shared object, eventually
13907 # decorated with the 'weak' keyword
13908 # *) the shared object with the F_LOADONLY flag set, to really avoid
13909 # it being seen by the linker.
13910 # At run time we better use the real file rather than another symlink,
13911 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13912
13913 case $with_aix_soname,$aix_use_runtimelinking in
13914 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13915 # soname into executable. Probably we can add versioning support to
13916 # collect2, so additional links can be useful in future.
13917 aix,yes) # traditional libtool
13918 dynamic_linker='AIX unversionable lib.so'
13919 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13920 # instead of lib<name>.a to let people know that these are not
13921 # typical AIX shared libraries.
13922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13923 ;;
13924 aix,no) # traditional AIX only
13925 dynamic_linker='AIX lib.a(lib.so.V)'
13926 # We preserve .a as extension for shared libraries through AIX4.2
13927 # and later when we are not doing run time linking.
13928 library_names_spec='$libname$release.a $libname.a'
13929 soname_spec='$libname$release$shared_ext$major'
13930 ;;
13931 svr4,*) # full svr4 only
13932 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13933 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13934 # We do not specify a path in Import Files, so LIBPATH fires.
13935 shlibpath_overrides_runpath=yes
13936 ;;
13937 *,yes) # both, prefer svr4
13938 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13939 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13940 # unpreferred sharedlib libNAME.a needs extra handling
13941 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13942 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13943 # We do not specify a path in Import Files, so LIBPATH fires.
13944 shlibpath_overrides_runpath=yes
13945 ;;
13946 *,no) # both, prefer aix
13947 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13948 library_names_spec='$libname$release.a $libname.a'
13949 soname_spec='$libname$release$shared_ext$major'
13950 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13951 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13952 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13953 ;;
13954 esac
13955 shlibpath_var=LIBPATH
13956 fi
13957 ;;
13958
13959 amigaos*)
13960 case $host_cpu in
13961 powerpc)
13962 # Since July 2007 AmigaOS4 officially supports .so libraries.
13963 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13964 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13965 ;;
13966 m68k)
13967 library_names_spec='$libname.ixlibrary $libname.a'
13968 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13969 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
13970 ;;
13971 esac
13972 ;;
13973
13974 beos*)
13975 library_names_spec='$libname$shared_ext'
13976 dynamic_linker="$host_os ld.so"
13977 shlibpath_var=LIBRARY_PATH
13978 ;;
13979
13980 bsdi[45]*)
13981 version_type=linux # correct to gnu/linux during the next big refactor
13982 need_version=no
13983 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13984 soname_spec='$libname$release$shared_ext$major'
13985 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13986 shlibpath_var=LD_LIBRARY_PATH
13987 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13988 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13989 # the default ld.so.conf also contains /usr/contrib/lib and
13990 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13991 # libtool to hard-code these into programs
13992 ;;
13993
13994 cygwin* | mingw* | pw32* | cegcc*)
13995 version_type=windows
13996 shrext_cmds=.dll
13997 need_version=no
13998 need_lib_prefix=no
13999
14000 case $GCC,$cc_basename in
14001 yes,*)
14002 # gcc
14003 library_names_spec='$libname.dll.a'
14004 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14005 postinstall_cmds='base_file=`basename \$file`~
14006 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14007 dldir=$destdir/`dirname \$dlpath`~
14008 test -d \$dldir || mkdir -p \$dldir~
14009 $install_prog $dir/$dlname \$dldir/$dlname~
14010 chmod a+x \$dldir/$dlname~
14011 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14012 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14013 fi'
14014 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14015 dlpath=$dir/\$dldll~
14016 $RM \$dlpath'
14017 shlibpath_overrides_runpath=yes
14018
14019 case $host_os in
14020 cygwin*)
14021 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14022 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14023
14024 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14025 ;;
14026 mingw* | cegcc*)
14027 # MinGW DLLs use traditional 'lib' prefix
14028 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14029 ;;
14030 pw32*)
14031 # pw32 DLLs use 'pw' prefix rather than 'lib'
14032 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14033 ;;
14034 esac
14035 dynamic_linker='Win32 ld.exe'
14036 ;;
14037
14038 *,cl*)
14039 # Native MSVC
14040 libname_spec='$name'
14041 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14042 library_names_spec='$libname.dll.lib'
14043
14044 case $build_os in
14045 mingw*)
14046 sys_lib_search_path_spec=
14047 lt_save_ifs=$IFS
14048 IFS=';'
14049 for lt_path in $LIB
14050 do
14051 IFS=$lt_save_ifs
14052 # Let DOS variable expansion print the short 8.3 style file name.
14053 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14054 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14055 done
14056 IFS=$lt_save_ifs
14057 # Convert to MSYS style.
14058 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14059 ;;
14060 cygwin*)
14061 # Convert to unix form, then to dos form, then back to unix form
14062 # but this time dos style (no spaces!) so that the unix form looks
14063 # like /cygdrive/c/PROGRA~1:/cygdr...
14064 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14065 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14066 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14067 ;;
14068 *)
14069 sys_lib_search_path_spec=$LIB
14070 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14071 # It is most probably a Windows format PATH.
14072 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14073 else
14074 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14075 fi
14076 # FIXME: find the short name or the path components, as spaces are
14077 # common. (e.g. "Program Files" -> "PROGRA~1")
14078 ;;
14079 esac
14080
14081 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14082 postinstall_cmds='base_file=`basename \$file`~
14083 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14084 dldir=$destdir/`dirname \$dlpath`~
14085 test -d \$dldir || mkdir -p \$dldir~
14086 $install_prog $dir/$dlname \$dldir/$dlname'
14087 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14088 dlpath=$dir/\$dldll~
14089 $RM \$dlpath'
14090 shlibpath_overrides_runpath=yes
14091 dynamic_linker='Win32 link.exe'
14092 ;;
14093
14094 *)
14095 # Assume MSVC wrapper
14096 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14097 dynamic_linker='Win32 ld.exe'
14098 ;;
14099 esac
14100 # FIXME: first we should search . and the directory the executable is in
14101 shlibpath_var=PATH
14102 ;;
14103
14104 darwin* | rhapsody*)
14105 dynamic_linker="$host_os dyld"
14106 version_type=darwin
14107 need_lib_prefix=no
14108 need_version=no
14109 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14110 soname_spec='$libname$release$major$shared_ext'
14111 shlibpath_overrides_runpath=yes
14112 shlibpath_var=DYLD_LIBRARY_PATH
14113 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14114
14115 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14116 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14117 ;;
14118
14119 dgux*)
14120 version_type=linux # correct to gnu/linux during the next big refactor
14121 need_lib_prefix=no
14122 need_version=no
14123 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14124 soname_spec='$libname$release$shared_ext$major'
14125 shlibpath_var=LD_LIBRARY_PATH
14126 ;;
14127
14128 freebsd* | dragonfly*)
14129 # DragonFly does not have aout. When/if they implement a new
14130 # versioning mechanism, adjust this.
14131 if test -x /usr/bin/objformat; then
14132 objformat=`/usr/bin/objformat`
14133 else
14134 case $host_os in
14135 freebsd[23].*) objformat=aout ;;
14136 *) objformat=elf ;;
14137 esac
14138 fi
14139 version_type=freebsd-$objformat
14140 case $version_type in
14141 freebsd-elf*)
14142 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14143 soname_spec='$libname$release$shared_ext$major'
14144 need_version=no
14145 need_lib_prefix=no
14146 ;;
14147 freebsd-*)
14148 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14149 need_version=yes
14150 ;;
14151 esac
14152 shlibpath_var=LD_LIBRARY_PATH
14153 case $host_os in
14154 freebsd2.*)
14155 shlibpath_overrides_runpath=yes
14156 ;;
14157 freebsd3.[01]* | freebsdelf3.[01]*)
14158 shlibpath_overrides_runpath=yes
14159 hardcode_into_libs=yes
14160 ;;
14161 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14162 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14163 shlibpath_overrides_runpath=no
14164 hardcode_into_libs=yes
14165 ;;
14166 *) # from 4.6 on, and DragonFly
14167 shlibpath_overrides_runpath=yes
14168 hardcode_into_libs=yes
14169 ;;
14170 esac
14171 ;;
14172
14173 haiku*)
14174 version_type=linux # correct to gnu/linux during the next big refactor
14175 need_lib_prefix=no
14176 need_version=no
14177 dynamic_linker="$host_os runtime_loader"
14178 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14179 soname_spec='$libname$release$shared_ext$major'
14180 shlibpath_var=LIBRARY_PATH
14181 shlibpath_overrides_runpath=no
14182 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14183 hardcode_into_libs=yes
14184 ;;
14185
14186 hpux9* | hpux10* | hpux11*)
14187 # Give a soname corresponding to the major version so that dld.sl refuses to
14188 # link against other versions.
14189 version_type=sunos
14190 need_lib_prefix=no
14191 need_version=no
14192 case $host_cpu in
14193 ia64*)
14194 shrext_cmds='.so'
14195 hardcode_into_libs=yes
14196 dynamic_linker="$host_os dld.so"
14197 shlibpath_var=LD_LIBRARY_PATH
14198 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14199 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14200 soname_spec='$libname$release$shared_ext$major'
14201 if test 32 = "$HPUX_IA64_MODE"; then
14202 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14203 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14204 else
14205 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14206 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14207 fi
14208 ;;
14209 hppa*64*)
14210 shrext_cmds='.sl'
14211 hardcode_into_libs=yes
14212 dynamic_linker="$host_os dld.sl"
14213 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14214 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14215 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14216 soname_spec='$libname$release$shared_ext$major'
14217 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14218 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14219 ;;
14220 *)
14221 shrext_cmds='.sl'
14222 dynamic_linker="$host_os dld.sl"
14223 shlibpath_var=SHLIB_PATH
14224 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14225 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14226 soname_spec='$libname$release$shared_ext$major'
14227 ;;
14228 esac
14229 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14230 postinstall_cmds='chmod 555 $lib'
14231 # or fails outright, so override atomically:
14232 install_override_mode=555
14233 ;;
14234
14235 interix[3-9]*)
14236 version_type=linux # correct to gnu/linux during the next big refactor
14237 need_lib_prefix=no
14238 need_version=no
14239 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14240 soname_spec='$libname$release$shared_ext$major'
14241 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14242 shlibpath_var=LD_LIBRARY_PATH
14243 shlibpath_overrides_runpath=no
14244 hardcode_into_libs=yes
14245 ;;
14246
14247 irix5* | irix6* | nonstopux*)
14248 case $host_os in
14249 nonstopux*) version_type=nonstopux ;;
14250 *)
14251 if test yes = "$lt_cv_prog_gnu_ld"; then
14252 version_type=linux # correct to gnu/linux during the next big refactor
14253 else
14254 version_type=irix
14255 fi ;;
14256 esac
14257 need_lib_prefix=no
14258 need_version=no
14259 soname_spec='$libname$release$shared_ext$major'
14260 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14261 case $host_os in
14262 irix5* | nonstopux*)
14263 libsuff= shlibsuff=
14264 ;;
14265 *)
14266 case $LD in # libtool.m4 will add one of these switches to LD
14267 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14268 libsuff= shlibsuff= libmagic=32-bit;;
14269 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14270 libsuff=32 shlibsuff=N32 libmagic=N32;;
14271 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14272 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14273 *) libsuff= shlibsuff= libmagic=never-match;;
14274 esac
14275 ;;
14276 esac
14277 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14278 shlibpath_overrides_runpath=no
14279 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14280 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14281 hardcode_into_libs=yes
14282 ;;
14283
14284 # No shared lib support for Linux oldld, aout, or coff.
14285 linux*oldld* | linux*aout* | linux*coff*)
14286 dynamic_linker=no
14287 ;;
14288
14289 linux*android*)
14290 version_type=none # Android doesn't support versioned libraries.
14291 need_lib_prefix=no
14292 need_version=no
14293 library_names_spec='$libname$release$shared_ext'
14294 soname_spec='$libname$release$shared_ext'
14295 finish_cmds=
14296 shlibpath_var=LD_LIBRARY_PATH
14297 shlibpath_overrides_runpath=yes
14298
14299 # This implies no fast_install, which is unacceptable.
14300 # Some rework will be needed to allow for fast_install
14301 # before this can be enabled.
14302 hardcode_into_libs=yes
14303
14304 dynamic_linker='Android linker'
14305 # Don't embed -rpath directories since the linker doesn't support them.
14306 hardcode_libdir_flag_spec='-L$libdir'
14307 ;;
14308
14309 # This must be glibc/ELF.
14310 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14311 version_type=linux # correct to gnu/linux during the next big refactor
14312 need_lib_prefix=no
14313 need_version=no
14314 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14315 soname_spec='$libname$release$shared_ext$major'
14316 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14317 shlibpath_var=LD_LIBRARY_PATH
14318 shlibpath_overrides_runpath=no
14319
14320 # Some binutils ld are patched to set DT_RUNPATH
14321 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14322 $as_echo_n "(cached) " >&6
14323 else
14324 lt_cv_shlibpath_overrides_runpath=no
14325 save_LDFLAGS=$LDFLAGS
14326 save_libdir=$libdir
14327 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14328 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14330 /* end confdefs.h. */
14331
14332 int
14333 main ()
14334 {
14335
14336 ;
14337 return 0;
14338 }
14339 _ACEOF
14340 if ac_fn_c_try_link "$LINENO"; then :
14341 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14342 lt_cv_shlibpath_overrides_runpath=yes
14343 fi
14344 fi
14345 rm -f core conftest.err conftest.$ac_objext \
14346 conftest$ac_exeext conftest.$ac_ext
14347 LDFLAGS=$save_LDFLAGS
14348 libdir=$save_libdir
14349
14350 fi
14351
14352 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14353
14354 # This implies no fast_install, which is unacceptable.
14355 # Some rework will be needed to allow for fast_install
14356 # before this can be enabled.
14357 hardcode_into_libs=yes
14358
14359 # Ideally, we could use ldconfig to report *all* directores which are
14360 # searched for libraries, however this is still not possible. Aside from not
14361 # being certain /sbin/ldconfig is available, command
14362 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14363 # even though it is searched at run-time. Try to do the best guess by
14364 # appending ld.so.conf contents (and includes) to the search path.
14365 if test -f /etc/ld.so.conf; then
14366 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14367 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14368 fi
14369
14370 # We used to test for /lib/ld.so.1 and disable shared libraries on
14371 # powerpc, because MkLinux only supported shared libraries with the
14372 # GNU dynamic linker. Since this was broken with cross compilers,
14373 # most powerpc-linux boxes support dynamic linking these days and
14374 # people can always --disable-shared, the test was removed, and we
14375 # assume the GNU/Linux dynamic linker is in use.
14376 dynamic_linker='GNU/Linux ld.so'
14377 ;;
14378
14379 netbsdelf*-gnu)
14380 version_type=linux
14381 need_lib_prefix=no
14382 need_version=no
14383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14384 soname_spec='${libname}${release}${shared_ext}$major'
14385 shlibpath_var=LD_LIBRARY_PATH
14386 shlibpath_overrides_runpath=no
14387 hardcode_into_libs=yes
14388 dynamic_linker='NetBSD ld.elf_so'
14389 ;;
14390
14391 netbsd*)
14392 version_type=sunos
14393 need_lib_prefix=no
14394 need_version=no
14395 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14396 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14398 dynamic_linker='NetBSD (a.out) ld.so'
14399 else
14400 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14401 soname_spec='$libname$release$shared_ext$major'
14402 dynamic_linker='NetBSD ld.elf_so'
14403 fi
14404 shlibpath_var=LD_LIBRARY_PATH
14405 shlibpath_overrides_runpath=yes
14406 hardcode_into_libs=yes
14407 ;;
14408
14409 newsos6)
14410 version_type=linux # correct to gnu/linux during the next big refactor
14411 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14412 shlibpath_var=LD_LIBRARY_PATH
14413 shlibpath_overrides_runpath=yes
14414 ;;
14415
14416 *nto* | *qnx*)
14417 version_type=qnx
14418 need_lib_prefix=no
14419 need_version=no
14420 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14421 soname_spec='$libname$release$shared_ext$major'
14422 shlibpath_var=LD_LIBRARY_PATH
14423 shlibpath_overrides_runpath=no
14424 hardcode_into_libs=yes
14425 dynamic_linker='ldqnx.so'
14426 ;;
14427
14428 openbsd* | bitrig*)
14429 version_type=sunos
14430 sys_lib_dlsearch_path_spec=/usr/lib
14431 need_lib_prefix=no
14432 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14433 need_version=no
14434 else
14435 need_version=yes
14436 fi
14437 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14439 shlibpath_var=LD_LIBRARY_PATH
14440 shlibpath_overrides_runpath=yes
14441 ;;
14442
14443 os2*)
14444 libname_spec='$name'
14445 version_type=windows
14446 shrext_cmds=.dll
14447 need_version=no
14448 need_lib_prefix=no
14449 # OS/2 can only load a DLL with a base name of 8 characters or less.
14450 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14451 v=$($ECHO $release$versuffix | tr -d .-);
14452 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14453 $ECHO $n$v`$shared_ext'
14454 library_names_spec='${libname}_dll.$libext'
14455 dynamic_linker='OS/2 ld.exe'
14456 shlibpath_var=BEGINLIBPATH
14457 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14458 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14459 postinstall_cmds='base_file=`basename \$file`~
14460 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14461 dldir=$destdir/`dirname \$dlpath`~
14462 test -d \$dldir || mkdir -p \$dldir~
14463 $install_prog $dir/$dlname \$dldir/$dlname~
14464 chmod a+x \$dldir/$dlname~
14465 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14466 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14467 fi'
14468 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14469 dlpath=$dir/\$dldll~
14470 $RM \$dlpath'
14471 ;;
14472
14473 osf3* | osf4* | osf5*)
14474 version_type=osf
14475 need_lib_prefix=no
14476 need_version=no
14477 soname_spec='$libname$release$shared_ext$major'
14478 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14479 shlibpath_var=LD_LIBRARY_PATH
14480 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14481 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14482 ;;
14483
14484 rdos*)
14485 dynamic_linker=no
14486 ;;
14487
14488 solaris*)
14489 version_type=linux # correct to gnu/linux during the next big refactor
14490 need_lib_prefix=no
14491 need_version=no
14492 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14493 soname_spec='$libname$release$shared_ext$major'
14494 shlibpath_var=LD_LIBRARY_PATH
14495 shlibpath_overrides_runpath=yes
14496 hardcode_into_libs=yes
14497 # ldd complains unless libraries are executable
14498 postinstall_cmds='chmod +x $lib'
14499 ;;
14500
14501 sunos4*)
14502 version_type=sunos
14503 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14504 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14505 shlibpath_var=LD_LIBRARY_PATH
14506 shlibpath_overrides_runpath=yes
14507 if test yes = "$with_gnu_ld"; then
14508 need_lib_prefix=no
14509 fi
14510 need_version=yes
14511 ;;
14512
14513 sysv4 | sysv4.3*)
14514 version_type=linux # correct to gnu/linux during the next big refactor
14515 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14516 soname_spec='$libname$release$shared_ext$major'
14517 shlibpath_var=LD_LIBRARY_PATH
14518 case $host_vendor in
14519 sni)
14520 shlibpath_overrides_runpath=no
14521 need_lib_prefix=no
14522 runpath_var=LD_RUN_PATH
14523 ;;
14524 siemens)
14525 need_lib_prefix=no
14526 ;;
14527 motorola)
14528 need_lib_prefix=no
14529 need_version=no
14530 shlibpath_overrides_runpath=no
14531 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14532 ;;
14533 esac
14534 ;;
14535
14536 sysv4*MP*)
14537 if test -d /usr/nec; then
14538 version_type=linux # correct to gnu/linux during the next big refactor
14539 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14540 soname_spec='$libname$shared_ext.$major'
14541 shlibpath_var=LD_LIBRARY_PATH
14542 fi
14543 ;;
14544
14545 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14546 version_type=sco
14547 need_lib_prefix=no
14548 need_version=no
14549 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14550 soname_spec='$libname$release$shared_ext$major'
14551 shlibpath_var=LD_LIBRARY_PATH
14552 shlibpath_overrides_runpath=yes
14553 hardcode_into_libs=yes
14554 if test yes = "$with_gnu_ld"; then
14555 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14556 else
14557 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14558 case $host_os in
14559 sco3.2v5*)
14560 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14561 ;;
14562 esac
14563 fi
14564 sys_lib_dlsearch_path_spec='/usr/lib'
14565 ;;
14566
14567 tpf*)
14568 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14569 version_type=linux # correct to gnu/linux during the next big refactor
14570 need_lib_prefix=no
14571 need_version=no
14572 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14573 shlibpath_var=LD_LIBRARY_PATH
14574 shlibpath_overrides_runpath=no
14575 hardcode_into_libs=yes
14576 ;;
14577
14578 uts4*)
14579 version_type=linux # correct to gnu/linux during the next big refactor
14580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14581 soname_spec='$libname$release$shared_ext$major'
14582 shlibpath_var=LD_LIBRARY_PATH
14583 ;;
14584
14585 *)
14586 dynamic_linker=no
14587 ;;
14588 esac
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14590 $as_echo "$dynamic_linker" >&6; }
14591 test no = "$dynamic_linker" && can_build_shared=no
14592
14593 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14594 if test yes = "$GCC"; then
14595 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14596 fi
14597
14598 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14599 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14600 fi
14601
14602 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14603 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14604 fi
14605
14606 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14607 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14608
14609 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14610 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14611
14612 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14613 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14712 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14713 hardcode_action=
14714 if test -n "$hardcode_libdir_flag_spec" ||
14715 test -n "$runpath_var" ||
14716 test yes = "$hardcode_automatic"; then
14717
14718 # We can hardcode non-existent directories.
14719 if test no != "$hardcode_direct" &&
14720 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14721 # have to relink, otherwise we might link with an installed library
14722 # when we should be linking with a yet-to-be-installed one
14723 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14724 test no != "$hardcode_minus_L"; then
14725 # Linking always hardcodes the temporary library directory.
14726 hardcode_action=relink
14727 else
14728 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14729 hardcode_action=immediate
14730 fi
14731 else
14732 # We cannot hardcode anything, or else we can only hardcode existing
14733 # directories.
14734 hardcode_action=unsupported
14735 fi
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14737 $as_echo "$hardcode_action" >&6; }
14738
14739 if test relink = "$hardcode_action" ||
14740 test yes = "$inherit_rpath"; then
14741 # Fast installation is not supported
14742 enable_fast_install=no
14743 elif test yes = "$shlibpath_overrides_runpath" ||
14744 test no = "$enable_shared"; then
14745 # Fast installation is not necessary
14746 enable_fast_install=needless
14747 fi
14748
14749
14750
14751
14752
14753
14754 if test yes != "$enable_dlopen"; then
14755 enable_dlopen=unknown
14756 enable_dlopen_self=unknown
14757 enable_dlopen_self_static=unknown
14758 else
14759 lt_cv_dlopen=no
14760 lt_cv_dlopen_libs=
14761
14762 case $host_os in
14763 beos*)
14764 lt_cv_dlopen=load_add_on
14765 lt_cv_dlopen_libs=
14766 lt_cv_dlopen_self=yes
14767 ;;
14768
14769 mingw* | pw32* | cegcc*)
14770 lt_cv_dlopen=LoadLibrary
14771 lt_cv_dlopen_libs=
14772 ;;
14773
14774 cygwin*)
14775 lt_cv_dlopen=dlopen
14776 lt_cv_dlopen_libs=
14777 ;;
14778
14779 darwin*)
14780 # if libdl is installed we need to link against it
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14782 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14783 if ${ac_cv_lib_dl_dlopen+:} false; then :
14784 $as_echo_n "(cached) " >&6
14785 else
14786 ac_check_lib_save_LIBS=$LIBS
14787 LIBS="-ldl $LIBS"
14788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14789 /* end confdefs.h. */
14790
14791 /* Override any GCC internal prototype to avoid an error.
14792 Use char because int might match the return type of a GCC
14793 builtin and then its argument prototype would still apply. */
14794 #ifdef __cplusplus
14795 extern "C"
14796 #endif
14797 char dlopen ();
14798 int
14799 main ()
14800 {
14801 return dlopen ();
14802 ;
14803 return 0;
14804 }
14805 _ACEOF
14806 if ac_fn_c_try_link "$LINENO"; then :
14807 ac_cv_lib_dl_dlopen=yes
14808 else
14809 ac_cv_lib_dl_dlopen=no
14810 fi
14811 rm -f core conftest.err conftest.$ac_objext \
14812 conftest$ac_exeext conftest.$ac_ext
14813 LIBS=$ac_check_lib_save_LIBS
14814 fi
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14816 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14817 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14818 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14819 else
14820
14821 lt_cv_dlopen=dyld
14822 lt_cv_dlopen_libs=
14823 lt_cv_dlopen_self=yes
14824
14825 fi
14826
14827 ;;
14828
14829 tpf*)
14830 # Don't try to run any link tests for TPF. We know it's impossible
14831 # because TPF is a cross-compiler, and we know how we open DSOs.
14832 lt_cv_dlopen=dlopen
14833 lt_cv_dlopen_libs=
14834 lt_cv_dlopen_self=no
14835 ;;
14836
14837 *)
14838 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14839 if test "x$ac_cv_func_shl_load" = xyes; then :
14840 lt_cv_dlopen=shl_load
14841 else
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14843 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14844 if ${ac_cv_lib_dld_shl_load+:} false; then :
14845 $as_echo_n "(cached) " >&6
14846 else
14847 ac_check_lib_save_LIBS=$LIBS
14848 LIBS="-ldld $LIBS"
14849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14850 /* end confdefs.h. */
14851
14852 /* Override any GCC internal prototype to avoid an error.
14853 Use char because int might match the return type of a GCC
14854 builtin and then its argument prototype would still apply. */
14855 #ifdef __cplusplus
14856 extern "C"
14857 #endif
14858 char shl_load ();
14859 int
14860 main ()
14861 {
14862 return shl_load ();
14863 ;
14864 return 0;
14865 }
14866 _ACEOF
14867 if ac_fn_c_try_link "$LINENO"; then :
14868 ac_cv_lib_dld_shl_load=yes
14869 else
14870 ac_cv_lib_dld_shl_load=no
14871 fi
14872 rm -f core conftest.err conftest.$ac_objext \
14873 conftest$ac_exeext conftest.$ac_ext
14874 LIBS=$ac_check_lib_save_LIBS
14875 fi
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14877 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14878 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14879 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14880 else
14881 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14882 if test "x$ac_cv_func_dlopen" = xyes; then :
14883 lt_cv_dlopen=dlopen
14884 else
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14886 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14887 if ${ac_cv_lib_dl_dlopen+:} false; then :
14888 $as_echo_n "(cached) " >&6
14889 else
14890 ac_check_lib_save_LIBS=$LIBS
14891 LIBS="-ldl $LIBS"
14892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14893 /* end confdefs.h. */
14894
14895 /* Override any GCC internal prototype to avoid an error.
14896 Use char because int might match the return type of a GCC
14897 builtin and then its argument prototype would still apply. */
14898 #ifdef __cplusplus
14899 extern "C"
14900 #endif
14901 char dlopen ();
14902 int
14903 main ()
14904 {
14905 return dlopen ();
14906 ;
14907 return 0;
14908 }
14909 _ACEOF
14910 if ac_fn_c_try_link "$LINENO"; then :
14911 ac_cv_lib_dl_dlopen=yes
14912 else
14913 ac_cv_lib_dl_dlopen=no
14914 fi
14915 rm -f core conftest.err conftest.$ac_objext \
14916 conftest$ac_exeext conftest.$ac_ext
14917 LIBS=$ac_check_lib_save_LIBS
14918 fi
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14920 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14921 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14922 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14923 else
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14925 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14926 if ${ac_cv_lib_svld_dlopen+:} false; then :
14927 $as_echo_n "(cached) " >&6
14928 else
14929 ac_check_lib_save_LIBS=$LIBS
14930 LIBS="-lsvld $LIBS"
14931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14932 /* end confdefs.h. */
14933
14934 /* Override any GCC internal prototype to avoid an error.
14935 Use char because int might match the return type of a GCC
14936 builtin and then its argument prototype would still apply. */
14937 #ifdef __cplusplus
14938 extern "C"
14939 #endif
14940 char dlopen ();
14941 int
14942 main ()
14943 {
14944 return dlopen ();
14945 ;
14946 return 0;
14947 }
14948 _ACEOF
14949 if ac_fn_c_try_link "$LINENO"; then :
14950 ac_cv_lib_svld_dlopen=yes
14951 else
14952 ac_cv_lib_svld_dlopen=no
14953 fi
14954 rm -f core conftest.err conftest.$ac_objext \
14955 conftest$ac_exeext conftest.$ac_ext
14956 LIBS=$ac_check_lib_save_LIBS
14957 fi
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14959 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14960 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14961 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14962 else
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14964 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14965 if ${ac_cv_lib_dld_dld_link+:} false; then :
14966 $as_echo_n "(cached) " >&6
14967 else
14968 ac_check_lib_save_LIBS=$LIBS
14969 LIBS="-ldld $LIBS"
14970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14971 /* end confdefs.h. */
14972
14973 /* Override any GCC internal prototype to avoid an error.
14974 Use char because int might match the return type of a GCC
14975 builtin and then its argument prototype would still apply. */
14976 #ifdef __cplusplus
14977 extern "C"
14978 #endif
14979 char dld_link ();
14980 int
14981 main ()
14982 {
14983 return dld_link ();
14984 ;
14985 return 0;
14986 }
14987 _ACEOF
14988 if ac_fn_c_try_link "$LINENO"; then :
14989 ac_cv_lib_dld_dld_link=yes
14990 else
14991 ac_cv_lib_dld_dld_link=no
14992 fi
14993 rm -f core conftest.err conftest.$ac_objext \
14994 conftest$ac_exeext conftest.$ac_ext
14995 LIBS=$ac_check_lib_save_LIBS
14996 fi
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14998 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14999 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15000 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15001 fi
15002
15003
15004 fi
15005
15006
15007 fi
15008
15009
15010 fi
15011
15012
15013 fi
15014
15015
15016 fi
15017
15018 ;;
15019 esac
15020
15021 if test no = "$lt_cv_dlopen"; then
15022 enable_dlopen=no
15023 else
15024 enable_dlopen=yes
15025 fi
15026
15027 case $lt_cv_dlopen in
15028 dlopen)
15029 save_CPPFLAGS=$CPPFLAGS
15030 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15031
15032 save_LDFLAGS=$LDFLAGS
15033 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15034
15035 save_LIBS=$LIBS
15036 LIBS="$lt_cv_dlopen_libs $LIBS"
15037
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15039 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15040 if ${lt_cv_dlopen_self+:} false; then :
15041 $as_echo_n "(cached) " >&6
15042 else
15043 if test yes = "$cross_compiling"; then :
15044 lt_cv_dlopen_self=cross
15045 else
15046 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15047 lt_status=$lt_dlunknown
15048 cat > conftest.$ac_ext <<_LT_EOF
15049 #line $LINENO "configure"
15050 #include "confdefs.h"
15051
15052 #if HAVE_DLFCN_H
15053 #include <dlfcn.h>
15054 #endif
15055
15056 #include <stdio.h>
15057
15058 #ifdef RTLD_GLOBAL
15059 # define LT_DLGLOBAL RTLD_GLOBAL
15060 #else
15061 # ifdef DL_GLOBAL
15062 # define LT_DLGLOBAL DL_GLOBAL
15063 # else
15064 # define LT_DLGLOBAL 0
15065 # endif
15066 #endif
15067
15068 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15069 find out it does not work in some platform. */
15070 #ifndef LT_DLLAZY_OR_NOW
15071 # ifdef RTLD_LAZY
15072 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15073 # else
15074 # ifdef DL_LAZY
15075 # define LT_DLLAZY_OR_NOW DL_LAZY
15076 # else
15077 # ifdef RTLD_NOW
15078 # define LT_DLLAZY_OR_NOW RTLD_NOW
15079 # else
15080 # ifdef DL_NOW
15081 # define LT_DLLAZY_OR_NOW DL_NOW
15082 # else
15083 # define LT_DLLAZY_OR_NOW 0
15084 # endif
15085 # endif
15086 # endif
15087 # endif
15088 #endif
15089
15090 /* When -fvisibility=hidden is used, assume the code has been annotated
15091 correspondingly for the symbols needed. */
15092 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15093 int fnord () __attribute__((visibility("default")));
15094 #endif
15095
15096 int fnord () { return 42; }
15097 int main ()
15098 {
15099 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15100 int status = $lt_dlunknown;
15101
15102 if (self)
15103 {
15104 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15105 else
15106 {
15107 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15108 else puts (dlerror ());
15109 }
15110 /* dlclose (self); */
15111 }
15112 else
15113 puts (dlerror ());
15114
15115 return status;
15116 }
15117 _LT_EOF
15118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15119 (eval $ac_link) 2>&5
15120 ac_status=$?
15121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15122 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15123 (./conftest; exit; ) >&5 2>/dev/null
15124 lt_status=$?
15125 case x$lt_status in
15126 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15127 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15128 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15129 esac
15130 else :
15131 # compilation failed
15132 lt_cv_dlopen_self=no
15133 fi
15134 fi
15135 rm -fr conftest*
15136
15137
15138 fi
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15140 $as_echo "$lt_cv_dlopen_self" >&6; }
15141
15142 if test yes = "$lt_cv_dlopen_self"; then
15143 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15145 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15146 if ${lt_cv_dlopen_self_static+:} false; then :
15147 $as_echo_n "(cached) " >&6
15148 else
15149 if test yes = "$cross_compiling"; then :
15150 lt_cv_dlopen_self_static=cross
15151 else
15152 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15153 lt_status=$lt_dlunknown
15154 cat > conftest.$ac_ext <<_LT_EOF
15155 #line $LINENO "configure"
15156 #include "confdefs.h"
15157
15158 #if HAVE_DLFCN_H
15159 #include <dlfcn.h>
15160 #endif
15161
15162 #include <stdio.h>
15163
15164 #ifdef RTLD_GLOBAL
15165 # define LT_DLGLOBAL RTLD_GLOBAL
15166 #else
15167 # ifdef DL_GLOBAL
15168 # define LT_DLGLOBAL DL_GLOBAL
15169 # else
15170 # define LT_DLGLOBAL 0
15171 # endif
15172 #endif
15173
15174 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15175 find out it does not work in some platform. */
15176 #ifndef LT_DLLAZY_OR_NOW
15177 # ifdef RTLD_LAZY
15178 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15179 # else
15180 # ifdef DL_LAZY
15181 # define LT_DLLAZY_OR_NOW DL_LAZY
15182 # else
15183 # ifdef RTLD_NOW
15184 # define LT_DLLAZY_OR_NOW RTLD_NOW
15185 # else
15186 # ifdef DL_NOW
15187 # define LT_DLLAZY_OR_NOW DL_NOW
15188 # else
15189 # define LT_DLLAZY_OR_NOW 0
15190 # endif
15191 # endif
15192 # endif
15193 # endif
15194 #endif
15195
15196 /* When -fvisibility=hidden is used, assume the code has been annotated
15197 correspondingly for the symbols needed. */
15198 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15199 int fnord () __attribute__((visibility("default")));
15200 #endif
15201
15202 int fnord () { return 42; }
15203 int main ()
15204 {
15205 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15206 int status = $lt_dlunknown;
15207
15208 if (self)
15209 {
15210 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15211 else
15212 {
15213 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15214 else puts (dlerror ());
15215 }
15216 /* dlclose (self); */
15217 }
15218 else
15219 puts (dlerror ());
15220
15221 return status;
15222 }
15223 _LT_EOF
15224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15225 (eval $ac_link) 2>&5
15226 ac_status=$?
15227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15228 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15229 (./conftest; exit; ) >&5 2>/dev/null
15230 lt_status=$?
15231 case x$lt_status in
15232 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15233 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15234 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15235 esac
15236 else :
15237 # compilation failed
15238 lt_cv_dlopen_self_static=no
15239 fi
15240 fi
15241 rm -fr conftest*
15242
15243
15244 fi
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15246 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15247 fi
15248
15249 CPPFLAGS=$save_CPPFLAGS
15250 LDFLAGS=$save_LDFLAGS
15251 LIBS=$save_LIBS
15252 ;;
15253 esac
15254
15255 case $lt_cv_dlopen_self in
15256 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15257 *) enable_dlopen_self=unknown ;;
15258 esac
15259
15260 case $lt_cv_dlopen_self_static in
15261 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15262 *) enable_dlopen_self_static=unknown ;;
15263 esac
15264 fi
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282 striplib=
15283 old_striplib=
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15285 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15286 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15287 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15288 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15290 $as_echo "yes" >&6; }
15291 else
15292 # FIXME - insert some real tests, host_os isn't really good enough
15293 case $host_os in
15294 darwin*)
15295 if test -n "$STRIP"; then
15296 striplib="$STRIP -x"
15297 old_striplib="$STRIP -S"
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15299 $as_echo "yes" >&6; }
15300 else
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15302 $as_echo "no" >&6; }
15303 fi
15304 ;;
15305 *)
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15307 $as_echo "no" >&6; }
15308 ;;
15309 esac
15310 fi
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323 # Report what library types will actually be built
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15325 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15327 $as_echo "$can_build_shared" >&6; }
15328
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15330 $as_echo_n "checking whether to build shared libraries... " >&6; }
15331 test no = "$can_build_shared" && enable_shared=no
15332
15333 # On AIX, shared libraries and static libraries use the same namespace, and
15334 # are all built from PIC.
15335 case $host_os in
15336 aix3*)
15337 test yes = "$enable_shared" && enable_static=no
15338 if test -n "$RANLIB"; then
15339 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15340 postinstall_cmds='$RANLIB $lib'
15341 fi
15342 ;;
15343
15344 aix[4-9]*)
15345 if test ia64 != "$host_cpu"; then
15346 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15347 yes,aix,yes) ;; # shared object as lib.so file only
15348 yes,svr4,*) ;; # shared object as lib.so archive member only
15349 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15350 esac
15351 fi
15352 ;;
15353 esac
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15355 $as_echo "$enable_shared" >&6; }
15356
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15358 $as_echo_n "checking whether to build static libraries... " >&6; }
15359 # Make sure either enable_shared or enable_static is yes.
15360 test yes = "$enable_shared" || enable_static=yes
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15362 $as_echo "$enable_static" >&6; }
15363
15364
15365
15366
15367 fi
15368 ac_ext=cpp
15369 ac_cpp='$CXXCPP $CPPFLAGS'
15370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15373
15374 CC=$lt_save_CC
15375
15376 if test -n "$CXX" && ( test no != "$CXX" &&
15377 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
15378 (test g++ != "$CXX"))); then
15379 ac_ext=cpp
15380 ac_cpp='$CXXCPP $CPPFLAGS'
15381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15385 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15386 if test -z "$CXXCPP"; then
15387 if ${ac_cv_prog_CXXCPP+:} false; then :
15388 $as_echo_n "(cached) " >&6
15389 else
15390 # Double quotes because CXXCPP needs to be expanded
15391 for CXXCPP in "$CXX -E" "/lib/cpp"
15392 do
15393 ac_preproc_ok=false
15394 for ac_cxx_preproc_warn_flag in '' yes
15395 do
15396 # Use a header file that comes with gcc, so configuring glibc
15397 # with a fresh cross-compiler works.
15398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15399 # <limits.h> exists even on freestanding compilers.
15400 # On the NeXT, cc -E runs the code through the compiler's parser,
15401 # not just through cpp. "Syntax error" is here to catch this case.
15402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15403 /* end confdefs.h. */
15404 #ifdef __STDC__
15405 # include <limits.h>
15406 #else
15407 # include <assert.h>
15408 #endif
15409 Syntax error
15410 _ACEOF
15411 if ac_fn_cxx_try_cpp "$LINENO"; then :
15412
15413 else
15414 # Broken: fails on valid input.
15415 continue
15416 fi
15417 rm -f conftest.err conftest.i conftest.$ac_ext
15418
15419 # OK, works on sane cases. Now check whether nonexistent headers
15420 # can be detected and how.
15421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15422 /* end confdefs.h. */
15423 #include <ac_nonexistent.h>
15424 _ACEOF
15425 if ac_fn_cxx_try_cpp "$LINENO"; then :
15426 # Broken: success on invalid input.
15427 continue
15428 else
15429 # Passes both tests.
15430 ac_preproc_ok=:
15431 break
15432 fi
15433 rm -f conftest.err conftest.i conftest.$ac_ext
15434
15435 done
15436 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15437 rm -f conftest.i conftest.err conftest.$ac_ext
15438 if $ac_preproc_ok; then :
15439 break
15440 fi
15441
15442 done
15443 ac_cv_prog_CXXCPP=$CXXCPP
15444
15445 fi
15446 CXXCPP=$ac_cv_prog_CXXCPP
15447 else
15448 ac_cv_prog_CXXCPP=$CXXCPP
15449 fi
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15451 $as_echo "$CXXCPP" >&6; }
15452 ac_preproc_ok=false
15453 for ac_cxx_preproc_warn_flag in '' yes
15454 do
15455 # Use a header file that comes with gcc, so configuring glibc
15456 # with a fresh cross-compiler works.
15457 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15458 # <limits.h> exists even on freestanding compilers.
15459 # On the NeXT, cc -E runs the code through the compiler's parser,
15460 # not just through cpp. "Syntax error" is here to catch this case.
15461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15462 /* end confdefs.h. */
15463 #ifdef __STDC__
15464 # include <limits.h>
15465 #else
15466 # include <assert.h>
15467 #endif
15468 Syntax error
15469 _ACEOF
15470 if ac_fn_cxx_try_cpp "$LINENO"; then :
15471
15472 else
15473 # Broken: fails on valid input.
15474 continue
15475 fi
15476 rm -f conftest.err conftest.i conftest.$ac_ext
15477
15478 # OK, works on sane cases. Now check whether nonexistent headers
15479 # can be detected and how.
15480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15481 /* end confdefs.h. */
15482 #include <ac_nonexistent.h>
15483 _ACEOF
15484 if ac_fn_cxx_try_cpp "$LINENO"; then :
15485 # Broken: success on invalid input.
15486 continue
15487 else
15488 # Passes both tests.
15489 ac_preproc_ok=:
15490 break
15491 fi
15492 rm -f conftest.err conftest.i conftest.$ac_ext
15493
15494 done
15495 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15496 rm -f conftest.i conftest.err conftest.$ac_ext
15497 if $ac_preproc_ok; then :
15498
15499 else
15500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15502 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15503 See \`config.log' for more details" "$LINENO" 5; }
15504 fi
15505
15506 ac_ext=cpp
15507 ac_cpp='$CXXCPP $CPPFLAGS'
15508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15511
15512 else
15513 _lt_caught_CXX_error=yes
15514 fi
15515
15516 ac_ext=cpp
15517 ac_cpp='$CXXCPP $CPPFLAGS'
15518 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15519 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15520 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15521
15522 archive_cmds_need_lc_CXX=no
15523 allow_undefined_flag_CXX=
15524 always_export_symbols_CXX=no
15525 archive_expsym_cmds_CXX=
15526 compiler_needs_object_CXX=no
15527 export_dynamic_flag_spec_CXX=
15528 hardcode_direct_CXX=no
15529 hardcode_direct_absolute_CXX=no
15530 hardcode_libdir_flag_spec_CXX=
15531 hardcode_libdir_separator_CXX=
15532 hardcode_minus_L_CXX=no
15533 hardcode_shlibpath_var_CXX=unsupported
15534 hardcode_automatic_CXX=no
15535 inherit_rpath_CXX=no
15536 module_cmds_CXX=
15537 module_expsym_cmds_CXX=
15538 link_all_deplibs_CXX=unknown
15539 old_archive_cmds_CXX=$old_archive_cmds
15540 reload_flag_CXX=$reload_flag
15541 reload_cmds_CXX=$reload_cmds
15542 no_undefined_flag_CXX=
15543 whole_archive_flag_spec_CXX=
15544 enable_shared_with_static_runtimes_CXX=no
15545
15546 # Source file extension for C++ test sources.
15547 ac_ext=cpp
15548
15549 # Object file extension for compiled C++ test sources.
15550 objext=o
15551 objext_CXX=$objext
15552
15553 # No sense in running all these tests if we already determined that
15554 # the CXX compiler isn't working. Some variables (like enable_shared)
15555 # are currently assumed to apply to all compilers on this platform,
15556 # and will be corrupted by setting them based on a non-working compiler.
15557 if test yes != "$_lt_caught_CXX_error"; then
15558 # Code to be used in simple compile tests
15559 lt_simple_compile_test_code="int some_variable = 0;"
15560
15561 # Code to be used in simple link tests
15562 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15563
15564 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15565
15566
15567
15568
15569
15570
15571 # If no C compiler was specified, use CC.
15572 LTCC=${LTCC-"$CC"}
15573
15574 # If no C compiler flags were specified, use CFLAGS.
15575 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15576
15577 # Allow CC to be a program name with arguments.
15578 compiler=$CC
15579
15580
15581 # save warnings/boilerplate of simple test code
15582 ac_outfile=conftest.$ac_objext
15583 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15584 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15585 _lt_compiler_boilerplate=`cat conftest.err`
15586 $RM conftest*
15587
15588 ac_outfile=conftest.$ac_objext
15589 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15590 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15591 _lt_linker_boilerplate=`cat conftest.err`
15592 $RM -r conftest*
15593
15594
15595 # Allow CC to be a program name with arguments.
15596 lt_save_CC=$CC
15597 lt_save_CFLAGS=$CFLAGS
15598 lt_save_LD=$LD
15599 lt_save_GCC=$GCC
15600 GCC=$GXX
15601 lt_save_with_gnu_ld=$with_gnu_ld
15602 lt_save_path_LD=$lt_cv_path_LD
15603 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15604 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15605 else
15606 $as_unset lt_cv_prog_gnu_ld
15607 fi
15608 if test -n "${lt_cv_path_LDCXX+set}"; then
15609 lt_cv_path_LD=$lt_cv_path_LDCXX
15610 else
15611 $as_unset lt_cv_path_LD
15612 fi
15613 test -z "${LDCXX+set}" || LD=$LDCXX
15614 CC=${CXX-"c++"}
15615 CFLAGS=$CXXFLAGS
15616 compiler=$CC
15617 compiler_CXX=$CC
15618 func_cc_basename $compiler
15619 cc_basename=$func_cc_basename_result
15620
15621
15622 if test -n "$compiler"; then
15623 # We don't want -fno-exception when compiling C++ code, so set the
15624 # no_builtin_flag separately
15625 if test yes = "$GXX"; then
15626 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15627 else
15628 lt_prog_compiler_no_builtin_flag_CXX=
15629 fi
15630
15631 if test yes = "$GXX"; then
15632 # Set up default GNU C++ configuration
15633
15634
15635
15636 # Check whether --with-gnu-ld was given.
15637 if test "${with_gnu_ld+set}" = set; then :
15638 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15639 else
15640 with_gnu_ld=no
15641 fi
15642
15643 ac_prog=ld
15644 if test yes = "$GCC"; then
15645 # Check if gcc -print-prog-name=ld gives a path.
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15647 $as_echo_n "checking for ld used by $CC... " >&6; }
15648 case $host in
15649 *-*-mingw*)
15650 # gcc leaves a trailing carriage return, which upsets mingw
15651 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15652 *)
15653 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15654 esac
15655 case $ac_prog in
15656 # Accept absolute paths.
15657 [\\/]* | ?:[\\/]*)
15658 re_direlt='/[^/][^/]*/\.\./'
15659 # Canonicalize the pathname of ld
15660 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15661 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15662 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15663 done
15664 test -z "$LD" && LD=$ac_prog
15665 ;;
15666 "")
15667 # If it fails, then pretend we aren't using GCC.
15668 ac_prog=ld
15669 ;;
15670 *)
15671 # If it is relative, then search for the first ld in PATH.
15672 with_gnu_ld=unknown
15673 ;;
15674 esac
15675 elif test yes = "$with_gnu_ld"; then
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15677 $as_echo_n "checking for GNU ld... " >&6; }
15678 else
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15680 $as_echo_n "checking for non-GNU ld... " >&6; }
15681 fi
15682 if ${lt_cv_path_LD+:} false; then :
15683 $as_echo_n "(cached) " >&6
15684 else
15685 if test -z "$LD"; then
15686 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15687 for ac_dir in $PATH; do
15688 IFS=$lt_save_ifs
15689 test -z "$ac_dir" && ac_dir=.
15690 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15691 lt_cv_path_LD=$ac_dir/$ac_prog
15692 # Check to see if the program is GNU ld. I'd rather use --version,
15693 # but apparently some variants of GNU ld only accept -v.
15694 # Break only if it was the GNU/non-GNU ld that we prefer.
15695 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15696 *GNU* | *'with BFD'*)
15697 test no != "$with_gnu_ld" && break
15698 ;;
15699 *)
15700 test yes != "$with_gnu_ld" && break
15701 ;;
15702 esac
15703 fi
15704 done
15705 IFS=$lt_save_ifs
15706 else
15707 lt_cv_path_LD=$LD # Let the user override the test with a path.
15708 fi
15709 fi
15710
15711 LD=$lt_cv_path_LD
15712 if test -n "$LD"; then
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15714 $as_echo "$LD" >&6; }
15715 else
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15717 $as_echo "no" >&6; }
15718 fi
15719 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15721 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15722 if ${lt_cv_prog_gnu_ld+:} false; then :
15723 $as_echo_n "(cached) " >&6
15724 else
15725 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15726 case `$LD -v 2>&1 </dev/null` in
15727 *GNU* | *'with BFD'*)
15728 lt_cv_prog_gnu_ld=yes
15729 ;;
15730 *)
15731 lt_cv_prog_gnu_ld=no
15732 ;;
15733 esac
15734 fi
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15736 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15737 with_gnu_ld=$lt_cv_prog_gnu_ld
15738
15739
15740
15741
15742
15743
15744
15745 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15746 # archiving commands below assume that GNU ld is being used.
15747 if test yes = "$with_gnu_ld"; then
15748 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15749 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15750
15751 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15752 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15753
15754 # If archive_cmds runs LD, not CC, wlarc should be empty
15755 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15756 # investigate it a little bit more. (MM)
15757 wlarc='$wl'
15758
15759 # ancient GNU ld didn't support --whole-archive et. al.
15760 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15761 $GREP 'no-whole-archive' > /dev/null; then
15762 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15763 else
15764 whole_archive_flag_spec_CXX=
15765 fi
15766 else
15767 with_gnu_ld=no
15768 wlarc=
15769
15770 # A generic and very simple default shared library creation
15771 # command for GNU C++ for the case where it uses the native
15772 # linker, instead of GNU ld. If possible, this setting should
15773 # overridden to take advantage of the native linker features on
15774 # the platform it is being used on.
15775 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15776 fi
15777
15778 # Commands to make compiler produce verbose output that lists
15779 # what "hidden" libraries, object files and flags are used when
15780 # linking a shared library.
15781 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15782
15783 else
15784 GXX=no
15785 with_gnu_ld=no
15786 wlarc=
15787 fi
15788
15789 # PORTME: fill in a description of your system's C++ link characteristics
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15791 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15792 ld_shlibs_CXX=yes
15793 case $host_os in
15794 aix3*)
15795 # FIXME: insert proper C++ library support
15796 ld_shlibs_CXX=no
15797 ;;
15798 aix[4-9]*)
15799 if test ia64 = "$host_cpu"; then
15800 # On IA64, the linker does run time linking by default, so we don't
15801 # have to do anything special.
15802 aix_use_runtimelinking=no
15803 exp_sym_flag='-Bexport'
15804 no_entry_flag=
15805 else
15806 aix_use_runtimelinking=no
15807
15808 # Test if we are trying to use run time linking or normal
15809 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15810 # have runtime linking enabled, and use it for executables.
15811 # For shared libraries, we enable/disable runtime linking
15812 # depending on the kind of the shared library created -
15813 # when "with_aix_soname,aix_use_runtimelinking" is:
15814 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15815 # "aix,yes" lib.so shared, rtl:yes, for executables
15816 # lib.a static archive
15817 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15818 # lib.a(lib.so.V) shared, rtl:no, for executables
15819 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15820 # lib.a(lib.so.V) shared, rtl:no
15821 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15822 # lib.a static archive
15823 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15824 for ld_flag in $LDFLAGS; do
15825 case $ld_flag in
15826 *-brtl*)
15827 aix_use_runtimelinking=yes
15828 break
15829 ;;
15830 esac
15831 done
15832 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15833 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15834 # so we don't have lib.a shared libs to link our executables.
15835 # We have to force runtime linking in this case.
15836 aix_use_runtimelinking=yes
15837 LDFLAGS="$LDFLAGS -Wl,-brtl"
15838 fi
15839 ;;
15840 esac
15841
15842 exp_sym_flag='-bexport'
15843 no_entry_flag='-bnoentry'
15844 fi
15845
15846 # When large executables or shared objects are built, AIX ld can
15847 # have problems creating the table of contents. If linking a library
15848 # or program results in "error TOC overflow" add -mminimal-toc to
15849 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15850 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15851
15852 archive_cmds_CXX=''
15853 hardcode_direct_CXX=yes
15854 hardcode_direct_absolute_CXX=yes
15855 hardcode_libdir_separator_CXX=':'
15856 link_all_deplibs_CXX=yes
15857 file_list_spec_CXX='$wl-f,'
15858 case $with_aix_soname,$aix_use_runtimelinking in
15859 aix,*) ;; # no import file
15860 svr4,* | *,yes) # use import file
15861 # The Import File defines what to hardcode.
15862 hardcode_direct_CXX=no
15863 hardcode_direct_absolute_CXX=no
15864 ;;
15865 esac
15866
15867 if test yes = "$GXX"; then
15868 case $host_os in aix4.[012]|aix4.[012].*)
15869 # We only want to do this on AIX 4.2 and lower, the check
15870 # below for broken collect2 doesn't work under 4.3+
15871 collect2name=`$CC -print-prog-name=collect2`
15872 if test -f "$collect2name" &&
15873 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15874 then
15875 # We have reworked collect2
15876 :
15877 else
15878 # We have old collect2
15879 hardcode_direct_CXX=unsupported
15880 # It fails to find uninstalled libraries when the uninstalled
15881 # path is not listed in the libpath. Setting hardcode_minus_L
15882 # to unsupported forces relinking
15883 hardcode_minus_L_CXX=yes
15884 hardcode_libdir_flag_spec_CXX='-L$libdir'
15885 hardcode_libdir_separator_CXX=
15886 fi
15887 esac
15888 shared_flag='-shared'
15889 if test yes = "$aix_use_runtimelinking"; then
15890 shared_flag=$shared_flag' $wl-G'
15891 fi
15892 # Need to ensure runtime linking is disabled for the traditional
15893 # shared library, or the linker may eventually find shared libraries
15894 # /with/ Import File - we do not want to mix them.
15895 shared_flag_aix='-shared'
15896 shared_flag_svr4='-shared $wl-G'
15897 else
15898 # not using gcc
15899 if test ia64 = "$host_cpu"; then
15900 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15901 # chokes on -Wl,-G. The following line is correct:
15902 shared_flag='-G'
15903 else
15904 if test yes = "$aix_use_runtimelinking"; then
15905 shared_flag='$wl-G'
15906 else
15907 shared_flag='$wl-bM:SRE'
15908 fi
15909 shared_flag_aix='$wl-bM:SRE'
15910 shared_flag_svr4='$wl-G'
15911 fi
15912 fi
15913
15914 export_dynamic_flag_spec_CXX='$wl-bexpall'
15915 # It seems that -bexpall does not export symbols beginning with
15916 # underscore (_), so it is better to generate a list of symbols to
15917 # export.
15918 always_export_symbols_CXX=yes
15919 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15920 # Warning - without using the other runtime loading flags (-brtl),
15921 # -berok will link without error, but may produce a broken library.
15922 # The "-G" linker flag allows undefined symbols.
15923 no_undefined_flag_CXX='-bernotok'
15924 # Determine the default libpath from the value encoded in an empty
15925 # executable.
15926 if test set = "${lt_cv_aix_libpath+set}"; then
15927 aix_libpath=$lt_cv_aix_libpath
15928 else
15929 if ${lt_cv_aix_libpath__CXX+:} false; then :
15930 $as_echo_n "(cached) " >&6
15931 else
15932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15933 /* end confdefs.h. */
15934
15935 int
15936 main ()
15937 {
15938
15939 ;
15940 return 0;
15941 }
15942 _ACEOF
15943 if ac_fn_cxx_try_link "$LINENO"; then :
15944
15945 lt_aix_libpath_sed='
15946 /Import File Strings/,/^$/ {
15947 /^0/ {
15948 s/^0 *\([^ ]*\) *$/\1/
15949 p
15950 }
15951 }'
15952 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15953 # Check for a 64-bit object if we didn't find anything.
15954 if test -z "$lt_cv_aix_libpath__CXX"; then
15955 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15956 fi
15957 fi
15958 rm -f core conftest.err conftest.$ac_objext \
15959 conftest$ac_exeext conftest.$ac_ext
15960 if test -z "$lt_cv_aix_libpath__CXX"; then
15961 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15962 fi
15963
15964 fi
15965
15966 aix_libpath=$lt_cv_aix_libpath__CXX
15967 fi
15968
15969 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15970
15971 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15972 else
15973 if test ia64 = "$host_cpu"; then
15974 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15975 allow_undefined_flag_CXX="-z nodefs"
15976 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
15977 else
15978 # Determine the default libpath from the value encoded in an
15979 # empty executable.
15980 if test set = "${lt_cv_aix_libpath+set}"; then
15981 aix_libpath=$lt_cv_aix_libpath
15982 else
15983 if ${lt_cv_aix_libpath__CXX+:} false; then :
15984 $as_echo_n "(cached) " >&6
15985 else
15986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15987 /* end confdefs.h. */
15988
15989 int
15990 main ()
15991 {
15992
15993 ;
15994 return 0;
15995 }
15996 _ACEOF
15997 if ac_fn_cxx_try_link "$LINENO"; then :
15998
15999 lt_aix_libpath_sed='
16000 /Import File Strings/,/^$/ {
16001 /^0/ {
16002 s/^0 *\([^ ]*\) *$/\1/
16003 p
16004 }
16005 }'
16006 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16007 # Check for a 64-bit object if we didn't find anything.
16008 if test -z "$lt_cv_aix_libpath__CXX"; then
16009 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16010 fi
16011 fi
16012 rm -f core conftest.err conftest.$ac_objext \
16013 conftest$ac_exeext conftest.$ac_ext
16014 if test -z "$lt_cv_aix_libpath__CXX"; then
16015 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16016 fi
16017
16018 fi
16019
16020 aix_libpath=$lt_cv_aix_libpath__CXX
16021 fi
16022
16023 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16024 # Warning - without using the other run time loading flags,
16025 # -berok will link without error, but may produce a broken library.
16026 no_undefined_flag_CXX=' $wl-bernotok'
16027 allow_undefined_flag_CXX=' $wl-berok'
16028 if test yes = "$with_gnu_ld"; then
16029 # We only use this code for GNU lds that support --whole-archive.
16030 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16031 else
16032 # Exported symbols can be pulled into shared objects from archives
16033 whole_archive_flag_spec_CXX='$convenience'
16034 fi
16035 archive_cmds_need_lc_CXX=yes
16036 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16037 # -brtl affects multiple linker settings, -berok does not and is overridden later
16038 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16039 if test svr4 != "$with_aix_soname"; then
16040 # This is similar to how AIX traditionally builds its shared
16041 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
16042 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
16043 fi
16044 if test aix != "$with_aix_soname"; then
16045 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
16046 else
16047 # used by -dlpreopen to get the symbols
16048 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16049 fi
16050 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
16051 fi
16052 fi
16053 ;;
16054
16055 beos*)
16056 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16057 allow_undefined_flag_CXX=unsupported
16058 # Joseph Beckenbach <[email protected]> says some releases of gcc
16059 # support --undefined. This deserves some investigation. FIXME
16060 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16061 else
16062 ld_shlibs_CXX=no
16063 fi
16064 ;;
16065
16066 chorus*)
16067 case $cc_basename in
16068 *)
16069 # FIXME: insert proper C++ library support
16070 ld_shlibs_CXX=no
16071 ;;
16072 esac
16073 ;;
16074
16075 cygwin* | mingw* | pw32* | cegcc*)
16076 case $GXX,$cc_basename in
16077 ,cl* | no,cl*)
16078 # Native MSVC
16079 # hardcode_libdir_flag_spec is actually meaningless, as there is
16080 # no search path for DLLs.
16081 hardcode_libdir_flag_spec_CXX=' '
16082 allow_undefined_flag_CXX=unsupported
16083 always_export_symbols_CXX=yes
16084 file_list_spec_CXX='@'
16085 # Tell ltmain to make .lib files, not .a files.
16086 libext=lib
16087 # Tell ltmain to make .dll files, not .so files.
16088 shrext_cmds=.dll
16089 # FIXME: Setting linknames here is a bad hack.
16090 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16091 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16092 cp "$export_symbols" "$output_objdir/$soname.def";
16093 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16094 else
16095 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16096 fi~
16097 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16098 linknames='
16099 # The linker will not automatically build a static lib if we build a DLL.
16100 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16101 enable_shared_with_static_runtimes_CXX=yes
16102 # Don't use ranlib
16103 old_postinstall_cmds_CXX='chmod 644 $oldlib'
16104 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16105 lt_tool_outputfile="@TOOL_OUTPUT@"~
16106 case $lt_outputfile in
16107 *.exe|*.EXE) ;;
16108 *)
16109 lt_outputfile=$lt_outputfile.exe
16110 lt_tool_outputfile=$lt_tool_outputfile.exe
16111 ;;
16112 esac~
16113 func_to_tool_file "$lt_outputfile"~
16114 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16115 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16116 $RM "$lt_outputfile.manifest";
16117 fi'
16118 ;;
16119 *)
16120 # g++
16121 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16122 # as there is no search path for DLLs.
16123 hardcode_libdir_flag_spec_CXX='-L$libdir'
16124 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
16125 allow_undefined_flag_CXX=unsupported
16126 always_export_symbols_CXX=no
16127 enable_shared_with_static_runtimes_CXX=yes
16128
16129 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16130 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16131 # If the export-symbols file already is a .def file, use it as
16132 # is; otherwise, prepend EXPORTS...
16133 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16134 cp $export_symbols $output_objdir/$soname.def;
16135 else
16136 echo EXPORTS > $output_objdir/$soname.def;
16137 cat $export_symbols >> $output_objdir/$soname.def;
16138 fi~
16139 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16140 else
16141 ld_shlibs_CXX=no
16142 fi
16143 ;;
16144 esac
16145 ;;
16146 darwin* | rhapsody*)
16147
16148
16149 archive_cmds_need_lc_CXX=no
16150 hardcode_direct_CXX=no
16151 hardcode_automatic_CXX=yes
16152 hardcode_shlibpath_var_CXX=unsupported
16153 if test yes = "$lt_cv_ld_force_load"; then
16154 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
16155
16156 else
16157 whole_archive_flag_spec_CXX=''
16158 fi
16159 link_all_deplibs_CXX=yes
16160 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
16161 case $cc_basename in
16162 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16163 *) _lt_dar_can_shared=$GCC ;;
16164 esac
16165 if test yes = "$_lt_dar_can_shared"; then
16166 output_verbose_link_cmd=func_echo_all
16167 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16168 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16169 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
16170 module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
16171 if test yes != "$lt_cv_apple_cc_single_mod"; then
16172 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$_lt_dsymutil"
16173 archive_expsym_cmds_CXX="sed '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$_lt_dar_export_syms$_lt_dsymutil"
16174 fi
16175
16176 else
16177 ld_shlibs_CXX=no
16178 fi
16179
16180 ;;
16181
16182 os2*)
16183 hardcode_libdir_flag_spec_CXX='-L$libdir'
16184 hardcode_minus_L_CXX=yes
16185 allow_undefined_flag_CXX=unsupported
16186 shrext_cmds=.dll
16187 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16188 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16189 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16190 $ECHO EXPORTS >> $output_objdir/$libname.def~
16191 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16192 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16193 emximp -o $lib $output_objdir/$libname.def'
16194 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16195 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16196 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16197 $ECHO EXPORTS >> $output_objdir/$libname.def~
16198 prefix_cmds="$SED"~
16199 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16200 prefix_cmds="$prefix_cmds -e 1d";
16201 fi~
16202 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16203 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16204 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16205 emximp -o $lib $output_objdir/$libname.def'
16206 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16207 enable_shared_with_static_runtimes_CXX=yes
16208 ;;
16209
16210 dgux*)
16211 case $cc_basename in
16212 ec++*)
16213 # FIXME: insert proper C++ library support
16214 ld_shlibs_CXX=no
16215 ;;
16216 ghcx*)
16217 # Green Hills C++ Compiler
16218 # FIXME: insert proper C++ library support
16219 ld_shlibs_CXX=no
16220 ;;
16221 *)
16222 # FIXME: insert proper C++ library support
16223 ld_shlibs_CXX=no
16224 ;;
16225 esac
16226 ;;
16227
16228 freebsd2.*)
16229 # C++ shared libraries reported to be fairly broken before
16230 # switch to ELF
16231 ld_shlibs_CXX=no
16232 ;;
16233
16234 freebsd-elf*)
16235 archive_cmds_need_lc_CXX=no
16236 ;;
16237
16238 freebsd* | dragonfly*)
16239 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16240 # conventions
16241 ld_shlibs_CXX=yes
16242 ;;
16243
16244 haiku*)
16245 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16246 link_all_deplibs_CXX=yes
16247 ;;
16248
16249 hpux9*)
16250 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16251 hardcode_libdir_separator_CXX=:
16252 export_dynamic_flag_spec_CXX='$wl-E'
16253 hardcode_direct_CXX=yes
16254 hardcode_minus_L_CXX=yes # Not in the search PATH,
16255 # but as the default
16256 # location of the library.
16257
16258 case $cc_basename in
16259 CC*)
16260 # FIXME: insert proper C++ library support
16261 ld_shlibs_CXX=no
16262 ;;
16263 aCC*)
16264 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16265 # Commands to make compiler produce verbose output that lists
16266 # what "hidden" libraries, object files and flags are used when
16267 # linking a shared library.
16268 #
16269 # There doesn't appear to be a way to prevent this compiler from
16270 # explicitly linking system object files so we need to strip them
16271 # from the output so that they don't get included in the library
16272 # dependencies.
16273 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16274 ;;
16275 *)
16276 if test yes = "$GXX"; then
16277 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16278 else
16279 # FIXME: insert proper C++ library support
16280 ld_shlibs_CXX=no
16281 fi
16282 ;;
16283 esac
16284 ;;
16285
16286 hpux10*|hpux11*)
16287 if test no = "$with_gnu_ld"; then
16288 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16289 hardcode_libdir_separator_CXX=:
16290
16291 case $host_cpu in
16292 hppa*64*|ia64*)
16293 ;;
16294 *)
16295 export_dynamic_flag_spec_CXX='$wl-E'
16296 ;;
16297 esac
16298 fi
16299 case $host_cpu in
16300 hppa*64*|ia64*)
16301 hardcode_direct_CXX=no
16302 hardcode_shlibpath_var_CXX=no
16303 ;;
16304 *)
16305 hardcode_direct_CXX=yes
16306 hardcode_direct_absolute_CXX=yes
16307 hardcode_minus_L_CXX=yes # Not in the search PATH,
16308 # but as the default
16309 # location of the library.
16310 ;;
16311 esac
16312
16313 case $cc_basename in
16314 CC*)
16315 # FIXME: insert proper C++ library support
16316 ld_shlibs_CXX=no
16317 ;;
16318 aCC*)
16319 case $host_cpu in
16320 hppa*64*)
16321 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16322 ;;
16323 ia64*)
16324 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16325 ;;
16326 *)
16327 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16328 ;;
16329 esac
16330 # Commands to make compiler produce verbose output that lists
16331 # what "hidden" libraries, object files and flags are used when
16332 # linking a shared library.
16333 #
16334 # There doesn't appear to be a way to prevent this compiler from
16335 # explicitly linking system object files so we need to strip them
16336 # from the output so that they don't get included in the library
16337 # dependencies.
16338 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; func_echo_all "$list"'
16339 ;;
16340 *)
16341 if test yes = "$GXX"; then
16342 if test no = "$with_gnu_ld"; then
16343 case $host_cpu in
16344 hppa*64*)
16345 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16346 ;;
16347 ia64*)
16348 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16349 ;;
16350 *)
16351 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16352 ;;
16353 esac
16354 fi
16355 else
16356 # FIXME: insert proper C++ library support
16357 ld_shlibs_CXX=no
16358 fi
16359 ;;
16360 esac
16361 ;;
16362
16363 interix[3-9]*)
16364 hardcode_direct_CXX=no
16365 hardcode_shlibpath_var_CXX=no
16366 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16367 export_dynamic_flag_spec_CXX='$wl-E'
16368 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16369 # Instead, shared libraries are loaded at an image base (0x10000000 by
16370 # default) and relocated if they conflict, which is a slow very memory
16371 # consuming and fragmenting process. To avoid this, we pick a random,
16372 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16373 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16374 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16375 archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16376 ;;
16377 irix5* | irix6*)
16378 case $cc_basename in
16379 CC*)
16380 # SGI C++
16381 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16382
16383 # Archives containing C++ object files must be created using
16384 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16385 # necessary to make sure instantiated templates are included
16386 # in the archive.
16387 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16388 ;;
16389 *)
16390 if test yes = "$GXX"; then
16391 if test no = "$with_gnu_ld"; then
16392 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
16393 else
16394 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
16395 fi
16396 fi
16397 link_all_deplibs_CXX=yes
16398 ;;
16399 esac
16400 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16401 hardcode_libdir_separator_CXX=:
16402 inherit_rpath_CXX=yes
16403 ;;
16404
16405 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16406 case $cc_basename in
16407 KCC*)
16408 # Kuck and Associates, Inc. (KAI) C++ Compiler
16409
16410 # KCC will only create a shared library if the output file
16411 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16412 # to its proper name (with version) after linking.
16413 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'
16414 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'
16415 # Commands to make compiler produce verbose output that lists
16416 # what "hidden" libraries, object files and flags are used when
16417 # linking a shared library.
16418 #
16419 # There doesn't appear to be a way to prevent this compiler from
16420 # explicitly linking system object files so we need to strip them
16421 # from the output so that they don't get included in the library
16422 # dependencies.
16423 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; func_echo_all "$list"'
16424
16425 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16426 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16427
16428 # Archives containing C++ object files must be created using
16429 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16430 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16431 ;;
16432 icpc* | ecpc* )
16433 # Intel C++
16434 with_gnu_ld=yes
16435 # version 8.0 and above of icpc choke on multiply defined symbols
16436 # if we add $predep_objects and $postdep_objects, however 7.1 and
16437 # earlier do not add the objects themselves.
16438 case `$CC -V 2>&1` in
16439 *"Version 7."*)
16440 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16441 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'
16442 ;;
16443 *) # Version 8.0 or newer
16444 tmp_idyn=
16445 case $host_cpu in
16446 ia64*) tmp_idyn=' -i_dynamic';;
16447 esac
16448 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16449 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'
16450 ;;
16451 esac
16452 archive_cmds_need_lc_CXX=no
16453 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16454 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16455 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16456 ;;
16457 pgCC* | pgcpp*)
16458 # Portland Group C++ compiler
16459 case `$CC -V` in
16460 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16461 prelink_cmds_CXX='tpldir=Template.dir~
16462 rm -rf $tpldir~
16463 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16464 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16465 old_archive_cmds_CXX='tpldir=Template.dir~
16466 rm -rf $tpldir~
16467 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16468 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16469 $RANLIB $oldlib'
16470 archive_cmds_CXX='tpldir=Template.dir~
16471 rm -rf $tpldir~
16472 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16473 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16474 archive_expsym_cmds_CXX='tpldir=Template.dir~
16475 rm -rf $tpldir~
16476 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16477 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16478 ;;
16479 *) # Version 6 and above use weak symbols
16480 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16481 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'
16482 ;;
16483 esac
16484
16485 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
16486 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16487 whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
16488 ;;
16489 cxx*)
16490 # Compaq C++
16491 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16492 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'
16493
16494 runpath_var=LD_RUN_PATH
16495 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16496 hardcode_libdir_separator_CXX=:
16497
16498 # Commands to make compiler produce verbose output that lists
16499 # what "hidden" libraries, object files and flags are used when
16500 # linking a shared library.
16501 #
16502 # There doesn't appear to be a way to prevent this compiler from
16503 # explicitly linking system object files so we need to strip them
16504 # from the output so that they don't get included in the library
16505 # dependencies.
16506 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
16507 ;;
16508 xl* | mpixl* | bgxl*)
16509 # IBM XL 8.0 on PPC, with GNU ld
16510 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16511 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16512 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16513 if test yes = "$supports_anon_versioning"; then
16514 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16515 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16516 echo "local: *; };" >> $output_objdir/$libname.ver~
16517 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16518 fi
16519 ;;
16520 *)
16521 case `$CC -V 2>&1 | sed 5q` in
16522 *Sun\ C*)
16523 # Sun C++ 5.9
16524 no_undefined_flag_CXX=' -zdefs'
16525 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16526 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
16527 hardcode_libdir_flag_spec_CXX='-R$libdir'
16528 whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
16529 compiler_needs_object_CXX=yes
16530
16531 # Not sure whether something based on
16532 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16533 # would be better.
16534 output_verbose_link_cmd='func_echo_all'
16535
16536 # Archives containing C++ object files must be created using
16537 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16538 # necessary to make sure instantiated templates are included
16539 # in the archive.
16540 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16541 ;;
16542 esac
16543 ;;
16544 esac
16545 ;;
16546
16547 lynxos*)
16548 # FIXME: insert proper C++ library support
16549 ld_shlibs_CXX=no
16550 ;;
16551
16552 m88k*)
16553 # FIXME: insert proper C++ library support
16554 ld_shlibs_CXX=no
16555 ;;
16556
16557 mvs*)
16558 case $cc_basename in
16559 cxx*)
16560 # FIXME: insert proper C++ library support
16561 ld_shlibs_CXX=no
16562 ;;
16563 *)
16564 # FIXME: insert proper C++ library support
16565 ld_shlibs_CXX=no
16566 ;;
16567 esac
16568 ;;
16569
16570 netbsd*)
16571 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16572 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16573 wlarc=
16574 hardcode_libdir_flag_spec_CXX='-R$libdir'
16575 hardcode_direct_CXX=yes
16576 hardcode_shlibpath_var_CXX=no
16577 fi
16578 # Workaround some broken pre-1.5 toolchains
16579 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16580 ;;
16581
16582 *nto* | *qnx*)
16583 ld_shlibs_CXX=yes
16584 ;;
16585
16586 openbsd* | bitrig*)
16587 if test -f /usr/libexec/ld.so; then
16588 hardcode_direct_CXX=yes
16589 hardcode_shlibpath_var_CXX=no
16590 hardcode_direct_absolute_CXX=yes
16591 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16592 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16593 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16594 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16595 export_dynamic_flag_spec_CXX='$wl-E'
16596 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16597 fi
16598 output_verbose_link_cmd=func_echo_all
16599 else
16600 ld_shlibs_CXX=no
16601 fi
16602 ;;
16603
16604 osf3* | osf4* | osf5*)
16605 case $cc_basename in
16606 KCC*)
16607 # Kuck and Associates, Inc. (KAI) C++ Compiler
16608
16609 # KCC will only create a shared library if the output file
16610 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16611 # to its proper name (with version) after linking.
16612 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'
16613
16614 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16615 hardcode_libdir_separator_CXX=:
16616
16617 # Archives containing C++ object files must be created using
16618 # the KAI C++ compiler.
16619 case $host in
16620 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16621 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16622 esac
16623 ;;
16624 RCC*)
16625 # Rational C++ 2.4.1
16626 # FIXME: insert proper C++ library support
16627 ld_shlibs_CXX=no
16628 ;;
16629 cxx*)
16630 case $host in
16631 osf3*)
16632 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16633 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16634 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16635 ;;
16636 *)
16637 allow_undefined_flag_CXX=' -expect_unresolved \*'
16638 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16639 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16640 echo "-hidden">> $lib.exp~
16641 $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~
16642 $RM $lib.exp'
16643 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16644 ;;
16645 esac
16646
16647 hardcode_libdir_separator_CXX=:
16648
16649 # Commands to make compiler produce verbose output that lists
16650 # what "hidden" libraries, object files and flags are used when
16651 # linking a shared library.
16652 #
16653 # There doesn't appear to be a way to prevent this compiler from
16654 # explicitly linking system object files so we need to strip them
16655 # from the output so that they don't get included in the library
16656 # dependencies.
16657 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
16658 ;;
16659 *)
16660 if test yes,no = "$GXX,$with_gnu_ld"; then
16661 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16662 case $host in
16663 osf3*)
16664 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
16665 ;;
16666 *)
16667 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
16668 ;;
16669 esac
16670
16671 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16672 hardcode_libdir_separator_CXX=:
16673
16674 # Commands to make compiler produce verbose output that lists
16675 # what "hidden" libraries, object files and flags are used when
16676 # linking a shared library.
16677 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16678
16679 else
16680 # FIXME: insert proper C++ library support
16681 ld_shlibs_CXX=no
16682 fi
16683 ;;
16684 esac
16685 ;;
16686
16687 psos*)
16688 # FIXME: insert proper C++ library support
16689 ld_shlibs_CXX=no
16690 ;;
16691
16692 sunos4*)
16693 case $cc_basename in
16694 CC*)
16695 # Sun C++ 4.x
16696 # FIXME: insert proper C++ library support
16697 ld_shlibs_CXX=no
16698 ;;
16699 lcc*)
16700 # Lucid
16701 # FIXME: insert proper C++ library support
16702 ld_shlibs_CXX=no
16703 ;;
16704 *)
16705 # FIXME: insert proper C++ library support
16706 ld_shlibs_CXX=no
16707 ;;
16708 esac
16709 ;;
16710
16711 solaris*)
16712 case $cc_basename in
16713 CC* | sunCC*)
16714 # Sun C++ 4.2, 5.x and Centerline C++
16715 archive_cmds_need_lc_CXX=yes
16716 no_undefined_flag_CXX=' -zdefs'
16717 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16718 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16719 $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'
16720
16721 hardcode_libdir_flag_spec_CXX='-R$libdir'
16722 hardcode_shlibpath_var_CXX=no
16723 case $host_os in
16724 solaris2.[0-5] | solaris2.[0-5].*) ;;
16725 *)
16726 # The compiler driver will combine and reorder linker options,
16727 # but understands '-z linker_flag'.
16728 # Supported since Solaris 2.6 (maybe 2.5.1?)
16729 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16730 ;;
16731 esac
16732 link_all_deplibs_CXX=yes
16733
16734 output_verbose_link_cmd='func_echo_all'
16735
16736 # Archives containing C++ object files must be created using
16737 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16738 # necessary to make sure instantiated templates are included
16739 # in the archive.
16740 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16741 ;;
16742 gcx*)
16743 # Green Hills C++ Compiler
16744 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16745
16746 # The C++ compiler must be used to create the archive.
16747 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16748 ;;
16749 *)
16750 # GNU C++ compiler with Solaris linker
16751 if test yes,no = "$GXX,$with_gnu_ld"; then
16752 no_undefined_flag_CXX=' $wl-z ${wl}defs'
16753 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16754 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16755 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16756 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16757
16758 # Commands to make compiler produce verbose output that lists
16759 # what "hidden" libraries, object files and flags are used when
16760 # linking a shared library.
16761 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16762 else
16763 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16764 # platform.
16765 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16766 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16767 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16768
16769 # Commands to make compiler produce verbose output that lists
16770 # what "hidden" libraries, object files and flags are used when
16771 # linking a shared library.
16772 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16773 fi
16774
16775 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16776 case $host_os in
16777 solaris2.[0-5] | solaris2.[0-5].*) ;;
16778 *)
16779 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16780 ;;
16781 esac
16782 fi
16783 ;;
16784 esac
16785 ;;
16786
16787 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16788 no_undefined_flag_CXX='$wl-z,text'
16789 archive_cmds_need_lc_CXX=no
16790 hardcode_shlibpath_var_CXX=no
16791 runpath_var='LD_RUN_PATH'
16792
16793 case $cc_basename in
16794 CC*)
16795 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16796 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16797 ;;
16798 *)
16799 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16800 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16801 ;;
16802 esac
16803 ;;
16804
16805 sysv5* | sco3.2v5* | sco5v6*)
16806 # Note: We CANNOT use -z defs as we might desire, because we do not
16807 # link with -lc, and that would cause any symbols used from libc to
16808 # always be unresolved, which means just about no library would
16809 # ever link correctly. If we're not using GNU ld we use -z text
16810 # though, which does catch some bad symbols but isn't as heavy-handed
16811 # as -z defs.
16812 no_undefined_flag_CXX='$wl-z,text'
16813 allow_undefined_flag_CXX='$wl-z,nodefs'
16814 archive_cmds_need_lc_CXX=no
16815 hardcode_shlibpath_var_CXX=no
16816 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16817 hardcode_libdir_separator_CXX=':'
16818 link_all_deplibs_CXX=yes
16819 export_dynamic_flag_spec_CXX='$wl-Bexport'
16820 runpath_var='LD_RUN_PATH'
16821
16822 case $cc_basename in
16823 CC*)
16824 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16825 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16826 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16827 '"$old_archive_cmds_CXX"
16828 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16829 '"$reload_cmds_CXX"
16830 ;;
16831 *)
16832 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16833 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16834 ;;
16835 esac
16836 ;;
16837
16838 tandem*)
16839 case $cc_basename in
16840 NCC*)
16841 # NonStop-UX NCC 3.20
16842 # FIXME: insert proper C++ library support
16843 ld_shlibs_CXX=no
16844 ;;
16845 *)
16846 # FIXME: insert proper C++ library support
16847 ld_shlibs_CXX=no
16848 ;;
16849 esac
16850 ;;
16851
16852 vxworks*)
16853 # FIXME: insert proper C++ library support
16854 ld_shlibs_CXX=no
16855 ;;
16856
16857 *)
16858 # FIXME: insert proper C++ library support
16859 ld_shlibs_CXX=no
16860 ;;
16861 esac
16862
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16864 $as_echo "$ld_shlibs_CXX" >&6; }
16865 test no = "$ld_shlibs_CXX" && can_build_shared=no
16866
16867 GCC_CXX=$GXX
16868 LD_CXX=$LD
16869
16870 ## CAVEAT EMPTOR:
16871 ## There is no encapsulation within the following macros, do not change
16872 ## the running order or otherwise move them around unless you know exactly
16873 ## what you are doing...
16874 # Dependencies to place before and after the object being linked:
16875 predep_objects_CXX=
16876 postdep_objects_CXX=
16877 predeps_CXX=
16878 postdeps_CXX=
16879 compiler_lib_search_path_CXX=
16880
16881 cat > conftest.$ac_ext <<_LT_EOF
16882 class Foo
16883 {
16884 public:
16885 Foo (void) { a = 0; }
16886 private:
16887 int a;
16888 };
16889 _LT_EOF
16890
16891
16892 _lt_libdeps_save_CFLAGS=$CFLAGS
16893 case "$CC $CFLAGS " in #(
16894 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16895 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16896 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16897 esac
16898
16899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16900 (eval $ac_compile) 2>&5
16901 ac_status=$?
16902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16903 test $ac_status = 0; }; then
16904 # Parse the compiler output and extract the necessary
16905 # objects, libraries and library flags.
16906
16907 # Sentinel used to keep track of whether or not we are before
16908 # the conftest object file.
16909 pre_test_object_deps_done=no
16910
16911 for p in `eval "$output_verbose_link_cmd"`; do
16912 case $prev$p in
16913
16914 -L* | -R* | -l*)
16915 # Some compilers place space between "-{L,R}" and the path.
16916 # Remove the space.
16917 if test x-L = "$p" ||
16918 test x-R = "$p"; then
16919 prev=$p
16920 continue
16921 fi
16922
16923 # Expand the sysroot to ease extracting the directories later.
16924 if test -z "$prev"; then
16925 case $p in
16926 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16927 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16928 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16929 esac
16930 fi
16931 case $p in
16932 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16933 esac
16934 if test no = "$pre_test_object_deps_done"; then
16935 case $prev in
16936 -L | -R)
16937 # Internal compiler library paths should come after those
16938 # provided the user. The postdeps already come after the
16939 # user supplied libs so there is no need to process them.
16940 if test -z "$compiler_lib_search_path_CXX"; then
16941 compiler_lib_search_path_CXX=$prev$p
16942 else
16943 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16944 fi
16945 ;;
16946 # The "-l" case would never come before the object being
16947 # linked, so don't bother handling this case.
16948 esac
16949 else
16950 if test -z "$postdeps_CXX"; then
16951 postdeps_CXX=$prev$p
16952 else
16953 postdeps_CXX="${postdeps_CXX} $prev$p"
16954 fi
16955 fi
16956 prev=
16957 ;;
16958
16959 *.lto.$objext) ;; # Ignore GCC LTO objects
16960 *.$objext)
16961 # This assumes that the test object file only shows up
16962 # once in the compiler output.
16963 if test "$p" = "conftest.$objext"; then
16964 pre_test_object_deps_done=yes
16965 continue
16966 fi
16967
16968 if test no = "$pre_test_object_deps_done"; then
16969 if test -z "$predep_objects_CXX"; then
16970 predep_objects_CXX=$p
16971 else
16972 predep_objects_CXX="$predep_objects_CXX $p"
16973 fi
16974 else
16975 if test -z "$postdep_objects_CXX"; then
16976 postdep_objects_CXX=$p
16977 else
16978 postdep_objects_CXX="$postdep_objects_CXX $p"
16979 fi
16980 fi
16981 ;;
16982
16983 *) ;; # Ignore the rest.
16984
16985 esac
16986 done
16987
16988 # Clean up.
16989 rm -f a.out a.exe
16990 else
16991 echo "libtool.m4: error: problem compiling CXX test program"
16992 fi
16993
16994 $RM -f confest.$objext
16995 CFLAGS=$_lt_libdeps_save_CFLAGS
16996
16997 # PORTME: override above test on systems where it is broken
16998 case $host_os in
16999 interix[3-9]*)
17000 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17001 # hack all around it, let's just trust "g++" to DTRT.
17002 predep_objects_CXX=
17003 postdep_objects_CXX=
17004 postdeps_CXX=
17005 ;;
17006 esac
17007
17008
17009 case " $postdeps_CXX " in
17010 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17011 esac
17012 compiler_lib_search_dirs_CXX=
17013 if test -n "${compiler_lib_search_path_CXX}"; then
17014 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
17015 fi
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047 lt_prog_compiler_wl_CXX=
17048 lt_prog_compiler_pic_CXX=
17049 lt_prog_compiler_static_CXX=
17050
17051
17052 # C++ specific cases for pic, static, wl, etc.
17053 if test yes = "$GXX"; then
17054 lt_prog_compiler_wl_CXX='-Wl,'
17055 lt_prog_compiler_static_CXX='-static'
17056
17057 case $host_os in
17058 aix*)
17059 # All AIX code is PIC.
17060 if test ia64 = "$host_cpu"; then
17061 # AIX 5 now supports IA64 processor
17062 lt_prog_compiler_static_CXX='-Bstatic'
17063 fi
17064 lt_prog_compiler_pic_CXX='-fPIC'
17065 ;;
17066
17067 amigaos*)
17068 case $host_cpu in
17069 powerpc)
17070 # see comment about AmigaOS4 .so support
17071 lt_prog_compiler_pic_CXX='-fPIC'
17072 ;;
17073 m68k)
17074 # FIXME: we need at least 68020 code to build shared libraries, but
17075 # adding the '-m68020' flag to GCC prevents building anything better,
17076 # like '-m68040'.
17077 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17078 ;;
17079 esac
17080 ;;
17081
17082 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17083 # PIC is the default for these OSes.
17084 ;;
17085 mingw* | cygwin* | os2* | pw32* | cegcc*)
17086 # This hack is so that the source file can tell whether it is being
17087 # built for inclusion in a dll (and should export symbols for example).
17088 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17089 # (--disable-auto-import) libraries
17090 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17091 case $host_os in
17092 os2*)
17093 lt_prog_compiler_static_CXX='$wl-static'
17094 ;;
17095 esac
17096 ;;
17097 darwin* | rhapsody*)
17098 # PIC is the default on this platform
17099 # Common symbols not allowed in MH_DYLIB files
17100 lt_prog_compiler_pic_CXX='-fno-common'
17101 ;;
17102 *djgpp*)
17103 # DJGPP does not support shared libraries at all
17104 lt_prog_compiler_pic_CXX=
17105 ;;
17106 haiku*)
17107 # PIC is the default for Haiku.
17108 # The "-static" flag exists, but is broken.
17109 lt_prog_compiler_static_CXX=
17110 ;;
17111 interix[3-9]*)
17112 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17113 # Instead, we relocate shared libraries at runtime.
17114 ;;
17115 sysv4*MP*)
17116 if test -d /usr/nec; then
17117 lt_prog_compiler_pic_CXX=-Kconform_pic
17118 fi
17119 ;;
17120 hpux*)
17121 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17122 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17123 # sets the default TLS model and affects inlining.
17124 case $host_cpu in
17125 hppa*64*)
17126 ;;
17127 *)
17128 lt_prog_compiler_pic_CXX='-fPIC'
17129 ;;
17130 esac
17131 ;;
17132 *qnx* | *nto*)
17133 # QNX uses GNU C++, but need to define -shared option too, otherwise
17134 # it will coredump.
17135 lt_prog_compiler_pic_CXX='-fPIC -shared'
17136 ;;
17137 *)
17138 lt_prog_compiler_pic_CXX='-fPIC'
17139 ;;
17140 esac
17141 else
17142 case $host_os in
17143 aix[4-9]*)
17144 # All AIX code is PIC.
17145 if test ia64 = "$host_cpu"; then
17146 # AIX 5 now supports IA64 processor
17147 lt_prog_compiler_static_CXX='-Bstatic'
17148 else
17149 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17150 fi
17151 ;;
17152 chorus*)
17153 case $cc_basename in
17154 cxch68*)
17155 # Green Hills C++ Compiler
17156 # _LT_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"
17157 ;;
17158 esac
17159 ;;
17160 mingw* | cygwin* | os2* | pw32* | cegcc*)
17161 # This hack is so that the source file can tell whether it is being
17162 # built for inclusion in a dll (and should export symbols for example).
17163 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17164 ;;
17165 dgux*)
17166 case $cc_basename in
17167 ec++*)
17168 lt_prog_compiler_pic_CXX='-KPIC'
17169 ;;
17170 ghcx*)
17171 # Green Hills C++ Compiler
17172 lt_prog_compiler_pic_CXX='-pic'
17173 ;;
17174 *)
17175 ;;
17176 esac
17177 ;;
17178 freebsd* | dragonfly*)
17179 # FreeBSD uses GNU C++
17180 ;;
17181 hpux9* | hpux10* | hpux11*)
17182 case $cc_basename in
17183 CC*)
17184 lt_prog_compiler_wl_CXX='-Wl,'
17185 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17186 if test ia64 != "$host_cpu"; then
17187 lt_prog_compiler_pic_CXX='+Z'
17188 fi
17189 ;;
17190 aCC*)
17191 lt_prog_compiler_wl_CXX='-Wl,'
17192 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17193 case $host_cpu in
17194 hppa*64*|ia64*)
17195 # +Z the default
17196 ;;
17197 *)
17198 lt_prog_compiler_pic_CXX='+Z'
17199 ;;
17200 esac
17201 ;;
17202 *)
17203 ;;
17204 esac
17205 ;;
17206 interix*)
17207 # This is c89, which is MS Visual C++ (no shared libs)
17208 # Anyone wants to do a port?
17209 ;;
17210 irix5* | irix6* | nonstopux*)
17211 case $cc_basename in
17212 CC*)
17213 lt_prog_compiler_wl_CXX='-Wl,'
17214 lt_prog_compiler_static_CXX='-non_shared'
17215 # CC pic flag -KPIC is the default.
17216 ;;
17217 *)
17218 ;;
17219 esac
17220 ;;
17221 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17222 case $cc_basename in
17223 KCC*)
17224 # KAI C++ Compiler
17225 lt_prog_compiler_wl_CXX='--backend -Wl,'
17226 lt_prog_compiler_pic_CXX='-fPIC'
17227 ;;
17228 ecpc* )
17229 # old Intel C++ for x86_64, which still supported -KPIC.
17230 lt_prog_compiler_wl_CXX='-Wl,'
17231 lt_prog_compiler_pic_CXX='-KPIC'
17232 lt_prog_compiler_static_CXX='-static'
17233 ;;
17234 icpc* )
17235 # Intel C++, used to be incompatible with GCC.
17236 # ICC 10 doesn't accept -KPIC any more.
17237 lt_prog_compiler_wl_CXX='-Wl,'
17238 lt_prog_compiler_pic_CXX='-fPIC'
17239 lt_prog_compiler_static_CXX='-static'
17240 ;;
17241 pgCC* | pgcpp*)
17242 # Portland Group C++ compiler
17243 lt_prog_compiler_wl_CXX='-Wl,'
17244 lt_prog_compiler_pic_CXX='-fpic'
17245 lt_prog_compiler_static_CXX='-Bstatic'
17246 ;;
17247 cxx*)
17248 # Compaq C++
17249 # Make sure the PIC flag is empty. It appears that all Alpha
17250 # Linux and Compaq Tru64 Unix objects are PIC.
17251 lt_prog_compiler_pic_CXX=
17252 lt_prog_compiler_static_CXX='-non_shared'
17253 ;;
17254 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17255 # IBM XL 8.0, 9.0 on PPC and BlueGene
17256 lt_prog_compiler_wl_CXX='-Wl,'
17257 lt_prog_compiler_pic_CXX='-qpic'
17258 lt_prog_compiler_static_CXX='-qstaticlink'
17259 ;;
17260 *)
17261 case `$CC -V 2>&1 | sed 5q` in
17262 *Sun\ C*)
17263 # Sun C++ 5.9
17264 lt_prog_compiler_pic_CXX='-KPIC'
17265 lt_prog_compiler_static_CXX='-Bstatic'
17266 lt_prog_compiler_wl_CXX='-Qoption ld '
17267 ;;
17268 esac
17269 ;;
17270 esac
17271 ;;
17272 lynxos*)
17273 ;;
17274 m88k*)
17275 ;;
17276 mvs*)
17277 case $cc_basename in
17278 cxx*)
17279 lt_prog_compiler_pic_CXX='-W c,exportall'
17280 ;;
17281 *)
17282 ;;
17283 esac
17284 ;;
17285 netbsd* | netbsdelf*-gnu)
17286 ;;
17287 *qnx* | *nto*)
17288 # QNX uses GNU C++, but need to define -shared option too, otherwise
17289 # it will coredump.
17290 lt_prog_compiler_pic_CXX='-fPIC -shared'
17291 ;;
17292 osf3* | osf4* | osf5*)
17293 case $cc_basename in
17294 KCC*)
17295 lt_prog_compiler_wl_CXX='--backend -Wl,'
17296 ;;
17297 RCC*)
17298 # Rational C++ 2.4.1
17299 lt_prog_compiler_pic_CXX='-pic'
17300 ;;
17301 cxx*)
17302 # Digital/Compaq C++
17303 lt_prog_compiler_wl_CXX='-Wl,'
17304 # Make sure the PIC flag is empty. It appears that all Alpha
17305 # Linux and Compaq Tru64 Unix objects are PIC.
17306 lt_prog_compiler_pic_CXX=
17307 lt_prog_compiler_static_CXX='-non_shared'
17308 ;;
17309 *)
17310 ;;
17311 esac
17312 ;;
17313 psos*)
17314 ;;
17315 solaris*)
17316 case $cc_basename in
17317 CC* | sunCC*)
17318 # Sun C++ 4.2, 5.x and Centerline C++
17319 lt_prog_compiler_pic_CXX='-KPIC'
17320 lt_prog_compiler_static_CXX='-Bstatic'
17321 lt_prog_compiler_wl_CXX='-Qoption ld '
17322 ;;
17323 gcx*)
17324 # Green Hills C++ Compiler
17325 lt_prog_compiler_pic_CXX='-PIC'
17326 ;;
17327 *)
17328 ;;
17329 esac
17330 ;;
17331 sunos4*)
17332 case $cc_basename in
17333 CC*)
17334 # Sun C++ 4.x
17335 lt_prog_compiler_pic_CXX='-pic'
17336 lt_prog_compiler_static_CXX='-Bstatic'
17337 ;;
17338 lcc*)
17339 # Lucid
17340 lt_prog_compiler_pic_CXX='-pic'
17341 ;;
17342 *)
17343 ;;
17344 esac
17345 ;;
17346 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17347 case $cc_basename in
17348 CC*)
17349 lt_prog_compiler_wl_CXX='-Wl,'
17350 lt_prog_compiler_pic_CXX='-KPIC'
17351 lt_prog_compiler_static_CXX='-Bstatic'
17352 ;;
17353 esac
17354 ;;
17355 tandem*)
17356 case $cc_basename in
17357 NCC*)
17358 # NonStop-UX NCC 3.20
17359 lt_prog_compiler_pic_CXX='-KPIC'
17360 ;;
17361 *)
17362 ;;
17363 esac
17364 ;;
17365 vxworks*)
17366 ;;
17367 *)
17368 lt_prog_compiler_can_build_shared_CXX=no
17369 ;;
17370 esac
17371 fi
17372
17373 case $host_os in
17374 # For platforms that do not support PIC, -DPIC is meaningless:
17375 *djgpp*)
17376 lt_prog_compiler_pic_CXX=
17377 ;;
17378 *)
17379 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17380 ;;
17381 esac
17382
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17384 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17385 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
17386 $as_echo_n "(cached) " >&6
17387 else
17388 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17389 fi
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17391 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
17392 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17393
17394 #
17395 # Check to make sure the PIC flag actually works.
17396 #
17397 if test -n "$lt_prog_compiler_pic_CXX"; then
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17399 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17400 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17401 $as_echo_n "(cached) " >&6
17402 else
17403 lt_cv_prog_compiler_pic_works_CXX=no
17404 ac_outfile=conftest.$ac_objext
17405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17406 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
17407 # Insert the option either (1) after the last *FLAGS variable, or
17408 # (2) before a word containing "conftest.", or (3) at the end.
17409 # Note that $ac_compile itself does not contain backslashes and begins
17410 # with a dollar sign (not a hyphen), so the echo should work correctly.
17411 # The option is referenced via a variable to avoid confusing sed.
17412 lt_compile=`echo "$ac_compile" | $SED \
17413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17415 -e 's:$: $lt_compiler_flag:'`
17416 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17417 (eval "$lt_compile" 2>conftest.err)
17418 ac_status=$?
17419 cat conftest.err >&5
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 if (exit $ac_status) && test -s "$ac_outfile"; then
17422 # The compiler can only warn and ignore the option if not recognized
17423 # So say no if there are warnings other than the usual output.
17424 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17426 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17427 lt_cv_prog_compiler_pic_works_CXX=yes
17428 fi
17429 fi
17430 $RM conftest*
17431
17432 fi
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17434 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17435
17436 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
17437 case $lt_prog_compiler_pic_CXX in
17438 "" | " "*) ;;
17439 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17440 esac
17441 else
17442 lt_prog_compiler_pic_CXX=
17443 lt_prog_compiler_can_build_shared_CXX=no
17444 fi
17445
17446 fi
17447
17448
17449
17450
17451
17452 #
17453 # Check to make sure the static flag actually works.
17454 #
17455 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17457 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17458 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
17459 $as_echo_n "(cached) " >&6
17460 else
17461 lt_cv_prog_compiler_static_works_CXX=no
17462 save_LDFLAGS=$LDFLAGS
17463 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17464 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17465 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17466 # The linker can only warn and ignore the option if not recognized
17467 # So say no if there are warnings
17468 if test -s conftest.err; then
17469 # Append any errors to the config.log.
17470 cat conftest.err 1>&5
17471 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17472 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17473 if diff conftest.exp conftest.er2 >/dev/null; then
17474 lt_cv_prog_compiler_static_works_CXX=yes
17475 fi
17476 else
17477 lt_cv_prog_compiler_static_works_CXX=yes
17478 fi
17479 fi
17480 $RM -r conftest*
17481 LDFLAGS=$save_LDFLAGS
17482
17483 fi
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17485 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17486
17487 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
17488 :
17489 else
17490 lt_prog_compiler_static_CXX=
17491 fi
17492
17493
17494
17495
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17497 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17498 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17499 $as_echo_n "(cached) " >&6
17500 else
17501 lt_cv_prog_compiler_c_o_CXX=no
17502 $RM -r conftest 2>/dev/null
17503 mkdir conftest
17504 cd conftest
17505 mkdir out
17506 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17507
17508 lt_compiler_flag="-o out/conftest2.$ac_objext"
17509 # Insert the option either (1) after the last *FLAGS variable, or
17510 # (2) before a word containing "conftest.", or (3) at the end.
17511 # Note that $ac_compile itself does not contain backslashes and begins
17512 # with a dollar sign (not a hyphen), so the echo should work correctly.
17513 lt_compile=`echo "$ac_compile" | $SED \
17514 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17515 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17516 -e 's:$: $lt_compiler_flag:'`
17517 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17518 (eval "$lt_compile" 2>out/conftest.err)
17519 ac_status=$?
17520 cat out/conftest.err >&5
17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17523 then
17524 # The compiler can only warn and ignore the option if not recognized
17525 # So say no if there are warnings
17526 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17527 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17528 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17529 lt_cv_prog_compiler_c_o_CXX=yes
17530 fi
17531 fi
17532 chmod u+w . 2>&5
17533 $RM conftest*
17534 # SGI C++ compiler will create directory out/ii_files/ for
17535 # template instantiation
17536 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17537 $RM out/* && rmdir out
17538 cd ..
17539 $RM -r conftest
17540 $RM conftest*
17541
17542 fi
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17544 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17545
17546
17547
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17549 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17550 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17551 $as_echo_n "(cached) " >&6
17552 else
17553 lt_cv_prog_compiler_c_o_CXX=no
17554 $RM -r conftest 2>/dev/null
17555 mkdir conftest
17556 cd conftest
17557 mkdir out
17558 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17559
17560 lt_compiler_flag="-o out/conftest2.$ac_objext"
17561 # Insert the option either (1) after the last *FLAGS variable, or
17562 # (2) before a word containing "conftest.", or (3) at the end.
17563 # Note that $ac_compile itself does not contain backslashes and begins
17564 # with a dollar sign (not a hyphen), so the echo should work correctly.
17565 lt_compile=`echo "$ac_compile" | $SED \
17566 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17567 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17568 -e 's:$: $lt_compiler_flag:'`
17569 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17570 (eval "$lt_compile" 2>out/conftest.err)
17571 ac_status=$?
17572 cat out/conftest.err >&5
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17575 then
17576 # The compiler can only warn and ignore the option if not recognized
17577 # So say no if there are warnings
17578 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17579 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17580 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17581 lt_cv_prog_compiler_c_o_CXX=yes
17582 fi
17583 fi
17584 chmod u+w . 2>&5
17585 $RM conftest*
17586 # SGI C++ compiler will create directory out/ii_files/ for
17587 # template instantiation
17588 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17589 $RM out/* && rmdir out
17590 cd ..
17591 $RM -r conftest
17592 $RM conftest*
17593
17594 fi
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17596 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17597
17598
17599
17600
17601 hard_links=nottested
17602 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17603 # do not overwrite the value of need_locks provided by the user
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17605 $as_echo_n "checking if we can lock with hard links... " >&6; }
17606 hard_links=yes
17607 $RM conftest*
17608 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17609 touch conftest.a
17610 ln conftest.a conftest.b 2>&5 || hard_links=no
17611 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17613 $as_echo "$hard_links" >&6; }
17614 if test no = "$hard_links"; then
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17616 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17617 need_locks=warn
17618 fi
17619 else
17620 need_locks=no
17621 fi
17622
17623
17624
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17626 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17627
17628 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17629 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17630 case $host_os in
17631 aix[4-9]*)
17632 # If we're using GNU nm, then we don't want the "-C" option.
17633 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17634 # Without the "-l" option, or with the "-B" option, AIX nm treats
17635 # weak defined symbols like other global defined symbols, whereas
17636 # GNU nm marks them as "W".
17637 # While the 'weak' keyword is ignored in the Export File, we need
17638 # it in the Import File for the 'aix-soname' feature, so we have
17639 # to replace the "-B" option with "-P" for AIX nm.
17640 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17641 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
17642 else
17643 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
17644 fi
17645 ;;
17646 pw32*)
17647 export_symbols_cmds_CXX=$ltdll_cmds
17648 ;;
17649 cygwin* | mingw* | cegcc*)
17650 case $cc_basename in
17651 cl*)
17652 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17653 ;;
17654 *)
17655 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17656 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17657 ;;
17658 esac
17659 ;;
17660 linux* | k*bsd*-gnu | gnu*)
17661 link_all_deplibs_CXX=no
17662 ;;
17663 *)
17664 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17665 ;;
17666 esac
17667
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17669 $as_echo "$ld_shlibs_CXX" >&6; }
17670 test no = "$ld_shlibs_CXX" && can_build_shared=no
17671
17672 with_gnu_ld_CXX=$with_gnu_ld
17673
17674
17675
17676
17677
17678
17679 #
17680 # Do we need to explicitly link libc?
17681 #
17682 case "x$archive_cmds_need_lc_CXX" in
17683 x|xyes)
17684 # Assume -lc should be added
17685 archive_cmds_need_lc_CXX=yes
17686
17687 if test yes,yes = "$GCC,$enable_shared"; then
17688 case $archive_cmds_CXX in
17689 *'~'*)
17690 # FIXME: we may have to deal with multi-command sequences.
17691 ;;
17692 '$CC '*)
17693 # Test whether the compiler implicitly links with -lc since on some
17694 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17695 # to ld, don't add -lc before -lgcc.
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17697 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17698 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17699 $as_echo_n "(cached) " >&6
17700 else
17701 $RM conftest*
17702 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17703
17704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17705 (eval $ac_compile) 2>&5
17706 ac_status=$?
17707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17708 test $ac_status = 0; } 2>conftest.err; then
17709 soname=conftest
17710 lib=conftest
17711 libobjs=conftest.$ac_objext
17712 deplibs=
17713 wl=$lt_prog_compiler_wl_CXX
17714 pic_flag=$lt_prog_compiler_pic_CXX
17715 compiler_flags=-v
17716 linker_flags=-v
17717 verstring=
17718 output_objdir=.
17719 libname=conftest
17720 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17721 allow_undefined_flag_CXX=
17722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17723 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17724 ac_status=$?
17725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17726 test $ac_status = 0; }
17727 then
17728 lt_cv_archive_cmds_need_lc_CXX=no
17729 else
17730 lt_cv_archive_cmds_need_lc_CXX=yes
17731 fi
17732 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17733 else
17734 cat conftest.err 1>&5
17735 fi
17736 $RM conftest*
17737
17738 fi
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17740 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17741 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17742 ;;
17743 esac
17744 fi
17745 ;;
17746 esac
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17810 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17811
17812 library_names_spec=
17813 libname_spec='lib$name'
17814 soname_spec=
17815 shrext_cmds=.so
17816 postinstall_cmds=
17817 postuninstall_cmds=
17818 finish_cmds=
17819 finish_eval=
17820 shlibpath_var=
17821 shlibpath_overrides_runpath=unknown
17822 version_type=none
17823 dynamic_linker="$host_os ld.so"
17824 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17825 need_lib_prefix=unknown
17826 hardcode_into_libs=no
17827
17828 # when you set need_version to no, make sure it does not cause -set_version
17829 # flags to be left without arguments
17830 need_version=unknown
17831
17832
17833
17834 case $host_os in
17835 aix3*)
17836 version_type=linux # correct to gnu/linux during the next big refactor
17837 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17838 shlibpath_var=LIBPATH
17839
17840 # AIX 3 has no versioning support, so we append a major version to the name.
17841 soname_spec='$libname$release$shared_ext$major'
17842 ;;
17843
17844 aix[4-9]*)
17845 version_type=linux # correct to gnu/linux during the next big refactor
17846 need_lib_prefix=no
17847 need_version=no
17848 hardcode_into_libs=yes
17849 if test ia64 = "$host_cpu"; then
17850 # AIX 5 supports IA64
17851 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17852 shlibpath_var=LD_LIBRARY_PATH
17853 else
17854 # With GCC up to 2.95.x, collect2 would create an import file
17855 # for dependence libraries. The import file would start with
17856 # the line '#! .'. This would cause the generated library to
17857 # depend on '.', always an invalid library. This was fixed in
17858 # development snapshots of GCC prior to 3.0.
17859 case $host_os in
17860 aix4 | aix4.[01] | aix4.[01].*)
17861 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17862 echo ' yes '
17863 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17864 :
17865 else
17866 can_build_shared=no
17867 fi
17868 ;;
17869 esac
17870 # Using Import Files as archive members, it is possible to support
17871 # filename-based versioning of shared library archives on AIX. While
17872 # this would work for both with and without runtime linking, it will
17873 # prevent static linking of such archives. So we do filename-based
17874 # shared library versioning with .so extension only, which is used
17875 # when both runtime linking and shared linking is enabled.
17876 # Unfortunately, runtime linking may impact performance, so we do
17877 # not want this to be the default eventually. Also, we use the
17878 # versioned .so libs for executables only if there is the -brtl
17879 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17880 # To allow for filename-based versioning support, we need to create
17881 # libNAME.so.V as an archive file, containing:
17882 # *) an Import File, referring to the versioned filename of the
17883 # archive as well as the shared archive member, telling the
17884 # bitwidth (32 or 64) of that shared object, and providing the
17885 # list of exported symbols of that shared object, eventually
17886 # decorated with the 'weak' keyword
17887 # *) the shared object with the F_LOADONLY flag set, to really avoid
17888 # it being seen by the linker.
17889 # At run time we better use the real file rather than another symlink,
17890 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17891
17892 case $with_aix_soname,$aix_use_runtimelinking in
17893 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17894 # soname into executable. Probably we can add versioning support to
17895 # collect2, so additional links can be useful in future.
17896 aix,yes) # traditional libtool
17897 dynamic_linker='AIX unversionable lib.so'
17898 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17899 # instead of lib<name>.a to let people know that these are not
17900 # typical AIX shared libraries.
17901 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17902 ;;
17903 aix,no) # traditional AIX only
17904 dynamic_linker='AIX lib.a(lib.so.V)'
17905 # We preserve .a as extension for shared libraries through AIX4.2
17906 # and later when we are not doing run time linking.
17907 library_names_spec='$libname$release.a $libname.a'
17908 soname_spec='$libname$release$shared_ext$major'
17909 ;;
17910 svr4,*) # full svr4 only
17911 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17912 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17913 # We do not specify a path in Import Files, so LIBPATH fires.
17914 shlibpath_overrides_runpath=yes
17915 ;;
17916 *,yes) # both, prefer svr4
17917 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17918 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17919 # unpreferred sharedlib libNAME.a needs extra handling
17920 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
17921 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
17922 # We do not specify a path in Import Files, so LIBPATH fires.
17923 shlibpath_overrides_runpath=yes
17924 ;;
17925 *,no) # both, prefer aix
17926 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17927 library_names_spec='$libname$release.a $libname.a'
17928 soname_spec='$libname$release$shared_ext$major'
17929 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17930 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
17931 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
17932 ;;
17933 esac
17934 shlibpath_var=LIBPATH
17935 fi
17936 ;;
17937
17938 amigaos*)
17939 case $host_cpu in
17940 powerpc)
17941 # Since July 2007 AmigaOS4 officially supports .so libraries.
17942 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17943 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17944 ;;
17945 m68k)
17946 library_names_spec='$libname.ixlibrary $libname.a'
17947 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17948 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
17949 ;;
17950 esac
17951 ;;
17952
17953 beos*)
17954 library_names_spec='$libname$shared_ext'
17955 dynamic_linker="$host_os ld.so"
17956 shlibpath_var=LIBRARY_PATH
17957 ;;
17958
17959 bsdi[45]*)
17960 version_type=linux # correct to gnu/linux during the next big refactor
17961 need_version=no
17962 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17963 soname_spec='$libname$release$shared_ext$major'
17964 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17965 shlibpath_var=LD_LIBRARY_PATH
17966 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17967 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17968 # the default ld.so.conf also contains /usr/contrib/lib and
17969 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17970 # libtool to hard-code these into programs
17971 ;;
17972
17973 cygwin* | mingw* | pw32* | cegcc*)
17974 version_type=windows
17975 shrext_cmds=.dll
17976 need_version=no
17977 need_lib_prefix=no
17978
17979 case $GCC,$cc_basename in
17980 yes,*)
17981 # gcc
17982 library_names_spec='$libname.dll.a'
17983 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17984 postinstall_cmds='base_file=`basename \$file`~
17985 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17986 dldir=$destdir/`dirname \$dlpath`~
17987 test -d \$dldir || mkdir -p \$dldir~
17988 $install_prog $dir/$dlname \$dldir/$dlname~
17989 chmod a+x \$dldir/$dlname~
17990 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17991 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17992 fi'
17993 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17994 dlpath=$dir/\$dldll~
17995 $RM \$dlpath'
17996 shlibpath_overrides_runpath=yes
17997
17998 case $host_os in
17999 cygwin*)
18000 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18001 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18002
18003 ;;
18004 mingw* | cegcc*)
18005 # MinGW DLLs use traditional 'lib' prefix
18006 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18007 ;;
18008 pw32*)
18009 # pw32 DLLs use 'pw' prefix rather than 'lib'
18010 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18011 ;;
18012 esac
18013 dynamic_linker='Win32 ld.exe'
18014 ;;
18015
18016 *,cl*)
18017 # Native MSVC
18018 libname_spec='$name'
18019 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18020 library_names_spec='$libname.dll.lib'
18021
18022 case $build_os in
18023 mingw*)
18024 sys_lib_search_path_spec=
18025 lt_save_ifs=$IFS
18026 IFS=';'
18027 for lt_path in $LIB
18028 do
18029 IFS=$lt_save_ifs
18030 # Let DOS variable expansion print the short 8.3 style file name.
18031 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18032 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18033 done
18034 IFS=$lt_save_ifs
18035 # Convert to MSYS style.
18036 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18037 ;;
18038 cygwin*)
18039 # Convert to unix form, then to dos form, then back to unix form
18040 # but this time dos style (no spaces!) so that the unix form looks
18041 # like /cygdrive/c/PROGRA~1:/cygdr...
18042 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18043 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18044 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18045 ;;
18046 *)
18047 sys_lib_search_path_spec=$LIB
18048 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18049 # It is most probably a Windows format PATH.
18050 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18051 else
18052 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18053 fi
18054 # FIXME: find the short name or the path components, as spaces are
18055 # common. (e.g. "Program Files" -> "PROGRA~1")
18056 ;;
18057 esac
18058
18059 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18060 postinstall_cmds='base_file=`basename \$file`~
18061 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18062 dldir=$destdir/`dirname \$dlpath`~
18063 test -d \$dldir || mkdir -p \$dldir~
18064 $install_prog $dir/$dlname \$dldir/$dlname'
18065 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18066 dlpath=$dir/\$dldll~
18067 $RM \$dlpath'
18068 shlibpath_overrides_runpath=yes
18069 dynamic_linker='Win32 link.exe'
18070 ;;
18071
18072 *)
18073 # Assume MSVC wrapper
18074 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18075 dynamic_linker='Win32 ld.exe'
18076 ;;
18077 esac
18078 # FIXME: first we should search . and the directory the executable is in
18079 shlibpath_var=PATH
18080 ;;
18081
18082 darwin* | rhapsody*)
18083 dynamic_linker="$host_os dyld"
18084 version_type=darwin
18085 need_lib_prefix=no
18086 need_version=no
18087 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18088 soname_spec='$libname$release$major$shared_ext'
18089 shlibpath_overrides_runpath=yes
18090 shlibpath_var=DYLD_LIBRARY_PATH
18091 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18092
18093 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18094 ;;
18095
18096 dgux*)
18097 version_type=linux # correct to gnu/linux during the next big refactor
18098 need_lib_prefix=no
18099 need_version=no
18100 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18101 soname_spec='$libname$release$shared_ext$major'
18102 shlibpath_var=LD_LIBRARY_PATH
18103 ;;
18104
18105 freebsd* | dragonfly*)
18106 # DragonFly does not have aout. When/if they implement a new
18107 # versioning mechanism, adjust this.
18108 if test -x /usr/bin/objformat; then
18109 objformat=`/usr/bin/objformat`
18110 else
18111 case $host_os in
18112 freebsd[23].*) objformat=aout ;;
18113 *) objformat=elf ;;
18114 esac
18115 fi
18116 version_type=freebsd-$objformat
18117 case $version_type in
18118 freebsd-elf*)
18119 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18120 soname_spec='$libname$release$shared_ext$major'
18121 need_version=no
18122 need_lib_prefix=no
18123 ;;
18124 freebsd-*)
18125 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18126 need_version=yes
18127 ;;
18128 esac
18129 shlibpath_var=LD_LIBRARY_PATH
18130 case $host_os in
18131 freebsd2.*)
18132 shlibpath_overrides_runpath=yes
18133 ;;
18134 freebsd3.[01]* | freebsdelf3.[01]*)
18135 shlibpath_overrides_runpath=yes
18136 hardcode_into_libs=yes
18137 ;;
18138 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18139 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18140 shlibpath_overrides_runpath=no
18141 hardcode_into_libs=yes
18142 ;;
18143 *) # from 4.6 on, and DragonFly
18144 shlibpath_overrides_runpath=yes
18145 hardcode_into_libs=yes
18146 ;;
18147 esac
18148 ;;
18149
18150 haiku*)
18151 version_type=linux # correct to gnu/linux during the next big refactor
18152 need_lib_prefix=no
18153 need_version=no
18154 dynamic_linker="$host_os runtime_loader"
18155 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18156 soname_spec='$libname$release$shared_ext$major'
18157 shlibpath_var=LIBRARY_PATH
18158 shlibpath_overrides_runpath=no
18159 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18160 hardcode_into_libs=yes
18161 ;;
18162
18163 hpux9* | hpux10* | hpux11*)
18164 # Give a soname corresponding to the major version so that dld.sl refuses to
18165 # link against other versions.
18166 version_type=sunos
18167 need_lib_prefix=no
18168 need_version=no
18169 case $host_cpu in
18170 ia64*)
18171 shrext_cmds='.so'
18172 hardcode_into_libs=yes
18173 dynamic_linker="$host_os dld.so"
18174 shlibpath_var=LD_LIBRARY_PATH
18175 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18176 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18177 soname_spec='$libname$release$shared_ext$major'
18178 if test 32 = "$HPUX_IA64_MODE"; then
18179 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18180 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18181 else
18182 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18183 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18184 fi
18185 ;;
18186 hppa*64*)
18187 shrext_cmds='.sl'
18188 hardcode_into_libs=yes
18189 dynamic_linker="$host_os dld.sl"
18190 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18191 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18193 soname_spec='$libname$release$shared_ext$major'
18194 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18195 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18196 ;;
18197 *)
18198 shrext_cmds='.sl'
18199 dynamic_linker="$host_os dld.sl"
18200 shlibpath_var=SHLIB_PATH
18201 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18202 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18203 soname_spec='$libname$release$shared_ext$major'
18204 ;;
18205 esac
18206 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18207 postinstall_cmds='chmod 555 $lib'
18208 # or fails outright, so override atomically:
18209 install_override_mode=555
18210 ;;
18211
18212 interix[3-9]*)
18213 version_type=linux # correct to gnu/linux during the next big refactor
18214 need_lib_prefix=no
18215 need_version=no
18216 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18217 soname_spec='$libname$release$shared_ext$major'
18218 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18219 shlibpath_var=LD_LIBRARY_PATH
18220 shlibpath_overrides_runpath=no
18221 hardcode_into_libs=yes
18222 ;;
18223
18224 irix5* | irix6* | nonstopux*)
18225 case $host_os in
18226 nonstopux*) version_type=nonstopux ;;
18227 *)
18228 if test yes = "$lt_cv_prog_gnu_ld"; then
18229 version_type=linux # correct to gnu/linux during the next big refactor
18230 else
18231 version_type=irix
18232 fi ;;
18233 esac
18234 need_lib_prefix=no
18235 need_version=no
18236 soname_spec='$libname$release$shared_ext$major'
18237 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18238 case $host_os in
18239 irix5* | nonstopux*)
18240 libsuff= shlibsuff=
18241 ;;
18242 *)
18243 case $LD in # libtool.m4 will add one of these switches to LD
18244 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18245 libsuff= shlibsuff= libmagic=32-bit;;
18246 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18247 libsuff=32 shlibsuff=N32 libmagic=N32;;
18248 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18249 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18250 *) libsuff= shlibsuff= libmagic=never-match;;
18251 esac
18252 ;;
18253 esac
18254 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18255 shlibpath_overrides_runpath=no
18256 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18257 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18258 hardcode_into_libs=yes
18259 ;;
18260
18261 # No shared lib support for Linux oldld, aout, or coff.
18262 linux*oldld* | linux*aout* | linux*coff*)
18263 dynamic_linker=no
18264 ;;
18265
18266 linux*android*)
18267 version_type=none # Android doesn't support versioned libraries.
18268 need_lib_prefix=no
18269 need_version=no
18270 library_names_spec='$libname$release$shared_ext'
18271 soname_spec='$libname$release$shared_ext'
18272 finish_cmds=
18273 shlibpath_var=LD_LIBRARY_PATH
18274 shlibpath_overrides_runpath=yes
18275
18276 # This implies no fast_install, which is unacceptable.
18277 # Some rework will be needed to allow for fast_install
18278 # before this can be enabled.
18279 hardcode_into_libs=yes
18280
18281 dynamic_linker='Android linker'
18282 # Don't embed -rpath directories since the linker doesn't support them.
18283 hardcode_libdir_flag_spec_CXX='-L$libdir'
18284 ;;
18285
18286 # This must be glibc/ELF.
18287 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18288 version_type=linux # correct to gnu/linux during the next big refactor
18289 need_lib_prefix=no
18290 need_version=no
18291 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18292 soname_spec='$libname$release$shared_ext$major'
18293 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18294 shlibpath_var=LD_LIBRARY_PATH
18295 shlibpath_overrides_runpath=no
18296
18297 # Some binutils ld are patched to set DT_RUNPATH
18298 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18299 $as_echo_n "(cached) " >&6
18300 else
18301 lt_cv_shlibpath_overrides_runpath=no
18302 save_LDFLAGS=$LDFLAGS
18303 save_libdir=$libdir
18304 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18305 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18307 /* end confdefs.h. */
18308
18309 int
18310 main ()
18311 {
18312
18313 ;
18314 return 0;
18315 }
18316 _ACEOF
18317 if ac_fn_cxx_try_link "$LINENO"; then :
18318 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18319 lt_cv_shlibpath_overrides_runpath=yes
18320 fi
18321 fi
18322 rm -f core conftest.err conftest.$ac_objext \
18323 conftest$ac_exeext conftest.$ac_ext
18324 LDFLAGS=$save_LDFLAGS
18325 libdir=$save_libdir
18326
18327 fi
18328
18329 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18330
18331 # This implies no fast_install, which is unacceptable.
18332 # Some rework will be needed to allow for fast_install
18333 # before this can be enabled.
18334 hardcode_into_libs=yes
18335
18336 # Ideally, we could use ldconfig to report *all* directores which are
18337 # searched for libraries, however this is still not possible. Aside from not
18338 # being certain /sbin/ldconfig is available, command
18339 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18340 # even though it is searched at run-time. Try to do the best guess by
18341 # appending ld.so.conf contents (and includes) to the search path.
18342 if test -f /etc/ld.so.conf; then
18343 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
18344 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18345 fi
18346
18347 # We used to test for /lib/ld.so.1 and disable shared libraries on
18348 # powerpc, because MkLinux only supported shared libraries with the
18349 # GNU dynamic linker. Since this was broken with cross compilers,
18350 # most powerpc-linux boxes support dynamic linking these days and
18351 # people can always --disable-shared, the test was removed, and we
18352 # assume the GNU/Linux dynamic linker is in use.
18353 dynamic_linker='GNU/Linux ld.so'
18354 ;;
18355
18356 netbsdelf*-gnu)
18357 version_type=linux
18358 need_lib_prefix=no
18359 need_version=no
18360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18361 soname_spec='${libname}${release}${shared_ext}$major'
18362 shlibpath_var=LD_LIBRARY_PATH
18363 shlibpath_overrides_runpath=no
18364 hardcode_into_libs=yes
18365 dynamic_linker='NetBSD ld.elf_so'
18366 ;;
18367
18368 netbsd*)
18369 version_type=sunos
18370 need_lib_prefix=no
18371 need_version=no
18372 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18373 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18375 dynamic_linker='NetBSD (a.out) ld.so'
18376 else
18377 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18378 soname_spec='$libname$release$shared_ext$major'
18379 dynamic_linker='NetBSD ld.elf_so'
18380 fi
18381 shlibpath_var=LD_LIBRARY_PATH
18382 shlibpath_overrides_runpath=yes
18383 hardcode_into_libs=yes
18384 ;;
18385
18386 newsos6)
18387 version_type=linux # correct to gnu/linux during the next big refactor
18388 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18389 shlibpath_var=LD_LIBRARY_PATH
18390 shlibpath_overrides_runpath=yes
18391 ;;
18392
18393 *nto* | *qnx*)
18394 version_type=qnx
18395 need_lib_prefix=no
18396 need_version=no
18397 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18398 soname_spec='$libname$release$shared_ext$major'
18399 shlibpath_var=LD_LIBRARY_PATH
18400 shlibpath_overrides_runpath=no
18401 hardcode_into_libs=yes
18402 dynamic_linker='ldqnx.so'
18403 ;;
18404
18405 openbsd* | bitrig*)
18406 version_type=sunos
18407 sys_lib_dlsearch_path_spec=/usr/lib
18408 need_lib_prefix=no
18409 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18410 need_version=no
18411 else
18412 need_version=yes
18413 fi
18414 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18416 shlibpath_var=LD_LIBRARY_PATH
18417 shlibpath_overrides_runpath=yes
18418 ;;
18419
18420 os2*)
18421 libname_spec='$name'
18422 version_type=windows
18423 shrext_cmds=.dll
18424 need_version=no
18425 need_lib_prefix=no
18426 # OS/2 can only load a DLL with a base name of 8 characters or less.
18427 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18428 v=$($ECHO $release$versuffix | tr -d .-);
18429 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18430 $ECHO $n$v`$shared_ext'
18431 library_names_spec='${libname}_dll.$libext'
18432 dynamic_linker='OS/2 ld.exe'
18433 shlibpath_var=BEGINLIBPATH
18434 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18435 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18436 postinstall_cmds='base_file=`basename \$file`~
18437 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18438 dldir=$destdir/`dirname \$dlpath`~
18439 test -d \$dldir || mkdir -p \$dldir~
18440 $install_prog $dir/$dlname \$dldir/$dlname~
18441 chmod a+x \$dldir/$dlname~
18442 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18443 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18444 fi'
18445 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18446 dlpath=$dir/\$dldll~
18447 $RM \$dlpath'
18448 ;;
18449
18450 osf3* | osf4* | osf5*)
18451 version_type=osf
18452 need_lib_prefix=no
18453 need_version=no
18454 soname_spec='$libname$release$shared_ext$major'
18455 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18456 shlibpath_var=LD_LIBRARY_PATH
18457 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18458 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18459 ;;
18460
18461 rdos*)
18462 dynamic_linker=no
18463 ;;
18464
18465 solaris*)
18466 version_type=linux # correct to gnu/linux during the next big refactor
18467 need_lib_prefix=no
18468 need_version=no
18469 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18470 soname_spec='$libname$release$shared_ext$major'
18471 shlibpath_var=LD_LIBRARY_PATH
18472 shlibpath_overrides_runpath=yes
18473 hardcode_into_libs=yes
18474 # ldd complains unless libraries are executable
18475 postinstall_cmds='chmod +x $lib'
18476 ;;
18477
18478 sunos4*)
18479 version_type=sunos
18480 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18481 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18482 shlibpath_var=LD_LIBRARY_PATH
18483 shlibpath_overrides_runpath=yes
18484 if test yes = "$with_gnu_ld"; then
18485 need_lib_prefix=no
18486 fi
18487 need_version=yes
18488 ;;
18489
18490 sysv4 | sysv4.3*)
18491 version_type=linux # correct to gnu/linux during the next big refactor
18492 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18493 soname_spec='$libname$release$shared_ext$major'
18494 shlibpath_var=LD_LIBRARY_PATH
18495 case $host_vendor in
18496 sni)
18497 shlibpath_overrides_runpath=no
18498 need_lib_prefix=no
18499 runpath_var=LD_RUN_PATH
18500 ;;
18501 siemens)
18502 need_lib_prefix=no
18503 ;;
18504 motorola)
18505 need_lib_prefix=no
18506 need_version=no
18507 shlibpath_overrides_runpath=no
18508 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18509 ;;
18510 esac
18511 ;;
18512
18513 sysv4*MP*)
18514 if test -d /usr/nec; then
18515 version_type=linux # correct to gnu/linux during the next big refactor
18516 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18517 soname_spec='$libname$shared_ext.$major'
18518 shlibpath_var=LD_LIBRARY_PATH
18519 fi
18520 ;;
18521
18522 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18523 version_type=sco
18524 need_lib_prefix=no
18525 need_version=no
18526 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18527 soname_spec='$libname$release$shared_ext$major'
18528 shlibpath_var=LD_LIBRARY_PATH
18529 shlibpath_overrides_runpath=yes
18530 hardcode_into_libs=yes
18531 if test yes = "$with_gnu_ld"; then
18532 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18533 else
18534 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18535 case $host_os in
18536 sco3.2v5*)
18537 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18538 ;;
18539 esac
18540 fi
18541 sys_lib_dlsearch_path_spec='/usr/lib'
18542 ;;
18543
18544 tpf*)
18545 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18546 version_type=linux # correct to gnu/linux during the next big refactor
18547 need_lib_prefix=no
18548 need_version=no
18549 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18550 shlibpath_var=LD_LIBRARY_PATH
18551 shlibpath_overrides_runpath=no
18552 hardcode_into_libs=yes
18553 ;;
18554
18555 uts4*)
18556 version_type=linux # correct to gnu/linux during the next big refactor
18557 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18558 soname_spec='$libname$release$shared_ext$major'
18559 shlibpath_var=LD_LIBRARY_PATH
18560 ;;
18561
18562 *)
18563 dynamic_linker=no
18564 ;;
18565 esac
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18567 $as_echo "$dynamic_linker" >&6; }
18568 test no = "$dynamic_linker" && can_build_shared=no
18569
18570 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18571 if test yes = "$GCC"; then
18572 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18573 fi
18574
18575 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18576 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18577 fi
18578
18579 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18580 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18581 fi
18582
18583 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18584 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18585
18586 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18587 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18588
18589 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18590 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18632 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18633 hardcode_action_CXX=
18634 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18635 test -n "$runpath_var_CXX" ||
18636 test yes = "$hardcode_automatic_CXX"; then
18637
18638 # We can hardcode non-existent directories.
18639 if test no != "$hardcode_direct_CXX" &&
18640 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18641 # have to relink, otherwise we might link with an installed library
18642 # when we should be linking with a yet-to-be-installed one
18643 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18644 test no != "$hardcode_minus_L_CXX"; then
18645 # Linking always hardcodes the temporary library directory.
18646 hardcode_action_CXX=relink
18647 else
18648 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18649 hardcode_action_CXX=immediate
18650 fi
18651 else
18652 # We cannot hardcode anything, or else we can only hardcode existing
18653 # directories.
18654 hardcode_action_CXX=unsupported
18655 fi
18656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18657 $as_echo "$hardcode_action_CXX" >&6; }
18658
18659 if test relink = "$hardcode_action_CXX" ||
18660 test yes = "$inherit_rpath_CXX"; then
18661 # Fast installation is not supported
18662 enable_fast_install=no
18663 elif test yes = "$shlibpath_overrides_runpath" ||
18664 test no = "$enable_shared"; then
18665 # Fast installation is not necessary
18666 enable_fast_install=needless
18667 fi
18668
18669
18670
18671
18672
18673
18674
18675 fi # test -n "$compiler"
18676
18677 CC=$lt_save_CC
18678 CFLAGS=$lt_save_CFLAGS
18679 LDCXX=$LD
18680 LD=$lt_save_LD
18681 GCC=$lt_save_GCC
18682 with_gnu_ld=$lt_save_with_gnu_ld
18683 lt_cv_path_LDCXX=$lt_cv_path_LD
18684 lt_cv_path_LD=$lt_save_path_LD
18685 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18686 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18687 fi # test yes != "$_lt_caught_CXX_error"
18688
18689 ac_ext=cpp
18690 ac_cpp='$CXXCPP $CPPFLAGS'
18691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709 ac_config_commands="$ac_config_commands libtool"
18710
18711
18712
18713
18714 # Only expand once:
18715
18716
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Doxygen documentation generator (http://www.doxygen.org)" >&5
18718 $as_echo_n "checking for the Doxygen documentation generator (http://www.doxygen.org)... " >&6; }
18719 # Extract the first word of "doxygen", so it can be a program name with args.
18720 set dummy doxygen; ac_word=$2
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18722 $as_echo_n "checking for $ac_word... " >&6; }
18723 if ${ac_cv_path_DOXYGEN+:} false; then :
18724 $as_echo_n "(cached) " >&6
18725 else
18726 case $DOXYGEN in
18727 [\\/]* | ?:[\\/]*)
18728 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
18729 ;;
18730 *)
18731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18732 for as_dir in $PATH
18733 do
18734 IFS=$as_save_IFS
18735 test -z "$as_dir" && as_dir=.
18736 for ac_exec_ext in '' $ac_executable_extensions; do
18737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18738 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
18739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18740 break 2
18741 fi
18742 done
18743 done
18744 IFS=$as_save_IFS
18745
18746 ;;
18747 esac
18748 fi
18749 DOXYGEN=$ac_cv_path_DOXYGEN
18750 if test -n "$DOXYGEN"; then
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
18752 $as_echo "$DOXYGEN" >&6; }
18753 else
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18755 $as_echo "no" >&6; }
18756 fi
18757
18758
18759 if test x$DOXYGEN != x; then
18760 DOXYGEN_TRUE=
18761 DOXYGEN_FALSE='#'
18762 else
18763 DOXYGEN_TRUE='#'
18764 DOXYGEN_FALSE=
18765 fi
18766
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ikiwiki Web site compiler (http://ikiwiki.info)" >&5
18768 $as_echo_n "checking for the ikiwiki Web site compiler (http://ikiwiki.info)... " >&6; }
18769 # Extract the first word of "ikiwiki", so it can be a program name with args.
18770 set dummy ikiwiki; ac_word=$2
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18772 $as_echo_n "checking for $ac_word... " >&6; }
18773 if ${ac_cv_path_IKIWIKI+:} false; then :
18774 $as_echo_n "(cached) " >&6
18775 else
18776 case $IKIWIKI in
18777 [\\/]* | ?:[\\/]*)
18778 ac_cv_path_IKIWIKI="$IKIWIKI" # Let the user override the test with a path.
18779 ;;
18780 *)
18781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18782 for as_dir in $PATH
18783 do
18784 IFS=$as_save_IFS
18785 test -z "$as_dir" && as_dir=.
18786 for ac_exec_ext in '' $ac_executable_extensions; do
18787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18788 ac_cv_path_IKIWIKI="$as_dir/$ac_word$ac_exec_ext"
18789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18790 break 2
18791 fi
18792 done
18793 done
18794 IFS=$as_save_IFS
18795
18796 ;;
18797 esac
18798 fi
18799 IKIWIKI=$ac_cv_path_IKIWIKI
18800 if test -n "$IKIWIKI"; then
18801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IKIWIKI" >&5
18802 $as_echo "$IKIWIKI" >&6; }
18803 else
18804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18805 $as_echo "no" >&6; }
18806 fi
18807
18808
18809 if test x$IKIWIKI != x; then
18810 IKIWIKI_TRUE=
18811 IKIWIKI_FALSE='#'
18812 else
18813 IKIWIKI_TRUE='#'
18814 IKIWIKI_FALSE=
18815 fi
18816
18817
18818 RUN_TESTS=0
18819
18820 if test x$BUILD_LIBRARY = xyes
18821 then
18822
18823
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
18825 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
18826 if ${ac_cv_lib_ncursesw_initscr+:} false; then :
18827 $as_echo_n "(cached) " >&6
18828 else
18829 ac_check_lib_save_LIBS=$LIBS
18830 LIBS="-lncursesw $LIBS"
18831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18832 /* end confdefs.h. */
18833
18834 /* Override any GCC internal prototype to avoid an error.
18835 Use char because int might match the return type of a GCC
18836 builtin and then its argument prototype would still apply. */
18837 #ifdef __cplusplus
18838 extern "C"
18839 #endif
18840 char initscr ();
18841 int
18842 main ()
18843 {
18844 return initscr ();
18845 ;
18846 return 0;
18847 }
18848 _ACEOF
18849 if ac_fn_cxx_try_link "$LINENO"; then :
18850 ac_cv_lib_ncursesw_initscr=yes
18851 else
18852 ac_cv_lib_ncursesw_initscr=no
18853 fi
18854 rm -f core conftest.err conftest.$ac_objext \
18855 conftest$ac_exeext conftest.$ac_ext
18856 LIBS=$ac_check_lib_save_LIBS
18857 fi
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
18859 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
18860 if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
18861 cat >>confdefs.h <<_ACEOF
18862 #define HAVE_LIBNCURSESW 1
18863 _ACEOF
18864
18865 LIBS="-lncursesw $LIBS"
18866
18867 else
18868 as_fn_error $? "Can't find libncursesw -- please install libncursesw5-dev" "$LINENO" 5
18869 fi
18870
18871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
18872 $as_echo_n "checking for main in -lpthread... " >&6; }
18873 if ${ac_cv_lib_pthread_main+:} false; then :
18874 $as_echo_n "(cached) " >&6
18875 else
18876 ac_check_lib_save_LIBS=$LIBS
18877 LIBS="-lpthread $LIBS"
18878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18879 /* end confdefs.h. */
18880
18881
18882 int
18883 main ()
18884 {
18885 return main ();
18886 ;
18887 return 0;
18888 }
18889 _ACEOF
18890 if ac_fn_cxx_try_link "$LINENO"; then :
18891 ac_cv_lib_pthread_main=yes
18892 else
18893 ac_cv_lib_pthread_main=no
18894 fi
18895 rm -f core conftest.err conftest.$ac_objext \
18896 conftest$ac_exeext conftest.$ac_ext
18897 LIBS=$ac_check_lib_save_LIBS
18898 fi
18899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
18900 $as_echo "$ac_cv_lib_pthread_main" >&6; }
18901 if test "x$ac_cv_lib_pthread_main" = xyes; then :
18902 HAVE_LIBPTHREAD=1
18903
18904 else
18905 as_fn_error $? "Can't find the POSIX thread libraries" "$LINENO" 5
18906 fi
18907
18908
18909 if test x$HAVE_LIBPTHREAD = x1
18910 then
18911 ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
18912 if test "x$ac_cv_header_pthread_h" = xyes; then :
18913 CXXFLAGS="$CXXFLAGS -D_REENTRANT"
18914 LIBS="$LIBS -lpthread"
18915
18916 $as_echo "#define HAVE_LIBPTHREAD " >>confdefs.h
18917
18918
18919 else
18920 as_fn_error $? "POSIX thread header not installed" "$LINENO" 5
18921 fi
18922
18923
18924 fi
18925
18926
18927 ac_fn_cxx_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
18928 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
18929 ac_have_decl=1
18930 else
18931 ac_have_decl=0
18932 fi
18933
18934 cat >>confdefs.h <<_ACEOF
18935 #define HAVE_DECL_STRERROR_R $ac_have_decl
18936 _ACEOF
18937
18938 for ac_func in strerror_r
18939 do :
18940 ac_fn_cxx_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
18941 if test "x$ac_cv_func_strerror_r" = xyes; then :
18942 cat >>confdefs.h <<_ACEOF
18943 #define HAVE_STRERROR_R 1
18944 _ACEOF
18945
18946 fi
18947 done
18948
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
18950 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
18951 if ${ac_cv_func_strerror_r_char_p+:} false; then :
18952 $as_echo_n "(cached) " >&6
18953 else
18954
18955 ac_cv_func_strerror_r_char_p=no
18956 if test $ac_cv_have_decl_strerror_r = yes; then
18957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18958 /* end confdefs.h. */
18959 $ac_includes_default
18960 int
18961 main ()
18962 {
18963
18964 char buf[100];
18965 char x = *strerror_r (0, buf, sizeof buf);
18966 char *p = strerror_r (0, buf, sizeof buf);
18967 return !p || x;
18968
18969 ;
18970 return 0;
18971 }
18972 _ACEOF
18973 if ac_fn_cxx_try_compile "$LINENO"; then :
18974 ac_cv_func_strerror_r_char_p=yes
18975 fi
18976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18977 else
18978 # strerror_r is not declared. Choose between
18979 # systems that have relatively inaccessible declarations for the
18980 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
18981 # former has a strerror_r that returns char*, while the latter
18982 # has a strerror_r that returns `int'.
18983 # This test should segfault on the DEC system.
18984 if test "$cross_compiling" = yes; then :
18985 :
18986 else
18987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18988 /* end confdefs.h. */
18989 $ac_includes_default
18990 extern char *strerror_r ();
18991 int
18992 main ()
18993 {
18994 char buf[100];
18995 char x = *strerror_r (0, buf, sizeof buf);
18996 return ! isalpha (x);
18997 ;
18998 return 0;
18999 }
19000 _ACEOF
19001 if ac_fn_cxx_try_run "$LINENO"; then :
19002 ac_cv_func_strerror_r_char_p=yes
19003 fi
19004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19005 conftest.$ac_objext conftest.beam conftest.$ac_ext
19006 fi
19007
19008 fi
19009
19010 fi
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
19012 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
19013 if test $ac_cv_func_strerror_r_char_p = yes; then
19014
19015 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
19016
19017 fi
19018
19019 if test x$ac_cv_have_strerror_r = xno
19020 then
19021 as_fn_error $? "cwidget requires an implementation of strerror_r()" "$LINENO" 5
19022 fi
19023
19024
19025
19026
19027
19028
19029
19030
19031 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19032 if test -n "$ac_tool_prefix"; then
19033 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19034 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19036 $as_echo_n "checking for $ac_word... " >&6; }
19037 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19038 $as_echo_n "(cached) " >&6
19039 else
19040 case $PKG_CONFIG in
19041 [\\/]* | ?:[\\/]*)
19042 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19043 ;;
19044 *)
19045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19046 for as_dir in $PATH
19047 do
19048 IFS=$as_save_IFS
19049 test -z "$as_dir" && as_dir=.
19050 for ac_exec_ext in '' $ac_executable_extensions; do
19051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19052 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19054 break 2
19055 fi
19056 done
19057 done
19058 IFS=$as_save_IFS
19059
19060 ;;
19061 esac
19062 fi
19063 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19064 if test -n "$PKG_CONFIG"; then
19065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19066 $as_echo "$PKG_CONFIG" >&6; }
19067 else
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19069 $as_echo "no" >&6; }
19070 fi
19071
19072
19073 fi
19074 if test -z "$ac_cv_path_PKG_CONFIG"; then
19075 ac_pt_PKG_CONFIG=$PKG_CONFIG
19076 # Extract the first word of "pkg-config", so it can be a program name with args.
19077 set dummy pkg-config; ac_word=$2
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19079 $as_echo_n "checking for $ac_word... " >&6; }
19080 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19081 $as_echo_n "(cached) " >&6
19082 else
19083 case $ac_pt_PKG_CONFIG in
19084 [\\/]* | ?:[\\/]*)
19085 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19086 ;;
19087 *)
19088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19089 for as_dir in $PATH
19090 do
19091 IFS=$as_save_IFS
19092 test -z "$as_dir" && as_dir=.
19093 for ac_exec_ext in '' $ac_executable_extensions; do
19094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19095 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19097 break 2
19098 fi
19099 done
19100 done
19101 IFS=$as_save_IFS
19102
19103 ;;
19104 esac
19105 fi
19106 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19107 if test -n "$ac_pt_PKG_CONFIG"; then
19108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19109 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19110 else
19111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19112 $as_echo "no" >&6; }
19113 fi
19114
19115 if test "x$ac_pt_PKG_CONFIG" = x; then
19116 PKG_CONFIG=""
19117 else
19118 case $cross_compiling:$ac_tool_warned in
19119 yes:)
19120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19122 ac_tool_warned=yes ;;
19123 esac
19124 PKG_CONFIG=$ac_pt_PKG_CONFIG
19125 fi
19126 else
19127 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19128 fi
19129
19130 fi
19131 if test -n "$PKG_CONFIG"; then
19132 _pkg_min_version=0.9.0
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19134 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19135 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19137 $as_echo "yes" >&6; }
19138 else
19139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19140 $as_echo "no" >&6; }
19141 PKG_CONFIG=""
19142 fi
19143 fi
19144
19145 pkg_failed=no
19146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGC" >&5
19147 $as_echo_n "checking for SIGC... " >&6; }
19148
19149 if test -n "$SIGC_CFLAGS"; then
19150 pkg_cv_SIGC_CFLAGS="$SIGC_CFLAGS"
19151 elif test -n "$PKG_CONFIG"; then
19152 if test -n "$PKG_CONFIG" && \
19153 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sigc++-2.0\""; } >&5
19154 ($PKG_CONFIG --exists --print-errors "sigc++-2.0") 2>&5
19155 ac_status=$?
19156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19157 test $ac_status = 0; }; then
19158 pkg_cv_SIGC_CFLAGS=`$PKG_CONFIG --cflags "sigc++-2.0" 2>/dev/null`
19159 test "x$?" != "x0" && pkg_failed=yes
19160 else
19161 pkg_failed=yes
19162 fi
19163 else
19164 pkg_failed=untried
19165 fi
19166 if test -n "$SIGC_LIBS"; then
19167 pkg_cv_SIGC_LIBS="$SIGC_LIBS"
19168 elif test -n "$PKG_CONFIG"; then
19169 if test -n "$PKG_CONFIG" && \
19170 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sigc++-2.0\""; } >&5
19171 ($PKG_CONFIG --exists --print-errors "sigc++-2.0") 2>&5
19172 ac_status=$?
19173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19174 test $ac_status = 0; }; then
19175 pkg_cv_SIGC_LIBS=`$PKG_CONFIG --libs "sigc++-2.0" 2>/dev/null`
19176 test "x$?" != "x0" && pkg_failed=yes
19177 else
19178 pkg_failed=yes
19179 fi
19180 else
19181 pkg_failed=untried
19182 fi
19183
19184
19185
19186 if test $pkg_failed = yes; then
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19188 $as_echo "no" >&6; }
19189
19190 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19191 _pkg_short_errors_supported=yes
19192 else
19193 _pkg_short_errors_supported=no
19194 fi
19195 if test $_pkg_short_errors_supported = yes; then
19196 SIGC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sigc++-2.0" 2>&1`
19197 else
19198 SIGC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sigc++-2.0" 2>&1`
19199 fi
19200 # Put the nasty error message in config.log where it belongs
19201 echo "$SIGC_PKG_ERRORS" >&5
19202
19203 as_fn_error $? "Package requirements (sigc++-2.0) were not met:
19204
19205 $SIGC_PKG_ERRORS
19206
19207 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19208 installed software in a non-standard prefix.
19209
19210 Alternatively, you may set the environment variables SIGC_CFLAGS
19211 and SIGC_LIBS to avoid the need to call pkg-config.
19212 See the pkg-config man page for more details." "$LINENO" 5
19213 elif test $pkg_failed = untried; then
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19215 $as_echo "no" >&6; }
19216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19218 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19219 is in your PATH or set the PKG_CONFIG environment variable to the full
19220 path to pkg-config.
19221
19222 Alternatively, you may set the environment variables SIGC_CFLAGS
19223 and SIGC_LIBS to avoid the need to call pkg-config.
19224 See the pkg-config man page for more details.
19225
19226 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19227 See \`config.log' for more details" "$LINENO" 5; }
19228 else
19229 SIGC_CFLAGS=$pkg_cv_SIGC_CFLAGS
19230 SIGC_LIBS=$pkg_cv_SIGC_LIBS
19231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19232 $as_echo "yes" >&6; }
19233
19234 fi
19235 CXXFLAGS="$CXXFLAGS $SIGC_CFLAGS"
19236 LIBS="$LIBS $SIGC_LIBS"
19237
19238 cat >>confdefs.h <<_ACEOF
19239 #define SIGC_VERSION "$(pkg-config --modversion sigc++-2.0)"
19240 _ACEOF
19241
19242
19243 ac_fn_cxx_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
19244 if test "x$ac_cv_header_locale_h" = xyes; then :
19245
19246 $as_echo "#define HAVE_LOCALE_H /**/" >>confdefs.h
19247
19248 fi
19249
19250
19251
19252 ac_fn_cxx_check_decl "$LINENO" "setlocale" "ac_cv_have_decl_setlocale" "#include <locale.h>
19253 "
19254 if test "x$ac_cv_have_decl_setlocale" = xyes; then :
19255
19256 $as_echo "#define HAVE_SETLOCALE /**/" >>confdefs.h
19257
19258 fi
19259
19260
19261
19262
19263 TRAITS_CLASS=""
19264
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the name of the character traits template" >&5
19266 $as_echo_n "checking for the name of the character traits template... " >&6; }
19267
19268 for T in char_traits string_char_traits
19269 do
19270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19271 /* end confdefs.h. */
19272 #include <string>
19273 int
19274 main ()
19275 {
19276 std::basic_string<unsigned char,
19277 std::$T < unsigned char > > s;
19278 ;
19279 return 0;
19280 }
19281 _ACEOF
19282 if ac_fn_cxx_try_compile "$LINENO"; then :
19283 TRAITS_CLASS=$T
19284 fi
19285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19286 done
19287
19288 if test x$TRAITS_CLASS = xstring_char_traits
19289 then
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your compiler uses string_char_traits for its character traits. Some compilers (eg, g++ 2.95) which use this name for the character traits template are known to have hideously broken implementations of the standard string class, which cause aptitude to fail to compile. If you have a compiler with this problem, please upgrade it to a version that has a more compliant version of the STL (g++ >=3.0 is known to work). You can specify which compiler this script should use via the CXX environment variable." >&5
19291 $as_echo "$as_me: WARNING: Your compiler uses string_char_traits for its character traits. Some compilers (eg, g++ 2.95) which use this name for the character traits template are known to have hideously broken implementations of the standard string class, which cause aptitude to fail to compile. If you have a compiler with this problem, please upgrade it to a version that has a more compliant version of the STL (g++ >=3.0 is known to work). You can specify which compiler this script should use via the CXX environment variable." >&2;}
19292 fi
19293
19294 if test x$TRAITS_CLASS = x
19295 then
19296 as_fn_error $? "can't find the name of the character traits template" "$LINENO" 5
19297 else
19298
19299 cat >>confdefs.h <<_ACEOF
19300 #define TRAITS_CLASS $TRAITS_CLASS
19301 _ACEOF
19302
19303
19304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRAITS_CLASS" >&5
19305 $as_echo "$TRAITS_CLASS" >&6; }
19306 fi
19307
19308
19309
19310 WERROR="-Werror -Wno-terminate"
19311
19312 # Check whether --enable-dynamic-backtrace was given.
19313 if test "${enable_dynamic_backtrace+set}" = set; then :
19314 enableval=$enable_dynamic_backtrace; if test x$enableval = xyes
19315 then
19316
19317 $as_echo "#define ENABLE_DYNAMIC_BACKTRACE /**/" >>confdefs.h
19318
19319 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
19320 fi
19321
19322 fi
19323
19324 # Check whether --enable-werror was given.
19325 if test "${enable_werror+set}" = set; then :
19326 enableval=$enable_werror; if test x$enableval = xno
19327 then
19328 WERROR=""
19329 fi
19330
19331 fi
19332
19333
19334
19335
19336 pkg_failed=no
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPPUNIT" >&5
19338 $as_echo_n "checking for CPPUNIT... " >&6; }
19339
19340 if test -n "$CPPUNIT_CFLAGS"; then
19341 pkg_cv_CPPUNIT_CFLAGS="$CPPUNIT_CFLAGS"
19342 elif test -n "$PKG_CONFIG"; then
19343 if test -n "$PKG_CONFIG" && \
19344 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit\""; } >&5
19345 ($PKG_CONFIG --exists --print-errors "cppunit") 2>&5
19346 ac_status=$?
19347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19348 test $ac_status = 0; }; then
19349 pkg_cv_CPPUNIT_CFLAGS=`$PKG_CONFIG --cflags "cppunit" 2>/dev/null`
19350 test "x$?" != "x0" && pkg_failed=yes
19351 else
19352 pkg_failed=yes
19353 fi
19354 else
19355 pkg_failed=untried
19356 fi
19357 if test -n "$CPPUNIT_LIBS"; then
19358 pkg_cv_CPPUNIT_LIBS="$CPPUNIT_LIBS"
19359 elif test -n "$PKG_CONFIG"; then
19360 if test -n "$PKG_CONFIG" && \
19361 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit\""; } >&5
19362 ($PKG_CONFIG --exists --print-errors "cppunit") 2>&5
19363 ac_status=$?
19364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19365 test $ac_status = 0; }; then
19366 pkg_cv_CPPUNIT_LIBS=`$PKG_CONFIG --libs "cppunit" 2>/dev/null`
19367 test "x$?" != "x0" && pkg_failed=yes
19368 else
19369 pkg_failed=yes
19370 fi
19371 else
19372 pkg_failed=untried
19373 fi
19374
19375
19376
19377 if test $pkg_failed = yes; then
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19379 $as_echo "no" >&6; }
19380
19381 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19382 _pkg_short_errors_supported=yes
19383 else
19384 _pkg_short_errors_supported=no
19385 fi
19386 if test $_pkg_short_errors_supported = yes; then
19387 CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cppunit" 2>&1`
19388 else
19389 CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cppunit" 2>&1`
19390 fi
19391 # Put the nasty error message in config.log where it belongs
19392 echo "$CPPUNIT_PKG_ERRORS" >&5
19393
19394 true
19395 elif test $pkg_failed = untried; then
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19397 $as_echo "no" >&6; }
19398 true
19399 else
19400 CPPUNIT_CFLAGS=$pkg_cv_CPPUNIT_CFLAGS
19401 CPPUNIT_LIBS=$pkg_cv_CPPUNIT_LIBS
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19403 $as_echo "yes" >&6; }
19404 HAVE_CPPUNIT=1
19405
19406
19407 fi
19408
19409 # END LIBRARY CONFIGURATION
19410 fi
19411
19412 if test x$HAVE_CPPUNIT = x1; then
19413 HAVE_CPPUNIT_TRUE=
19414 HAVE_CPPUNIT_FALSE='#'
19415 else
19416 HAVE_CPPUNIT_TRUE='#'
19417 HAVE_CPPUNIT_FALSE=
19418 fi
19419
19420
19421 ac_config_files="$ac_config_files po/Makefile.in Doxyfile Makefile cwidget.pc doc/Makefile src/Makefile src/cwidget/Makefile src/cwidget/config/Makefile src/cwidget/widgets/Makefile src/cwidget/generic/Makefile src/cwidget/generic/threads/Makefile src/cwidget/generic/util/Makefile tests/Makefile"
19422
19423
19424 cat >confcache <<\_ACEOF
19425 # This file is a shell script that caches the results of configure
19426 # tests run on this system so they can be shared between configure
19427 # scripts and configure runs, see configure's option --config-cache.
19428 # It is not useful on other systems. If it contains results you don't
19429 # want to keep, you may remove or edit it.
19430 #
19431 # config.status only pays attention to the cache file if you give it
19432 # the --recheck option to rerun configure.
19433 #
19434 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19435 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19436 # following values.
19437
19438 _ACEOF
19439
19440 # The following way of writing the cache mishandles newlines in values,
19441 # but we know of no workaround that is simple, portable, and efficient.
19442 # So, we kill variables containing newlines.
19443 # Ultrix sh set writes to stderr and can't be redirected directly,
19444 # and sets the high bit in the cache file unless we assign to the vars.
19445 (
19446 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19447 eval ac_val=\$$ac_var
19448 case $ac_val in #(
19449 *${as_nl}*)
19450 case $ac_var in #(
19451 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19452 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19453 esac
19454 case $ac_var in #(
19455 _ | IFS | as_nl) ;; #(
19456 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19457 *) { eval $ac_var=; unset $ac_var;} ;;
19458 esac ;;
19459 esac
19460 done
19461
19462 (set) 2>&1 |
19463 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19464 *${as_nl}ac_space=\ *)
19465 # `set' does not quote correctly, so add quotes: double-quote
19466 # substitution turns \\\\ into \\, and sed turns \\ into \.
19467 sed -n \
19468 "s/'/'\\\\''/g;
19469 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19470 ;; #(
19471 *)
19472 # `set' quotes correctly as required by POSIX, so do not add quotes.
19473 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19474 ;;
19475 esac |
19476 sort
19477 ) |
19478 sed '
19479 /^ac_cv_env_/b end
19480 t clear
19481 :clear
19482 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19483 t end
19484 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19485 :end' >>confcache
19486 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19487 if test -w "$cache_file"; then
19488 if test "x$cache_file" != "x/dev/null"; then
19489 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19490 $as_echo "$as_me: updating cache $cache_file" >&6;}
19491 if test ! -f "$cache_file" || test -h "$cache_file"; then
19492 cat confcache >"$cache_file"
19493 else
19494 case $cache_file in #(
19495 */* | ?:*)
19496 mv -f confcache "$cache_file"$$ &&
19497 mv -f "$cache_file"$$ "$cache_file" ;; #(
19498 *)
19499 mv -f confcache "$cache_file" ;;
19500 esac
19501 fi
19502 fi
19503 else
19504 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19505 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19506 fi
19507 fi
19508 rm -f confcache
19509
19510 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19511 # Let make expand exec_prefix.
19512 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19513
19514 DEFS=-DHAVE_CONFIG_H
19515
19516 ac_libobjs=
19517 ac_ltlibobjs=
19518 U=
19519 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19520 # 1. Remove the extension, and $U if already installed.
19521 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19522 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19523 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19524 # will be set to the directory where LIBOBJS objects are built.
19525 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19526 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19527 done
19528 LIBOBJS=$ac_libobjs
19529
19530 LTLIBOBJS=$ac_ltlibobjs
19531
19532
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19534 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19535 if test -n "$am_sleep_pid"; then
19536 # Hide warnings about reused PIDs.
19537 wait $am_sleep_pid 2>/dev/null
19538 fi
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19540 $as_echo "done" >&6; }
19541 if test -n "$EXEEXT"; then
19542 am__EXEEXT_TRUE=
19543 am__EXEEXT_FALSE='#'
19544 else
19545 am__EXEEXT_TRUE='#'
19546 am__EXEEXT_FALSE=
19547 fi
19548
19549 if test -z "${BUILD_LIBRARY_TRUE}" && test -z "${BUILD_LIBRARY_FALSE}"; then
19550 as_fn_error $? "conditional \"BUILD_LIBRARY\" was never defined.
19551 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19552 fi
19553 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19554 as_fn_error $? "conditional \"AMDEP\" was never defined.
19555 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19556 fi
19557 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19558 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19559 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19560 fi
19561 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19562 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19563 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19564 fi
19565 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19566 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19567 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19568 fi
19569 if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
19570 as_fn_error $? "conditional \"DOXYGEN\" was never defined.
19571 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19572 fi
19573 if test -z "${IKIWIKI_TRUE}" && test -z "${IKIWIKI_FALSE}"; then
19574 as_fn_error $? "conditional \"IKIWIKI\" was never defined.
19575 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19576 fi
19577 if test -z "${HAVE_CPPUNIT_TRUE}" && test -z "${HAVE_CPPUNIT_FALSE}"; then
19578 as_fn_error $? "conditional \"HAVE_CPPUNIT\" was never defined.
19579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19580 fi
19581
19582 : "${CONFIG_STATUS=./config.status}"
19583 ac_write_fail=0
19584 ac_clean_files_save=$ac_clean_files
19585 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19586 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19587 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19588 as_write_fail=0
19589 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19590 #! $SHELL
19591 # Generated by $as_me.
19592 # Run this file to recreate the current configuration.
19593 # Compiler output produced by configure, useful for debugging
19594 # configure, is in config.log if it exists.
19595
19596 debug=false
19597 ac_cs_recheck=false
19598 ac_cs_silent=false
19599
19600 SHELL=\${CONFIG_SHELL-$SHELL}
19601 export SHELL
19602 _ASEOF
19603 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19604 ## -------------------- ##
19605 ## M4sh Initialization. ##
19606 ## -------------------- ##
19607
19608 # Be more Bourne compatible
19609 DUALCASE=1; export DUALCASE # for MKS sh
19610 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19611 emulate sh
19612 NULLCMD=:
19613 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19614 # is contrary to our usage. Disable this feature.
19615 alias -g '${1+"$@"}'='"$@"'
19616 setopt NO_GLOB_SUBST
19617 else
19618 case `(set -o) 2>/dev/null` in #(
19619 *posix*) :
19620 set -o posix ;; #(
19621 *) :
19622 ;;
19623 esac
19624 fi
19625
19626
19627 as_nl='
19628 '
19629 export as_nl
19630 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19631 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19632 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19633 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19634 # Prefer a ksh shell builtin over an external printf program on Solaris,
19635 # but without wasting forks for bash or zsh.
19636 if test -z "$BASH_VERSION$ZSH_VERSION" \
19637 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19638 as_echo='print -r --'
19639 as_echo_n='print -rn --'
19640 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19641 as_echo='printf %s\n'
19642 as_echo_n='printf %s'
19643 else
19644 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19645 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19646 as_echo_n='/usr/ucb/echo -n'
19647 else
19648 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19649 as_echo_n_body='eval
19650 arg=$1;
19651 case $arg in #(
19652 *"$as_nl"*)
19653 expr "X$arg" : "X\\(.*\\)$as_nl";
19654 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19655 esac;
19656 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19657 '
19658 export as_echo_n_body
19659 as_echo_n='sh -c $as_echo_n_body as_echo'
19660 fi
19661 export as_echo_body
19662 as_echo='sh -c $as_echo_body as_echo'
19663 fi
19664
19665 # The user is always right.
19666 if test "${PATH_SEPARATOR+set}" != set; then
19667 PATH_SEPARATOR=:
19668 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19669 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19670 PATH_SEPARATOR=';'
19671 }
19672 fi
19673
19674
19675 # IFS
19676 # We need space, tab and new line, in precisely that order. Quoting is
19677 # there to prevent editors from complaining about space-tab.
19678 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19679 # splitting by setting IFS to empty value.)
19680 IFS=" "" $as_nl"
19681
19682 # Find who we are. Look in the path if we contain no directory separator.
19683 as_myself=
19684 case $0 in #((
19685 *[\\/]* ) as_myself=$0 ;;
19686 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19687 for as_dir in $PATH
19688 do
19689 IFS=$as_save_IFS
19690 test -z "$as_dir" && as_dir=.
19691 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19692 done
19693 IFS=$as_save_IFS
19694
19695 ;;
19696 esac
19697 # We did not find ourselves, most probably we were run as `sh COMMAND'
19698 # in which case we are not to be found in the path.
19699 if test "x$as_myself" = x; then
19700 as_myself=$0
19701 fi
19702 if test ! -f "$as_myself"; then
19703 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19704 exit 1
19705 fi
19706
19707 # Unset variables that we do not need and which cause bugs (e.g. in
19708 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19709 # suppresses any "Segmentation fault" message there. '((' could
19710 # trigger a bug in pdksh 5.2.14.
19711 for as_var in BASH_ENV ENV MAIL MAILPATH
19712 do eval test x\${$as_var+set} = xset \
19713 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19714 done
19715 PS1='$ '
19716 PS2='> '
19717 PS4='+ '
19718
19719 # NLS nuisances.
19720 LC_ALL=C
19721 export LC_ALL
19722 LANGUAGE=C
19723 export LANGUAGE
19724
19725 # CDPATH.
19726 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19727
19728
19729 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19730 # ----------------------------------------
19731 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19732 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19733 # script with STATUS, using 1 if that was 0.
19734 as_fn_error ()
19735 {
19736 as_status=$1; test $as_status -eq 0 && as_status=1
19737 if test "$4"; then
19738 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19739 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19740 fi
19741 $as_echo "$as_me: error: $2" >&2
19742 as_fn_exit $as_status
19743 } # as_fn_error
19744
19745
19746 # as_fn_set_status STATUS
19747 # -----------------------
19748 # Set $? to STATUS, without forking.
19749 as_fn_set_status ()
19750 {
19751 return $1
19752 } # as_fn_set_status
19753
19754 # as_fn_exit STATUS
19755 # -----------------
19756 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19757 as_fn_exit ()
19758 {
19759 set +e
19760 as_fn_set_status $1
19761 exit $1
19762 } # as_fn_exit
19763
19764 # as_fn_unset VAR
19765 # ---------------
19766 # Portably unset VAR.
19767 as_fn_unset ()
19768 {
19769 { eval $1=; unset $1;}
19770 }
19771 as_unset=as_fn_unset
19772 # as_fn_append VAR VALUE
19773 # ----------------------
19774 # Append the text in VALUE to the end of the definition contained in VAR. Take
19775 # advantage of any shell optimizations that allow amortized linear growth over
19776 # repeated appends, instead of the typical quadratic growth present in naive
19777 # implementations.
19778 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19779 eval 'as_fn_append ()
19780 {
19781 eval $1+=\$2
19782 }'
19783 else
19784 as_fn_append ()
19785 {
19786 eval $1=\$$1\$2
19787 }
19788 fi # as_fn_append
19789
19790 # as_fn_arith ARG...
19791 # ------------------
19792 # Perform arithmetic evaluation on the ARGs, and store the result in the
19793 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19794 # must be portable across $(()) and expr.
19795 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19796 eval 'as_fn_arith ()
19797 {
19798 as_val=$(( $* ))
19799 }'
19800 else
19801 as_fn_arith ()
19802 {
19803 as_val=`expr "$@" || test $? -eq 1`
19804 }
19805 fi # as_fn_arith
19806
19807
19808 if expr a : '\(a\)' >/dev/null 2>&1 &&
19809 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19810 as_expr=expr
19811 else
19812 as_expr=false
19813 fi
19814
19815 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19816 as_basename=basename
19817 else
19818 as_basename=false
19819 fi
19820
19821 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19822 as_dirname=dirname
19823 else
19824 as_dirname=false
19825 fi
19826
19827 as_me=`$as_basename -- "$0" ||
19828 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19829 X"$0" : 'X\(//\)$' \| \
19830 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19831 $as_echo X/"$0" |
19832 sed '/^.*\/\([^/][^/]*\)\/*$/{
19833 s//\1/
19834 q
19835 }
19836 /^X\/\(\/\/\)$/{
19837 s//\1/
19838 q
19839 }
19840 /^X\/\(\/\).*/{
19841 s//\1/
19842 q
19843 }
19844 s/.*/./; q'`
19845
19846 # Avoid depending upon Character Ranges.
19847 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19848 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19849 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19850 as_cr_digits='0123456789'
19851 as_cr_alnum=$as_cr_Letters$as_cr_digits
19852
19853 ECHO_C= ECHO_N= ECHO_T=
19854 case `echo -n x` in #(((((
19855 -n*)
19856 case `echo 'xy\c'` in
19857 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19858 xy) ECHO_C='\c';;
19859 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19860 ECHO_T=' ';;
19861 esac;;
19862 *)
19863 ECHO_N='-n';;
19864 esac
19865
19866 rm -f conf$$ conf$$.exe conf$$.file
19867 if test -d conf$$.dir; then
19868 rm -f conf$$.dir/conf$$.file
19869 else
19870 rm -f conf$$.dir
19871 mkdir conf$$.dir 2>/dev/null
19872 fi
19873 if (echo >conf$$.file) 2>/dev/null; then
19874 if ln -s conf$$.file conf$$ 2>/dev/null; then
19875 as_ln_s='ln -s'
19876 # ... but there are two gotchas:
19877 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19878 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19879 # In both cases, we have to default to `cp -pR'.
19880 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19881 as_ln_s='cp -pR'
19882 elif ln conf$$.file conf$$ 2>/dev/null; then
19883 as_ln_s=ln
19884 else
19885 as_ln_s='cp -pR'
19886 fi
19887 else
19888 as_ln_s='cp -pR'
19889 fi
19890 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19891 rmdir conf$$.dir 2>/dev/null
19892
19893
19894 # as_fn_mkdir_p
19895 # -------------
19896 # Create "$as_dir" as a directory, including parents if necessary.
19897 as_fn_mkdir_p ()
19898 {
19899
19900 case $as_dir in #(
19901 -*) as_dir=./$as_dir;;
19902 esac
19903 test -d "$as_dir" || eval $as_mkdir_p || {
19904 as_dirs=
19905 while :; do
19906 case $as_dir in #(
19907 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19908 *) as_qdir=$as_dir;;
19909 esac
19910 as_dirs="'$as_qdir' $as_dirs"
19911 as_dir=`$as_dirname -- "$as_dir" ||
19912 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19913 X"$as_dir" : 'X\(//\)[^/]' \| \
19914 X"$as_dir" : 'X\(//\)$' \| \
19915 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19916 $as_echo X"$as_dir" |
19917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19918 s//\1/
19919 q
19920 }
19921 /^X\(\/\/\)[^/].*/{
19922 s//\1/
19923 q
19924 }
19925 /^X\(\/\/\)$/{
19926 s//\1/
19927 q
19928 }
19929 /^X\(\/\).*/{
19930 s//\1/
19931 q
19932 }
19933 s/.*/./; q'`
19934 test -d "$as_dir" && break
19935 done
19936 test -z "$as_dirs" || eval "mkdir $as_dirs"
19937 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19938
19939
19940 } # as_fn_mkdir_p
19941 if mkdir -p . 2>/dev/null; then
19942 as_mkdir_p='mkdir -p "$as_dir"'
19943 else
19944 test -d ./-p && rmdir ./-p
19945 as_mkdir_p=false
19946 fi
19947
19948
19949 # as_fn_executable_p FILE
19950 # -----------------------
19951 # Test if FILE is an executable regular file.
19952 as_fn_executable_p ()
19953 {
19954 test -f "$1" && test -x "$1"
19955 } # as_fn_executable_p
19956 as_test_x='test -x'
19957 as_executable_p=as_fn_executable_p
19958
19959 # Sed expression to map a string onto a valid CPP name.
19960 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19961
19962 # Sed expression to map a string onto a valid variable name.
19963 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19964
19965
19966 exec 6>&1
19967 ## ----------------------------------- ##
19968 ## Main body of $CONFIG_STATUS script. ##
19969 ## ----------------------------------- ##
19970 _ASEOF
19971 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19972
19973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19974 # Save the log message, to keep $0 and so on meaningful, and to
19975 # report actual input values of CONFIG_FILES etc. instead of their
19976 # values after options handling.
19977 ac_log="
19978 This file was extended by cwidget $as_me 0.5.18, which was
19979 generated by GNU Autoconf 2.69. Invocation command line was
19980
19981 CONFIG_FILES = $CONFIG_FILES
19982 CONFIG_HEADERS = $CONFIG_HEADERS
19983 CONFIG_LINKS = $CONFIG_LINKS
19984 CONFIG_COMMANDS = $CONFIG_COMMANDS
19985 $ $0 $@
19986
19987 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19988 "
19989
19990 _ACEOF
19991
19992 case $ac_config_files in *"
19993 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19994 esac
19995
19996 case $ac_config_headers in *"
19997 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19998 esac
19999
20000
20001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20002 # Files that config.status was made for.
20003 config_files="$ac_config_files"
20004 config_headers="$ac_config_headers"
20005 config_commands="$ac_config_commands"
20006
20007 _ACEOF
20008
20009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20010 ac_cs_usage="\
20011 \`$as_me' instantiates files and other configuration actions
20012 from templates according to the current configuration. Unless the files
20013 and actions are specified as TAGs, all are instantiated by default.
20014
20015 Usage: $0 [OPTION]... [TAG]...
20016
20017 -h, --help print this help, then exit
20018 -V, --version print version number and configuration settings, then exit
20019 --config print configuration, then exit
20020 -q, --quiet, --silent
20021 do not print progress messages
20022 -d, --debug don't remove temporary files
20023 --recheck update $as_me by reconfiguring in the same conditions
20024 --file=FILE[:TEMPLATE]
20025 instantiate the configuration file FILE
20026 --header=FILE[:TEMPLATE]
20027 instantiate the configuration header FILE
20028
20029 Configuration files:
20030 $config_files
20031
20032 Configuration headers:
20033 $config_headers
20034
20035 Configuration commands:
20036 $config_commands
20037
20038 Report bugs to the package provider."
20039
20040 _ACEOF
20041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20042 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20043 ac_cs_version="\\
20044 cwidget config.status 0.5.18
20045 configured by $0, generated by GNU Autoconf 2.69,
20046 with options \\"\$ac_cs_config\\"
20047
20048 Copyright (C) 2012 Free Software Foundation, Inc.
20049 This config.status script is free software; the Free Software Foundation
20050 gives unlimited permission to copy, distribute and modify it."
20051
20052 ac_pwd='$ac_pwd'
20053 srcdir='$srcdir'
20054 INSTALL='$INSTALL'
20055 MKDIR_P='$MKDIR_P'
20056 AWK='$AWK'
20057 test -n "\$AWK" || AWK=awk
20058 _ACEOF
20059
20060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20061 # The default lists apply if the user does not specify any file.
20062 ac_need_defaults=:
20063 while test $# != 0
20064 do
20065 case $1 in
20066 --*=?*)
20067 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20068 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20069 ac_shift=:
20070 ;;
20071 --*=)
20072 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20073 ac_optarg=
20074 ac_shift=:
20075 ;;
20076 *)
20077 ac_option=$1
20078 ac_optarg=$2
20079 ac_shift=shift
20080 ;;
20081 esac
20082
20083 case $ac_option in
20084 # Handling of the options.
20085 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20086 ac_cs_recheck=: ;;
20087 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20088 $as_echo "$ac_cs_version"; exit ;;
20089 --config | --confi | --conf | --con | --co | --c )
20090 $as_echo "$ac_cs_config"; exit ;;
20091 --debug | --debu | --deb | --de | --d | -d )
20092 debug=: ;;
20093 --file | --fil | --fi | --f )
20094 $ac_shift
20095 case $ac_optarg in
20096 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20097 '') as_fn_error $? "missing file argument" ;;
20098 esac
20099 as_fn_append CONFIG_FILES " '$ac_optarg'"
20100 ac_need_defaults=false;;
20101 --header | --heade | --head | --hea )
20102 $ac_shift
20103 case $ac_optarg in
20104 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20105 esac
20106 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20107 ac_need_defaults=false;;
20108 --he | --h)
20109 # Conflict between --help and --header
20110 as_fn_error $? "ambiguous option: \`$1'
20111 Try \`$0 --help' for more information.";;
20112 --help | --hel | -h )
20113 $as_echo "$ac_cs_usage"; exit ;;
20114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20115 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20116 ac_cs_silent=: ;;
20117
20118 # This is an error.
20119 -*) as_fn_error $? "unrecognized option: \`$1'
20120 Try \`$0 --help' for more information." ;;
20121
20122 *) as_fn_append ac_config_targets " $1"
20123 ac_need_defaults=false ;;
20124
20125 esac
20126 shift
20127 done
20128
20129 ac_configure_extra_args=
20130
20131 if $ac_cs_silent; then
20132 exec 6>/dev/null
20133 ac_configure_extra_args="$ac_configure_extra_args --silent"
20134 fi
20135
20136 _ACEOF
20137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20138 if \$ac_cs_recheck; then
20139 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20140 shift
20141 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20142 CONFIG_SHELL='$SHELL'
20143 export CONFIG_SHELL
20144 exec "\$@"
20145 fi
20146
20147 _ACEOF
20148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20149 exec 5>>config.log
20150 {
20151 echo
20152 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20153 ## Running $as_me. ##
20154 _ASBOX
20155 $as_echo "$ac_log"
20156 } >&5
20157
20158 _ACEOF
20159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20160 #
20161 # INIT-COMMANDS
20162 #
20163 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20164 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
20165 # from automake < 1.5.
20166 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20167 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20168 LINGUAS="${LINGUAS-%UNSET%}"
20169
20170 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20171
20172
20173 # The HP-UX ksh and POSIX shell print the target directory to stdout
20174 # if CDPATH is set.
20175 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20176
20177 sed_quote_subst='$sed_quote_subst'
20178 double_quote_subst='$double_quote_subst'
20179 delay_variable_subst='$delay_variable_subst'
20180 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20181 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20182 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20183 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20184 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20185 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20186 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20187 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20188 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20189 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20190 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20191 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20192 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20193 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20194 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20195 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20196 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20197 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20198 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20199 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20200 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20201 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20202 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20203 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20204 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20205 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20206 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20207 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20208 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20209 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20210 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20211 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20212 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20213 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20214 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20215 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20216 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20217 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20218 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20219 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20220 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20221 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20222 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20223 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20224 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20225 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20226 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20227 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20228 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20229 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20230 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20231 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20232 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20233 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20234 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20235 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20236 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20237 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20238 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
20239 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20240 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20241 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20242 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20243 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20244 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20245 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20246 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20247 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20248 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20249 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20250 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20251 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20252 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20253 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20254 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20255 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20256 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20257 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20258 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20259 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20260 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20261 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20262 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20263 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20264 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20265 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20266 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20267 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20268 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20269 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20270 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20271 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20272 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20273 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20274 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20275 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20276 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20277 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20278 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20279 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20280 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20281 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20282 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20283 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20284 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20285 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20286 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20287 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20288 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20289 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20290 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20291 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20292 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20293 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20294 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20295 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20296 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20297 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20298 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20299 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20300 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20301 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20302 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20303 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20304 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20305 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20306 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20307 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20308 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20309 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20310 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20311 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20312 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20313 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20314 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20315 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20316 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20317 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20318 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20319 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20320 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20321 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20322 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20323 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20324 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20325 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20326 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20327 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20328 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20329 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20330 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20331 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20332 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20333 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20334 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20335 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20336 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20337 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20338 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20339 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20340 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20341 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20342 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20343 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20344 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20345 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20346 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20347 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20348 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20349 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20350 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20351 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20352 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20353 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20354 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20355 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20356 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20357 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20358 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20359 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20360 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20361 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20362 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20363 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20364 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20365 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20366 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20367 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20368 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20369
20370 LTCC='$LTCC'
20371 LTCFLAGS='$LTCFLAGS'
20372 compiler='$compiler_DEFAULT'
20373
20374 # A function that is used when there is no print builtin or printf.
20375 func_fallback_echo ()
20376 {
20377 eval 'cat <<_LTECHO_EOF
20378 \$1
20379 _LTECHO_EOF'
20380 }
20381
20382 # Quote evaled strings.
20383 for var in SHELL \
20384 ECHO \
20385 PATH_SEPARATOR \
20386 SED \
20387 GREP \
20388 EGREP \
20389 FGREP \
20390 LD \
20391 NM \
20392 LN_S \
20393 lt_SP2NL \
20394 lt_NL2SP \
20395 reload_flag \
20396 OBJDUMP \
20397 deplibs_check_method \
20398 file_magic_cmd \
20399 file_magic_glob \
20400 want_nocaseglob \
20401 DLLTOOL \
20402 sharedlib_from_linklib_cmd \
20403 AR \
20404 AR_FLAGS \
20405 archiver_list_spec \
20406 STRIP \
20407 RANLIB \
20408 CC \
20409 CFLAGS \
20410 compiler \
20411 lt_cv_sys_global_symbol_pipe \
20412 lt_cv_sys_global_symbol_to_cdecl \
20413 lt_cv_sys_global_symbol_to_import \
20414 lt_cv_sys_global_symbol_to_c_name_address \
20415 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20416 lt_cv_nm_interface \
20417 nm_file_list_spec \
20418 lt_cv_truncate_bin \
20419 lt_prog_compiler_no_builtin_flag \
20420 lt_prog_compiler_pic \
20421 lt_prog_compiler_wl \
20422 lt_prog_compiler_static \
20423 lt_cv_prog_compiler_c_o \
20424 need_locks \
20425 MANIFEST_TOOL \
20426 DSYMUTIL \
20427 NMEDIT \
20428 LIPO \
20429 OTOOL \
20430 OTOOL64 \
20431 shrext_cmds \
20432 export_dynamic_flag_spec \
20433 whole_archive_flag_spec \
20434 compiler_needs_object \
20435 with_gnu_ld \
20436 allow_undefined_flag \
20437 no_undefined_flag \
20438 hardcode_libdir_flag_spec \
20439 hardcode_libdir_separator \
20440 exclude_expsyms \
20441 include_expsyms \
20442 file_list_spec \
20443 variables_saved_for_relink \
20444 libname_spec \
20445 library_names_spec \
20446 soname_spec \
20447 install_override_mode \
20448 finish_eval \
20449 old_striplib \
20450 striplib \
20451 compiler_lib_search_dirs \
20452 predep_objects \
20453 postdep_objects \
20454 predeps \
20455 postdeps \
20456 compiler_lib_search_path \
20457 LD_CXX \
20458 reload_flag_CXX \
20459 compiler_CXX \
20460 lt_prog_compiler_no_builtin_flag_CXX \
20461 lt_prog_compiler_pic_CXX \
20462 lt_prog_compiler_wl_CXX \
20463 lt_prog_compiler_static_CXX \
20464 lt_cv_prog_compiler_c_o_CXX \
20465 export_dynamic_flag_spec_CXX \
20466 whole_archive_flag_spec_CXX \
20467 compiler_needs_object_CXX \
20468 with_gnu_ld_CXX \
20469 allow_undefined_flag_CXX \
20470 no_undefined_flag_CXX \
20471 hardcode_libdir_flag_spec_CXX \
20472 hardcode_libdir_separator_CXX \
20473 exclude_expsyms_CXX \
20474 include_expsyms_CXX \
20475 file_list_spec_CXX \
20476 compiler_lib_search_dirs_CXX \
20477 predep_objects_CXX \
20478 postdep_objects_CXX \
20479 predeps_CXX \
20480 postdeps_CXX \
20481 compiler_lib_search_path_CXX; do
20482 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20483 *[\\\\\\\`\\"\\\$]*)
20484 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20485 ;;
20486 *)
20487 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20488 ;;
20489 esac
20490 done
20491
20492 # Double-quote double-evaled strings.
20493 for var in reload_cmds \
20494 old_postinstall_cmds \
20495 old_postuninstall_cmds \
20496 old_archive_cmds \
20497 extract_expsyms_cmds \
20498 old_archive_from_new_cmds \
20499 old_archive_from_expsyms_cmds \
20500 archive_cmds \
20501 archive_expsym_cmds \
20502 module_cmds \
20503 module_expsym_cmds \
20504 export_symbols_cmds \
20505 prelink_cmds \
20506 postlink_cmds \
20507 postinstall_cmds \
20508 postuninstall_cmds \
20509 finish_cmds \
20510 sys_lib_search_path_spec \
20511 configure_time_dlsearch_path \
20512 configure_time_lt_sys_library_path \
20513 reload_cmds_CXX \
20514 old_archive_cmds_CXX \
20515 old_archive_from_new_cmds_CXX \
20516 old_archive_from_expsyms_cmds_CXX \
20517 archive_cmds_CXX \
20518 archive_expsym_cmds_CXX \
20519 module_cmds_CXX \
20520 module_expsym_cmds_CXX \
20521 export_symbols_cmds_CXX \
20522 prelink_cmds_CXX \
20523 postlink_cmds_CXX; do
20524 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20525 *[\\\\\\\`\\"\\\$]*)
20526 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20527 ;;
20528 *)
20529 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20530 ;;
20531 esac
20532 done
20533
20534 ac_aux_dir='$ac_aux_dir'
20535
20536 # See if we are running on zsh, and set the options that allow our
20537 # commands through without removal of \ escapes INIT.
20538 if test -n "\${ZSH_VERSION+set}"; then
20539 setopt NO_GLOB_SUBST
20540 fi
20541
20542
20543 PACKAGE='$PACKAGE'
20544 VERSION='$VERSION'
20545 RM='$RM'
20546 ofile='$ofile'
20547
20548
20549
20550
20551
20552
20553 _ACEOF
20554
20555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20556
20557 # Handling of arguments.
20558 for ac_config_target in $ac_config_targets
20559 do
20560 case $ac_config_target in
20561 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20562 "cwidget-config.h") CONFIG_HEADERS="$CONFIG_HEADERS cwidget-config.h" ;;
20563 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
20564 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20565 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20566 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20567 "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
20568 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20569 "cwidget.pc") CONFIG_FILES="$CONFIG_FILES cwidget.pc" ;;
20570 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20571 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20572 "src/cwidget/Makefile") CONFIG_FILES="$CONFIG_FILES src/cwidget/Makefile" ;;
20573 "src/cwidget/config/Makefile") CONFIG_FILES="$CONFIG_FILES src/cwidget/config/Makefile" ;;
20574 "src/cwidget/widgets/Makefile") CONFIG_FILES="$CONFIG_FILES src/cwidget/widgets/Makefile" ;;
20575 "src/cwidget/generic/Makefile") CONFIG_FILES="$CONFIG_FILES src/cwidget/generic/Makefile" ;;
20576 "src/cwidget/generic/threads/Makefile") CONFIG_FILES="$CONFIG_FILES src/cwidget/generic/threads/Makefile" ;;
20577 "src/cwidget/generic/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/cwidget/generic/util/Makefile" ;;
20578 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
20579
20580 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20581 esac
20582 done
20583
20584
20585 # If the user did not use the arguments to specify the items to instantiate,
20586 # then the envvar interface is used. Set only those that are not.
20587 # We use the long form for the default assignment because of an extremely
20588 # bizarre bug on SunOS 4.1.3.
20589 if $ac_need_defaults; then
20590 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20591 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20592 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20593 fi
20594
20595 # Have a temporary directory for convenience. Make it in the build tree
20596 # simply because there is no reason against having it here, and in addition,
20597 # creating and moving files from /tmp can sometimes cause problems.
20598 # Hook for its removal unless debugging.
20599 # Note that there is a small window in which the directory will not be cleaned:
20600 # after its creation but before its name has been assigned to `$tmp'.
20601 $debug ||
20602 {
20603 tmp= ac_tmp=
20604 trap 'exit_status=$?
20605 : "${ac_tmp:=$tmp}"
20606 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20607 ' 0
20608 trap 'as_fn_exit 1' 1 2 13 15
20609 }
20610 # Create a (secure) tmp directory for tmp files.
20611
20612 {
20613 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20614 test -d "$tmp"
20615 } ||
20616 {
20617 tmp=./conf$$-$RANDOM
20618 (umask 077 && mkdir "$tmp")
20619 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20620 ac_tmp=$tmp
20621
20622 # Set up the scripts for CONFIG_FILES section.
20623 # No need to generate them if there are no CONFIG_FILES.
20624 # This happens for instance with `./config.status config.h'.
20625 if test -n "$CONFIG_FILES"; then
20626
20627
20628 ac_cr=`echo X | tr X '\015'`
20629 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20630 # But we know of no other shell where ac_cr would be empty at this
20631 # point, so we can use a bashism as a fallback.
20632 if test "x$ac_cr" = x; then
20633 eval ac_cr=\$\'\\r\'
20634 fi
20635 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20636 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20637 ac_cs_awk_cr='\\r'
20638 else
20639 ac_cs_awk_cr=$ac_cr
20640 fi
20641
20642 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20643 _ACEOF
20644
20645
20646 {
20647 echo "cat >conf$$subs.awk <<_ACEOF" &&
20648 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20649 echo "_ACEOF"
20650 } >conf$$subs.sh ||
20651 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20652 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20653 ac_delim='%!_!# '
20654 for ac_last_try in false false false false false :; do
20655 . ./conf$$subs.sh ||
20656 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20657
20658 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20659 if test $ac_delim_n = $ac_delim_num; then
20660 break
20661 elif $ac_last_try; then
20662 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20663 else
20664 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20665 fi
20666 done
20667 rm -f conf$$subs.sh
20668
20669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20670 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20671 _ACEOF
20672 sed -n '
20673 h
20674 s/^/S["/; s/!.*/"]=/
20675 p
20676 g
20677 s/^[^!]*!//
20678 :repl
20679 t repl
20680 s/'"$ac_delim"'$//
20681 t delim
20682 :nl
20683 h
20684 s/\(.\{148\}\)..*/\1/
20685 t more1
20686 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20687 p
20688 n
20689 b repl
20690 :more1
20691 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20692 p
20693 g
20694 s/.\{148\}//
20695 t nl
20696 :delim
20697 h
20698 s/\(.\{148\}\)..*/\1/
20699 t more2
20700 s/["\\]/\\&/g; s/^/"/; s/$/"/
20701 p
20702 b
20703 :more2
20704 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20705 p
20706 g
20707 s/.\{148\}//
20708 t delim
20709 ' <conf$$subs.awk | sed '
20710 /^[^""]/{
20711 N
20712 s/\n//
20713 }
20714 ' >>$CONFIG_STATUS || ac_write_fail=1
20715 rm -f conf$$subs.awk
20716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20717 _ACAWK
20718 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20719 for (key in S) S_is_set[key] = 1
20720 FS = ""
20721
20722 }
20723 {
20724 line = $ 0
20725 nfields = split(line, field, "@")
20726 substed = 0
20727 len = length(field[1])
20728 for (i = 2; i < nfields; i++) {
20729 key = field[i]
20730 keylen = length(key)
20731 if (S_is_set[key]) {
20732 value = S[key]
20733 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20734 len += length(value) + length(field[++i])
20735 substed = 1
20736 } else
20737 len += 1 + keylen
20738 }
20739
20740 print line
20741 }
20742
20743 _ACAWK
20744 _ACEOF
20745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20746 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20747 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20748 else
20749 cat
20750 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20751 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20752 _ACEOF
20753
20754 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20755 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20756 # trailing colons and then remove the whole line if VPATH becomes empty
20757 # (actually we leave an empty line to preserve line numbers).
20758 if test "x$srcdir" = x.; then
20759 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20760 h
20761 s///
20762 s/^/:/
20763 s/[ ]*$/:/
20764 s/:\$(srcdir):/:/g
20765 s/:\${srcdir}:/:/g
20766 s/:@srcdir@:/:/g
20767 s/^:*//
20768 s/:*$//
20769 x
20770 s/\(=[ ]*\).*/\1/
20771 G
20772 s/\n//
20773 s/^[^=]*=[ ]*$//
20774 }'
20775 fi
20776
20777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20778 fi # test -n "$CONFIG_FILES"
20779
20780 # Set up the scripts for CONFIG_HEADERS section.
20781 # No need to generate them if there are no CONFIG_HEADERS.
20782 # This happens for instance with `./config.status Makefile'.
20783 if test -n "$CONFIG_HEADERS"; then
20784 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20785 BEGIN {
20786 _ACEOF
20787
20788 # Transform confdefs.h into an awk script `defines.awk', embedded as
20789 # here-document in config.status, that substitutes the proper values into
20790 # config.h.in to produce config.h.
20791
20792 # Create a delimiter string that does not exist in confdefs.h, to ease
20793 # handling of long lines.
20794 ac_delim='%!_!# '
20795 for ac_last_try in false false :; do
20796 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20797 if test -z "$ac_tt"; then
20798 break
20799 elif $ac_last_try; then
20800 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20801 else
20802 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20803 fi
20804 done
20805
20806 # For the awk script, D is an array of macro values keyed by name,
20807 # likewise P contains macro parameters if any. Preserve backslash
20808 # newline sequences.
20809
20810 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20811 sed -n '
20812 s/.\{148\}/&'"$ac_delim"'/g
20813 t rset
20814 :rset
20815 s/^[ ]*#[ ]*define[ ][ ]*/ /
20816 t def
20817 d
20818 :def
20819 s/\\$//
20820 t bsnl
20821 s/["\\]/\\&/g
20822 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20823 D["\1"]=" \3"/p
20824 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20825 d
20826 :bsnl
20827 s/["\\]/\\&/g
20828 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20829 D["\1"]=" \3\\\\\\n"\\/p
20830 t cont
20831 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20832 t cont
20833 d
20834 :cont
20835 n
20836 s/.\{148\}/&'"$ac_delim"'/g
20837 t clear
20838 :clear
20839 s/\\$//
20840 t bsnlc
20841 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20842 d
20843 :bsnlc
20844 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20845 b cont
20846 ' <confdefs.h | sed '
20847 s/'"$ac_delim"'/"\\\
20848 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20849
20850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20851 for (key in D) D_is_set[key] = 1
20852 FS = ""
20853 }
20854 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20855 line = \$ 0
20856 split(line, arg, " ")
20857 if (arg[1] == "#") {
20858 defundef = arg[2]
20859 mac1 = arg[3]
20860 } else {
20861 defundef = substr(arg[1], 2)
20862 mac1 = arg[2]
20863 }
20864 split(mac1, mac2, "(") #)
20865 macro = mac2[1]
20866 prefix = substr(line, 1, index(line, defundef) - 1)
20867 if (D_is_set[macro]) {
20868 # Preserve the white space surrounding the "#".
20869 print prefix "define", macro P[macro] D[macro]
20870 next
20871 } else {
20872 # Replace #undef with comments. This is necessary, for example,
20873 # in the case of _POSIX_SOURCE, which is predefined and required
20874 # on some systems where configure will not decide to define it.
20875 if (defundef == "undef") {
20876 print "/*", prefix defundef, macro, "*/"
20877 next
20878 }
20879 }
20880 }
20881 { print }
20882 _ACAWK
20883 _ACEOF
20884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20885 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20886 fi # test -n "$CONFIG_HEADERS"
20887
20888
20889 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20890 shift
20891 for ac_tag
20892 do
20893 case $ac_tag in
20894 :[FHLC]) ac_mode=$ac_tag; continue;;
20895 esac
20896 case $ac_mode$ac_tag in
20897 :[FHL]*:*);;
20898 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20899 :[FH]-) ac_tag=-:-;;
20900 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20901 esac
20902 ac_save_IFS=$IFS
20903 IFS=:
20904 set x $ac_tag
20905 IFS=$ac_save_IFS
20906 shift
20907 ac_file=$1
20908 shift
20909
20910 case $ac_mode in
20911 :L) ac_source=$1;;
20912 :[FH])
20913 ac_file_inputs=
20914 for ac_f
20915 do
20916 case $ac_f in
20917 -) ac_f="$ac_tmp/stdin";;
20918 *) # Look for the file first in the build tree, then in the source tree
20919 # (if the path is not absolute). The absolute path cannot be DOS-style,
20920 # because $ac_f cannot contain `:'.
20921 test -f "$ac_f" ||
20922 case $ac_f in
20923 [\\/$]*) false;;
20924 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20925 esac ||
20926 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20927 esac
20928 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20929 as_fn_append ac_file_inputs " '$ac_f'"
20930 done
20931
20932 # Let's still pretend it is `configure' which instantiates (i.e., don't
20933 # use $as_me), people would be surprised to read:
20934 # /* config.h. Generated by config.status. */
20935 configure_input='Generated from '`
20936 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20937 `' by configure.'
20938 if test x"$ac_file" != x-; then
20939 configure_input="$ac_file. $configure_input"
20940 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20941 $as_echo "$as_me: creating $ac_file" >&6;}
20942 fi
20943 # Neutralize special characters interpreted by sed in replacement strings.
20944 case $configure_input in #(
20945 *\&* | *\|* | *\\* )
20946 ac_sed_conf_input=`$as_echo "$configure_input" |
20947 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20948 *) ac_sed_conf_input=$configure_input;;
20949 esac
20950
20951 case $ac_tag in
20952 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20953 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20954 esac
20955 ;;
20956 esac
20957
20958 ac_dir=`$as_dirname -- "$ac_file" ||
20959 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20960 X"$ac_file" : 'X\(//\)[^/]' \| \
20961 X"$ac_file" : 'X\(//\)$' \| \
20962 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20963 $as_echo X"$ac_file" |
20964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20965 s//\1/
20966 q
20967 }
20968 /^X\(\/\/\)[^/].*/{
20969 s//\1/
20970 q
20971 }
20972 /^X\(\/\/\)$/{
20973 s//\1/
20974 q
20975 }
20976 /^X\(\/\).*/{
20977 s//\1/
20978 q
20979 }
20980 s/.*/./; q'`
20981 as_dir="$ac_dir"; as_fn_mkdir_p
20982 ac_builddir=.
20983
20984 case "$ac_dir" in
20985 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20986 *)
20987 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20988 # A ".." for each directory in $ac_dir_suffix.
20989 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20990 case $ac_top_builddir_sub in
20991 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20992 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20993 esac ;;
20994 esac
20995 ac_abs_top_builddir=$ac_pwd
20996 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20997 # for backward compatibility:
20998 ac_top_builddir=$ac_top_build_prefix
20999
21000 case $srcdir in
21001 .) # We are building in place.
21002 ac_srcdir=.
21003 ac_top_srcdir=$ac_top_builddir_sub
21004 ac_abs_top_srcdir=$ac_pwd ;;
21005 [\\/]* | ?:[\\/]* ) # Absolute name.
21006 ac_srcdir=$srcdir$ac_dir_suffix;
21007 ac_top_srcdir=$srcdir
21008 ac_abs_top_srcdir=$srcdir ;;
21009 *) # Relative name.
21010 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21011 ac_top_srcdir=$ac_top_build_prefix$srcdir
21012 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21013 esac
21014 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21015
21016
21017 case $ac_mode in
21018 :F)
21019 #
21020 # CONFIG_FILE
21021 #
21022
21023 case $INSTALL in
21024 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21025 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21026 esac
21027 ac_MKDIR_P=$MKDIR_P
21028 case $MKDIR_P in
21029 [\\/$]* | ?:[\\/]* ) ;;
21030 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21031 esac
21032 _ACEOF
21033
21034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21035 # If the template does not know about datarootdir, expand it.
21036 # FIXME: This hack should be removed a few years after 2.60.
21037 ac_datarootdir_hack=; ac_datarootdir_seen=
21038 ac_sed_dataroot='
21039 /datarootdir/ {
21040 p
21041 q
21042 }
21043 /@datadir@/p
21044 /@docdir@/p
21045 /@infodir@/p
21046 /@localedir@/p
21047 /@mandir@/p'
21048 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21049 *datarootdir*) ac_datarootdir_seen=yes;;
21050 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21052 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21053 _ACEOF
21054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21055 ac_datarootdir_hack='
21056 s&@datadir@&$datadir&g
21057 s&@docdir@&$docdir&g
21058 s&@infodir@&$infodir&g
21059 s&@localedir@&$localedir&g
21060 s&@mandir@&$mandir&g
21061 s&\\\${datarootdir}&$datarootdir&g' ;;
21062 esac
21063 _ACEOF
21064
21065 # Neutralize VPATH when `$srcdir' = `.'.
21066 # Shell code in configure.ac might set extrasub.
21067 # FIXME: do we really want to maintain this feature?
21068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21069 ac_sed_extra="$ac_vpsub
21070 $extrasub
21071 _ACEOF
21072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21073 :t
21074 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21075 s|@configure_input@|$ac_sed_conf_input|;t t
21076 s&@top_builddir@&$ac_top_builddir_sub&;t t
21077 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21078 s&@srcdir@&$ac_srcdir&;t t
21079 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21080 s&@top_srcdir@&$ac_top_srcdir&;t t
21081 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21082 s&@builddir@&$ac_builddir&;t t
21083 s&@abs_builddir@&$ac_abs_builddir&;t t
21084 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21085 s&@INSTALL@&$ac_INSTALL&;t t
21086 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21087 $ac_datarootdir_hack
21088 "
21089 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21090 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21091
21092 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21093 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21094 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21095 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21097 which seems to be undefined. Please make sure it is defined" >&5
21098 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21099 which seems to be undefined. Please make sure it is defined" >&2;}
21100
21101 rm -f "$ac_tmp/stdin"
21102 case $ac_file in
21103 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21104 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21105 esac \
21106 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21107 ;;
21108 :H)
21109 #
21110 # CONFIG_HEADER
21111 #
21112 if test x"$ac_file" != x-; then
21113 {
21114 $as_echo "/* $configure_input */" \
21115 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21116 } >"$ac_tmp/config.h" \
21117 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21118 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21119 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21120 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21121 else
21122 rm -f "$ac_file"
21123 mv "$ac_tmp/config.h" "$ac_file" \
21124 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21125 fi
21126 else
21127 $as_echo "/* $configure_input */" \
21128 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21129 || as_fn_error $? "could not create -" "$LINENO" 5
21130 fi
21131 # Compute "$ac_file"'s index in $config_headers.
21132 _am_arg="$ac_file"
21133 _am_stamp_count=1
21134 for _am_header in $config_headers :; do
21135 case $_am_header in
21136 $_am_arg | $_am_arg:* )
21137 break ;;
21138 * )
21139 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21140 esac
21141 done
21142 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21143 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21144 X"$_am_arg" : 'X\(//\)[^/]' \| \
21145 X"$_am_arg" : 'X\(//\)$' \| \
21146 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21147 $as_echo X"$_am_arg" |
21148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21149 s//\1/
21150 q
21151 }
21152 /^X\(\/\/\)[^/].*/{
21153 s//\1/
21154 q
21155 }
21156 /^X\(\/\/\)$/{
21157 s//\1/
21158 q
21159 }
21160 /^X\(\/\).*/{
21161 s//\1/
21162 q
21163 }
21164 s/.*/./; q'`/stamp-h$_am_stamp_count
21165 ;;
21166
21167 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21168 $as_echo "$as_me: executing $ac_file commands" >&6;}
21169 ;;
21170 esac
21171
21172
21173 case $ac_file$ac_mode in
21174 "po-directories":C)
21175 for ac_file in $CONFIG_FILES; do
21176 # Support "outfile[:infile[:infile...]]"
21177 case "$ac_file" in
21178 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21179 esac
21180 # PO directories have a Makefile.in generated from Makefile.in.in.
21181 case "$ac_file" in */Makefile.in)
21182 # Adjust a relative srcdir.
21183 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21184 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
21185 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21186 # In autoconf-2.13 it is called $ac_given_srcdir.
21187 # In autoconf-2.50 it is called $srcdir.
21188 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
21189 case "$ac_given_srcdir" in
21190 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
21191 /*) top_srcdir="$ac_given_srcdir" ;;
21192 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
21193 esac
21194 # Treat a directory as a PO directory if and only if it has a
21195 # POTFILES.in file. This allows packages to have multiple PO
21196 # directories under different names or in different locations.
21197 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21198 rm -f "$ac_dir/POTFILES"
21199 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
21200 gt_tab=`printf '\t'`
21201 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21202 POMAKEFILEDEPS="POTFILES.in"
21203 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
21204 # on $ac_dir but don't depend on user-specified configuration
21205 # parameters.
21206 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21207 # The LINGUAS file contains the set of available languages.
21208 if test -n "$OBSOLETE_ALL_LINGUAS"; then
21209 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
21210 fi
21211 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21212 # Hide the ALL_LINGUAS assignment from automake < 1.5.
21213 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21214 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
21215 else
21216 # The set of available languages was given in configure.in.
21217 # Hide the ALL_LINGUAS assignment from automake < 1.5.
21218 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
21219 fi
21220 # Compute POFILES
21221 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
21222 # Compute UPDATEPOFILES
21223 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
21224 # Compute DUMMYPOFILES
21225 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
21226 # Compute GMOFILES
21227 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
21228 case "$ac_given_srcdir" in
21229 .) srcdirpre= ;;
21230 *) srcdirpre='$(srcdir)/' ;;
21231 esac
21232 POFILES=
21233 UPDATEPOFILES=
21234 DUMMYPOFILES=
21235 GMOFILES=
21236 for lang in $ALL_LINGUAS; do
21237 POFILES="$POFILES $srcdirpre$lang.po"
21238 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
21239 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
21240 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
21241 done
21242 # CATALOGS depends on both $ac_dir and the user's LINGUAS
21243 # environment variable.
21244 INST_LINGUAS=
21245 if test -n "$ALL_LINGUAS"; then
21246 for presentlang in $ALL_LINGUAS; do
21247 useit=no
21248 if test "%UNSET%" != "$LINGUAS"; then
21249 desiredlanguages="$LINGUAS"
21250 else
21251 desiredlanguages="$ALL_LINGUAS"
21252 fi
21253 for desiredlang in $desiredlanguages; do
21254 # Use the presentlang catalog if desiredlang is
21255 # a. equal to presentlang, or
21256 # b. a variant of presentlang (because in this case,
21257 # presentlang can be used as a fallback for messages
21258 # which are not translated in the desiredlang catalog).
21259 case "$desiredlang" in
21260 "$presentlang"*) useit=yes;;
21261 esac
21262 done
21263 if test $useit = yes; then
21264 INST_LINGUAS="$INST_LINGUAS $presentlang"
21265 fi
21266 done
21267 fi
21268 CATALOGS=
21269 if test -n "$INST_LINGUAS"; then
21270 for lang in $INST_LINGUAS; do
21271 CATALOGS="$CATALOGS $lang.gmo"
21272 done
21273 fi
21274 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
21275 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"
21276 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
21277 if test -f "$f"; then
21278 case "$f" in
21279 *.orig | *.bak | *~) ;;
21280 *) cat "$f" >> "$ac_dir/Makefile" ;;
21281 esac
21282 fi
21283 done
21284 fi
21285 ;;
21286 esac
21287 done ;;
21288 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21289 # Older Autoconf quotes --file arguments for eval, but not when files
21290 # are listed without --file. Let's play safe and only enable the eval
21291 # if we detect the quoting.
21292 # TODO: see whether this extra hack can be removed once we start
21293 # requiring Autoconf 2.70 or later.
21294 case $CONFIG_FILES in #(
21295 *\'*) :
21296 eval set x "$CONFIG_FILES" ;; #(
21297 *) :
21298 set x $CONFIG_FILES ;; #(
21299 *) :
21300 ;;
21301 esac
21302 shift
21303 # Used to flag and report bootstrapping failures.
21304 am_rc=0
21305 for am_mf
21306 do
21307 # Strip MF so we end up with the name of the file.
21308 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
21309 # Check whether this is an Automake generated Makefile which includes
21310 # dependency-tracking related rules and includes.
21311 # Grep'ing the whole file directly is not great: AIX grep has a line
21312 # limit of 2048, but all sed's we know have understand at least 4000.
21313 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21314 || continue
21315 am_dirpart=`$as_dirname -- "$am_mf" ||
21316 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21317 X"$am_mf" : 'X\(//\)[^/]' \| \
21318 X"$am_mf" : 'X\(//\)$' \| \
21319 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21320 $as_echo X"$am_mf" |
21321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21322 s//\1/
21323 q
21324 }
21325 /^X\(\/\/\)[^/].*/{
21326 s//\1/
21327 q
21328 }
21329 /^X\(\/\/\)$/{
21330 s//\1/
21331 q
21332 }
21333 /^X\(\/\).*/{
21334 s//\1/
21335 q
21336 }
21337 s/.*/./; q'`
21338 am_filepart=`$as_basename -- "$am_mf" ||
21339 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21340 X"$am_mf" : 'X\(//\)$' \| \
21341 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21342 $as_echo X/"$am_mf" |
21343 sed '/^.*\/\([^/][^/]*\)\/*$/{
21344 s//\1/
21345 q
21346 }
21347 /^X\/\(\/\/\)$/{
21348 s//\1/
21349 q
21350 }
21351 /^X\/\(\/\).*/{
21352 s//\1/
21353 q
21354 }
21355 s/.*/./; q'`
21356 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21357 && sed -e '/# am--include-marker/d' "$am_filepart" \
21358 | $MAKE -f - am--depfiles" >&5
21359 (cd "$am_dirpart" \
21360 && sed -e '/# am--include-marker/d' "$am_filepart" \
21361 | $MAKE -f - am--depfiles) >&5 2>&5
21362 ac_status=$?
21363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); } || am_rc=$?
21365 done
21366 if test $am_rc -ne 0; then
21367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21369 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21370 for automatic dependency tracking. Try re-running configure with the
21371 '--disable-dependency-tracking' option to at least be able to build
21372 the package (albeit without support for automatic dependency tracking).
21373 See \`config.log' for more details" "$LINENO" 5; }
21374 fi
21375 { am_dirpart=; unset am_dirpart;}
21376 { am_filepart=; unset am_filepart;}
21377 { am_mf=; unset am_mf;}
21378 { am_rc=; unset am_rc;}
21379 rm -f conftest-deps.mk
21380 }
21381 ;;
21382 "libtool":C)
21383
21384 # See if we are running on zsh, and set the options that allow our
21385 # commands through without removal of \ escapes.
21386 if test -n "${ZSH_VERSION+set}"; then
21387 setopt NO_GLOB_SUBST
21388 fi
21389
21390 cfgfile=${ofile}T
21391 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21392 $RM "$cfgfile"
21393
21394 cat <<_LT_EOF >> "$cfgfile"
21395 #! $SHELL
21396 # Generated automatically by $as_me ($PACKAGE) $VERSION
21397 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21398
21399 # Provide generalized library-building support services.
21400 # Written by Gordon Matzigkeit, 1996
21401
21402 # Copyright (C) 2014 Free Software Foundation, Inc.
21403 # This is free software; see the source for copying conditions. There is NO
21404 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21405
21406 # GNU Libtool is free software; you can redistribute it and/or modify
21407 # it under the terms of the GNU General Public License as published by
21408 # the Free Software Foundation; either version 2 of of the License, or
21409 # (at your option) any later version.
21410 #
21411 # As a special exception to the GNU General Public License, if you
21412 # distribute this file as part of a program or library that is built
21413 # using GNU Libtool, you may include this file under the same
21414 # distribution terms that you use for the rest of that program.
21415 #
21416 # GNU Libtool is distributed in the hope that it will be useful, but
21417 # WITHOUT ANY WARRANTY; without even the implied warranty of
21418 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21419 # GNU General Public License for more details.
21420 #
21421 # You should have received a copy of the GNU General Public License
21422 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21423
21424
21425 # The names of the tagged configurations supported by this script.
21426 available_tags='CXX '
21427
21428 # Configured defaults for sys_lib_dlsearch_path munging.
21429 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21430
21431 # ### BEGIN LIBTOOL CONFIG
21432
21433 # Which release of libtool.m4 was used?
21434 macro_version=$macro_version
21435 macro_revision=$macro_revision
21436
21437 # Whether or not to build shared libraries.
21438 build_libtool_libs=$enable_shared
21439
21440 # Whether or not to build static libraries.
21441 build_old_libs=$enable_static
21442
21443 # What type of objects to build.
21444 pic_mode=$pic_mode
21445
21446 # Whether or not to optimize for fast installation.
21447 fast_install=$enable_fast_install
21448
21449 # Shared archive member basename,for filename based shared library versioning on AIX.
21450 shared_archive_member_spec=$shared_archive_member_spec
21451
21452 # Shell to use when invoking shell scripts.
21453 SHELL=$lt_SHELL
21454
21455 # An echo program that protects backslashes.
21456 ECHO=$lt_ECHO
21457
21458 # The PATH separator for the build system.
21459 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21460
21461 # The host system.
21462 host_alias=$host_alias
21463 host=$host
21464 host_os=$host_os
21465
21466 # The build system.
21467 build_alias=$build_alias
21468 build=$build
21469 build_os=$build_os
21470
21471 # A sed program that does not truncate output.
21472 SED=$lt_SED
21473
21474 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21475 Xsed="\$SED -e 1s/^X//"
21476
21477 # A grep program that handles long lines.
21478 GREP=$lt_GREP
21479
21480 # An ERE matcher.
21481 EGREP=$lt_EGREP
21482
21483 # A literal string matcher.
21484 FGREP=$lt_FGREP
21485
21486 # A BSD- or MS-compatible name lister.
21487 NM=$lt_NM
21488
21489 # Whether we need soft or hard links.
21490 LN_S=$lt_LN_S
21491
21492 # What is the maximum length of a command?
21493 max_cmd_len=$max_cmd_len
21494
21495 # Object file suffix (normally "o").
21496 objext=$ac_objext
21497
21498 # Executable file suffix (normally "").
21499 exeext=$exeext
21500
21501 # whether the shell understands "unset".
21502 lt_unset=$lt_unset
21503
21504 # turn spaces into newlines.
21505 SP2NL=$lt_lt_SP2NL
21506
21507 # turn newlines into spaces.
21508 NL2SP=$lt_lt_NL2SP
21509
21510 # convert \$build file names to \$host format.
21511 to_host_file_cmd=$lt_cv_to_host_file_cmd
21512
21513 # convert \$build files to toolchain format.
21514 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21515
21516 # An object symbol dumper.
21517 OBJDUMP=$lt_OBJDUMP
21518
21519 # Method to check whether dependent libraries are shared objects.
21520 deplibs_check_method=$lt_deplibs_check_method
21521
21522 # Command to use when deplibs_check_method = "file_magic".
21523 file_magic_cmd=$lt_file_magic_cmd
21524
21525 # How to find potential files when deplibs_check_method = "file_magic".
21526 file_magic_glob=$lt_file_magic_glob
21527
21528 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21529 want_nocaseglob=$lt_want_nocaseglob
21530
21531 # DLL creation program.
21532 DLLTOOL=$lt_DLLTOOL
21533
21534 # Command to associate shared and link libraries.
21535 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21536
21537 # The archiver.
21538 AR=$lt_AR
21539
21540 # Flags to create an archive.
21541 AR_FLAGS=$lt_AR_FLAGS
21542
21543 # How to feed a file listing to the archiver.
21544 archiver_list_spec=$lt_archiver_list_spec
21545
21546 # A symbol stripping program.
21547 STRIP=$lt_STRIP
21548
21549 # Commands used to install an old-style archive.
21550 RANLIB=$lt_RANLIB
21551 old_postinstall_cmds=$lt_old_postinstall_cmds
21552 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21553
21554 # Whether to use a lock for old archive extraction.
21555 lock_old_archive_extraction=$lock_old_archive_extraction
21556
21557 # A C compiler.
21558 LTCC=$lt_CC
21559
21560 # LTCC compiler flags.
21561 LTCFLAGS=$lt_CFLAGS
21562
21563 # Take the output of nm and produce a listing of raw symbols and C names.
21564 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21565
21566 # Transform the output of nm in a proper C declaration.
21567 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21568
21569 # Transform the output of nm into a list of symbols to manually relocate.
21570 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21571
21572 # Transform the output of nm in a C name address pair.
21573 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21574
21575 # Transform the output of nm in a C name address pair when lib prefix is needed.
21576 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21577
21578 # The name lister interface.
21579 nm_interface=$lt_lt_cv_nm_interface
21580
21581 # Specify filename containing input files for \$NM.
21582 nm_file_list_spec=$lt_nm_file_list_spec
21583
21584 # The root where to search for dependent libraries,and where our libraries should be installed.
21585 lt_sysroot=$lt_sysroot
21586
21587 # Command to truncate a binary pipe.
21588 lt_truncate_bin=$lt_lt_cv_truncate_bin
21589
21590 # The name of the directory that contains temporary libtool files.
21591 objdir=$objdir
21592
21593 # Used to examine libraries when file_magic_cmd begins with "file".
21594 MAGIC_CMD=$MAGIC_CMD
21595
21596 # Must we lock files when doing compilation?
21597 need_locks=$lt_need_locks
21598
21599 # Manifest tool.
21600 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21601
21602 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21603 DSYMUTIL=$lt_DSYMUTIL
21604
21605 # Tool to change global to local symbols on Mac OS X.
21606 NMEDIT=$lt_NMEDIT
21607
21608 # Tool to manipulate fat objects and archives on Mac OS X.
21609 LIPO=$lt_LIPO
21610
21611 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21612 OTOOL=$lt_OTOOL
21613
21614 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21615 OTOOL64=$lt_OTOOL64
21616
21617 # Old archive suffix (normally "a").
21618 libext=$libext
21619
21620 # Shared library suffix (normally ".so").
21621 shrext_cmds=$lt_shrext_cmds
21622
21623 # The commands to extract the exported symbol list from a shared archive.
21624 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21625
21626 # Variables whose values should be saved in libtool wrapper scripts and
21627 # restored at link time.
21628 variables_saved_for_relink=$lt_variables_saved_for_relink
21629
21630 # Do we need the "lib" prefix for modules?
21631 need_lib_prefix=$need_lib_prefix
21632
21633 # Do we need a version for libraries?
21634 need_version=$need_version
21635
21636 # Library versioning type.
21637 version_type=$version_type
21638
21639 # Shared library runtime path variable.
21640 runpath_var=$runpath_var
21641
21642 # Shared library path variable.
21643 shlibpath_var=$shlibpath_var
21644
21645 # Is shlibpath searched before the hard-coded library search path?
21646 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21647
21648 # Format of library name prefix.
21649 libname_spec=$lt_libname_spec
21650
21651 # List of archive names. First name is the real one, the rest are links.
21652 # The last name is the one that the linker finds with -lNAME
21653 library_names_spec=$lt_library_names_spec
21654
21655 # The coded name of the library, if different from the real name.
21656 soname_spec=$lt_soname_spec
21657
21658 # Permission mode override for installation of shared libraries.
21659 install_override_mode=$lt_install_override_mode
21660
21661 # Command to use after installation of a shared archive.
21662 postinstall_cmds=$lt_postinstall_cmds
21663
21664 # Command to use after uninstallation of a shared archive.
21665 postuninstall_cmds=$lt_postuninstall_cmds
21666
21667 # Commands used to finish a libtool library installation in a directory.
21668 finish_cmds=$lt_finish_cmds
21669
21670 # As "finish_cmds", except a single script fragment to be evaled but
21671 # not shown.
21672 finish_eval=$lt_finish_eval
21673
21674 # Whether we should hardcode library paths into libraries.
21675 hardcode_into_libs=$hardcode_into_libs
21676
21677 # Compile-time system search path for libraries.
21678 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21679
21680 # Detected run-time system search path for libraries.
21681 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21682
21683 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21684 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21685
21686 # Whether dlopen is supported.
21687 dlopen_support=$enable_dlopen
21688
21689 # Whether dlopen of programs is supported.
21690 dlopen_self=$enable_dlopen_self
21691
21692 # Whether dlopen of statically linked programs is supported.
21693 dlopen_self_static=$enable_dlopen_self_static
21694
21695 # Commands to strip libraries.
21696 old_striplib=$lt_old_striplib
21697 striplib=$lt_striplib
21698
21699
21700 # The linker used to build libraries.
21701 LD=$lt_LD
21702
21703 # How to create reloadable object files.
21704 reload_flag=$lt_reload_flag
21705 reload_cmds=$lt_reload_cmds
21706
21707 # Commands used to build an old-style archive.
21708 old_archive_cmds=$lt_old_archive_cmds
21709
21710 # A language specific compiler.
21711 CC=$lt_compiler
21712
21713 # Is the compiler the GNU compiler?
21714 with_gcc=$GCC
21715
21716 # Compiler flag to turn off builtin functions.
21717 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21718
21719 # Additional compiler flags for building library objects.
21720 pic_flag=$lt_lt_prog_compiler_pic
21721
21722 # How to pass a linker flag through the compiler.
21723 wl=$lt_lt_prog_compiler_wl
21724
21725 # Compiler flag to prevent dynamic linking.
21726 link_static_flag=$lt_lt_prog_compiler_static
21727
21728 # Does compiler simultaneously support -c and -o options?
21729 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21730
21731 # Whether or not to add -lc for building shared libraries.
21732 build_libtool_need_lc=$archive_cmds_need_lc
21733
21734 # Whether or not to disallow shared libs when runtime libs are static.
21735 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21736
21737 # Compiler flag to allow reflexive dlopens.
21738 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21739
21740 # Compiler flag to generate shared objects directly from archives.
21741 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21742
21743 # Whether the compiler copes with passing no objects directly.
21744 compiler_needs_object=$lt_compiler_needs_object
21745
21746 # Create an old-style archive from a shared archive.
21747 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21748
21749 # Create a temporary old-style archive to link instead of a shared archive.
21750 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21751
21752 # Commands used to build a shared archive.
21753 archive_cmds=$lt_archive_cmds
21754 archive_expsym_cmds=$lt_archive_expsym_cmds
21755
21756 # Commands used to build a loadable module if different from building
21757 # a shared archive.
21758 module_cmds=$lt_module_cmds
21759 module_expsym_cmds=$lt_module_expsym_cmds
21760
21761 # Whether we are building with GNU ld or not.
21762 with_gnu_ld=$lt_with_gnu_ld
21763
21764 # Flag that allows shared libraries with undefined symbols to be built.
21765 allow_undefined_flag=$lt_allow_undefined_flag
21766
21767 # Flag that enforces no undefined symbols.
21768 no_undefined_flag=$lt_no_undefined_flag
21769
21770 # Flag to hardcode \$libdir into a binary during linking.
21771 # This must work even if \$libdir does not exist
21772 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21773
21774 # Whether we need a single "-rpath" flag with a separated argument.
21775 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21776
21777 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21778 # DIR into the resulting binary.
21779 hardcode_direct=$hardcode_direct
21780
21781 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21782 # DIR into the resulting binary and the resulting library dependency is
21783 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21784 # library is relocated.
21785 hardcode_direct_absolute=$hardcode_direct_absolute
21786
21787 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21788 # into the resulting binary.
21789 hardcode_minus_L=$hardcode_minus_L
21790
21791 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21792 # into the resulting binary.
21793 hardcode_shlibpath_var=$hardcode_shlibpath_var
21794
21795 # Set to "yes" if building a shared library automatically hardcodes DIR
21796 # into the library and all subsequent libraries and executables linked
21797 # against it.
21798 hardcode_automatic=$hardcode_automatic
21799
21800 # Set to yes if linker adds runtime paths of dependent libraries
21801 # to runtime path list.
21802 inherit_rpath=$inherit_rpath
21803
21804 # Whether libtool must link a program against all its dependency libraries.
21805 link_all_deplibs=$link_all_deplibs
21806
21807 # Set to "yes" if exported symbols are required.
21808 always_export_symbols=$always_export_symbols
21809
21810 # The commands to list exported symbols.
21811 export_symbols_cmds=$lt_export_symbols_cmds
21812
21813 # Symbols that should not be listed in the preloaded symbols.
21814 exclude_expsyms=$lt_exclude_expsyms
21815
21816 # Symbols that must always be exported.
21817 include_expsyms=$lt_include_expsyms
21818
21819 # Commands necessary for linking programs (against libraries) with templates.
21820 prelink_cmds=$lt_prelink_cmds
21821
21822 # Commands necessary for finishing linking programs.
21823 postlink_cmds=$lt_postlink_cmds
21824
21825 # Specify filename containing input files.
21826 file_list_spec=$lt_file_list_spec
21827
21828 # How to hardcode a shared library path into an executable.
21829 hardcode_action=$hardcode_action
21830
21831 # The directories searched by this compiler when creating a shared library.
21832 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21833
21834 # Dependencies to place before and after the objects being linked to
21835 # create a shared library.
21836 predep_objects=$lt_predep_objects
21837 postdep_objects=$lt_postdep_objects
21838 predeps=$lt_predeps
21839 postdeps=$lt_postdeps
21840
21841 # The library search path used internally by the compiler when linking
21842 # a shared library.
21843 compiler_lib_search_path=$lt_compiler_lib_search_path
21844
21845 # ### END LIBTOOL CONFIG
21846
21847 _LT_EOF
21848
21849 cat <<'_LT_EOF' >> "$cfgfile"
21850
21851 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21852
21853 # func_munge_path_list VARIABLE PATH
21854 # -----------------------------------
21855 # VARIABLE is name of variable containing _space_ separated list of
21856 # directories to be munged by the contents of PATH, which is string
21857 # having a format:
21858 # "DIR[:DIR]:"
21859 # string "DIR[ DIR]" will be prepended to VARIABLE
21860 # ":DIR[:DIR]"
21861 # string "DIR[ DIR]" will be appended to VARIABLE
21862 # "DIRP[:DIRP]::[DIRA:]DIRA"
21863 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21864 # "DIRA[ DIRA]" will be appended to VARIABLE
21865 # "DIR[:DIR]"
21866 # VARIABLE will be replaced by "DIR[ DIR]"
21867 func_munge_path_list ()
21868 {
21869 case x$2 in
21870 x)
21871 ;;
21872 *:)
21873 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21874 ;;
21875 x:*)
21876 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21877 ;;
21878 *::*)
21879 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21880 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21881 ;;
21882 *)
21883 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21884 ;;
21885 esac
21886 }
21887
21888
21889 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21890 func_cc_basename ()
21891 {
21892 for cc_temp in $*""; do
21893 case $cc_temp in
21894 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21895 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21896 \-*) ;;
21897 *) break;;
21898 esac
21899 done
21900 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21901 }
21902
21903
21904 # ### END FUNCTIONS SHARED WITH CONFIGURE
21905
21906 _LT_EOF
21907
21908 case $host_os in
21909 aix3*)
21910 cat <<\_LT_EOF >> "$cfgfile"
21911 # AIX sometimes has problems with the GCC collect2 program. For some
21912 # reason, if we set the COLLECT_NAMES environment variable, the problems
21913 # vanish in a puff of smoke.
21914 if test set != "${COLLECT_NAMES+set}"; then
21915 COLLECT_NAMES=
21916 export COLLECT_NAMES
21917 fi
21918 _LT_EOF
21919 ;;
21920 esac
21921
21922
21923 ltmain=$ac_aux_dir/ltmain.sh
21924
21925
21926 # We use sed instead of cat because bash on DJGPP gets confused if
21927 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21928 # text mode, it properly converts lines to CR/LF. This bash problem
21929 # is reportedly fixed, but why not run on old versions too?
21930 sed '$q' "$ltmain" >> "$cfgfile" \
21931 || (rm -f "$cfgfile"; exit 1)
21932
21933 mv -f "$cfgfile" "$ofile" ||
21934 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21935 chmod +x "$ofile"
21936
21937
21938 cat <<_LT_EOF >> "$ofile"
21939
21940 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21941
21942 # The linker used to build libraries.
21943 LD=$lt_LD_CXX
21944
21945 # How to create reloadable object files.
21946 reload_flag=$lt_reload_flag_CXX
21947 reload_cmds=$lt_reload_cmds_CXX
21948
21949 # Commands used to build an old-style archive.
21950 old_archive_cmds=$lt_old_archive_cmds_CXX
21951
21952 # A language specific compiler.
21953 CC=$lt_compiler_CXX
21954
21955 # Is the compiler the GNU compiler?
21956 with_gcc=$GCC_CXX
21957
21958 # Compiler flag to turn off builtin functions.
21959 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21960
21961 # Additional compiler flags for building library objects.
21962 pic_flag=$lt_lt_prog_compiler_pic_CXX
21963
21964 # How to pass a linker flag through the compiler.
21965 wl=$lt_lt_prog_compiler_wl_CXX
21966
21967 # Compiler flag to prevent dynamic linking.
21968 link_static_flag=$lt_lt_prog_compiler_static_CXX
21969
21970 # Does compiler simultaneously support -c and -o options?
21971 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21972
21973 # Whether or not to add -lc for building shared libraries.
21974 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21975
21976 # Whether or not to disallow shared libs when runtime libs are static.
21977 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21978
21979 # Compiler flag to allow reflexive dlopens.
21980 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21981
21982 # Compiler flag to generate shared objects directly from archives.
21983 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21984
21985 # Whether the compiler copes with passing no objects directly.
21986 compiler_needs_object=$lt_compiler_needs_object_CXX
21987
21988 # Create an old-style archive from a shared archive.
21989 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21990
21991 # Create a temporary old-style archive to link instead of a shared archive.
21992 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21993
21994 # Commands used to build a shared archive.
21995 archive_cmds=$lt_archive_cmds_CXX
21996 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21997
21998 # Commands used to build a loadable module if different from building
21999 # a shared archive.
22000 module_cmds=$lt_module_cmds_CXX
22001 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22002
22003 # Whether we are building with GNU ld or not.
22004 with_gnu_ld=$lt_with_gnu_ld_CXX
22005
22006 # Flag that allows shared libraries with undefined symbols to be built.
22007 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22008
22009 # Flag that enforces no undefined symbols.
22010 no_undefined_flag=$lt_no_undefined_flag_CXX
22011
22012 # Flag to hardcode \$libdir into a binary during linking.
22013 # This must work even if \$libdir does not exist
22014 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22015
22016 # Whether we need a single "-rpath" flag with a separated argument.
22017 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22018
22019 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22020 # DIR into the resulting binary.
22021 hardcode_direct=$hardcode_direct_CXX
22022
22023 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22024 # DIR into the resulting binary and the resulting library dependency is
22025 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22026 # library is relocated.
22027 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22028
22029 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22030 # into the resulting binary.
22031 hardcode_minus_L=$hardcode_minus_L_CXX
22032
22033 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22034 # into the resulting binary.
22035 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22036
22037 # Set to "yes" if building a shared library automatically hardcodes DIR
22038 # into the library and all subsequent libraries and executables linked
22039 # against it.
22040 hardcode_automatic=$hardcode_automatic_CXX
22041
22042 # Set to yes if linker adds runtime paths of dependent libraries
22043 # to runtime path list.
22044 inherit_rpath=$inherit_rpath_CXX
22045
22046 # Whether libtool must link a program against all its dependency libraries.
22047 link_all_deplibs=$link_all_deplibs_CXX
22048
22049 # Set to "yes" if exported symbols are required.
22050 always_export_symbols=$always_export_symbols_CXX
22051
22052 # The commands to list exported symbols.
22053 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22054
22055 # Symbols that should not be listed in the preloaded symbols.
22056 exclude_expsyms=$lt_exclude_expsyms_CXX
22057
22058 # Symbols that must always be exported.
22059 include_expsyms=$lt_include_expsyms_CXX
22060
22061 # Commands necessary for linking programs (against libraries) with templates.
22062 prelink_cmds=$lt_prelink_cmds_CXX
22063
22064 # Commands necessary for finishing linking programs.
22065 postlink_cmds=$lt_postlink_cmds_CXX
22066
22067 # Specify filename containing input files.
22068 file_list_spec=$lt_file_list_spec_CXX
22069
22070 # How to hardcode a shared library path into an executable.
22071 hardcode_action=$hardcode_action_CXX
22072
22073 # The directories searched by this compiler when creating a shared library.
22074 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22075
22076 # Dependencies to place before and after the objects being linked to
22077 # create a shared library.
22078 predep_objects=$lt_predep_objects_CXX
22079 postdep_objects=$lt_postdep_objects_CXX
22080 predeps=$lt_predeps_CXX
22081 postdeps=$lt_postdeps_CXX
22082
22083 # The library search path used internally by the compiler when linking
22084 # a shared library.
22085 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22086
22087 # ### END LIBTOOL TAG CONFIG: CXX
22088 _LT_EOF
22089
22090 ;;
22091
22092 esac
22093 done # for ac_tag
22094
22095
22096 as_fn_exit 0
22097 _ACEOF
22098 ac_clean_files=$ac_clean_files_save
22099
22100 test $ac_write_fail = 0 ||
22101 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22102
22103
22104 # configure is writing to config.log, and then calls config.status.
22105 # config.status does its own redirection, appending to config.log.
22106 # Unfortunately, on DOS this fails, as config.log is still kept open
22107 # by configure, so config.status won't be able to write to it; its
22108 # output is simply discarded. So we exec the FD to /dev/null,
22109 # effectively closing config.log, so it can be properly (re)opened and
22110 # appended to by config.status. When coming back to configure, we
22111 # need to make the FD available again.
22112 if test "$no_create" != yes; then
22113 ac_cs_success=:
22114 ac_config_status_args=
22115 test "$silent" = yes &&
22116 ac_config_status_args="$ac_config_status_args --quiet"
22117 exec 5>/dev/null
22118 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22119 exec 5>>config.log
22120 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22121 # would make configure fail if this is the last instruction.
22122 $ac_cs_success || as_fn_exit 1
22123 fi
22124 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22126 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22127 fi
22128